0000803c : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 803c: e5903000 ldr r3, [r0] 8040: e593304c ldr r3, [r3, #76] ; 0x4c ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 8044: e5902010 ldr r2, [r0, #16] switch( node->type ) { 8048: e2433001 sub r3, r3, #1 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 804c: e5922034 ldr r2, [r2, #52] ; 0x34 switch( node->type ) { 8050: e3530006 cmp r3, #6 8054: 979ff103 ldrls pc, [pc, r3, lsl #2] 8058: ea000008 b 8080 <== NOT EXECUTED 805c: 000080a8 .word 0x000080a8 <== NOT EXECUTED 8060: 000080b8 .word 0x000080b8 <== NOT EXECUTED 8064: 00008098 .word 0x00008098 <== NOT EXECUTED 8068: 00008098 .word 0x00008098 <== NOT EXECUTED 806c: 00008088 .word 0x00008088 <== NOT EXECUTED 8070: 00008088 .word 0x00008088 <== NOT EXECUTED 8074: 00008078 .word 0x00008078 <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 8078: e59f3048 ldr r3, [pc, #72] ; 80c8 807c: e5803008 str r3, [r0, #8] break; } return 0; } 8080: e3a00000 mov r0, #0 8084: e12fff1e bx lr break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 8088: e5923004 ldr r3, [r2, #4] 808c: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 8090: e3a00000 mov r0, #0 8094: e12fff1e bx lr case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 8098: e59f302c ldr r3, [pc, #44] ; 80cc 809c: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 80a0: e3a00000 mov r0, #0 80a4: e12fff1e bx lr IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 80a8: e5923008 ldr r3, [r2, #8] 80ac: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 80b0: e3a00000 mov r0, #0 80b4: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 80b8: e59f3010 ldr r3, [pc, #16] ; 80d0 80bc: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 80c0: e3a00000 mov r0, #0 80c4: e12fff1e bx lr 80c8: 000199cc .word 0x000199cc 80cc: 00019a5c .word 0x00019a5c 80d0: 00019a24 .word 0x00019a24 0000d15c : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { d15c: e92d40f0 push {r4, r5, r6, r7, lr} d160: e1a01801 lsl r1, r1, #16 d164: e1a02802 lsl r2, r2, #16 d168: e24dd008 sub sp, sp, #8 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; d16c: e5904000 ldr r4, [r0] int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { d170: e1a07821 lsr r7, r1, #16 d174: 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(); d178: eb0004a9 bl e424 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) d17c: e1d453bc ldrh r5, [r4, #60] ; 0x3c d180: e3500000 cmp r0, #0 d184: 11550000 cmpne r5, r0 d188: 03a05000 moveq r5, #0 d18c: 13a05001 movne r5, #1 d190: 1a000009 bne d1bc rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; d194: e1c473bc strh r7, [r4, #60] ; 0x3c jnode->st_gid = group; d198: e1c463be strh r6, [r4, #62] ; 0x3e IMFS_update_ctime( jnode ); d19c: e1a0000d mov r0, sp d1a0: e1a01005 mov r1, r5 d1a4: ebffd60d bl 29e0 d1a8: e59d3000 ldr r3, [sp] d1ac: e5843048 str r3, [r4, #72] ; 0x48 d1b0: e1a00005 mov r0, r5 return 0; } d1b4: e28dd008 add sp, sp, #8 d1b8: e8bd80f0 pop {r4, r5, r6, r7, pc} #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); d1bc: eb0016ce bl 12cfc <__errno> <== NOT EXECUTED d1c0: e3a03001 mov r3, #1 <== NOT EXECUTED d1c4: e5803000 str r3, [r0] <== NOT EXECUTED d1c8: e3e00000 mvn r0, #0 <== NOT EXECUTED d1cc: eafffff8 b d1b4 <== NOT EXECUTED 0000be54 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { be54: 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 ) be58: e2504000 subs r4, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { be5c: e1a05001 mov r5, r1 be60: e59d6014 ldr r6, [sp, #20] be64: e1a01002 mov r1, r2 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) be68: 01a07004 moveq r7, r4 be6c: 1a000001 bne be78 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } be70: e1a00007 mov r0, r7 <== NOT EXECUTED be74: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); be78: e59f210c ldr r2, [pc, #268] ; bf8c be7c: e5922000 ldr r2, [r2] be80: e592202c ldr r2, [r2, #44] ; 0x2c be84: e1a00005 mov r0, r5 be88: e1c32002 bic r2, r3, r2 be8c: ebffffc0 bl bd94 if ( !node ) be90: e2507000 subs r7, r0, #0 be94: 0afffff5 beq be70 return NULL; /* * Set the type specific information */ switch (type) { be98: e2455001 sub r5, r5, #1 be9c: e3550006 cmp r5, #6 bea0: 979ff105 ldrls pc, [pc, r5, lsl #2] bea4: ea000033 b bf78 <== NOT EXECUTED bea8: 0000bf5c .word 0x0000bf5c <== NOT EXECUTED beac: 0000bf48 .word 0x0000bf48 <== NOT EXECUTED beb0: 0000bec4 .word 0x0000bec4 <== NOT EXECUTED beb4: 0000bec4 .word 0x0000bec4 <== NOT EXECUTED beb8: 0000bf18 .word 0x0000bf18 <== NOT EXECUTED bebc: 0000bf00 .word 0x0000bf00 <== NOT EXECUTED bec0: 0000bf3c .word 0x0000bf3c <== NOT EXECUTED case IMFS_HARD_LINK: node->info.hard_link.link_node = info->hard_link.link_node; break; case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; bec4: e5963000 ldr r3, [r6] bec8: e5873050 str r3, [r7, #80] ; 0x50 /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; becc: e5943010 ldr r3, [r4, #16] bed0: e5932034 ldr r2, [r3, #52] ; 0x34 node->Parent = parent; node->st_ino = ++fs_info->ino_count; bed4: e5923000 ldr r3, [r2] } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; bed8: e5940000 ldr r0, [r4] fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; bedc: e2833001 add r3, r3, #1 bee0: e5823000 str r3, [r2] * 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; node->Parent = parent; bee4: e5870008 str r0, [r7, #8] node->st_ino = ++fs_info->ino_count; bee8: e5873038 str r3, [r7, #56] ; 0x38 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); beec: e2800050 add r0, r0, #80 ; 0x50 bef0: e1a01007 mov r1, r7 bef4: ebffe485 bl 5110 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } bef8: e1a00007 mov r0, r7 befc: e8bd80f0 pop {r4, r5, r6, r7, pc} node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; bf00: e3a03000 mov r3, #0 <== NOT EXECUTED bf04: e3a02000 mov r2, #0 <== NOT EXECUTED bf08: e5872050 str r2, [r7, #80] ; 0x50 <== NOT EXECUTED bf0c: e5873054 str r3, [r7, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; bf10: e3a03000 mov r3, #0 <== NOT EXECUTED bf14: e5873058 str r3, [r7, #88] ; 0x58 <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; bf18: 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; bf1c: e3a01000 mov r1, #0 bf20: e3a02000 mov r2, #0 bf24: e5871050 str r1, [r7, #80] ; 0x50 bf28: e5872054 str r2, [r7, #84] ; 0x54 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; bf2c: 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; bf30: e5873058 str r3, [r7, #88] ; 0x58 node->info.file.doubly_indirect = 0; bf34: e587305c str r3, [r7, #92] ; 0x5c node->info.file.triply_indirect = 0; break; bf38: eaffffe3 b becc case IMFS_FIFO: node->info.fifo.pipe = NULL; bf3c: e3a03000 mov r3, #0 bf40: e5873050 str r3, [r7, #80] ; 0x50 break; bf44: eaffffe0 b becc node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; bf48: 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; bf4c: e5963000 ldr r3, [r6] node->info.device.minor = info->device.minor; bf50: e5872054 str r2, [r7, #84] ; 0x54 case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; bf54: e5873050 str r3, [r7, #80] ; 0x50 node->info.device.minor = info->device.minor; break; bf58: eaffffdb b becc */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); bf5c: e2872054 add r2, r7, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); bf60: e2873050 add r3, r7, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); bf64: e5872050 str r2, [r7, #80] ; 0x50 the_chain->permanent_null = NULL; bf68: e3a02000 mov r2, #0 bf6c: e5872054 str r2, [r7, #84] ; 0x54 the_chain->last = _Chain_Head(the_chain); bf70: e5873058 str r3, [r7, #88] ; 0x58 bf74: eaffffd4 b becc case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); bf78: e59f0010 ldr r0, [pc, #16] ; bf90 <== NOT EXECUTED bf7c: e3a0105c mov r1, #92 ; 0x5c <== NOT EXECUTED bf80: e59f200c ldr r2, [pc, #12] ; bf94 <== NOT EXECUTED bf84: e59f300c ldr r3, [pc, #12] ; bf98 <== NOT EXECUTED bf88: ebfff3fa bl 8f78 <__assert_func> <== NOT EXECUTED bf8c: 00019228 .word 0x00019228 bf90: 0001a438 .word 0x0001a438 bf94: 00019d28 .word 0x00019d28 bf98: 0001a1d0 .word 0x0001a1d0 00002e2c : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2e2c: e3500000 cmp r0, #0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2e30: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 2e34: e1a05001 mov r5, r1 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2e38: 0a000021 beq 2ec4 assert( level >= 0 ); 2e3c: e3510000 cmp r1, #0 2e40: ba000029 blt 2eec assert( the_directory->type == IMFS_DIRECTORY ); 2e44: e590304c ldr r3, [r0, #76] ; 0x4c 2e48: e3530001 cmp r3, #1 2e4c: 1a000021 bne 2ed8 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2e50: e5907050 ldr r7, [r0, #80] ; 0x50 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2e54: e2808054 add r8, r0, #84 ; 0x54 2e58: e1570008 cmp r7, r8 2e5c: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} 2e60: e59f6098 ldr r6, [pc, #152] ; 2f00 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 2e64: e281a001 add sl, r1, #1 for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 2e68: e3a04000 mov r4, #0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2e6c: e5963000 ldr r3, [r6] !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) 2e70: e2844001 add r4, r4, #1 fprintf(stdout, "...." ); 2e74: e5933008 ldr r3, [r3, #8] 2e78: e59f0084 ldr r0, [pc, #132] ; 2f04 2e7c: e3a01001 mov r1, #1 2e80: e3a02004 mov r2, #4 2e84: eb004107 bl 132a8 !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++ ) 2e88: e1550004 cmp r5, r4 2e8c: aafffff6 bge 2e6c fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 2e90: e1a00007 mov r0, r7 2e94: ebffff7a bl 2c84 if ( the_jnode->type == IMFS_DIRECTORY ) 2e98: e597304c ldr r3, [r7, #76] ; 0x4c 2e9c: e3530001 cmp r3, #1 2ea0: 0a000003 beq 2eb4 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 ) { 2ea4: e5977000 ldr r7, [r7] assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2ea8: e1570008 cmp r7, r8 2eac: 1affffed bne 2e68 2eb0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 2eb4: e1a00007 mov r0, r7 2eb8: e1a0100a mov r1, sl 2ebc: ebffffda bl 2e2c 2ec0: eafffff7 b 2ea4 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2ec4: e59f003c ldr r0, [pc, #60] ; 2f08 <== NOT EXECUTED 2ec8: e3a01084 mov r1, #132 ; 0x84 <== NOT EXECUTED 2ecc: e59f2038 ldr r2, [pc, #56] ; 2f0c <== NOT EXECUTED 2ed0: e59f3038 ldr r3, [pc, #56] ; 2f10 <== NOT EXECUTED 2ed4: eb0001e5 bl 3670 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 2ed8: e59f0028 ldr r0, [pc, #40] ; 2f08 <== NOT EXECUTED 2edc: e3a01088 mov r1, #136 ; 0x88 <== NOT EXECUTED 2ee0: e59f2024 ldr r2, [pc, #36] ; 2f0c <== NOT EXECUTED 2ee4: e59f3028 ldr r3, [pc, #40] ; 2f14 <== NOT EXECUTED 2ee8: eb0001e0 bl 3670 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 2eec: e59f0014 ldr r0, [pc, #20] ; 2f08 <== NOT EXECUTED 2ef0: e3a01086 mov r1, #134 ; 0x86 <== NOT EXECUTED 2ef4: e59f2010 ldr r2, [pc, #16] ; 2f0c <== NOT EXECUTED 2ef8: e59f3018 ldr r3, [pc, #24] ; 2f18 <== NOT EXECUTED 2efc: eb0001db bl 3670 <__assert_func> <== NOT EXECUTED 2f00: 000221b4 .word 0x000221b4 2f04: 00023d94 .word 0x00023d94 2f08: 00023c90 .word 0x00023c90 2f0c: 00022720 .word 0x00022720 2f10: 00023d50 .word 0x00023d50 2f14: 00023d6c .word 0x00023d6c 2f18: 00023d60 .word 0x00023d60 00008274 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 8274: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8278: e24dd040 sub sp, sp, #64 ; 0x40 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 827c: e5936000 ldr r6, [r3] const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 8280: e58d2000 str r2, [sp] 8284: e1a07003 mov r7, r3 8288: e1a0a000 mov sl, r0 828c: e1a04001 mov r4, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 8290: e3a05000 mov r5, #0 8294: e28d8004 add r8, sp, #4 8298: e28d903c add r9, sp, #60 ; 0x3c * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 829c: e1a02008 mov r2, r8 82a0: e1a03009 mov r3, r9 82a4: e08a0005 add r0, sl, r5 82a8: e1a01004 mov r1, r4 82ac: eb000227 bl 8b50 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 82b0: e5973000 ldr r3, [r7] 82b4: e3530000 cmp r3, #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 ); 82b8: e1a0b000 mov fp, r0 pathnamelen -= len; 82bc: e59d203c ldr r2, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 82c0: 0a00004e beq 8400 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 82c4: e3500000 cmp r0, #0 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 82c8: e0855002 add r5, r5, r2 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 82cc: e0624004 rsb r4, r2, r4 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 82d0: 1a00000f bne 8314 * 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 ) { 82d4: e593204c ldr r2, [r3, #76] ; 0x4c 82d8: e3520001 cmp r2, #1 82dc: 0a000054 beq 8434 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 82e0: e1a00007 mov r0, r7 82e4: ebffff54 bl 803c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 82e8: e59d1000 ldr r1, [sp] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 82ec: e1a0b000 mov fp, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 82f0: e1a00007 mov r0, r7 82f4: ebffff76 bl 80d4 82f8: e3500000 cmp r0, #0 82fc: 1a000036 bne 83dc rtems_set_errno_and_return_minus_one( EACCES ); 8300: eb00152e bl d7c0 <__errno> 8304: e3a0300d mov r3, #13 8308: e5803000 str r3, [r0] 830c: e3e0b000 mvn fp, #0 8310: ea000031 b 83dc /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 8314: e596104c ldr r1, [r6, #76] ; 0x4c 8318: e3510001 cmp r1, #1 831c: 0a000031 beq 83e8 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 8320: e35b0003 cmp fp, #3 if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 8324: e1a06003 mov r6, r3 switch( type ) { 8328: 0a000006 beq 8348 832c: e35b0004 cmp fp, #4 8330: 0a000025 beq 83cc 8334: e35b0002 cmp fp, #2 8338: 0a000013 beq 838c /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 833c: e35b0004 cmp fp, #4 8340: 1affffd5 bne 829c 8344: eaffffe2 b 82d4 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 8348: e593304c ldr r3, [r3, #76] ; 0x4c 834c: e3530003 cmp r3, #3 8350: 0a00002f beq 8414 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 8354: e3530004 cmp r3, #4 8358: 0a000055 beq 84b4 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 835c: e3530001 cmp r3, #1 8360: 1a00004c bne 8498 /* * 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 ) { 8364: e596305c ldr r3, [r6, #92] ; 0x5c 8368: e3530000 cmp r3, #0 836c: 1a00004e bne 84ac /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 8370: e1a00006 mov r0, r6 8374: e1a01008 mov r1, r8 8378: eb0001c5 bl 8a94 if ( !node ) 837c: e2506000 subs r6, r0, #0 8380: 0a00001e beq 8400 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 8384: e5876000 str r6, [r7] break; 8388: eaffffc3 b 829c case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 838c: e59f114c ldr r1, [pc, #332] ; 84e0 8390: e5912000 ldr r2, [r1] 8394: e5922018 ldr r2, [r2, #24] 8398: e1520003 cmp r2, r3 839c: 0affffbe beq 829c /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 83a0: e5976010 ldr r6, [r7, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 83a4: e596201c ldr r2, [r6, #28] 83a8: e1520003 cmp r2, r3 83ac: 0a000049 beq 84d8 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 83b0: e5936008 ldr r6, [r3, #8] 83b4: e3560000 cmp r6, #0 83b8: 1afffff1 bne 8384 rtems_set_errno_and_return_minus_one( ENOENT ); 83bc: eb0014ff bl d7c0 <__errno> 83c0: e580b000 str fp, [r0] 83c4: e3e0b000 mvn fp, #0 83c8: ea000003 b 83dc case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 83cc: eb0014fb bl d7c0 <__errno> 83d0: e3a0305b mov r3, #91 ; 0x5b 83d4: e5803000 str r3, [r0] 83d8: e3e0b000 mvn fp, #0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 83dc: e1a0000b mov r0, fp 83e0: e28dd040 add sp, sp, #64 ; 0x40 83e4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 83e8: e1a00007 mov r0, r7 83ec: ebffff38 bl 80d4 83f0: e3500000 cmp r0, #0 83f4: 0affffc1 beq 8300 83f8: e5973000 ldr r3, [r7] 83fc: eaffffc7 b 8320 * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 8400: eb0014ee bl d7c0 <__errno> 8404: e3a03002 mov r3, #2 8408: e5803000 str r3, [r0] 840c: e3e0b000 mvn fp, #0 8410: eafffff1 b 83dc * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 8414: e1a00007 mov r0, r7 8418: e3a01000 mov r1, #0 841c: ebffff3f bl 8120 node = pathloc->node_access; 8420: e5976000 ldr r6, [r7] if ( !node ) 8424: e3560000 cmp r6, #0 8428: 0a00001a beq 8498 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 842c: e596304c ldr r3, [r6, #76] ; 0x4c 8430: eaffffc9 b 835c * * 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 ) { 8434: e593605c ldr r6, [r3, #92] ; 0x5c 8438: e3560000 cmp r6, #0 843c: 0affffa7 beq 82e0 newloc = node->info.directory.mt_fs->mt_fs_root; 8440: e286601c add r6, r6, #28 8444: e8b6000f ldm r6!, {r0, r1, r2, r3} 8448: e28de028 add lr, sp, #40 ; 0x28 844c: e8ae000f stmia lr!, {r0, r1, r2, r3} *pathloc = newloc; 8450: e28dc028 add ip, sp, #40 ; 0x28 8454: e8bc000f ldm ip!, {r0, r1, r2, r3} * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 8458: e596c000 ldr ip, [r6] *pathloc = newloc; 845c: e1a06007 mov r6, r7 8460: e8a6000f stmia r6!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)( &pathname[i-len], 8464: e59d103c ldr r1, [sp, #60] ; 0x3c */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 8468: e586c000 str ip, [r6] * 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; 846c: e58ec000 str ip, [lr] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 8470: e0610005 rsb r0, r1, r5 8474: e08a0000 add r0, sl, r0 8478: e0841001 add r1, r4, r1 847c: e59d2000 ldr r2, [sp] 8480: e1a03007 mov r3, r7 8484: e597c00c ldr ip, [r7, #12] 8488: e1a0e00f mov lr, pc 848c: e59cf000 ldr pc, [ip] 8490: e1a0b000 mov fp, r0 8494: eaffffd0 b 83dc /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 8498: eb0014c8 bl d7c0 <__errno> 849c: e3a03014 mov r3, #20 84a0: e5803000 str r3, [r0] 84a4: e3e0b000 mvn fp, #0 84a8: eaffffcb b 83dc * 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; 84ac: e283601c add r6, r3, #28 84b0: eaffffe3 b 8444 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 84b4: e1a00007 mov r0, r7 84b8: e3a01000 mov r1, #0 84bc: ebffff2f bl 8180 node = pathloc->node_access; if ( result == -1 ) 84c0: 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 ); 84c4: e1a0b000 mov fp, r0 node = pathloc->node_access; 84c8: e5976000 ldr r6, [r7] if ( result == -1 ) 84cc: 0affffc2 beq 83dc } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 84d0: e596304c ldr r3, [r6, #76] ; 0x4c 84d4: eaffffa0 b 835c */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 84d8: e2866008 add r6, r6, #8 84dc: eaffffd8 b 8444 84e0: 00019228 .word 0x00019228 000085b8 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 85b8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 85bc: e24dd040 sub sp, sp, #64 ; 0x40 85c0: e1a06001 mov r6, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 85c4: e5915000 ldr r5, [r1] int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 85c8: e58d2000 str r2, [sp] 85cc: e1a0a000 mov sl, r0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 85d0: eb00186b bl e784 85d4: e3a07000 mov r7, #0 85d8: e28d8004 add r8, sp, #4 85dc: e1a04000 mov r4, r0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 85e0: e1a01004 mov r1, r4 85e4: e28d303c add r3, sp, #60 ; 0x3c 85e8: e08a0007 add r0, sl, r7 85ec: e1a02008 mov r2, r8 85f0: eb000156 bl 8b50 pathlen -= len; i += len; if ( !pathloc->node_access ) 85f4: e5963000 ldr r3, [r6] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 85f8: e59db03c ldr fp, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 85fc: e3530000 cmp r3, #0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 8600: e1a09000 mov r9, r0 pathlen -= len; 8604: e06b4004 rsb r4, fp, r4 i += len; if ( !pathloc->node_access ) 8608: 0a00003a beq 86f8 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 860c: e3500000 cmp r0, #0 8610: 1a000006 bne 8630 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 8614: eb001469 bl d7c0 <__errno> 8618: e3a03011 mov r3, #17 861c: e5803000 str r3, [r0] 8620: e3e05000 mvn r5, #0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 8624: e1a00005 mov r0, r5 8628: e28dd040 add sp, sp, #64 ; 0x40 862c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 8630: e595104c ldr r1, [r5, #76] ; 0x4c 8634: e3510001 cmp r1, #1 8638: 0a00004b beq 876c while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 863c: e087700b add r7, r7, fp if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 8640: e1a05003 mov r5, r3 switch( type ) { 8644: e3590004 cmp r9, #4 8648: 979ff109 ldrls pc, [pc, r9, lsl #2] 864c: eaffffe3 b 85e0 <== NOT EXECUTED 8650: 00008614 .word 0x00008614 <== NOT EXECUTED 8654: 000085e0 .word 0x000085e0 <== NOT EXECUTED 8658: 000086c8 .word 0x000086c8 <== NOT EXECUTED 865c: 00008678 .word 0x00008678 <== NOT EXECUTED 8660: 00008664 .word 0x00008664 <== NOT EXECUTED case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 8664: eb001455 bl d7c0 <__errno> 8668: e3a0305b mov r3, #91 ; 0x5b 866c: e5803000 str r3, [r0] 8670: e3e05000 mvn r5, #0 8674: eaffffea b 8624 pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 8678: e593304c ldr r3, [r3, #76] ; 0x4c 867c: e3530003 cmp r3, #3 8680: 0a00006a beq 8830 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 8684: e3530004 cmp r3, #4 8688: 0a000068 beq 8830 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 868c: e3550000 cmp r5, #0 8690: 0a00004c beq 87c8 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 8694: e595304c ldr r3, [r5, #76] ; 0x4c 8698: e3530001 cmp r3, #1 869c: 1a000049 bne 87c8 /* * 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 ) { 86a0: e595305c ldr r3, [r5, #92] ; 0x5c 86a4: e3530000 cmp r3, #0 86a8: 1a00004b bne 87dc /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 86ac: e1a00005 mov r0, r5 86b0: e1a01008 mov r1, r8 86b4: eb0000f6 bl 8a94 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 86b8: e2505000 subs r5, r0, #0 86bc: 0a000012 beq 870c done = true; else pathloc->node_access = node; 86c0: e5865000 str r5, [r6] 86c4: eaffffc5 b 85e0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 86c8: e59f1188 ldr r1, [pc, #392] ; 8858 86cc: e5912000 ldr r2, [r1] 86d0: e5922018 ldr r2, [r2, #24] 86d4: e1520003 cmp r2, r3 86d8: 0affffc0 beq 85e0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 86dc: e5962010 ldr r2, [r6, #16] 86e0: e592101c ldr r1, [r2, #28] 86e4: e1510003 cmp r1, r3 86e8: 0a000058 beq 8850 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 86ec: e5935008 ldr r5, [r3, #8] 86f0: e3550000 cmp r5, #0 86f4: 1afffff1 bne 86c0 * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); 86f8: eb001430 bl d7c0 <__errno> 86fc: e3a03002 mov r3, #2 8700: e5803000 str r3, [r0] 8704: e3e05000 mvn r5, #0 8708: eaffffc5 b 8624 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 870c: e59d303c ldr r3, [sp, #60] ; 0x3c 8710: e59d1000 ldr r1, [sp] 8714: e0633007 rsb r3, r3, r7 8718: e08a3003 add r3, sl, r3 871c: e5813000 str r3, [r1] /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 8720: e7da3007 ldrb r3, [sl, r7] 8724: e3530000 cmp r3, #0 8728: 0a000015 beq 8784 if ( !IMFS_is_separator( path[ i ] ) ) 872c: e353002f cmp r3, #47 ; 0x2f 8730: 1353005c cmpne r3, #92 ; 0x5c 8734: 1affffef bne 86f8 rtems_set_errno_and_return_minus_one( ENOENT ); 8738: e08a7007 add r7, sl, r7 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 873c: e5d73001 ldrb r3, [r7, #1] 8740: e3530000 cmp r3, #0 8744: 0a00000e beq 8784 if ( !IMFS_is_separator( path[ i ] ) ) 8748: e353005c cmp r3, #92 ; 0x5c 874c: 1353002f cmpne r3, #47 ; 0x2f 8750: e2877001 add r7, r7, #1 8754: 0afffff8 beq 873c rtems_set_errno_and_return_minus_one( ENOENT ); 8758: eb001418 bl d7c0 <__errno> 875c: e3a03002 mov r3, #2 8760: e5803000 str r3, [r0] 8764: e3e05000 mvn r5, #0 8768: eaffffad b 8624 * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 876c: e1a00006 mov r0, r6 8770: ebfffe57 bl 80d4 8774: e3500000 cmp r0, #0 8778: 0a00000d beq 87b4 877c: e5963000 ldr r3, [r6] 8780: eaffffad b 863c /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 8784: e1a00006 mov r0, r6 8788: ebfffe2b bl 803c /* * The returned node must be a directory */ node = pathloc->node_access; 878c: e5963000 ldr r3, [r6] 8790: e593304c ldr r3, [r3, #76] ; 0x4c 8794: e3530001 cmp r3, #1 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 8798: e1a05000 mov r5, r0 /* * The returned node must be a directory */ node = pathloc->node_access; 879c: 1a000009 bne 87c8 /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 87a0: e1a00006 mov r0, r6 87a4: e3a01003 mov r1, #3 87a8: ebfffe49 bl 80d4 87ac: e3500000 cmp r0, #0 87b0: 1affff9b bne 8624 rtems_set_errno_and_return_minus_one( EACCES ); 87b4: eb001401 bl d7c0 <__errno> 87b8: e3a0300d mov r3, #13 87bc: e5803000 str r3, [r0] 87c0: e3e05000 mvn r5, #0 87c4: eaffff96 b 8624 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 87c8: eb0013fc bl d7c0 <__errno> 87cc: e3a03014 mov r3, #20 87d0: e5803000 str r3, [r0] 87d4: e3e05000 mvn r5, #0 87d8: eaffff91 b 8624 * 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; 87dc: e283401c add r4, r3, #28 87e0: e8b4000f ldm r4!, {r0, r1, r2, r3} 87e4: e28dc028 add ip, sp, #40 ; 0x28 87e8: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 87ec: e28de028 add lr, sp, #40 ; 0x28 87f0: e8be000f ldm lr!, {r0, r1, r2, r3} * 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; 87f4: e594e000 ldr lr, [r4] *pathloc = newloc; 87f8: e1a04006 mov r4, r6 87fc: e8a4000f stmia r4!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 8800: e59d003c ldr r0, [sp, #60] ; 0x3c * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 8804: e584e000 str lr, [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; 8808: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 880c: e0600007 rsb r0, r0, r7 8810: e08a0000 add r0, sl, r0 8814: e1a01006 mov r1, r6 8818: e59d2000 ldr r2, [sp] 881c: e596300c ldr r3, [r6, #12] 8820: e1a0e00f mov lr, pc 8824: e593f004 ldr pc, [r3, #4] 8828: e1a05000 mov r5, r0 882c: eaffff7c b 8624 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 8830: e1a00006 mov r0, r6 8834: e3a01000 mov r1, #0 8838: ebffff29 bl 84e4 if ( result == -1 ) 883c: e3700001 cmn r0, #1 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 8840: e1a05000 mov r5, r0 if ( result == -1 ) 8844: 0affff76 beq 8624 8848: e5965000 ldr r5, [r6] 884c: eaffff8e b 868c if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 8850: e2824008 add r4, r2, #8 8854: eaffffe1 b 87e0 8858: 00019228 .word 0x00019228 00008120 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 8120: e5903000 ldr r3, [r0] /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 8124: e593204c ldr r2, [r3, #76] ; 0x4c 8128: e3520003 cmp r2, #3 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 812c: e92d4030 push {r4, r5, lr} 8130: e1a04000 mov r4, r0 8134: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 8138: 1a00000d bne 8174 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 813c: e5933050 ldr r3, [r3, #80] ; 0x50 8140: e5803000 str r3, [r0] IMFS_Set_handlers( node ); 8144: ebffffbc bl 803c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 8148: e1a00004 mov r0, r4 814c: e1a01005 mov r1, r5 8150: ebffffdf bl 80d4 8154: e3500000 cmp r0, #0 8158: 13a00000 movne r0, #0 815c: 18bd8030 popne {r4, r5, pc} rtems_set_errno_and_return_minus_one( EACCES ); 8160: eb001596 bl d7c0 <__errno> <== NOT EXECUTED 8164: e3a0300d mov r3, #13 <== NOT EXECUTED 8168: e5803000 str r3, [r0] <== NOT EXECUTED 816c: e3e00000 mvn r0, #0 <== NOT EXECUTED return result; } 8170: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 8174: e3a0032b mov r0, #-1409286144 ; 0xac000000 <== NOT EXECUTED 8178: e2400833 sub r0, r0, #3342336 ; 0x330000 <== NOT EXECUTED 817c: ebfff31a bl 4dec <== NOT EXECUTED 00008180 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 8180: e92d4070 push {r4, r5, r6, lr} IMFS_jnode_t *jnode = node->node_access; 8184: e590e000 ldr lr, [r0] /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 8188: e59e304c ldr r3, [lr, #76] ; 0x4c 818c: e3530004 cmp r3, #4 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 8190: e1a04000 mov r4, r0 8194: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 8198: 1a000031 bne 8264 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 819c: e59e3008 ldr r3, [lr, #8] 81a0: e3530000 cmp r3, #0 81a4: 0a00002b beq 8258 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 81a8: e5803000 str r3, [r0] rtems_filesystem_get_sym_start_loc( 81ac: e59e2050 ldr r2, [lr, #80] ; 0x50 81b0: e5d23000 ldrb r3, [r2] 81b4: e353002f cmp r3, #47 ; 0x2f 81b8: 1353005c cmpne r3, #92 ; 0x5c 81bc: 13a06000 movne r6, #0 81c0: 03a06001 moveq r6, #1 81c4: 1a00001b bne 8238 81c8: e59f30a0 ldr r3, [pc, #160] ; 8270 81cc: e593c000 ldr ip, [r3] 81d0: e28cc018 add ip, ip, #24 81d4: e8bc000f ldm ip!, {r0, r1, r2, r3} 81d8: e1a06004 mov r6, r4 81dc: e8a6000f stmia r6!, {r0, r1, r2, r3} 81e0: e59c2000 ldr r2, [ip] 81e4: e5862000 str r2, [r6] 81e8: e59e2050 ldr r2, [lr, #80] ; 0x50 81ec: e3a06001 mov r6, #1 * 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] ), 81f0: e0826006 add r6, r2, r6 81f4: e1a00006 mov r0, r6 81f8: eb001961 bl e784 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 81fc: e1a02005 mov r2, r5 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 8200: e1a01000 mov r1, r0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 8204: e1a03004 mov r3, r4 8208: e1a00006 mov r0, r6 820c: eb000018 bl 8274 8210: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 8214: e1a00004 mov r0, r4 8218: ebffff87 bl 803c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 821c: e1a00004 mov r0, r4 8220: e1a01005 mov r1, r5 8224: ebffffaa bl 80d4 8228: e3500000 cmp r0, #0 822c: 0a000004 beq 8244 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 8230: e1a00006 mov r0, r6 8234: e8bd8070 pop {r4, r5, r6, pc} * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 8238: e3530000 cmp r3, #0 823c: 1affffeb bne 81f0 8240: eaffffe0 b 81c8 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 8244: eb00155d bl d7c0 <__errno> <== NOT EXECUTED 8248: e3a0300d mov r3, #13 <== NOT EXECUTED 824c: e5803000 str r3, [r0] <== NOT EXECUTED 8250: e3e06000 mvn r6, #0 <== NOT EXECUTED 8254: eafffff5 b 8230 <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 8258: e3a004ba mov r0, #-1174405120 ; 0xba000000 <== NOT EXECUTED 825c: e280060d add r0, r0, #13631488 ; 0xd00000 <== NOT EXECUTED 8260: ebfff2e1 bl 4dec <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 8264: e3a0032b mov r0, #-1409286144 ; 0xac000000 <== NOT EXECUTED 8268: e2400833 sub r0, r0, #3342336 ; 0x330000 <== NOT EXECUTED 826c: ebfff2de bl 4dec <== NOT EXECUTED 8270: 00019228 .word 0x00019228 0000bf9c : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { bf9c: e92d4070 push {r4, r5, r6, lr} bfa0: e24dd008 sub sp, sp, #8 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; bfa4: e5904000 ldr r4, [r0] int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { bfa8: e1a06001 mov r6, r1 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); bfac: ebfff4af bl 9270 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) bfb0: e1d453bc ldrh r5, [r4, #60] ; 0x3c bfb4: e3500000 cmp r0, #0 bfb8: 11550000 cmpne r5, r0 bfbc: 03a05000 moveq r5, #0 bfc0: 13a05001 movne r5, #1 bfc4: 1a00000e bne c004 /* * 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); bfc8: e5943030 ldr r3, [r4, #48] ; 0x30 bfcc: e1a06a06 lsl r6, r6, #20 bfd0: e3c33eff bic r3, r3, #4080 ; 0xff0 bfd4: e3c3300f bic r3, r3, #15 bfd8: e1a06a26 lsr r6, r6, #20 bfdc: e1866003 orr r6, r6, r3 bfe0: e5846030 str r6, [r4, #48] ; 0x30 IMFS_update_ctime( jnode ); bfe4: e1a0000d mov r0, sp bfe8: e1a01005 mov r1, r5 bfec: ebfff4a4 bl 9284 bff0: e59d3000 ldr r3, [sp] bff4: e5843048 str r3, [r4, #72] ; 0x48 bff8: e1a00005 mov r0, r5 return 0; } bffc: e28dd008 add sp, sp, #8 c000: e8bd8070 pop {r4, r5, r6, pc} */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); c004: eb0005ed bl d7c0 <__errno> <== NOT EXECUTED c008: e3a03001 mov r3, #1 <== NOT EXECUTED c00c: e5803000 str r3, [r0] <== NOT EXECUTED c010: e3e00000 mvn r0, #0 <== NOT EXECUTED c014: eafffff8 b bffc <== NOT EXECUTED 000089e8 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 89e8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 89ec: e5905038 ldr r5, [r0, #56] ; 0x38 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 89f0: e1a01000 mov r1, r0 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 89f4: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 89f8: e2850050 add r0, r5, #80 ; 0x50 <== NOT EXECUTED 89fc: eb000b96 bl b85c <== NOT EXECUTED if (! err) { 8a00: e2506000 subs r6, r0, #0 <== NOT EXECUTED 8a04: 0a000002 beq 8a14 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) free(jnode); } IMFS_FIFO_RETURN(err); 8a08: ba00000e blt 8a48 <== NOT EXECUTED } 8a0c: e1a00006 mov r0, r6 <== NOT EXECUTED 8a10: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 8a14: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 8a18: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 8a1c: e5843014 str r3, [r4, #20] <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) 8a20: e1a00005 mov r0, r5 <== NOT EXECUTED 8a24: eb000244 bl 933c <== NOT EXECUTED 8a28: e3500000 cmp r0, #0 <== NOT EXECUTED 8a2c: 1afffff6 bne 8a0c <== NOT EXECUTED 8a30: e1d533b4 ldrh r3, [r5, #52] ; 0x34 <== NOT EXECUTED 8a34: e3530000 cmp r3, #0 <== NOT EXECUTED 8a38: 1afffff3 bne 8a0c <== NOT EXECUTED free(jnode); 8a3c: e1a00005 mov r0, r5 <== NOT EXECUTED 8a40: eb00019a bl 90b0 <== NOT EXECUTED 8a44: eafffff0 b 8a0c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 8a48: eb00135c bl d7c0 <__errno> <== NOT EXECUTED 8a4c: e2666000 rsb r6, r6, #0 <== NOT EXECUTED 8a50: e5806000 str r6, [r0] <== NOT EXECUTED 8a54: e3e06000 mvn r6, #0 <== NOT EXECUTED 8a58: eaffffeb b 8a0c <== NOT EXECUTED 000088b4 : void *buffer ) { int err; if (command == FIONBIO) { 88b4: e3a03a46 mov r3, #286720 ; 0x46000 <== NOT EXECUTED 88b8: e2833e67 add r3, r3, #1648 ; 0x670 <== NOT EXECUTED 88bc: e283313a add r3, r3, #-2147483634 ; 0x8000000e <== NOT EXECUTED 88c0: e1510003 cmp r1, r3 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 88c4: e92d4010 push {r4, lr} <== NOT EXECUTED 88c8: e1a03002 mov r3, r2 <== NOT EXECUTED int err; if (command == FIONBIO) { 88cc: 0a00000a beq 88fc <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 88d0: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED 88d4: e1a03000 mov r3, r0 <== NOT EXECUTED 88d8: e59c0050 ldr r0, [ip, #80] ; 0x50 <== NOT EXECUTED 88dc: eb000ad1 bl b428 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 88e0: e3500000 cmp r0, #0 <== NOT EXECUTED 88e4: a8bd8010 popge {r4, pc} <== NOT EXECUTED 88e8: e2604000 rsb r4, r0, #0 <== NOT EXECUTED 88ec: eb0013b3 bl d7c0 <__errno> <== NOT EXECUTED 88f0: e5804000 str r4, [r0] <== NOT EXECUTED 88f4: e3e00000 mvn r0, #0 <== NOT EXECUTED } 88f8: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 88fc: e3520000 cmp r2, #0 <== NOT EXECUTED 8900: 03a0400e moveq r4, #14 <== NOT EXECUTED 8904: 0afffff8 beq 88ec <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 8908: e5924000 ldr r4, [r2] <== NOT EXECUTED 890c: e3540000 cmp r4, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 8910: 15903014 ldrne r3, [r0, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 8914: 05903014 ldreq r3, [r0, #20] <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 8918: 13833001 orrne r3, r3, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 891c: 03c33001 biceq r3, r3, #1 <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 8920: 15803014 strne r3, [r0, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 8924: 05803014 streq r3, [r0, #20] <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 8928: 13a00000 movne r0, #0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 892c: 01a00004 moveq r0, r4 <== NOT EXECUTED 8930: e8bd8010 pop {r4, pc} <== NOT EXECUTED 0000885c : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 885c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 8860: e1a0c000 mov ip, r0 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 8864: e5900038 ldr r0, [r0, #56] ; 0x38 <== NOT EXECUTED rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 8868: e24dd004 sub sp, sp, #4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 886c: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED 8870: e58dc000 str ip, [sp] <== NOT EXECUTED 8874: eb000acd bl b3b0 <== NOT EXECUTED 8878: e1a03000 mov r3, r0 <== NOT EXECUTED 887c: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 8880: 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); 8884: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 8888: ba000003 blt 889c <== NOT EXECUTED } 888c: e1a01004 mov r1, r4 <== NOT EXECUTED 8890: e1a00003 mov r0, r3 <== NOT EXECUTED 8894: e28dd004 add sp, sp, #4 <== NOT EXECUTED 8898: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 889c: eb0013c7 bl d7c0 <__errno> <== NOT EXECUTED 88a0: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 88a4: e5805000 str r5, [r0] <== NOT EXECUTED 88a8: e3e03000 mvn r3, #0 <== NOT EXECUTED 88ac: e3e04000 mvn r4, #0 <== NOT EXECUTED 88b0: eafffff5 b 888c <== NOT EXECUTED 00008990 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 8990: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 8994: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 8998: e1a03000 mov r3, r0 <== NOT EXECUTED 899c: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 89a0: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 89a4: eb000ab8 bl b48c <== NOT EXECUTED if (err > 0) 89a8: e2505000 subs r5, r0, #0 <== NOT EXECUTED 89ac: da000007 ble 89d0 <== NOT EXECUTED IMFS_update_atime(jnode); 89b0: e1a0000d mov r0, sp <== NOT EXECUTED 89b4: e3a01000 mov r1, #0 <== NOT EXECUTED 89b8: eb000231 bl 9284 <== NOT EXECUTED 89bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED 89c0: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED IMFS_FIFO_RETURN(err); } 89c4: e1a00005 mov r0, r5 <== NOT EXECUTED 89c8: e28dd008 add sp, sp, #8 <== NOT EXECUTED 89cc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 89d0: 0afffffb beq 89c4 <== NOT EXECUTED 89d4: eb001379 bl d7c0 <__errno> <== NOT EXECUTED 89d8: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 89dc: e5805000 str r5, [r0] <== NOT EXECUTED 89e0: e3e05000 mvn r5, #0 <== NOT EXECUTED 89e4: eafffff6 b 89c4 <== NOT EXECUTED 00008934 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 8934: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 8938: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 893c: e1a03000 mov r3, r0 <== NOT EXECUTED 8940: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 8944: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 8948: eb000b3d bl b644 <== NOT EXECUTED if (err > 0) { 894c: e2505000 subs r5, r0, #0 <== NOT EXECUTED 8950: da000008 ble 8978 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 8954: e1a0000d mov r0, sp <== NOT EXECUTED 8958: e3a01000 mov r1, #0 <== NOT EXECUTED 895c: eb000248 bl 9284 <== NOT EXECUTED 8960: e59d3000 ldr r3, [sp] <== NOT EXECUTED 8964: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED 8968: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 896c: e1a00005 mov r0, r5 <== NOT EXECUTED 8970: e28dd008 add sp, sp, #8 <== NOT EXECUTED 8974: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); 8978: 0afffffb beq 896c <== NOT EXECUTED 897c: eb00138f bl d7c0 <__errno> <== NOT EXECUTED 8980: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 8984: e5805000 str r5, [r0] <== NOT EXECUTED 8988: e3e05000 mvn r5, #0 <== NOT EXECUTED 898c: eafffff6 b 896c <== NOT EXECUTED 00008a94 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 8a94: e92d4070 push {r4, r5, r6, lr} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 8a98: e2505000 subs r5, r0, #0 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 8a9c: e1a04001 mov r4, r1 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 8aa0: 0a000020 beq 8b28 if ( !name ) 8aa4: e3510000 cmp r1, #0 8aa8: 0a00000c beq 8ae0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 8aac: e1a00001 mov r0, r1 8ab0: e59f1084 ldr r1, [pc, #132] ; 8b3c 8ab4: eb00166a bl e464 8ab8: e3500000 cmp r0, #0 8abc: 0a000005 beq 8ad8 return directory; if ( !strcmp( name, dotdotname ) ) 8ac0: e1a00004 mov r0, r4 8ac4: e59f1074 ldr r1, [pc, #116] ; 8b40 8ac8: eb001665 bl e464 8acc: e3500000 cmp r0, #0 return directory->Parent; 8ad0: 05955008 ldreq r5, [r5, #8] */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 8ad4: 1a000004 bne 8aec if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 8ad8: e1a00005 mov r0, r5 8adc: e8bd8070 pop {r4, r5, r6, pc} if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 8ae0: e3a05000 mov r5, #0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 8ae4: e1a00005 mov r0, r5 8ae8: e8bd8070 pop {r4, r5, r6, pc} if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 8aec: e5956050 ldr r6, [r5, #80] ; 0x50 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 8af0: e2855054 add r5, r5, #84 ; 0x54 8af4: e1560005 cmp r6, r5 8af8: 1a000003 bne 8b0c 8afc: eafffff7 b 8ae0 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 8b00: e5966000 ldr r6, [r6] if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 8b04: e1560005 cmp r6, r5 8b08: 0afffff4 beq 8ae0 !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 ) ) 8b0c: e1a00004 mov r0, r4 8b10: e286100c add r1, r6, #12 8b14: eb001652 bl e464 8b18: e3500000 cmp r0, #0 8b1c: 1afffff7 bne 8b00 8b20: e1a05006 mov r5, r6 8b24: eaffffeb b 8ad8 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 8b28: e59f0014 ldr r0, [pc, #20] ; 8b44 <== NOT EXECUTED 8b2c: e3a0102a mov r1, #42 ; 0x2a <== NOT EXECUTED 8b30: e59f2010 ldr r2, [pc, #16] ; 8b48 <== NOT EXECUTED 8b34: e59f3010 ldr r3, [pc, #16] ; 8b4c <== NOT EXECUTED 8b38: eb00010e bl 8f78 <__assert_func> <== NOT EXECUTED 8b3c: 00019a1c .word 0x00019a1c 8b40: 00019a20 .word 0x00019a20 8b44: 0001a328 .word 0x0001a328 8b48: 00019a04 .word 0x00019a04 8b4c: 0001a374 .word 0x0001a374 0000de38 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { de38: 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; de3c: e1a0c000 mov ip, r0 de40: 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 ) { de44: e24dd014 sub sp, sp, #20 de48: e1a0e000 mov lr, r0 * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; de4c: e8bc000f ldm ip!, {r0, r1, r2, r3} de50: e1a0600d mov r6, sp de54: e8a6000f stmia r6!, {r0, r1, r2, r3} de58: e59c2000 ldr r2, [ip] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; de5c: e3a03000 mov r3, #0 * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; de60: e5862000 str r2, [r6] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; de64: e58e301c str r3, [lr, #28] * 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; de68: e1a0500d mov r5, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); de6c: e1a0000d mov r0, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; de70: e58d4000 str r4, [sp] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; de74: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); de78: ebfffd56 bl d3d8 if ( jnode->type != IMFS_DIRECTORY ) { de7c: e594304c ldr r3, [r4, #76] ; 0x4c de80: e3530001 cmp r3, #1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; de84: e2842054 add r2, r4, #84 ; 0x54 de88: 1a000010 bne ded0 de8c: e5943050 ldr r3, [r4, #80] ; 0x50 de90: e1530002 cmp r3, r2 de94: 0a00000d beq ded0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { de98: e3540000 cmp r4, #0 de9c: 0a000008 beq dec4 if ( jnode->type == IMFS_DIRECTORY ) { dea0: e594304c ldr r3, [r4, #76] ; 0x4c dea4: e3530001 cmp r3, #1 dea8: 1affffef bne de6c deac: e5943050 ldr r3, [r4, #80] ; 0x50 deb0: e2842054 add r2, r4, #84 ; 0x54 deb4: e1530002 cmp r3, r2 deb8: 0affffeb beq de6c if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); debc: e2534000 subs r4, r3, #0 dec0: 1affffe9 bne de6c dec4: e3a00000 mov r0, #0 return 0; } dec8: e28dd014 add sp, sp, #20 decc: e8bd8070 pop {r4, r5, r6, pc} result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); ded0: e3a00000 mov r0, #0 ded4: e1a0100d mov r1, sp ded8: ebffd0f1 bl 22a4 if (result != 0) dedc: e3500000 cmp r0, #0 dee0: 01a04006 moveq r4, r6 dee4: 0affffeb beq de98 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); dee8: e3e00000 mvn r0, #0 <== NOT EXECUTED deec: eafffff5 b dec8 <== NOT EXECUTED 00008c3c : IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 8c3c: e59fc0d0 ldr ip, [pc, #208] ; 8d14 8c40: e59cc000 ldr ip, [ip] int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 8c44: e35c0010 cmp ip, #16 rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { 8c48: e92d40f0 push {r4, r5, r6, r7, lr} 8c4c: e1a04000 mov r4, r0 8c50: e1a06001 mov r6, r1 8c54: e1a07002 mov r7, r2 8c58: e1a05003 mov r5, r3 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 8c5c: 0a000008 beq 8c84 8c60: e3a03000 mov r3, #0 8c64: e3a02020 mov r2, #32 8c68: e15c0002 cmp ip, r2 8c6c: e2833001 add r3, r3, #1 8c70: 0a000003 beq 8c84 8c74: e3530005 cmp r3, #5 8c78: e1a02082 lsl r2, r2, #1 8c7c: 1afffff9 bne 8c68 8c80: e3a0c080 mov ip, #128 ; 0x80 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 8c84: e59f308c ldr r3, [pc, #140] ; 8d18 8c88: e583c000 str ip, [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(); 8c8c: eb000c60 bl be14 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; 8c90: e59fe084 ldr lr, [pc, #132] ; 8d1c /* * 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(); 8c94: 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; 8c98: e8be000f ldm lr!, {r0, r1, r2, r3} 8c9c: e284c038 add ip, r4, #56 ; 0x38 8ca0: e8ac000f stmia ip!, {r0, r1, r2, r3} 8ca4: e8be000f ldm lr!, {r0, r1, r2, r3} 8ca8: e8ac000f stmia ip!, {r0, r1, r2, r3} 8cac: 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; 8cb0: e5846028 str r6, [r4, #40] ; 0x28 temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 8cb4: 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; 8cb8: 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 ) ); 8cbc: e3a00001 mov r0, #1 8cc0: e3a0100c mov r1, #12 8cc4: eb0000be bl 8fc4 if ( !fs_info ) { 8cc8: e3500000 cmp r0, #0 8ccc: 0a000009 beq 8cf8 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; 8cd0: e594201c ldr r2, [r4, #28] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 8cd4: e3a03001 mov r3, #1 8cd8: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 8cdc: e5805008 str r5, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 8ce0: e5807004 str r7, [r0, #4] fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; 8ce4: 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; 8ce8: e5823038 str r3, [r2, #56] ; 0x38 /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 8cec: eb0009b1 bl b3b8 8cf0: e3a00000 mov r0, #0 return 0; } 8cf4: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); 8cf8: e594001c ldr r0, [r4, #28] <== NOT EXECUTED 8cfc: eb0000eb bl 90b0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 8d00: eb0012ae bl d7c0 <__errno> <== NOT EXECUTED 8d04: e3a0300c mov r3, #12 <== NOT EXECUTED 8d08: e5803000 str r3, [r0] <== NOT EXECUTED 8d0c: e3e00000 mvn r0, #0 <== NOT EXECUTED 8d10: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 8d14: 00019094 .word 0x00019094 8d18: 0001a85c .word 0x0001a85c 8d1c: 00019cf8 .word 0x00019cf8 00001f5c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 1f5c: e92d4070 push {r4, r5, r6, lr} int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 1f60: 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 */ ) { 1f64: e24dd048 sub sp, sp, #72 ; 0x48 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 1f68: e58d3028 str r3, [sp, #40] ; 0x28 if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 1f6c: e1d333b4 ldrh r3, [r3, #52] ; 0x34 1f70: e3530007 cmp r3, #7 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 1f74: e1a05001 mov r5, r1 1f78: 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 ) 1f7c: 8a00001e bhi 1ffc rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 1f80: e1a00002 mov r0, r2 1f84: eb004735 bl 13c60 1f88: e28d4004 add r4, sp, #4 1f8c: e1a01000 mov r1, r0 1f90: e1a02004 mov r2, r4 1f94: e28d3044 add r3, sp, #68 ; 0x44 1f98: e1a00006 mov r0, r6 1f9c: eb003002 bl dfac * 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( 1fa0: e3a03ca2 mov r3, #41472 ; 0xa200 1fa4: e28dc028 add ip, sp, #40 ; 0x28 1fa8: e1a00005 mov r0, r5 1fac: e1a02004 mov r2, r4 1fb0: e2433001 sub r3, r3, #1 1fb4: e3a01003 mov r1, #3 1fb8: e58dc000 str ip, [sp] 1fbc: eb002cb3 bl d290 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 1fc0: e3500000 cmp r0, #0 1fc4: 0a000011 beq 2010 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++; 1fc8: e59d3028 ldr r3, [sp, #40] ; 0x28 1fcc: e1d323b4 ldrh r2, [r3, #52] ; 0x34 1fd0: e2822001 add r2, r2, #1 1fd4: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); 1fd8: e28d003c add r0, sp, #60 ; 0x3c 1fdc: e3a01000 mov r1, #0 1fe0: eb00027e bl 29e0 1fe4: e59d203c ldr r2, [sp, #60] ; 0x3c 1fe8: e59d3028 ldr r3, [sp, #40] ; 0x28 1fec: e5832048 str r2, [r3, #72] ; 0x48 1ff0: e3a00000 mov r0, #0 return 0; } 1ff4: e28dd048 add sp, sp, #72 ; 0x48 1ff8: e8bd8070 pop {r4, r5, r6, pc} /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) rtems_set_errno_and_return_minus_one( EMLINK ); 1ffc: eb00433e bl 12cfc <__errno> 2000: e3a0301f mov r3, #31 2004: e5803000 str r3, [r0] 2008: e3e00000 mvn r0, #0 200c: eafffff8 b 1ff4 ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 2010: eb004339 bl 12cfc <__errno> <== NOT EXECUTED 2014: e3a0300c mov r3, #12 <== NOT EXECUTED 2018: e5803000 str r3, [r0] <== NOT EXECUTED 201c: e3e00000 mvn r0, #0 <== NOT EXECUTED 2020: eafffff3 b 1ff4 <== NOT EXECUTED 00010d70 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 10d70: e2503000 subs r3, r0, #0 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 10d74: e92d4030 push {r4, r5, lr} block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 10d78: 0a00000f beq 10dbc if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 10d7c: e593304c ldr r3, [r3, #76] ; 0x4c 10d80: e3530005 cmp r3, #5 10d84: 1a000012 bne 10dd4 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 ); 10d88: e3a02001 mov r2, #1 10d8c: ebfffe94 bl 107e4 if ( *block_entry_ptr ) 10d90: e5904000 ldr r4, [r0] 10d94: e3540000 cmp r4, #0 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 ); 10d98: e1a05000 mov r5, r0 if ( *block_entry_ptr ) 10d9c: 13a00000 movne r0, #0 10da0: 18bd8030 popne {r4, r5, pc} #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 10da4: ebfffe81 bl 107b0 if ( !memory ) 10da8: e3500000 cmp r0, #0 return 1; *block_entry_ptr = memory; 10dac: 15850000 strne r0, [r5] fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 10db0: 03a00001 moveq r0, #1 return 1; *block_entry_ptr = memory; 10db4: 11a00004 movne r0, r4 return 0; } 10db8: e8bd8030 pop {r4, r5, pc} ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 10dbc: e3a01f5a mov r1, #360 ; 0x168 <== NOT EXECUTED 10dc0: e2811001 add r1, r1, #1 <== NOT EXECUTED 10dc4: e59f0020 ldr r0, [pc, #32] ; 10dec <== NOT EXECUTED 10dc8: e59f2020 ldr r2, [pc, #32] ; 10df0 <== NOT EXECUTED 10dcc: e59f3020 ldr r3, [pc, #32] ; 10df4 <== NOT EXECUTED 10dd0: ebfff510 bl e218 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 10dd4: e3a01f5b mov r1, #364 ; 0x16c <== NOT EXECUTED 10dd8: e2811001 add r1, r1, #1 <== NOT EXECUTED 10ddc: e59f0008 ldr r0, [pc, #8] ; 10dec <== NOT EXECUTED 10de0: e59f2008 ldr r2, [pc, #8] ; 10df0 <== NOT EXECUTED 10de4: e59f300c ldr r3, [pc, #12] ; 10df8 <== NOT EXECUTED 10de8: ebfff50a bl e218 <__assert_func> <== NOT EXECUTED 10dec: 000200cc .word 0x000200cc 10df0: 0001f838 .word 0x0001f838 10df4: 00020114 .word 0x00020114 10df8: 00020120 .word 0x00020120 00010dfc : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 10dfc: e92d4df0 push {r4, r5, r6, r7, r8, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 10e00: e2504000 subs r4, r0, #0 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 10e04: e24dd004 sub sp, sp, #4 10e08: e1a08001 mov r8, r1 10e0c: e1a06002 mov r6, r2 /* * Perform internal consistency checks */ assert( the_jnode ); 10e10: 0a00004f beq 10f54 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 10e14: e594304c ldr r3, [r4, #76] ; 0x4c 10e18: e3530005 cmp r3, #5 10e1c: 1a000046 bne 10f3c if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 10e20: e59f3144 ldr r3, [pc, #324] ; 10f6c 10e24: e593b000 ldr fp, [r3] 10e28: e1a0312b lsr r3, fp, #2 10e2c: e0213393 mla r1, r3, r3, r3 10e30: e0223391 mla r2, r1, r3, r3 10e34: e3a03000 mov r3, #0 10e38: e1530006 cmp r3, r6 10e3c: e2423001 sub r3, r2, #1 10e40: e002039b mul r2, fp, r3 10e44: ca000007 bgt 10e68 10e48: 0a000004 beq 10e60 rtems_set_errno_and_return_minus_one( EINVAL ); 10e4c: eb0007aa bl 12cfc <__errno> <== NOT EXECUTED 10e50: e3a03016 mov r3, #22 <== NOT EXECUTED 10e54: e5803000 str r3, [r0] <== NOT EXECUTED 10e58: e3e00000 mvn r0, #0 <== NOT EXECUTED 10e5c: ea00002e b 10f1c <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 10e60: e1520008 cmp r2, r8 10e64: 9afffff8 bls 10e4c rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 10e68: e5947054 ldr r7, [r4, #84] ; 0x54 10e6c: e1560007 cmp r6, r7 10e70: e594a050 ldr sl, [r4, #80] ; 0x50 10e74: da000026 ble 10f14 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 10e78: e1a0cfcb asr ip, fp, #31 10e7c: e1a0300c mov r3, ip 10e80: e1a0200b mov r2, fp 10e84: e1a00008 mov r0, r8 10e88: e1a01006 mov r1, r6 10e8c: e58dc000 str ip, [sp] 10e90: eb002fac bl 1cd48 <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 10e94: e59dc000 ldr ip, [sp] /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 10e98: e1a05000 mov r5, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 10e9c: e1a01007 mov r1, r7 10ea0: e1a0000a mov r0, sl 10ea4: e1a0200b mov r2, fp 10ea8: e1a0300c mov r3, ip 10eac: eb002fa5 bl 1cd48 <__divdi3> /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 10eb0: e1550000 cmp r5, r0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 10eb4: e1a0a000 mov sl, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 10eb8: 3a000019 bcc 10f24 10ebc: e1a07000 mov r7, r0 10ec0: ea000002 b 10ed0 10ec4: e2877001 add r7, r7, #1 10ec8: e1550007 cmp r5, r7 10ecc: 3a000014 bcc 10f24 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 10ed0: e1a00004 mov r0, r4 10ed4: e1a01007 mov r1, r7 10ed8: ebffffa4 bl 10d70 10edc: e3500000 cmp r0, #0 10ee0: 0afffff7 beq 10ec4 10ee4: ea000003 b 10ef8 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 10ee8: e1a01007 mov r1, r7 <== NOT EXECUTED 10eec: e1a00004 mov r0, r4 <== NOT EXECUTED * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { for ( ; block>=old_blocks ; block-- ) { 10ef0: e2477001 sub r7, r7, #1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 10ef4: ebfffeed bl 10ab0 <== 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-- ) { 10ef8: e15a0007 cmp sl, r7 <== NOT EXECUTED 10efc: 9afffff9 bls 10ee8 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 10f00: eb00077d bl 12cfc <__errno> <== NOT EXECUTED 10f04: e3a0301c mov r3, #28 <== NOT EXECUTED 10f08: e5803000 str r3, [r0] <== NOT EXECUTED 10f0c: e3e00000 mvn r0, #0 <== NOT EXECUTED 10f10: ea000001 b 10f1c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 10f14: 0a000005 beq 10f30 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 10f18: e3a00000 mov r0, #0 return 0; } 10f1c: e28dd004 add sp, sp, #4 10f20: e8bd8df0 pop {r4, r5, r6, r7, r8, sl, fp, pc} /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 10f24: e5846054 str r6, [r4, #84] ; 0x54 10f28: e5848050 str r8, [r4, #80] ; 0x50 10f2c: eafffff9 b 10f18 rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 10f30: e158000a cmp r8, sl 10f34: 8affffcf bhi 10e78 10f38: eafffff6 b 10f18 assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 10f3c: e3a01f4d mov r1, #308 ; 0x134 <== NOT EXECUTED 10f40: e2811001 add r1, r1, #1 <== NOT EXECUTED 10f44: e59f0024 ldr r0, [pc, #36] ; 10f70 <== NOT EXECUTED 10f48: e59f2024 ldr r2, [pc, #36] ; 10f74 <== NOT EXECUTED 10f4c: e59f3024 ldr r3, [pc, #36] ; 10f78 <== NOT EXECUTED 10f50: ebfff4b0 bl e218 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 10f54: e3a01e13 mov r1, #304 ; 0x130 <== NOT EXECUTED 10f58: e2811001 add r1, r1, #1 <== NOT EXECUTED 10f5c: e59f000c ldr r0, [pc, #12] ; 10f70 <== NOT EXECUTED 10f60: e59f200c ldr r2, [pc, #12] ; 10f74 <== NOT EXECUTED 10f64: e59f3010 ldr r3, [pc, #16] ; 10f7c <== NOT EXECUTED 10f68: ebfff4aa bl e218 <__assert_func> <== NOT EXECUTED 10f6c: 00020484 .word 0x00020484 10f70: 000200cc .word 0x000200cc 10f74: 0001f850 .word 0x0001f850 10f78: 00020120 .word 0x00020120 10f7c: 00020114 .word 0x00020114 000107e4 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 107e4: e92d41f0 push {r4, r5, r6, r7, r8, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 107e8: e2504000 subs r4, r0, #0 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 107ec: e24dd004 sub sp, sp, #4 /* * Perform internal consistency checks */ assert( the_jnode ); 107f0: 0a000078 beq 109d8 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 107f4: e594304c ldr r3, [r4, #76] ; 0x4c 107f8: e3530005 cmp r3, #5 107fc: 1a000070 bne 109c4 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 10800: e59f320c ldr r3, [pc, #524] ; 10a14 10804: e5935000 ldr r5, [r3] 10808: e1a05125 lsr r5, r5, #2 1080c: e2453001 sub r3, r5, #1 10810: e1510003 cmp r1, r3 10814: 9a000019 bls 10880 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 10818: e0265595 mla r6, r5, r5, r5 <== NOT EXECUTED 1081c: e2463001 sub r3, r6, #1 <== NOT EXECUTED 10820: e1510003 cmp r1, r3 <== NOT EXECUTED 10824: 8a000025 bhi 108c0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 10828: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 1082c: e1a00006 mov r0, r6 <== NOT EXECUTED 10830: e1a01005 mov r1, r5 <== NOT EXECUTED 10834: e58d2000 str r2, [sp] <== NOT EXECUTED 10838: eb002e90 bl 1c280 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 1083c: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 10840: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 10844: e1a00006 mov r0, r6 <== NOT EXECUTED 10848: eb002e48 bl 1c170 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 1084c: e59d2000 ldr r2, [sp] <== NOT EXECUTED 10850: e3520000 cmp r2, #0 <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 10854: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; 10858: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { 1085c: 0a000044 beq 10974 <== NOT EXECUTED if ( !p ) { 10860: e3530000 cmp r3, #0 <== NOT EXECUTED 10864: 0a000049 beq 10990 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 10868: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED if ( !p1 ) { 1086c: e3500000 cmp r0, #0 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 10870: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED if ( !p1 ) { 10874: 0a000034 beq 1094c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 10878: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 1087c: ea000005 b 10898 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 10880: e3520000 cmp r2, #0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 10884: e5940058 ldr r0, [r4, #88] ; 0x58 if ( malloc_it ) { 10888: 0a000035 beq 10964 if ( !p ) { 1088c: e3500000 cmp r0, #0 10890: 0a000002 beq 108a0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 10894: e0800101 add r0, r0, r1, lsl #2 /* * This means the requested block number is out of range. */ return 0; } 10898: e28dd004 add sp, sp, #4 1089c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 108a0: e58d1000 str r1, [sp] 108a4: ebffffc1 bl 107b0 if ( !p ) 108a8: e3500000 cmp r0, #0 108ac: e59d1000 ldr r1, [sp] return 0; info->indirect = p; 108b0: 15840058 strne r0, [r4, #88] ; 0x58 if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) 108b4: 1afffff6 bne 10894 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 108b8: e3a00000 mov r0, #0 <== NOT EXECUTED 108bc: eafffff5 b 10898 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 108c0: e0235596 mla r3, r6, r5, r5 <== NOT EXECUTED 108c4: e2433001 sub r3, r3, #1 <== NOT EXECUTED 108c8: e1510003 cmp r1, r3 <== NOT EXECUTED 108cc: 8afffff9 bhi 108b8 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 108d0: e0666001 rsb r6, r6, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 108d4: e1a00006 mov r0, r6 <== NOT EXECUTED 108d8: e1a01005 mov r1, r5 <== NOT EXECUTED 108dc: e58d2000 str r2, [sp] <== NOT EXECUTED 108e0: eb002e66 bl 1c280 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 108e4: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 108e8: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 108ec: e1a00006 mov r0, r6 <== NOT EXECUTED 108f0: eb002e1e bl 1c170 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 108f4: 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; 108f8: e1a08000 mov r8, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 108fc: eb002e1b bl 1c170 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 10900: 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; 10904: e1a06000 mov r6, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 10908: e1a00008 mov r0, r8 <== NOT EXECUTED 1090c: eb002e5b bl 1c280 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 10910: e59d2000 ldr r2, [sp] <== NOT EXECUTED 10914: e3520000 cmp r2, #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; 10918: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; 1091c: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { 10920: 0a00001f beq 109a4 <== NOT EXECUTED if ( !p ) { 10924: e3530000 cmp r3, #0 <== NOT EXECUTED 10928: 0a000034 beq 10a00 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 1092c: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) { 10930: e3520000 cmp r2, #0 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 10934: e0836106 add r6, r3, r6, lsl #2 <== NOT EXECUTED if ( !p1 ) { 10938: 0a00002b beq 109ec <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 1093c: e7920105 ldr r0, [r2, r5, lsl #2] <== NOT EXECUTED if ( !p2 ) { 10940: e3500000 cmp r0, #0 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 10944: e0825105 add r5, r2, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { 10948: 1affffca bne 10878 <== NOT EXECUTED p2 = memfile_alloc_block(); 1094c: ebffff97 bl 107b0 <== NOT EXECUTED if ( !p2 ) 10950: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 10954: 15850000 strne r0, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) 10958: 0affffd6 beq 108b8 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 1095c: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 10960: eaffffcc b 10898 <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 10964: e3500000 cmp r0, #0 10968: 1affffc9 bne 10894 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 1096c: e3a00000 mov r0, #0 <== NOT EXECUTED 10970: eaffffc8 b 10898 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 10974: e3530000 cmp r3, #0 <== NOT EXECUTED 10978: 0affffce beq 108b8 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 1097c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) 10980: e3500000 cmp r0, #0 <== NOT EXECUTED 10984: 0affffcb beq 108b8 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 10988: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 1098c: eaffffc1 b 10898 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 10990: ebffff86 bl 107b0 <== NOT EXECUTED if ( !p ) 10994: e2503000 subs r3, r0, #0 <== NOT EXECUTED 10998: 0affffc6 beq 108b8 <== NOT EXECUTED return 0; info->doubly_indirect = p; 1099c: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED 109a0: eaffffb0 b 10868 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 109a4: e3530000 cmp r3, #0 <== NOT EXECUTED 109a8: 0affffc2 beq 108b8 <== 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 ]; 109ac: e7933106 ldr r3, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) 109b0: e3530000 cmp r3, #0 <== NOT EXECUTED 109b4: 0affffbf beq 108b8 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 109b8: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED 109bc: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 109c0: eaffffb4 b 10898 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 109c4: e59f004c ldr r0, [pc, #76] ; 10a18 <== NOT EXECUTED 109c8: e3a01fe3 mov r1, #908 ; 0x38c <== NOT EXECUTED 109cc: e59f2048 ldr r2, [pc, #72] ; 10a1c <== NOT EXECUTED 109d0: e59f3048 ldr r3, [pc, #72] ; 10a20 <== NOT EXECUTED 109d4: ebfff60f bl e218 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 109d8: e59f0038 ldr r0, [pc, #56] ; 10a18 <== NOT EXECUTED 109dc: e3a01fe2 mov r1, #904 ; 0x388 <== NOT EXECUTED 109e0: e59f2034 ldr r2, [pc, #52] ; 10a1c <== NOT EXECUTED 109e4: e59f3038 ldr r3, [pc, #56] ; 10a24 <== NOT EXECUTED 109e8: ebfff60a bl e218 <__assert_func> <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 109ec: ebffff6f bl 107b0 <== NOT EXECUTED if ( !p1 ) 109f0: e2502000 subs r2, r0, #0 <== NOT EXECUTED 109f4: 0affffaf beq 108b8 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 109f8: e5862000 str r2, [r6] <== NOT EXECUTED 109fc: eaffffce b 1093c <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 10a00: ebffff6a bl 107b0 <== NOT EXECUTED if ( !p ) 10a04: e2503000 subs r3, r0, #0 <== NOT EXECUTED 10a08: 0affffaa beq 108b8 <== NOT EXECUTED return 0; info->triply_indirect = p; 10a0c: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED 10a10: eaffffc5 b 1092c <== NOT EXECUTED 10a14: 00020484 .word 0x00020484 10a18: 000200cc .word 0x000200cc 10a1c: 0001f7c8 .word 0x0001f7c8 10a20: 00020120 .word 0x00020120 10a24: 00020114 .word 0x00020114 00011418 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 11418: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 1141c: e2509000 subs r9, r0, #0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 11420: e24dd014 sub sp, sp, #20 11424: e1a08003 mov r8, r3 11428: e1a0a001 mov sl, r1 1142c: e1a0b002 mov fp, r2 11430: e59d5038 ldr r5, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); 11434: 0a000095 beq 11690 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 11438: e599304c ldr r3, [r9, #76] ; 0x4c 1143c: e2432005 sub r2, r3, #5 11440: e3520001 cmp r2, #1 11444: 8a00008b bhi 11678 /* * Error checks on arguments */ assert( dest ); 11448: e3580000 cmp r8, #0 1144c: 0a00009a beq 116bc /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 11450: e3550000 cmp r5, #0 11454: 0a000076 beq 11634 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 11458: e3530006 cmp r3, #6 1145c: 0a00005a beq 115cc * 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 ) 11460: e5993054 ldr r3, [r9, #84] ; 0x54 11464: e3a02000 mov r2, #0 11468: e1520003 cmp r2, r3 /* * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; 1146c: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) 11470: e5992050 ldr r2, [r9, #80] ; 0x50 11474: e0851001 add r1, r5, r1 11478: ca000051 bgt 115c4 1147c: 0a00004e beq 115bc /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 11480: e59f624c ldr r6, [pc, #588] ; 116d4 11484: e5964000 ldr r4, [r6] 11488: e1a0000a mov r0, sl 1148c: e1a02004 mov r2, r4 11490: e1a03fc2 asr r3, r2, #31 11494: e1a0100b mov r1, fp 11498: e98d000c stmib sp, {r2, r3} 1149c: eb002f53 bl 1d1f0 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 114a0: e1a0100b mov r1, fp /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 114a4: e1a0c000 mov ip, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 114a8: e99d000c ldmib sp, {r2, r3} 114ac: e1a0000a mov r0, sl 114b0: e58dc000 str ip, [sp] 114b4: eb002e23 bl 1cd48 <__divdi3> if ( start_offset ) { 114b8: e59dc000 ldr ip, [sp] 114bc: e35c0000 cmp ip, #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; 114c0: e1a07000 mov r7, r0 if ( start_offset ) { 114c4: 01a0a00c moveq sl, ip 114c8: 0a000013 beq 1151c 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 ); 114cc: e1a00009 mov r0, r9 114d0: e1a01007 mov r1, r7 114d4: e3a02000 mov r2, #0 114d8: e58dc000 str ip, [sp] 114dc: ebfffcc0 bl 107e4 assert( block_ptr ); 114e0: e3500000 cmp r0, #0 114e4: e59dc000 ldr ip, [sp] 114e8: 0a00006d beq 116a4 */ 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; 114ec: e06ca004 rsb sl, ip, r4 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 114f0: 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; 114f4: e155000a cmp r5, sl 114f8: 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 ); 114fc: e1a00008 mov r0, r8 11500: e081100c add r1, r1, ip 11504: e1a0200a mov r2, sl 11508: eb000809 bl 13534 dest += to_copy; block++; my_length -= to_copy; 1150c: e5964000 ldr r4, [r6] block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; 11510: e088800a add r8, r8, sl block++; 11514: e2877001 add r7, r7, #1 my_length -= to_copy; 11518: e06a5005 rsb r5, sl, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 1151c: e1550004 cmp r5, r4 11520: 3a000010 bcc 11568 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 11524: e1a00009 mov r0, r9 11528: e1a01007 mov r1, r7 1152c: e3a02000 mov r2, #0 11530: ebfffcab bl 107e4 assert( block_ptr ); 11534: e3500000 cmp r0, #0 11538: 0a000042 beq 11648 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 1153c: e5901000 ldr r1, [r0] 11540: e1a02004 mov r2, r4 11544: e1a00008 mov r0, r8 11548: eb0007f9 bl 13534 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 1154c: e5963000 ldr r3, [r6] if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 11550: e0645005 rsb r5, r4, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 11554: e1530005 cmp r3, r5 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; 11558: e0888004 add r8, r8, r4 block++; 1155c: e2877001 add r7, r7, #1 my_length -= to_copy; copied += to_copy; 11560: e08aa004 add sl, sl, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 11564: 9affffee bls 11524 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 11568: e3550000 cmp r5, #0 1156c: 0a00000a beq 1159c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 11570: e1a01007 mov r1, r7 11574: e1a00009 mov r0, r9 11578: e3a02000 mov r2, #0 1157c: ebfffc98 bl 107e4 assert( block_ptr ); 11580: e2503000 subs r3, r0, #0 11584: 0a000035 beq 11660 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 11588: e1a00008 mov r0, r8 1158c: e5931000 ldr r1, [r3] 11590: e1a02005 mov r2, r5 11594: eb0007e6 bl 13534 copied += my_length; 11598: e08aa005 add sl, sl, r5 } IMFS_update_atime( the_jnode ); 1159c: e28d000c add r0, sp, #12 115a0: e3a01000 mov r1, #0 115a4: ebffc50d bl 29e0 115a8: e59d300c ldr r3, [sp, #12] 115ac: e5893040 str r3, [r9, #64] ; 0x40 return copied; 115b0: e1a0000a mov r0, sl } 115b4: e28dd014 add sp, sp, #20 115b8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) 115bc: e1510002 cmp r1, r2 115c0: 9affffae bls 11480 my_length = the_jnode->info.file.size - start; 115c4: e0635002 rsb r5, r3, r2 115c8: eaffffac b 11480 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 115cc: e2894050 add r4, r9, #80 ; 0x50 <== NOT EXECUTED 115d0: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED 115d4: e1a00003 mov r0, r3 <== NOT EXECUTED 115d8: e1a01004 mov r1, r4 <== NOT EXECUTED 115dc: e3a02000 mov r2, #0 <== NOT EXECUTED 115e0: e050000a subs r0, r0, sl <== NOT EXECUTED 115e4: e0c1100b sbc r1, r1, fp <== NOT EXECUTED 115e8: e1520001 cmp r2, r1 <== NOT EXECUTED * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; 115ec: e5992058 ldr r2, [r9, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 115f0: da00000b ble 11624 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 115f4: e06a5003 rsb r5, sl, r3 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 115f8: e082100a add r1, r2, sl <== NOT EXECUTED 115fc: e1a00008 mov r0, r8 <== NOT EXECUTED 11600: e1a02005 mov r2, r5 <== NOT EXECUTED 11604: eb0007ca bl 13534 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 11608: e28d000c add r0, sp, #12 <== NOT EXECUTED 1160c: e3a01000 mov r1, #0 <== NOT EXECUTED 11610: ebffc4f2 bl 29e0 <== NOT EXECUTED 11614: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED return my_length; 11618: e1a00005 mov r0, r5 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); IMFS_update_atime( the_jnode ); 1161c: e5893040 str r3, [r9, #64] ; 0x40 <== NOT EXECUTED return my_length; 11620: eaffffe3 b 115b4 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 11624: 1afffff3 bne 115f8 <== NOT EXECUTED 11628: e1550000 cmp r5, r0 <== NOT EXECUTED 1162c: 9afffff1 bls 115f8 <== NOT EXECUTED 11630: eaffffef b 115f4 <== NOT EXECUTED * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 11634: eb0005b0 bl 12cfc <__errno> <== NOT EXECUTED 11638: e3a03016 mov r3, #22 <== NOT EXECUTED 1163c: e5803000 str r3, [r0] <== NOT EXECUTED 11640: e3e00000 mvn r0, #0 <== NOT EXECUTED 11644: eaffffda b 115b4 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 11648: e3a01fa9 mov r1, #676 ; 0x2a4 <== NOT EXECUTED 1164c: e2811003 add r1, r1, #3 <== NOT EXECUTED 11650: e59f0080 ldr r0, [pc, #128] ; 116d8 <== NOT EXECUTED 11654: e59f2080 ldr r2, [pc, #128] ; 116dc <== NOT EXECUTED 11658: e59f3080 ldr r3, [pc, #128] ; 116e0 <== NOT EXECUTED 1165c: ebfff2ed bl e218 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 11660: e3a01fae mov r1, #696 ; 0x2b8 <== NOT EXECUTED 11664: e2811001 add r1, r1, #1 <== NOT EXECUTED 11668: e59f0068 ldr r0, [pc, #104] ; 116d8 <== NOT EXECUTED 1166c: e59f2068 ldr r2, [pc, #104] ; 116dc <== NOT EXECUTED 11670: e59f3068 ldr r3, [pc, #104] ; 116e0 <== NOT EXECUTED 11674: ebfff2e7 bl e218 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 11678: e3a01e25 mov r1, #592 ; 0x250 <== NOT EXECUTED 1167c: e2811001 add r1, r1, #1 <== NOT EXECUTED 11680: e59f0050 ldr r0, [pc, #80] ; 116d8 <== NOT EXECUTED 11684: e59f2050 ldr r2, [pc, #80] ; 116dc <== NOT EXECUTED 11688: e59f3054 ldr r3, [pc, #84] ; 116e4 <== NOT EXECUTED 1168c: ebfff2e1 bl e218 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 11690: e59f0040 ldr r0, [pc, #64] ; 116d8 <== NOT EXECUTED 11694: e3a01f93 mov r1, #588 ; 0x24c <== NOT EXECUTED 11698: e59f203c ldr r2, [pc, #60] ; 116dc <== NOT EXECUTED 1169c: e59f3044 ldr r3, [pc, #68] ; 116e8 <== NOT EXECUTED 116a0: ebfff2dc bl e218 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 116a4: e3a01fa5 mov r1, #660 ; 0x294 <== NOT EXECUTED 116a8: e2811002 add r1, r1, #2 <== NOT EXECUTED 116ac: e59f0024 ldr r0, [pc, #36] ; 116d8 <== NOT EXECUTED 116b0: e59f2024 ldr r2, [pc, #36] ; 116dc <== NOT EXECUTED 116b4: e59f3024 ldr r3, [pc, #36] ; 116e0 <== NOT EXECUTED 116b8: ebfff2d6 bl e218 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 116bc: e3a01f96 mov r1, #600 ; 0x258 <== NOT EXECUTED 116c0: e2811002 add r1, r1, #2 <== NOT EXECUTED 116c4: e59f000c ldr r0, [pc, #12] ; 116d8 <== NOT EXECUTED 116c8: e59f200c ldr r2, [pc, #12] ; 116dc <== NOT EXECUTED 116cc: e59f3018 ldr r3, [pc, #24] ; 116ec <== NOT EXECUTED 116d0: ebfff2d0 bl e218 <__assert_func> <== NOT EXECUTED 116d4: 00020484 .word 0x00020484 116d8: 000200cc .word 0x000200cc 116dc: 0001f878 .word 0x0001f878 116e0: 00020150 .word 0x00020150 116e4: 00020164 .word 0x00020164 116e8: 00020114 .word 0x00020114 116ec: 000201b0 .word 0x000201b0 00010b00 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 10b00: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 10b04: e250a000 subs sl, r0, #0 10b08: 0a00004f beq 10c4c if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 10b0c: e59a304c ldr r3, [sl, #76] ; 0x4c 10b10: e3530005 cmp r3, #5 10b14: 1a000052 bne 10c64 /* * 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; 10b18: e59f615c ldr r6, [pc, #348] ; 10c7c * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 10b1c: e59a3058 ldr r3, [sl, #88] ; 0x58 /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; 10b20: e5967000 ldr r7, [r6] * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 10b24: 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; 10b28: e1a07127 lsr r7, r7, #2 */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 10b2c: 128a0058 addne r0, sl, #88 ; 0x58 10b30: 11a01007 movne r1, r7 10b34: 1bffffbb blne 10a28 } if ( info->doubly_indirect ) { 10b38: e59a305c ldr r3, [sl, #92] ; 0x5c 10b3c: e3530000 cmp r3, #0 10b40: 0a000014 beq 10b98 for ( i=0 ; i <== NOT EXECUTED 10b50: e3a02000 mov r2, #0 <== NOT EXECUTED 10b54: e1a04002 mov r4, r2 <== NOT EXECUTED 10b58: ea000000 b 10b60 <== NOT EXECUTED 10b5c: e59a305c ldr r3, [sl, #92] ; 0x5c <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 10b60: e7931102 ldr r1, [r3, r2, lsl #2] <== NOT EXECUTED 10b64: e3510000 cmp r1, #0 <== NOT EXECUTED 10b68: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED memfile_free_blocks_in_table( 10b6c: 10830002 addne r0, r3, r2 <== NOT EXECUTED 10b70: 11a01007 movne r1, r7 <== NOT EXECUTED 10b74: 1bffffab blne 10a28 <== 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 ); 10b8c: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED 10b90: e1a01007 mov r1, r7 <== NOT EXECUTED 10b94: ebffffa3 bl 10a28 <== NOT EXECUTED } if ( info->triply_indirect ) { 10b98: e59a0060 ldr r0, [sl, #96] ; 0x60 10b9c: e3500000 cmp r0, #0 10ba0: 0a000027 beq 10c44 for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 10bb0: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 10bb4: e3550000 cmp r5, #0 <== NOT EXECUTED 10bb8: 13a09000 movne r9, #0 <== NOT EXECUTED 10bbc: 11a08009 movne r8, r9 <== NOT EXECUTED 10bc0: 0a00001c beq 10c38 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 10bcc: e3a00000 mov r0, #0 <== NOT EXECUTED 10bd0: e1a04000 mov r4, r0 <== NOT EXECUTED if ( p[j] ) { 10bd4: e7953100 ldr r3, [r5, r0, lsl #2] <== NOT EXECUTED 10bd8: e3530000 cmp r3, #0 <== NOT EXECUTED 10bdc: e1a00100 lsl r0, r0, #2 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 10be0: 10850000 addne r0, r5, r0 <== NOT EXECUTED 10be4: 11a01007 movne r1, r7 <== NOT EXECUTED 10be8: 1bffff8e blne 10a28 <== 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 10c00: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 10c04: e0800009 add r0, r0, r9 <== NOT EXECUTED 10c08: e1a01007 mov r1, r7 <== NOT EXECUTED 10c0c: ebffff85 bl 10a28 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 10c24: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED 10c28: e7905108 ldr r5, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 10c2c: e3550000 cmp r5, #0 <== NOT EXECUTED 10c30: e1a09108 lsl r9, r8, #2 <== NOT EXECUTED 10c34: 1affffe2 bne 10bc4 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 10c38: e28a0060 add r0, sl, #96 ; 0x60 <== NOT EXECUTED 10c3c: e1a01007 mov r1, r7 <== NOT EXECUTED 10c40: ebffff78 bl 10a28 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 10c44: e3a00000 mov r0, #0 10c48: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * Perform internal consistency checks */ assert( the_jnode ); 10c4c: e3a01f7b mov r1, #492 ; 0x1ec <== NOT EXECUTED 10c50: e2811002 add r1, r1, #2 <== NOT EXECUTED 10c54: e59f0024 ldr r0, [pc, #36] ; 10c80 <== NOT EXECUTED 10c58: e59f2024 ldr r2, [pc, #36] ; 10c84 <== NOT EXECUTED 10c5c: e59f3024 ldr r3, [pc, #36] ; 10c88 <== NOT EXECUTED 10c60: ebfff56c bl e218 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 10c64: e3a01e1f mov r1, #496 ; 0x1f0 <== NOT EXECUTED 10c68: e2811002 add r1, r1, #2 <== NOT EXECUTED 10c6c: e59f000c ldr r0, [pc, #12] ; 10c80 <== NOT EXECUTED 10c70: e59f200c ldr r2, [pc, #12] ; 10c84 <== NOT EXECUTED 10c74: e59f3010 ldr r3, [pc, #16] ; 10c8c <== NOT EXECUTED 10c78: ebfff566 bl e218 <__assert_func> <== NOT EXECUTED 10c7c: 00020484 .word 0x00020484 10c80: 000200cc .word 0x000200cc 10c84: 0001f824 .word 0x0001f824 10c88: 00020114 .word 0x00020114 10c8c: 00020120 .word 0x00020120 00010ab0 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 10ab0: 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 ); 10ab4: e3a02000 mov r2, #0 <== NOT EXECUTED 10ab8: ebffff49 bl 107e4 <== NOT EXECUTED assert( block_ptr ); 10abc: e2503000 subs r3, r0, #0 <== NOT EXECUTED 10ac0: 0a000005 beq 10adc <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; 10ac4: 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; 10ac8: e5930000 ldr r0, [r3] <== NOT EXECUTED *block_ptr = 0; 10acc: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); 10ad0: ebffff2e bl 10790 <== NOT EXECUTED } return 1; } 10ad4: e3a00001 mov r0, #1 <== NOT EXECUTED 10ad8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 10adc: e3a01f65 mov r1, #404 ; 0x194 <== NOT EXECUTED 10ae0: e2811002 add r1, r1, #2 <== NOT EXECUTED 10ae4: e59f0008 ldr r0, [pc, #8] ; 10af4 <== NOT EXECUTED 10ae8: e59f2008 ldr r2, [pc, #8] ; 10af8 <== NOT EXECUTED 10aec: e59f3008 ldr r3, [pc, #8] ; 10afc <== NOT EXECUTED 10af0: ebfff5c8 bl e218 <__assert_func> <== NOT EXECUTED 10af4: 000200cc .word 0x000200cc 10af8: 0001f808 .word 0x0001f808 10afc: 00020150 .word 0x00020150 00011098 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 11098: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 1109c: e2509000 subs r9, r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 110a0: e24dd014 sub sp, sp, #20 110a4: e1a06001 mov r6, r1 110a8: e1a07002 mov r7, r2 110ac: e1a08003 mov r8, r3 110b0: e59da038 ldr sl, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); 110b4: 0a000084 beq 112cc if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 110b8: e599304c ldr r3, [r9, #76] ; 0x4c 110bc: e3530005 cmp r3, #5 110c0: 1a000075 bne 1129c /* * Error check arguments */ assert( source ); 110c4: e3580000 cmp r8, #0 110c8: 0a00006d beq 11284 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 110cc: e35a0000 cmp sl, #0 110d0: 0a000061 beq 1125c * 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 ) { 110d4: e5993054 ldr r3, [r9, #84] ; 0x54 110d8: e3530000 cmp r3, #0 110dc: e08a1001 add r1, sl, r1 110e0: ba000053 blt 11234 110e4: 0a00004f beq 11228 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 110e8: e59f5208 ldr r5, [pc, #520] ; 112f8 110ec: e5954000 ldr r4, [r5] 110f0: e1a00006 mov r0, r6 110f4: e1a02004 mov r2, r4 110f8: e1a03fc2 asr r3, r2, #31 110fc: e1a01007 mov r1, r7 11100: e98d000c stmib sp, {r2, r3} 11104: eb003039 bl 1d1f0 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 11108: e1a01007 mov r1, r7 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 1110c: e1a0b000 mov fp, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 11110: e99d000c ldmib sp, {r2, r3} 11114: e1a00006 mov r0, r6 11118: eb002f0a bl 1cd48 <__divdi3> if ( start_offset ) { 1111c: e35b0000 cmp fp, #0 11120: 01a0700a moveq r7, sl /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 11124: e1a06000 mov r6, r0 if ( start_offset ) { 11128: 01a0a00b moveq sl, fp 1112c: 0a000014 beq 11184 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 ); 11130: e1a00009 mov r0, r9 11134: e1a01006 mov r1, r6 11138: e3a02000 mov r2, #0 1113c: ebfffda8 bl 107e4 assert( block_ptr ); 11140: e3500000 cmp r0, #0 11144: 0a000066 beq 112e4 */ 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; 11148: e06b3004 rsb r3, fp, r4 if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 1114c: 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; 11150: e153000a cmp r3, sl 11154: 21a0300a movcs r3, sl if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 11158: e1a01008 mov r1, r8 1115c: e1a02003 mov r2, r3 11160: e080000b add r0, r0, fp 11164: e58d3000 str r3, [sp] 11168: eb0008f1 bl 13534 src += to_copy; 1116c: e59d3000 ldr r3, [sp] block++; my_length -= to_copy; copied += to_copy; 11170: e5954000 ldr r4, [r5] fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 11174: e063700a rsb r7, r3, sl return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; 11178: e0888003 add r8, r8, r3 block++; 1117c: e2866001 add r6, r6, #1 my_length -= to_copy; copied += to_copy; 11180: e1a0a003 mov sl, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 11184: e1570004 cmp r7, r4 11188: 3a000010 bcc 111d0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 1118c: e1a00009 mov r0, r9 11190: e1a01006 mov r1, r6 11194: e3a02000 mov r2, #0 11198: ebfffd91 bl 107e4 assert( block_ptr ); 1119c: e3500000 cmp r0, #0 111a0: 0a000032 beq 11270 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 ); 111a4: e1a01008 mov r1, r8 111a8: e5900000 ldr r0, [r0] 111ac: e1a02004 mov r2, r4 111b0: eb0008df bl 13534 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 111b4: e5953000 ldr r3, [r5] fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 111b8: e0647007 rsb r7, r4, r7 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 111bc: e1530007 cmp r3, r7 return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; 111c0: e0888004 add r8, r8, r4 block++; 111c4: e2866001 add r6, r6, #1 * * This routine writes the specified data buffer into the in memory * file pointed to by the_jnode. The file is extended as needed. */ MEMFILE_STATIC ssize_t IMFS_memfile_write( 111c8: e08aa004 add sl, sl, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 111cc: 9affffee bls 1118c */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 111d0: e3570000 cmp r7, #0 111d4: 0a00000a beq 11204 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 111d8: e1a01006 mov r1, r6 111dc: e1a00009 mov r0, r9 111e0: e3a02000 mov r2, #0 111e4: ebfffd7e bl 107e4 assert( block_ptr ); 111e8: e3500000 cmp r0, #0 111ec: 0a000030 beq 112b4 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 ); 111f0: e5900000 ldr r0, [r0] 111f4: e1a01008 mov r1, r8 111f8: e1a02007 mov r2, r7 111fc: eb0008cc bl 13534 my_length = 0; copied += to_copy; 11200: e08aa007 add sl, sl, r7 } IMFS_mtime_ctime_update( the_jnode ); 11204: e28d000c add r0, sp, #12 11208: e3a01000 mov r1, #0 1120c: ebffc5f3 bl 29e0 11210: e59d300c ldr r3, [sp, #12] 11214: e5893048 str r3, [r9, #72] ; 0x48 11218: e5893044 str r3, [r9, #68] ; 0x44 return copied; } 1121c: e1a0000a mov r0, sl 11220: e28dd014 add sp, sp, #20 11224: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 11228: e5993050 ldr r3, [r9, #80] ; 0x50 1122c: e1530001 cmp r3, r1 11230: 2affffac bcs 110e8 status = IMFS_memfile_extend( the_jnode, last_byte ); 11234: e1a00009 mov r0, r9 11238: e3a02000 mov r2, #0 1123c: ebfffeee bl 10dfc if ( status ) 11240: e3500000 cmp r0, #0 11244: 0affffa7 beq 110e8 rtems_set_errno_and_return_minus_one( ENOSPC ); 11248: eb0006ab bl 12cfc <__errno> <== NOT EXECUTED 1124c: e3a0301c mov r3, #28 <== NOT EXECUTED 11250: e5803000 str r3, [r0] <== NOT EXECUTED 11254: e3e0a000 mvn sl, #0 <== NOT EXECUTED 11258: eaffffef b 1121c <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 1125c: eb0006a6 bl 12cfc <__errno> <== NOT EXECUTED 11260: e3a03016 mov r3, #22 <== NOT EXECUTED 11264: e5803000 str r3, [r0] <== NOT EXECUTED 11268: e3e0a000 mvn sl, #0 <== NOT EXECUTED 1126c: eaffffea b 1121c <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 11270: e59f0084 ldr r0, [pc, #132] ; 112fc <== NOT EXECUTED 11274: e3a01e33 mov r1, #816 ; 0x330 <== NOT EXECUTED 11278: e59f2080 ldr r2, [pc, #128] ; 11300 <== NOT EXECUTED 1127c: e59f3080 ldr r3, [pc, #128] ; 11304 <== NOT EXECUTED 11280: ebfff3e4 bl e218 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 11284: e3a01fbb mov r1, #748 ; 0x2ec <== NOT EXECUTED 11288: e2811003 add r1, r1, #3 <== NOT EXECUTED 1128c: e59f0068 ldr r0, [pc, #104] ; 112fc <== NOT EXECUTED 11290: e59f2068 ldr r2, [pc, #104] ; 11300 <== NOT EXECUTED 11294: e59f306c ldr r3, [pc, #108] ; 11308 <== NOT EXECUTED 11298: ebfff3de bl e218 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 1129c: e3a01fb9 mov r1, #740 ; 0x2e4 <== NOT EXECUTED 112a0: e2811003 add r1, r1, #3 <== NOT EXECUTED 112a4: e59f0050 ldr r0, [pc, #80] ; 112fc <== NOT EXECUTED 112a8: e59f2050 ldr r2, [pc, #80] ; 11300 <== NOT EXECUTED 112ac: e59f3058 ldr r3, [pc, #88] ; 1130c <== NOT EXECUTED 112b0: ebfff3d8 bl e218 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 112b4: e3a01fd1 mov r1, #836 ; 0x344 <== NOT EXECUTED 112b8: e2811002 add r1, r1, #2 <== NOT EXECUTED 112bc: e59f0038 ldr r0, [pc, #56] ; 112fc <== NOT EXECUTED 112c0: e59f2038 ldr r2, [pc, #56] ; 11300 <== NOT EXECUTED 112c4: e59f3038 ldr r3, [pc, #56] ; 11304 <== NOT EXECUTED 112c8: ebfff3d2 bl e218 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 112cc: e3a01e2e mov r1, #736 ; 0x2e0 <== NOT EXECUTED 112d0: e2811003 add r1, r1, #3 <== NOT EXECUTED 112d4: e59f0020 ldr r0, [pc, #32] ; 112fc <== NOT EXECUTED 112d8: e59f2020 ldr r2, [pc, #32] ; 11300 <== NOT EXECUTED 112dc: e59f302c ldr r3, [pc, #44] ; 11310 <== NOT EXECUTED 112e0: ebfff3cc bl e218 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 112e4: e59f0010 ldr r0, [pc, #16] ; 112fc <== NOT EXECUTED 112e8: e3a01fc7 mov r1, #796 ; 0x31c <== NOT EXECUTED 112ec: e59f200c ldr r2, [pc, #12] ; 11300 <== NOT EXECUTED 112f0: e59f300c ldr r3, [pc, #12] ; 11304 <== NOT EXECUTED 112f4: ebfff3c7 bl e218 <__assert_func> <== NOT EXECUTED 112f8: 00020484 .word 0x00020484 112fc: 000200cc .word 0x000200cc 11300: 0001f864 .word 0x0001f864 11304: 00020150 .word 0x00020150 11308: 0002015c .word 0x0002015c 1130c: 00020120 .word 0x00020120 11310: 00020114 .word 0x00020114 00008d20 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 8d20: e92d41f0 push {r4, r5, r6, r7, r8, lr} 8d24: e24dd040 sub sp, sp, #64 ; 0x40 8d28: e1a04001 mov r4, r1 8d2c: e1a07002 mov r7, r2 8d30: e1a06003 mov r6, r3 8d34: e1a08000 mov r8, r0 IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, strlen( token ), new_name, &result ); 8d38: eb001691 bl e784 8d3c: e28d5004 add r5, sp, #4 8d40: e1a01000 mov r1, r0 8d44: e28d303c add r3, sp, #60 ; 0x3c 8d48: e1a00008 mov r0, r8 8d4c: e1a02005 mov r2, r5 8d50: ebffff7e bl 8b50 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 8d54: e2043a0f and r3, r4, #61440 ; 0xf000 8d58: e3530901 cmp r3, #16384 ; 0x4000 8d5c: 0a00001b beq 8dd0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 8d60: e3530902 cmp r3, #32768 ; 0x8000 8d64: 03a01005 moveq r1, #5 8d68: 0a000005 beq 8d84 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 8d6c: e3530a06 cmp r3, #24576 ; 0x6000 8d70: 13530a02 cmpne r3, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 8d74: 058d7028 streq r7, [sp, #40] ; 0x28 8d78: 058d602c streq r6, [sp, #44] ; 0x2c 8d7c: 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) ) { 8d80: 1a00000a bne 8db0 * 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( 8d84: e28dc028 add ip, sp, #40 ; 0x28 8d88: e59d0058 ldr r0, [sp, #88] ; 0x58 8d8c: e1a02005 mov r2, r5 8d90: e1a03004 mov r3, r4 8d94: e58dc000 str ip, [sp] 8d98: eb000c2d bl be54 new_name, mode, &info ); if ( !new_node ) 8d9c: e3500000 cmp r0, #0 8da0: 13a00000 movne r0, #0 8da4: 0a00000b beq 8dd8 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 8da8: e28dd040 add sp, sp, #64 ; 0x40 8dac: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 8db0: e3530a01 cmp r3, #4096 ; 0x1000 8db4: 03a01007 moveq r1, #7 8db8: 0afffff1 beq 8d84 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 8dbc: eb00127f bl d7c0 <__errno> <== NOT EXECUTED 8dc0: e3a03016 mov r3, #22 <== NOT EXECUTED 8dc4: e5803000 str r3, [r0] <== NOT EXECUTED 8dc8: e3e00000 mvn r0, #0 <== NOT EXECUTED 8dcc: eafffff5 b 8da8 <== NOT EXECUTED 8dd0: e3a01001 mov r1, #1 8dd4: eaffffea b 8d84 mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 8dd8: eb001278 bl d7c0 <__errno> <== NOT EXECUTED 8ddc: e3a0300c mov r3, #12 <== NOT EXECUTED 8de0: e5803000 str r3, [r0] <== NOT EXECUTED 8de4: e3e00000 mvn r0, #0 <== NOT EXECUTED 8de8: eaffffee b 8da8 <== NOT EXECUTED 000020f0 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 20f0: e5903008 ldr r3, [r0, #8] /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 20f4: e593204c ldr r2, [r3, #76] ; 0x4c 20f8: e3520001 cmp r2, #1 #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 20fc: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2100: 1a000002 bne 2110 /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 2104: e583005c str r0, [r3, #92] ; 0x5c 2108: e3a00000 mov r0, #0 return 0; } 210c: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 2110: eb0042f9 bl 12cfc <__errno> <== NOT EXECUTED 2114: e3a03014 mov r3, #20 <== NOT EXECUTED 2118: e5803000 str r3, [r0] <== NOT EXECUTED 211c: e3e00000 mvn r0, #0 <== NOT EXECUTED 2120: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00002c84 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 2c84: e92d4030 push {r4, r5, lr} assert( the_jnode ); 2c88: e2504000 subs r4, r0, #0 2c8c: 0a000055 beq 2de8 fprintf(stdout, "%s", the_jnode->name ); 2c90: e59f5164 ldr r5, [pc, #356] ; 2dfc 2c94: e5953000 ldr r3, [r5] 2c98: e284000c add r0, r4, #12 2c9c: e5931008 ldr r1, [r3, #8] 2ca0: eb003e6b bl 12654 switch( the_jnode->type ) { 2ca4: e594204c ldr r2, [r4, #76] ; 0x4c 2ca8: e2423001 sub r3, r2, #1 2cac: e3530006 cmp r3, #6 2cb0: 979ff103 ldrls pc, [pc, r3, lsl #2] 2cb4: ea000011 b 2d00 <== NOT EXECUTED 2cb8: 00002d24 .word 0x00002d24 <== NOT EXECUTED 2cbc: 00002d40 .word 0x00002d40 <== NOT EXECUTED 2cc0: 00002d5c .word 0x00002d5c <== NOT EXECUTED 2cc4: 00002d88 .word 0x00002d88 <== NOT EXECUTED 2cc8: 00002db4 .word 0x00002db4 <== NOT EXECUTED 2ccc: 00002dcc .word 0x00002dcc <== NOT EXECUTED 2cd0: 00002cd4 .word 0x00002cd4 <== NOT EXECUTED fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 2cd4: e5953000 ldr r3, [r5] <== NOT EXECUTED 2cd8: e3a01001 mov r1, #1 <== NOT EXECUTED 2cdc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2ce0: e3a02012 mov r2, #18 <== NOT EXECUTED 2ce4: e59f0114 ldr r0, [pc, #276] ; 2e00 <== NOT EXECUTED 2ce8: eb00416e bl 132a8 <== NOT EXECUTED assert(0); 2cec: e59f0110 ldr r0, [pc, #272] ; 2e04 <== NOT EXECUTED 2cf0: e3a01067 mov r1, #103 ; 0x67 <== NOT EXECUTED 2cf4: e59f210c ldr r2, [pc, #268] ; 2e08 <== NOT EXECUTED 2cf8: e59f310c ldr r3, [pc, #268] ; 2e0c <== NOT EXECUTED 2cfc: eb00025b bl 3670 <__assert_func> <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 2d00: e5953000 ldr r3, [r5] <== NOT EXECUTED 2d04: e59f1104 ldr r1, [pc, #260] ; 2e10 <== NOT EXECUTED 2d08: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 2d0c: eb003def bl 124d0 <== NOT EXECUTED assert(0); 2d10: e59f00ec ldr r0, [pc, #236] ; 2e04 <== NOT EXECUTED 2d14: e3a0106c mov r1, #108 ; 0x6c <== NOT EXECUTED 2d18: e59f20e8 ldr r2, [pc, #232] ; 2e08 <== NOT EXECUTED 2d1c: e59f30e8 ldr r3, [pc, #232] ; 2e0c <== NOT EXECUTED 2d20: eb000252 bl 3670 <__assert_func> <== NOT EXECUTED assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 2d24: e5953000 ldr r3, [r5] 2d28: e3a0002f mov r0, #47 ; 0x2f 2d2c: e5931008 ldr r1, [r3, #8] 2d30: eb003e02 bl 12540 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2d34: e59f00d8 ldr r0, [pc, #216] ; 2e14 } 2d38: e8bd4030 pop {r4, r5, lr} default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2d3c: ea004549 b 14268 case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2d40: e5952000 ldr r2, [r5] 2d44: e5943054 ldr r3, [r4, #84] ; 0x54 2d48: e5920008 ldr r0, [r2, #8] 2d4c: e59f10c4 ldr r1, [pc, #196] ; 2e18 2d50: e5942050 ldr r2, [r4, #80] ; 0x50 2d54: eb003ddd bl 124d0 the_jnode->info.device.major, the_jnode->info.device.minor ); break; 2d58: eafffff5 b 2d34 (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 2d5c: e5953000 ldr r3, [r5] <== NOT EXECUTED 2d60: e3a01001 mov r1, #1 <== NOT EXECUTED 2d64: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2d68: e3a02013 mov r2, #19 <== NOT EXECUTED 2d6c: e59f00a8 ldr r0, [pc, #168] ; 2e1c <== NOT EXECUTED 2d70: eb00414c bl 132a8 <== NOT EXECUTED assert(0); 2d74: e59f0088 ldr r0, [pc, #136] ; 2e04 <== NOT EXECUTED 2d78: e3a0105d mov r1, #93 ; 0x5d <== NOT EXECUTED 2d7c: e59f2084 ldr r2, [pc, #132] ; 2e08 <== NOT EXECUTED 2d80: e59f3084 ldr r3, [pc, #132] ; 2e0c <== NOT EXECUTED 2d84: eb000239 bl 3670 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 2d88: e5953000 ldr r3, [r5] <== NOT EXECUTED 2d8c: e3a01001 mov r1, #1 <== NOT EXECUTED 2d90: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2d94: e3a02013 mov r2, #19 <== NOT EXECUTED 2d98: e59f007c ldr r0, [pc, #124] ; 2e1c <== NOT EXECUTED 2d9c: eb004141 bl 132a8 <== NOT EXECUTED assert(0); 2da0: e59f005c ldr r0, [pc, #92] ; 2e04 <== NOT EXECUTED 2da4: e3a01062 mov r1, #98 ; 0x62 <== NOT EXECUTED 2da8: e59f2058 ldr r2, [pc, #88] ; 2e08 <== NOT EXECUTED 2dac: e59f3058 ldr r3, [pc, #88] ; 2e0c <== NOT EXECUTED 2db0: eb00022e bl 3670 <__assert_func> <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 2db4: e5953000 ldr r3, [r5] 2db8: e5942050 ldr r2, [r4, #80] ; 0x50 2dbc: e5930008 ldr r0, [r3, #8] 2dc0: e59f1058 ldr r1, [pc, #88] ; 2e20 2dc4: eb003dc1 bl 124d0 (uint32_t)the_jnode->info.file.size ); #endif break; 2dc8: eaffffd9 b 2d34 fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2dcc: e5952000 ldr r2, [r5] <== NOT EXECUTED 2dd0: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 2dd4: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED 2dd8: e59f1044 ldr r1, [pc, #68] ; 2e24 <== NOT EXECUTED 2ddc: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED 2de0: eb003dba bl 124d0 <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 2de4: eaffffd2 b 2d34 <== NOT EXECUTED void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 2de8: e59f0014 ldr r0, [pc, #20] ; 2e04 <== NOT EXECUTED 2dec: e3a01038 mov r1, #56 ; 0x38 <== NOT EXECUTED 2df0: e59f2010 ldr r2, [pc, #16] ; 2e08 <== NOT EXECUTED 2df4: e59f302c ldr r3, [pc, #44] ; 2e28 <== NOT EXECUTED 2df8: eb00021c bl 3670 <__assert_func> <== NOT EXECUTED 2dfc: 000221b4 .word 0x000221b4 2e00: 00023d2c .word 0x00023d2c 2e04: 00023c90 .word 0x00023c90 2e08: 0002270c .word 0x0002270c 2e0c: 00023c8c .word 0x00023c8c 2e10: 00023d40 .word 0x00023d40 2e14: 00023c80 .word 0x00023c80 2e18: 00023ce8 .word 0x00023ce8 2e1c: 00023d18 .word 0x00023d18 2e20: 00023d0c .word 0x00023d0c 2e24: 00023cfc .word 0x00023cfc 2e28: 00023cdc .word 0x00023cdc 00002130 : ) { IMFS_jnode_t *node; int i; node = loc->node_access; 2130: e5903000 ldr r3, [r0] if ( node->type != IMFS_SYM_LINK ) 2134: e593004c ldr r0, [r3, #76] ; 0x4c 2138: e3500004 cmp r0, #4 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 213c: e92d4010 push {r4, lr} IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 2140: 1a000013 bne 2194 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2144: e3520000 cmp r2, #0 2148: 0a00000f beq 218c 214c: e5930050 ldr r0, [r3, #80] ; 0x50 2150: e5d0c000 ldrb ip, [r0] 2154: e35c0000 cmp ip, #0 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 2158: 13a04000 movne r4, #0 215c: 11a00004 movne r0, r4 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2160: 0a000009 beq 218c 2164: e2800001 add r0, r0, #1 2168: e1520000 cmp r2, r0 buf[i] = node->info.sym_link.name[i]; 216c: e7c1c004 strb ip, [r1, r4] node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2170: e1a04000 mov r4, r0 2174: 98bd8010 popls {r4, pc} 2178: e593c050 ldr ip, [r3, #80] ; 0x50 217c: e7dcc000 ldrb ip, [ip, r0] 2180: e35c0000 cmp ip, #0 2184: 1afffff6 bne 2164 2188: e8bd8010 pop {r4, pc} 218c: e3a00000 mov r0, #0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 2190: e8bd8010 pop {r4, pc} <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 2194: eb0042d8 bl 12cfc <__errno> <== NOT EXECUTED 2198: e3a03016 mov r3, #22 <== NOT EXECUTED 219c: e5803000 str r3, [r0] <== NOT EXECUTED 21a0: e3e00000 mvn r0, #0 <== NOT EXECUTED 21a4: e8bd8010 pop {r4, pc} <== NOT EXECUTED 000021a8 : 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 */ ) { 21a8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 21ac: 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 */ ) { 21b0: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 21b4: e1a01003 mov r1, r3 <== NOT EXECUTED rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { 21b8: 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 ); 21bc: e284000c add r0, r4, #12 <== NOT EXECUTED 21c0: e3a02020 mov r2, #32 <== NOT EXECUTED 21c4: eb0046bd bl 13cc0 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 21c8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 21cc: e3530000 cmp r3, #0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 21d0: 11a00004 movne r0, r4 <== NOT EXECUTED 21d4: 1b0012f5 blne 6db0 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 21d8: 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 ); 21dc: e1a01004 mov r1, r4 <== NOT EXECUTED 21e0: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; 21e4: e5843008 str r3, [r4, #8] <== NOT EXECUTED 21e8: eb0012e5 bl 6d84 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 21ec: e1a0000d mov r0, sp <== NOT EXECUTED 21f0: e3a01000 mov r1, #0 <== NOT EXECUTED 21f4: eb0001f9 bl 29e0 <== NOT EXECUTED 21f8: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 21fc: 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 ); 2200: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } 2204: e28dd008 add sp, sp, #8 <== NOT EXECUTED 2208: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00008eb0 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 8eb0: e5903000 ldr r3, [r0] switch ( the_jnode->type ) { 8eb4: e593204c ldr r2, [r3, #76] ; 0x4c 8eb8: e2422002 sub r2, r2, #2 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 8ebc: e92d4800 push {fp, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 8ec0: e3520005 cmp r2, #5 8ec4: 979ff102 ldrls pc, [pc, r2, lsl #2] 8ec8: ea000020 b 8f50 <== NOT EXECUTED 8ecc: 00008f3c .word 0x00008f3c <== NOT EXECUTED 8ed0: 00008f50 .word 0x00008f50 <== NOT EXECUTED 8ed4: 00008ee4 .word 0x00008ee4 <== NOT EXECUTED 8ed8: 00008f64 .word 0x00008f64 <== NOT EXECUTED 8edc: 00008f64 .word 0x00008f64 <== NOT EXECUTED 8ee0: 00008ee4 .word 0x00008ee4 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 8ee4: e3a0b000 mov fp, #0 <== NOT EXECUTED 8ee8: e3a0c000 mov ip, #0 <== NOT EXECUTED 8eec: e581b020 str fp, [r1, #32] <== NOT EXECUTED 8ef0: e581c024 str ip, [r1, #36] ; 0x24 <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 8ef4: e5932038 ldr r2, [r3, #56] ; 0x38 8ef8: 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; 8efc: e5932040 ldr r2, [r3, #64] ; 0x40 8f00: e5812028 str r2, [r1, #40] ; 0x28 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 8f04: e1d3c3b4 ldrh ip, [r3, #52] ; 0x34 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; 8f08: e5932044 ldr r2, [r3, #68] ; 0x44 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 8f0c: e1c1c1b0 strh ip, [r1, #16] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 8f10: e5812030 str r2, [r1, #48] ; 0x30 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 8f14: e5932030 ldr r2, [r3, #48] ; 0x30 8f18: e581200c str r2, [r1, #12] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 8f1c: e1d323bc ldrh r2, [r3, #60] ; 0x3c 8f20: e1c121b2 strh r2, [r1, #18] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 8f24: e5930048 ldr r0, [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; 8f28: e1d333be ldrh r3, [r3, #62] ; 0x3e buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 8f2c: e5810038 str r0, [r1, #56] ; 0x38 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 8f30: e1c131b4 strh r3, [r1, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 8f34: e3a00000 mov r0, #0 return 0; } 8f38: e8bd8800 pop {fp, pc} switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 8f3c: e5930054 ldr r0, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 8f40: e5932050 ldr r2, [r3, #80] ; 0x50 8f44: e581001c str r0, [r1, #28] 8f48: e5812018 str r2, [r1, #24] break; 8f4c: eaffffe8 b 8ef4 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 8f50: eb00121a bl d7c0 <__errno> <== NOT EXECUTED 8f54: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 8f58: e5803000 str r3, [r0] <== NOT EXECUTED 8f5c: e3e00000 mvn r0, #0 <== NOT EXECUTED 8f60: e8bd8800 pop {fp, pc} <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 8f64: e283c050 add ip, r3, #80 ; 0x50 8f68: e89c1800 ldm ip, {fp, ip} 8f6c: e581b020 str fp, [r1, #32] 8f70: e581c024 str ip, [r1, #36] ; 0x24 break; 8f74: eaffffde b 8ef4 0000220c : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 220c: e92d40f0 push {r4, r5, r6, r7, lr} 2210: e1a06000 mov r6, r0 2214: 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 ); 2218: e1a00002 mov r0, r2 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 221c: e1a07002 mov r7, r2 2220: e1a05001 mov r5, r1 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 2224: eb00468d bl 13c60 2228: e28d4004 add r4, sp, #4 222c: e1a01000 mov r1, r0 2230: e1a02004 mov r2, r4 2234: e28d303c add r3, sp, #60 ; 0x3c 2238: e1a00007 mov r0, r7 223c: eb002f5a bl dfac /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2240: e1a00005 mov r0, r5 2244: eb004671 bl 13c10 if (info.sym_link.name == NULL) { 2248: 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); 224c: e58d0028 str r0, [sp, #40] ; 0x28 if (info.sym_link.name == NULL) { 2250: 0a00000e beq 2290 * 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( 2254: e3a03ca2 mov r3, #41472 ; 0xa200 2258: e28dc028 add ip, sp, #40 ; 0x28 225c: e1a00006 mov r0, r6 2260: e1a02004 mov r2, r4 2264: e2433001 sub r3, r3, #1 2268: e3a01004 mov r1, #4 226c: e58dc000 str ip, [sp] 2270: eb002c06 bl d290 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2274: e3500000 cmp r0, #0 2278: 13a00000 movne r0, #0 227c: 0a000001 beq 2288 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 2280: e28dd040 add sp, sp, #64 ; 0x40 2284: e8bd80f0 pop {r4, r5, r6, r7, pc} ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); 2288: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED 228c: eb0001aa bl 293c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2290: eb004299 bl 12cfc <__errno> <== NOT EXECUTED 2294: e3a0300c mov r3, #12 <== NOT EXECUTED 2298: e5803000 str r3, [r0] <== NOT EXECUTED 229c: e3e00000 mvn r0, #0 <== NOT EXECUTED 22a0: eafffff6 b 2280 <== NOT EXECUTED 000022a4 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 22a4: e92d41f0 push {r4, r5, r6, r7, r8, lr} IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 22a8: e5915000 ldr r5, [r1] /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 22ac: e595304c ldr r3, [r5, #76] ; 0x4c 22b0: e3530003 cmp r3, #3 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 22b4: e24dd01c sub sp, sp, #28 22b8: e1a04001 mov r4, r1 22bc: e1a06000 mov r6, r0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 22c0: 0a000006 beq 22e0 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 22c4: e1a00006 mov r0, r6 22c8: e1a01004 mov r1, r4 22cc: e5943008 ldr r3, [r4, #8] 22d0: e1a0e00f mov lr, pc 22d4: e593f034 ldr pc, [r3, #52] ; 0x34 return result; } 22d8: e28dd01c add sp, sp, #28 22dc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 22e0: e595e050 ldr lr, [r5, #80] ; 0x50 22e4: e35e0000 cmp lr, #0 22e8: 0a00001f beq 236c rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 22ec: e1a07001 mov r7, r1 22f0: e8b7000f ldm r7!, {r0, r1, r2, r3} 22f4: e1a0c00d mov ip, sp 22f8: e8ac000f stmia ip!, {r0, r1, r2, r3} the_link.node_access = node->info.hard_link.link_node; 22fc: e28d801c add r8, sp, #28 2300: e528e01c str lr, [r8, #-28]! if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 2304: e5973000 ldr r3, [r7] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 2308: 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; 230c: e58c3000 str r3, [ip] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 2310: eb002c30 bl d3d8 /* * 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) 2314: e5953050 ldr r3, [r5, #80] ; 0x50 2318: e1d323b4 ldrh r2, [r3, #52] ; 0x34 231c: e3520001 cmp r2, #1 2320: 0a000008 beq 2348 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2324: e2422001 sub r2, r2, #1 2328: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( node->info.hard_link.link_node ); 232c: e28d0014 add r0, sp, #20 2330: e3a01000 mov r1, #0 2334: eb0001a9 bl 29e0 2338: e5953050 ldr r3, [r5, #80] ; 0x50 233c: e59d2014 ldr r2, [sp, #20] 2340: e5832048 str r2, [r3, #72] ; 0x48 2344: eaffffde b 22c4 * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 2348: e1a0100d mov r1, sp 234c: e1a00006 mov r0, r6 2350: e59d3008 ldr r3, [sp, #8] 2354: e1a0e00f mov lr, pc 2358: e593f034 ldr pc, [r3, #52] ; 0x34 if ( result != 0 ) 235c: e3500000 cmp r0, #0 2360: 13e00000 mvnne r0, #0 2364: 0affffd6 beq 22c4 2368: eaffffda b 22d8 */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 236c: eb004262 bl 12cfc <__errno> <== NOT EXECUTED 2370: e3a03016 mov r3, #22 <== NOT EXECUTED 2374: e5803000 str r3, [r0] <== NOT EXECUTED 2378: e3e00000 mvn r0, #0 <== NOT EXECUTED 237c: eaffffd5 b 22d8 <== NOT EXECUTED 00002380 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2380: e5903008 ldr r3, [r0, #8] /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2384: e593204c ldr r2, [r3, #76] ; 0x4c 2388: e3520001 cmp r2, #1 #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 238c: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2390: 1a000005 bne 23ac /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 2394: e593205c ldr r2, [r3, #92] ; 0x5c 2398: e3520000 cmp r2, #0 239c: 0a000007 beq 23c0 /* * 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; 23a0: e3a00000 mov r0, #0 23a4: e583005c str r0, [r3, #92] ; 0x5c return 0; } 23a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 23ac: eb004252 bl 12cfc <__errno> <== NOT EXECUTED 23b0: e3a03014 mov r3, #20 <== NOT EXECUTED 23b4: e5803000 str r3, [r0] <== NOT EXECUTED 23b8: e3e00000 mvn r0, #0 <== NOT EXECUTED 23bc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 23c0: eb00424d bl 12cfc <__errno> <== NOT EXECUTED 23c4: e3a03016 mov r3, #22 <== NOT EXECUTED 23c8: e5803000 str r3, [r0] <== NOT EXECUTED 23cc: e3e00000 mvn r0, #0 <== NOT EXECUTED 23d0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00001524 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 1524: e59f30d0 ldr r3, [pc, #208] ; 15fc 1528: e5933000 ldr r3, [r3] 152c: e3530000 cmp r3, #0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 1530: e92d4070 push {r4, r5, r6, lr} 1534: e1a05000 mov r5, r0 1538: e1a06001 mov r6, r1 153c: e1a04002 mov r4, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { (*rtems_malloc_statistics_helpers->initialize)(); 1540: 11a0e00f movne lr, pc 1544: 1593f000 ldrne pc, [r3] } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 1548: eb002024 bl 95e0 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 154c: e59f30ac ldr r3, [pc, #172] ; 1600 1550: e5933000 ldr r3, [r3] 1554: e3530000 cmp r3, #0 1558: 0a000006 beq 1578 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 155c: e1a00005 mov r0, r5 <== NOT EXECUTED 1560: e1a01004 mov r1, r4 <== NOT EXECUTED 1564: e1a0e00f mov lr, pc <== NOT EXECUTED 1568: e593f000 ldr pc, [r3] <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 156c: e0856006 add r6, r5, r6 <== NOT EXECUTED 1570: e0606006 rsb r6, r0, r6 <== NOT EXECUTED 1574: e1a05000 mov r5, r0 <== NOT EXECUTED * of the time under UNIX because zero'ing memory when it is first * given to a process eliminates the chance of a process seeing data * left over from another process. This would be a security violation. */ if ( 1578: e59f4084 ldr r4, [pc, #132] ; 1604 157c: e5d41000 ldrb r1, [r4] 1580: e3510000 cmp r1, #0 1584: 1a000018 bne 15ec !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 1588: e59f3078 ldr r3, [pc, #120] ; 1608 158c: e5d33028 ldrb r3, [r3, #40] ; 0x28 1590: e3530000 cmp r3, #0 1594: 1a00000e bne 15d4 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 1598: e59f406c ldr r4, [pc, #108] ; 160c 159c: e1a01005 mov r1, r5 15a0: e1a02006 mov r2, r6 15a4: e5940000 ldr r0, [r4] 15a8: e3a03004 mov r3, #4 15ac: eb001000 bl 55b4 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 15b0: e3500000 cmp r0, #0 15b4: 0a00000e beq 15f4 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 15b8: e59f5050 ldr r5, [pc, #80] ; 1610 15bc: e5940000 ldr r0, [r4] 15c0: e5954000 ldr r4, [r5] 15c4: eb0012ea bl 6174 <_Protected_heap_Get_size> 15c8: e0800004 add r0, r0, r4 15cc: e5850000 str r0, [r5] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 15d0: e8bd8070 pop {r4, r5, r6, pc} if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 15d4: e1a00005 mov r0, r5 15d8: e1a02006 mov r2, r6 15dc: eb0032c1 bl e0e8 * 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 ) { 15e0: e5d43000 ldrb r3, [r4] 15e4: e3530000 cmp r3, #0 15e8: 0affffea beq 1598 15ec: e59f4018 ldr r4, [pc, #24] ; 160c 15f0: eafffff0 b 15b8 heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 15f4: e280001a add r0, r0, #26 <== NOT EXECUTED 15f8: eb000dfb bl 4dec <== NOT EXECUTED 15fc: 0001a708 .word 0x0001a708 1600: 0001a70c .word 0x0001a70c 1604: 0001a705 .word 0x0001a705 1608: 00019144 .word 0x00019144 160c: 0001909c .word 0x0001909c 1610: 0001a8f0 .word 0x0001a8f0 000039e4 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 39e4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 39e8: e250a000 subs sl, r0, #0 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 39ec: e24dd010 sub sp, sp, #16 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 39f0: 0a000031 beq 3abc <== NOT EXECUTED return; if ( !print_handler ) 39f4: e59f4110 ldr r4, [pc, #272] ; 3b0c <== NOT EXECUTED 39f8: e5947004 ldr r7, [r4, #4] <== NOT EXECUTED 39fc: e3570000 cmp r7, #0 <== NOT EXECUTED 3a00: 0a00002d beq 3abc <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 3a04: e37a0001 cmn sl, #1 <== NOT EXECUTED 3a08: 0a000032 beq 3ad8 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 3a0c: e59a80f4 ldr r8, [sl, #244] ; 0xf4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 3a10: e28a50c4 add r5, sl, #196 ; 0xc4 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 3a14: e8950240 ldm r5, {r6, r9} <== NOT EXECUTED 3a18: e2899010 add r9, r9, #16 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 3a1c: e2466010 sub r6, r6, #16 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 3a20: e1a00009 mov r0, r9 <== NOT EXECUTED 3a24: e1a01006 mov r1, r6 <== NOT EXECUTED 3a28: ebffffd7 bl 398c <== NOT EXECUTED if ( high_water_mark ) 3a2c: e250b000 subs fp, r0, #0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 3a30: 10899006 addne r9, r9, r6 <== NOT EXECUTED 3a34: 106bb009 rsbne fp, fp, r9 <== NOT EXECUTED else used = 0; if ( the_thread ) { 3a38: e35a0000 cmp sl, #0 <== NOT EXECUTED 3a3c: 0a00002c beq 3af4 <== NOT EXECUTED (*print_handler)( 3a40: e59aa008 ldr sl, [sl, #8] <== NOT EXECUTED 3a44: e28d2008 add r2, sp, #8 <== NOT EXECUTED 3a48: e3a01005 mov r1, #5 <== NOT EXECUTED 3a4c: e1a0000a mov r0, sl <== NOT EXECUTED 3a50: e5949008 ldr r9, [r4, #8] <== NOT EXECUTED 3a54: eb001850 bl 9b9c <== NOT EXECUTED 3a58: e1a0200a mov r2, sl <== NOT EXECUTED 3a5c: e1a03000 mov r3, r0 <== NOT EXECUTED 3a60: e59f10a8 ldr r1, [pc, #168] ; 3b10 <== NOT EXECUTED 3a64: e1a00009 mov r0, r9 <== NOT EXECUTED 3a68: e1a0e00f mov lr, pc <== NOT EXECUTED 3a6c: e12fff17 bx r7 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 3a70: e5953000 ldr r3, [r5] <== NOT EXECUTED 3a74: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED 3a78: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3a7c: e0823003 add r3, r2, r3 <== NOT EXECUTED 3a80: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 3a84: e58d8000 str r8, [sp] <== NOT EXECUTED 3a88: e58d6004 str r6, [sp, #4] <== NOT EXECUTED 3a8c: e59f1080 ldr r1, [pc, #128] ; 3b14 <== NOT EXECUTED 3a90: e1a0e00f mov lr, pc <== NOT EXECUTED 3a94: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 3a98: e5943000 ldr r3, [r4] <== NOT EXECUTED 3a9c: e3530000 cmp r3, #0 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 3aa0: e59f3064 ldr r3, [pc, #100] ; 3b0c <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 3aa4: 0a000006 beq 3ac4 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 3aa8: e1a0200b mov r2, fp <== NOT EXECUTED 3aac: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 3ab0: e59f1060 ldr r1, [pc, #96] ; 3b18 <== NOT EXECUTED 3ab4: e1a0e00f mov lr, pc <== NOT EXECUTED 3ab8: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED } } 3abc: e28dd010 add sp, sp, #16 <== NOT EXECUTED 3ac0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 3ac4: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 3ac8: e59f104c ldr r1, [pc, #76] ; 3b1c <== NOT EXECUTED 3acc: e1a0e00f mov lr, pc <== NOT EXECUTED 3ad0: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED 3ad4: eafffff8 b 3abc <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 3ad8: e59f5040 ldr r5, [pc, #64] ; 3b20 <== NOT EXECUTED 3adc: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 3ae0: e3530000 cmp r3, #0 <== NOT EXECUTED 3ae4: 13a08000 movne r8, #0 <== NOT EXECUTED 3ae8: 11a0a008 movne sl, r8 <== NOT EXECUTED 3aec: 1affffc8 bne 3a14 <== NOT EXECUTED 3af0: eafffff1 b 3abc <== 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 ); 3af4: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 3af8: e59f1024 ldr r1, [pc, #36] ; 3b24 <== NOT EXECUTED 3afc: e3e02000 mvn r2, #0 <== NOT EXECUTED 3b00: e1a0e00f mov lr, pc <== NOT EXECUTED 3b04: e12fff17 bx r7 <== NOT EXECUTED 3b08: eaffffd8 b 3a70 <== NOT EXECUTED 3b0c: 00064310 .word 0x00064310 3b10: 0005d58c .word 0x0005d58c 3b14: 0005d5ac .word 0x0005d5ac 3b18: 0005d5dc .word 0x0005d5dc 3b1c: 0005d5cc .word 0x0005d5cc 3b20: 00066dfc .word 0x00066dfc 3b24: 0005d59c .word 0x0005d59c 0000398c : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 398c: e2803010 add r3, r0, #16 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 3990: e3c11003 bic r1, r1, #3 <== NOT EXECUTED 3994: e0831001 add r1, r3, r1 <== NOT EXECUTED 3998: e1530001 cmp r3, r1 <== NOT EXECUTED 399c: 2a00000c bcs 39d4 <== NOT EXECUTED if (*base != U32_PATTERN) 39a0: e3a02ca6 mov r2, #42496 ; 0xa600 <== NOT EXECUTED 39a4: e242205b sub r2, r2, #91 ; 0x5b <== NOT EXECUTED 39a8: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 39ac: e1822802 orr r2, r2, r2, lsl #16 <== NOT EXECUTED 39b0: e1500002 cmp r0, r2 <== NOT EXECUTED 39b4: 0a000003 beq 39c8 <== NOT EXECUTED 39b8: ea000007 b 39dc <== NOT EXECUTED 39bc: e5932000 ldr r2, [r3] <== NOT EXECUTED 39c0: e1520000 cmp r2, r0 <== NOT EXECUTED 39c4: 1a000004 bne 39dc <== 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++) 39c8: e2833004 add r3, r3, #4 <== NOT EXECUTED 39cc: e1510003 cmp r1, r3 <== NOT EXECUTED 39d0: 8afffff9 bhi 39bc <== NOT EXECUTED 39d4: e3a00000 mov r0, #0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 39d8: e12fff1e bx lr <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; 39dc: e1a00003 mov r0, r3 <== NOT EXECUTED 39e0: e12fff1e bx lr <== NOT EXECUTED 0000431c <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 431c: e92d40f0 push {r4, r5, r6, r7, lr} rtems_event_set event_condition; rtems_event_set seized_events; rtems_option option_set; RTEMS_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 4320: e5901104 ldr r1, [r0, #260] ; 0x104 option_set = (rtems_option) the_thread->Wait.option; 4324: e5905030 ldr r5, [r0, #48] ; 0x30 */ void _Event_Surrender( Thread_Control *the_thread ) { 4328: e1a04000 mov r4, r0 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 432c: e10f0000 mrs r0, CPSR 4330: e3803080 orr r3, r0, #128 ; 0x80 4334: e129f003 msr CPSR_fc, r3 api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); pending_events = api->pending_events; 4338: e5912000 ldr r2, [r1] event_condition = (rtems_event_set) the_thread->Wait.count; 433c: e5943024 ldr r3, [r4, #36] ; 0x24 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 4340: e013c002 ands ip, r3, r2 4344: 0a000023 beq 43d8 <_Event_Surrender+0xbc> /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 4348: e59f6110 ldr r6, [pc, #272] ; 4460 <_Event_Surrender+0x144> 434c: e5966000 ldr r6, [r6] 4350: e3560000 cmp r6, #0 4354: 0a000003 beq 4368 <_Event_Surrender+0x4c> 4358: e59f6104 ldr r6, [pc, #260] ; 4464 <_Event_Surrender+0x148> 435c: e5966000 ldr r6, [r6] 4360: e1540006 cmp r4, r6 4364: 0a000028 beq 440c <_Event_Surrender+0xf0> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 4368: e5946010 ldr r6, [r4, #16] 436c: e3160c01 tst r6, #256 ; 0x100 4370: 0a000016 beq 43d0 <_Event_Surrender+0xb4> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 4374: e153000c cmp r3, ip 4378: 0a000001 beq 4384 <_Event_Surrender+0x68> 437c: e3150002 tst r5, #2 4380: 0a000012 beq 43d0 <_Event_Surrender+0xb4> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 4384: e5943028 ldr r3, [r4, #40] ; 0x28 /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 4388: e1c2200c bic r2, r2, ip 438c: e5812000 str r2, [r1] the_thread->Wait.count = 0; 4390: e3a02000 mov r2, #0 4394: e5842024 str r2, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 4398: e583c000 str ip, [r3] static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 439c: e10f3000 mrs r3, CPSR 43a0: e129f000 msr CPSR_fc, r0 43a4: e129f003 msr CPSR_fc, r3 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 43a8: e5943050 ldr r3, [r4, #80] ; 0x50 43ac: e3530002 cmp r3, #2 43b0: 0a00000a beq 43e0 <_Event_Surrender+0xc4> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 43b4: e129f000 msr CPSR_fc, r0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 43b8: e3a01201 mov r1, #268435456 ; 0x10000000 43bc: e2811bff add r1, r1, #261120 ; 0x3fc00 43c0: e1a00004 mov r0, r4 43c4: e2811ffe add r1, r1, #1016 ; 0x3f8 } return; } } _ISR_Enable( level ); } 43c8: e8bd40f0 pop {r4, r5, r6, r7, lr} 43cc: ea0007e7 b 6370 <_Thread_Clear_state> 43d0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED 43d4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 43d8: e129f000 msr CPSR_fc, r0 43dc: e8bd80f0 pop {r4, r5, r6, r7, pc} RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 43e0: e3a03003 mov r3, #3 43e4: e5843050 str r3, [r4, #80] ; 0x50 43e8: e129f000 msr CPSR_fc, r0 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); 43ec: e2840048 add r0, r4, #72 ; 0x48 43f0: eb000d92 bl 7a40 <_Watchdog_Remove> 43f4: e3a01201 mov r1, #268435456 ; 0x10000000 43f8: e2811bff add r1, r1, #261120 ; 0x3fc00 43fc: e1a00004 mov r0, r4 4400: e2811ffe add r1, r1, #1016 ; 0x3f8 } return; } } _ISR_Enable( level ); } 4404: e8bd40f0 pop {r4, r5, r6, r7, lr} 4408: ea0007d8 b 6370 <_Thread_Clear_state> * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 440c: e59f6054 ldr r6, [pc, #84] ; 4468 <_Event_Surrender+0x14c> 4410: e5967000 ldr r7, [r6] /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 4414: e3570002 cmp r7, #2 4418: 0a000002 beq 4428 <_Event_Surrender+0x10c> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { 441c: e5967000 ldr r7, [r6] /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 4420: e3570001 cmp r7, #1 4424: 1affffcf bne 4368 <_Event_Surrender+0x4c> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 4428: e153000c cmp r3, ip 442c: 0a000001 beq 4438 <_Event_Surrender+0x11c> 4430: e3150002 tst r5, #2 4434: 0a000007 beq 4458 <_Event_Surrender+0x13c> api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 4438: e1c2200c bic r2, r2, ip 443c: e5812000 str r2, [r1] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 4440: e5943028 ldr r3, [r4, #40] ; 0x28 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 4444: e3a02003 mov r2, #3 4448: e5862000 str r2, [r6] _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 444c: e3a02000 mov r2, #0 4450: e5842024 str r2, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 4454: e583c000 str ip, [r3] 4458: e129f000 msr CPSR_fc, r0 445c: e8bd80f0 pop {r4, r5, r6, r7, pc} 4460: 0001aadc .word 0x0001aadc 4464: 0001ab00 .word 0x0001ab00 4468: 0001b2d0 .word 0x0001b2d0 0000a87c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a87c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a880: e1a08002 mov r8, r2 Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; a884: e5902010 ldr r2, [r0, #16] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a888: e24dd01c sub sp, sp, #28 a88c: e1a05001 mov r5, r1 - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { a890: e2911004 adds r1, r1, #4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a894: e1a07000 mov r7, r0 - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { a898: e58d1000 str r1, [sp] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a89c: e1a0b003 mov fp, r3 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; a8a0: e590a008 ldr sl, [r0, #8] Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; a8a4: e58d200c str r2, [sp, #12] uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { a8a8: 2a000076 bcs aa88 <_Heap_Allocate_aligned_with_boundary+0x20c> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { a8ac: e3530000 cmp r3, #0 a8b0: 1a000072 bne aa80 <_Heap_Allocate_aligned_with_boundary+0x204> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a8b4: e157000a cmp r7, sl a8b8: 03a06000 moveq r6, #0 a8bc: 0a000074 beq aa94 <_Heap_Allocate_aligned_with_boundary+0x218> uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a8c0: e59d300c ldr r3, [sp, #12] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; a8c4: e2651004 rsb r1, r5, #4 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a8c8: e2833007 add r3, r3, #7 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a8cc: e3a06000 mov r6, #0 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a8d0: e58d3010 str r3, [sp, #16] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; a8d4: e58d1014 str r1, [sp, #20] a8d8: ea000004 b a8f0 <_Heap_Allocate_aligned_with_boundary+0x74> boundary ); } } if ( alloc_begin != 0 ) { a8dc: e3540000 cmp r4, #0 a8e0: 1a000059 bne aa4c <_Heap_Allocate_aligned_with_boundary+0x1d0> break; } block = block->next; a8e4: e59aa008 ldr sl, [sl, #8] if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a8e8: e157000a cmp r7, sl a8ec: 0a000068 beq aa94 <_Heap_Allocate_aligned_with_boundary+0x218> /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { a8f0: e59a9004 ldr r9, [sl, #4] a8f4: e59d2000 ldr r2, [sp] a8f8: e1520009 cmp r2, r9 while ( block != free_list_tail ) { _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; a8fc: e2866001 add r6, r6, #1 /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { a900: 2afffff7 bcs a8e4 <_Heap_Allocate_aligned_with_boundary+0x68> if ( alignment == 0 ) { a904: e3580000 cmp r8, #0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a908: 028a4008 addeq r4, sl, #8 a90c: 0afffff2 beq a8dc <_Heap_Allocate_aligned_with_boundary+0x60> uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; a910: e59d1014 ldr r1, [sp, #20] uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; a914: e3c99001 bic r9, r9, #1 a918: e08a9009 add r9, sl, r9 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a91c: e5973014 ldr r3, [r7, #20] uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a920: e59d2010 ldr r2, [sp, #16] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; a924: e0814009 add r4, r1, r9 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a928: e58d3004 str r3, [sp, #4] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a92c: e1a00004 mov r0, r4 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a930: e0633002 rsb r3, r3, r2 a934: e1a01008 mov r1, r8 a938: e0839009 add r9, r3, r9 a93c: eb003156 bl 16e9c <__umodsi3> a940: e0604004 rsb r4, r0, r4 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a944: e28a3008 add r3, sl, #8 uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { a948: e1590004 cmp r9, r4 a94c: e58d3008 str r3, [sp, #8] a950: 2a000003 bcs a964 <_Heap_Allocate_aligned_with_boundary+0xe8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a954: e1a00009 mov r0, r9 a958: e1a01008 mov r1, r8 a95c: eb00314e bl 16e9c <__umodsi3> a960: e0604009 rsb r4, r0, r9 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { a964: e35b0000 cmp fp, #0 a968: 0a000025 beq aa04 <_Heap_Allocate_aligned_with_boundary+0x188> /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; a96c: e0849005 add r9, r4, r5 a970: e1a00009 mov r0, r9 a974: e1a0100b mov r1, fp a978: eb003147 bl 16e9c <__umodsi3> a97c: e0600009 rsb r0, r0, r9 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { a980: e1590000 cmp r9, r0 a984: 93a03000 movls r3, #0 a988: 83a03001 movhi r3, #1 a98c: e1540000 cmp r4, r0 a990: 23a03000 movcs r3, #0 a994: e3530000 cmp r3, #0 a998: 0a000019 beq aa04 <_Heap_Allocate_aligned_with_boundary+0x188> alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; a99c: e59d1008 ldr r1, [sp, #8] a9a0: e0819005 add r9, r1, r5 uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { a9a4: e1590000 cmp r9, r0 a9a8: 958d6018 strls r6, [sp, #24] a9ac: 9a000002 bls a9bc <_Heap_Allocate_aligned_with_boundary+0x140> a9b0: eaffffcb b a8e4 <_Heap_Allocate_aligned_with_boundary+0x68> a9b4: e1590000 cmp r9, r0 a9b8: 8a000037 bhi aa9c <_Heap_Allocate_aligned_with_boundary+0x220> return 0; } alloc_begin = boundary_line - alloc_size; a9bc: e0654000 rsb r4, r5, r0 a9c0: e1a01008 mov r1, r8 a9c4: e1a00004 mov r0, r4 a9c8: eb003133 bl 16e9c <__umodsi3> a9cc: e0604004 rsb r4, r0, r4 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; a9d0: e0846005 add r6, r4, r5 a9d4: e1a00006 mov r0, r6 a9d8: e1a0100b mov r1, fp a9dc: eb00312e bl 16e9c <__umodsi3> a9e0: e0600006 rsb r0, r0, r6 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { a9e4: e1560000 cmp r6, r0 a9e8: 93a03000 movls r3, #0 a9ec: 83a03001 movhi r3, #1 a9f0: e1540000 cmp r4, r0 a9f4: 23a03000 movcs r3, #0 a9f8: e3530000 cmp r3, #0 a9fc: 1affffec bne a9b4 <_Heap_Allocate_aligned_with_boundary+0x138> aa00: e59d6018 ldr r6, [sp, #24] boundary_line = _Heap_Align_down( alloc_end, boundary ); } } /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { aa04: e59d2008 ldr r2, [sp, #8] aa08: e1520004 cmp r2, r4 aa0c: 8affffb4 bhi a8e4 <_Heap_Allocate_aligned_with_boundary+0x68> uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; aa10: e59d100c ldr r1, [sp, #12] aa14: e1a00004 mov r0, r4 aa18: eb00311f bl 16e9c <__umodsi3> aa1c: e26a94ff rsb r9, sl, #-16777216 ; 0xff000000 aa20: e28998ff add r9, r9, #16711680 ; 0xff0000 aa24: e2899cff add r9, r9, #65280 ; 0xff00 aa28: e28990f8 add r9, r9, #248 ; 0xf8 aa2c: e0899004 add r9, r9, r4 if ( free_size >= min_block_size || free_size == 0 ) { aa30: e59d1004 ldr r1, [sp, #4] aa34: e0603009 rsb r3, r0, r9 aa38: e1590000 cmp r9, r0 aa3c: 11510003 cmpne r1, r3 aa40: 8affffa7 bhi a8e4 <_Heap_Allocate_aligned_with_boundary+0x68> boundary ); } } if ( alloc_begin != 0 ) { aa44: e3540000 cmp r4, #0 aa48: 0affffa5 beq a8e4 <_Heap_Allocate_aligned_with_boundary+0x68> block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; aa4c: e597304c ldr r3, [r7, #76] ; 0x4c aa50: e0833006 add r3, r3, r6 aa54: e587304c str r3, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); aa58: e1a0100a mov r1, sl aa5c: e1a03005 mov r3, r5 aa60: e1a00007 mov r0, r7 aa64: e1a02004 mov r2, r4 aa68: ebffeb69 bl 5814 <_Heap_Block_allocate> aa6c: e1a00004 mov r0, r4 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; aa70: e5973044 ldr r3, [r7, #68] ; 0x44 aa74: e1530006 cmp r3, r6 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; aa78: 35876044 strcc r6, [r7, #68] ; 0x44 aa7c: ea000002 b aa8c <_Heap_Allocate_aligned_with_boundary+0x210> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { aa80: e1550003 cmp r5, r3 aa84: 9a000006 bls aaa4 <_Heap_Allocate_aligned_with_boundary+0x228> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; aa88: e3a00000 mov r0, #0 } return (void *) alloc_begin; } aa8c: e28dd01c add sp, sp, #28 aa90: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { aa94: e3a00000 mov r0, #0 aa98: eafffff4 b aa70 <_Heap_Allocate_aligned_with_boundary+0x1f4> aa9c: e59d6018 ldr r6, [sp, #24] <== NOT EXECUTED aaa0: eaffff8f b a8e4 <_Heap_Allocate_aligned_with_boundary+0x68> <== NOT EXECUTED if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { aaa4: e3580000 cmp r8, #0 aaa8: 01a08002 moveq r8, r2 aaac: eaffff80 b a8b4 <_Heap_Allocate_aligned_with_boundary+0x38> 000065a4 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 65a4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { 65a8: e59f35d0 ldr r3, [pc, #1488] ; 6b80 <_Heap_Walk+0x5dc> uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 65ac: e31200ff tst r2, #255 ; 0xff if ( !_System_state_Is_up( _System_state_Get() ) ) { 65b0: e5933000 ldr r3, [r3] uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 65b4: e59f25c8 ldr r2, [pc, #1480] ; 6b84 <_Heap_Walk+0x5e0> 65b8: e59fa5c8 ldr sl, [pc, #1480] ; 6b88 <_Heap_Walk+0x5e4> 65bc: 01a0a002 moveq sl, r2 if ( !_System_state_Is_up( _System_state_Get() ) ) { 65c0: e3530003 cmp r3, #3 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 65c4: e5902010 ldr r2, [r0, #16] uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; 65c8: e5903024 ldr r3, [r0, #36] ; 0x24 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 65cc: e24dd038 sub sp, sp, #56 ; 0x38 65d0: e1a04000 mov r4, r0 65d4: e1a08001 mov r8, r1 uintptr_t const page_size = heap->page_size; 65d8: e58d2020 str r2, [sp, #32] uintptr_t const min_block_size = heap->min_block_size; 65dc: e590b014 ldr fp, [r0, #20] Heap_Block *const last_block = heap->last_block; 65e0: e58d3024 str r3, [sp, #36] ; 0x24 Heap_Block *block = heap->first_block; 65e4: e5905020 ldr r5, [r0, #32] Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { 65e8: 0a000002 beq 65f8 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 65ec: e3a00001 mov r0, #1 block = next_block; } return true; } 65f0: e28dd038 add sp, sp, #56 ; 0x38 65f4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; (*printer)( 65f8: e5900018 ldr r0, [r0, #24] 65fc: e594101c ldr r1, [r4, #28] 6600: e2842008 add r2, r4, #8 6604: e892000c ldm r2, {r2, r3} 6608: e59dc024 ldr ip, [sp, #36] ; 0x24 660c: e98d0003 stmib sp, {r0, r1} 6610: e58d2014 str r2, [sp, #20] 6614: e58d3018 str r3, [sp, #24] 6618: e59f256c ldr r2, [pc, #1388] ; 6b8c <_Heap_Walk+0x5e8> 661c: e58db000 str fp, [sp] 6620: e58d500c str r5, [sp, #12] 6624: e58dc010 str ip, [sp, #16] 6628: e1a00008 mov r0, r8 662c: e3a01000 mov r1, #0 6630: e59d3020 ldr r3, [sp, #32] 6634: e1a0e00f mov lr, pc 6638: e12fff1a bx sl heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { 663c: e59d2020 ldr r2, [sp, #32] 6640: e3520000 cmp r2, #0 6644: 0a000032 beq 6714 <_Heap_Walk+0x170> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 6648: e59d3020 ldr r3, [sp, #32] 664c: e2139003 ands r9, r3, #3 6650: 1a000036 bne 6730 <_Heap_Walk+0x18c> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 6654: e1a0000b mov r0, fp 6658: e59d1020 ldr r1, [sp, #32] 665c: ebffe96d bl c18 <__umodsi3> 6660: e2506000 subs r6, r0, #0 6664: 1a000038 bne 674c <_Heap_Walk+0x1a8> ); return false; } if ( 6668: e2850008 add r0, r5, #8 666c: e59d1020 ldr r1, [sp, #32] 6670: ebffe968 bl c18 <__umodsi3> 6674: e2509000 subs r9, r0, #0 6678: 1a00003b bne 676c <_Heap_Walk+0x1c8> block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 667c: e5957004 ldr r7, [r5, #4] ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 6680: e2176001 ands r6, r7, #1 6684: 0a000040 beq 678c <_Heap_Walk+0x1e8> ); return false; } if ( first_block->prev_size != page_size ) { 6688: e5953000 ldr r3, [r5] 668c: e59dc020 ldr ip, [sp, #32] 6690: e15c0003 cmp ip, r3 6694: 1a000016 bne 66f4 <_Heap_Walk+0x150> ); return false; } if ( _Heap_Is_free( last_block ) ) { 6698: e59d2024 ldr r2, [sp, #36] ; 0x24 669c: e5923004 ldr r3, [r2, #4] 66a0: e3c33001 bic r3, r3, #1 66a4: e0823003 add r3, r2, r3 66a8: e5939004 ldr r9, [r3, #4] 66ac: e2199001 ands r9, r9, #1 66b0: 0a000112 beq 6b00 <_Heap_Walk+0x55c> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 66b4: e5949008 ldr r9, [r4, #8] int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 66b8: e5943010 ldr r3, [r4, #16] const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 66bc: e1540009 cmp r4, r9 int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 66c0: e58d3028 str r3, [sp, #40] ; 0x28 const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 66c4: 0a00006c beq 687c <_Heap_Walk+0x2d8> const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 66c8: e594c020 ldr ip, [r4, #32] RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 66cc: e15c0009 cmp ip, r9 66d0: 9a000034 bls 67a8 <_Heap_Walk+0x204> if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 66d4: e1a00008 mov r0, r8 66d8: e1a03009 mov r3, r9 66dc: e3a01001 mov r1, #1 66e0: e59f24a8 ldr r2, [pc, #1192] ; 6b90 <_Heap_Walk+0x5ec> 66e4: e1a0e00f mov lr, pc 66e8: e12fff1a bx sl 66ec: e3a00000 mov r0, #0 66f0: eaffffbe b 65f0 <_Heap_Walk+0x4c> return false; } if ( first_block->prev_size != page_size ) { (*printer)( 66f4: e1a00008 mov r0, r8 66f8: e58dc000 str ip, [sp] 66fc: e3a01001 mov r1, #1 6700: e59f248c ldr r2, [pc, #1164] ; 6b94 <_Heap_Walk+0x5f0> 6704: e1a0e00f mov lr, pc 6708: e12fff1a bx sl 670c: e1a00009 mov r0, r9 6710: eaffffb6 b 65f0 <_Heap_Walk+0x4c> first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); 6714: e1a00008 mov r0, r8 6718: e3a01001 mov r1, #1 671c: e59f2474 ldr r2, [pc, #1140] ; 6b98 <_Heap_Walk+0x5f4> 6720: e1a0e00f mov lr, pc 6724: e12fff1a bx sl 6728: e59d0020 ldr r0, [sp, #32] 672c: eaffffaf b 65f0 <_Heap_Walk+0x4c> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 6730: e1a00008 mov r0, r8 6734: e3a01001 mov r1, #1 6738: e59f245c ldr r2, [pc, #1116] ; 6b9c <_Heap_Walk+0x5f8> 673c: e1a0e00f mov lr, pc 6740: e12fff1a bx sl 6744: e3a00000 mov r0, #0 6748: eaffffa8 b 65f0 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 674c: e1a00008 mov r0, r8 6750: e1a0300b mov r3, fp 6754: e3a01001 mov r1, #1 6758: e59f2440 ldr r2, [pc, #1088] ; 6ba0 <_Heap_Walk+0x5fc> 675c: e1a0e00f mov lr, pc 6760: e12fff1a bx sl 6764: e1a00009 mov r0, r9 6768: eaffffa0 b 65f0 <_Heap_Walk+0x4c> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 676c: e1a00008 mov r0, r8 6770: e1a03005 mov r3, r5 6774: e3a01001 mov r1, #1 6778: e59f2424 ldr r2, [pc, #1060] ; 6ba4 <_Heap_Walk+0x600> 677c: e1a0e00f mov lr, pc 6780: e12fff1a bx sl 6784: e1a00006 mov r0, r6 6788: eaffff98 b 65f0 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 678c: e1a00008 mov r0, r8 6790: e3a01001 mov r1, #1 6794: e59f240c ldr r2, [pc, #1036] ; 6ba8 <_Heap_Walk+0x604> 6798: e1a0e00f mov lr, pc 679c: e12fff1a bx sl 67a0: e1a00006 mov r0, r6 67a4: eaffff91 b 65f0 <_Heap_Walk+0x4c> && (uintptr_t) block <= (uintptr_t) heap->last_block; 67a8: e5942024 ldr r2, [r4, #36] ; 0x24 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 67ac: e1520009 cmp r2, r9 && (uintptr_t) block <= (uintptr_t) heap->last_block; 67b0: e58d202c str r2, [sp, #44] ; 0x2c RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 67b4: 3affffc6 bcc 66d4 <_Heap_Walk+0x130> ); return false; } if ( 67b8: e2890008 add r0, r9, #8 67bc: e1a01003 mov r1, r3 67c0: e58dc01c str ip, [sp, #28] 67c4: ebffe913 bl c18 <__umodsi3> 67c8: e3500000 cmp r0, #0 67cc: e59dc01c ldr ip, [sp, #28] 67d0: 1a0000d1 bne 6b1c <_Heap_Walk+0x578> ); return false; } if ( _Heap_Is_used( free_block ) ) { 67d4: e5993004 ldr r3, [r9, #4] 67d8: e3c33001 bic r3, r3, #1 67dc: e0893003 add r3, r9, r3 67e0: e5933004 ldr r3, [r3, #4] 67e4: e3130001 tst r3, #1 67e8: 1a0000dc bne 6b60 <_Heap_Walk+0x5bc> ); return false; } if ( free_block->prev != prev_block ) { 67ec: e599200c ldr r2, [r9, #12] 67f0: e1540002 cmp r4, r2 67f4: 1a0000d0 bne 6b3c <_Heap_Walk+0x598> 67f8: e58d7030 str r7, [sp, #48] ; 0x30 67fc: e58db034 str fp, [sp, #52] ; 0x34 6800: e59d702c ldr r7, [sp, #44] ; 0x2c 6804: e59db028 ldr fp, [sp, #40] ; 0x28 6808: e58d502c str r5, [sp, #44] ; 0x2c 680c: e58d6028 str r6, [sp, #40] ; 0x28 6810: e1a0600c mov r6, ip 6814: ea000011 b 6860 <_Heap_Walk+0x2bc> 6818: e1590006 cmp r9, r6 681c: 3affffac bcc 66d4 <_Heap_Walk+0x130> 6820: e1570009 cmp r7, r9 ); return false; } if ( 6824: e2890008 add r0, r9, #8 6828: e1a0100b mov r1, fp 682c: 3affffa8 bcc 66d4 <_Heap_Walk+0x130> 6830: ebffe8f8 bl c18 <__umodsi3> 6834: e3500000 cmp r0, #0 6838: 1a0000b7 bne 6b1c <_Heap_Walk+0x578> ); return false; } if ( _Heap_Is_used( free_block ) ) { 683c: e5993004 ldr r3, [r9, #4] 6840: e3c33001 bic r3, r3, #1 6844: e0833009 add r3, r3, r9 6848: e5933004 ldr r3, [r3, #4] 684c: e3130001 tst r3, #1 6850: 1a0000c2 bne 6b60 <_Heap_Walk+0x5bc> ); return false; } if ( free_block->prev != prev_block ) { 6854: e599200c ldr r2, [r9, #12] 6858: e1520005 cmp r2, r5 685c: 1a0000b6 bne 6b3c <_Heap_Walk+0x598> (*printer)( 6860: e1a05009 mov r5, r9 return false; } prev_block = free_block; free_block = free_block->next; 6864: e5999008 ldr r9, [r9, #8] const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 6868: e1540009 cmp r4, r9 686c: 1affffe9 bne 6818 <_Heap_Walk+0x274> 6870: e28d502c add r5, sp, #44 ; 0x2c 6874: e89508a0 ldm r5, {r5, r7, fp} 6878: e59d6028 ldr r6, [sp, #40] ; 0x28 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 687c: e59d3024 ldr r3, [sp, #36] ; 0x24 6880: e1530005 cmp r3, r5 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 6884: 158db028 strne fp, [sp, #40] ; 0x28 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 6888: 0affff57 beq 65ec <_Heap_Walk+0x48> - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 688c: e3c77001 bic r7, r7, #1 uintptr_t const block_size = _Heap_Block_size( block ); bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { 6890: e21610ff ands r1, r6, #255 ; 0xff RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 6894: e0876005 add r6, r7, r5 6898: 0a000012 beq 68e8 <_Heap_Walk+0x344> (*printer)( 689c: e1a03005 mov r3, r5 68a0: e58d7000 str r7, [sp] 68a4: e1a00008 mov r0, r8 68a8: e3a01000 mov r1, #0 68ac: e59f22f8 ldr r2, [pc, #760] ; 6bac <_Heap_Walk+0x608> 68b0: e1a0e00f mov lr, pc 68b4: e12fff1a bx sl RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 68b8: e5943020 ldr r3, [r4, #32] 68bc: e1530006 cmp r3, r6 68c0: 9a000013 bls 6914 <_Heap_Walk+0x370> block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 68c4: e1a00008 mov r0, r8 68c8: e58d6000 str r6, [sp] 68cc: e1a03005 mov r3, r5 68d0: e3a01001 mov r1, #1 68d4: e59f22d4 ldr r2, [pc, #724] ; 6bb0 <_Heap_Walk+0x60c> 68d8: e1a0e00f mov lr, pc 68dc: e12fff1a bx sl 68e0: e3a00000 mov r0, #0 "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; 68e4: eaffff41 b 65f0 <_Heap_Walk+0x4c> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 68e8: e58d7000 str r7, [sp] 68ec: e5953000 ldr r3, [r5] 68f0: e1a00008 mov r0, r8 68f4: e58d3004 str r3, [sp, #4] 68f8: e59f22b4 ldr r2, [pc, #692] ; 6bb4 <_Heap_Walk+0x610> 68fc: e1a03005 mov r3, r5 6900: e1a0e00f mov lr, pc 6904: e12fff1a bx sl 6908: e5943020 ldr r3, [r4, #32] 690c: e1530006 cmp r3, r6 6910: 8affffeb bhi 68c4 <_Heap_Walk+0x320> 6914: e5943024 ldr r3, [r4, #36] ; 0x24 6918: e1530006 cmp r3, r6 691c: 3affffe8 bcc 68c4 <_Heap_Walk+0x320> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 6920: e1a00007 mov r0, r7 6924: e59d1020 ldr r1, [sp, #32] 6928: ebffe8ba bl c18 <__umodsi3> 692c: e2509000 subs r9, r0, #0 6930: 1a000055 bne 6a8c <_Heap_Walk+0x4e8> ); return false; } if ( block_size < min_block_size ) { 6934: e59d3028 ldr r3, [sp, #40] ; 0x28 6938: e1530007 cmp r3, r7 693c: 8a00005b bhi 6ab0 <_Heap_Walk+0x50c> ); return false; } if ( next_block_begin <= block_begin ) { 6940: e1550006 cmp r5, r6 6944: 2a000064 bcs 6adc <_Heap_Walk+0x538> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 6948: e5963004 ldr r3, [r6, #4] 694c: e3130001 tst r3, #1 6950: 1a000036 bne 6a30 <_Heap_Walk+0x48c> block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 6954: e595b004 ldr fp, [r5, #4] Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 6958: e595200c ldr r2, [r5, #12] return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 695c: e5943008 ldr r3, [r4, #8] - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 6960: e3cb7001 bic r7, fp, #1 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 6964: e1530002 cmp r3, r2 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 6968: e594100c ldr r1, [r4, #12] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 696c: e0859007 add r9, r5, r7 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 6970: 059f0240 ldreq r0, [pc, #576] ; 6bb8 <_Heap_Walk+0x614> 6974: 0a000003 beq 6988 <_Heap_Walk+0x3e4> "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 6978: e59fc23c ldr ip, [pc, #572] ; 6bbc <_Heap_Walk+0x618> 697c: e1520004 cmp r2, r4 6980: e59f0238 ldr r0, [pc, #568] ; 6bc0 <_Heap_Walk+0x61c> 6984: 11a0000c movne r0, ip Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 6988: e5953008 ldr r3, [r5, #8] 698c: e1510003 cmp r1, r3 6990: 059f122c ldreq r1, [pc, #556] ; 6bc4 <_Heap_Walk+0x620> 6994: 0a000003 beq 69a8 <_Heap_Walk+0x404> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 6998: e59fc21c ldr ip, [pc, #540] ; 6bbc <_Heap_Walk+0x618> 699c: e1530004 cmp r3, r4 69a0: e59f1220 ldr r1, [pc, #544] ; 6bc8 <_Heap_Walk+0x624> 69a4: 11a0100c movne r1, ip Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 69a8: e58d2000 str r2, [sp] 69ac: e98d0009 stmib sp, {r0, r3} 69b0: e58d100c str r1, [sp, #12] 69b4: e1a03005 mov r3, r5 69b8: e1a00008 mov r0, r8 69bc: e3a01000 mov r1, #0 69c0: e59f2204 ldr r2, [pc, #516] ; 6bcc <_Heap_Walk+0x628> 69c4: e1a0e00f mov lr, pc 69c8: e12fff1a bx sl block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 69cc: e5993000 ldr r3, [r9] 69d0: e1570003 cmp r7, r3 69d4: 0a00000a beq 6a04 <_Heap_Walk+0x460> (*printer)( 69d8: e58d3004 str r3, [sp, #4] 69dc: e1a00008 mov r0, r8 69e0: e58d7000 str r7, [sp] 69e4: e58d9008 str r9, [sp, #8] 69e8: e1a03005 mov r3, r5 69ec: e3a01001 mov r1, #1 69f0: e59f21d8 ldr r2, [pc, #472] ; 6bd0 <_Heap_Walk+0x62c> 69f4: e1a0e00f mov lr, pc 69f8: e12fff1a bx sl 69fc: e3a00000 mov r0, #0 6a00: eafffefa b 65f0 <_Heap_Walk+0x4c> ); return false; } if ( !prev_used ) { 6a04: e21b9001 ands r9, fp, #1 6a08: 0a000017 beq 6a6c <_Heap_Walk+0x4c8> 6a0c: e5943008 ldr r3, [r4, #8] ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 6a10: e1530004 cmp r3, r4 6a14: 1a000003 bne 6a28 <_Heap_Walk+0x484> 6a18: ea00000b b 6a4c <_Heap_Walk+0x4a8> <== NOT EXECUTED if ( free_block == block ) { return true; } free_block = free_block->next; 6a1c: e5933008 ldr r3, [r3, #8] ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 6a20: e1530004 cmp r3, r4 6a24: 0a000008 beq 6a4c <_Heap_Walk+0x4a8> if ( free_block == block ) { 6a28: e1530005 cmp r3, r5 6a2c: 1afffffa bne 6a1c <_Heap_Walk+0x478> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 6a30: e59d2024 ldr r2, [sp, #36] ; 0x24 6a34: e1520006 cmp r2, r6 6a38: 0afffeeb beq 65ec <_Heap_Walk+0x48> const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 6a3c: e5967004 ldr r7, [r6, #4] 6a40: e1a05006 mov r5, r6 6a44: e2076001 and r6, r7, #1 6a48: eaffff8f b 688c <_Heap_Walk+0x2e8> return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 6a4c: e1a00008 mov r0, r8 6a50: e1a03005 mov r3, r5 6a54: e3a01001 mov r1, #1 6a58: e59f2174 ldr r2, [pc, #372] ; 6bd4 <_Heap_Walk+0x630> 6a5c: e1a0e00f mov lr, pc 6a60: e12fff1a bx sl 6a64: e3a00000 mov r0, #0 6a68: eafffee0 b 65f0 <_Heap_Walk+0x4c> return false; } if ( !prev_used ) { (*printer)( 6a6c: e1a00008 mov r0, r8 6a70: e1a03005 mov r3, r5 6a74: e3a01001 mov r1, #1 6a78: e59f2158 ldr r2, [pc, #344] ; 6bd8 <_Heap_Walk+0x634> 6a7c: e1a0e00f mov lr, pc 6a80: e12fff1a bx sl 6a84: e1a00009 mov r0, r9 6a88: eafffed8 b 65f0 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 6a8c: e1a00008 mov r0, r8 6a90: e58d7000 str r7, [sp] 6a94: e1a03005 mov r3, r5 6a98: e3a01001 mov r1, #1 6a9c: e59f2138 ldr r2, [pc, #312] ; 6bdc <_Heap_Walk+0x638> 6aa0: e1a0e00f mov lr, pc 6aa4: e12fff1a bx sl 6aa8: e3a00000 mov r0, #0 "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; 6aac: eafffecf b 65f0 <_Heap_Walk+0x4c> } if ( block_size < min_block_size ) { (*printer)( 6ab0: e58d3004 str r3, [sp, #4] 6ab4: e1a00008 mov r0, r8 6ab8: e1a0b003 mov fp, r3 6abc: e58d7000 str r7, [sp] 6ac0: e1a03005 mov r3, r5 6ac4: e3a01001 mov r1, #1 6ac8: e59f2110 ldr r2, [pc, #272] ; 6be0 <_Heap_Walk+0x63c> 6acc: e1a0e00f mov lr, pc 6ad0: e12fff1a bx sl 6ad4: e1a00009 mov r0, r9 block, block_size, min_block_size ); return false; 6ad8: eafffec4 b 65f0 <_Heap_Walk+0x4c> } if ( next_block_begin <= block_begin ) { (*printer)( 6adc: e1a00008 mov r0, r8 6ae0: e58d6000 str r6, [sp] 6ae4: e1a03005 mov r3, r5 6ae8: e3a01001 mov r1, #1 6aec: e59f20f0 ldr r2, [pc, #240] ; 6be4 <_Heap_Walk+0x640> 6af0: e1a0e00f mov lr, pc 6af4: e12fff1a bx sl 6af8: e1a00009 mov r0, r9 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 6afc: eafffebb b 65f0 <_Heap_Walk+0x4c> return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 6b00: e1a00008 mov r0, r8 6b04: e3a01001 mov r1, #1 6b08: e59f20d8 ldr r2, [pc, #216] ; 6be8 <_Heap_Walk+0x644> 6b0c: e1a0e00f mov lr, pc 6b10: e12fff1a bx sl 6b14: e1a00009 mov r0, r9 6b18: eafffeb4 b 65f0 <_Heap_Walk+0x4c> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 6b1c: e1a00008 mov r0, r8 6b20: e1a03009 mov r3, r9 6b24: e3a01001 mov r1, #1 6b28: e59f20bc ldr r2, [pc, #188] ; 6bec <_Heap_Walk+0x648> 6b2c: e1a0e00f mov lr, pc 6b30: e12fff1a bx sl 6b34: e3a00000 mov r0, #0 6b38: eafffeac b 65f0 <_Heap_Walk+0x4c> return false; } if ( free_block->prev != prev_block ) { (*printer)( 6b3c: e58d2000 str r2, [sp] 6b40: e1a00008 mov r0, r8 6b44: e1a03009 mov r3, r9 6b48: e3a01001 mov r1, #1 6b4c: e59f209c ldr r2, [pc, #156] ; 6bf0 <_Heap_Walk+0x64c> 6b50: e1a0e00f mov lr, pc 6b54: e12fff1a bx sl 6b58: e3a00000 mov r0, #0 6b5c: eafffea3 b 65f0 <_Heap_Walk+0x4c> return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 6b60: e1a00008 mov r0, r8 6b64: e1a03009 mov r3, r9 6b68: e3a01001 mov r1, #1 6b6c: e59f2080 ldr r2, [pc, #128] ; 6bf4 <_Heap_Walk+0x650> 6b70: e1a0e00f mov lr, pc 6b74: e12fff1a bx sl 6b78: e3a00000 mov r0, #0 6b7c: eafffe9b b 65f0 <_Heap_Walk+0x4c> 6b80: 0001d390 .word 0x0001d390 6b84: 00006598 .word 0x00006598 6b88: 00006bf8 .word 0x00006bf8 6b8c: 0001b4dc .word 0x0001b4dc 6b90: 0001b670 .word 0x0001b670 6b94: 0001b62c .word 0x0001b62c 6b98: 0001b570 .word 0x0001b570 6b9c: 0001b584 .word 0x0001b584 6ba0: 0001b5a4 .word 0x0001b5a4 6ba4: 0001b5c8 .word 0x0001b5c8 6ba8: 0001b5fc .word 0x0001b5fc 6bac: 0001b710 .word 0x0001b710 6bb0: 0001b750 .word 0x0001b750 6bb4: 0001b728 .word 0x0001b728 6bb8: 0001b810 .word 0x0001b810 6bbc: 0001b494 .word 0x0001b494 6bc0: 0001b81c .word 0x0001b81c 6bc4: 0001b828 .word 0x0001b828 6bc8: 0001b834 .word 0x0001b834 6bcc: 0001b840 .word 0x0001b840 6bd0: 0001b86c .word 0x0001b86c 6bd4: 0001b8d8 .word 0x0001b8d8 6bd8: 0001b8a8 .word 0x0001b8a8 6bdc: 0001b780 .word 0x0001b780 6be0: 0001b7b0 .word 0x0001b7b0 6be4: 0001b7dc .word 0x0001b7dc 6be8: 0001b658 .word 0x0001b658 6bec: 0001b690 .word 0x0001b690 6bf0: 0001b6dc .word 0x0001b6dc 6bf4: 0001b6c0 .word 0x0001b6c0 00005a84 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 5a84: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 5a88: e5908034 ldr r8, [r0, #52] ; 0x34 5a8c: e3580000 cmp r8, #0 */ void _Objects_Extend_information( Objects_Information *information ) { 5a90: e24dd014 sub sp, sp, #20 5a94: e1a05000 mov r5, r0 /* * Search for a free block of indexes. The block variable ends up set * to block_count + 1 if the table needs to be extended. */ minimum_index = _Objects_Get_index( information->minimum_id ); 5a98: e1d070b8 ldrh r7, [r0, #8] index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 5a9c: 0a00009c beq 5d14 <_Objects_Extend_information+0x290> block_count = 0; else { block_count = information->maximum / information->allocation_size; 5aa0: e1d091b4 ldrh r9, [r0, #20] 5aa4: e1d0a1b0 ldrh sl, [r0, #16] 5aa8: e1a01009 mov r1, r9 5aac: e1a0000a mov r0, sl 5ab0: eb0044b5 bl 16d8c <__aeabi_uidiv> 5ab4: e1a03800 lsl r3, r0, #16 for ( ; block < block_count; block++ ) { 5ab8: e1b03823 lsrs r3, r3, #16 5abc: 01a01009 moveq r1, r9 5ac0: 01a06007 moveq r6, r7 5ac4: 01a04003 moveq r4, r3 5ac8: 0a00000f beq 5b0c <_Objects_Extend_information+0x88> if ( information->object_blocks[ block ] == NULL ) 5acc: e5984000 ldr r4, [r8] 5ad0: e3540000 cmp r4, #0 5ad4: 11a01009 movne r1, r9 5ad8: 11a06007 movne r6, r7 5adc: 13a04000 movne r4, #0 5ae0: 01a01009 moveq r1, r9 5ae4: 01a06007 moveq r6, r7 5ae8: 1a000003 bne 5afc <_Objects_Extend_information+0x78> 5aec: ea000006 b 5b0c <_Objects_Extend_information+0x88> <== NOT EXECUTED 5af0: e7982104 ldr r2, [r8, r4, lsl #2] 5af4: e3520000 cmp r2, #0 5af8: 0a000003 beq 5b0c <_Objects_Extend_information+0x88> if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 5afc: e2844001 add r4, r4, #1 5b00: e1530004 cmp r3, r4 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 5b04: e0866009 add r6, r6, r9 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 5b08: 8afffff8 bhi 5af0 <_Objects_Extend_information+0x6c> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 5b0c: e08aa001 add sl, sl, r1 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 5b10: e35a0801 cmp sl, #65536 ; 0x10000 5b14: 2a000064 bcs 5cac <_Objects_Extend_information+0x228> /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { 5b18: e5d50012 ldrb r0, [r5, #18] /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 5b1c: e5952018 ldr r2, [r5, #24] if ( information->auto_extend ) { 5b20: e3500000 cmp r0, #0 /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 5b24: e0000192 mul r0, r2, r1 if ( information->auto_extend ) { 5b28: 1a000061 bne 5cb4 <_Objects_Extend_information+0x230> new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 5b2c: e58d3000 str r3, [sp] 5b30: eb000813 bl 7b84 <_Workspace_Allocate_or_fatal_error> 5b34: e59d3000 ldr r3, [sp] 5b38: e1a09000 mov r9, r0 } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 5b3c: e1d521b0 ldrh r2, [r5, #16] 5b40: e1560002 cmp r6, r2 5b44: 3a000038 bcc 5c2c <_Objects_Extend_information+0x1a8> */ /* * Up the block count and maximum */ block_count++; 5b48: e283c001 add ip, r3, #1 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 5b4c: e08c008c add r0, ip, ip, lsl #1 5b50: e08a0000 add r0, sl, r0 5b54: e0800007 add r0, r0, r7 5b58: e1a00100 lsl r0, r0, #2 5b5c: e88d1008 stm sp, {r3, ip} 5b60: eb000813 bl 7bb4 <_Workspace_Allocate> if ( !object_blocks ) { 5b64: e250b000 subs fp, r0, #0 5b68: e89d1008 ldm sp, {r3, ip} 5b6c: 0a00006e beq 5d2c <_Objects_Extend_information+0x2a8> * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5b70: e1d521b0 ldrh r2, [r5, #16] 5b74: e1570002 cmp r7, r2 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 5b78: e08b818c add r8, fp, ip, lsl #3 5b7c: e08bc10c add ip, fp, ip, lsl #2 5b80: 3a000051 bcc 5ccc <_Objects_Extend_information+0x248> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5b84: e3570000 cmp r7, #0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 5b88: 13a02000 movne r2, #0 /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 5b8c: 11a01002 movne r1, r2 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5b90: 0a000003 beq 5ba4 <_Objects_Extend_information+0x120> local_table[ index ] = NULL; 5b94: e7881102 str r1, [r8, r2, lsl #2] } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5b98: e2822001 add r2, r2, #1 5b9c: e1570002 cmp r7, r2 5ba0: 8afffffb bhi 5b94 <_Objects_Extend_information+0x110> 5ba4: e1a03103 lsl r3, r3, #2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 5ba8: e1d511b4 ldrh r1, [r5, #20] 5bac: e0861001 add r1, r6, r1 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5bb0: e3a00000 mov r0, #0 inactive_per_block[block_count] = 0; for ( index=index_base ; 5bb4: e1560001 cmp r6, r1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 5bb8: e78c0003 str r0, [ip, r3] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5bbc: e78b0003 str r0, [fp, r3] inactive_per_block[block_count] = 0; for ( index=index_base ; 5bc0: 2a000005 bcs 5bdc <_Objects_Extend_information+0x158> 5bc4: e0882106 add r2, r8, r6, lsl #2 5bc8: e1a03006 mov r3, r6 index < ( information->allocation_size + index_base ); index++ ) { 5bcc: e2833001 add r3, r3, #1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 5bd0: e1530001 cmp r3, r1 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 5bd4: e4820004 str r0, [r2], #4 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 5bd8: 3afffffb bcc 5bcc <_Objects_Extend_information+0x148> 5bdc: e10f3000 mrs r3, CPSR 5be0: e3832080 orr r2, r3, #128 ; 0x80 5be4: e129f002 msr CPSR_fc, r2 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 5be8: e5952000 ldr r2, [r5] 5bec: e1d510b4 ldrh r1, [r5, #4] 5bf0: e1a02c02 lsl r2, r2, #24 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 5bf4: e1a0a80a lsl sl, sl, #16 information->maximum_id = _Objects_Build_id( 5bf8: e3822801 orr r2, r2, #65536 ; 0x10000 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 5bfc: e1a0a82a lsr sl, sl, #16 information->maximum_id = _Objects_Build_id( 5c00: e1822d81 orr r2, r2, r1, lsl #27 5c04: e182200a orr r2, r2, sl local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 5c08: e5950034 ldr r0, [r5, #52] ; 0x34 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 5c0c: e585c030 str ip, [r5, #48] ; 0x30 information->local_table = local_table; 5c10: e585801c str r8, [r5, #28] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 5c14: e585200c str r2, [r5, #12] old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 5c18: e1c5a1b0 strh sl, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 5c1c: e585b034 str fp, [r5, #52] ; 0x34 static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 5c20: e129f003 msr CPSR_fc, r3 information->maximum ); _ISR_Enable( level ); if ( old_tables ) 5c24: e3500000 cmp r0, #0 _Workspace_Free( old_tables ); 5c28: 1b0007e7 blne 7bcc <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 5c2c: e5953034 ldr r3, [r5, #52] ; 0x34 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 5c30: e28d7008 add r7, sp, #8 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 5c34: e7839104 str r9, [r3, r4, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 5c38: e1a01009 mov r1, r9 5c3c: e1a00007 mov r0, r7 5c40: e1d521b4 ldrh r2, [r5, #20] 5c44: e5953018 ldr r3, [r5, #24] 5c48: eb001269 bl a5f4 <_Chain_Initialize> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 5c4c: e1a04104 lsl r4, r4, #2 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5c50: e2858020 add r8, r5, #32 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 5c54: ea000008 b 5c7c <_Objects_Extend_information+0x1f8> the_object->id = _Objects_Build_id( 5c58: e5952000 ldr r2, [r5] 5c5c: e1d5c0b4 ldrh ip, [r5, #4] 5c60: e1a02c02 lsl r2, r2, #24 5c64: e3822801 orr r2, r2, #65536 ; 0x10000 5c68: e1822d8c orr r2, r2, ip, lsl #27 5c6c: e1822006 orr r2, r2, r6 5c70: e5832008 str r2, [r3, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5c74: ebfffd25 bl 5110 <_Chain_Append> index++; 5c78: e2866001 add r6, r6, #1 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 5c7c: e1a00007 mov r0, r7 5c80: eb00124e bl a5c0 <_Chain_Get> 5c84: e2503000 subs r3, r0, #0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5c88: e1a01003 mov r1, r3 5c8c: e1a00008 mov r0, r8 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 5c90: 1afffff0 bne 5c58 <_Objects_Extend_information+0x1d4> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 5c94: e1d531b4 ldrh r3, [r5, #20] information->inactive = 5c98: e1d522bc ldrh r2, [r5, #44] ; 0x2c _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 5c9c: e5951030 ldr r1, [r5, #48] ; 0x30 information->inactive = 5ca0: e0832002 add r2, r3, r2 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 5ca4: e7813004 str r3, [r1, r4] information->inactive = 5ca8: e1c522bc strh r2, [r5, #44] ; 0x2c (Objects_Maximum)(information->inactive + information->allocation_size); } 5cac: e28dd014 add sp, sp, #20 5cb0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); 5cb4: e58d3000 str r3, [sp] 5cb8: eb0007bd bl 7bb4 <_Workspace_Allocate> if ( !new_object_block ) 5cbc: e2509000 subs r9, r0, #0 5cc0: e59d3000 ldr r3, [sp] 5cc4: 1affff9c bne 5b3c <_Objects_Extend_information+0xb8> 5cc8: eafffff7 b 5cac <_Objects_Extend_information+0x228> /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, 5ccc: e1a03103 lsl r3, r3, #2 5cd0: e1a02003 mov r2, r3 5cd4: e5951034 ldr r1, [r5, #52] ; 0x34 5cd8: e88d1008 stm sp, {r3, ip} 5cdc: eb0020c5 bl dff8 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 5ce0: e89d1008 ldm sp, {r3, ip} 5ce4: e1a0000c mov r0, ip 5ce8: e1a02003 mov r2, r3 5cec: e5951030 ldr r1, [r5, #48] ; 0x30 5cf0: eb0020c0 bl dff8 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 5cf4: e1d521b0 ldrh r2, [r5, #16] 5cf8: e0872002 add r2, r7, r2 5cfc: e1a02102 lsl r2, r2, #2 5d00: e1a00008 mov r0, r8 5d04: e595101c ldr r1, [r5, #28] 5d08: eb0020ba bl dff8 5d0c: e89d1008 ldm sp, {r3, ip} 5d10: eaffffa4 b 5ba8 <_Objects_Extend_information+0x124> minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 5d14: e1a04008 mov r4, r8 5d18: e1d0a1b0 ldrh sl, [r0, #16] 5d1c: e1d011b4 ldrh r1, [r0, #20] 5d20: e1a06007 mov r6, r7 5d24: e1a03008 mov r3, r8 5d28: eaffff77 b 5b0c <_Objects_Extend_information+0x88> (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); 5d2c: e1a00009 mov r0, r9 5d30: eb0007a5 bl 7bcc <_Workspace_Free> return; 5d34: eaffffdc b 5cac <_Objects_Extend_information+0x228> 0000587c <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 587c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 5880: e1a04001 mov r4, r1 5884: e24dd004 sub sp, sp, #4 5888: 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 ) ) { 588c: e1a0100d mov r1, sp 5890: e1a00004 mov r0, r4 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 5894: e1a08002 mov r8, r2 5898: 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 ) ) { 589c: eb000075 bl 5a78 <_POSIX_Mutex_Get> 58a0: e3500000 cmp r0, #0 58a4: 0a00000a beq 58d4 <_POSIX_Condition_variables_Wait_support+0x58> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 58a8: e59f30dc ldr r3, [pc, #220] ; 598c <_POSIX_Condition_variables_Wait_support+0x110> 58ac: e5932000 ldr r2, [r3] 58b0: e2422001 sub r2, r2, #1 58b4: e5832000 str r2, [r3] return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 58b8: e1a0100d mov r1, sp 58bc: e1a00006 mov r0, r6 58c0: ebffff76 bl 56a0 <_POSIX_Condition_variables_Get> switch ( location ) { 58c4: e59d3000 ldr r3, [sp] 58c8: e3530000 cmp r3, #0 return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 58cc: e1a0a000 mov sl, r0 switch ( location ) { 58d0: 0a000003 beq 58e4 <_POSIX_Condition_variables_Wait_support+0x68> /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); if ( mutex_status ) 58d4: e3a05016 mov r5, #22 case OBJECTS_ERROR: break; } return EINVAL; } 58d8: e1a00005 mov r0, r5 58dc: e28dd004 add sp, sp, #4 58e0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { 58e4: e5903014 ldr r3, [r0, #20] 58e8: e3530000 cmp r3, #0 58ec: 0a000005 beq 5908 <_POSIX_Condition_variables_Wait_support+0x8c> 58f0: e5942000 ldr r2, [r4] 58f4: e1530002 cmp r3, r2 58f8: 0a000002 beq 5908 <_POSIX_Condition_variables_Wait_support+0x8c> _Thread_Enable_dispatch(); 58fc: eb000c40 bl 8a04 <_Thread_Enable_dispatch> 5900: e3a05016 mov r5, #22 return EINVAL; 5904: eafffff3 b 58d8 <_POSIX_Condition_variables_Wait_support+0x5c> } (void) pthread_mutex_unlock( mutex ); 5908: e1a00004 mov r0, r4 590c: eb0000e3 bl 5ca0 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { 5910: e3570000 cmp r7, #0 5914: 0a000006 beq 5934 <_POSIX_Condition_variables_Wait_support+0xb8> status = _Thread_Executing->Wait.return_code; if ( status && status != ETIMEDOUT ) return status; } else { _Thread_Enable_dispatch(); 5918: eb000c39 bl 8a04 <_Thread_Enable_dispatch> 591c: e3a05074 mov r5, #116 ; 0x74 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); 5920: e1a00004 mov r0, r4 5924: eb0000bc bl 5c1c if ( mutex_status ) 5928: e3500000 cmp r0, #0 592c: 0affffe9 beq 58d8 <_POSIX_Condition_variables_Wait_support+0x5c> 5930: eaffffe7 b 58d4 <_POSIX_Condition_variables_Wait_support+0x58> if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 5934: e59f5054 ldr r5, [pc, #84] ; 5990 <_POSIX_Condition_variables_Wait_support+0x114> return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 5938: e5942000 ldr r2, [r4] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 593c: e5953000 ldr r3, [r5] return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 5940: e58a2014 str r2, [sl, #20] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 5944: e5837034 str r7, [r3, #52] ; 0x34 _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; 5948: 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; 594c: e28a2018 add r2, sl, #24 _Thread_Executing->Wait.id = *cond; 5950: e5831020 str r1, [r3, #32] RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 5954: e3a01001 mov r1, #1 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; 5958: e5832044 str r2, [r3, #68] ; 0x44 _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); 595c: e1a00002 mov r0, r2 5960: e58a1048 str r1, [sl, #72] ; 0x48 5964: e59f2028 ldr r2, [pc, #40] ; 5994 <_POSIX_Condition_variables_Wait_support+0x118> 5968: e1a01008 mov r1, r8 596c: eb000d6a bl 8f1c <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 5970: eb000c23 bl 8a04 <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 5974: e5953000 ldr r3, [r5] 5978: e5935034 ldr r5, [r3, #52] ; 0x34 if ( status && status != ETIMEDOUT ) 597c: e3550074 cmp r5, #116 ; 0x74 5980: 13550000 cmpne r5, #0 5984: 0affffe5 beq 5920 <_POSIX_Condition_variables_Wait_support+0xa4> 5988: eaffffd2 b 58d8 <_POSIX_Condition_variables_Wait_support+0x5c> <== NOT EXECUTED 598c: 0001d60c .word 0x0001d60c 5990: 0001d6c0 .word 0x0001d6c0 5994: 0000930c .word 0x0000930c 0000d408 <_POSIX_signals_Clear_process_signals>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( d408: e10f2000 mrs r2, CPSR d40c: e3823080 orr r3, r2, #128 ; 0x80 d410: e129f003 msr CPSR_fc, r3 mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { d414: e59f1064 ldr r1, [pc, #100] ; d480 <_POSIX_signals_Clear_process_signals+0x78> d418: e0803080 add r3, r0, r0, lsl #1 d41c: e7911103 ldr r1, [r1, r3, lsl #2] d420: e3510002 cmp r1, #2 d424: e1a01103 lsl r1, r3, #2 d428: 0a00000c beq d460 <_POSIX_signals_Clear_process_signals+0x58> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; d42c: e59f3050 ldr r3, [pc, #80] ; d484 <_POSIX_signals_Clear_process_signals+0x7c> d430: e5931000 ldr r1, [r3] d434: e3a0c001 mov ip, #1 d438: e2400001 sub r0, r0, #1 d43c: e1c1001c bic r0, r1, ip, lsl r0 if ( !_POSIX_signals_Pending ) d440: e3500000 cmp r0, #0 if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; d444: e5830000 str r0, [r3] if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; d448: 059f3038 ldreq r3, [pc, #56] ; d488 <_POSIX_signals_Clear_process_signals+0x80> d44c: 05931000 ldreq r1, [r3] d450: 02411001 subeq r1, r1, #1 d454: 05831000 streq r1, [r3] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( d458: e129f002 msr CPSR_fc, r2 } _ISR_Enable( level ); } d45c: e12fff1e bx lr ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) d460: e59fc024 ldr ip, [pc, #36] ; d48c <_POSIX_signals_Clear_process_signals+0x84> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; d464: e79c3103 ldr r3, [ip, r3, lsl #2] d468: e08c1001 add r1, ip, r1 d46c: e2811004 add r1, r1, #4 d470: e1530001 cmp r3, r1 d474: 0affffec beq d42c <_POSIX_signals_Clear_process_signals+0x24> d478: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); } d47c: e12fff1e bx lr <== NOT EXECUTED d480: 0001af58 .word 0x0001af58 d484: 0001b124 .word 0x0001b124 d488: 0001aae4 .word 0x0001aae4 d48c: 0001b128 .word 0x0001b128 00006d3c <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 6d3c: 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 ) { 6d40: e92d05f0 push {r4, r5, r6, r7, r8, sl} _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 6d44: e1a0c323 lsr ip, r3, #6 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 6d48: e281503c add r5, r1, #60 ; 0x3c 6d4c: e08cc08c add ip, ip, ip, lsl #1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 6d50: e3130020 tst r3, #32 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 6d54: e2814038 add r4, r1, #56 ; 0x38 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 6d58: e5815038 str r5, [r1, #56] ; 0x38 the_chain->permanent_null = NULL; 6d5c: e3a05000 mov r5, #0 6d60: e581503c str r5, [r1, #60] ; 0x3c the_chain->last = _Chain_Head(the_chain); 6d64: e5814040 str r4, [r1, #64] ; 0x40 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 6d68: e080c10c add ip, r0, ip, lsl #2 block_state = the_thread_queue->state; 6d6c: e5906038 ldr r6, [r0, #56] ; 0x38 6d70: 159fa178 ldrne sl, [pc, #376] ; 6ef0 <_Thread_queue_Enqueue_priority+0x1b4> if ( _Thread_queue_Is_reverse_search( priority ) ) 6d74: 1a00001c bne 6dec <_Thread_queue_Enqueue_priority+0xb0> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 6d78: e28ca004 add sl, ip, #4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 6d7c: e10f8000 mrs r8, CPSR 6d80: e3884080 orr r4, r8, #128 ; 0x80 6d84: 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; 6d88: e59c4000 ldr r4, [ip] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 6d8c: e154000a cmp r4, sl 6d90: 1a000009 bne 6dbc <_Thread_queue_Enqueue_priority+0x80> 6d94: ea000052 b 6ee4 <_Thread_queue_Enqueue_priority+0x1a8> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 6d98: e10f7000 mrs r7, CPSR 6d9c: e129f008 msr CPSR_fc, r8 6da0: e129f007 msr CPSR_fc, r7 search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { 6da4: e5947010 ldr r7, [r4, #16] 6da8: e1160007 tst r6, r7 6dac: 0a000033 beq 6e80 <_Thread_queue_Enqueue_priority+0x144> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 6db0: 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 ) ) { 6db4: e154000a cmp r4, sl 6db8: 0a000002 beq 6dc8 <_Thread_queue_Enqueue_priority+0x8c> search_priority = search_thread->current_priority; 6dbc: e5945014 ldr r5, [r4, #20] if ( priority <= search_priority ) 6dc0: e1530005 cmp r3, r5 6dc4: 8afffff3 bhi 6d98 <_Thread_queue_Enqueue_priority+0x5c> restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 6dc8: e1a06008 mov r6, r8 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 6dcc: e590c030 ldr ip, [r0, #48] ; 0x30 6dd0: e35c0001 cmp ip, #1 6dd4: 0a00002b beq 6e88 <_Thread_queue_Enqueue_priority+0x14c> * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; 6dd8: e5826000 str r6, [r2] return the_thread_queue->sync_state; 6ddc: e1a0000c mov r0, ip } 6de0: e8bd05f0 pop {r4, r5, r6, r7, r8, sl} 6de4: e12fff1e bx lr static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 6de8: e129f008 msr CPSR_fc, r8 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 6dec: e5da5000 ldrb r5, [sl] 6df0: e2855001 add r5, r5, #1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 6df4: e10f8000 mrs r8, CPSR 6df8: e3884080 orr r4, r8, #128 ; 0x80 6dfc: e129f004 msr CPSR_fc, r4 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 6e00: e59c4008 ldr r4, [ip, #8] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 6e04: e154000c cmp r4, ip 6e08: 1a000009 bne 6e34 <_Thread_queue_Enqueue_priority+0xf8> 6e0c: ea00000b b 6e40 <_Thread_queue_Enqueue_priority+0x104> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 6e10: e10f7000 mrs r7, CPSR 6e14: e129f008 msr CPSR_fc, r8 6e18: e129f007 msr CPSR_fc, r7 search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { 6e1c: e5947010 ldr r7, [r4, #16] 6e20: e1160007 tst r6, r7 6e24: 0affffef beq 6de8 <_Thread_queue_Enqueue_priority+0xac> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 6e28: 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 ) ) { 6e2c: e154000c cmp r4, ip 6e30: 0a000002 beq 6e40 <_Thread_queue_Enqueue_priority+0x104> search_priority = search_thread->current_priority; 6e34: e5945014 ldr r5, [r4, #20] if ( priority >= search_priority ) 6e38: e1530005 cmp r3, r5 6e3c: 3afffff3 bcc 6e10 <_Thread_queue_Enqueue_priority+0xd4> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 6e40: e590c030 ldr ip, [r0, #48] ; 0x30 6e44: e35c0001 cmp ip, #1 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 ) ) { 6e48: e1a06008 mov r6, r8 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 6e4c: 1affffe1 bne 6dd8 <_Thread_queue_Enqueue_priority+0x9c> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 6e50: e1530005 cmp r3, r5 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 6e54: e3a03000 mov r3, #0 6e58: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 6e5c: 0a000016 beq 6ebc <_Thread_queue_Enqueue_priority+0x180> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 6e60: e5943000 ldr r3, [r4] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 6e64: e8810018 stm r1, {r3, r4} search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6e68: e5810044 str r0, [r1, #68] ; 0x44 next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; 6e6c: e5841000 str r1, [r4] next_node->previous = the_node; 6e70: e5831004 str r1, [r3, #4] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 6e74: e129f008 msr CPSR_fc, r8 6e78: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 6e7c: eaffffd7 b 6de0 <_Thread_queue_Enqueue_priority+0xa4> 6e80: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED 6e84: eaffffbc b 6d7c <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 6e88: e1530005 cmp r3, r5 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 6e8c: e3a03000 mov r3, #0 6e90: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 6e94: 0a000008 beq 6ebc <_Thread_queue_Enqueue_priority+0x180> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 6e98: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 6e9c: e5814000 str r4, [r1] the_node->previous = previous_node; 6ea0: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6ea4: e5810044 str r0, [r1, #68] ; 0x44 previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 6ea8: e5831000 str r1, [r3] search_node->previous = the_node; 6eac: e5841004 str r1, [r4, #4] 6eb0: e129f008 msr CPSR_fc, r8 6eb4: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 6eb8: eaffffc8 b 6de0 <_Thread_queue_Enqueue_priority+0xa4> 6ebc: 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; 6ec0: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 6ec4: e5814000 str r4, [r1] the_node->previous = previous_node; 6ec8: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6ecc: e5810044 str r0, [r1, #68] ; 0x44 previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 6ed0: e5831000 str r1, [r3] search_node->previous = the_node; 6ed4: e5841004 str r1, [r4, #4] 6ed8: e129f006 msr CPSR_fc, r6 6edc: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 6ee0: eaffffbe b 6de0 <_Thread_queue_Enqueue_priority+0xa4> restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 6ee4: e1a06008 mov r6, r8 6ee8: e3e05000 mvn r5, #0 6eec: eaffffb6 b 6dcc <_Thread_queue_Enqueue_priority+0x90> 6ef0: 00019140 .word 0x00019140 000154d4 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 154d4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 154d8: e24dd024 sub sp, sp, #36 ; 0x24 154dc: e28d700c add r7, sp, #12 154e0: e28d2018 add r2, sp, #24 154e4: e1a04000 mov r4, r0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 154e8: e3a03000 mov r3, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 154ec: e282a004 add sl, r2, #4 154f0: e2872004 add r2, r7, #4 154f4: e58d2000 str r2, [sp] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 154f8: e58d301c str r3, [sp, #28] the_chain->last = _Chain_Head(the_chain); 154fc: e28d0018 add r0, sp, #24 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 15500: e58d200c str r2, [sp, #12] the_chain->permanent_null = NULL; 15504: e58d3010 str r3, [sp, #16] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 15508: e2842008 add r2, r4, #8 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 1550c: e2843040 add r3, r4, #64 ; 0x40 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 15510: e58da018 str sl, [sp, #24] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 15514: e58d0020 str r0, [sp, #32] 15518: e58d7014 str r7, [sp, #20] 1551c: e59f91a0 ldr r9, [pc, #416] ; 156c4 <_Timer_server_Body+0x1f0> 15520: e59fb1a0 ldr fp, [pc, #416] ; 156c8 <_Timer_server_Body+0x1f4> static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 15524: e58d2008 str r2, [sp, #8] static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 15528: e58d3004 str r3, [sp, #4] */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 1552c: e2846030 add r6, r4, #48 ; 0x30 /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 15530: e2848068 add r8, r4, #104 ; 0x68 { /* * 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; 15534: e28d0018 add r0, sp, #24 15538: e5840078 str r0, [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; 1553c: e5993000 ldr r3, [r9] /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 15540: e594103c ldr r1, [r4, #60] ; 0x3c watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 15544: e1a00006 mov r0, r6 15548: e0611003 rsb r1, r1, r3 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 1554c: e584303c str r3, [r4, #60] ; 0x3c _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 15550: e1a02007 mov r2, r7 15554: eb0010fd bl 19950 <_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(); 15558: e59b5000 ldr r5, [fp] Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 1555c: e5941074 ldr r1, [r4, #116] ; 0x74 /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { 15560: e1550001 cmp r5, r1 15564: 8a000022 bhi 155f4 <_Timer_server_Body+0x120> * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { 15568: 3a000018 bcc 155d0 <_Timer_server_Body+0xfc> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 1556c: e5845074 str r5, [r4, #116] ; 0x74 } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 15570: e5940078 ldr r0, [r4, #120] ; 0x78 15574: eb00025c bl 15eec <_Chain_Get> if ( timer == NULL ) { 15578: e3500000 cmp r0, #0 1557c: 0a00000b beq 155b0 <_Timer_server_Body+0xdc> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 15580: e5903038 ldr r3, [r0, #56] ; 0x38 15584: e3530001 cmp r3, #1 15588: 0a000015 beq 155e4 <_Timer_server_Body+0x110> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 1558c: e3530003 cmp r3, #3 15590: 1afffff6 bne 15570 <_Timer_server_Body+0x9c> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 15594: e2801010 add r1, r0, #16 15598: e1a00008 mov r0, r8 1559c: eb00111a bl 19a0c <_Watchdog_Insert> } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 155a0: e5940078 ldr r0, [r4, #120] ; 0x78 155a4: eb000250 bl 15eec <_Chain_Get> if ( timer == NULL ) { 155a8: e3500000 cmp r0, #0 155ac: 1afffff3 bne 15580 <_Timer_server_Body+0xac> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 155b0: e10f2000 mrs r2, CPSR 155b4: e3823080 orr r3, r2, #128 ; 0x80 155b8: e129f003 msr CPSR_fc, r3 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { 155bc: e59d3018 ldr r3, [sp, #24] 155c0: e15a0003 cmp sl, r3 155c4: 0a00000f beq 15608 <_Timer_server_Body+0x134> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 155c8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED 155cc: eaffffda b 1553c <_Timer_server_Body+0x68> <== NOT EXECUTED /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 155d0: e0652001 rsb r2, r5, r1 155d4: e1a00008 mov r0, r8 155d8: e3a01001 mov r1, #1 155dc: eb0010ac bl 19894 <_Watchdog_Adjust> 155e0: eaffffe1 b 1556c <_Timer_server_Body+0x98> Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 155e4: e2801010 add r1, r0, #16 155e8: e1a00006 mov r0, r6 155ec: eb001106 bl 19a0c <_Watchdog_Insert> 155f0: eaffffde b 15570 <_Timer_server_Body+0x9c> /* * 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 ); 155f4: e0611005 rsb r1, r1, r5 155f8: e1a00008 mov r0, r8 155fc: e1a02007 mov r2, r7 15600: eb0010d2 bl 19950 <_Watchdog_Adjust_to_chain> 15604: eaffffd8 b 1556c <_Timer_server_Body+0x98> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 15608: e5840078 str r0, [r4, #120] ; 0x78 1560c: e129f002 msr CPSR_fc, r2 _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { 15610: e59d300c ldr r3, [sp, #12] 15614: e59d2000 ldr r2, [sp] 15618: e1520003 cmp r2, r3 1561c: 159d5000 ldrne r5, [sp] 15620: 1a00000a bne 15650 <_Timer_server_Body+0x17c> 15624: ea000011 b 15670 <_Timer_server_Body+0x19c> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 15628: e5932000 ldr r2, [r3] * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 1562c: e3a00000 mov r0, #0 the_chain->first = new_first; 15630: e58d200c str r2, [sp, #12] 15634: e5830008 str r0, [r3, #8] new_first->previous = _Chain_Head(the_chain); 15638: e5827004 str r7, [r2, #4] 1563c: e129f001 msr CPSR_fc, r1 /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); 15640: e2830020 add r0, r3, #32 15644: e8900003 ldm r0, {r0, r1} 15648: e1a0e00f mov lr, pc 1564c: e593f01c ldr pc, [r3, #28] static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 15650: e10f1000 mrs r1, CPSR 15654: e3813080 orr r3, r1, #128 ; 0x80 15658: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 1565c: e59d300c ldr r3, [sp, #12] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 15660: e1550003 cmp r5, r3 15664: 1affffef bne 15628 <_Timer_server_Body+0x154> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 15668: e129f001 msr CPSR_fc, r1 1566c: eaffffb0 b 15534 <_Timer_server_Body+0x60> } } else { ts->active = false; 15670: e3a02000 mov r2, #0 15674: e5c4207c strb r2, [r4, #124] ; 0x7c 15678: e59f004c ldr r0, [pc, #76] ; 156cc <_Timer_server_Body+0x1f8> 1567c: e5903000 ldr r3, [r0] 15680: e2833001 add r3, r3, #1 15684: e5803000 str r3, [r0] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 15688: e3a01008 mov r1, #8 1568c: e5940000 ldr r0, [r4] 15690: eb000e03 bl 18ea4 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 15694: e1a00004 mov r0, r4 15698: ebffff61 bl 15424 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); 1569c: e1a00004 mov r0, r4 156a0: ebffff75 bl 1547c <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); 156a4: eb000b40 bl 183ac <_Thread_Enable_dispatch> ts->active = true; 156a8: e3a02001 mov r2, #1 156ac: e5c4207c strb r2, [r4, #124] ; 0x7c static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 156b0: e59d0008 ldr r0, [sp, #8] 156b4: eb001137 bl 19b98 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 156b8: e59d0004 ldr r0, [sp, #4] 156bc: eb001135 bl 19b98 <_Watchdog_Remove> 156c0: eaffff9b b 15534 <_Timer_server_Body+0x60> 156c4: 0003b8e4 .word 0x0003b8e4 156c8: 0003b814 .word 0x0003b814 156cc: 0003b78c .word 0x0003b78c 00009808 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 9808: e92d41f0 push {r4, r5, r6, r7, r8, lr} 980c: e1a04000 mov r4, r0 9810: e1a05002 mov r5, r2 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 9814: e10f3000 mrs r3, CPSR 9818: e3832080 orr r2, r3, #128 ; 0x80 981c: e129f002 msr CPSR_fc, r2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 9820: e1a07000 mov r7, r0 9824: e4972004 ldr r2, [r7], #4 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 9828: e1520007 cmp r2, r7 982c: 0a000018 beq 9894 <_Watchdog_Adjust+0x8c> switch ( direction ) { 9830: e3510000 cmp r1, #0 9834: 1a000018 bne 989c <_Watchdog_Adjust+0x94> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 9838: e3550000 cmp r5, #0 983c: 0a000014 beq 9894 <_Watchdog_Adjust+0x8c> if ( units < _Watchdog_First( header )->delta_interval ) { 9840: e5926010 ldr r6, [r2, #16] 9844: e1550006 cmp r5, r6 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 9848: 23a08001 movcs r8, #1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 984c: 2a000005 bcs 9868 <_Watchdog_Adjust+0x60> 9850: ea000018 b 98b8 <_Watchdog_Adjust+0xb0> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 9854: e0555006 subs r5, r5, r6 9858: 0a00000d beq 9894 <_Watchdog_Adjust+0x8c> if ( units < _Watchdog_First( header )->delta_interval ) { 985c: e5926010 ldr r6, [r2, #16] 9860: e1560005 cmp r6, r5 9864: 8a000013 bhi 98b8 <_Watchdog_Adjust+0xb0> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 9868: e5828010 str r8, [r2, #16] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 986c: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); _Watchdog_Tickle( header ); 9870: e1a00004 mov r0, r4 9874: eb0000a0 bl 9afc <_Watchdog_Tickle> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 9878: e10f3000 mrs r3, CPSR 987c: e3832080 orr r2, r3, #128 ; 0x80 9880: e129f002 msr CPSR_fc, r2 9884: e5941000 ldr r1, [r4] _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) 9888: e1570001 cmp r7, r1 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 988c: e1a02001 mov r2, r1 9890: 1affffef bne 9854 <_Watchdog_Adjust+0x4c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 9894: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } 9898: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 989c: e3510001 cmp r1, #1 98a0: 1afffffb bne 9894 <_Watchdog_Adjust+0x8c> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 98a4: e5921010 ldr r1, [r2, #16] 98a8: e0815005 add r5, r1, r5 98ac: e5825010 str r5, [r2, #16] 98b0: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } 98b4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 98b8: e0655006 rsb r5, r5, r6 98bc: e5825010 str r5, [r2, #16] break; 98c0: eafffff3 b 9894 <_Watchdog_Adjust+0x8c> 0001888c <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 1888c: e24dd004 sub sp, sp, #4 18890: e58d0000 str r0, [sp] 18894: eb0001f1 bl 19060 <___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(); 18898: ebffffe1 bl 18824 rtems_shutdown_executive(status); 1889c: e59d0000 ldr r0, [sp] 188a0: eb00003e bl 189a0 188a4: eafffffe b 188a4 <_exit+0x18> <== NOT EXECUTED 0003898c <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 3898c: e1a00001 mov r0, r1 <== NOT EXECUTED 38990: e1a01002 mov r1, r2 <== NOT EXECUTED 38994: e1a02003 mov r2, r3 <== NOT EXECUTED 38998: eaffff81 b 387a4 <== NOT EXECUTED 0000c118 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } c118: e3a00001 mov r0, #1 <== NOT EXECUTED c11c: e12fff1e bx lr <== NOT EXECUTED 000092ec <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 92ec: eaffffe4 b 9284 <== NOT EXECUTED 000266ec <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 266ec: e1a00001 mov r0, r1 <== NOT EXECUTED 266f0: e1a01002 mov r1, r2 <== NOT EXECUTED 266f4: eaffff60 b 2647c <== NOT EXECUTED 00026938 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 26938: e1a00001 mov r0, r1 <== NOT EXECUTED 2693c: e1a01002 mov r1, r2 <== NOT EXECUTED 26940: eaffffc2 b 26850 <== NOT EXECUTED 00018984 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 18984: e1a00001 mov r0, r1 <== NOT EXECUTED 18988: e1a01002 mov r1, r2 <== NOT EXECUTED 1898c: ea00000e b 189cc <== NOT EXECUTED 00058694 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 58694: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 58698: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 5869c: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED 586a0: e1a05001 mov r5, r1 <== NOT EXECUTED 586a4: 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 ); 586a8: ebfeb36a bl 5458 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 586ac: e2507000 subs r7, r0, #0 <== NOT EXECUTED 586b0: 1a0000f1 bne 58a7c <_rename_r+0x3e8> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 586b4: e5d53000 ldrb r3, [r5] <== NOT EXECUTED 586b8: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 586bc: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 586c0: 1a000063 bne 58854 <_rename_r+0x1c0> <== NOT EXECUTED 586c4: e59f33e4 ldr r3, [pc, #996] ; 58ab0 <_rename_r+0x41c> <== NOT EXECUTED 586c8: e593c000 ldr ip, [r3] <== NOT EXECUTED 586cc: e28cc018 add ip, ip, #24 <== NOT EXECUTED 586d0: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 586d4: e28d4018 add r4, sp, #24 <== NOT EXECUTED 586d8: e1a0a004 mov sl, r4 <== NOT EXECUTED 586dc: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED 586e0: e59c2000 ldr r2, [ip] <== NOT EXECUTED 586e4: e58a2000 str r2, [sl] <== NOT EXECUTED 586e8: e3a08000 mov r8, #0 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 586ec: e1a0e004 mov lr, r4 <== NOT EXECUTED 586f0: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 586f4: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED 586f8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 586fc: e59e3000 ldr r3, [lr] <== NOT EXECUTED name = old + old_parent_pathlen; 58700: e0855007 add r5, r5, r7 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 58704: e58c3000 str r3, [ip] <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 58708: 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; 5870c: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 58710: ebffb36b bl 454c4 <== NOT EXECUTED 58714: e1a01000 mov r1, r0 <== NOT EXECUTED 58718: e1a00005 mov r0, r5 <== NOT EXECUTED 5871c: ebfeb339 bl 5408 <== NOT EXECUTED 58720: e0855000 add r5, r5, r0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 58724: 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 ) ); 58728: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 5872c: ebffb364 bl 454c4 <== NOT EXECUTED 58730: e28d702c add r7, sp, #44 ; 0x2c <== NOT EXECUTED 58734: e3a0c000 mov ip, #0 <== NOT EXECUTED 58738: e1a01000 mov r1, r0 <== NOT EXECUTED 5873c: e1a0200c mov r2, ip <== NOT EXECUTED 58740: e1a00005 mov r0, r5 <== NOT EXECUTED 58744: e1a03007 mov r3, r7 <== NOT EXECUTED 58748: e58dc000 str ip, [sp] <== NOT EXECUTED 5874c: ebfeb35b bl 54c0 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 58750: e2505000 subs r5, r0, #0 <== NOT EXECUTED 58754: 1a000080 bne 5895c <_rename_r+0x2c8> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 58758: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 5875c: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 58760: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 58764: 13a0c000 movne ip, #0 <== NOT EXECUTED 58768: 03a0c001 moveq ip, #1 <== NOT EXECUTED 5876c: 1a000045 bne 58888 <_rename_r+0x1f4> <== NOT EXECUTED 58770: e59f3338 ldr r3, [pc, #824] ; 58ab0 <_rename_r+0x41c> <== NOT EXECUTED 58774: e593c000 ldr ip, [r3] <== NOT EXECUTED 58778: e28cc018 add ip, ip, #24 <== NOT EXECUTED 5877c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 58780: e28d5004 add r5, sp, #4 <== NOT EXECUTED 58784: e1a0a005 mov sl, r5 <== NOT EXECUTED 58788: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED 5878c: e59c2000 ldr r2, [ip] <== NOT EXECUTED 58790: e58a2000 str r2, [sl] <== NOT EXECUTED 58794: e3a0c001 mov ip, #1 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 58798: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 5879c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 587a0: e3530000 cmp r3, #0 <== NOT EXECUTED 587a4: 0a00009d beq 58a20 <_rename_r+0x38c> <== 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 ); 587a8: e086000c add r0, r6, ip <== NOT EXECUTED 587ac: e1a01005 mov r1, r5 <== NOT EXECUTED 587b0: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 587b4: e1a0e00f mov lr, pc <== NOT EXECUTED 587b8: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 587bc: e2506000 subs r6, r0, #0 <== NOT EXECUTED 587c0: 1a000073 bne 58994 <_rename_r+0x300> <== 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 ) { 587c4: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED 587c8: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED 587cc: e1520003 cmp r2, r3 <== NOT EXECUTED 587d0: 1a000042 bne 588e0 <_rename_r+0x24c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { 587d4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 587d8: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED 587dc: e35c0000 cmp ip, #0 <== NOT EXECUTED 587e0: 0a000089 beq 58a0c <_rename_r+0x378> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 587e4: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED 587e8: e1a00004 mov r0, r4 <== NOT EXECUTED 587ec: e1a01007 mov r1, r7 <== NOT EXECUTED 587f0: e1a02005 mov r2, r5 <== NOT EXECUTED 587f4: e1a0e00f mov lr, pc <== NOT EXECUTED 587f8: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 587fc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 58800: e3530000 cmp r3, #0 <== 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 ); 58804: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 58808: 0a000004 beq 58820 <_rename_r+0x18c> <== NOT EXECUTED 5880c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58810: e3530000 cmp r3, #0 <== NOT EXECUTED 58814: 11a00005 movne r0, r5 <== NOT EXECUTED 58818: 11a0e00f movne lr, pc <== NOT EXECUTED 5881c: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 58820: e3580000 cmp r8, #0 <== NOT EXECUTED 58824: 1a000023 bne 588b8 <_rename_r+0x224> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 58828: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 5882c: e3530000 cmp r3, #0 <== NOT EXECUTED 58830: 0a000004 beq 58848 <_rename_r+0x1b4> <== NOT EXECUTED 58834: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58838: e3530000 cmp r3, #0 <== NOT EXECUTED 5883c: 11a00007 movne r0, r7 <== NOT EXECUTED 58840: 11a0e00f movne lr, pc <== NOT EXECUTED 58844: 112fff13 bxne r3 <== NOT EXECUTED return result; } 58848: e1a00006 mov r0, r6 <== NOT EXECUTED 5884c: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 58850: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED */ old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 58854: e3530000 cmp r3, #0 <== NOT EXECUTED 58858: 0affff99 beq 586c4 <_rename_r+0x30> <== NOT EXECUTED 5885c: e59f324c ldr r3, [pc, #588] ; 58ab0 <_rename_r+0x41c> <== NOT EXECUTED 58860: e593c000 ldr ip, [r3] <== NOT EXECUTED 58864: e28cc004 add ip, ip, #4 <== NOT EXECUTED 58868: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 5886c: e28d4018 add r4, sp, #24 <== NOT EXECUTED 58870: e1a0e004 mov lr, r4 <== NOT EXECUTED 58874: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 58878: e59c2000 ldr r2, [ip] <== NOT EXECUTED 5887c: e1a08007 mov r8, r7 <== NOT EXECUTED 58880: e58e2000 str r2, [lr] <== NOT EXECUTED 58884: eaffff98 b 586ec <_rename_r+0x58> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 58888: e3530000 cmp r3, #0 <== NOT EXECUTED 5888c: 0affffb7 beq 58770 <_rename_r+0xdc> <== NOT EXECUTED 58890: e59f3218 ldr r3, [pc, #536] ; 58ab0 <_rename_r+0x41c> <== NOT EXECUTED 58894: e593e000 ldr lr, [r3] <== NOT EXECUTED 58898: e28ee004 add lr, lr, #4 <== NOT EXECUTED 5889c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 588a0: e28d5004 add r5, sp, #4 <== NOT EXECUTED 588a4: e1a0a005 mov sl, r5 <== NOT EXECUTED 588a8: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED 588ac: e59e2000 ldr r2, [lr] <== NOT EXECUTED 588b0: e58a2000 str r2, [sl] <== NOT EXECUTED 588b4: eaffffb7 b 58798 <_rename_r+0x104> <== NOT EXECUTED result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); 588b8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 588bc: e3530000 cmp r3, #0 <== NOT EXECUTED 588c0: 0affffd8 beq 58828 <_rename_r+0x194> <== NOT EXECUTED 588c4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 588c8: e3530000 cmp r3, #0 <== NOT EXECUTED 588cc: 0affffd5 beq 58828 <_rename_r+0x194> <== NOT EXECUTED 588d0: e1a00004 mov r0, r4 <== NOT EXECUTED 588d4: e1a0e00f mov lr, pc <== NOT EXECUTED 588d8: e12fff13 bx r3 <== NOT EXECUTED 588dc: eaffffd1 b 58828 <_rename_r+0x194> <== NOT EXECUTED * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { rtems_filesystem_freenode( &new_parent_loc ); 588e0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 588e4: e3530000 cmp r3, #0 <== NOT EXECUTED 588e8: 0a000004 beq 58900 <_rename_r+0x26c> <== NOT EXECUTED 588ec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 588f0: e3530000 cmp r3, #0 <== NOT EXECUTED 588f4: 11a00005 movne r0, r5 <== NOT EXECUTED 588f8: 11a0e00f movne lr, pc <== NOT EXECUTED 588fc: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 58900: e3580000 cmp r8, #0 <== NOT EXECUTED 58904: 0a000007 beq 58928 <_rename_r+0x294> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 58908: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 5890c: e3530000 cmp r3, #0 <== NOT EXECUTED 58910: 0a000004 beq 58928 <_rename_r+0x294> <== NOT EXECUTED 58914: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58918: e3530000 cmp r3, #0 <== NOT EXECUTED 5891c: 11a00004 movne r0, r4 <== NOT EXECUTED 58920: 11a0e00f movne lr, pc <== NOT EXECUTED 58924: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 58928: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 5892c: e3530000 cmp r3, #0 <== NOT EXECUTED 58930: 0a000004 beq 58948 <_rename_r+0x2b4> <== NOT EXECUTED 58934: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58938: e3530000 cmp r3, #0 <== NOT EXECUTED 5893c: 11a00007 movne r0, r7 <== NOT EXECUTED 58940: 11a0e00f movne lr, pc <== NOT EXECUTED 58944: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 58948: ebff9852 bl 3ea98 <__errno> <== NOT EXECUTED 5894c: e3a03012 mov r3, #18 <== NOT EXECUTED 58950: e5803000 str r3, [r0] <== NOT EXECUTED 58954: e3e06000 mvn r6, #0 <== NOT EXECUTED 58958: eaffffba b 58848 <_rename_r+0x1b4> <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) 5895c: e3580000 cmp r8, #0 <== NOT EXECUTED 58960: 0a000007 beq 58984 <_rename_r+0x2f0> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 58964: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 58968: e3530000 cmp r3, #0 <== NOT EXECUTED 5896c: 0a000004 beq 58984 <_rename_r+0x2f0> <== NOT EXECUTED 58970: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58974: e3530000 cmp r3, #0 <== NOT EXECUTED 58978: 11a00004 movne r0, r4 <== NOT EXECUTED 5897c: 11a0e00f movne lr, pc <== NOT EXECUTED 58980: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 58984: ebff9843 bl 3ea98 <__errno> <== NOT EXECUTED 58988: e3e06000 mvn r6, #0 <== NOT EXECUTED 5898c: e5805000 str r5, [r0] <== NOT EXECUTED 58990: eaffffac b 58848 <_rename_r+0x1b4> <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); 58994: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 58998: e3530000 cmp r3, #0 <== NOT EXECUTED 5899c: 0a000004 beq 589b4 <_rename_r+0x320> <== NOT EXECUTED 589a0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 589a4: e3530000 cmp r3, #0 <== NOT EXECUTED 589a8: 11a00005 movne r0, r5 <== NOT EXECUTED 589ac: 11a0e00f movne lr, pc <== NOT EXECUTED 589b0: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 589b4: e3580000 cmp r8, #0 <== NOT EXECUTED 589b8: 0a000007 beq 589dc <_rename_r+0x348> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 589bc: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 589c0: e3530000 cmp r3, #0 <== NOT EXECUTED 589c4: 0a000004 beq 589dc <_rename_r+0x348> <== NOT EXECUTED 589c8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 589cc: e3530000 cmp r3, #0 <== NOT EXECUTED 589d0: 11a00004 movne r0, r4 <== NOT EXECUTED 589d4: 11a0e00f movne lr, pc <== NOT EXECUTED 589d8: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 589dc: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 589e0: e3530000 cmp r3, #0 <== NOT EXECUTED 589e4: 0a000004 beq 589fc <_rename_r+0x368> <== NOT EXECUTED 589e8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 589ec: e3530000 cmp r3, #0 <== NOT EXECUTED 589f0: 11a00007 movne r0, r7 <== NOT EXECUTED 589f4: 11a0e00f movne lr, pc <== NOT EXECUTED 589f8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 589fc: ebff9825 bl 3ea98 <__errno> <== NOT EXECUTED 58a00: e5806000 str r6, [r0] <== NOT EXECUTED 58a04: e3e06000 mvn r6, #0 <== NOT EXECUTED 58a08: eaffff8e b 58848 <_rename_r+0x1b4> <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); 58a0c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58a10: e3530000 cmp r3, #0 <== NOT EXECUTED 58a14: 11a00005 movne r0, r5 <== NOT EXECUTED 58a18: 11a0e00f movne lr, pc <== NOT EXECUTED 58a1c: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 58a20: e3580000 cmp r8, #0 <== NOT EXECUTED 58a24: 0a000007 beq 58a48 <_rename_r+0x3b4> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 58a28: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 58a2c: e3530000 cmp r3, #0 <== NOT EXECUTED 58a30: 0a000004 beq 58a48 <_rename_r+0x3b4> <== NOT EXECUTED 58a34: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58a38: e3530000 cmp r3, #0 <== NOT EXECUTED 58a3c: 11a00004 movne r0, r4 <== NOT EXECUTED 58a40: 11a0e00f movne lr, pc <== NOT EXECUTED 58a44: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 58a48: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 58a4c: e3530000 cmp r3, #0 <== NOT EXECUTED 58a50: 0a000004 beq 58a68 <_rename_r+0x3d4> <== NOT EXECUTED 58a54: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 58a58: e3530000 cmp r3, #0 <== NOT EXECUTED 58a5c: 11a00007 movne r0, r7 <== NOT EXECUTED 58a60: 11a0e00f movne lr, pc <== NOT EXECUTED 58a64: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 58a68: ebff980a bl 3ea98 <__errno> <== NOT EXECUTED 58a6c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 58a70: e5803000 str r3, [r0] <== NOT EXECUTED 58a74: e3e06000 mvn r6, #0 <== NOT EXECUTED 58a78: eaffff72 b 58848 <_rename_r+0x1b4> <== NOT EXECUTED old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 58a7c: e28d4018 add r4, sp, #24 <== NOT EXECUTED 58a80: e3a0c000 mov ip, #0 <== NOT EXECUTED 58a84: e1a00005 mov r0, r5 <== NOT EXECUTED 58a88: e1a01007 mov r1, r7 <== NOT EXECUTED 58a8c: e3a02002 mov r2, #2 <== NOT EXECUTED 58a90: e1a03004 mov r3, r4 <== NOT EXECUTED 58a94: e58dc000 str ip, [sp] <== NOT EXECUTED 58a98: ebfeb2c4 bl 55b0 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 58a9c: e3500000 cmp r0, #0 <== NOT EXECUTED 58aa0: 03a08001 moveq r8, #1 <== NOT EXECUTED 58aa4: 0affff10 beq 586ec <_rename_r+0x58> <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_set_errno_and_return_minus_one( result ); 58aa8: e3e06000 mvn r6, #0 <== NOT EXECUTED 58aac: eaffff65 b 58848 <_rename_r+0x1b4> <== NOT EXECUTED 58ab0: 00058ed8 .word 0x00058ed8 00006ec4 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 6ec4: e1a00001 mov r0, r1 <== NOT EXECUTED 6ec8: e1a01002 mov r1, r2 <== NOT EXECUTED 6ecc: eaffffc2 b 6ddc <== NOT EXECUTED 0000d124 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); d124: e1a00001 mov r0, r1 <== NOT EXECUTED d128: eaffff55 b ce84 <== NOT EXECUTED 00025108 : #include int chdir( const char *pathname ) { 25108: e92d4030 push {r4, r5, lr} 2510c: e24dd018 sub sp, sp, #24 25110: 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 ); 25114: eb0080ea bl 454c4 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 25118: e28d4004 add r4, sp, #4 2511c: e3a0c001 mov ip, #1 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 25120: e1a01000 mov r1, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 25124: e1a0200c mov r2, ip 25128: e1a00005 mov r0, r5 2512c: e1a03004 mov r3, r4 25130: e58dc000 str ip, [sp] 25134: ebff811d bl 55b0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 25138: e3500000 cmp r0, #0 2513c: 1a000024 bne 251d4 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 25140: e59d2010 ldr r2, [sp, #16] 25144: e5923010 ldr r3, [r2, #16] 25148: e3530000 cmp r3, #0 2514c: 0a000018 beq 251b4 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 25150: e1a00004 mov r0, r4 25154: e1a0e00f mov lr, pc 25158: e12fff13 bx r3 2515c: e3500001 cmp r0, #1 25160: 1a00001d bne 251dc rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 25164: e59f50a4 ldr r5, [pc, #164] ; 25210 25168: e595c000 ldr ip, [r5] 2516c: e59c3010 ldr r3, [ip, #16] 25170: e3530000 cmp r3, #0 25174: 0a000006 beq 25194 25178: e593301c ldr r3, [r3, #28] 2517c: e3530000 cmp r3, #0 25180: 0a000003 beq 25194 25184: e28c0004 add r0, ip, #4 25188: e1a0e00f mov lr, pc 2518c: e12fff13 bx r3 25190: e595c000 ldr ip, [r5] rtems_filesystem_current = loc; 25194: e8b4000f ldm r4!, {r0, r1, r2, r3} 25198: e28cc004 add ip, ip, #4 2519c: e8ac000f stmia ip!, {r0, r1, r2, r3} 251a0: e5943000 ldr r3, [r4] 251a4: e58c3000 str r3, [ip] 251a8: e3a00000 mov r0, #0 return 0; } 251ac: e28dd018 add sp, sp, #24 251b0: e8bd8030 pop {r4, r5, pc} /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 251b4: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 251b8: e3530000 cmp r3, #0 <== NOT EXECUTED 251bc: 11a00004 movne r0, r4 <== NOT EXECUTED 251c0: 11a0e00f movne lr, pc <== NOT EXECUTED 251c4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 251c8: eb006632 bl 3ea98 <__errno> <== NOT EXECUTED 251cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 251d0: e5803000 str r3, [r0] <== NOT EXECUTED 251d4: e3e00000 mvn r0, #0 251d8: eafffff3 b 251ac } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 251dc: e59d3010 ldr r3, [sp, #16] 251e0: e3530000 cmp r3, #0 251e4: 0a000004 beq 251fc 251e8: e593301c ldr r3, [r3, #28] 251ec: e3530000 cmp r3, #0 251f0: 11a00004 movne r0, r4 251f4: 11a0e00f movne lr, pc 251f8: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 251fc: eb006625 bl 3ea98 <__errno> 25200: e3a03014 mov r3, #20 25204: e5803000 str r3, [r0] 25208: e3e00000 mvn r0, #0 2520c: eaffffe6 b 251ac 25210: 00058ed8 .word 0x00058ed8 00005268 : int chmod( const char *path, mode_t mode ) { 5268: e92d4070 push {r4, r5, r6, lr} 526c: e24dd018 sub sp, sp, #24 5270: e1a05001 mov r5, r1 5274: 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 ); 5278: eb010091 bl 454c4 527c: e28d4004 add r4, sp, #4 5280: e1a01000 mov r1, r0 5284: e3a0c001 mov ip, #1 5288: e1a00006 mov r0, r6 528c: e3a02000 mov r2, #0 5290: e1a03004 mov r3, r4 5294: e58dc000 str ip, [sp] 5298: eb0000c4 bl 55b0 if ( status != 0 ) 529c: e3500000 cmp r0, #0 52a0: 1a000020 bne 5328 return -1; if ( !loc.handlers ){ 52a4: e59d300c ldr r3, [sp, #12] 52a8: e3530000 cmp r3, #0 52ac: 0a000012 beq 52fc rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 52b0: e593301c ldr r3, [r3, #28] 52b4: e3530000 cmp r3, #0 52b8: 0a00001c beq 5330 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 52bc: e1a01005 mov r1, r5 52c0: e1a00004 mov r0, r4 52c4: e1a0e00f mov lr, pc 52c8: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 52cc: e59d3010 ldr r3, [sp, #16] 52d0: e3530000 cmp r3, #0 if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 52d4: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 52d8: 0a000004 beq 52f0 52dc: e593301c ldr r3, [r3, #28] 52e0: e3530000 cmp r3, #0 52e4: 11a00004 movne r0, r4 52e8: 11a0e00f movne lr, pc 52ec: 112fff13 bxne r3 return result; } 52f0: e1a00005 mov r0, r5 52f4: e28dd018 add sp, sp, #24 52f8: e8bd8070 pop {r4, r5, r6, pc} status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 52fc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 5300: e3530000 cmp r3, #0 <== NOT EXECUTED 5304: 0a000004 beq 531c <== NOT EXECUTED 5308: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 530c: e3530000 cmp r3, #0 <== NOT EXECUTED 5310: 11a00004 movne r0, r4 <== NOT EXECUTED 5314: 11a0e00f movne lr, pc <== NOT EXECUTED 5318: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 531c: eb00e5dd bl 3ea98 <__errno> <== NOT EXECUTED 5320: e3a03009 mov r3, #9 <== NOT EXECUTED 5324: e5803000 str r3, [r0] <== NOT EXECUTED 5328: e3e05000 mvn r5, #0 532c: eaffffef b 52f0 } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 5330: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 5334: e3530000 cmp r3, #0 <== NOT EXECUTED 5338: 0a000004 beq 5350 <== NOT EXECUTED 533c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 5340: e3530000 cmp r3, #0 <== NOT EXECUTED 5344: 11a00004 movne r0, r4 <== NOT EXECUTED 5348: 11a0e00f movne lr, pc <== NOT EXECUTED 534c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 5350: eb00e5d0 bl 3ea98 <__errno> <== NOT EXECUTED 5354: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 5358: e5803000 str r3, [r0] <== NOT EXECUTED 535c: e3e05000 mvn r5, #0 <== NOT EXECUTED 5360: eaffffe2 b 52f0 <== NOT EXECUTED 00025214 : int chown( const char *path, uid_t owner, gid_t group ) { 25214: e92d40f0 push {r4, r5, r6, r7, lr} 25218: e1a01801 lsl r1, r1, #16 2521c: e24dd018 sub sp, sp, #24 25220: e1a02802 lsl r2, r2, #16 25224: e1a06821 lsr r6, r1, #16 25228: e1a05822 lsr r5, r2, #16 2522c: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 25230: eb0080a3 bl 454c4 25234: e28d4004 add r4, sp, #4 25238: e1a01000 mov r1, r0 2523c: e3a0c001 mov ip, #1 25240: e1a00007 mov r0, r7 25244: e3a02000 mov r2, #0 25248: e1a03004 mov r3, r4 2524c: e58dc000 str ip, [sp] 25250: ebff80d6 bl 55b0 25254: e3500000 cmp r0, #0 25258: 1a00001c bne 252d0 return -1; if ( !loc.ops->chown_h ) { 2525c: e59d2010 ldr r2, [sp, #16] 25260: e5923018 ldr r3, [r2, #24] 25264: e3530000 cmp r3, #0 25268: 0a000010 beq 252b0 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 2526c: e1a02005 mov r2, r5 25270: e1a01006 mov r1, r6 25274: e1a00004 mov r0, r4 25278: e1a0e00f mov lr, pc 2527c: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 25280: e59d3010 ldr r3, [sp, #16] 25284: e3530000 cmp r3, #0 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 ); 25288: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 2528c: 0a000004 beq 252a4 25290: e593301c ldr r3, [r3, #28] 25294: e3530000 cmp r3, #0 25298: 11a00004 movne r0, r4 2529c: 11a0e00f movne lr, pc 252a0: 112fff13 bxne r3 return result; } 252a4: e1a00005 mov r0, r5 252a8: e28dd018 add sp, sp, #24 252ac: e8bd80f0 pop {r4, r5, r6, r7, pc} if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 252b0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 252b4: e3530000 cmp r3, #0 <== NOT EXECUTED 252b8: 11a00004 movne r0, r4 <== NOT EXECUTED 252bc: 11a0e00f movne lr, pc <== NOT EXECUTED 252c0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 252c4: eb0065f3 bl 3ea98 <__errno> <== NOT EXECUTED 252c8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 252cc: e5803000 str r3, [r0] <== NOT EXECUTED 252d0: e3e05000 mvn r5, #0 252d4: eafffff2 b 252a4 000252d8 : #include int chroot( const char *pathname ) { 252d8: 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) { 252dc: e59f50d8 ldr r5, [pc, #216] ; 253bc 252e0: e59f30d8 ldr r3, [pc, #216] ; 253c0 252e4: e5954000 ldr r4, [r5] 252e8: e1540003 cmp r4, r3 #include int chroot( const char *pathname ) { 252ec: e24dd018 sub sp, sp, #24 252f0: 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) { 252f4: 0a000020 beq 2537c rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); 252f8: e1a00006 mov r0, r6 252fc: ebffff81 bl 25108 if (result) { 25300: e250c000 subs ip, r0, #0 25304: 1a000025 bne 253a0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 25308: e28d4004 add r4, sp, #4 2530c: e1a0200c mov r2, ip 25310: e59f00ac ldr r0, [pc, #172] ; 253c4 25314: e3a01001 mov r1, #1 25318: e1a03004 mov r3, r4 2531c: e58dc000 str ip, [sp] 25320: ebff80a2 bl 55b0 25324: e3500000 cmp r0, #0 25328: 1a00001c bne 253a0 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); } rtems_filesystem_freenode(&rtems_filesystem_root); 2532c: e595c000 ldr ip, [r5] 25330: e59c3024 ldr r3, [ip, #36] ; 0x24 25334: e3530000 cmp r3, #0 25338: 0a000007 beq 2535c 2533c: e593301c ldr r3, [r3, #28] 25340: e3530000 cmp r3, #0 25344: 0a000004 beq 2535c 25348: e28c0018 add r0, ip, #24 2534c: e1a0e00f mov lr, pc 25350: e12fff13 bx r3 25354: e59f3060 ldr r3, [pc, #96] ; 253bc 25358: e593c000 ldr ip, [r3] rtems_filesystem_root = loc; 2535c: e8b4000f ldm r4!, {r0, r1, r2, r3} 25360: e28cc018 add ip, ip, #24 25364: e8ac000f stmia ip!, {r0, r1, r2, r3} 25368: e5943000 ldr r3, [r4] 2536c: e58c3000 str r3, [ip] 25370: e3a00000 mov r0, #0 return 0; } 25374: e28dd018 add sp, sp, #24 25378: e8bd8070 pop {r4, r5, r6, pc} int result; rtems_filesystem_location_info_t loc; /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ 2537c: eb000621 bl 26c08 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 25380: e5953000 ldr r3, [r5] 25384: e1530004 cmp r3, r4 25388: 1affffda bne 252f8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2538c: eb0065c1 bl 3ea98 <__errno> <== NOT EXECUTED 25390: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 25394: e5803000 str r3, [r0] <== NOT EXECUTED 25398: e3e00000 mvn r0, #0 <== NOT EXECUTED 2539c: eafffff4 b 25374 <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 253a0: eb0065bc bl 3ea98 <__errno> <== NOT EXECUTED 253a4: e1a04000 mov r4, r0 <== NOT EXECUTED 253a8: eb0065ba bl 3ea98 <__errno> <== NOT EXECUTED 253ac: e5903000 ldr r3, [r0] <== NOT EXECUTED 253b0: e3e00000 mvn r0, #0 <== NOT EXECUTED 253b4: e5843000 str r3, [r4] <== NOT EXECUTED 253b8: eaffffed b 25374 <== NOT EXECUTED 253bc: 00058ed8 .word 0x00058ed8 253c0: 00066e60 .word 0x00066e60 253c4: 0005ded8 .word 0x0005ded8 00007e88 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 7e88: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 7e8c: e5936000 ldr r6, [r3] if (!device_name_table) 7e90: e3560000 cmp r6, #0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 7e94: e1a0b003 mov fp, r3 7e98: e1a0a000 mov sl, r0 7e9c: e1a07001 mov r7, r1 rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) 7ea0: 0a000026 beq 7f40 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 7ea4: e59f30a8 ldr r3, [pc, #168] ; 7f54 7ea8: e5938000 ldr r8, [r3] 7eac: e3580000 cmp r8, #0 } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 7eb0: 13a09000 movne r9, #0 7eb4: 11a04009 movne r4, r9 for (i = 0; i < rtems_device_table_size; i++) { 7eb8: 0a000011 beq 7f04 if (!device_name_table[i].device_name) 7ebc: e0899109 add r9, r9, r9, lsl #2 7ec0: e7965109 ldr r5, [r6, r9, lsl #2] 7ec4: e3550000 cmp r5, #0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 7ec8: e1a0000a mov r0, sl 7ecc: e1a02007 mov r2, r7 7ed0: e1a01005 mov r1, 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++) { 7ed4: e2844001 add r4, r4, #1 if (!device_name_table[i].device_name) 7ed8: e0869109 add r9, r6, r9, lsl #2 7edc: 0a000005 beq 7ef8 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 7ee0: eb000fc9 bl be0c 7ee4: e3500000 cmp r0, #0 7ee8: 1a000002 bne 7ef8 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 7eec: e7d50007 ldrb r0, [r5, r7] 7ef0: e3500000 cmp r0, #0 7ef4: 0a000007 beq 7f18 /* 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++) { 7ef8: e1580004 cmp r8, r4 7efc: e1a09004 mov r9, r4 7f00: 8affffed bhi 7ebc pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 7f04: eb000c0a bl af34 <__errno> 7f08: e3a03002 mov r3, #2 7f0c: e5803000 str r3, [r0] 7f10: e3e00000 mvn r0, #0 } 7f14: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 7f18: e59f3038 ldr r3, [pc, #56] ; 7f58 7f1c: e5933000 ldr r3, [r3] 7f20: e5933028 ldr r3, [r3, #40] ; 0x28 7f24: e58b3010 str r3, [fp, #16] if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; 7f28: e59f302c ldr r3, [pc, #44] ; 7f5c 7f2c: e58b3008 str r3, [fp, #8] pathloc->ops = &devFS_ops; 7f30: e59f3028 ldr r3, [pc, #40] ; 7f60 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 7f34: e58b9000 str r9, [fp] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; 7f38: e58b300c str r3, [fp, #12] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 7f3c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 7f40: eb000bfb bl af34 <__errno> <== NOT EXECUTED 7f44: e3a0300e mov r3, #14 <== NOT EXECUTED 7f48: e5803000 str r3, [r0] <== NOT EXECUTED 7f4c: e3e00000 mvn r0, #0 <== NOT EXECUTED 7f50: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 7f54: 0000da34 .word 0x0000da34 7f58: 0000dc1c .word 0x0000dc1c 7f5c: 0000db88 .word 0x0000db88 7f60: 0000dbc0 .word 0x0000dbc0 00000ba8 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ba8: e92d4070 push {r4, r5, r6, lr} rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( bac: e59f605c ldr r6, [pc, #92] ; c10 bb0: e5963000 ldr r3, [r6] bb4: e0833103 add r3, r3, r3, lsl #2 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { bb8: 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( bbc: e1a00103 lsl r0, r3, #2 bc0: eb001b80 bl 79c8 <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) bc4: e2505000 subs r5, r0, #0 bc8: 0a00000b beq bfc rtems_set_errno_and_return_minus_one( ENOMEM ); memset( bcc: e5962000 ldr r2, [r6] bd0: e0822102 add r2, r2, r2, lsl #2 bd4: e1a02102 lsl r2, r2, #2 bd8: e3a01000 mov r1, #0 bdc: eb002b02 bl b7ec 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; be0: e59f302c ldr r3, [pc, #44] ; c14 temp_mt_entry->mt_fs_root.ops = &devFS_ops; be4: e2832038 add r2, r3, #56 ; 0x38 /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; be8: e584501c str r5, [r4, #28] sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; temp_mt_entry->mt_fs_root.ops = &devFS_ops; bec: 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; bf0: e5843024 str r3, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = &devFS_ops; /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; bf4: e3a00000 mov r0, #0 return 0; } bf8: e8bd8070 pop {r4, r5, r6, pc} sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); bfc: eb0028cc bl af34 <__errno> <== NOT EXECUTED c00: e3a0300c mov r3, #12 <== NOT EXECUTED c04: e5803000 str r3, [r0] <== NOT EXECUTED c08: e3e00000 mvn r0, #0 <== NOT EXECUTED c0c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED c10: 0000da34 .word 0x0000da34 c14: 0000db88 .word 0x0000db88 00000d80 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { d80: e52de004 push {lr} ; (str lr, [sp, #-4]!) d84: e24dd010 sub sp, sp, #16 d88: e1a03000 mov r3, r0 rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.command = command; d8c: e58d1004 str r1, [sp, #4] { rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; d90: e5900038 ldr r0, [r0, #56] ; 0x38 args.iop = iop; args.command = command; args.buffer = buffer; d94: e58d2008 str r2, [sp, #8] status = rtems_io_control( d98: e590100c ldr r1, [r0, #12] d9c: e1a0200d mov r2, sp da0: 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; da4: e58d3000 str r3, [sp] args.command = command; args.buffer = buffer; status = rtems_io_control( da8: eb000fd7 bl 4d0c np->major, np->minor, (void *) &args ); if ( status ) dac: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; db0: 059d000c ldreq r0, [sp, #12] np->major, np->minor, (void *) &args ); if ( status ) db4: 1a000001 bne dc0 return rtems_deviceio_errno(status); return args.ioctl_return; } db8: e28dd010 add sp, sp, #16 dbc: e8bd8000 pop {pc} np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); dc0: eb001c67 bl 7f64 <== NOT EXECUTED dc4: eafffffb b db8 <== NOT EXECUTED 00000c18 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { c18: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} c1c: 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') && c20: e5d00000 ldrb r0, [r0] c24: e3500064 cmp r0, #100 ; 0x64 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { c28: e1a05001 mov r5, r1 c2c: e1a06002 mov r6, r2 c30: e1a0b003 mov fp, r3 * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && c34: 0a000035 beq d10 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) c38: e2053a0f and r3, r5, #61440 ; 0xf000 c3c: e3530a02 cmp r3, #8192 ; 0x2000 c40: 13530a06 cmpne r3, #24576 ; 0x6000 c44: 03a03000 moveq r3, #0 c48: 13a03001 movne r3, #1 c4c: 1a000039 bne d38 rtems_set_errno_and_return_minus_one( EINVAL ); else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; c50: e59d2024 ldr r2, [sp, #36] ; 0x24 c54: e5928000 ldr r8, [r2] if (!device_name_table) c58: e3580000 cmp r8, #0 c5c: 0a00003f beq d60 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ c60: e59f210c ldr r2, [pc, #268] ; d74 c64: e592a000 ldr sl, [r2] c68: e35a0000 cmp sl, #0 rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); c6c: 13e09000 mvnne r9, #0 c70: 11a07003 movne r7, r3 for (slot = -1, i = 0; i < rtems_device_table_size; i++){ c74: 1a000007 bne c98 c78: ea000033 b d4c <== NOT EXECUTED if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) c7c: eb002b82 bl ba8c <== NOT EXECUTED c80: e3500000 cmp r0, #0 <== NOT EXECUTED c84: 0a00001c beq cfc <== NOT EXECUTED /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ c88: e2877001 add r7, r7, #1 <== NOT EXECUTED c8c: e157000a cmp r7, sl <== NOT EXECUTED c90: e1a03007 mov r3, r7 <== NOT EXECUTED c94: 2a000009 bcs cc0 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) c98: e0833103 add r3, r3, r3, lsl #2 c9c: e7983103 ldr r3, [r8, r3, lsl #2] ca0: e2531000 subs r1, r3, #0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ca4: e1a00004 mov r0, r4 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) ca8: 1afffff3 bne c7c slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); cac: e1a09007 mov r9, r7 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ cb0: e2877001 add r7, r7, #1 cb4: e157000a cmp r7, sl cb8: e1a03007 mov r3, r7 cbc: 3afffff5 bcc c98 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) cc0: e3790001 cmn r9, #1 cc4: 0a000020 beq d4c static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( cc8: e10f7000 mrs r7, CPSR ccc: e3873080 orr r3, r7, #128 ; 0x80 cd0: e129f003 msr CPSR_fc, r3 rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; cd4: e0899109 add r9, r9, r9, lsl #2 cd8: e7884109 str r4, [r8, r9, lsl #2] device_name_table[slot].device_name_length = strlen(path); cdc: e1a00004 mov r0, r4 ce0: eb002c31 bl bdac if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; ce4: e0888109 add r8, r8, r9, lsl #2 device_name_table[slot].device_name_length = strlen(path); device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; ce8: e5885010 str r5, [r8, #16] if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; device_name_table[slot].device_name_length = strlen(path); cec: e9880841 stmib r8, {r0, r6, fp} static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( cf0: e129f007 msr CPSR_fc, r7 cf4: e3a00000 mov r0, #0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } cf8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); cfc: eb00288c bl af34 <__errno> <== NOT EXECUTED d00: e3a03011 mov r3, #17 <== NOT EXECUTED d04: e5803000 str r3, [r0] <== NOT EXECUTED d08: e3e00000 mvn r0, #0 <== NOT EXECUTED d0c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && d10: e5d43001 ldrb r3, [r4, #1] d14: e3530065 cmp r3, #101 ; 0x65 d18: 1affffc6 bne c38 (path[2] == 'v') && (path[3] == '\0')) d1c: e5d43002 ldrb r3, [r4, #2] d20: e3530076 cmp r3, #118 ; 0x76 d24: 1affffc3 bne c38 d28: e5d40003 ldrb r0, [r4, #3] d2c: e3500000 cmp r0, #0 d30: 1affffc0 bne c38 d34: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) rtems_set_errno_and_return_minus_one( EINVAL ); d38: eb00287d bl af34 <__errno> <== NOT EXECUTED d3c: e3a03016 mov r3, #22 <== NOT EXECUTED d40: e5803000 str r3, [r0] <== NOT EXECUTED d44: e3e00000 mvn r0, #0 <== NOT EXECUTED d48: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); d4c: eb002878 bl af34 <__errno> <== NOT EXECUTED d50: e3a0300c mov r3, #12 <== NOT EXECUTED d54: e5803000 str r3, [r0] <== NOT EXECUTED d58: e3e00000 mvn r0, #0 <== NOT EXECUTED d5c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); d60: eb002873 bl af34 <__errno> <== NOT EXECUTED d64: e3a0300e mov r3, #14 <== NOT EXECUTED d68: e5803000 str r3, [r0] <== NOT EXECUTED d6c: e3e00000 mvn r0, #0 <== NOT EXECUTED d70: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED d74: 0000da34 .word 0x0000da34 00000e08 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { e08: e92d4800 push {fp, lr} <== NOT EXECUTED e0c: e1a03000 mov r3, r0 <== NOT EXECUTED e10: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; e14: e5900014 ldr r0, [r0, #20] <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; e18: e58d2010 str r2, [sp, #16] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; e1c: e3a02000 mov r2, #0 <== NOT EXECUTED e20: e58d2018 str r2, [sp, #24] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; e24: e58d0014 str r0, [sp, #20] <== 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; e28: e5932038 ldr r2, [r3, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; e2c: e283c00c add ip, r3, #12 <== NOT EXECUTED e30: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED args.buffer = buffer; e34: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( e38: e2820008 add r0, r2, #8 <== NOT EXECUTED e3c: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED e40: e1a0200d mov r2, sp <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; e44: e98d1800 stmib sp, {fp, ip} <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; e48: e58d3000 str r3, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( e4c: eb001010 bl 4e94 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) e50: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; e54: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) e58: 1a000001 bne e64 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } e5c: e28dd01c add sp, sp, #28 <== NOT EXECUTED e60: e8bd8800 pop {fp, pc} <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); e64: eb001c3e bl 7f64 <== NOT EXECUTED e68: eafffffb b e5c <== NOT EXECUTED 00000e6c : struct stat *buf ) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; e6c: e5903000 ldr r3, [r0] if (!the_dev) e70: e3530000 cmp r3, #0 int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { e74: 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) e78: 0a000007 beq e9c rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; e7c: 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 ); e80: e593200c ldr r2, [r3, #12] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; e84: e5933008 ldr r3, [r3, #8] buf->st_mode = the_dev->mode; e88: 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 ); e8c: e5813018 str r3, [r1, #24] e90: e581201c str r2, [r1, #28] buf->st_mode = the_dev->mode; e94: e3a00000 mov r0, #0 return 0; } e98: e49df004 pop {pc} ; (ldr pc, [sp], #4) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); e9c: eb002824 bl af34 <__errno> <== NOT EXECUTED ea0: e3a0300e mov r3, #14 <== NOT EXECUTED ea4: e5803000 str r3, [r0] <== NOT EXECUTED ea8: e3e00000 mvn r0, #0 <== NOT EXECUTED eac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00000eb0 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { eb0: e92d4800 push {fp, lr} eb4: e1a03000 mov r3, r0 eb8: e24dd01c sub sp, sp, #28 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ebc: e5900014 ldr r0, [r0, #20] np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; ec0: e58d2010 str r2, [sp, #16] args.flags = iop->flags; args.bytes_moved = 0; ec4: e3a02000 mov r2, #0 ec8: e58d2018 str r2, [sp, #24] args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ecc: e58d0014 str r0, [sp, #20] { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; ed0: e5932038 ldr r2, [r3, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; ed4: e283c00c add ip, r3, #12 ed8: e89c1800 ldm ip, {fp, ip} args.buffer = (void *) buffer; edc: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ee0: e2820008 add r0, r2, #8 ee4: e8900003 ldm r0, {r0, r1} ee8: e1a0200d mov r2, sp rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; eec: e98d1800 stmib sp, {fp, ip} rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; ef0: e58d3000 str r3, [sp] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ef4: eb000ffa bl 4ee4 np->major, np->minor, (void *) &args ); if ( status ) ef8: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; efc: 059d0018 ldreq r0, [sp, #24] np->major, np->minor, (void *) &args ); if ( status ) f00: 1a000001 bne f0c return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } f04: e28dd01c add sp, sp, #28 f08: e8bd8800 pop {fp, pc} np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); f0c: eb001c14 bl 7f64 <== NOT EXECUTED f10: eafffffb b f04 <== NOT EXECUTED 0000b23c : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { b23c: e52de004 push {lr} ; (str lr, [sp, #-4]!) b240: e24dd010 sub sp, sp, #16 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; b244: e88d0007 stm sp, {r0, r1, r2} the_jnode = iop->file_info; b248: e5903038 ldr r3, [r0, #56] ; 0x38 status = rtems_io_control( b24c: e1a0200d mov r2, sp b250: e2830050 add r0, r3, #80 ; 0x50 b254: e8900003 ldm r0, {r0, r1} b258: eb0005a0 bl c8e0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) b25c: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; b260: 059d000c ldreq r0, [sp, #12] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) b264: 1a000001 bne b270 return rtems_deviceio_errno(status); return args.ioctl_return; } b268: e28dd010 add sp, sp, #16 b26c: e8bd8000 pop {pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); b270: eb0006ef bl ce34 <== NOT EXECUTED b274: eafffffb b b268 <== NOT EXECUTED 0000b2d8 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { b2d8: e92d4800 push {fp, lr} <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; b2dc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; b2e0: e280c00c add ip, r0, #12 <== NOT EXECUTED b2e4: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { b2e8: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; b2ec: e58d3014 str r3, [sp, #20] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; b2f0: e98d1800 stmib sp, {fp, ip} <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; b2f4: e3a03000 mov r3, #0 <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; b2f8: e58d2010 str r2, [sp, #16] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; b2fc: e58d3018 str r3, [sp, #24] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; b300: e58d100c str r1, [sp, #12] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; b304: e58d0000 str r0, [sp] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; b308: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( b30c: e1a0200d mov r2, sp <== NOT EXECUTED b310: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED b314: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED b318: eb000598 bl c980 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) b31c: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; b320: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) b324: 1a000001 bne b330 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } b328: e28dd01c add sp, sp, #28 <== NOT EXECUTED b32c: e8bd8800 pop {fp, pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); b330: eb0006bf bl ce34 <== NOT EXECUTED b334: eafffffb b b328 <== NOT EXECUTED 0000b278 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { b278: e92d4800 push {fp, lr} args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; b27c: e5903014 ldr r3, [r0, #20] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; b280: e280c00c add ip, r0, #12 b284: e89c1800 ldm ip, {fp, ip} ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { b288: e24dd01c sub sp, sp, #28 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; b28c: e58d3014 str r3, [sp, #20] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; b290: e98d1800 stmib sp, {fp, ip} args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; b294: e3a03000 mov r3, #0 the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; b298: e58d2010 str r2, [sp, #16] args.flags = iop->flags; args.bytes_moved = 0; b29c: e58d3018 str r3, [sp, #24] the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; b2a0: e58d100c str r1, [sp, #12] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; b2a4: e58d0000 str r0, [sp] { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; b2a8: e5903038 ldr r3, [r0, #56] ; 0x38 args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( b2ac: e1a0200d mov r2, sp b2b0: e2830050 add r0, r3, #80 ; 0x50 b2b4: e8900003 ldm r0, {r0, r1} b2b8: eb0005c4 bl c9d0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) b2bc: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; b2c0: 059d0018 ldreq r0, [sp, #24] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) b2c4: 1a000001 bne b2d0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } b2c8: e28dd01c add sp, sp, #28 b2cc: e8bd8800 pop {fp, pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); b2d0: eb0006d7 bl ce34 <== NOT EXECUTED b2d4: eafffffb b b2c8 <== NOT EXECUTED 00002df4 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2df4: e59030b4 ldr r3, [r0, #180] ; 0xb4 2df8: e3530000 cmp r3, #0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2dfc: e92d4030 push {r4, r5, lr} 2e00: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2e04: 08bd8030 popeq {r4, r5, pc} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 2e08: e10f3000 mrs r3, CPSR <== NOT EXECUTED 2e0c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 2e10: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2e14: e5901084 ldr r1, [r0, #132] ; 0x84 <== NOT EXECUTED 2e18: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED 2e1c: e1510002 cmp r1, r2 <== NOT EXECUTED 2e20: 0a00000f beq 2e64 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2e24: e3a05002 mov r5, #2 <== NOT EXECUTED 2e28: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 2e2c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2e30: e3a01000 mov r1, #0 <== NOT EXECUTED 2e34: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 2e38: e1a02001 mov r2, r1 <== NOT EXECUTED 2e3c: eb00064a bl 476c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2e40: e3500000 cmp r0, #0 <== NOT EXECUTED 2e44: 1a000008 bne 2e6c <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 2e48: e10f3000 mrs r3, CPSR <== NOT EXECUTED 2e4c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 2e50: 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) { 2e54: e5941084 ldr r1, [r4, #132] ; 0x84 <== NOT EXECUTED 2e58: e5942080 ldr r2, [r4, #128] ; 0x80 <== NOT EXECUTED 2e5c: e1510002 cmp r1, r2 <== NOT EXECUTED 2e60: 1afffff0 bne 2e28 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 2e64: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 2e68: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 2e6c: eb0007de bl 4dec <== NOT EXECUTED 000020cc : int dup2( int fildes, int fildes2 ) { 20cc: e92d4070 push {r4, r5, r6, lr} 20d0: e24dd048 sub sp, sp, #72 ; 0x48 20d4: e1a05001 mov r5, r1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 20d8: e1a0100d mov r1, sp int dup2( int fildes, int fildes2 ) { 20dc: e1a06000 mov r6, r0 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 20e0: eb0001c4 bl 27f8 if ( status == -1 ) 20e4: e3700001 cmn r0, #1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 20e8: e1a0400d mov r4, sp if ( status == -1 ) 20ec: 1a000002 bne 20fc /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 20f0: e3e00000 mvn r0, #0 } 20f4: e28dd048 add sp, sp, #72 ; 0x48 20f8: e8bd8070 pop {r4, r5, r6, pc} /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 20fc: e1a0100d mov r1, sp 2100: e1a00005 mov r0, r5 2104: eb0001bb bl 27f8 if ( status == -1 ) 2108: e3700001 cmn r0, #1 210c: 0afffff7 beq 20f0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 2110: e1a00006 mov r0, r6 <== NOT EXECUTED 2114: e1a02005 mov r2, r5 <== NOT EXECUTED 2118: e3a01000 mov r1, #0 <== NOT EXECUTED 211c: eb0000a3 bl 23b0 <== NOT EXECUTED 2120: eafffff3 b 20f4 <== NOT EXECUTED 00002864 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2864: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2868: e591303c ldr r3, [r1, #60] ; 0x3c <== NOT EXECUTED 286c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2870: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 2874: e1a04001 mov r4, r1 <== NOT EXECUTED 2878: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 287c: 0a000007 beq 28a0 <== NOT EXECUTED 2880: e59f3060 ldr r3, [pc, #96] ; 28e8 <== NOT EXECUTED 2884: e5933000 ldr r3, [r3] <== NOT EXECUTED 2888: e0833000 add r3, r3, r0 <== NOT EXECUTED 288c: e5d32001 ldrb r2, [r3, #1] <== NOT EXECUTED 2890: e2503009 subs r3, r0, #9 <== NOT EXECUTED 2894: 13a03001 movne r3, #1 <== NOT EXECUTED 2898: e01332a2 ands r3, r3, r2, lsr #5 <== NOT EXECUTED 289c: 1a000003 bne 28b0 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 28a0: e1a01004 mov r1, r4 <== NOT EXECUTED 28a4: ebffff92 bl 26f4 <== NOT EXECUTED } } 28a8: e28dd004 add sp, sp, #4 <== NOT EXECUTED 28ac: e8bd8010 pop {r4, pc} <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 28b0: e350000a cmp r0, #10 <== NOT EXECUTED 28b4: 0afffff9 beq 28a0 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 28b8: 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] = '^'; 28bc: e3a0c05e mov ip, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 28c0: e1a0000d mov r0, sp <== NOT EXECUTED 28c4: e3a01002 mov r1, #2 <== NOT EXECUTED 28c8: 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; 28cc: 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] = '^'; 28d0: e5cdc000 strb ip, [sp] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 28d4: ebffff3e bl 25d4 <== NOT EXECUTED tty->column += 2; 28d8: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 28dc: e2833002 add r3, r3, #2 <== NOT EXECUTED 28e0: 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')) { 28e4: eaffffef b 28a8 <== NOT EXECUTED 28e8: 000192d0 .word 0x000192d0 000259f0 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 259f0: e59f300c ldr r3, [pc, #12] ; 25a04 <== NOT EXECUTED 259f4: e5930000 ldr r0, [r3] <== NOT EXECUTED 259f8: e3500000 cmp r0, #0 <== NOT EXECUTED 259fc: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 25a00: ea006471 b 3ebcc <== NOT EXECUTED 25a04: 00066b18 .word 0x00066b18 00025a08 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 25a08: e59f300c ldr r3, [pc, #12] ; 25a1c <== NOT EXECUTED 25a0c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED 25a10: e3500000 cmp r0, #0 <== NOT EXECUTED 25a14: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 25a18: ea00646b b 3ebcc <== NOT EXECUTED 25a1c: 00066b18 .word 0x00066b18 000028ec : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 28ec: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED 28f0: 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) { 28f4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 28f8: e1a04000 mov r4, r0 <== NOT EXECUTED 28fc: e1a06001 mov r6, r1 <== NOT EXECUTED if (tty->ccount == 0) 2900: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED return; if (lineFlag) { 2904: e3510000 cmp r1, #0 <== NOT EXECUTED 2908: 0590203c ldreq r2, [r0, #60] ; 0x3c <== NOT EXECUTED 290c: 1a000025 bne 29a8 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2910: e59f71d4 ldr r7, [pc, #468] ; 2aec <== NOT EXECUTED 2914: ea000007 b 2938 <== NOT EXECUTED 2918: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED 291c: 1a00005a bne 2a8c <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2920: e3560000 cmp r6, #0 <== NOT EXECUTED 2924: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2928: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 292c: e3530000 cmp r3, #0 <== NOT EXECUTED 2930: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 2934: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 2938: e2433001 sub r3, r3, #1 <== NOT EXECUTED 293c: e5843020 str r3, [r4, #32] <== NOT EXECUTED 2940: e594001c ldr r0, [r4, #28] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2944: e3120008 tst r2, #8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2948: e7d05003 ldrb r5, [r0, r3] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 294c: 0afffff3 beq 2920 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2950: e3560000 cmp r6, #0 <== NOT EXECUTED 2954: 1a000001 bne 2960 <== NOT EXECUTED 2958: e3120010 tst r2, #16 <== NOT EXECUTED 295c: 0a000046 beq 2a7c <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 2960: e3550009 cmp r5, #9 <== NOT EXECUTED 2964: 0a000020 beq 29ec <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2968: e5973000 ldr r3, [r7] <== NOT EXECUTED 296c: e2855001 add r5, r5, #1 <== NOT EXECUTED 2970: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 2974: e3130020 tst r3, #32 <== NOT EXECUTED 2978: 1affffe6 bne 2918 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 297c: e59f016c ldr r0, [pc, #364] ; 2af0 <== NOT EXECUTED 2980: e3a01003 mov r1, #3 <== NOT EXECUTED 2984: e1a02004 mov r2, r4 <== NOT EXECUTED 2988: ebffff11 bl 25d4 <== NOT EXECUTED if (tty->column) 298c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 2990: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 2994: 12433001 subne r3, r3, #1 <== NOT EXECUTED 2998: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } } } if (!lineFlag) 299c: e3560000 cmp r6, #0 <== NOT EXECUTED 29a0: 1affffe0 bne 2928 <== NOT EXECUTED 29a4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 29a8: e590203c ldr r2, [r0, #60] ; 0x3c <== NOT EXECUTED 29ac: e2121008 ands r1, r2, #8 <== NOT EXECUTED tty->ccount = 0; 29b0: 05801020 streq r1, [r0, #32] <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 29b4: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 29b8: e2121010 ands r1, r2, #16 <== NOT EXECUTED 29bc: 1affffd3 bne 2910 <== NOT EXECUTED tty->ccount = 0; 29c0: e5801020 str r1, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 29c4: e5d00044 ldrb r0, [r0, #68] ; 0x44 <== NOT EXECUTED 29c8: e1a01004 mov r1, r4 <== NOT EXECUTED 29cc: ebffffa4 bl 2864 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 29d0: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 29d4: e3130020 tst r3, #32 <== NOT EXECUTED 29d8: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED echo ('\n', tty); 29dc: e1a01004 mov r1, r4 <== NOT EXECUTED 29e0: e3a0000a mov r0, #10 <== NOT EXECUTED } } if (!lineFlag) break; } } 29e4: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 29e8: eaffff9d b 2864 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 29ec: e3530000 cmp r3, #0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; 29f0: e594502c ldr r5, [r4, #44] ; 0x2c <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 29f4: 0a000011 beq 2a40 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 29f8: e5978000 ldr r8, [r7] <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 29fc: e202ac02 and sl, r2, #512 ; 0x200 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2a00: e3a02000 mov r2, #0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2a04: e7d01002 ldrb r1, [r0, r2] <== NOT EXECUTED if (c == '\t') { 2a08: e3510009 cmp r1, #9 <== NOT EXECUTED col = (col | 7) + 1; 2a0c: 03855007 orreq r5, r5, #7 <== NOT EXECUTED } else if (iscntrl (c)) { 2a10: e088c001 add ip, r8, r1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2a14: e2822001 add r2, r2, #1 <== NOT EXECUTED if (c == '\t') { col = (col | 7) + 1; 2a18: 02855001 addeq r5, r5, #1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { 2a1c: 0a000005 beq 2a38 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 2a20: e5dc1001 ldrb r1, [ip, #1] <== NOT EXECUTED 2a24: e3110020 tst r1, #32 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 2a28: 02855001 addeq r5, r5, #1 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2a2c: 0a000001 beq 2a38 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2a30: e35a0000 cmp sl, #0 <== NOT EXECUTED col += 2; 2a34: 12855002 addne r5, r5, #2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2a38: e1530002 cmp r3, r2 <== NOT EXECUTED 2a3c: 1afffff0 bne 2a04 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2a40: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 2a44: e1550003 cmp r5, r3 <== NOT EXECUTED 2a48: aaffffb4 bge 2920 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2a4c: e59f00a0 ldr r0, [pc, #160] ; 2af4 <== NOT EXECUTED 2a50: e3a01001 mov r1, #1 <== NOT EXECUTED 2a54: e1a02004 mov r2, r4 <== NOT EXECUTED 2a58: ebfffedd bl 25d4 <== NOT EXECUTED tty->column--; 2a5c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 2a60: e2433001 sub r3, r3, #1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2a64: e1550003 cmp r5, r3 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; 2a68: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2a6c: bafffff6 blt 2a4c <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2a70: e3560000 cmp r6, #0 <== NOT EXECUTED 2a74: 1affffab bne 2928 <== NOT EXECUTED 2a78: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); 2a7c: e5d40043 ldrb r0, [r4, #67] ; 0x43 <== NOT EXECUTED 2a80: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 2a84: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); 2a88: eaffff75 b 2864 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 2a8c: e59f005c ldr r0, [pc, #92] ; 2af0 <== NOT EXECUTED 2a90: e3a01003 mov r1, #3 <== NOT EXECUTED 2a94: e1a02004 mov r2, r4 <== NOT EXECUTED 2a98: ebfffecd bl 25d4 <== NOT EXECUTED if (tty->column) 2a9c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 2aa0: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 2aa4: 12433001 subne r3, r3, #1 <== NOT EXECUTED 2aa8: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 2aac: e5973000 ldr r3, [r7] <== NOT EXECUTED 2ab0: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 2ab4: e3130020 tst r3, #32 <== NOT EXECUTED 2ab8: 0affffaf beq 297c <== NOT EXECUTED 2abc: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED 2ac0: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED 2ac4: 0affff95 beq 2920 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2ac8: e59f0020 ldr r0, [pc, #32] ; 2af0 <== NOT EXECUTED 2acc: e3a01003 mov r1, #3 <== NOT EXECUTED 2ad0: e1a02004 mov r2, r4 <== NOT EXECUTED 2ad4: ebfffebe bl 25d4 <== NOT EXECUTED if (tty->column) 2ad8: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 2adc: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 2ae0: 12433001 subne r3, r3, #1 <== NOT EXECUTED 2ae4: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED 2ae8: eaffffab b 299c <== NOT EXECUTED 2aec: 000192d0 .word 0x000192d0 2af0: 0001a1f4 .word 0x0001a1f4 2af4: 0001a1f0 .word 0x0001a1f0 00038614 : #include int fchdir( int fd ) { 38614: 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 ); 38618: e59f3174 ldr r3, [pc, #372] ; 38794 <== NOT EXECUTED 3861c: e5933000 ldr r3, [r3] <== NOT EXECUTED 38620: e1500003 cmp r0, r3 <== NOT EXECUTED #include int fchdir( int fd ) { 38624: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 38628: 2a000042 bcs 38738 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3862c: e59f3164 ldr r3, [pc, #356] ; 38798 <== NOT EXECUTED 38630: e5934000 ldr r4, [r3] <== NOT EXECUTED 38634: e0844300 add r4, r4, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 38638: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3863c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 38640: 0a00003c beq 38738 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 38644: e3130002 tst r3, #2 <== NOT EXECUTED 38648: 0a000047 beq 3876c <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 3864c: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 38650: e3530000 cmp r3, #0 <== NOT EXECUTED 38654: 0a000049 beq 38780 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 38658: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 3865c: e3530000 cmp r3, #0 <== NOT EXECUTED 38660: 0a000046 beq 38780 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 38664: e2844018 add r4, r4, #24 <== NOT EXECUTED 38668: e1a00004 mov r0, r4 <== NOT EXECUTED 3866c: e1a0e00f mov lr, pc <== NOT EXECUTED 38670: e12fff13 bx r3 <== NOT EXECUTED 38674: e3500001 cmp r0, #1 <== NOT EXECUTED 38678: e1a0e000 mov lr, r0 <== NOT EXECUTED 3867c: 1a000028 bne 38724 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 38680: e59f6114 ldr r6, [pc, #276] ; 3879c <== NOT EXECUTED 38684: e5967000 ldr r7, [r6] <== NOT EXECUTED 38688: e287c004 add ip, r7, #4 <== NOT EXECUTED 3868c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 38690: e28d5004 add r5, sp, #4 <== NOT EXECUTED 38694: e1a08005 mov r8, r5 <== NOT EXECUTED 38698: e8a8000f stmia r8!, {r0, r1, r2, r3} <== NOT EXECUTED 3869c: e59c3000 ldr r3, [ip] <== NOT EXECUTED 386a0: e5883000 str r3, [r8] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 386a4: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 386a8: e2877004 add r7, r7, #4 <== NOT EXECUTED 386ac: e8a7000f stmia r7!, {r0, r1, r2, r3} <== NOT EXECUTED 386b0: e5943000 ldr r3, [r4] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 386b4: e3a07000 mov r7, #0 <== NOT EXECUTED 386b8: e28d4018 add r4, sp, #24 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; 386bc: e58c3000 str r3, [ip] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 386c0: e1a0100e mov r1, lr <== NOT EXECUTED 386c4: e1a02007 mov r2, r7 <== NOT EXECUTED 386c8: e59f00d0 ldr r0, [pc, #208] ; 387a0 <== NOT EXECUTED 386cc: e1a03004 mov r3, r4 <== NOT EXECUTED 386d0: e58d7000 str r7, [sp] <== NOT EXECUTED 386d4: ebff33b5 bl 55b0 <== NOT EXECUTED 386d8: e1500007 cmp r0, r7 <== NOT EXECUTED 386dc: 1a00001a bne 3874c <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 386e0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 386e4: e3530000 cmp r3, #0 <== NOT EXECUTED 386e8: 0a000004 beq 38700 <== NOT EXECUTED 386ec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 386f0: e3530000 cmp r3, #0 <== NOT EXECUTED 386f4: 11a00005 movne r0, r5 <== NOT EXECUTED 386f8: 11a0e00f movne lr, pc <== NOT EXECUTED 386fc: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 38700: e596c000 ldr ip, [r6] <== NOT EXECUTED 38704: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 38708: e28cc004 add ip, ip, #4 <== NOT EXECUTED 3870c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 38710: e5943000 ldr r3, [r4] <== NOT EXECUTED 38714: e58c3000 str r3, [ip] <== NOT EXECUTED 38718: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; } 3871c: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED 38720: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 38724: eb0018db bl 3ea98 <__errno> <== NOT EXECUTED 38728: e3a03014 mov r3, #20 <== NOT EXECUTED 3872c: e5803000 str r3, [r0] <== NOT EXECUTED 38730: e3e00000 mvn r0, #0 <== NOT EXECUTED 38734: eafffff8 b 3871c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 38738: eb0018d6 bl 3ea98 <__errno> <== NOT EXECUTED 3873c: e3a03009 mov r3, #9 <== NOT EXECUTED 38740: e5803000 str r3, [r0] <== NOT EXECUTED 38744: e3e00000 mvn r0, #0 <== NOT EXECUTED 38748: eafffff3 b 3871c <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 3874c: e596c000 ldr ip, [r6] <== NOT EXECUTED 38750: e8b5000f ldm r5!, {r0, r1, r2, r3} <== NOT EXECUTED 38754: e28cc004 add ip, ip, #4 <== NOT EXECUTED 38758: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3875c: e5983000 ldr r3, [r8] <== NOT EXECUTED 38760: e3e00000 mvn r0, #0 <== NOT EXECUTED 38764: e58c3000 str r3, [ip] <== NOT EXECUTED return -1; 38768: eaffffeb b 3871c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 3876c: eb0018c9 bl 3ea98 <__errno> <== NOT EXECUTED 38770: e3a03016 mov r3, #22 <== NOT EXECUTED 38774: e5803000 str r3, [r0] <== NOT EXECUTED 38778: e3e00000 mvn r0, #0 <== NOT EXECUTED 3877c: eaffffe6 b 3871c <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 38780: eb0018c4 bl 3ea98 <__errno> <== NOT EXECUTED 38784: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 38788: e5803000 str r3, [r0] <== NOT EXECUTED 3878c: e3e00000 mvn r0, #0 <== NOT EXECUTED 38790: eaffffe1 b 3871c <== NOT EXECUTED 38794: 00058c00 .word 0x00058c00 38798: 00066e04 .word 0x00066e04 3879c: 00058ed8 .word 0x00058ed8 387a0: 0005ded8 .word 0x0005ded8 000255e0 : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 255e0: e59f308c ldr r3, [pc, #140] ; 25674 <== NOT EXECUTED 255e4: e5932000 ldr r2, [r3] <== NOT EXECUTED 255e8: e1500002 cmp r0, r2 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 255ec: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 255f0: 2a000010 bcs 25638 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 255f4: e59f307c ldr r3, [pc, #124] ; 25678 <== NOT EXECUTED 255f8: e5933000 ldr r3, [r3] <== NOT EXECUTED 255fc: e0833300 add r3, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 25600: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 25604: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 25608: 0a00000a beq 25638 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2560c: e3120004 tst r2, #4 <== NOT EXECUTED 25610: 0a00000d beq 2564c <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 25614: e593203c ldr r2, [r3, #60] ; 0x3c <== NOT EXECUTED 25618: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 2561c: e3520000 cmp r2, #0 <== NOT EXECUTED 25620: 0a00000e beq 25660 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 25624: e2830018 add r0, r3, #24 <== NOT EXECUTED 25628: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 2562c: e1a0e00f mov lr, pc <== NOT EXECUTED 25630: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 25634: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 25638: eb006516 bl 3ea98 <__errno> <== NOT EXECUTED 2563c: e3a03009 mov r3, #9 <== NOT EXECUTED 25640: e5803000 str r3, [r0] <== NOT EXECUTED 25644: e3e00000 mvn r0, #0 <== NOT EXECUTED 25648: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2564c: eb006511 bl 3ea98 <__errno> <== NOT EXECUTED 25650: e3a03016 mov r3, #22 <== NOT EXECUTED 25654: e5803000 str r3, [r0] <== NOT EXECUTED 25658: e3e00000 mvn r0, #0 <== NOT EXECUTED 2565c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 25660: eb00650c bl 3ea98 <__errno> <== NOT EXECUTED 25664: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 25668: e5803000 str r3, [r0] <== NOT EXECUTED 2566c: e3e00000 mvn r0, #0 <== NOT EXECUTED 25670: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 25674: 00058c00 .word 0x00058c00 25678: 00066e04 .word 0x00066e04 0002567c : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2567c: e59f3098 ldr r3, [pc, #152] ; 2571c <== NOT EXECUTED 25680: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 25684: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 25688: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2568c: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 25690: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 25694: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 25698: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2569c: 2a00000f bcs 256e0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 256a0: e59f3078 ldr r3, [pc, #120] ; 25720 <== NOT EXECUTED 256a4: e5933000 ldr r3, [r3] <== NOT EXECUTED 256a8: e0830300 add r0, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 256ac: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED 256b0: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 256b4: 0a000009 beq 256e0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 256b8: e3130004 tst r3, #4 <== NOT EXECUTED 256bc: 0a00000c beq 256f4 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 256c0: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED 256c4: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 256c8: e3530000 cmp r3, #0 <== NOT EXECUTED 256cc: 0a00000d beq 25708 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 256d0: e2800018 add r0, r0, #24 <== NOT EXECUTED 256d4: e1a0e00f mov lr, pc <== NOT EXECUTED 256d8: e12fff13 bx r3 <== NOT EXECUTED } 256dc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 256e0: eb0064ec bl 3ea98 <__errno> <== NOT EXECUTED 256e4: e3a03009 mov r3, #9 <== NOT EXECUTED 256e8: e5803000 str r3, [r0] <== NOT EXECUTED 256ec: e3e00000 mvn r0, #0 <== NOT EXECUTED 256f0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 256f4: eb0064e7 bl 3ea98 <__errno> <== NOT EXECUTED 256f8: e3a03016 mov r3, #22 <== NOT EXECUTED 256fc: e5803000 str r3, [r0] <== NOT EXECUTED 25700: e3e00000 mvn r0, #0 <== NOT EXECUTED 25704: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 25708: eb0064e2 bl 3ea98 <__errno> <== NOT EXECUTED 2570c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 25710: e5803000 str r3, [r0] <== NOT EXECUTED 25714: e3e00000 mvn r0, #0 <== NOT EXECUTED 25718: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 2571c: 00058c00 .word 0x00058c00 25720: 00066e04 .word 0x00066e04 000387a4 : int fcntl( int fd, int cmd, ... ) { 387a4: e92d000e push {r1, r2, r3} 387a8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 387ac: e59f31d0 ldr r3, [pc, #464] ; 38984 387b0: e5933000 ldr r3, [r3] int fcntl( int fd, int cmd, ... ) { 387b4: e24dd004 sub sp, sp, #4 int ret; va_list ap; va_start( ap, cmd ); 387b8: e28d2028 add r2, sp, #40 ; 0x28 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 387bc: e1500003 cmp r0, r3 ... ) { int ret; va_list ap; va_start( ap, cmd ); 387c0: e58d2000 str r2, [sp] int fcntl( int fd, int cmd, ... ) { 387c4: e59d4024 ldr r4, [sp, #36] ; 0x24 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 387c8: 2a000061 bcs 38954 iop = rtems_libio_iop( fd ); 387cc: e59f81b4 ldr r8, [pc, #436] ; 38988 387d0: e5986000 ldr r6, [r8] 387d4: e0865300 add r5, r6, r0, lsl #6 rtems_libio_check_is_open(iop); 387d8: e595c014 ldr ip, [r5, #20] 387dc: e31c0c01 tst ip, #256 ; 0x100 387e0: 0a00005b beq 38954 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 387e4: e3540009 cmp r4, #9 387e8: 979ff104 ldrls pc, [pc, r4, lsl #2] 387ec: ea00002c b 388a4 387f0: 000388b8 .word 0x000388b8 <== NOT EXECUTED 387f4: 00038918 .word 0x00038918 <== NOT EXECUTED 387f8: 00038924 .word 0x00038924 <== NOT EXECUTED 387fc: 00038944 .word 0x00038944 <== NOT EXECUTED 38800: 0003883c .word 0x0003883c <== NOT EXECUTED 38804: 00038818 .word 0x00038818 <== NOT EXECUTED 38808: 00038818 .word 0x00038818 <== NOT EXECUTED 3880c: 00038818 .word 0x00038818 <== NOT EXECUTED 38810: 00038818 .word 0x00038818 <== NOT EXECUTED 38814: 00038818 .word 0x00038818 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 38818: eb00189e bl 3ea98 <__errno> 3881c: e3a03086 mov r3, #134 ; 0x86 38820: e5803000 str r3, [r0] 38824: e3e06000 mvn r6, #0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 38828: e1a00006 mov r0, r6 3882c: e28dd004 add sp, sp, #4 38830: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} 38834: e28dd00c add sp, sp, #12 38838: e12fff1e bx lr case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 3883c: e5920000 ldr r0, [r2] 38840: ebff34b8 bl 5b28 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 38844: e5953014 ldr r3, [r5, #20] 38848: e3c00f7f bic r0, r0, #508 ; 0x1fc 3884c: e3c00002 bic r0, r0, #2 38850: e1a00b00 lsl r0, r0, #22 38854: e3c33c02 bic r3, r3, #512 ; 0x200 38858: e1a00b20 lsr r0, r0, #22 3885c: e3c33001 bic r3, r3, #1 38860: e1800003 orr r0, r0, r3 38864: e5850014 str r0, [r5, #20] 38868: e3a06000 mov r6, #0 * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 3886c: e595303c ldr r3, [r5, #60] ; 0x3c 38870: e5933030 ldr r3, [r3, #48] ; 0x30 38874: e3530000 cmp r3, #0 38878: 0affffea beq 38828 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 3887c: e1a00004 mov r0, r4 38880: e1a01005 mov r1, r5 38884: e1a0e00f mov lr, pc 38888: e12fff13 bx r3 if (err) { 3888c: e2504000 subs r4, r0, #0 38890: 0affffe4 beq 38828 errno = err; 38894: eb00187f bl 3ea98 <__errno> <== NOT EXECUTED 38898: e5804000 str r4, [r0] <== NOT EXECUTED 3889c: e3e06000 mvn r6, #0 <== NOT EXECUTED 388a0: eaffffe0 b 38828 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 388a4: eb00187b bl 3ea98 <__errno> 388a8: e3a03016 mov r3, #22 388ac: e5803000 str r3, [r0] 388b0: e3e06000 mvn r6, #0 388b4: eaffffdb b 38828 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 388b8: e5927000 ldr r7, [r2] if ( fd2 ) 388bc: e3570000 cmp r7, #0 388c0: 0a000028 beq 38968 diop = rtems_libio_iop( fd2 ); 388c4: e1530007 cmp r3, r7 <== NOT EXECUTED 388c8: 93a09000 movls r9, #0 <== NOT EXECUTED 388cc: 80867307 addhi r7, r6, r7, lsl #6 <== NOT EXECUTED 388d0: 91a07009 movls r7, r9 <== NOT EXECUTED 388d4: 81a09007 movhi r9, r7 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 388d8: e2858018 add r8, r5, #24 388dc: e8b8000f ldm r8!, {r0, r1, r2, r3} 388e0: e287a018 add sl, r7, #24 388e4: e8aa000f stmia sl!, {r0, r1, r2, r3} ret = -1; break; } } diop->handlers = iop->handlers; 388e8: e595203c ldr r2, [r5, #60] ; 0x3c diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 388ec: e5981000 ldr r1, [r8] break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 388f0: e5953038 ldr r3, [r5, #56] ; 0x38 diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 388f4: e0666009 rsb r6, r6, r9 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 388f8: e58a1000 str r1, [sl] ret = -1; break; } } diop->handlers = iop->handlers; 388fc: e587203c str r2, [r7, #60] ; 0x3c diop->file_info = iop->file_info; 38900: e5873038 str r3, [r7, #56] ; 0x38 diop->flags = iop->flags; 38904: e587c014 str ip, [r7, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 38908: e1a06346 asr r6, r6, #6 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 3890c: e3560000 cmp r6, #0 38910: aaffffd5 bge 3886c 38914: eaffffc3 b 38828 <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 38918: e1a0c5ac lsr ip, ip, #11 3891c: e20c6001 and r6, ip, #1 38920: eaffffd1 b 3886c * 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 ) ) 38924: e5926000 ldr r6, [r2] 38928: e3560000 cmp r6, #0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 3892c: 138ccb02 orrne ip, ip, #2048 ; 0x800 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 38930: 03cccb02 biceq ip, ip, #2048 ; 0x800 * processes, then we can ignore this one except to make * F_GETFD work. */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 38934: 1585c014 strne ip, [r5, #20] 38938: 13a06000 movne r6, #0 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 3893c: 0585c014 streq ip, [r5, #20] 38940: eaffffc9 b 3886c break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 38944: e1a0000c mov r0, ip 38948: ebff33d6 bl 58a8 3894c: e1a06000 mov r6, r0 38950: eaffffed b 3890c int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 38954: eb00184f bl 3ea98 <__errno> <== NOT EXECUTED 38958: e3a03009 mov r3, #9 <== NOT EXECUTED 3895c: e5803000 str r3, [r0] <== NOT EXECUTED 38960: e3e06000 mvn r6, #0 <== NOT EXECUTED 38964: eaffffaf b 38828 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 38968: ebff3440 bl 5a70 if ( diop == 0 ) { 3896c: e2507000 subs r7, r0, #0 38970: 0affffc9 beq 3889c 38974: e5986000 ldr r6, [r8] 38978: e595c014 ldr ip, [r5, #20] 3897c: e1a09007 mov r9, r7 38980: eaffffd4 b 388d8 38984: 00058c00 .word 0x00058c00 38988: 00066e04 .word 0x00066e04 0000b974 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { b974: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, b978: e59f5408 ldr r5, [pc, #1032] ; bd88 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { b97c: e1a07001 mov r7, r1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, b980: e3a01000 mov r1, #0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { b984: e24dd00c sub sp, sp, #12 b988: e1a04000 mov r4, r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, b98c: e1a02001 mov r2, r1 b990: e5950000 ldr r0, [r5] b994: ebffe374 bl 476c b998: e2509000 subs r9, r0, #0 b99c: 13e0a003 mvnne sl, #3 b9a0: 1a00001c bne ba18 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; b9a4: e5946000 ldr r6, [r4] <== NOT EXECUTED if (pipe == NULL) { b9a8: e3560000 cmp r6, #0 <== NOT EXECUTED b9ac: 0a00007d beq bba8 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) b9b0: e3a01000 mov r1, #0 <== NOT EXECUTED b9b4: e5960028 ldr r0, [r6, #40] ; 0x28 <== NOT EXECUTED b9b8: e1a02001 mov r2, r1 <== NOT EXECUTED b9bc: ebffe36a bl 476c <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { b9c0: e5943000 ldr r3, [r4] <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) b9c4: e3500000 cmp r0, #0 <== NOT EXECUTED b9c8: 01a0a000 moveq sl, r0 <== NOT EXECUTED b9cc: 13e0a003 mvnne sl, #3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { b9d0: e3530000 cmp r3, #0 <== NOT EXECUTED b9d4: 0a000038 beq babc <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); b9d8: e5950000 ldr r0, [r5] <== NOT EXECUTED b9dc: ebffe3aa bl 488c <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) b9e0: e35a0000 cmp sl, #0 <== NOT EXECUTED b9e4: 1a00000b bne ba18 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { b9e8: e5972014 ldr r2, [r7, #20] <== NOT EXECUTED b9ec: e2023006 and r3, r2, #6 <== NOT EXECUTED b9f0: e3530004 cmp r3, #4 <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; b9f4: e5945000 ldr r5, [r4] <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { b9f8: 0a000009 beq ba24 <== NOT EXECUTED b9fc: e3530006 cmp r3, #6 <== NOT EXECUTED ba00: 0a000054 beq bb58 <== NOT EXECUTED ba04: e3530002 cmp r3, #2 <== NOT EXECUTED ba08: 0a000031 beq bad4 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); ba0c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED ba10: ebffe39d bl 488c <== NOT EXECUTED ba14: e3a0a000 mov sl, #0 <== NOT EXECUTED return 0; out_error: pipe_release(pipep, iop); return err; } ba18: e1a0000a mov r0, sl ba1c: e28dd00c add sp, sp, #12 ba20: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { ba24: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED ba28: e3530000 cmp r3, #0 <== NOT EXECUTED ba2c: 1a000002 bne ba3c <== NOT EXECUTED ba30: e3120001 tst r2, #1 <== NOT EXECUTED ba34: 13e0a005 mvnne sl, #5 <== NOT EXECUTED ba38: 1a00001b bne baac <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) ba3c: e5952014 ldr r2, [r5, #20] <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ba40: e5951024 ldr r1, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) ba44: e3520000 cmp r2, #0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ba48: e2811001 add r1, r1, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ba4c: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ba50: e5851024 str r1, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) ba54: e5852014 str r2, [r5, #20] <== NOT EXECUTED ba58: 0a0000b8 beq bd40 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { ba5c: e3530000 cmp r3, #0 <== NOT EXECUTED ba60: 1affffe9 bne ba0c <== NOT EXECUTED prevCounter = pipe->readerCounter; ba64: e5956020 ldr r6, [r5, #32] <== NOT EXECUTED ba68: ea000006 b ba88 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) ba6c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED ba70: ebffe33d bl 476c <== NOT EXECUTED ba74: e3500000 cmp r0, #0 <== NOT EXECUTED ba78: 1a00000a bne baa8 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); ba7c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED ba80: e1530006 cmp r3, r6 <== NOT EXECUTED ba84: 1affffe0 bne ba0c <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); ba88: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED ba8c: ebffe37e bl 488c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ba90: e3a01000 mov r1, #0 <== NOT EXECUTED ba94: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED ba98: eb000308 bl c6c0 <== NOT EXECUTED ba9c: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) baa0: e1a02001 mov r2, r1 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) baa4: 0afffff0 beq ba6c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; baa8: e3e0a003 mvn sl, #3 <== NOT EXECUTED out_error: pipe_release(pipep, iop); baac: e1a00004 mov r0, r4 <== NOT EXECUTED bab0: e1a01007 mov r1, r7 <== NOT EXECUTED bab4: ebffff68 bl b85c <== NOT EXECUTED return err; bab8: eaffffd6 b ba18 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) babc: e35a0000 cmp sl, #0 <== NOT EXECUTED bac0: 1a0000a3 bne bd54 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; bac4: e5846000 str r6, [r4] <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); bac8: e5950000 ldr r0, [r5] <== NOT EXECUTED bacc: ebffe36e bl 488c <== NOT EXECUTED bad0: eaffffc4 b b9e8 <== NOT EXECUTED pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) bad4: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; bad8: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) badc: e3530000 cmp r3, #0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; bae0: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) bae4: e2833001 add r3, r3, #1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; bae8: e5852020 str r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) baec: e5853010 str r3, [r5, #16] <== NOT EXECUTED baf0: 0a00008e beq bd30 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { baf4: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED baf8: e3530000 cmp r3, #0 <== NOT EXECUTED bafc: 1affffc2 bne ba0c <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) bb00: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED bb04: e3130001 tst r3, #1 <== NOT EXECUTED bb08: 1affffbf bne ba0c <== NOT EXECUTED break; prevCounter = pipe->writerCounter; bb0c: e5956024 ldr r6, [r5, #36] ; 0x24 <== NOT EXECUTED bb10: ea000006 b bb30 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) bb14: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED bb18: ebffe313 bl 476c <== NOT EXECUTED bb1c: e3500000 cmp r0, #0 <== NOT EXECUTED bb20: 1affffe0 bne baa8 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); bb24: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED bb28: e1530006 cmp r3, r6 <== NOT EXECUTED bb2c: 1affffb6 bne ba0c <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); bb30: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED bb34: ebffe354 bl 488c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) bb38: e3a01000 mov r1, #0 <== NOT EXECUTED bb3c: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED bb40: eb0002de bl c6c0 <== NOT EXECUTED bb44: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) bb48: 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)) bb4c: 0afffff0 beq bb14 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; bb50: e3e0a003 mvn sl, #3 <== NOT EXECUTED bb54: eaffffd4 b baac <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) bb58: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; bb5c: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) bb60: e3530000 cmp r3, #0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; bb64: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) bb68: e2833001 add r3, r3, #1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; bb6c: e5852020 str r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) bb70: e5853010 str r3, [r5, #16] <== NOT EXECUTED bb74: 0a000069 beq bd20 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) bb78: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; bb7c: e5952024 ldr r2, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) bb80: e3530000 cmp r3, #0 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; bb84: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) bb88: e2833001 add r3, r3, #1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; bb8c: e5852024 str r2, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) bb90: e5853014 str r3, [r5, #20] <== NOT EXECUTED bb94: 1affff9c bne ba0c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); bb98: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED bb9c: e28d1008 add r1, sp, #8 <== NOT EXECUTED bba0: eb0002ad bl c65c <== NOT EXECUTED bba4: eaffff98 b ba0c <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); bba8: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED bbac: ebfff69f bl 9630 <== NOT EXECUTED if (pipe == NULL) bbb0: e3500000 cmp r0, #0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); bbb4: e1a08000 mov r8, r0 <== NOT EXECUTED bbb8: e1a06000 mov r6, r0 <== NOT EXECUTED if (pipe == NULL) bbbc: 03e0a00b mvneq sl, #11 <== NOT EXECUTED bbc0: 0affff84 beq b9d8 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); bbc4: e1a03000 mov r3, r0 <== NOT EXECUTED bbc8: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbcc: e2833004 add r3, r3, #4 <== NOT EXECUTED bbd0: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbd4: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbd8: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbdc: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbe0: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbe4: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbe8: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbec: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbf0: e4839004 str r9, [r3], #4 <== NOT EXECUTED bbf4: e4839004 str r9, [r3], #4 <== NOT EXECUTED pipe->Size = PIPE_BUF; bbf8: e3a02c02 mov r2, #512 ; 0x200 <== NOT EXECUTED int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); bbfc: e5839000 str r9, [r3] <== NOT EXECUTED pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); bc00: e1a00002 mov r0, r2 <== NOT EXECUTED pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; bc04: e5882004 str r2, [r8, #4] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); bc08: ebfff688 bl 9630 <== NOT EXECUTED if (! pipe->Buffer) bc0c: 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); bc10: e5880000 str r0, [r8] <== NOT EXECUTED if (! pipe->Buffer) bc14: 03e0a00b mvneq sl, #11 <== NOT EXECUTED bc18: 0a00003d beq bd14 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( bc1c: e59fa168 ldr sl, [pc, #360] ; bd8c <== NOT EXECUTED bc20: e5da0000 ldrb r0, [sl] <== NOT EXECUTED bc24: e3800205 orr r0, r0, #1342177280 ; 0x50000000 <== NOT EXECUTED bc28: e3800849 orr r0, r0, #4784128 ; 0x490000 <== NOT EXECUTED bc2c: e1a01009 mov r1, r9 <== NOT EXECUTED bc30: e3800c72 orr r0, r0, #29184 ; 0x7200 <== NOT EXECUTED bc34: e1a02009 mov r2, r9 <== NOT EXECUTED bc38: e288302c add r3, r8, #44 ; 0x2c <== NOT EXECUTED bc3c: eb00023b bl c530 <== NOT EXECUTED bc40: e2501000 subs r1, r0, #0 <== NOT EXECUTED bc44: 1a00002f bne bd08 <== 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( bc48: e5da0000 ldrb r0, [sl] <== NOT EXECUTED bc4c: e3800205 orr r0, r0, #1342177280 ; 0x50000000 <== NOT EXECUTED bc50: e3800849 orr r0, r0, #4784128 ; 0x490000 <== NOT EXECUTED bc54: e2883030 add r3, r8, #48 ; 0x30 <== NOT EXECUTED bc58: e3800c77 orr r0, r0, #30464 ; 0x7700 <== NOT EXECUTED bc5c: e1a02001 mov r2, r1 <== NOT EXECUTED bc60: eb000232 bl c530 <== NOT EXECUTED bc64: e2503000 subs r3, r0, #0 <== NOT EXECUTED bc68: 1a000024 bne bd00 <== 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( bc6c: e5da0000 ldrb r0, [sl] <== NOT EXECUTED bc70: e3800205 orr r0, r0, #1342177280 ; 0x50000000 <== NOT EXECUTED bc74: e3800849 orr r0, r0, #4784128 ; 0x490000 <== NOT EXECUTED bc78: e288c028 add ip, r8, #40 ; 0x28 <== NOT EXECUTED bc7c: e3800c73 orr r0, r0, #29440 ; 0x7300 <== NOT EXECUTED bc80: e3a01001 mov r1, #1 <== NOT EXECUTED bc84: e3a02010 mov r2, #16 <== NOT EXECUTED bc88: e58dc000 str ip, [sp] <== NOT EXECUTED bc8c: ebffe21b bl 4500 <== NOT EXECUTED bc90: e3500000 cmp r0, #0 <== NOT EXECUTED bc94: 1a000017 bne bcf8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) bc98: e28d8004 add r8, sp, #4 <== NOT EXECUTED bc9c: e596102c ldr r1, [r6, #44] ; 0x2c <== NOT EXECUTED bca0: e1a02008 mov r2, r8 <== NOT EXECUTED bca4: e59f00e4 ldr r0, [pc, #228] ; bd90 <== NOT EXECUTED bca8: ebffe877 bl 5e8c <_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 bcac: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED bcb0: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED bcb4: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); bcb8: ebffeaae bl 6778 <_Thread_Enable_dispatch> <== NOT EXECUTED bcbc: e1a02008 mov r2, r8 <== NOT EXECUTED bcc0: e5961030 ldr r1, [r6, #48] ; 0x30 <== NOT EXECUTED bcc4: e59f00c4 ldr r0, [pc, #196] ; bd90 <== NOT EXECUTED bcc8: ebffe86f bl 5e8c <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state bccc: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED bcd0: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED bcd4: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); bcd8: ebffeaa6 bl 6778 <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') bcdc: e5da3000 ldrb r3, [sl] <== NOT EXECUTED bce0: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED bce4: e2833001 add r3, r3, #1 <== NOT EXECUTED bce8: e5ca3000 strb r3, [sl] <== NOT EXECUTED c = 'a'; bcec: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED bcf0: 05ca3000 strbeq r3, [sl] <== NOT EXECUTED bcf4: eaffff2d b b9b0 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); bcf8: e5980030 ldr r0, [r8, #48] ; 0x30 <== NOT EXECUTED bcfc: eb00023c bl c5f4 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); bd00: e598002c ldr r0, [r8, #44] ; 0x2c <== NOT EXECUTED bd04: eb00023a bl c5f4 <== NOT EXECUTED err_rbar: free(pipe->Buffer); bd08: e5980000 ldr r0, [r8] <== NOT EXECUTED bd0c: ebfff4e7 bl 90b0 <== NOT EXECUTED bd10: e3e0a003 mvn sl, #3 <== NOT EXECUTED err_buf: free(pipe); bd14: e1a00008 mov r0, r8 <== NOT EXECUTED bd18: ebfff4e4 bl 90b0 <== NOT EXECUTED bd1c: eaffff2d b b9d8 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); bd20: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED bd24: e28d1008 add r1, sp, #8 <== NOT EXECUTED bd28: eb00024b bl c65c <== NOT EXECUTED bd2c: eaffff91 b bb78 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); bd30: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED bd34: e28d1008 add r1, sp, #8 <== NOT EXECUTED bd38: eb000247 bl c65c <== NOT EXECUTED bd3c: eaffff6c b baf4 <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); bd40: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED bd44: e28d1008 add r1, sp, #8 <== NOT EXECUTED bd48: eb000243 bl c65c <== NOT EXECUTED bd4c: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED bd50: eaffff41 b ba5c <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); bd54: e596002c ldr r0, [r6, #44] ; 0x2c <== NOT EXECUTED bd58: eb000225 bl c5f4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); bd5c: e5960030 ldr r0, [r6, #48] ; 0x30 <== NOT EXECUTED bd60: eb000223 bl c5f4 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); bd64: e5960028 ldr r0, [r6, #40] ; 0x28 <== NOT EXECUTED bd68: ebffe256 bl 46c8 <== NOT EXECUTED free(pipe->Buffer); bd6c: e5960000 ldr r0, [r6] <== NOT EXECUTED bd70: ebfff4ce bl 90b0 <== NOT EXECUTED free(pipe); bd74: e1a00006 mov r0, r6 <== NOT EXECUTED bd78: ebfff4cc bl 90b0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); bd7c: e5950000 ldr r0, [r5] <== NOT EXECUTED bd80: ebffe2c1 bl 488c <== NOT EXECUTED bd84: eaffff23 b ba18 <== NOT EXECUTED bd88: 0001a860 .word 0x0001a860 bd8c: 000192bc .word 0x000192bc bd90: 0001b344 .word 0x0001b344 00008f08 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 8f08: e59f2044 ldr r2, [pc, #68] ; 8f54 <== NOT EXECUTED 8f0c: e4923004 ldr r3, [r2], #4 <== NOT EXECUTED 8f10: e1530002 cmp r3, r2 <== NOT EXECUTED 8f14: 0a00000a beq 8f44 <== 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 ) { 8f18: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED 8f1c: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED 8f20: e1510000 cmp r1, r0 <== NOT EXECUTED 8f24: 1a000003 bne 8f38 <== NOT EXECUTED 8f28: ea000007 b 8f4c <== NOT EXECUTED 8f2c: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED 8f30: e1510000 cmp r1, r0 <== NOT EXECUTED 8f34: 0a000004 beq 8f4c <== 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 ) { 8f38: e5933000 ldr r3, [r3] <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 8f3c: e1530002 cmp r3, r2 <== NOT EXECUTED 8f40: 1afffff9 bne 8f2c <== NOT EXECUTED 8f44: e3a00000 mov r0, #0 <== NOT EXECUTED return true; } } return false; } 8f48: e12fff1e bx lr <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 8f4c: e3a00001 mov r0, #1 <== NOT EXECUTED 8f50: e12fff1e bx lr <== NOT EXECUTED 8f54: 00066e48 .word 0x00066e48 0000263c : { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 263c: e59f3108 ldr r3, [pc, #264] ; 274c 2640: e5933000 ldr r3, [r3] 2644: e1500003 cmp r0, r3 long fpathconf( int fd, int name ) { 2648: 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); 264c: 2a000034 bcs 2724 iop = rtems_libio_iop(fd); 2650: e59f30f8 ldr r3, [pc, #248] ; 2750 2654: e5933000 ldr r3, [r3] 2658: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 265c: e5903014 ldr r3, [r0, #20] 2660: e3130c01 tst r3, #256 ; 0x100 2664: 0a00002e beq 2724 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 2668: e3130002 tst r3, #2 266c: 0a000031 beq 2738 /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 2670: e5903028 ldr r3, [r0, #40] ; 0x28 switch ( name ) { 2674: e351000b cmp r1, #11 2678: 979ff101 ldrls pc, [pc, r1, lsl #2] 267c: ea00000d b 26b8 2680: 000026cc .word 0x000026cc <== NOT EXECUTED 2684: 000026d4 .word 0x000026d4 <== NOT EXECUTED 2688: 000026dc .word 0x000026dc <== NOT EXECUTED 268c: 000026e4 .word 0x000026e4 <== NOT EXECUTED 2690: 000026ec .word 0x000026ec <== NOT EXECUTED 2694: 000026f4 .word 0x000026f4 <== NOT EXECUTED 2698: 000026fc .word 0x000026fc <== NOT EXECUTED 269c: 00002704 .word 0x00002704 <== NOT EXECUTED 26a0: 0000270c .word 0x0000270c <== NOT EXECUTED 26a4: 00002714 .word 0x00002714 <== NOT EXECUTED 26a8: 0000271c .word 0x0000271c <== NOT EXECUTED 26ac: 000026b0 .word 0x000026b0 <== NOT EXECUTED break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 26b0: e5930060 ldr r0, [r3, #96] ; 0x60 break; 26b4: e49df004 pop {pc} ; (ldr pc, [sp], #4) default: rtems_set_errno_and_return_minus_one( EINVAL ); 26b8: eb0036ac bl 10170 <__errno> 26bc: e3a03016 mov r3, #22 26c0: e5803000 str r3, [r0] 26c4: e3e00000 mvn r0, #0 break; } return return_value; } 26c8: e49df004 pop {pc} ; (ldr pc, [sp], #4) the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; 26cc: e5930038 ldr r0, [r3, #56] ; 0x38 break; 26d0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_CANON: return_value = the_limits->max_canon; 26d4: e593003c ldr r0, [r3, #60] ; 0x3c break; 26d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_INPUT: return_value = the_limits->max_input; 26dc: e5930040 ldr r0, [r3, #64] ; 0x40 break; 26e0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NAME_MAX: return_value = the_limits->name_max; 26e4: e5930044 ldr r0, [r3, #68] ; 0x44 break; 26e8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PATH_MAX: return_value = the_limits->path_max; 26ec: e5930048 ldr r0, [r3, #72] ; 0x48 break; 26f0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 26f4: e593004c ldr r0, [r3, #76] ; 0x4c break; 26f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 26fc: e5930054 ldr r0, [r3, #84] ; 0x54 break; 2700: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 2704: e5930058 ldr r0, [r3, #88] ; 0x58 break; 2708: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 270c: e5930064 ldr r0, [r3, #100] ; 0x64 break; 2710: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 2714: e5930050 ldr r0, [r3, #80] ; 0x50 break; 2718: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 271c: e593005c ldr r0, [r3, #92] ; 0x5c break; 2720: e49df004 pop {pc} ; (ldr pc, [sp], #4) rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 2724: eb003691 bl 10170 <__errno> 2728: e3a03009 mov r3, #9 272c: e5803000 str r3, [r0] 2730: e3e00000 mvn r0, #0 2734: e49df004 pop {pc} ; (ldr pc, [sp], #4) rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 2738: eb00368c bl 10170 <__errno> <== NOT EXECUTED 273c: e3a03016 mov r3, #22 <== NOT EXECUTED 2740: e5803000 str r3, [r0] <== NOT EXECUTED 2744: e3e00000 mvn r0, #0 <== NOT EXECUTED 2748: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 274c: 0001cdb0 .word 0x0001cdb0 2750: 0001e98c .word 0x0001e98c 000090b0 : void free( void *ptr ) { MSBUMP(free_calls, 1); 90b0: e59f3088 ldr r3, [pc, #136] ; 9140 90b4: e593200c ldr r2, [r3, #12] 90b8: e92d4030 push {r4, r5, lr} 90bc: e2822001 add r2, r2, #1 if ( !ptr ) 90c0: e2504000 subs r4, r0, #0 void free( void *ptr ) { MSBUMP(free_calls, 1); 90c4: e583200c str r2, [r3, #12] if ( !ptr ) 90c8: 08bd8030 popeq {r4, r5, pc} /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 90cc: e59f3070 ldr r3, [pc, #112] ; 9144 90d0: e5933000 ldr r3, [r3] 90d4: e3530003 cmp r3, #3 90d8: 0a000012 beq 9128 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 90dc: e59f3064 ldr r3, [pc, #100] ; 9148 90e0: e5933000 ldr r3, [r3] 90e4: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 90e8: 11a00004 movne r0, r4 90ec: 11a0e00f movne lr, pc 90f0: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 90f4: e59f5050 ldr r5, [pc, #80] ; 914c 90f8: e1a01004 mov r1, r4 90fc: e5950000 ldr r0, [r5] 9100: eb0006f0 bl acc8 <_Protected_heap_Free> 9104: e3500000 cmp r0, #0 9108: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, 910c: 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", 9110: e59f0038 ldr r0, [pc, #56] ; 9150 <== NOT EXECUTED 9114: e2822018 add r2, r2, #24 <== NOT EXECUTED 9118: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 911c: e1a01004 mov r1, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 9120: 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", 9124: eaffe3a5 b 1fc0 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 9128: eb000120 bl 95b0 912c: e3500000 cmp r0, #0 9130: 1affffe9 bne 90dc !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 9134: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 9138: 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); 913c: ea00012e b 95fc <== NOT EXECUTED 9140: 0001a8f0 .word 0x0001a8f0 9144: 0001abf0 .word 0x0001abf0 9148: 0001a708 .word 0x0001a708 914c: 0001909c .word 0x0001909c 9150: 0001a3c8 .word 0x0001a3c8 00026af4 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 26af4: e59f3058 ldr r3, [pc, #88] ; 26b54 <== NOT EXECUTED 26af8: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 26afc: e92d4010 push {r4, lr} <== NOT EXECUTED 26b00: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 26b04: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 26b08: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED 26b0c: e3530000 cmp r3, #0 <== NOT EXECUTED 26b10: 0a000004 beq 26b28 <== NOT EXECUTED 26b14: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 26b18: e3530000 cmp r3, #0 <== NOT EXECUTED 26b1c: 12800004 addne r0, r0, #4 <== NOT EXECUTED 26b20: 11a0e00f movne lr, pc <== NOT EXECUTED 26b24: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 26b28: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 26b2c: e3530000 cmp r3, #0 <== NOT EXECUTED 26b30: 0a000004 beq 26b48 <== NOT EXECUTED 26b34: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 26b38: e3530000 cmp r3, #0 <== NOT EXECUTED 26b3c: 12840018 addne r0, r4, #24 <== NOT EXECUTED 26b40: 11a0e00f movne lr, pc <== NOT EXECUTED 26b44: 112fff13 bxne r3 <== NOT EXECUTED free(env); 26b48: e1a00004 mov r0, r4 <== NOT EXECUTED } } 26b4c: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 26b50: eaff7acc b 5688 <== NOT EXECUTED 26b54: 00066e60 .word 0x00066e60 000185f8 : int fstat( int fd, struct stat *sbuf ) { 185f8: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 185fc: e2515000 subs r5, r1, #0 18600: 0a000023 beq 18694 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 18604: e59f309c ldr r3, [pc, #156] ; 186a8 18608: e5933000 ldr r3, [r3] 1860c: e1500003 cmp r0, r3 18610: 2a000015 bcs 1866c 18614: e59f3090 ldr r3, [pc, #144] ; 186ac 18618: e5934000 ldr r4, [r3] 1861c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 18620: e5943014 ldr r3, [r4, #20] 18624: e3130c01 tst r3, #256 ; 0x100 18628: 0a00000f beq 1866c if ( !iop->handlers ) 1862c: e594303c ldr r3, [r4, #60] ; 0x3c 18630: e3530000 cmp r3, #0 18634: 0a00000c beq 1866c rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 18638: e5933018 ldr r3, [r3, #24] 1863c: e3530000 cmp r3, #0 18640: 0a00000e beq 18680 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 18644: e3a01000 mov r1, #0 18648: e3a02048 mov r2, #72 ; 0x48 1864c: e1a00005 mov r0, r5 18650: ebffd6a4 bl e0e8 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 18654: e2840018 add r0, r4, #24 18658: e1a01005 mov r1, r5 1865c: e594303c ldr r3, [r4, #60] ; 0x3c 18660: e1a0e00f mov lr, pc 18664: e593f018 ldr pc, [r3, #24] } 18668: e8bd8030 pop {r4, r5, pc} iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 1866c: ebffd453 bl d7c0 <__errno> 18670: e3a03009 mov r3, #9 18674: e5803000 str r3, [r0] 18678: e3e00000 mvn r0, #0 1867c: e8bd8030 pop {r4, r5, pc} if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 18680: ebffd44e bl d7c0 <__errno> <== NOT EXECUTED 18684: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 18688: e5803000 str r3, [r0] <== NOT EXECUTED 1868c: e3e00000 mvn r0, #0 <== NOT EXECUTED 18690: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 18694: ebffd449 bl d7c0 <__errno> 18698: e3a0300e mov r3, #14 1869c: e5803000 str r3, [r0] 186a0: e3e00000 mvn r0, #0 186a4: e8bd8030 pop {r4, r5, pc} 186a8: 00019090 .word 0x00019090 186ac: 0001a8e4 .word 0x0001a8e4 000257e8 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 257e8: e59f308c ldr r3, [pc, #140] ; 2587c 257ec: e5933000 ldr r3, [r3] 257f0: e1500003 cmp r0, r3 #include int fsync( int fd ) { 257f4: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_t *iop; rtems_libio_check_fd( fd ); 257f8: 2a000010 bcs 25840 iop = rtems_libio_iop( fd ); 257fc: e59f307c ldr r3, [pc, #124] ; 25880 25800: e5933000 ldr r3, [r3] 25804: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 25808: e5903014 ldr r3, [r0, #20] 2580c: e3130c01 tst r3, #256 ; 0x100 25810: 0a00000a beq 25840 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 25814: e3130004 tst r3, #4 25818: 0a00000d beq 25854 /* * Now process the fsync(). */ if ( !iop->handlers ) 2581c: e590303c ldr r3, [r0, #60] ; 0x3c 25820: e3530000 cmp r3, #0 25824: 0a000005 beq 25840 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 25828: e5933028 ldr r3, [r3, #40] ; 0x28 2582c: e3530000 cmp r3, #0 25830: 0a00000c beq 25868 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 25834: e1a0e00f mov lr, pc 25838: e12fff13 bx r3 } 2583c: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 25840: eb006494 bl 3ea98 <__errno> <== NOT EXECUTED 25844: e3a03009 mov r3, #9 <== NOT EXECUTED 25848: e5803000 str r3, [r0] <== NOT EXECUTED 2584c: e3e00000 mvn r0, #0 <== NOT EXECUTED 25850: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 25854: eb00648f bl 3ea98 <__errno> 25858: e3a03016 mov r3, #22 2585c: e5803000 str r3, [r0] 25860: e3e00000 mvn r0, #0 25864: e49df004 pop {pc} ; (ldr pc, [sp], #4) if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 25868: eb00648a bl 3ea98 <__errno> 2586c: e3a03086 mov r3, #134 ; 0x86 25870: e5803000 str r3, [r0] 25874: e3e00000 mvn r0, #0 25878: e49df004 pop {pc} ; (ldr pc, [sp], #4) 2587c: 00058c00 .word 0x00058c00 25880: 00066e04 .word 0x00066e04 00009154 : int ftruncate( int fd, off_t length ) { 9154: e92d40f0 push {r4, r5, r6, r7, lr} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 9158: e59f30f4 ldr r3, [pc, #244] ; 9254 915c: e5933000 ldr r3, [r3] 9160: e1500003 cmp r0, r3 int ftruncate( int fd, off_t length ) { 9164: e24dd014 sub sp, sp, #20 9168: e1a05001 mov r5, r1 916c: e1a06002 mov r6, r2 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 9170: 2a000023 bcs 9204 iop = rtems_libio_iop( fd ); 9174: e59f30dc ldr r3, [pc, #220] ; 9258 9178: e5934000 ldr r4, [r3] 917c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 9180: e5943014 ldr r3, [r4, #20] 9184: e3130c01 tst r3, #256 ; 0x100 9188: 0a00001d beq 9204 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 918c: e284c018 add ip, r4, #24 9190: e8bc000f ldm ip!, {r0, r1, r2, r3} 9194: e1a0700d mov r7, sp 9198: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 919c: e59d200c ldr r2, [sp, #12] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 91a0: e1a03007 mov r3, r7 if ( !loc.ops->node_type_h ) 91a4: e5927010 ldr r7, [r2, #16] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 91a8: e59c2000 ldr r2, [ip] if ( !loc.ops->node_type_h ) 91ac: e3570000 cmp r7, #0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 91b0: e5832000 str r2, [r3] if ( !loc.ops->node_type_h ) 91b4: 0a00001c beq 922c rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 91b8: e1a0000d mov r0, sp 91bc: e1a0e00f mov lr, pc 91c0: e12fff17 bx r7 91c4: e3500001 cmp r0, #1 91c8: 0a00001c beq 9240 rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 91cc: e5943014 ldr r3, [r4, #20] 91d0: e3130004 tst r3, #4 91d4: 0a00000f beq 9218 if ( !iop->handlers->ftruncate_h ) 91d8: e594303c ldr r3, [r4, #60] ; 0x3c 91dc: e5933020 ldr r3, [r3, #32] 91e0: e3530000 cmp r3, #0 91e4: 0a000010 beq 922c rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 91e8: e1a00004 mov r0, r4 91ec: e1a01005 mov r1, r5 91f0: e1a02006 mov r2, r6 91f4: e1a0e00f mov lr, pc 91f8: e12fff13 bx r3 } 91fc: e28dd014 add sp, sp, #20 9200: e8bd80f0 pop {r4, r5, r6, r7, pc} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 9204: eb00116d bl d7c0 <__errno> <== NOT EXECUTED 9208: e3a03009 mov r3, #9 <== NOT EXECUTED 920c: e5803000 str r3, [r0] <== NOT EXECUTED 9210: e3e00000 mvn r0, #0 <== NOT EXECUTED 9214: eafffff8 b 91fc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 9218: eb001168 bl d7c0 <__errno> <== NOT EXECUTED 921c: e3a03016 mov r3, #22 <== NOT EXECUTED 9220: e5803000 str r3, [r0] <== NOT EXECUTED 9224: e3e00000 mvn r0, #0 <== NOT EXECUTED 9228: eafffff3 b 91fc <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 922c: eb001163 bl d7c0 <__errno> <== NOT EXECUTED 9230: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 9234: e5803000 str r3, [r0] <== NOT EXECUTED 9238: e3e00000 mvn r0, #0 <== NOT EXECUTED 923c: eaffffee b 91fc <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 9240: eb00115e bl d7c0 <__errno> 9244: e3a03015 mov r3, #21 9248: e5803000 str r3, [r0] 924c: e3e00000 mvn r0, #0 9250: eaffffe9 b 91fc 9254: 00019090 .word 0x00019090 9258: 0001a8e4 .word 0x0001a8e4 000585b0 : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 585b0: e59f30b8 ldr r3, [pc, #184] ; 58670 585b4: e5933000 ldr r3, [r3] 585b8: e1500003 cmp r0, r3 585bc: 359f30b0 ldrcc r3, [pc, #176] ; 58674 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 585c0: e92d40f0 push {r4, r5, r6, r7, lr} /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 585c4: 35934000 ldrcc r4, [r3] 585c8: 23a04000 movcs r4, #0 585cc: 30844300 addcc r4, r4, r0, lsl #6 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 585d0: e284c018 add ip, r4, #24 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 585d4: e24dd014 sub sp, sp, #20 585d8: e1a06001 mov r6, r1 585dc: e1a05002 mov r5, r2 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 585e0: e8bc000f ldm ip!, {r0, r1, r2, r3} 585e4: e1a0700d mov r7, sp 585e8: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 585ec: e59d200c ldr r2, [sp, #12] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 585f0: e1a03007 mov r3, r7 if ( !loc.ops->node_type_h ) 585f4: e5927010 ldr r7, [r2, #16] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 585f8: e59c2000 ldr r2, [ip] if ( !loc.ops->node_type_h ) 585fc: e3570000 cmp r7, #0 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 58600: e5832000 str r2, [r3] if ( !loc.ops->node_type_h ) 58604: 0a000014 beq 5865c rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 58608: e1a0000d mov r0, sp 5860c: e1a0e00f mov lr, pc 58610: e12fff17 bx r7 58614: e3500001 cmp r0, #1 58618: 1a00000a bne 58648 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 5861c: e594303c ldr r3, [r4, #60] ; 0x3c 58620: e5933008 ldr r3, [r3, #8] 58624: e3530000 cmp r3, #0 58628: 0a00000b beq 5865c rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 5862c: e1a00004 mov r0, r4 58630: e1a01006 mov r1, r6 58634: e1a02005 mov r2, r5 58638: e1a0e00f mov lr, pc 5863c: e12fff13 bx r3 } 58640: e28dd014 add sp, sp, #20 58644: e8bd80f0 pop {r4, r5, r6, r7, pc} loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 58648: ebff9912 bl 3ea98 <__errno> 5864c: e3a03014 mov r3, #20 58650: e5803000 str r3, [r0] 58654: e3e00000 mvn r0, #0 58658: eafffff8 b 58640 * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5865c: ebff990d bl 3ea98 <__errno> <== NOT EXECUTED 58660: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 58664: e5803000 str r3, [r0] <== NOT EXECUTED 58668: e3e00000 mvn r0, #0 <== NOT EXECUTED 5866c: eafffff3 b 58640 <== NOT EXECUTED 58670: 00058c00 .word 0x00058c00 58674: 00066e04 .word 0x00066e04 000259b4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 259b4: e59f3008 ldr r3, [pc, #8] ; 259c4 <== NOT EXECUTED 259b8: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 259bc: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED 259c0: e12fff1e bx lr <== NOT EXECUTED 259c4: 00058ed8 .word 0x00058ed8 00026020 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 26020: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 26024: e59d801c ldr r8, [sp, #28] 26028: e1a05000 mov r5, r0 2602c: e1a0a001 mov sl, r1 26030: e1a04002 mov r4, r2 26034: e1a07003 mov r7, r3 FILE *fp; int match; init_etc_passwd_group(); 26038: ebffffb2 bl 25f08 if ((fp = fopen("/etc/group", "r")) == NULL) { 2603c: e59f00b0 ldr r0, [pc, #176] ; 260f4 26040: e59f10b0 ldr r1, [pc, #176] ; 260f8 26044: eb006503 bl 3f458 26048: e2506000 subs r6, r0, #0 2604c: 1a000006 bne 2606c 26050: ea000022 b 260e0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 26054: e5940000 ldr r0, [r4] 26058: eb007ab1 bl 44b24 2605c: e2700001 rsbs r0, r0, #1 26060: 33a00000 movcc r0, #0 } else { match = (grp->gr_gid == gid); } if (match) { 26064: e3500000 cmp r0, #0 26068: 1a00000f bne 260ac if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2606c: e1a01004 mov r1, r4 26070: e1a02007 mov r2, r7 26074: e1a03008 mov r3, r8 26078: e1a00006 mov r0, r6 2607c: ebfffee1 bl 25c08 26080: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 26084: e1a01005 mov r1, r5 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 26088: 0a00000d beq 260c4 errno = EINVAL; fclose(fp); return -1; } if (name) { 2608c: e3550000 cmp r5, #0 26090: 1affffef bne 26054 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 26094: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 26098: e150000a cmp r0, sl <== NOT EXECUTED 2609c: 13a00000 movne r0, #0 <== NOT EXECUTED 260a0: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 260a4: e3500000 cmp r0, #0 <== NOT EXECUTED 260a8: 0affffef beq 2606c <== NOT EXECUTED fclose(fp); 260ac: e1a00006 mov r0, r6 260b0: eb0062c5 bl 3ebcc *result = grp; 260b4: e59d3020 ldr r3, [sp, #32] 260b8: e3a00000 mov r0, #0 260bc: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 260c0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 260c4: eb006273 bl 3ea98 <__errno> <== NOT EXECUTED 260c8: e3a03016 mov r3, #22 <== NOT EXECUTED 260cc: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 260d0: e1a00006 mov r0, r6 <== NOT EXECUTED 260d4: eb0062bc bl 3ebcc <== NOT EXECUTED 260d8: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 260dc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 260e0: eb00626c bl 3ea98 <__errno> <== NOT EXECUTED 260e4: e3a03016 mov r3, #22 <== NOT EXECUTED 260e8: e5803000 str r3, [r0] <== NOT EXECUTED 260ec: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 260f0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 260f4: 0005d104 .word 0x0005d104 260f8: 00062968 .word 0x00062968 00025d5c : return NULL; return p; } struct group *getgrent(void) { 25d5c: e92d4010 push {r4, lr} <== NOT EXECUTED if (group_fp == NULL) 25d60: e59f4030 ldr r4, [pc, #48] ; 25d98 <== NOT EXECUTED 25d64: e5940000 ldr r0, [r4] <== NOT EXECUTED 25d68: e3500000 cmp r0, #0 <== NOT EXECUTED 25d6c: 1a000001 bne 25d78 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 25d70: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &grent; } 25d74: e8bd8010 pop {r4, pc} <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 25d78: e2841008 add r1, r4, #8 <== NOT EXECUTED 25d7c: e2842018 add r2, r4, #24 <== NOT EXECUTED 25d80: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 25d84: ebffff9f bl 25c08 <== NOT EXECUTED 25d88: e3500000 cmp r0, #0 <== NOT EXECUTED 25d8c: 12840008 addne r0, r4, #8 <== NOT EXECUTED 25d90: 18bd8010 popne {r4, pc} <== NOT EXECUTED 25d94: eafffff5 b 25d70 <== NOT EXECUTED 25d98: 00066b18 .word 0x00066b18 00026138 : struct group *getgrgid( gid_t gid ) { 26138: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 2613c: e59f1030 ldr r1, [pc, #48] ; 26174 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 26140: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 26144: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 26148: e28dc004 add ip, sp, #4 <== NOT EXECUTED 2614c: e2812010 add r2, r1, #16 <== NOT EXECUTED 26150: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 26154: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 26158: e58dc000 str ip, [sp] <== NOT EXECUTED 2615c: ebffffe6 bl 260fc <== NOT EXECUTED 26160: e3500000 cmp r0, #0 <== NOT EXECUTED 26164: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 26168: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 2616c: e28dd008 add sp, sp, #8 <== NOT EXECUTED 26170: e8bd8000 pop {pc} <== NOT EXECUTED 26174: 00066b20 .word 0x00066b20 000260fc : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 260fc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 26100: e1a0c002 mov ip, r2 <== NOT EXECUTED 26104: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 26108: e1a0e001 mov lr, r1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2610c: e58d3000 str r3, [sp] <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 26110: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 26114: e1a0300c mov r3, ip <== NOT EXECUTED 26118: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 2611c: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 26120: e1a0200e mov r2, lr <== NOT EXECUTED 26124: e3a00000 mov r0, #0 <== NOT EXECUTED 26128: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 2612c: ebffffbb bl 26020 <== NOT EXECUTED } 26130: e28dd008 add sp, sp, #8 <== NOT EXECUTED 26134: e8bd8000 pop {pc} <== NOT EXECUTED 00026218 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 26218: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 2621c: e59d801c ldr r8, [sp, #28] 26220: e1a05000 mov r5, r0 26224: e1a0a001 mov sl, r1 26228: e1a04002 mov r4, r2 2622c: e1a07003 mov r7, r3 FILE *fp; int match; init_etc_passwd_group(); 26230: ebffff34 bl 25f08 if ((fp = fopen("/etc/passwd", "r")) == NULL) { 26234: e59f00b0 ldr r0, [pc, #176] ; 262ec 26238: e59f10b0 ldr r1, [pc, #176] ; 262f0 2623c: eb006485 bl 3f458 26240: e2506000 subs r6, r0, #0 26244: 1a000006 bne 26264 26248: ea000022 b 262d8 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 2624c: e5940000 ldr r0, [r4] 26250: eb007a33 bl 44b24 26254: e2700001 rsbs r0, r0, #1 26258: 33a00000 movcc r0, #0 } else { match = (pwd->pw_uid == uid); } if (match) { 2625c: e3500000 cmp r0, #0 26260: 1a00000f bne 262a4 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 26264: e1a01004 mov r1, r4 26268: e1a02007 mov r2, r7 2626c: e1a03008 mov r3, r8 26270: e1a00006 mov r0, r6 26274: ebfffec8 bl 25d9c 26278: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 2627c: e1a01005 mov r1, r5 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 26280: 0a00000d beq 262bc errno = EINVAL; fclose(fp); return -1; } if (name) { 26284: e3550000 cmp r5, #0 26288: 1affffef bne 2624c match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 2628c: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 26290: e150000a cmp r0, sl <== NOT EXECUTED 26294: 13a00000 movne r0, #0 <== NOT EXECUTED 26298: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 2629c: e3500000 cmp r0, #0 <== NOT EXECUTED 262a0: 0affffef beq 26264 <== NOT EXECUTED fclose(fp); 262a4: e1a00006 mov r0, r6 262a8: eb006247 bl 3ebcc *result = pwd; 262ac: e59d3020 ldr r3, [sp, #32] 262b0: e3a00000 mov r0, #0 262b4: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 262b8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 262bc: eb0061f5 bl 3ea98 <__errno> <== NOT EXECUTED 262c0: e3a03016 mov r3, #22 <== NOT EXECUTED 262c4: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 262c8: e1a00006 mov r0, r6 <== NOT EXECUTED 262cc: eb00623e bl 3ebcc <== NOT EXECUTED 262d0: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 262d4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 262d8: eb0061ee bl 3ea98 <__errno> <== NOT EXECUTED 262dc: e3a03016 mov r3, #22 <== NOT EXECUTED 262e0: e5803000 str r3, [r0] <== NOT EXECUTED 262e4: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 262e8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 262ec: 0005d054 .word 0x0005d054 262f0: 00062968 .word 0x00062968 00025ec8 : return NULL; return p; } struct passwd *getpwent(void) { 25ec8: e92d4010 push {r4, lr} <== NOT EXECUTED if (passwd_fp == NULL) 25ecc: e59f4030 ldr r4, [pc, #48] ; 25f04 <== NOT EXECUTED 25ed0: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED 25ed4: e3500000 cmp r0, #0 <== NOT EXECUTED 25ed8: 1a000001 bne 25ee4 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 25edc: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &pwent; } 25ee0: e8bd8010 pop {r4, pc} <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 25ee4: e28410e0 add r1, r4, #224 ; 0xe0 <== NOT EXECUTED 25ee8: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED 25eec: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 25ef0: ebffffa9 bl 25d9c <== NOT EXECUTED 25ef4: e3500000 cmp r0, #0 <== NOT EXECUTED 25ef8: 128400e0 addne r0, r4, #224 ; 0xe0 <== NOT EXECUTED 25efc: 18bd8010 popne {r4, pc} <== NOT EXECUTED 25f00: eafffff5 b 25edc <== NOT EXECUTED 25f04: 00066b18 .word 0x00066b18 00026330 : struct passwd *getpwuid( uid_t uid ) { 26330: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 26334: e59f1030 ldr r1, [pc, #48] ; 2636c <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 26338: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 2633c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 26340: e28dc004 add ip, sp, #4 <== NOT EXECUTED 26344: e281201c add r2, r1, #28 <== NOT EXECUTED 26348: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 2634c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 26350: e58dc000 str ip, [sp] <== NOT EXECUTED 26354: ebffffe6 bl 262f4 <== NOT EXECUTED 26358: e3500000 cmp r0, #0 <== NOT EXECUTED 2635c: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 26360: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 26364: e28dd008 add sp, sp, #8 <== NOT EXECUTED 26368: e8bd8000 pop {pc} <== NOT EXECUTED 2636c: 00066bf8 .word 0x00066bf8 000262f4 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 262f4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 262f8: e1a0c002 mov ip, r2 <== NOT EXECUTED 262fc: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 26300: e1a0e001 mov lr, r1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 26304: e58d3000 str r3, [sp] <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 26308: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2630c: e1a0300c mov r3, ip <== NOT EXECUTED 26310: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 26314: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 26318: e1a0200e mov r2, lr <== NOT EXECUTED 2631c: e3a00000 mov r0, #0 <== NOT EXECUTED 26320: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 26324: ebffffbb bl 26218 <== NOT EXECUTED } 26328: e28dd008 add sp, sp, #8 <== NOT EXECUTED 2632c: e8bd8000 pop {pc} <== NOT EXECUTED 00009284 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 9284: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 9288: e2504000 subs r4, r0, #0 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 928c: e24dd008 sub sp, sp, #8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 9290: 0a00000f beq 92d4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 9294: e10f5000 mrs r5, CPSR 9298: e3853080 orr r3, r5, #128 ; 0x80 929c: e129f003 msr CPSR_fc, r3 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); 92a0: e1a0000d mov r0, sp 92a4: eb00053a bl a794 <_TOD_Get> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 92a8: e129f005 msr CPSR_fc, r5 useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 92ac: e59f2034 ldr r2, [pc, #52] ; 92e8 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 92b0: e59d3004 ldr r3, [sp, #4] useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 92b4: e0c10392 smull r0, r1, r2, r3 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 92b8: e59d2000 ldr r2, [sp] time->tv_usec = useconds; 92bc: e1a03fc3 asr r3, r3, #31 92c0: e0633341 rsb r3, r3, r1, asr #6 92c4: e884000c stm r4, {r2, r3} 92c8: 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; } 92cc: e28dd008 add sp, sp, #8 92d0: e8bd8030 pop {r4, r5, pc} void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 92d4: eb001139 bl d7c0 <__errno> <== NOT EXECUTED 92d8: e3a0300e mov r3, #14 <== NOT EXECUTED 92dc: e5803000 str r3, [r0] <== NOT EXECUTED 92e0: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 92e4: eafffff8 b 92cc <== NOT EXECUTED 92e8: 10624dd3 .word 0x10624dd3 000057a4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 57a4: e59f3008 ldr r3, [pc, #8] ; 57b4 <== NOT EXECUTED 57a8: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 57ac: e1d303b2 ldrh r0, [r3, #50] ; 0x32 <== NOT EXECUTED 57b0: e12fff1e bx lr <== NOT EXECUTED 57b4: 00058ed8 .word 0x00058ed8 00004f50 : int ioctl( int fd, ioctl_command_t command, ... ) { 4f50: e92d000e push {r1, r2, r3} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 4f54: e59f3090 ldr r3, [pc, #144] ; 4fec int ioctl( int fd, ioctl_command_t command, ... ) { 4f58: e52de004 push {lr} ; (str lr, [sp, #-4]!) va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 4f5c: e5933000 ldr r3, [r3] 4f60: e1500003 cmp r0, r3 int ioctl( int fd, ioctl_command_t command, ... ) { 4f64: e24dd004 sub sp, sp, #4 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 4f68: 2a000015 bcs 4fc4 iop = rtems_libio_iop( fd ); 4f6c: e59f307c ldr r3, [pc, #124] ; 4ff0 4f70: e5933000 ldr r3, [r3] 4f74: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 4f78: e5903014 ldr r3, [r0, #20] 4f7c: e3130c01 tst r3, #256 ; 0x100 4f80: 0a00000f beq 4fc4 /* * Now process the ioctl(). */ if ( !iop->handlers ) 4f84: 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 *); 4f88: e28d2010 add r2, sp, #16 /* * Now process the ioctl(). */ if ( !iop->handlers ) 4f8c: e3530000 cmp r3, #0 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 4f90: e58d2000 str r2, [sp] 4f94: e59d200c ldr r2, [sp, #12] /* * Now process the ioctl(). */ if ( !iop->handlers ) 4f98: 0a000009 beq 4fc4 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 4f9c: e5933010 ldr r3, [r3, #16] 4fa0: e3530000 cmp r3, #0 4fa4: 0a00000b beq 4fd8 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 4fa8: e59d1008 ldr r1, [sp, #8] 4fac: e1a0e00f mov lr, pc 4fb0: e12fff13 bx r3 return rc; } 4fb4: e28dd004 add sp, sp, #4 4fb8: e49de004 pop {lr} ; (ldr lr, [sp], #4) 4fbc: e28dd00c add sp, sp, #12 4fc0: e12fff1e bx lr /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 4fc4: eb003844 bl 130dc <__errno> 4fc8: e3a03009 mov r3, #9 4fcc: e5803000 str r3, [r0] 4fd0: e3e00000 mvn r0, #0 4fd4: eafffff6 b 4fb4 if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4fd8: eb00383f bl 130dc <__errno> <== NOT EXECUTED 4fdc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 4fe0: e5803000 str r3, [r0] <== NOT EXECUTED 4fe4: e3e00000 mvn r0, #0 <== NOT EXECUTED 4fe8: eafffff1 b 4fb4 <== NOT EXECUTED 4fec: 0001ee80 .word 0x0001ee80 4ff0: 00020af4 .word 0x00020af4 00002af8 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) 2af8: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED 2afc: e3130020 tst r3, #32 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2b00: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2b04: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 2b08: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2b0c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2b10: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) 2b14: 0a000007 beq 2b38 <== NOT EXECUTED c = tolower (c); 2b18: e59f2198 ldr r2, [pc, #408] ; 2cb8 <== NOT EXECUTED 2b1c: e5922000 ldr r2, [r2] <== NOT EXECUTED 2b20: e0822004 add r2, r2, r4 <== NOT EXECUTED 2b24: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 2b28: e2022003 and r2, r2, #3 <== NOT EXECUTED 2b2c: e3520001 cmp r2, #1 <== NOT EXECUTED 2b30: 02844020 addeq r4, r4, #32 <== NOT EXECUTED 2b34: e20440ff and r4, r4, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 2b38: e354000d cmp r4, #13 <== NOT EXECUTED 2b3c: 0a000012 beq 2b8c <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 2b40: e354000a cmp r4, #10 <== NOT EXECUTED 2b44: 0a000034 beq 2c1c <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2b48: e3540000 cmp r4, #0 <== NOT EXECUTED 2b4c: 1a000015 bne 2ba8 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2b50: e59f3164 ldr r3, [pc, #356] ; 2cbc <== NOT EXECUTED 2b54: e5932000 ldr r2, [r3] <== NOT EXECUTED 2b58: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 2b5c: e2422001 sub r2, r2, #1 <== NOT EXECUTED 2b60: e1530002 cmp r3, r2 <== NOT EXECUTED 2b64: aa00000a bge 2b94 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2b68: e595203c ldr r2, [r5, #60] ; 0x3c <== NOT EXECUTED 2b6c: e3120008 tst r2, #8 <== NOT EXECUTED 2b70: 1a00002c bne 2c28 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2b74: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 2b78: e2832001 add r2, r3, #1 <== NOT EXECUTED 2b7c: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED 2b80: e3a00000 mov r0, #0 <== NOT EXECUTED 2b84: e5852020 str r2, [r5, #32] <== NOT EXECUTED 2b88: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) 2b8c: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 2b90: 0a000001 beq 2b9c <== NOT EXECUTED * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; 2b94: e3a00000 mov r0, #0 <== NOT EXECUTED } return 0; } 2b98: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) 2b9c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 2ba0: 03a0400d moveq r4, #13 <== NOT EXECUTED 2ba4: 13a0400a movne r4, #10 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2ba8: e595303c ldr r3, [r5, #60] ; 0x3c <== NOT EXECUTED 2bac: e3130002 tst r3, #2 <== NOT EXECUTED 2bb0: 0affffe6 beq 2b50 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2bb4: e5d52043 ldrb r2, [r5, #67] ; 0x43 <== NOT EXECUTED 2bb8: e1520004 cmp r2, r4 <== NOT EXECUTED 2bbc: 0a000038 beq 2ca4 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2bc0: e5d52044 ldrb r2, [r5, #68] ; 0x44 <== NOT EXECUTED 2bc4: e1520004 cmp r2, r4 <== NOT EXECUTED 2bc8: 0a000030 beq 2c90 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2bcc: e5d52045 ldrb r2, [r5, #69] ; 0x45 <== NOT EXECUTED 2bd0: e1520004 cmp r2, r4 <== NOT EXECUTED 2bd4: 0a000027 beq 2c78 <== NOT EXECUTED return 1; } else if (c == '\n') { 2bd8: e354000a cmp r4, #10 <== NOT EXECUTED 2bdc: 0a00001b beq 2c50 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) 2be0: e5d5204c ldrb r2, [r5, #76] ; 0x4c <== NOT EXECUTED 2be4: e1520004 cmp r2, r4 <== NOT EXECUTED 2be8: 0a000002 beq 2bf8 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 2bec: e5d52051 ldrb r2, [r5, #81] ; 0x51 <== NOT EXECUTED 2bf0: e1520004 cmp r2, r4 <== NOT EXECUTED 2bf4: 1affffd5 bne 2b50 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2bf8: e3130008 tst r3, #8 <== NOT EXECUTED 2bfc: 1a00001f bne 2c80 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2c00: e285101c add r1, r5, #28 <== NOT EXECUTED 2c04: e891000a ldm r1, {r1, r3} <== NOT EXECUTED 2c08: e2832001 add r2, r3, #1 <== NOT EXECUTED 2c0c: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED 2c10: e3a00001 mov r0, #1 <== NOT EXECUTED 2c14: e5852020 str r2, [r5, #32] <== NOT EXECUTED return 1; 2c18: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 2c1c: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 2c20: 13a0400d movne r4, #13 <== NOT EXECUTED 2c24: eaffffdf b 2ba8 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2c28: e1a00004 mov r0, r4 <== NOT EXECUTED 2c2c: e1a01005 mov r1, r5 <== NOT EXECUTED 2c30: ebffff0b bl 2864 <== NOT EXECUTED 2c34: e285101c add r1, r5, #28 <== NOT EXECUTED 2c38: e891000a ldm r1, {r1, r3} <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2c3c: e2832001 add r2, r3, #1 <== NOT EXECUTED 2c40: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED 2c44: e3a00000 mov r0, #0 <== NOT EXECUTED 2c48: e5852020 str r2, [r5, #32] <== NOT EXECUTED 2c4c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 2c50: e3130048 tst r3, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 2c54: 11a00004 movne r0, r4 <== NOT EXECUTED 2c58: 11a01005 movne r1, r5 <== NOT EXECUTED 2c5c: 1bffff00 blne 2864 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2c60: e285101c add r1, r5, #28 <== NOT EXECUTED 2c64: e891000a ldm r1, {r1, r3} <== NOT EXECUTED 2c68: e2832001 add r2, r3, #1 <== NOT EXECUTED 2c6c: e3a0000a mov r0, #10 <== NOT EXECUTED 2c70: e7c10003 strb r0, [r1, r3] <== NOT EXECUTED 2c74: e5852020 str r2, [r5, #32] <== NOT EXECUTED 2c78: e3a00001 mov r0, #1 <== NOT EXECUTED return 1; 2c7c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2c80: e1a00004 mov r0, r4 <== NOT EXECUTED 2c84: e1a01005 mov r1, r5 <== NOT EXECUTED 2c88: ebfffef5 bl 2864 <== NOT EXECUTED 2c8c: eaffffdb b 2c00 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 2c90: e1a00005 mov r0, r5 <== NOT EXECUTED 2c94: e3a01001 mov r1, #1 <== NOT EXECUTED 2c98: ebffff13 bl 28ec <== NOT EXECUTED 2c9c: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; 2ca0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); 2ca4: e1a00005 mov r0, r5 <== NOT EXECUTED 2ca8: e3a01000 mov r1, #0 <== NOT EXECUTED 2cac: ebffff0e bl 28ec <== NOT EXECUTED 2cb0: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; 2cb4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 2cb8: 000192d0 .word 0x000192d0 2cbc: 00019214 .word 0x00019214 0000d12c : int killinfo( pid_t pid, int sig, const union sigval *value ) { d12c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} d130: e24dd00c sub sp, sp, #12 d134: e1a04000 mov r4, r0 d138: e1a05001 mov r5, r1 d13c: e1a08002 mov r8, r2 POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) d140: ebfffbf2 bl c110 d144: e1500004 cmp r0, r4 d148: 1a000095 bne d3a4 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) d14c: e3550000 cmp r5, #0 d150: 0a000098 beq d3b8 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); d154: e2453001 sub r3, r5, #1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) d158: e353001f cmp r3, #31 d15c: 8a000095 bhi d3b8 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) d160: e59f627c ldr r6, [pc, #636] ; d3e4 d164: e1a07085 lsl r7, r5, #1 d168: e0872005 add r2, r7, r5 d16c: e0862102 add r2, r6, r2, lsl #2 d170: e5922008 ldr r2, [r2, #8] d174: e3520001 cmp r2, #1 d178: 0a000039 beq d264 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) d17c: e3550008 cmp r5, #8 d180: 13550004 cmpne r5, #4 d184: 0a000039 beq d270 d188: e355000b cmp r5, #11 d18c: 0a000037 beq d270 static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); d190: e3a04001 mov r4, #1 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; d194: e58d4004 str r4, [sp, #4] /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; d198: e58d5000 str r5, [sp] siginfo->si_code = SI_USER; if ( !value ) { d19c: e3580000 cmp r8, #0 d1a0: e1a04314 lsl r4, r4, r3 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; d1a4: 15983000 ldrne r3, [r8] d1a8: 158d3008 strne r3, [sp, #8] d1ac: e59f3234 ldr r3, [pc, #564] ; d3e8 d1b0: e5932000 ldr r2, [r3] d1b4: e2822001 add r2, r2, #1 */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; d1b8: 058d8008 streq r8, [sp, #8] d1bc: e5832000 str r2, [r3] /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; d1c0: e59f3224 ldr r3, [pc, #548] ; d3ec d1c4: e5930000 ldr r0, [r3] api = the_thread->API_Extensions[ THREAD_API_POSIX ]; d1c8: e5903108 ldr r3, [r0, #264] ; 0x108 d1cc: e59330cc ldr r3, [r3, #204] ; 0xcc d1d0: e1d43003 bics r3, r4, r3 d1d4: 1a000014 bne d22c /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; d1d8: e59f1210 ldr r1, [pc, #528] ; d3f0 d1dc: e4913004 ldr r3, [r1], #4 d1e0: e1530001 cmp r3, r1 d1e4: 0a000036 beq d2c4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) d1e8: e5932030 ldr r2, [r3, #48] ; 0x30 d1ec: e1140002 tst r4, r2 for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; d1f0: e1a00003 mov r0, r3 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; d1f4: e5932108 ldr r2, [r3, #264] ; 0x108 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) d1f8: 0a000008 beq d220 d1fc: ea00000a b d22c the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { d200: e5933000 ldr r3, [r3] /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; d204: e1530001 cmp r3, r1 d208: 0a00002d beq d2c4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) d20c: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED d210: e1140002 tst r4, r2 <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; d214: e1a00003 mov r0, r3 <== NOT EXECUTED api = the_thread->API_Extensions[ THREAD_API_POSIX ]; d218: e5932108 ldr r2, [r3, #264] ; 0x108 <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) d21c: 1a000002 bne d22c <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) d220: e59220cc ldr r2, [r2, #204] ; 0xcc d224: e1d42002 bics r2, r4, r2 d228: 0afffff4 beq d200 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; d22c: e3a03001 mov r3, #1 d230: e5c03074 strb r3, [r0, #116] ; 0x74 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { d234: e1a01005 mov r1, r5 d238: e1a0200d mov r2, sp d23c: eb0000a5 bl d4d8 <_POSIX_signals_Unblock_thread> d240: e3500000 cmp r0, #0 d244: 1a00001b bne d2b8 * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { d248: e0875005 add r5, r7, r5 /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); d24c: e1a00004 mov r0, r4 d250: eb00008e bl d490 <_POSIX_signals_Set_process_signals> if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { d254: e7963105 ldr r3, [r6, r5, lsl #2] d258: e3530002 cmp r3, #2 d25c: 0a000007 beq d280 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); d260: ebffe544 bl 6778 <_Thread_Enable_dispatch> d264: e3a00000 mov r0, #0 return 0; } d268: e28dd00c add sp, sp, #12 d26c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) return pthread_kill( pthread_self(), sig ); d270: eb000123 bl d704 d274: e1a01005 mov r1, r5 d278: eb0000e3 bl d60c d27c: eafffff9 b d268 */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) d280: e59f016c ldr r0, [pc, #364] ; d3f4 d284: ebfff4cd bl a5c0 <_Chain_Get> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { d288: e250c000 subs ip, r0, #0 d28c: 0a00004e beq d3cc _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; d290: e1a0300d mov r3, sp d294: e8930007 ldm r3, {r0, r1, r2} d298: e28c3008 add r3, ip, #8 d29c: e8830007 stm r3, {r0, r1, r2} _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); d2a0: e59f0150 ldr r0, [pc, #336] ; d3f8 d2a4: e1a0100c mov r1, ip d2a8: e0800105 add r0, r0, r5, lsl #2 d2ac: ebffdf97 bl 5110 <_Chain_Append> } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); d2b0: ebffe530 bl 6778 <_Thread_Enable_dispatch> d2b4: eaffffea b d264 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { _Thread_Enable_dispatch(); d2b8: ebffe52e bl 6778 <_Thread_Enable_dispatch> d2bc: e3a00000 mov r0, #0 return 0; d2c0: eaffffe8 b d268 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; d2c4: e59f3130 ldr r3, [pc, #304] ; d3fc d2c8: e5d3c000 ldrb ip, [r3] d2cc: e59f812c ldr r8, [pc, #300] ; d400 d2d0: e28cc001 add ip, ip, #1 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( d2d4: e3a0a000 mov sl, #0 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) d2d8: e5983008 ldr r3, [r8, #8] d2dc: e3530000 cmp r3, #0 d2e0: 0a000020 beq d368 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; d2e4: e5933004 ldr r3, [r3, #4] */ if ( !the_info ) continue; #endif maximum = the_info->maximum; d2e8: e1d301b0 ldrh r0, [r3, #16] object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { d2ec: e3500000 cmp r0, #0 if ( !the_info ) continue; #endif maximum = the_info->maximum; object_table = the_info->local_table; d2f0: e593e01c ldr lr, [r3, #28] for ( index = 1 ; index <= maximum ; index++ ) { d2f4: 0a00001b beq d368 d2f8: e3a03001 mov r3, #1 the_thread = (Thread_Control *) object_table[ index ]; d2fc: e79e2103 ldr r2, [lr, r3, lsl #2] if ( !the_thread ) d300: e3520000 cmp r2, #0 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { d304: e2833001 add r3, r3, #1 the_thread = (Thread_Control *) object_table[ index ]; if ( !the_thread ) d308: 0a000014 beq d360 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) d30c: e5921014 ldr r1, [r2, #20] d310: e151000c cmp r1, ip d314: 8a000011 bhi d360 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; d318: e5929108 ldr r9, [r2, #264] ; 0x108 d31c: e59990cc ldr r9, [r9, #204] ; 0xcc d320: e1d49009 bics r9, r4, r9 d324: 0a00000d beq d360 * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { d328: e151000c cmp r1, ip d32c: 3a000009 bcc d358 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { d330: e59a9010 ldr r9, [sl, #16] d334: e3590000 cmp r9, #0 d338: 0a000008 beq d360 /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { d33c: e592b010 ldr fp, [r2, #16] d340: e35b0000 cmp fp, #0 d344: 0a000003 beq d358 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { d348: e3190201 tst r9, #268435456 ; 0x10000000 d34c: 1a000003 bne d360 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { d350: e31b0201 tst fp, #268435456 ; 0x10000000 d354: 0a000001 beq d360 d358: e1a0c001 mov ip, r1 d35c: e1a0a002 mov sl, r2 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { d360: e1500003 cmp r0, r3 d364: 2affffe4 bcs d2fc * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { d368: e59f3094 ldr r3, [pc, #148] ; d404 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { d36c: e2888004 add r8, r8, #4 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { d370: e1580003 cmp r8, r3 d374: 1affffd7 bne d2d8 } } } } if ( interested ) { d378: e35a0000 cmp sl, #0 d37c: 0affffb1 beq d248 d380: e1a0000a mov r0, sl * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; d384: e3a03001 mov r3, #1 d388: e5c03074 strb r3, [r0, #116] ; 0x74 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { d38c: e1a01005 mov r1, r5 d390: e1a0200d mov r2, sp d394: eb00004f bl d4d8 <_POSIX_signals_Unblock_thread> d398: e3500000 cmp r0, #0 d39c: 0affffa9 beq d248 d3a0: eaffffc4 b d2b8 <== NOT EXECUTED /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); d3a4: eb000105 bl d7c0 <__errno> d3a8: e3a03003 mov r3, #3 d3ac: e5803000 str r3, [r0] d3b0: e3e00000 mvn r0, #0 d3b4: eaffffab b d268 */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); d3b8: eb000100 bl d7c0 <__errno> d3bc: e3a03016 mov r3, #22 d3c0: e5803000 str r3, [r0] d3c4: e3e00000 mvn r0, #0 d3c8: eaffffa6 b d268 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); d3cc: ebffe4e9 bl 6778 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); d3d0: eb0000fa bl d7c0 <__errno> d3d4: e3a0300b mov r3, #11 d3d8: e5803000 str r3, [r0] d3dc: e3e00000 mvn r0, #0 d3e0: eaffffa0 b d268 d3e4: 0001af58 .word 0x0001af58 d3e8: 0001aa4c .word 0x0001aa4c d3ec: 0001ab00 .word 0x0001ab00 d3f0: 0001b0e4 .word 0x0001b0e4 d3f4: 0001b0d8 .word 0x0001b0d8 d3f8: 0001b128 .word 0x0001b128 d3fc: 00019140 .word 0x00019140 d400: 0001aa08 .word 0x0001aa08 d404: 0001aa14 .word 0x0001aa14 0002647c : int link( const char *existing, const char *new ) { 2647c: e92d40f0 push {r4, r5, r6, r7, lr} 26480: e24dd030 sub sp, sp, #48 ; 0x30 26484: e1a06001 mov r6, r1 26488: e1a04000 mov r4, r0 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 2648c: eb007c0c bl 454c4 26490: e28d5018 add r5, sp, #24 26494: e1a01000 mov r1, r0 26498: e3a0c001 mov ip, #1 2649c: e1a00004 mov r0, r4 264a0: e3a02000 mov r2, #0 264a4: e1a03005 mov r3, r5 264a8: e58dc000 str ip, [sp] 264ac: ebff7c3f bl 55b0 0, &existing_loc, true ); if ( result != 0 ) 264b0: e3500000 cmp r0, #0 264b4: 1a000052 bne 26604 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 264b8: e5d63000 ldrb r3, [r6] 264bc: e353002f cmp r3, #47 ; 0x2f 264c0: 1353005c cmpne r3, #92 ; 0x5c 264c4: 13a0e000 movne lr, #0 264c8: 03a0e001 moveq lr, #1 264cc: 1a000035 bne 265a8 264d0: e59f3210 ldr r3, [pc, #528] ; 266e8 264d4: e593c000 ldr ip, [r3] 264d8: e28cc018 add ip, ip, #24 264dc: e8bc000f ldm ip!, {r0, r1, r2, r3} 264e0: e28d4004 add r4, sp, #4 264e4: e1a07004 mov r7, r4 264e8: e8a7000f stmia r7!, {r0, r1, r2, r3} 264ec: e59c2000 ldr r2, [ip] 264f0: e5872000 str r2, [r7] 264f4: e3a0e001 mov lr, #1 if ( !parent_loc.ops->evalformake_h ) { 264f8: e59d3010 ldr r3, [sp, #16] 264fc: e5933004 ldr r3, [r3, #4] 26500: e3530000 cmp r3, #0 26504: 0a000033 beq 265d8 rtems_filesystem_freenode( &existing_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 26508: e086000e add r0, r6, lr 2650c: e1a01004 mov r1, r4 26510: e28d202c add r2, sp, #44 ; 0x2c 26514: e1a0e00f mov lr, pc 26518: e12fff13 bx r3 if ( result != 0 ) { 2651c: e2506000 subs r6, r0, #0 26520: 1a00004e bne 26660 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 26524: e59d3028 ldr r3, [sp, #40] ; 0x28 26528: e59d2014 ldr r2, [sp, #20] 2652c: e1520003 cmp r2, r3 26530: 1a000035 bne 2660c rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 26534: e59d2010 ldr r2, [sp, #16] 26538: e5923008 ldr r3, [r2, #8] 2653c: e3530000 cmp r3, #0 26540: 0a000052 beq 26690 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 ); 26544: e1a00005 mov r0, r5 26548: e1a01004 mov r1, r4 2654c: e59d202c ldr r2, [sp, #44] ; 0x2c 26550: e1a0e00f mov lr, pc 26554: e12fff13 bx r3 rtems_filesystem_freenode( &existing_loc ); 26558: e59d3024 ldr r3, [sp, #36] ; 0x24 2655c: e3530000 cmp r3, #0 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 ); 26560: e1a06000 mov r6, r0 rtems_filesystem_freenode( &existing_loc ); 26564: 0a000004 beq 2657c 26568: e593301c ldr r3, [r3, #28] 2656c: e3530000 cmp r3, #0 26570: 11a00005 movne r0, r5 26574: 11a0e00f movne lr, pc 26578: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 2657c: e59d3010 ldr r3, [sp, #16] 26580: e3530000 cmp r3, #0 26584: 0a000004 beq 2659c 26588: e593301c ldr r3, [r3, #28] 2658c: e3530000 cmp r3, #0 26590: 11a00004 movne r0, r4 26594: 11a0e00f movne lr, pc 26598: 112fff13 bxne r3 return result; } 2659c: e1a00006 mov r0, r6 265a0: e28dd030 add sp, sp, #48 ; 0x30 265a4: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 265a8: e3530000 cmp r3, #0 265ac: 0affffc7 beq 264d0 265b0: e59f3130 ldr r3, [pc, #304] ; 266e8 265b4: e593c000 ldr ip, [r3] 265b8: e28cc004 add ip, ip, #4 265bc: e8bc000f ldm ip!, {r0, r1, r2, r3} 265c0: e28d4004 add r4, sp, #4 265c4: e1a07004 mov r7, r4 265c8: e8a7000f stmia r7!, {r0, r1, r2, r3} 265cc: e59c2000 ldr r2, [ip] 265d0: e5872000 str r2, [r7] 265d4: eaffffc7 b 264f8 if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 265d8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 265dc: e3530000 cmp r3, #0 <== NOT EXECUTED 265e0: 0a000004 beq 265f8 <== NOT EXECUTED 265e4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 265e8: e3530000 cmp r3, #0 <== NOT EXECUTED 265ec: 11a00005 movne r0, r5 <== NOT EXECUTED 265f0: 11a0e00f movne lr, pc <== NOT EXECUTED 265f4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 265f8: eb006126 bl 3ea98 <__errno> <== NOT EXECUTED 265fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 26600: e5803000 str r3, [r0] <== NOT EXECUTED 26604: e3e06000 mvn r6, #0 26608: eaffffe3 b 2659c * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { rtems_filesystem_freenode( &existing_loc ); 2660c: e59d3024 ldr r3, [sp, #36] ; 0x24 26610: e3530000 cmp r3, #0 26614: 0a000004 beq 2662c 26618: e593301c ldr r3, [r3, #28] 2661c: e3530000 cmp r3, #0 26620: 11a00005 movne r0, r5 26624: 11a0e00f movne lr, pc 26628: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 2662c: e59d3010 ldr r3, [sp, #16] 26630: e3530000 cmp r3, #0 26634: 0a000004 beq 2664c 26638: e593301c ldr r3, [r3, #28] 2663c: e3530000 cmp r3, #0 26640: 11a00004 movne r0, r4 26644: 11a0e00f movne lr, pc 26648: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EXDEV ); 2664c: eb006111 bl 3ea98 <__errno> 26650: e3a03012 mov r3, #18 26654: e5803000 str r3, [r0] 26658: e3e06000 mvn r6, #0 2665c: eaffffce b 2659c rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); 26660: e59d3024 ldr r3, [sp, #36] ; 0x24 26664: e3530000 cmp r3, #0 26668: 0a000004 beq 26680 2666c: e593301c ldr r3, [r3, #28] 26670: e3530000 cmp r3, #0 26674: 11a00005 movne r0, r5 26678: 11a0e00f movne lr, pc 2667c: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( result ); 26680: eb006104 bl 3ea98 <__errno> 26684: e5806000 str r6, [r0] 26688: e3e06000 mvn r6, #0 2668c: eaffffc2 b 2659c rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 26690: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 26694: e3530000 cmp r3, #0 <== NOT EXECUTED 26698: 0a000006 beq 266b8 <== NOT EXECUTED 2669c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 266a0: e3530000 cmp r3, #0 <== NOT EXECUTED 266a4: 0a000003 beq 266b8 <== NOT EXECUTED 266a8: e1a00005 mov r0, r5 <== NOT EXECUTED 266ac: e1a0e00f mov lr, pc <== NOT EXECUTED 266b0: e12fff13 bx r3 <== NOT EXECUTED 266b4: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 266b8: e3520000 cmp r2, #0 <== NOT EXECUTED 266bc: 0a000004 beq 266d4 <== NOT EXECUTED 266c0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 266c4: e3530000 cmp r3, #0 <== NOT EXECUTED 266c8: 11a00004 movne r0, r4 <== NOT EXECUTED 266cc: 11a0e00f movne lr, pc <== NOT EXECUTED 266d0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 266d4: eb0060ef bl 3ea98 <__errno> <== NOT EXECUTED 266d8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 266dc: e5803000 str r3, [r0] <== NOT EXECUTED 266e0: e3e06000 mvn r6, #0 <== NOT EXECUTED 266e4: eaffffac b 2659c <== NOT EXECUTED 266e8: 00058ed8 .word 0x00058ed8 000186c4 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 186c4: e59fc134 ldr ip, [pc, #308] ; 18800 186c8: e59cc000 ldr ip, [ip] 186cc: e150000c cmp r0, ip off_t lseek( int fd, off_t offset, int whence ) { 186d0: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 186d4: 2a00003d bcs 187d0 iop = rtems_libio_iop( fd ); 186d8: e59fc124 ldr ip, [pc, #292] ; 18804 186dc: e59c4000 ldr r4, [ip] 186e0: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 186e4: e5940014 ldr r0, [r4, #20] 186e8: e3100c01 tst r0, #256 ; 0x100 186ec: 0a000037 beq 187d0 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 186f0: e594c03c ldr ip, [r4, #60] ; 0x3c 186f4: e59c0014 ldr r0, [ip, #20] 186f8: e3500000 cmp r0, #0 186fc: 0a000039 beq 187e8 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 18700: e3530001 cmp r3, #1 /* * Now process the lseek(). */ old_offset = iop->offset; 18704: e284600c add r6, r4, #12 18708: e8960060 ldm r6, {r5, r6} switch ( whence ) { 1870c: 0a000022 beq 1879c 18710: e3530002 cmp r3, #2 18714: 0a00000d beq 18750 18718: e3530000 cmp r3, #0 1871c: 1a000023 bne 187b0 case SEEK_SET: iop->offset = offset; 18720: e584100c str r1, [r4, #12] 18724: e5842010 str r2, [r4, #16] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 18728: e1a00004 mov r0, r4 1872c: e1a0e00f mov lr, pc 18730: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) 18734: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 18738: e1a02000 mov r2, r0 1873c: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) 18740: 0a00000e beq 18780 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 18744: e1a01003 mov r1, r3 18748: e1a00002 mov r0, r2 1874c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 18750: e9940180 ldmib r4, {r7, r8} 18754: e0977001 adds r7, r7, r1 18758: e0a88002 adc r8, r8, r2 1875c: e584700c str r7, [r4, #12] 18760: e5848010 str r8, [r4, #16] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 18764: e1a00004 mov r0, r4 18768: e1a0e00f mov lr, pc 1876c: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) 18770: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 18774: e1a02000 mov r2, r0 18778: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) 1877c: 1afffff0 bne 18744 18780: e3710001 cmn r1, #1 18784: 1affffee bne 18744 iop->offset = old_offset; 18788: e584500c str r5, [r4, #12] 1878c: e5846010 str r6, [r4, #16] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 18790: e1a01003 mov r1, r3 18794: e1a00002 mov r0, r2 18798: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 1879c: e0917005 adds r7, r1, r5 187a0: e0a28006 adc r8, r2, r6 187a4: e584700c str r7, [r4, #12] 187a8: e5848010 str r8, [r4, #16] break; 187ac: eaffffdd b 18728 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 187b0: ebffd402 bl d7c0 <__errno> 187b4: e3a03016 mov r3, #22 187b8: e5803000 str r3, [r0] 187bc: e3e02000 mvn r2, #0 187c0: e3e03000 mvn r3, #0 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 187c4: e1a01003 mov r1, r3 187c8: e1a00002 mov r0, r2 187cc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 187d0: ebffd3fa bl d7c0 <__errno> 187d4: e3a03009 mov r3, #9 187d8: e5803000 str r3, [r0] 187dc: e3e02000 mvn r2, #0 187e0: e3e03000 mvn r3, #0 187e4: eaffffd6 b 18744 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 187e8: ebffd3f4 bl d7c0 <__errno> <== NOT EXECUTED 187ec: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 187f0: e5803000 str r3, [r0] <== NOT EXECUTED 187f4: e3e02000 mvn r2, #0 <== NOT EXECUTED 187f8: e3e03000 mvn r3, #0 <== NOT EXECUTED 187fc: eaffffd0 b 18744 <== NOT EXECUTED 18800: 00019090 .word 0x00019090 18804: 0001a8e4 .word 0x0001a8e4 00026850 : int _STAT_NAME( const char *path, struct stat *buf ) { 26850: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 26854: e2515000 subs r5, r1, #0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 26858: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 2685c: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 26860: 0a00002f beq 26924 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 26864: eb007b16 bl 454c4 <== NOT EXECUTED 26868: e28d4004 add r4, sp, #4 <== NOT EXECUTED 2686c: e3a0c000 mov ip, #0 <== NOT EXECUTED 26870: e1a01000 mov r1, r0 <== NOT EXECUTED 26874: e1a0200c mov r2, ip <== NOT EXECUTED 26878: e1a00006 mov r0, r6 <== NOT EXECUTED 2687c: e1a03004 mov r3, r4 <== NOT EXECUTED 26880: e58dc000 str ip, [sp] <== NOT EXECUTED 26884: ebff7b49 bl 55b0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 26888: e2501000 subs r1, r0, #0 <== NOT EXECUTED 2688c: 1a000022 bne 2691c <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 26890: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 26894: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 26898: e3530000 cmp r3, #0 <== NOT EXECUTED 2689c: 0a000013 beq 268f0 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 268a0: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED 268a4: e1a00005 mov r0, r5 <== NOT EXECUTED 268a8: eb006d32 bl 41d78 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 268ac: e1a01005 mov r1, r5 <== NOT EXECUTED 268b0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 268b4: e1a00004 mov r0, r4 <== NOT EXECUTED 268b8: e1a0e00f mov lr, pc <== NOT EXECUTED 268bc: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 268c0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 268c4: e3530000 cmp r3, #0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 268c8: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 268cc: 0a000004 beq 268e4 <== NOT EXECUTED 268d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 268d4: e3530000 cmp r3, #0 <== NOT EXECUTED 268d8: 11a00004 movne r0, r4 <== NOT EXECUTED 268dc: 11a0e00f movne lr, pc <== NOT EXECUTED 268e0: 112fff13 bxne r3 <== NOT EXECUTED return status; } 268e4: e1a00005 mov r0, r5 <== NOT EXECUTED 268e8: e28dd018 add sp, sp, #24 <== NOT EXECUTED 268ec: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 268f0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 268f4: e3530000 cmp r3, #0 <== NOT EXECUTED 268f8: 0a000004 beq 26910 <== NOT EXECUTED 268fc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 26900: e3530000 cmp r3, #0 <== NOT EXECUTED 26904: 11a00004 movne r0, r4 <== NOT EXECUTED 26908: 11a0e00f movne lr, pc <== NOT EXECUTED 2690c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 26910: eb006060 bl 3ea98 <__errno> <== NOT EXECUTED 26914: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 26918: e5803000 str r3, [r0] <== NOT EXECUTED 2691c: e3e05000 mvn r5, #0 <== NOT EXECUTED 26920: eaffffef b 268e4 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 26924: eb00605b bl 3ea98 <__errno> <== NOT EXECUTED 26928: e3a0300e mov r3, #14 <== NOT EXECUTED 2692c: e5803000 str r3, [r0] <== NOT EXECUTED 26930: e3e05000 mvn r5, #0 <== NOT EXECUTED 26934: eaffffea b 268e4 <== NOT EXECUTED 00009630 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 9630: e59f30dc ldr r3, [pc, #220] ; 9714 9634: e5932004 ldr r2, [r3, #4] 9638: e2822001 add r2, r2, #1 963c: e92d4070 push {r4, r5, r6, lr} 9640: e5832004 str r2, [r3, #4] 9644: e1a04000 mov r4, r0 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 9648: ebffffef bl 960c /* * Validate the parameters */ if ( !size ) 964c: e3540000 cmp r4, #0 9650: 0a00001f beq 96d4 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 9654: e59f30bc ldr r3, [pc, #188] ; 9718 9658: e5933000 ldr r3, [r3] 965c: e3530003 cmp r3, #3 9660: 0a000018 beq 96c8 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 9664: e59f30b0 ldr r3, [pc, #176] ; 971c 9668: e3a02000 mov r2, #0 966c: e5930000 ldr r0, [r3] 9670: e1a01004 mov r1, r4 9674: e1a03002 mov r3, r2 9678: eb00057f bl ac7c <_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 ) { 967c: 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; 9680: 11a05006 movne r5, r6 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { 9684: 0a000015 beq 96e0 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 9688: e59f3090 ldr r3, [pc, #144] ; 9720 968c: e5933000 ldr r3, [r3] 9690: e3530000 cmp r3, #0 (*rtems_malloc_dirty_helper)( return_this, size ); 9694: 11a01004 movne r1, r4 9698: 11a00005 movne r0, r5 969c: 11a0e00f movne lr, pc 96a0: 1593f000 ldrne pc, [r3] /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 96a4: e59f3078 ldr r3, [pc, #120] ; 9724 96a8: e5933000 ldr r3, [r3] 96ac: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 96b0: 11a00005 movne r0, r5 96b4: 11a0e00f movne lr, pc 96b8: 1593f004 ldrne pc, [r3, #4] 96bc: e1a06005 mov r6, r5 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 96c0: e1a00006 mov r0, r6 96c4: e8bd8070 pop {r4, r5, r6, pc} return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 96c8: ebffffb8 bl 95b0 96cc: e3500000 cmp r0, #0 96d0: 1affffe3 bne 9664 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 96d4: e3a06000 mov r6, #0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 96d8: e1a00006 mov r0, r6 <== NOT EXECUTED 96dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 96e0: e59f3040 ldr r3, [pc, #64] ; 9728 96e4: e5933000 ldr r3, [r3] 96e8: e3530000 cmp r3, #0 96ec: 0a000004 beq 9704 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 96f0: e1a00004 mov r0, r4 <== NOT EXECUTED 96f4: e1a0e00f mov lr, pc <== NOT EXECUTED 96f8: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 96fc: e2505000 subs r5, r0, #0 <== NOT EXECUTED 9700: 1affffe0 bne 9688 <== NOT EXECUTED errno = ENOMEM; 9704: eb00102d bl d7c0 <__errno> 9708: e3a0300c mov r3, #12 970c: e5803000 str r3, [r0] return (void *) 0; 9710: eaffffea b 96c0 9714: 0001a8f0 .word 0x0001a8f0 9718: 0001abf0 .word 0x0001abf0 971c: 0001909c .word 0x0001909c 9720: 0001a710 .word 0x0001a710 9724: 0001a708 .word 0x0001a708 9728: 0001a70c .word 0x0001a70c 000095fc : } void malloc_deferred_free( void *pointer ) { 95fc: e1a01000 mov r1, r0 <== NOT EXECUTED 9600: e59f0000 ldr r0, [pc, #0] ; 9608 <== NOT EXECUTED 9604: eaffeec1 b 5110 <_Chain_Append> <== NOT EXECUTED 9608: 0001af4c .word 0x0001af4c 0000960c : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 960c: 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) 9610: ea000000 b 9618 free(to_be_freed); 9614: ebfffea5 bl 90b0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 9618: e59f000c ldr r0, [pc, #12] ; 962c 961c: eb0003e7 bl a5c0 <_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) 9620: e3500000 cmp r0, #0 9624: 1afffffa bne 9614 free(to_be_freed); } 9628: e49df004 pop {pc} ; (ldr pc, [sp], #4) 962c: 0001af4c .word 0x0001af4c 00010a28 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 10a28: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( block_table ); 10a2c: e2504000 subs r4, r0, #0 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 10a30: e1a08001 mov r8, r1 /* * Perform internal consistency checks */ assert( block_table ); 10a34: 0a000014 beq 10a8c * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 10a44: e3a05000 mov r5, #0 10a48: e1a06005 mov r6, r5 if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; 10a4c: e1a0a005 mov sl, r5 */ b = *block_table; for ( i=0 ; i memfile_free_block( b[i] ); 10a5c: ebffff4b bl 10790 b[i] = 0; 10a60: e787a005 str sl, [r7, r5] * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 10a74: e5947000 ldr r7, [r4] /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 10a78: e1a00007 mov r0, r7 10a7c: ebffff43 bl 10790 *block_table = 0; 10a80: e3a03000 mov r3, #0 10a84: e5843000 str r3, [r4] } 10a88: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Perform internal consistency checks */ assert( block_table ); 10a8c: e3a01e1b mov r1, #432 ; 0x1b0 <== NOT EXECUTED 10a90: e2811003 add r1, r1, #3 <== NOT EXECUTED 10a94: e59f0008 ldr r0, [pc, #8] ; 10aa4 <== NOT EXECUTED 10a98: e59f2008 ldr r2, [pc, #8] ; 10aa8 <== NOT EXECUTED 10a9c: e59f3008 ldr r3, [pc, #8] ; 10aac <== NOT EXECUTED 10aa0: ebfff5dc bl e218 <__assert_func> <== NOT EXECUTED 10aa4: 000200cc .word 0x000200cc 10aa8: 0001f7e8 .word 0x0001f7e8 10aac: 00020144 .word 0x00020144 00010f80 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 10f80: e92d4010 push {r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 10f84: 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 ) 10f88: e5943054 ldr r3, [r4, #84] ; 0x54 10f8c: e1530002 cmp r3, r2 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 10f90: e24dd008 sub sp, sp, #8 * POSIX 1003.1b does not specify what happens if you truncate a file * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) 10f94: aa000003 bge 10fa8 return IMFS_memfile_extend( the_jnode, length ); 10f98: e1a00004 mov r0, r4 <== NOT EXECUTED 10f9c: ebffff96 bl 10dfc <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 10fa0: e28dd008 add sp, sp, #8 10fa4: e8bd8010 pop {r4, pc} * POSIX 1003.1b does not specify what happens if you truncate a file * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) 10fa8: 0a000009 beq 10fd4 * 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; 10fac: e5841050 str r1, [r4, #80] ; 0x50 10fb0: e5842054 str r2, [r4, #84] ; 0x54 iop->size = the_jnode->info.file.size; 10fb4: e9800006 stmib r0, {r1, r2} IMFS_update_atime( the_jnode ); 10fb8: e3a01000 mov r1, #0 10fbc: e1a0000d mov r0, sp 10fc0: ebffc686 bl 29e0 10fc4: e59d3000 ldr r3, [sp] 10fc8: e3a00000 mov r0, #0 10fcc: e5843040 str r3, [r4, #64] ; 0x40 return 0; 10fd0: eafffff2 b 10fa0 * 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 ) 10fd4: e5943050 ldr r3, [r4, #80] ; 0x50 10fd8: e1530001 cmp r3, r1 10fdc: 2afffff2 bcs 10fac 10fe0: eaffffec b 10f98 <== NOT EXECUTED 00010fe4 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 10fe4: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 10fe8: e5905038 ldr r5, [r0, #56] ; 0x38 if (the_jnode->type == IMFS_LINEAR_FILE) { 10fec: e595304c ldr r3, [r5, #76] ; 0x4c 10ff0: e3530006 cmp r3, #6 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 10ff4: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 10ff8: 0a00000d beq 11034 if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 10ffc: e1a00005 mov r0, r5 11000: e284200c add r2, r4, #12 11004: e8920006 ldm r2, {r1, r2} 11008: ebffff7b bl 10dfc 1100c: e3500000 cmp r0, #0 11010: 1a00001a bne 11080 rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 11014: e2853050 add r3, r5, #80 ; 0x50 11018: e893000c ldm r3, {r2, r3} 1101c: e984000c stmib r4, {r2, r3} 11020: e284300c add r3, r4, #12 11024: e893000c ldm r3, {r2, r3} } return iop->offset; } 11028: e1a01003 mov r1, r3 1102c: e1a00002 mov r0, r2 11030: e8bd8030 pop {r4, r5, pc} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 11034: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED 11038: e2853050 add r3, r5, #80 ; 0x50 <== NOT EXECUTED 1103c: e893000c ldm r3, {r2, r3} <== NOT EXECUTED 11040: e1510003 cmp r1, r3 <== NOT EXECUTED 11044: e590000c ldr r0, [r0, #12] <== NOT EXECUTED 11048: ca000007 bgt 1106c <== NOT EXECUTED 1104c: 0a000004 beq 11064 <== NOT EXECUTED 11050: e1a02000 mov r2, r0 <== NOT EXECUTED 11054: e1a03001 mov r3, r1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 11058: e1a01003 mov r1, r3 <== NOT EXECUTED 1105c: e1a00002 mov r0, r2 <== NOT EXECUTED 11060: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 11064: e1500002 cmp r0, r2 <== NOT EXECUTED 11068: 9afffff8 bls 11050 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 1106c: e584200c str r2, [r4, #12] <== NOT EXECUTED 11070: e5843010 str r3, [r4, #16] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 11074: e1a01003 mov r1, r3 <== NOT EXECUTED 11078: e1a00002 mov r0, r2 <== NOT EXECUTED 1107c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); 11080: eb00071d bl 12cfc <__errno> <== NOT EXECUTED 11084: e3a0301c mov r3, #28 <== NOT EXECUTED 11088: e5803000 str r3, [r0] <== NOT EXECUTED 1108c: e3e02000 mvn r2, #0 <== NOT EXECUTED 11090: e3e03000 mvn r3, #0 <== NOT EXECUTED 11094: eaffffe3 b 11028 <== NOT EXECUTED 00011358 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 11358: e92d4830 push {r4, r5, fp, lr} the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 1135c: e5903014 ldr r3, [r0, #20] 11360: e3130f81 tst r3, #516 ; 0x204 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 11364: e24dd004 sub sp, sp, #4 11368: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 1136c: e5905038 ldr r5, [r0, #56] ; 0x38 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 11370: 0a000002 beq 11380 && (the_jnode->type == IMFS_LINEAR_FILE)) { 11374: e595204c ldr r2, [r5, #76] ; 0x4c 11378: e3520006 cmp r2, #6 1137c: 0a00000b beq 113b0 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) 11380: e5952050 ldr r2, [r5, #80] ; 0x50 11384: e5951054 ldr r1, [r5, #84] ; 0x54 && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 11388: e3130c02 tst r3, #512 ; 0x200 iop->offset = the_jnode->info.file.size; 1138c: 1584200c strne r2, [r4, #12] 11390: 15841010 strne r1, [r4, #16] 11394: 15951054 ldrne r1, [r5, #84] ; 0x54 11398: 15952050 ldrne r2, [r5, #80] ; 0x50 iop->size = the_jnode->info.file.size; 1139c: e5841008 str r1, [r4, #8] 113a0: e5842004 str r2, [r4, #4] 113a4: e3a00000 mov r0, #0 return 0; } 113a8: e28dd004 add sp, sp, #4 113ac: e8bd8830 pop {r4, r5, fp, pc} /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; 113b0: e595c050 ldr ip, [r5, #80] ; 0x50 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 113b4: e3a00000 mov r0, #0 <== NOT EXECUTED if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; 113b8: e3a03005 mov r3, #5 <== NOT EXECUTED the_jnode->info.file.size = 0; 113bc: e3a01000 mov r1, #0 <== NOT EXECUTED 113c0: e3a02000 mov r2, #0 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 113c4: e35c0000 cmp ip, #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; 113c8: e585304c str r3, [r5, #76] ; 0x4c <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; 113cc: e5850060 str r0, [r5, #96] ; 0x60 <== NOT EXECUTED * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; 113d0: e5953058 ldr r3, [r5, #88] ; 0x58 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 113d4: e5851050 str r1, [r5, #80] ; 0x50 <== NOT EXECUTED 113d8: e5852054 str r2, [r5, #84] ; 0x54 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 113dc: e585005c str r0, [r5, #92] ; 0x5c <== NOT EXECUTED uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 113e0: e5850058 str r0, [r5, #88] ; 0x58 <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 113e4: 1a000004 bne 113fc <== NOT EXECUTED 113e8: e1a0b001 mov fp, r1 <== NOT EXECUTED 113ec: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 113f0: e1a01002 mov r1, r2 <== NOT EXECUTED 113f4: e1a0200b mov r2, fp <== NOT EXECUTED 113f8: eaffffe2 b 11388 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 113fc: e1a00005 mov r0, r5 <== NOT EXECUTED 11400: e58dc000 str ip, [sp] <== NOT EXECUTED 11404: ebffff23 bl 11098 <== 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) 11408: e3700001 cmn r0, #1 <== NOT EXECUTED 1140c: 0affffe5 beq 113a8 <== NOT EXECUTED 11410: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 11414: eaffffd9 b 11380 <== NOT EXECUTED 00001624 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 1624: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) 1628: e3110a0f tst r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 162c: e24dd01c sub sp, sp, #28 1630: e1a05001 mov r5, r1 1634: e1a0c000 mov ip, r0 1638: e1a07002 mov r7, r2 163c: e1a08003 mov r8, r3 rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) 1640: 0a000045 beq 175c rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 1644: e5d03000 ldrb r3, [r0] 1648: e353002f cmp r3, #47 ; 0x2f 164c: 1353005c cmpne r3, #92 ; 0x5c 1650: 13a06000 movne r6, #0 1654: 03a06001 moveq r6, #1 1658: 1a00002b bne 170c 165c: e59f3128 ldr r3, [pc, #296] ; 178c 1660: e593e000 ldr lr, [r3] 1664: e28ee018 add lr, lr, #24 1668: e8be000f ldm lr!, {r0, r1, r2, r3} 166c: e28d4004 add r4, sp, #4 1670: e1a06004 mov r6, r4 1674: e8a6000f stmia r6!, {r0, r1, r2, r3} if ( !temp_loc.ops->evalformake_h ) { 1678: e59d3010 ldr r3, [sp, #16] 167c: e5933004 ldr r3, [r3, #4] int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 1680: e59e2000 ldr r2, [lr] if ( !temp_loc.ops->evalformake_h ) { 1684: e3530000 cmp r3, #0 int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 1688: e5862000 str r2, [r6] 168c: e3a06001 mov r6, #1 if ( !temp_loc.ops->evalformake_h ) { 1690: 0a00002c beq 1748 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 1694: e08c0006 add r0, ip, r6 1698: e1a01004 mov r1, r4 169c: e28d2018 add r2, sp, #24 16a0: e1a0e00f mov lr, pc 16a4: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 16a8: e3500000 cmp r0, #0 16ac: 1a000028 bne 1754 return -1; if ( !temp_loc.ops->mknod_h ) { 16b0: e59d3010 ldr r3, [sp, #16] 16b4: e593c014 ldr ip, [r3, #20] 16b8: e35c0000 cmp ip, #0 16bc: 0a00002b beq 1770 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 ); 16c0: e1a01005 mov r1, r5 16c4: e1a03008 mov r3, r8 16c8: e58d4000 str r4, [sp] 16cc: e59d0018 ldr r0, [sp, #24] 16d0: e1a02007 mov r2, r7 16d4: e1a0e00f mov lr, pc 16d8: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 16dc: e59d3010 ldr r3, [sp, #16] 16e0: e3530000 cmp r3, #0 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 ); 16e4: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 16e8: 0a000004 beq 1700 16ec: e593301c ldr r3, [r3, #28] 16f0: e3530000 cmp r3, #0 16f4: 11a00004 movne r0, r4 16f8: 11a0e00f movne lr, pc 16fc: 112fff13 bxne r3 return result; } 1700: e1a00005 mov r0, r5 1704: e28dd01c add sp, sp, #28 1708: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 170c: e3530000 cmp r3, #0 1710: 0affffd1 beq 165c 1714: e59f3070 ldr r3, [pc, #112] ; 178c 1718: e593e000 ldr lr, [r3] 171c: e28ee004 add lr, lr, #4 1720: e8be000f ldm lr!, {r0, r1, r2, r3} 1724: e28d4004 add r4, sp, #4 1728: e1a0a004 mov sl, r4 172c: e8aa000f stmia sl!, {r0, r1, r2, r3} if ( !temp_loc.ops->evalformake_h ) { 1730: e59d3010 ldr r3, [sp, #16] 1734: e5933004 ldr r3, [r3, #4] int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 1738: e59e2000 ldr r2, [lr] if ( !temp_loc.ops->evalformake_h ) { 173c: e3530000 cmp r3, #0 int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 1740: e58a2000 str r2, [sl] if ( !temp_loc.ops->evalformake_h ) { 1744: 1affffd2 bne 1694 if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 1748: eb00301c bl d7c0 <__errno> <== NOT EXECUTED 174c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1750: e5803000 str r3, [r0] <== NOT EXECUTED 1754: e3e05000 mvn r5, #0 1758: eaffffe8 b 1700 int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); 175c: eb003017 bl d7c0 <__errno> <== NOT EXECUTED 1760: e3a03016 mov r3, #22 <== NOT EXECUTED 1764: e5803000 str r3, [r0] <== NOT EXECUTED 1768: e3e05000 mvn r5, #0 <== NOT EXECUTED 176c: eaffffe3 b 1700 <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 1770: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1774: e3530000 cmp r3, #0 <== NOT EXECUTED 1778: 0afffff2 beq 1748 <== NOT EXECUTED 177c: e1a00004 mov r0, r4 <== NOT EXECUTED 1780: e1a0e00f mov lr, pc <== NOT EXECUTED 1784: e12fff13 bx r3 <== NOT EXECUTED 1788: eaffffee b 1748 <== NOT EXECUTED 178c: 00019228 .word 0x00019228 000017ac : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 17ac: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 17b0: e2516000 subs r6, r1, #0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 17b4: e24dd018 sub sp, sp, #24 17b8: e1a07000 mov r7, r0 17bc: e1a05002 mov r5, r2 17c0: e1a09003 mov r9, r3 17c4: e59da038 ldr sl, [sp, #56] ; 0x38 /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 17c8: 0a000083 beq 19dc /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 17cc: e3520001 cmp r2, #1 17d0: 8a000081 bhi 19dc errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 17d4: e5968024 ldr r8, [r6, #36] ; 0x24 17d8: e3580000 cmp r8, #0 17dc: 0a000089 beq 1a08 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 17e0: e3530000 cmp r3, #0 17e4: 03a0006c moveq r0, #108 ; 0x6c 17e8: 0a000002 beq 17f8 size += strlen( device ) + 1; 17ec: e1a00003 mov r0, r3 <== NOT EXECUTED 17f0: eb0033e3 bl e784 <== NOT EXECUTED 17f4: e280006d add r0, r0, #109 ; 0x6d <== NOT EXECUTED temp_mt_entry = malloc( size ); 17f8: eb001f8c bl 9630 if ( !temp_mt_entry ) { 17fc: e3500000 cmp r0, #0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 1800: e1a04000 mov r4, r0 1804: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { 1808: 0a000089 beq 1a34 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 180c: e3590000 cmp r9, #0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 1810: e5805030 str r5, [r0, #48] ; 0x30 if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 1814: 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; 1818: 05809068 streq r9, [r0, #104] ; 0x68 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 181c: 0a000004 beq 1834 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 1820: e280306c add r3, r0, #108 ; 0x6c <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 1824: e1a00003 mov r0, r3 <== NOT EXECUTED 1828: e1a01009 mov r1, r9 <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 182c: 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 ); 1830: eb003397 bl e694 <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 1834: e35a0000 cmp sl, #0 1838: 0a00004a beq 1968 if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 183c: e1a0000a mov r0, sl 1840: eb0033cf bl e784 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 1844: e28d5004 add r5, sp, #4 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 1848: e1a01000 mov r1, r0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 184c: e3a0c001 mov ip, #1 1850: e1a0000a mov r0, sl 1854: e3a02007 mov r2, #7 1858: e1a03005 mov r3, r5 185c: e58dc000 str ip, [sp] 1860: ebfffec3 bl 1374 1864: e3700001 cmn r0, #1 1868: 0a000069 beq 1a14 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 186c: e59d3010 ldr r3, [sp, #16] 1870: e5933010 ldr r3, [r3, #16] 1874: e3530000 cmp r3, #0 1878: 0a000069 beq 1a24 /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 187c: e1a00005 mov r0, r5 1880: e1a0e00f mov lr, pc 1884: e12fff13 bx r3 1888: e3500001 cmp r0, #1 188c: 1a000059 bne 19f8 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 1890: e59f11b0 ldr r1, [pc, #432] ; 1a48 1894: e4913004 ldr r3, [r1], #4 1898: e1530001 cmp r3, r1 189c: 0a000053 beq 19f0 !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 ) 18a0: e59d0004 ldr r0, [sp, #4] 18a4: e593201c ldr r2, [r3, #28] 18a8: e1520000 cmp r2, r0 18ac: 1a000003 bne 18c0 18b0: ea000022 b 1940 <== NOT EXECUTED 18b4: e593201c ldr r2, [r3, #28] 18b8: e1520000 cmp r2, r0 18bc: 0a00001f beq 1940 * 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 ) { 18c0: e5933000 ldr r3, [r3] /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 18c4: e1530001 cmp r3, r1 18c8: 1afffff9 bne 18b4 * 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; 18cc: e28d100c add r1, sp, #12 18d0: e8910006 ldm r1, {r1, r2} /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 18d4: e5923020 ldr r3, [r2, #32] * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; 18d8: 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; 18dc: 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 ){ 18e0: e3530000 cmp r3, #0 * may have been allocated in loc should not be sent to freenode * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; 18e4: e5840008 str r0, [r4, #8] temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 18e8: e5841018 str r1, [r4, #24] * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 18ec: e5842014 str r2, [r4, #20] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 18f0: 0a00004b beq 1a24 errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 18f4: e1a00004 mov r0, r4 18f8: e1a0e00f mov lr, pc 18fc: e12fff13 bx r3 1900: e3500000 cmp r0, #0 1904: 1a000010 bne 194c temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 1908: e1a00004 mov r0, r4 190c: e1a0e00f mov lr, pc 1910: e596f024 ldr pc, [r6, #36] ; 0x24 1914: e2506000 subs r6, r0, #0 1918: 1a00001b bne 198c RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 191c: e59f0124 ldr r0, [pc, #292] ; 1a48 1920: e1a01004 mov r1, r4 1924: eb000df9 bl 5110 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 1928: e3570000 cmp r7, #0 *mt_entry = temp_mt_entry; 192c: 15874000 strne r4, [r7] */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 1930: 01a00007 moveq r0, r7 *mt_entry = temp_mt_entry; 1934: 11a00006 movne r0, r6 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 1938: e28dd018 add sp, sp, #24 193c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 1940: eb002f9e bl d7c0 <__errno> 1944: e3a03010 mov r3, #16 1948: e5803000 str r3, [r0] return 0; cleanup_and_bail: free( temp_mt_entry ); 194c: e1a00004 mov r0, r4 1950: eb001dd6 bl 90b0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 1954: e595300c ldr r3, [r5, #12] 1958: e3530000 cmp r3, #0 195c: 1a000016 bne 19bc 1960: e3e00000 mvn r0, #0 <== NOT EXECUTED 1964: eafffff3 b 1938 <== 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; 1968: e584a01c str sl, [r4, #28] temp_mt_entry->mt_fs_root.handlers = NULL; 196c: e584a024 str sl, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = NULL; 1970: e584a028 str sl, [r4, #40] ; 0x28 temp_mt_entry->mt_point_node.node_access = NULL; 1974: e584a008 str sl, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 1978: e584a010 str sl, [r4, #16] temp_mt_entry->mt_point_node.ops = NULL; 197c: e584a014 str sl, [r4, #20] temp_mt_entry->mt_point_node.mt_entry = NULL; 1980: e584a018 str sl, [r4, #24] 1984: e1a0500a mov r5, sl 1988: eaffffde b 1908 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 198c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 1990: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED 1994: e3530000 cmp r3, #0 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 1998: 11a00004 movne r0, r4 <== NOT EXECUTED 199c: 11a0e00f movne lr, pc <== NOT EXECUTED 19a0: 112fff13 bxne r3 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 19a4: e1a00004 mov r0, r4 <== NOT EXECUTED 19a8: eb001dc0 bl 90b0 <== NOT EXECUTED if ( loc_to_free ) 19ac: e3550000 cmp r5, #0 <== NOT EXECUTED 19b0: 1affffe7 bne 1954 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 19b4: e3e00000 mvn r0, #0 <== NOT EXECUTED 19b8: eaffffde b 1938 <== NOT EXECUTED 19bc: e593301c ldr r3, [r3, #28] 19c0: e3530000 cmp r3, #0 19c4: 0affffe5 beq 1960 19c8: e1a00005 mov r0, r5 19cc: e1a0e00f mov lr, pc 19d0: e12fff13 bx r3 19d4: e3e00000 mvn r0, #0 19d8: eaffffd6 b 1938 * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 19dc: eb002f77 bl d7c0 <__errno> 19e0: e3a03016 mov r3, #22 19e4: e5803000 str r3, [r0] 19e8: e3e00000 mvn r0, #0 return -1; 19ec: eaffffd1 b 1938 cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 19f0: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED 19f4: eaffffb4 b 18cc <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 19f8: eb002f70 bl d7c0 <__errno> 19fc: e3a03014 mov r3, #20 1a00: e5803000 str r3, [r0] goto cleanup_and_bail; 1a04: eaffffd0 b 194c return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 1a08: eb002f6c bl d7c0 <__errno> <== NOT EXECUTED 1a0c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1a10: e5803000 str r3, [r0] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 1a14: e1a00008 mov r0, r8 <== NOT EXECUTED 1a18: eb001da4 bl 90b0 <== NOT EXECUTED 1a1c: e3e00000 mvn r0, #0 <== NOT EXECUTED 1a20: eaffffc4 b 1938 <== NOT EXECUTED * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ errno = ENOTSUP; 1a24: eb002f65 bl d7c0 <__errno> <== NOT EXECUTED 1a28: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1a2c: e5803000 str r3, [r0] <== NOT EXECUTED goto cleanup_and_bail; 1a30: eaffffc5 b 194c <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 1a34: eb002f61 bl d7c0 <__errno> <== NOT EXECUTED 1a38: e3a0300c mov r3, #12 <== NOT EXECUTED 1a3c: e5803000 str r3, [r0] <== NOT EXECUTED 1a40: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 1a44: eaffffbb b 1938 <== NOT EXECUTED 1a48: 0001a91c .word 0x0001a91c 00001abc : */ int newlib_free_buffers( FILE *fp ) { 1abc: e92d4010 push {r4, lr} 1ac0: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 1ac4: eb00303c bl dbbc 1ac8: e3500002 cmp r0, #2 1acc: 9a000003 bls 1ae0 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 1ad0: e1a00004 mov r0, r4 <== NOT EXECUTED 1ad4: eb002f86 bl d8f4 <== NOT EXECUTED } return 0; } 1ad8: e3a00000 mov r0, #0 1adc: e8bd8010 pop {r4, pc} { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 1ae0: e1d430bc ldrh r3, [r4, #12] 1ae4: e3130080 tst r3, #128 ; 0x80 1ae8: 0afffffa beq 1ad8 free( fp->_bf._base ); 1aec: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 1af0: eb001d6e bl 90b0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 1af4: e1d420bc ldrh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 1af8: e3a03000 mov r3, #0 <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 1afc: e3c22080 bic r2, r2, #128 ; 0x80 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 1b00: e5843010 str r3, [r4, #16] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 1b04: e1c420bc strh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 1b08: e5843000 str r3, [r4] <== NOT EXECUTED break; default: fclose(fp); } return 0; } 1b0c: e3a00000 mov r0, #0 <== NOT EXECUTED 1b10: e8bd8010 pop {r4, pc} <== NOT EXECUTED 00001df0 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 1df0: e92d4010 push {r4, lr} rtems_device_driver status; if ( !initialized ) { 1df4: e59f3044 ldr r3, [pc, #68] ; 1e40 1df8: e5d32000 ldrb r2, [r3] 1dfc: e3520000 cmp r2, #0 rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 1e00: e1a04000 mov r4, r0 rtems_device_driver status; if ( !initialized ) { 1e04: 0a000001 beq 1e10 NULL_major = major; } return RTEMS_SUCCESSFUL; } 1e08: e3a00000 mov r0, #0 1e0c: e8bd8010 pop {r4, pc} ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 1e10: e3a0c001 mov ip, #1 status = rtems_io_register_name( 1e14: e59f0028 ldr r0, [pc, #40] ; 1e44 1e18: e1a01004 mov r1, r4 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 1e1c: e5c3c000 strb ip, [r3] status = rtems_io_register_name( 1e20: eb000051 bl 1f6c "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 1e24: e3500000 cmp r0, #0 1e28: 1a000003 bne 1e3c rtems_fatal_error_occurred(status); NULL_major = major; 1e2c: e59f3014 ldr r3, [pc, #20] ; 1e48 } return RTEMS_SUCCESSFUL; } 1e30: e3a00000 mov r0, #0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); NULL_major = major; 1e34: e5834000 str r4, [r3] } return RTEMS_SUCCESSFUL; } 1e38: e8bd8010 pop {r4, pc} major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 1e3c: eb00104a bl 5f6c <== NOT EXECUTED 1e40: 0001f86c .word 0x0001f86c 1e44: 0001e958 .word 0x0001e958 1e48: 0001fa20 .word 0x0001fa20 00001d54 : int open( const char *pathname, int flags, ... ) { 1d54: e92d000e push {r1, r2, r3} 1d58: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 1d5c: e24dd01c sub sp, sp, #28 1d60: e59d503c ldr r5, [sp, #60] ; 0x3c /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 1d64: e2853001 add r3, r5, #1 if ( ( status & _FREAD ) == _FREAD ) 1d68: e2138001 ands r8, r3, #1 1d6c: 13a08004 movne r8, #4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 1d70: e3130002 tst r3, #2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); 1d74: e28d3044 add r3, sp, #68 ; 0x44 int open( const char *pathname, int flags, ... ) { 1d78: e1a06000 mov r6, r0 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; 1d7c: 13888002 orrne r8, r8, #2 va_start(ap, flags); mode = va_arg( ap, int ); 1d80: e58d3018 str r3, [sp, #24] 1d84: e59da040 ldr sl, [sp, #64] ; 0x40 * code does not require changes here since network file * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); 1d88: eb001dcd bl 94c4 if ( iop == 0 ) { 1d8c: e2504000 subs r4, r0, #0 1d90: 03a06017 moveq r6, #23 1d94: 0a00005d beq 1f10 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 1d98: e1a00006 mov r0, r6 1d9c: eb003278 bl e784 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 1da0: e28d7004 add r7, sp, #4 pathname, strlen( pathname ), eval_flags, &loc, true ); 1da4: e1a01000 mov r1, r0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 1da8: e1a02008 mov r2, r8 1dac: e1a00006 mov r0, r6 1db0: e3a08001 mov r8, #1 1db4: e1a03007 mov r3, r7 1db8: e58d8000 str r8, [sp] 1dbc: ebfffd6c bl 1374 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 1dc0: e3700001 cmn r0, #1 1dc4: 0a000055 beq 1f20 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 1dc8: e2053c0a and r3, r5, #2560 ; 0xa00 1dcc: e3530c0a cmp r3, #2560 ; 0xa00 1dd0: 03a06011 moveq r6, #17 1dd4: 0a000040 beq 1edc /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 1dd8: e59d300c ldr r3, [sp, #12] 1ddc: e584303c str r3, [r4, #60] ; 0x3c iop->file_info = loc.node_access; 1de0: e59d3004 ldr r3, [sp, #4] iop->flags |= rtems_libio_fcntl_flags( flags ); 1de4: e1a00005 mov r0, r5 * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; 1de8: e5843038 str r3, [r4, #56] ; 0x38 iop->flags |= rtems_libio_fcntl_flags( flags ); 1dec: e5948014 ldr r8, [r4, #20] 1df0: eb001de1 bl 957c iop->pathinfo = loc; 1df4: e1a0e007 mov lr, r7 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1df8: e1808008 orr r8, r0, r8 iop->pathinfo = loc; 1dfc: e8be000f ldm lr!, {r0, r1, r2, r3} 1e00: e284c018 add ip, r4, #24 1e04: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !iop->handlers || !iop->handlers->open_h ) { 1e08: 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; 1e0c: e59e2000 ldr r2, [lr] if ( !iop->handlers || !iop->handlers->open_h ) { 1e10: e3530000 cmp r3, #0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 1e14: e58c2000 str r2, [ip] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1e18: e5848014 str r8, [r4, #20] iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { 1e1c: 0a00002d beq 1ed8 1e20: e593c000 ldr ip, [r3] 1e24: e35c0000 cmp ip, #0 1e28: 0a00002a beq 1ed8 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 1e2c: e1a01006 mov r1, r6 1e30: e1a0300a mov r3, sl 1e34: e1a00004 mov r0, r4 1e38: e1a02005 mov r2, r5 1e3c: e1a0e00f mov lr, pc 1e40: e12fff1c bx ip if ( rc ) { 1e44: e3500000 cmp r0, #0 1e48: 1a000009 bne 1e74 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 1e4c: e3150b01 tst r5, #1024 ; 0x400 1e50: 1a00000c bne 1e88 1e54: e59f5150 ldr r5, [pc, #336] ; 1fac if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 1e58: e5950000 ldr r0, [r5] 1e5c: e0604004 rsb r4, r0, r4 1e60: e1a00344 asr r0, r4, #6 } 1e64: e28dd01c add sp, sp, #28 1e68: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} 1e6c: e28dd00c add sp, sp, #12 1e70: e12fff1e bx lr goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 1e74: eb002e51 bl d7c0 <__errno> 1e78: e5906000 ldr r6, [r0] */ done: va_end(ap); if ( rc ) { 1e7c: e3560000 cmp r6, #0 1e80: 0afffff3 beq 1e54 1e84: ea000014 b 1edc /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 1e88: e59f511c ldr r5, [pc, #284] ; 1fac 1e8c: e5950000 ldr r0, [r5] 1e90: e0600004 rsb r0, r0, r4 1e94: e1a00340 asr r0, r0, #6 1e98: e3a01000 mov r1, #0 1e9c: e3a02000 mov r2, #0 1ea0: eb001cab bl 9154 if ( rc ) { 1ea4: e2506000 subs r6, r0, #0 1ea8: 0affffea beq 1e58 if(errno) rc = errno; 1eac: eb002e43 bl d7c0 <__errno> <== NOT EXECUTED 1eb0: e5903000 ldr r3, [r0] <== NOT EXECUTED 1eb4: e3530000 cmp r3, #0 <== NOT EXECUTED 1eb8: 1a000038 bne 1fa0 <== NOT EXECUTED close( iop - rtems_libio_iops ); 1ebc: e5950000 ldr r0, [r5] <== NOT EXECUTED 1ec0: e0600004 rsb r0, r0, r4 <== NOT EXECUTED 1ec4: e1a00340 asr r0, r0, #6 <== NOT EXECUTED 1ec8: e3a04000 mov r4, #0 <== NOT EXECUTED 1ecc: eb001c4e bl 900c <== NOT EXECUTED 1ed0: e1a07004 mov r7, r4 <== NOT EXECUTED 1ed4: eaffffe8 b 1e7c <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 1ed8: e3a06086 mov r6, #134 ; 0x86 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 1edc: e3540000 cmp r4, #0 rtems_libio_free( iop ); 1ee0: 11a00004 movne r0, r4 1ee4: 1b001d60 blne 946c if ( loc_to_free ) 1ee8: e3570000 cmp r7, #0 1eec: 0a000007 beq 1f10 rtems_filesystem_freenode( loc_to_free ); 1ef0: e597300c ldr r3, [r7, #12] 1ef4: e3530000 cmp r3, #0 1ef8: 0a000004 beq 1f10 1efc: e593301c ldr r3, [r3, #28] 1f00: e3530000 cmp r3, #0 1f04: 11a00007 movne r0, r7 1f08: 11a0e00f movne lr, pc 1f0c: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( rc ); 1f10: eb002e2a bl d7c0 <__errno> 1f14: e5806000 str r6, [r0] 1f18: e3e00000 mvn r0, #0 1f1c: eaffffd0 b 1e64 status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 1f20: eb002e26 bl d7c0 <__errno> 1f24: e5903000 ldr r3, [r0] 1f28: e3530002 cmp r3, #2 1f2c: 0a000003 beq 1f40 } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 1f30: eb002e22 bl d7c0 <__errno> 1f34: e3a07000 mov r7, #0 1f38: e5906000 ldr r6, [r0] goto done; 1f3c: eaffffce b 1e7c rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 1f40: e2159c02 ands r9, r5, #512 ; 0x200 1f44: 01a07009 moveq r7, r9 1f48: 01a06003 moveq r6, r3 1f4c: 0affffe2 beq 1edc rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 1f50: e1a00006 mov r0, r6 1f54: e38a1902 orr r1, sl, #32768 ; 0x8000 1f58: e3a02000 mov r2, #0 1f5c: e3a03000 mov r3, #0 1f60: ebfffdaf bl 1624 if ( rc ) { 1f64: e2509000 subs r9, r0, #0 1f68: 1afffff0 bne 1f30 rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); 1f6c: e1a00006 mov r0, r6 1f70: eb003203 bl e784 1f74: e1a03007 mov r3, r7 1f78: e1a01000 mov r1, r0 1f7c: e1a02009 mov r2, r9 1f80: e1a00006 mov r0, r6 1f84: e58d8000 str r8, [sp] 1f88: ebfffcf9 bl 1374 if ( status != 0 ) { /* The file did not exist */ 1f8c: e3500000 cmp r0, #0 1f90: 11a07009 movne r7, r9 1f94: 13a0600d movne r6, #13 1f98: 1affffcf bne 1edc 1f9c: eaffff8d b 1dd8 */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 1fa0: eb002e06 bl d7c0 <__errno> <== NOT EXECUTED 1fa4: e5906000 ldr r6, [r0] <== NOT EXECUTED 1fa8: eaffffc3 b 1ebc <== NOT EXECUTED 1fac: 0001a8e4 .word 0x0001a8e4 00001cec : int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 1cec: e3a01000 mov r1, #0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 1cf0: 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) { 1cf4: e59f004c ldr r0, [pc, #76] ; 1d48 1cf8: e1a02001 mov r2, r1 1cfc: eb000014 bl 1d54 1d00: e3700001 cmn r0, #1 1d04: 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) 1d08: e59f0038 ldr r0, [pc, #56] ; 1d48 1d0c: e3a01001 mov r1, #1 1d10: e3a02000 mov r2, #0 1d14: eb00000e bl 1d54 1d18: e3700001 cmn r0, #1 1d1c: 0a000007 beq 1d40 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 1d20: e59f0020 ldr r0, [pc, #32] ; 1d48 1d24: e3a01001 mov r1, #1 1d28: e3a02000 mov r2, #0 1d2c: eb000008 bl 1d54 1d30: e3700001 cmn r0, #1 1d34: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 1d38: e59f000c ldr r0, [pc, #12] ; 1d4c <== NOT EXECUTED 1d3c: eb000c2a bl 4dec <== NOT EXECUTED /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 1d40: e59f0008 ldr r0, [pc, #8] ; 1d50 <== NOT EXECUTED 1d44: eb000c28 bl 4dec <== NOT EXECUTED 1d48: 0001a194 .word 0x0001a194 1d4c: 55544432 .word 0x55544432 1d50: 55544431 .word 0x55544431 000026f4 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 26f4: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 26f8: e5913034 ldr r3, [r1, #52] ; 0x34 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 26fc: e24dd004 sub sp, sp, #4 int i; if (tty->termios.c_oflag & OPOST) { 2700: e3130001 tst r3, #1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 2704: e1a04001 mov r4, r1 2708: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 270c: 0a000014 beq 2764 switch (c) { 2710: e5dd1000 ldrb r1, [sp] 2714: e2412008 sub r2, r1, #8 2718: e3520005 cmp r2, #5 271c: 979ff102 ldrls pc, [pc, r2, lsl #2] 2720: ea000005 b 273c 2724: 000027d4 .word 0x000027d4 <== NOT EXECUTED 2728: 000027b0 .word 0x000027b0 <== NOT EXECUTED 272c: 000027e8 .word 0x000027e8 <== NOT EXECUTED 2730: 0000273c .word 0x0000273c <== NOT EXECUTED 2734: 0000273c .word 0x0000273c <== NOT EXECUTED 2738: 0000277c .word 0x0000277c <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 273c: e3130002 tst r3, #2 2740: 1a000034 bne 2818 2744: e59f310c ldr r3, [pc, #268] ; 2858 2748: e5933000 ldr r3, [r3] c = toupper(c); if (!iscntrl(c)) 274c: e0831001 add r1, r3, r1 2750: e5d13001 ldrb r3, [r1, #1] 2754: e3130020 tst r3, #32 tty->column++; 2758: 05943028 ldreq r3, [r4, #40] ; 0x28 275c: 02833001 addeq r3, r3, #1 2760: 05843028 streq r3, [r4, #40] ; 0x28 break; } } rtems_termios_puts (&c, 1, tty); 2764: e1a02004 mov r2, r4 2768: e1a0000d mov r0, sp 276c: e3a01001 mov r1, #1 2770: ebffff97 bl 25d4 } 2774: e28dd004 add sp, sp, #4 2778: e8bd8010 pop {r4, pc} tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 277c: e3130010 tst r3, #16 <== NOT EXECUTED 2780: 0a000002 beq 2790 <== NOT EXECUTED 2784: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED 2788: e3520000 cmp r2, #0 <== NOT EXECUTED 278c: 0afffff8 beq 2774 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 2790: e2132008 ands r2, r3, #8 <== NOT EXECUTED 2794: 0a00000c beq 27cc <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) 2798: 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'; 279c: e3a0300a mov r3, #10 <== NOT EXECUTED 27a0: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) tty->column = 0; 27a4: 13a03000 movne r3, #0 <== NOT EXECUTED 27a8: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED 27ac: eaffffec b 2764 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 27b0: e5942028 ldr r2, [r4, #40] ; 0x28 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 27b4: e2033b06 and r3, r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 27b8: e2021007 and r1, r2, #7 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 27bc: e3530b06 cmp r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 27c0: e2611008 rsb r1, r1, #8 if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 27c4: 10812002 addne r2, r1, r2 tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 27c8: 0a00001c beq 2840 tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 27cc: e5842028 str r2, [r4, #40] ; 0x28 <== NOT EXECUTED break; 27d0: eaffffe3 b 2764 <== NOT EXECUTED case '\b': if (tty->column > 0) 27d4: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 27d8: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 27dc: c2433001 subgt r3, r3, #1 <== NOT EXECUTED 27e0: c5843028 strgt r3, [r4, #40] ; 0x28 <== NOT EXECUTED 27e4: eaffffde b 2764 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 27e8: e3130020 tst r3, #32 tty->column = 0; 27ec: 13a02000 movne r2, #0 27f0: 15842028 strne r2, [r4, #40] ; 0x28 if (tty->termios.c_oflag & ONLCR) { 27f4: e3130004 tst r3, #4 27f8: 0affffd9 beq 2764 rtems_termios_puts ("\r", 1, tty); 27fc: e59f0058 ldr r0, [pc, #88] ; 285c 2800: e3a01001 mov r1, #1 2804: e1a02004 mov r2, r4 2808: ebffff71 bl 25d4 tty->column = 0; 280c: e3a03000 mov r3, #0 2810: e5843028 str r3, [r4, #40] ; 0x28 2814: eaffffd2 b 2764 tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 2818: e59f3038 ldr r3, [pc, #56] ; 2858 <== NOT EXECUTED 281c: e5933000 ldr r3, [r3] <== NOT EXECUTED 2820: e0832001 add r2, r3, r1 <== NOT EXECUTED 2824: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 2828: e2022003 and r2, r2, #3 <== NOT EXECUTED 282c: e3520002 cmp r2, #2 <== NOT EXECUTED 2830: 02411020 subeq r1, r1, #32 <== NOT EXECUTED 2834: e20110ff and r1, r1, #255 ; 0xff <== NOT EXECUTED 2838: e5cd1000 strb r1, [sp] <== NOT EXECUTED 283c: eaffffc2 b 274c <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 2840: e0812002 add r2, r1, r2 2844: e5842028 str r2, [r4, #40] ; 0x28 rtems_termios_puts ( " ", i, tty); 2848: e59f0010 ldr r0, [pc, #16] ; 2860 284c: e1a02004 mov r2, r4 2850: ebffff5f bl 25d4 return; 2854: eaffffc6 b 2774 2858: 000192d0 .word 0x000192d0 285c: 0001a2b4 .word 0x0001a2b4 2860: 0001a1e4 .word 0x0001a1e4 0000cca8 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { cca8: e92d4070 push {r4, r5, r6, lr} ccac: 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) ccb0: e28d4004 add r4, sp, #4 ccb4: e3a0c001 mov ip, #1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ccb8: e1a05000 mov r5, r0 rtems_filesystem_location_info_t loc; rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) ccbc: e3a01003 mov r1, #3 ccc0: e59f0154 ldr r0, [pc, #340] ; ce1c ccc4: e3a02007 mov r2, #7 ccc8: e1a03004 mov r3, r4 cccc: e58dc000 str ip, [sp] ccd0: ebffd1a7 bl 1374 ccd4: e3500000 cmp r0, #0 ccd8: 1a00003a bne cdc8 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); ccdc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED cce0: e3530000 cmp r3, #0 <== NOT EXECUTED cce4: 0a000004 beq ccfc <== NOT EXECUTED cce8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED ccec: e3530000 cmp r3, #0 <== NOT EXECUTED ccf0: 11a00004 movne r0, r4 <== NOT EXECUTED ccf4: 11a0e00f movne lr, pc <== NOT EXECUTED ccf8: 112fff13 bxne r3 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ccfc: e59f311c ldr r3, [pc, #284] ; ce20 cd00: e28d4018 add r4, sp, #24 cd04: e8930007 ldm r3, {r0, r1, r2} cd08: e1a0c004 mov ip, r4 cd0c: e8ac0003 stmia ip!, {r0, r1} sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); cd10: e59f310c ldr r3, [pc, #268] ; ce24 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); cd14: e1a0100c mov r1, ip sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); cd18: e1d3c0b0 ldrh ip, [r3] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); cd1c: e1c120b0 strh r2, [r1] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); cd20: e1a0200c mov r2, ip cd24: e28cc001 add ip, ip, #1 cd28: e59f10f8 ldr r1, [pc, #248] ; ce28 cd2c: e1c3c0b0 strh ip, [r3] cd30: e284000a add r0, r4, #10 cd34: eb000555 bl e290 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { cd38: e1a00004 mov r0, r4 cd3c: e3a01d06 mov r1, #384 ; 0x180 cd40: eb00004b bl ce74 cd44: e2506000 subs r6, r0, #0 cd48: 1a00001c bne cdc0 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); cd4c: e1a00004 mov r0, r4 cd50: e3a01901 mov r1, #16384 ; 0x4000 cd54: ebffd3fe bl 1d54 if (filsdes[0] < 0) { cd58: 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); cd5c: e5850000 str r0, [r5] if (filsdes[0] < 0) { cd60: ba000023 blt cdf4 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]); cd64: e59f30c0 ldr r3, [pc, #192] ; ce2c <== NOT EXECUTED cd68: e5933000 ldr r3, [r3] <== NOT EXECUTED cd6c: e1500003 cmp r0, r3 <== NOT EXECUTED cd70: 359f30b8 ldrcc r3, [pc, #184] ; ce30 <== NOT EXECUTED cd74: 35936000 ldrcc r6, [r3] <== NOT EXECUTED cd78: 30866300 addcc r6, r6, r0, lsl #6 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; cd7c: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED cd80: e3c33001 bic r3, r3, #1 <== NOT EXECUTED cd84: e5863014 str r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); cd88: e1a00004 mov r0, r4 <== NOT EXECUTED cd8c: e3a01001 mov r1, #1 <== NOT EXECUTED cd90: ebffd3ef bl 1d54 <== NOT EXECUTED if (filsdes[1] < 0) { cd94: 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); cd98: e5850004 str r0, [r5, #4] <== NOT EXECUTED if (filsdes[1] < 0) { cd9c: a3a06000 movge r6, #0 <== NOT EXECUTED cda0: ba000018 blt ce08 <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); cda4: e1a00004 mov r0, r4 <== NOT EXECUTED cda8: eb000035 bl ce84 <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); cdac: eb000283 bl d7c0 <__errno> cdb0: e5806000 str r6, [r0] } cdb4: e3e00000 mvn r0, #0 cdb8: e28dd028 add sp, sp, #40 ; 0x28 cdbc: e8bd8070 pop {r4, r5, r6, pc} memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { if (errno != EEXIST){ cdc0: eb00027e bl d7c0 <__errno> <== NOT EXECUTED cdc4: eafffffa b cdb4 <== NOT EXECUTED rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) != 0) { if (errno != ENOENT) cdc8: eb00027c bl d7c0 <__errno> cdcc: e5903000 ldr r3, [r0] cdd0: e3530002 cmp r3, #2 cdd4: 1afffff6 bne cdb4 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) cdd8: e3a01fff mov r1, #1020 ; 0x3fc cddc: e2811003 add r1, r1, #3 cde0: e59f0034 ldr r0, [pc, #52] ; ce1c cde4: ebffd20a bl 1614 cde8: e3500000 cmp r0, #0 cdec: 0affffc2 beq ccfc cdf0: eaffffef b cdb4 <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; cdf4: eb000271 bl d7c0 <__errno> cdf8: 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); cdfc: e1a00004 mov r0, r4 ce00: eb00001f bl ce84 ce04: eaffffe8 b cdac iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; ce08: eb00026c bl d7c0 <__errno> <== NOT EXECUTED ce0c: e5906000 ldr r6, [r0] <== NOT EXECUTED close(filsdes[0]); ce10: e5950000 ldr r0, [r5] <== NOT EXECUTED ce14: ebfff07c bl 900c <== NOT EXECUTED ce18: eaffffe1 b cda4 <== NOT EXECUTED ce1c: 0001a490 .word 0x0001a490 ce20: 0001a498 .word 0x0001a498 ce24: 0001a866 .word 0x0001a866 ce28: 0001a4a4 .word 0x0001a4a4 ce2c: 00019090 .word 0x00019090 ce30: 0001a8e4 .word 0x0001a8e4 0000b428 : uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { b428: e3a03a46 mov r3, #286720 ; 0x46000 <== NOT EXECUTED b42c: e2833e67 add r3, r3, #1648 ; 0x670 <== NOT EXECUTED b430: e283313d add r3, r3, #1073741839 ; 0x4000000f <== NOT EXECUTED b434: e1510003 cmp r1, r3 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { b438: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED b43c: e1a05000 mov r5, r0 <== NOT EXECUTED b440: e1a04002 mov r4, r2 <== NOT EXECUTED if (cmd == FIONREAD) { b444: 13e00015 mvnne r0, #21 <== NOT EXECUTED b448: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED if (buffer == NULL) b44c: e3520000 cmp r2, #0 <== NOT EXECUTED b450: 03e0000d mvneq r0, #13 <== NOT EXECUTED b454: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) b458: e3a01000 mov r1, #0 <== NOT EXECUTED b45c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED b460: e1a02001 mov r2, r1 <== NOT EXECUTED b464: ebffe4c0 bl 476c <== NOT EXECUTED b468: e2506000 subs r6, r0, #0 <== NOT EXECUTED b46c: 13e00003 mvnne r0, #3 <== NOT EXECUTED b470: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; b474: e595300c ldr r3, [r5, #12] <== NOT EXECUTED PIPE_UNLOCK(pipe); b478: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; b47c: e5843000 str r3, [r4] <== NOT EXECUTED PIPE_UNLOCK(pipe); b480: ebffe501 bl 488c <== NOT EXECUTED b484: e1a00006 mov r0, r6 <== NOT EXECUTED return 0; } return -EINVAL; } b488: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0000b3b0 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } b3b0: e3e0001c mvn r0, #28 <== NOT EXECUTED b3b4: e12fff1e bx lr <== NOT EXECUTED 0000b48c : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { b48c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED b490: e1a09001 mov r9, r1 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) b494: e3a01000 mov r1, #0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { b498: e24dd008 sub sp, sp, #8 <== NOT EXECUTED b49c: e1a04000 mov r4, r0 <== NOT EXECUTED b4a0: e1a05002 mov r5, r2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) b4a4: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED b4a8: e1a02001 mov r2, r1 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { b4ac: e1a08003 mov r8, r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) b4b0: ebffe4ad bl 476c <== NOT EXECUTED b4b4: e250a000 subs sl, r0, #0 <== NOT EXECUTED b4b8: 13e07003 mvnne r7, #3 <== NOT EXECUTED b4bc: 1a000027 bne b560 <== NOT EXECUTED return -EINTR; while (read < count) { b4c0: e3550000 cmp r5, #0 <== NOT EXECUTED b4c4: 01a07005 moveq r7, r5 <== NOT EXECUTED b4c8: 01a06007 moveq r6, r7 <== NOT EXECUTED b4cc: 0a00001f beq b550 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) b4d0: e1a0700a mov r7, sl <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); b4d4: e28db004 add fp, sp, #4 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { b4d8: e594200c ldr r2, [r4, #12] <== NOT EXECUTED b4dc: e3520000 cmp r2, #0 <== NOT EXECUTED b4e0: 1a000021 bne b56c <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) b4e4: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED b4e8: e3530000 cmp r3, #0 <== NOT EXECUTED b4ec: 0a00003d beq b5e8 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { b4f0: e5986014 ldr r6, [r8, #20] <== NOT EXECUTED b4f4: e2166001 ands r6, r6, #1 <== NOT EXECUTED b4f8: 1a00003c bne b5f0 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; b4fc: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED b500: e2833001 add r3, r3, #1 <== NOT EXECUTED b504: e5843018 str r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); b508: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED b50c: ebffe4de bl 488c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) b510: e1a01006 mov r1, r6 <== NOT EXECUTED b514: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED b518: eb000468 bl c6c0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { b51c: e1a01006 mov r1, r6 <== NOT EXECUTED b520: 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)) b524: e2506000 subs r6, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { b528: 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)) b52c: 13e06003 mvnne r6, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { b530: ebffe48d bl 476c <== NOT EXECUTED b534: e3500000 cmp r0, #0 <== NOT EXECUTED b538: 1a00002e bne b5f8 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; b53c: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if (ret != 0) b540: e3560000 cmp r6, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; b544: e2433001 sub r3, r3, #1 <== NOT EXECUTED b548: e5843018 str r3, [r4, #24] <== NOT EXECUTED if (ret != 0) b54c: 0affffe1 beq b4d8 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); b550: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED b554: ebffe4cc bl 488c <== NOT EXECUTED out_nolock: if (read > 0) b558: e3570000 cmp r7, #0 <== NOT EXECUTED b55c: d1a07006 movle r7, r6 <== NOT EXECUTED return read; return ret; } b560: e1a00007 mov r0, r7 <== NOT EXECUTED b564: e28dd008 add sp, sp, #8 <== NOT EXECUTED b568: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; b56c: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED b570: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); b574: e06a6005 rsb r6, sl, r5 <== NOT EXECUTED b578: e1520006 cmp r2, r6 <== NOT EXECUTED b57c: 31a06002 movcc r6, r2 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; b580: e0613003 rsb r3, r1, r3 <== NOT EXECUTED if (chunk > chunk1) { b584: e1560003 cmp r6, r3 <== NOT EXECUTED b588: ca00001c bgt b600 <== 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); b58c: e5943000 ldr r3, [r4] <== NOT EXECUTED b590: e089000a add r0, r9, sl <== NOT EXECUTED b594: e0831001 add r1, r3, r1 <== NOT EXECUTED b598: e1a02006 mov r2, r6 <== NOT EXECUTED b59c: eb000a95 bl dff8 <== NOT EXECUTED pipe->Start += chunk; b5a0: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED b5a4: e0860000 add r0, r6, r0 <== NOT EXECUTED b5a8: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; b5ac: e5941004 ldr r1, [r4, #4] <== NOT EXECUTED b5b0: eb002e39 bl 16e9c <__umodsi3> <== NOT EXECUTED pipe->Length -= chunk; b5b4: e594300c ldr r3, [r4, #12] <== NOT EXECUTED b5b8: e0663003 rsb r3, r6, r3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) b5bc: e3530000 cmp r3, #0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; b5c0: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Length -= chunk; b5c4: e584300c str r3, [r4, #12] <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; b5c8: 05843008 streq r3, [r4, #8] <== NOT EXECUTED if (pipe->waitingWriters > 0) b5cc: e594301c ldr r3, [r4, #28] <== NOT EXECUTED b5d0: e3530000 cmp r3, #0 <== NOT EXECUTED b5d4: 1a000016 bne b634 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; b5d8: e0877006 add r7, r7, r6 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { b5dc: e1570005 cmp r7, r5 <== NOT EXECUTED b5e0: e1a0a007 mov sl, r7 <== NOT EXECUTED b5e4: 3affffbb bcc b4d8 <== NOT EXECUTED b5e8: e3a06000 mov r6, #0 <== NOT EXECUTED b5ec: eaffffd7 b b550 <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { b5f0: e3e0600a mvn r6, #10 <== NOT EXECUTED b5f4: eaffffd5 b b550 <== NOT EXECUTED /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { b5f8: e3e06003 mvn r6, #3 <== NOT EXECUTED b5fc: eaffffd5 b b558 <== NOT EXECUTED /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); b600: e5942000 ldr r2, [r4] <== NOT EXECUTED b604: e089000a add r0, r9, sl <== NOT EXECUTED b608: e0821001 add r1, r2, r1 <== NOT EXECUTED b60c: e1a02003 mov r2, r3 <== NOT EXECUTED b610: e58d3000 str r3, [sp] <== NOT EXECUTED b614: eb000a77 bl dff8 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); b618: e59d3000 ldr r3, [sp] <== NOT EXECUTED b61c: e08a0003 add r0, sl, r3 <== NOT EXECUTED b620: e0890000 add r0, r9, r0 <== NOT EXECUTED b624: e0632006 rsb r2, r3, r6 <== NOT EXECUTED b628: e5941000 ldr r1, [r4] <== NOT EXECUTED b62c: eb000a71 bl dff8 <== NOT EXECUTED b630: eaffffda b b5a0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); b634: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED b638: e1a0100b mov r1, fp <== NOT EXECUTED b63c: eb000406 bl c65c <== NOT EXECUTED b640: eaffffe4 b b5d8 <== NOT EXECUTED 0000b85c : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { b85c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED pipe_control_t *pipe = *pipep; b860: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { b864: e1a05001 mov r5, r1 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, b868: e3a01000 mov r1, #0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { b86c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED b870: e1a07000 mov r7, r0 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, b874: e1a02001 mov r2, r1 <== NOT EXECUTED b878: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED b87c: ebffe3ba bl 476c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) b880: e3500000 cmp r0, #0 <== NOT EXECUTED b884: 1a000038 bne b96c <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); b888: e5956014 ldr r6, [r5, #20] <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) b88c: e3160002 tst r6, #2 <== NOT EXECUTED pipe->Readers --; b890: 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); b894: e2066006 and r6, r6, #6 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; b898: 12433001 subne r3, r3, #1 <== NOT EXECUTED b89c: 15843010 strne r3, [r4, #16] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) b8a0: e3160004 tst r6, #4 <== NOT EXECUTED pipe->Writers --; b8a4: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, b8a8: e59f50c0 ldr r5, [pc, #192] ; b970 <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; b8ac: 12433001 subne r3, r3, #1 <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, b8b0: e3a01000 mov r1, #0 <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; b8b4: 15843014 strne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, b8b8: e5950000 ldr r0, [r5] <== NOT EXECUTED b8bc: e1a02001 mov r2, r1 <== NOT EXECUTED b8c0: ebffe3a9 bl 476c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) b8c4: e3500000 cmp r0, #0 <== NOT EXECUTED b8c8: 1a000027 bne b96c <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); b8cc: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED b8d0: ebffe3ed bl 488c <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { b8d4: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED b8d8: e3530000 cmp r3, #0 <== NOT EXECUTED b8dc: 0a00000d beq b918 <== NOT EXECUTED *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) b8e0: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED b8e4: e2723001 rsbs r3, r2, #1 <== NOT EXECUTED b8e8: 33a03000 movcc r3, #0 <== NOT EXECUTED b8ec: e3560002 cmp r6, #2 <== NOT EXECUTED b8f0: 03a03000 moveq r3, #0 <== NOT EXECUTED b8f4: e3530000 cmp r3, #0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); b8f8: 1594002c ldrne r0, [r4, #44] ; 0x2c <== NOT EXECUTED b8fc: 11a0100d movne r1, sp <== NOT EXECUTED b900: 1b000355 blne c65c <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); b904: e5950000 ldr r0, [r5] <== NOT EXECUTED b908: ebffe3df bl 488c <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } b90c: e3a00000 mov r0, #0 <== NOT EXECUTED b910: e28dd004 add sp, sp, #4 <== NOT EXECUTED b914: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { b918: e5948014 ldr r8, [r4, #20] <== NOT EXECUTED b91c: e3580000 cmp r8, #0 <== NOT EXECUTED b920: 0a000005 beq b93c <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) b924: e3560004 cmp r6, #4 <== NOT EXECUTED b928: 0afffff5 beq b904 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); b92c: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED b930: e1a0100d mov r1, sp <== NOT EXECUTED b934: eb000348 bl c65c <== NOT EXECUTED b938: eafffff1 b b904 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); b93c: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED b940: eb00032b bl c5f4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); b944: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED b948: eb000329 bl c5f4 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); b94c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED b950: ebffe35c bl 46c8 <== NOT EXECUTED free(pipe->Buffer); b954: e5940000 ldr r0, [r4] <== NOT EXECUTED b958: ebfff5d4 bl 90b0 <== NOT EXECUTED free(pipe); b95c: e1a00004 mov r0, r4 <== NOT EXECUTED b960: ebfff5d2 bl 90b0 <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; b964: e5878000 str r8, [r7] <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { b968: eaffffe5 b b904 <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); b96c: ebffe51e bl 4dec <== NOT EXECUTED b970: 0001a860 .word 0x0001a860 0000b644 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { b644: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) b648: e2524000 subs r4, r2, #0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { b64c: e24dd008 sub sp, sp, #8 <== NOT EXECUTED b650: e1a05000 mov r5, r0 <== NOT EXECUTED b654: e1a06001 mov r6, r1 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) b658: 01a07004 moveq r7, r4 <== NOT EXECUTED b65c: 1a000002 bne b66c <== NOT EXECUTED #endif if (written > 0) return written; return ret; } b660: e1a00007 mov r0, r7 <== NOT EXECUTED b664: e28dd008 add sp, sp, #8 <== NOT EXECUTED b668: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) b66c: e3a01000 mov r1, #0 <== NOT EXECUTED b670: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED b674: e1a02001 mov r2, r1 <== NOT EXECUTED b678: e58d3000 str r3, [sp] <== NOT EXECUTED b67c: ebffe43a bl 476c <== NOT EXECUTED b680: e2509000 subs r9, r0, #0 <== NOT EXECUTED b684: e59d3000 ldr r3, [sp] <== NOT EXECUTED b688: 13e07003 mvnne r7, #3 <== NOT EXECUTED b68c: 1afffff3 bne b660 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { b690: e5957010 ldr r7, [r5, #16] <== NOT EXECUTED b694: e3570000 cmp r7, #0 <== NOT EXECUTED b698: 0a00004f beq b7dc <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; b69c: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED b6a0: e1540008 cmp r4, r8 <== NOT EXECUTED b6a4: 91a0a004 movls sl, r4 <== NOT EXECUTED b6a8: 83a0a001 movhi sl, #1 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { b6ac: e1a07009 mov r7, r9 <== NOT EXECUTED else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); b6b0: e28db004 add fp, sp, #4 <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { b6b4: e595100c ldr r1, [r5, #12] <== NOT EXECUTED b6b8: e0612008 rsb r2, r1, r8 <== NOT EXECUTED b6bc: e152000a cmp r2, sl <== NOT EXECUTED b6c0: 2a000021 bcs b74c <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { b6c4: e5938014 ldr r8, [r3, #20] <== NOT EXECUTED b6c8: e2188001 ands r8, r8, #1 <== NOT EXECUTED b6cc: 1a000050 bne b814 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; b6d0: e595201c ldr r2, [r5, #28] <== NOT EXECUTED b6d4: e2822001 add r2, r2, #1 <== NOT EXECUTED b6d8: e585201c str r2, [r5, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); b6dc: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED b6e0: e58d3000 str r3, [sp] <== NOT EXECUTED b6e4: ebffe468 bl 488c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) b6e8: e1a01008 mov r1, r8 <== NOT EXECUTED b6ec: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED b6f0: eb0003f2 bl c6c0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { b6f4: e1a01008 mov r1, r8 <== NOT EXECUTED b6f8: 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)) b6fc: e2508000 subs r8, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { b700: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) b704: 13e08003 mvnne r8, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { b708: ebffe417 bl 476c <== NOT EXECUTED b70c: e3500000 cmp r0, #0 <== NOT EXECUTED b710: e59d3000 ldr r3, [sp] <== NOT EXECUTED b714: 1a00003c bne b80c <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; b718: e595201c ldr r2, [r5, #28] <== NOT EXECUTED if (ret != 0) b71c: e3580000 cmp r8, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; b720: e2422001 sub r2, r2, #1 <== NOT EXECUTED b724: e585201c str r2, [r5, #28] <== NOT EXECUTED if (ret != 0) b728: 1a00002c bne b7e0 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { b72c: e5952010 ldr r2, [r5, #16] <== NOT EXECUTED b730: e3520000 cmp r2, #0 <== NOT EXECUTED b734: 0a000028 beq b7dc <== NOT EXECUTED b738: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { b73c: e595100c ldr r1, [r5, #12] <== NOT EXECUTED b740: e0612008 rsb r2, r1, r8 <== NOT EXECUTED b744: e152000a cmp r2, sl <== NOT EXECUTED b748: 3affffdd bcc b6c4 <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); b74c: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); b750: e069a004 rsb sl, r9, r4 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); b754: e0810000 add r0, r1, r0 <== NOT EXECUTED b758: e1a01008 mov r1, r8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); b75c: e152000a cmp r2, sl <== NOT EXECUTED b760: 31a0a002 movcc sl, r2 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); b764: e58d3000 str r3, [sp] <== NOT EXECUTED b768: eb002dcb bl 16e9c <__umodsi3> <== NOT EXECUTED b76c: e0608008 rsb r8, r0, r8 <== NOT EXECUTED if (chunk > chunk1) { b770: e15a0008 cmp sl, r8 <== NOT EXECUTED b774: e59d3000 ldr r3, [sp] <== NOT EXECUTED b778: da000027 ble b81c <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); b77c: e5952000 ldr r2, [r5] <== NOT EXECUTED b780: e0861009 add r1, r6, r9 <== NOT EXECUTED b784: e0820000 add r0, r2, r0 <== NOT EXECUTED b788: e1a02008 mov r2, r8 <== NOT EXECUTED b78c: eb000a19 bl dff8 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); b790: e0881009 add r1, r8, r9 <== NOT EXECUTED b794: e0861001 add r1, r6, r1 <== NOT EXECUTED b798: e068200a rsb r2, r8, sl <== NOT EXECUTED b79c: e5950000 ldr r0, [r5] <== NOT EXECUTED b7a0: eb000a14 bl dff8 <== NOT EXECUTED b7a4: e59d3000 ldr r3, [sp] <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; b7a8: e595200c ldr r2, [r5, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) b7ac: e5951018 ldr r1, [r5, #24] <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; b7b0: e082200a add r2, r2, sl <== NOT EXECUTED if (pipe->waitingReaders > 0) b7b4: e3510000 cmp r1, #0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; b7b8: e585200c str r2, [r5, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) b7bc: 1a00001e bne b83c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; b7c0: e087700a add r7, r7, sl <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { b7c4: e1540007 cmp r4, r7 <== NOT EXECUTED b7c8: e1a09007 mov r9, r7 <== NOT EXECUTED b7cc: 9a000020 bls b854 <== NOT EXECUTED b7d0: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED b7d4: e3a0a001 mov sl, #1 <== NOT EXECUTED b7d8: eaffffb5 b b6b4 <== NOT EXECUTED b7dc: e3e0801f mvn r8, #31 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); b7e0: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED b7e4: ebffe428 bl 488c <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) b7e8: e3780020 cmn r8, #32 <== NOT EXECUTED b7ec: 0a000002 beq b7fc <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) b7f0: e3570000 cmp r7, #0 <== NOT EXECUTED b7f4: d1a07008 movle r7, r8 <== NOT EXECUTED b7f8: eaffff98 b b660 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); b7fc: eb000243 bl c110 <== NOT EXECUTED b800: e3a0100d mov r1, #13 <== NOT EXECUTED b804: eb0002b4 bl c2dc <== NOT EXECUTED b808: eafffff8 b b7f0 <== NOT EXECUTED /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { b80c: e3e08003 mvn r8, #3 <== NOT EXECUTED b810: eafffff6 b b7f0 <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { if (LIBIO_NODELAY(iop)) { b814: e3e0800a mvn r8, #10 <== NOT EXECUTED b818: eafffff0 b b7e0 <== NOT EXECUTED if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); b81c: e5952000 ldr r2, [r5] <== NOT EXECUTED b820: e0861009 add r1, r6, r9 <== NOT EXECUTED b824: e0820000 add r0, r2, r0 <== NOT EXECUTED b828: e1a0200a mov r2, sl <== NOT EXECUTED b82c: e58d3000 str r3, [sp] <== NOT EXECUTED b830: eb0009f0 bl dff8 <== NOT EXECUTED b834: e59d3000 ldr r3, [sp] <== NOT EXECUTED b838: eaffffda b b7a8 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); b83c: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED b840: e1a0100b mov r1, fp <== NOT EXECUTED b844: e58d3000 str r3, [sp] <== NOT EXECUTED b848: eb000383 bl c65c <== NOT EXECUTED b84c: e59d3000 ldr r3, [sp] <== NOT EXECUTED b850: eaffffda b b7c0 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { b854: e3a08000 mov r8, #0 <== NOT EXECUTED b858: eaffffe0 b b7e0 <== NOT EXECUTED 00005aac : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 5aac: e92d4030 push {r4, r5, lr} Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 5ab0: e2505000 subs r5, r0, #0 int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 5ab4: e24dd00c sub sp, sp, #12 Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 5ab8: 0a00001d beq 5b34 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 5abc: e1a00001 mov r0, r1 5ac0: e28d1004 add r1, sp, #4 5ac4: eb0019c9 bl c1f0 <_POSIX_Absolute_timeout_to_ticks> 5ac8: e5951000 ldr r1, [r5] 5acc: e1a04000 mov r4, r0 5ad0: e28d2008 add r2, sp, #8 5ad4: e59f0090 ldr r0, [pc, #144] ; 5b6c 5ad8: eb000a77 bl 84bc <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 5adc: e59dc008 ldr ip, [sp, #8] 5ae0: e35c0000 cmp ip, #0 5ae4: 1a000012 bne 5b34 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( 5ae8: e5951000 ldr r1, [r5] int _EXFUN(pthread_rwlock_init, (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr)); int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedrdlock, 5aec: e3540003 cmp r4, #3 5af0: 13a05000 movne r5, #0 5af4: 03a05001 moveq r5, #1 5af8: e2800010 add r0, r0, #16 5afc: e59d3004 ldr r3, [sp, #4] 5b00: e1a02005 mov r2, r5 5b04: e58dc000 str ip, [sp] 5b08: eb000718 bl 7770 <_CORE_RWLock_Obtain_for_reading> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); 5b0c: eb000c83 bl 8d20 <_Thread_Enable_dispatch> if ( !do_wait ) { 5b10: e3550000 cmp r5, #0 5b14: 1a00000f bne 5b58 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { 5b18: e59f3050 ldr r3, [pc, #80] ; 5b70 5b1c: e5933000 ldr r3, [r3] 5b20: e5930034 ldr r0, [r3, #52] ; 0x34 5b24: e3500002 cmp r0, #2 5b28: 0a000004 beq 5b40 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 5b2c: eb000042 bl 5c3c <_POSIX_RWLock_Translate_core_RWLock_return_code> 5b30: ea000000 b 5b38 5b34: e3a00016 mov r0, #22 case OBJECTS_ERROR: break; } return EINVAL; } 5b38: e28dd00c add sp, sp, #12 5b3c: e8bd8030 pop {r4, r5, pc} ); _Thread_Enable_dispatch(); if ( !do_wait ) { if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { switch (status) { 5b40: e3540000 cmp r4, #0 5b44: 0afffffa beq 5b34 5b48: e3540002 cmp r4, #2 5b4c: 93a00074 movls r0, #116 ; 0x74 5b50: 9afffff8 bls 5b38 5b54: eafffff4 b 5b2c <== NOT EXECUTED 5b58: e59f3010 ldr r3, [pc, #16] ; 5b70 5b5c: e5933000 ldr r3, [r3] 5b60: e5930034 ldr r0, [r3, #52] ; 0x34 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 5b64: eb000034 bl 5c3c <_POSIX_RWLock_Translate_core_RWLock_return_code> 5b68: eafffff2 b 5b38 5b6c: 0001dd94 .word 0x0001dd94 5b70: 0001dc80 .word 0x0001dc80 00005b74 : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 5b74: e92d4030 push {r4, r5, lr} Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 5b78: e2505000 subs r5, r0, #0 int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 5b7c: e24dd00c sub sp, sp, #12 Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 5b80: 0a00001d beq 5bfc * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 5b84: e1a00001 mov r0, r1 5b88: e28d1004 add r1, sp, #4 5b8c: eb001997 bl c1f0 <_POSIX_Absolute_timeout_to_ticks> 5b90: e5951000 ldr r1, [r5] 5b94: e1a04000 mov r4, r0 5b98: e28d2008 add r2, sp, #8 5b9c: e59f0090 ldr r0, [pc, #144] ; 5c34 5ba0: eb000a45 bl 84bc <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 5ba4: e59dc008 ldr ip, [sp, #8] 5ba8: e35c0000 cmp ip, #0 5bac: 1a000012 bne 5bfc case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( 5bb0: e5951000 ldr r1, [r5] (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedwrlock, 5bb4: e3540003 cmp r4, #3 5bb8: 13a05000 movne r5, #0 5bbc: 03a05001 moveq r5, #1 5bc0: e2800010 add r0, r0, #16 5bc4: e59d3004 ldr r3, [sp, #4] 5bc8: e1a02005 mov r2, r5 5bcc: e58dc000 str ip, [sp] 5bd0: eb00071d bl 784c <_CORE_RWLock_Obtain_for_writing> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); 5bd4: eb000c51 bl 8d20 <_Thread_Enable_dispatch> if ( !do_wait && 5bd8: e3550000 cmp r5, #0 5bdc: 1a00000f bne 5c20 (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { 5be0: e59f3050 ldr r3, [pc, #80] ; 5c38 5be4: e5933000 ldr r3, [r3] 5be8: e5930034 ldr r0, [r3, #52] ; 0x34 ticks, NULL ); _Thread_Enable_dispatch(); if ( !do_wait && 5bec: e3500002 cmp r0, #2 5bf0: 0a000004 beq 5c08 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 5bf4: eb000010 bl 5c3c <_POSIX_RWLock_Translate_core_RWLock_return_code> 5bf8: ea000000 b 5c00 5bfc: e3a00016 mov r0, #22 case OBJECTS_ERROR: break; } return EINVAL; } 5c00: e28dd00c add sp, sp, #12 5c04: e8bd8030 pop {r4, r5, pc} ); _Thread_Enable_dispatch(); if ( !do_wait && (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { switch (status) { 5c08: e3540000 cmp r4, #0 5c0c: 0afffffa beq 5bfc 5c10: e3540002 cmp r4, #2 5c14: 93a00074 movls r0, #116 ; 0x74 5c18: 9afffff8 bls 5c00 5c1c: eafffff4 b 5bf4 <== NOT EXECUTED 5c20: e59f3010 ldr r3, [pc, #16] ; 5c38 5c24: e5933000 ldr r3, [r3] 5c28: e5930034 ldr r0, [r3, #52] ; 0x34 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 5c2c: eb000002 bl 5c3c <_POSIX_RWLock_Translate_core_RWLock_return_code> 5c30: eafffff2 b 5c00 5c34: 0001dd94 .word 0x0001dd94 5c38: 0001dc80 .word 0x0001dc80 000188a8 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 188a8: e59f30bc ldr r3, [pc, #188] ; 1896c 188ac: e5933000 ldr r3, [r3] 188b0: e1500003 cmp r0, r3 ssize_t read( int fd, void *buffer, size_t count ) { 188b4: e92d4810 push {r4, fp, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 188b8: 2a00001c bcs 18930 iop = rtems_libio_iop( fd ); 188bc: e59f40ac ldr r4, [pc, #172] ; 18970 188c0: e5944000 ldr r4, [r4] 188c4: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 188c8: e5940014 ldr r0, [r4, #20] 188cc: e3100c01 tst r0, #256 ; 0x100 188d0: 0a000016 beq 18930 rtems_libio_check_buffer( buffer ); 188d4: e3510000 cmp r1, #0 188d8: 0a000019 beq 18944 rtems_libio_check_count( count ); 188dc: e3520000 cmp r2, #0 188e0: 01a00002 moveq r0, r2 188e4: 08bd8810 popeq {r4, fp, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 188e8: e3100002 tst r0, #2 188ec: 0a000014 beq 18944 /* * Now process the read(). */ if ( !iop->handlers->read_h ) 188f0: e594303c ldr r3, [r4, #60] ; 0x3c 188f4: e5933008 ldr r3, [r3, #8] 188f8: e3530000 cmp r3, #0 188fc: 0a000015 beq 18958 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 18900: e1a00004 mov r0, r4 18904: e1a0e00f mov lr, pc 18908: e12fff13 bx r3 if ( rc > 0 ) 1890c: e3500000 cmp r0, #0 18910: d8bd8810 pople {r4, fp, pc} iop->offset += rc; 18914: e284c00c add ip, r4, #12 18918: e89c1800 ldm ip, {fp, ip} 1891c: e09b2000 adds r2, fp, r0 18920: e0ac3fc0 adc r3, ip, r0, asr #31 18924: e584200c str r2, [r4, #12] 18928: e5843010 str r3, [r4, #16] return rc; } 1892c: e8bd8810 pop {r4, fp, pc} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 18930: ebffd3a2 bl d7c0 <__errno> 18934: e3a03009 mov r3, #9 18938: e5803000 str r3, [r0] 1893c: e3e00000 mvn r0, #0 18940: e8bd8810 pop {r4, fp, pc} rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 18944: ebffd39d bl d7c0 <__errno> <== NOT EXECUTED 18948: e3a03016 mov r3, #22 <== NOT EXECUTED 1894c: e5803000 str r3, [r0] <== NOT EXECUTED 18950: e3e00000 mvn r0, #0 <== NOT EXECUTED 18954: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 18958: ebffd398 bl d7c0 <__errno> <== NOT EXECUTED 1895c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 18960: e5803000 str r3, [r0] <== NOT EXECUTED 18964: e3e00000 mvn r0, #0 <== NOT EXECUTED 18968: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 1896c: 00019090 .word 0x00019090 18970: 0001a8e4 .word 0x0001a8e4 00026d3c : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 26d3c: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int result; if (!buf) 26d40: e2516000 subs r6, r1, #0 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 26d44: e24dd018 sub sp, sp, #24 26d48: e1a05002 mov r5, r2 26d4c: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if (!buf) 26d50: 0a000032 beq 26e20 rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 26d54: eb0079da bl 454c4 26d58: e28d4004 add r4, sp, #4 26d5c: e3a0c000 mov ip, #0 26d60: e1a01000 mov r1, r0 26d64: e1a0200c mov r2, ip 26d68: e1a00007 mov r0, r7 26d6c: e1a03004 mov r3, r4 26d70: e58dc000 str ip, [sp] 26d74: ebff7a0d bl 55b0 0, &loc, false ); if ( result != 0 ) 26d78: e3500000 cmp r0, #0 26d7c: 1a000025 bne 26e18 return -1; if ( !loc.ops->node_type_h ){ 26d80: e59d2010 ldr r2, [sp, #16] 26d84: e5923010 ldr r3, [r2, #16] 26d88: e3530000 cmp r3, #0 26d8c: 0a000019 beq 26df8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 26d90: e1a00004 mov r0, r4 26d94: e1a0e00f mov lr, pc 26d98: e12fff13 bx r3 26d9c: e3500004 cmp r0, #4 26da0: 1a000023 bne 26e34 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 26da4: e59d2010 ldr r2, [sp, #16] 26da8: e592303c ldr r3, [r2, #60] ; 0x3c 26dac: e3530000 cmp r3, #0 26db0: 0a00002c beq 26e68 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 26db4: e1a02005 mov r2, r5 26db8: e1a01006 mov r1, r6 26dbc: e1a00004 mov r0, r4 26dc0: e1a0e00f mov lr, pc 26dc4: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 26dc8: e59d3010 ldr r3, [sp, #16] 26dcc: e3530000 cmp r3, #0 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 ); 26dd0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 26dd4: 0a000004 beq 26dec 26dd8: e593301c ldr r3, [r3, #28] 26ddc: e3530000 cmp r3, #0 26de0: 11a00004 movne r0, r4 26de4: 11a0e00f movne lr, pc 26de8: 112fff13 bxne r3 return result; } 26dec: e1a00005 mov r0, r5 26df0: e28dd018 add sp, sp, #24 26df4: e8bd80f0 pop {r4, r5, r6, r7, pc} 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 26df8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 26dfc: e3530000 cmp r3, #0 <== NOT EXECUTED 26e00: 11a00004 movne r0, r4 <== NOT EXECUTED 26e04: 11a0e00f movne lr, pc <== NOT EXECUTED 26e08: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 26e0c: eb005f21 bl 3ea98 <__errno> <== NOT EXECUTED 26e10: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 26e14: e5803000 str r3, [r0] <== NOT EXECUTED 26e18: e3e05000 mvn r5, #0 <== NOT EXECUTED 26e1c: eafffff2 b 26dec <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 26e20: eb005f1c bl 3ea98 <__errno> <== NOT EXECUTED 26e24: e3a0300e mov r3, #14 <== NOT EXECUTED 26e28: e5803000 str r3, [r0] <== NOT EXECUTED 26e2c: e3e05000 mvn r5, #0 <== NOT EXECUTED 26e30: eaffffed b 26dec <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); 26e34: e59d3010 ldr r3, [sp, #16] 26e38: e3530000 cmp r3, #0 26e3c: 0a000004 beq 26e54 26e40: e593301c ldr r3, [r3, #28] 26e44: e3530000 cmp r3, #0 26e48: 11a00004 movne r0, r4 26e4c: 11a0e00f movne lr, pc 26e50: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EINVAL ); 26e54: eb005f0f bl 3ea98 <__errno> 26e58: e3a03016 mov r3, #22 26e5c: e5803000 str r3, [r0] 26e60: e3e05000 mvn r5, #0 26e64: eaffffe0 b 26dec } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 26e68: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 26e6c: e3530000 cmp r3, #0 <== NOT EXECUTED 26e70: 11a00004 movne r0, r4 <== NOT EXECUTED 26e74: 11a0e00f movne lr, pc <== NOT EXECUTED 26e78: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 26e7c: eb005f05 bl 3ea98 <__errno> <== NOT EXECUTED 26e80: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 26e84: e5803000 str r3, [r0] <== NOT EXECUTED 26e88: e3e05000 mvn r5, #0 <== NOT EXECUTED 26e8c: eaffffd6 b 26dec <== NOT EXECUTED 000035d4 : int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 35d4: e59f3154 ldr r3, [pc, #340] ; 3730 35d8: e5933000 ldr r3, [r3] 35dc: e1500003 cmp r0, r3 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 35e0: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} 35e4: e1a04002 mov r4, r2 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 35e8: 2a000046 bcs 3708 iop = rtems_libio_iop( fd ); 35ec: e59f3140 ldr r3, [pc, #320] ; 3734 35f0: e5936000 ldr r6, [r3] 35f4: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); 35f8: e5963014 ldr r3, [r6, #20] 35fc: e3130c01 tst r3, #256 ; 0x100 3600: 0a000040 beq 3708 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 3604: e3130002 tst r3, #2 3608: 0a000038 beq 36f0 /* * Argument validation on IO vector */ if ( !iov ) 360c: e3510000 cmp r1, #0 3610: 0a000036 beq 36f0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 3614: e3520000 cmp r2, #0 3618: da000034 ble 36f0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 361c: e3520b01 cmp r2, #1024 ; 0x400 3620: ca000032 bgt 36f0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 3624: e596303c ldr r3, [r6, #60] ; 0x3c 3628: e5933008 ldr r3, [r3, #8] 362c: e3530000 cmp r3, #0 3630: 0a000039 beq 371c rtems_set_errno_and_return_minus_one( ENOTSUP ); 3634: e1a05001 mov r5, r1 3638: e3a01000 mov r1, #0 363c: e1a02005 mov r2, r5 3640: e1a00001 mov r0, r1 3644: ea000000 b 364c * 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++ ) { 3648: e1a0000e mov r0, lr ssize_t old; if ( !iov[v].iov_base ) 364c: e592c000 ldr ip, [r2] 3650: e35c0000 cmp ip, #0 * 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++ ) { 3654: e2811001 add r1, r1, #1 ssize_t old; if ( !iov[v].iov_base ) 3658: 0a000024 beq 36f0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 365c: e592c004 ldr ip, [r2, #4] 3660: e35c0000 cmp ip, #0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 3664: e080e00c add lr, r0, ip ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 3668: 0a000020 beq 36f0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) 366c: e150000e cmp r0, lr 3670: ca00001e bgt 36f0 * 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++ ) { 3674: e1540001 cmp r4, r1 3678: e2822008 add r2, r2, #8 367c: cafffff1 bgt 3648 3680: e3a07000 mov r7, #0 3684: e1a08007 mov r8, r7 3688: ea00000f b 36cc bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) { 368c: 0a000006 beq 36ac iop->offset += bytes; 3690: e286c00c add ip, r6, #12 <== NOT EXECUTED 3694: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 3698: e09b2000 adds r2, fp, r0 <== NOT EXECUTED 369c: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED 36a0: e586200c str r2, [r6, #12] <== NOT EXECUTED 36a4: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; 36a8: e0888000 add r8, r8, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 36ac: e5953004 ldr r3, [r5, #4] 36b0: e1500003 cmp r0, r3 36b4: 1a000011 bne 3700 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 36b8: e1540007 cmp r4, r7 <== NOT EXECUTED 36bc: e2855008 add r5, r5, #8 <== NOT EXECUTED 36c0: da00000e ble 3700 <== NOT EXECUTED 36c4: e596303c ldr r3, [r6, #60] ; 0x3c <== NOT EXECUTED 36c8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 36cc: e8950006 ldm r5, {r1, r2} 36d0: e1a00006 mov r0, r6 36d4: e1a0e00f mov lr, pc 36d8: e12fff13 bx r3 if ( bytes < 0 ) 36dc: e3500000 cmp r0, #0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 36e0: e2877001 add r7, r7, #1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 36e4: aaffffe8 bge 368c } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 36e8: e3e08000 mvn r8, #0 <== NOT EXECUTED 36ec: ea000003 b 3700 <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); 36f0: eb00321c bl ff68 <__errno> 36f4: e3a03016 mov r3, #22 36f8: e5803000 str r3, [r0] 36fc: e3e08000 mvn r8, #0 if (bytes != iov[ v ].iov_len) break; } return total; } 3700: e1a00008 mov r0, r8 3704: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 3708: eb003216 bl ff68 <__errno> <== NOT EXECUTED 370c: e3a03009 mov r3, #9 <== NOT EXECUTED 3710: e5803000 str r3, [r0] <== NOT EXECUTED 3714: e3e08000 mvn r8, #0 <== NOT EXECUTED 3718: eafffff8 b 3700 <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 371c: eb003211 bl ff68 <__errno> <== NOT EXECUTED 3720: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3724: e5803000 str r3, [r0] <== NOT EXECUTED 3728: e3e08000 mvn r8, #0 <== NOT EXECUTED 372c: eafffff3 b 3700 <== NOT EXECUTED 3730: 0001d090 .word 0x0001d090 3734: 0001fd38 .word 0x0001fd38 000189cc : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 189cc: e92d41f0 push {r4, r5, r6, r7, r8, lr} /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 189d0: e59f3118 ldr r3, [pc, #280] ; 18af0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 189d4: e59f5118 ldr r5, [pc, #280] ; 18af4 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 189d8: e5932000 ldr r2, [r3] { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 189dc: e5953010 ldr r3, [r5, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 189e0: e3520003 cmp r2, #3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 189e4: e2833001 add r3, r3, #1 189e8: e24dd004 sub sp, sp, #4 189ec: e5853010 str r3, [r5, #16] 189f0: e1a04000 mov r4, r0 189f4: e1a06001 mov r6, r1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 189f8: 0a000020 beq 18a80 } /* * Continue with realloc(). */ if ( !ptr ) 189fc: e3540000 cmp r4, #0 18a00: 0a00001a beq 18a70 return malloc( size ); if ( !size ) { 18a04: e3560000 cmp r6, #0 18a08: 0a00000f beq 18a4c free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 18a0c: e59f70e4 ldr r7, [pc, #228] ; 18af8 18a10: e1a01004 mov r1, r4 18a14: e5970000 ldr r0, [r7] 18a18: e1a0200d mov r2, sp 18a1c: eb00006b bl 18bd0 <_Protected_heap_Get_block_size> 18a20: e2508000 subs r8, r0, #0 18a24: 0a00000c beq 18a5c #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 ) ) { 18a28: e5970000 ldr r0, [r7] 18a2c: e1a01004 mov r1, r4 18a30: e1a02006 mov r2, r6 18a34: eb000076 bl 18c14 <_Protected_heap_Resize_block> 18a38: e3500000 cmp r0, #0 18a3c: 0a00001b beq 18ab0 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 18a40: e1a00004 mov r0, r4 18a44: e28dd004 add sp, sp, #4 18a48: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 18a4c: e1a00004 mov r0, r4 <== NOT EXECUTED 18a50: ebffc196 bl 90b0 <== NOT EXECUTED 18a54: e1a04006 mov r4, r6 <== NOT EXECUTED return (void *) 0; 18a58: eafffff8 b 18a40 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 18a5c: ebffd357 bl d7c0 <__errno> 18a60: e3a03016 mov r3, #22 18a64: e5803000 str r3, [r0] 18a68: e1a04008 mov r4, r8 return (void *) 0; 18a6c: eafffff3 b 18a40 /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 18a70: e1a00006 mov r0, r6 18a74: ebffc2ed bl 9630 18a78: e1a04000 mov r4, r0 18a7c: eaffffef b 18a40 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) 18a80: e59f3074 ldr r3, [pc, #116] ; 18afc 18a84: e5933000 ldr r3, [r3] 18a88: e3530000 cmp r3, #0 18a8c: 0a000001 beq 18a98 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 18a90: e3a04000 mov r4, #0 18a94: eaffffe9 b 18a40 if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 18a98: e59f3060 ldr r3, [pc, #96] ; 18b00 18a9c: e5933000 ldr r3, [r3] 18aa0: e3530000 cmp r3, #0 18aa4: 0affffd4 beq 189fc } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 18aa8: e3a04000 mov r4, #0 <== NOT EXECUTED 18aac: eaffffe3 b 18a40 <== NOT EXECUTED * There used to be a free on this error case but it is wrong to * free the memory per OpenGroup Single UNIX Specification V2 * and the C Standard. */ new_area = malloc( size ); 18ab0: e1a00006 mov r0, r6 18ab4: ebffc2dd bl 9630 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 18ab8: e5953004 ldr r3, [r5, #4] if ( !new_area ) { 18abc: e2507000 subs r7, r0, #0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 18ac0: e2433001 sub r3, r3, #1 18ac4: e5853004 str r3, [r5, #4] if ( !new_area ) { 18ac8: 0afffff0 beq 18a90 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 18acc: e59d2000 ldr r2, [sp] 18ad0: e1a01004 mov r1, r4 18ad4: e1560002 cmp r6, r2 18ad8: 31a02006 movcc r2, r6 18adc: ebffd545 bl dff8 free( ptr ); 18ae0: e1a00004 mov r0, r4 18ae4: ebffc171 bl 90b0 18ae8: e1a04007 mov r4, r7 return new_area; 18aec: eaffffd3 b 18a40 18af0: 0001abf0 .word 0x0001abf0 18af4: 0001a8f0 .word 0x0001a8f0 18af8: 0001909c .word 0x0001909c 18afc: 0001aa4c .word 0x0001aa4c 18b00: 0001aadc .word 0x0001aadc 00006b1c : #include int rmdir( const char *pathname ) { 6b1c: e92d40f0 push {r4, r5, r6, r7, lr} 6b20: e24dd02c sub sp, sp, #44 ; 0x2c 6b24: e1a05000 mov r5, r0 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 6b28: ebfffa4a bl 5458 if ( parentpathlen == 0 ) 6b2c: e2507000 subs r7, r0, #0 6b30: 1a000080 bne 6d38 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 6b34: e5d53000 ldrb r3, [r5] 6b38: e353002f cmp r3, #47 ; 0x2f 6b3c: 1353005c cmpne r3, #92 ; 0x5c 6b40: 1a000049 bne 6c6c 6b44: e59f328c ldr r3, [pc, #652] ; 6dd8 6b48: e593c000 ldr ip, [r3] 6b4c: e28cc018 add ip, ip, #24 6b50: e8bc000f ldm ip!, {r0, r1, r2, r3} 6b54: e28d4018 add r4, sp, #24 6b58: e1a0e004 mov lr, r4 6b5c: e8ae000f stmia lr!, {r0, r1, r2, r3} 6b60: e59c2000 ldr r2, [ip] 6b64: e58e2000 str r2, [lr] 6b68: e3a06000 mov r6, #0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 6b6c: e1a0e004 mov lr, r4 6b70: e8be000f ldm lr!, {r0, r1, r2, r3} 6b74: e28dc004 add ip, sp, #4 6b78: e8ac000f stmia ip!, {r0, r1, r2, r3} 6b7c: e59e3000 ldr r3, [lr] name = pathname + parentpathlen; 6b80: e0855007 add r5, r5, r7 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 6b84: e58c3000 str r3, [ip] name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 6b88: e1a00005 mov r0, r5 6b8c: eb00fa4c bl 454c4 6b90: e1a01000 mov r1, r0 6b94: e1a00005 mov r0, r5 6b98: ebfffa1a bl 5408 6b9c: e0857000 add r7, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 6ba0: e1a00007 mov r0, r7 6ba4: eb00fa46 bl 454c4 6ba8: e28d5004 add r5, sp, #4 6bac: e3a0c000 mov ip, #0 6bb0: e1a01000 mov r1, r0 6bb4: e1a0200c mov r2, ip 6bb8: e1a00007 mov r0, r7 6bbc: e1a03005 mov r3, r5 6bc0: e58dc000 str ip, [sp] 6bc4: ebfffa3d bl 54c0 0, &loc, false ); if ( result != 0 ) { 6bc8: e3500000 cmp r0, #0 6bcc: 1a00004a bne 6cfc /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 6bd0: e59d2010 ldr r2, [sp, #16] 6bd4: e5923010 ldr r3, [r2, #16] 6bd8: e3530000 cmp r3, #0 6bdc: 0a000079 beq 6dc8 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 ){ 6be0: e1a00005 mov r0, r5 6be4: e1a0e00f mov lr, pc 6be8: e12fff13 bx r3 6bec: e3500001 cmp r0, #1 6bf0: 1a00002a bne 6ca0 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 6bf4: e59d300c ldr r3, [sp, #12] 6bf8: e5933034 ldr r3, [r3, #52] ; 0x34 6bfc: e3530000 cmp r3, #0 6c00: 0a000058 beq 6d68 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 6c04: e1a00004 mov r0, r4 6c08: e1a01005 mov r1, r5 6c0c: e1a0e00f mov lr, pc 6c10: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 6c14: e59d3010 ldr r3, [sp, #16] 6c18: e3530000 cmp r3, #0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 6c1c: e1a07000 mov r7, r0 rtems_filesystem_freenode( &loc ); 6c20: 0a000004 beq 6c38 6c24: e593301c ldr r3, [r3, #28] 6c28: e3530000 cmp r3, #0 6c2c: 11a00005 movne r0, r5 6c30: 11a0e00f movne lr, pc 6c34: 112fff13 bxne r3 if ( free_parentloc ) 6c38: e3560000 cmp r6, #0 6c3c: 0a000007 beq 6c60 rtems_filesystem_freenode( &parentloc ); 6c40: e59d3024 ldr r3, [sp, #36] ; 0x24 6c44: e3530000 cmp r3, #0 6c48: 0a000004 beq 6c60 6c4c: e593301c ldr r3, [r3, #28] 6c50: e3530000 cmp r3, #0 6c54: 11a00004 movne r0, r4 6c58: 11a0e00f movne lr, pc 6c5c: 112fff13 bxne r3 return result; } 6c60: e1a00007 mov r0, r7 6c64: e28dd02c add sp, sp, #44 ; 0x2c 6c68: e8bd80f0 pop {r4, r5, r6, r7, pc} */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 6c6c: e3530000 cmp r3, #0 <== NOT EXECUTED 6c70: 0affffb3 beq 6b44 <== NOT EXECUTED 6c74: e59f315c ldr r3, [pc, #348] ; 6dd8 <== NOT EXECUTED 6c78: e593c000 ldr ip, [r3] <== NOT EXECUTED 6c7c: e28cc004 add ip, ip, #4 <== NOT EXECUTED 6c80: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 6c84: e28d4018 add r4, sp, #24 <== NOT EXECUTED 6c88: e1a0e004 mov lr, r4 <== NOT EXECUTED 6c8c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 6c90: e59c2000 ldr r2, [ip] <== NOT EXECUTED 6c94: e1a06007 mov r6, r7 <== NOT EXECUTED 6c98: e58e2000 str r2, [lr] <== NOT EXECUTED 6c9c: eaffffb2 b 6b6c <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); 6ca0: e59d3010 ldr r3, [sp, #16] 6ca4: e3530000 cmp r3, #0 6ca8: 0a000004 beq 6cc0 6cac: e593301c ldr r3, [r3, #28] 6cb0: e3530000 cmp r3, #0 6cb4: 11a00005 movne r0, r5 6cb8: 11a0e00f movne lr, pc 6cbc: 112fff13 bxne r3 if ( free_parentloc ) 6cc0: e3560000 cmp r6, #0 6cc4: 0a000007 beq 6ce8 rtems_filesystem_freenode( &parentloc ); 6cc8: e59d3024 ldr r3, [sp, #36] ; 0x24 6ccc: e3530000 cmp r3, #0 6cd0: 0a000004 beq 6ce8 6cd4: e593301c ldr r3, [r3, #28] 6cd8: e3530000 cmp r3, #0 6cdc: 11a00004 movne r0, r4 6ce0: 11a0e00f movne lr, pc 6ce4: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 6ce8: eb00df6a bl 3ea98 <__errno> 6cec: e3a03014 mov r3, #20 6cf0: e5803000 str r3, [r0] 6cf4: e3e07000 mvn r7, #0 6cf8: eaffffd8 b 6c60 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 6cfc: e3560000 cmp r6, #0 6d00: 1a000001 bne 6d0c result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 6d04: e3e07000 mvn r7, #0 6d08: eaffffd4 b 6c60 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 6d0c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 6d10: e3530000 cmp r3, #0 <== NOT EXECUTED 6d14: 0afffffa beq 6d04 <== NOT EXECUTED 6d18: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 6d1c: e3530000 cmp r3, #0 <== NOT EXECUTED 6d20: 0afffff7 beq 6d04 <== NOT EXECUTED 6d24: e1a00004 mov r0, r4 <== NOT EXECUTED 6d28: e1a0e00f mov lr, pc <== NOT EXECUTED 6d2c: e12fff13 bx r3 <== NOT EXECUTED 6d30: e3e07000 mvn r7, #0 <== NOT EXECUTED 6d34: eaffffc9 b 6c60 <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 6d38: e28d4018 add r4, sp, #24 6d3c: e3a0c000 mov ip, #0 6d40: e1a00005 mov r0, r5 6d44: e1a01007 mov r1, r7 6d48: e3a02002 mov r2, #2 6d4c: e1a03004 mov r3, r4 6d50: e58dc000 str ip, [sp] 6d54: ebfffa15 bl 55b0 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 6d58: e3500000 cmp r0, #0 6d5c: 1affffe8 bne 6d04 6d60: e3a06001 mov r6, #1 6d64: eaffff80 b 6b6c /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 6d68: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 6d6c: e3530000 cmp r3, #0 <== NOT EXECUTED 6d70: 0a000005 beq 6d8c <== NOT EXECUTED 6d74: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 6d78: e3530000 cmp r3, #0 <== NOT EXECUTED 6d7c: 0a000002 beq 6d8c <== NOT EXECUTED 6d80: e1a00005 mov r0, r5 <== NOT EXECUTED 6d84: e1a0e00f mov lr, pc <== NOT EXECUTED 6d88: e12fff13 bx r3 <== NOT EXECUTED if ( free_parentloc ) 6d8c: e3560000 cmp r6, #0 <== NOT EXECUTED 6d90: 0a000007 beq 6db4 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 6d94: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 6d98: e3530000 cmp r3, #0 <== NOT EXECUTED 6d9c: 0a000004 beq 6db4 <== NOT EXECUTED 6da0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 6da4: e3530000 cmp r3, #0 <== NOT EXECUTED 6da8: 11a00004 movne r0, r4 <== NOT EXECUTED 6dac: 11a0e00f movne lr, pc <== NOT EXECUTED 6db0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 6db4: eb00df37 bl 3ea98 <__errno> <== NOT EXECUTED 6db8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 6dbc: e5803000 str r3, [r0] <== NOT EXECUTED 6dc0: e3e07000 mvn r7, #0 <== NOT EXECUTED 6dc4: eaffffa5 b 6c60 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 6dc8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 6dcc: e3530000 cmp r3, #0 <== NOT EXECUTED 6dd0: 1affffea bne 6d80 <== NOT EXECUTED 6dd4: eaffffec b 6d8c <== NOT EXECUTED 6dd8: 00058ed8 .word 0x00058ed8 00013694 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 13694: e59f0000 ldr r0, [pc, #0] ; 1369c <== NOT EXECUTED 13698: e12fff1e bx lr <== NOT EXECUTED 1369c: 000232cc .word 0x000232cc 0000fbe8 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { fbe8: e92d4010 push {r4, lr} fbec: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); fbf0: eb000006 bl fc10 if (nap) fbf4: e3500000 cmp r0, #0 fbf8: 0a000001 beq fc04 return nap->name; return rtems_assoc_name_bad(local_value); } fbfc: e5900000 ldr r0, [r0] fc00: 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); fc04: e1a00004 mov r0, r4 <== NOT EXECUTED } fc08: 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); fc0c: ea000ea0 b 13694 <== NOT EXECUTED 0000d728 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { d728: e92d4030 push {r4, r5, lr} d72c: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) d730: e5900000 ldr r0, [r0] d734: e3500000 cmp r0, #0 const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { d738: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) d73c: 01a04000 moveq r4, r0 d740: 0a000013 beq d794 d744: e59f105c ldr r1, [pc, #92] ; d7a8 d748: eb000345 bl e464 d74c: e3500000 cmp r0, #0 d750: 13a02000 movne r2, #0 d754: 1a00000b bne d788 default_ap = ap++; for ( ; ap->name; ap++) d758: e594300c ldr r3, [r4, #12] <== NOT EXECUTED d75c: e3530000 cmp r3, #0 <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; d760: e284300c add r3, r4, #12 <== NOT EXECUTED for ( ; ap->name; ap++) d764: 0a00000a beq d794 <== NOT EXECUTED d768: e1a02004 mov r2, r4 <== NOT EXECUTED d76c: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->local_value == local_value) d770: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED d774: e1530005 cmp r3, r5 <== NOT EXECUTED d778: 0a000005 beq d794 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) d77c: e5b4300c ldr r3, [r4, #12]! d780: e3530000 cmp r3, #0 d784: 0a000004 beq d79c if (ap->local_value == local_value) d788: e5943004 ldr r3, [r4, #4] d78c: e1530005 cmp r3, r5 d790: 1afffff9 bne d77c return ap; return default_ap; } d794: e1a00004 mov r0, r4 d798: e8bd8030 pop {r4, r5, pc} const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) d79c: e1a04002 mov r4, r2 if (ap->local_value == local_value) return ap; return default_ap; } d7a0: e1a00004 mov r0, r4 d7a4: e8bd8030 pop {r4, r5, pc} d7a8: 0001a484 .word 0x0001a484 0000c08c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { c08c: e92d4030 push {r4, r5, lr} c090: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) c094: e5900000 ldr r0, [r0] c098: e3500000 cmp r0, #0 const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { c09c: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) c0a0: 01a04000 moveq r4, r0 c0a4: 0a000013 beq c0f8 c0a8: e59f105c ldr r1, [pc, #92] ; c10c c0ac: eb0008ec bl e464 c0b0: e3500000 cmp r0, #0 c0b4: 13a02000 movne r2, #0 c0b8: 1a00000b bne c0ec default_ap = ap++; for ( ; ap->name; ap++) c0bc: e594300c ldr r3, [r4, #12] <== NOT EXECUTED c0c0: e3530000 cmp r3, #0 <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; c0c4: e284300c add r3, r4, #12 <== NOT EXECUTED for ( ; ap->name; ap++) c0c8: 0a00000a beq c0f8 <== NOT EXECUTED c0cc: e1a02004 mov r2, r4 <== NOT EXECUTED c0d0: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->remote_value == remote_value) c0d4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED c0d8: e1530005 cmp r3, r5 <== NOT EXECUTED c0dc: 0a000005 beq c0f8 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) c0e0: e5b4300c ldr r3, [r4, #12]! c0e4: e3530000 cmp r3, #0 c0e8: 0a000004 beq c100 if (ap->remote_value == remote_value) c0ec: e5943008 ldr r3, [r4, #8] c0f0: e1530005 cmp r3, r5 c0f4: 1afffff9 bne c0e0 return ap; return default_ap; } c0f8: e1a00004 mov r0, r4 c0fc: e8bd8030 pop {r4, r5, pc} const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) c100: e1a04002 mov r4, r2 if (ap->remote_value == remote_value) return ap; return default_ap; } c104: e1a00004 mov r0, r4 c108: e8bd8030 pop {r4, r5, pc} c10c: 0001a484 .word 0x0001a484 0000ce60 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ce60: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ce64: eb00022f bl d728 <== NOT EXECUTED if (nap) ce68: e3500000 cmp r0, #0 <== NOT EXECUTED return nap->remote_value; ce6c: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } ce70: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 000012c4 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 12c4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 12c8: e1a05000 mov r5, r0 <== NOT EXECUTED 12cc: e1a04001 mov r4, r1 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 12d0: ebffffc2 bl 11e0 <== NOT EXECUTED if ( !p ) 12d4: e2506000 subs r6, r0, #0 <== NOT EXECUTED 12d8: 1a000002 bne 12e8 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; 12dc: e3a04000 mov r4, #0 <== NOT EXECUTED } 12e0: e1a00004 mov r0, r4 <== NOT EXECUTED 12e4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 12e8: e1a00005 mov r0, r5 <== NOT EXECUTED 12ec: eb00350f bl e730 <== NOT EXECUTED if ( *rhs != '=' ) 12f0: e7d63000 ldrb r3, [r6, r0] <== NOT EXECUTED 12f4: e353003d cmp r3, #61 ; 0x3d <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 12f8: e0866000 add r6, r6, r0 <== NOT EXECUTED if ( *rhs != '=' ) 12fc: 1afffff6 bne 12dc <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 1300: e5d63001 ldrb r3, [r6, #1] <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; 1304: e2866001 add r6, r6, #1 <== NOT EXECUTED if ( *rhs == '\"' ) 1308: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED rhs++; 130c: 05f63001 ldrbeq r3, [r6, #1]! <== NOT EXECUTED for ( d=value ; *rhs ; ) 1310: e3530000 cmp r3, #0 <== NOT EXECUTED 1314: 01a02004 moveq r2, r4 <== NOT EXECUTED 1318: 0a000004 beq 1330 <== NOT EXECUTED 131c: e1a02004 mov r2, r4 <== NOT EXECUTED *d++ = *rhs++; 1320: e4c23001 strb r3, [r2], #1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 1324: e5f63001 ldrb r3, [r6, #1]! <== NOT EXECUTED 1328: e3530000 cmp r3, #0 <== NOT EXECUTED 132c: 1afffffb bne 1320 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 1330: e5523001 ldrb r3, [r2, #-1] <== NOT EXECUTED 1334: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 1338: 02422001 subeq r2, r2, #1 <== NOT EXECUTED d--; *d = '\0'; 133c: e3a03000 mov r3, #0 <== NOT EXECUTED 1340: e5c23000 strb r3, [r2] <== NOT EXECUTED return value; } 1344: e1a00004 mov r0, r4 <== NOT EXECUTED 1348: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0000ce34 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ce34: e92d4010 push {r4, lr} <== NOT EXECUTED ce38: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ce3c: e59f0018 ldr r0, [pc, #24] ; ce5c <== NOT EXECUTED ce40: eb000006 bl ce60 <== NOT EXECUTED ce44: e2504000 subs r4, r0, #0 <== NOT EXECUTED ce48: 0a000001 beq ce54 <== NOT EXECUTED { errno = rc; ce4c: eb00025b bl d7c0 <__errno> <== NOT EXECUTED ce50: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } ce54: e3e00000 mvn r0, #0 <== NOT EXECUTED ce58: e8bd8010 pop {r4, pc} <== NOT EXECUTED ce5c: 00019d3c .word 0x00019d3c 00006534 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 6534: e92d000e push {r1, r2, r3} <== NOT EXECUTED 6538: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 653c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 6540: e28d300c add r3, sp, #12 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 6544: e1a02003 mov r2, r3 <== NOT EXECUTED 6548: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); 654c: e58d3000 str r3, [sp] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 6550: ebffff81 bl 635c <== NOT EXECUTED va_end(arglist); return chars_written; } 6554: e28dd004 add sp, sp, #4 <== NOT EXECUTED 6558: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 655c: e28dd00c add sp, sp, #12 <== NOT EXECUTED 6560: e12fff1e bx lr <== NOT EXECUTED 0000121c : } int rtems_filesystem_dirname( const char *pathname ) { 121c: e92d4010 push {r4, lr} 1220: e1a04000 mov r4, r0 int len = strlen( pathname ); 1224: eb003556 bl e784 while ( len ) { 1228: e3500000 cmp r0, #0 int rtems_filesystem_dirname( const char *pathname ) { int len = strlen( pathname ); 122c: e1a02000 mov r2, r0 while ( len ) { 1230: 08bd8010 popeq {r4, pc} len--; 1234: e2400001 sub r0, r0, #1 if ( rtems_filesystem_is_separator( pathname[len] ) ) 1238: e7d43000 ldrb r3, [r4, r0] 123c: e353002f cmp r3, #47 ; 0x2f 1240: 1353005c cmpne r3, #92 ; 0x5c 1244: 08bd8010 popeq {r4, pc} 1248: e3530000 cmp r3, #0 124c: 10844002 addne r4, r4, r2 1250: 1a000008 bne 1278 1254: e8bd8010 pop {r4, pc} <== NOT EXECUTED 1258: e5543002 ldrb r3, [r4, #-2] 125c: e353002f cmp r3, #47 ; 0x2f 1260: 1353005c cmpne r3, #92 ; 0x5c ) { int len = strlen( pathname ); while ( len ) { len--; 1264: e2400001 sub r0, r0, #1 if ( rtems_filesystem_is_separator( pathname[len] ) ) 1268: 08bd8010 popeq {r4, pc} 126c: e3530000 cmp r3, #0 1270: e2444001 sub r4, r4, #1 1274: 08bd8010 popeq {r4, pc} const char *pathname ) { int len = strlen( pathname ); while ( len ) { 1278: e3500000 cmp r0, #0 127c: 1afffff5 bne 1258 if ( rtems_filesystem_is_separator( pathname[len] ) ) break; } return len; } 1280: e8bd8010 pop {r4, pc} <== NOT EXECUTED 00001374 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 1374: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Verify Input parameters. */ if ( !pathname ) 1378: e2505000 subs r5, r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 137c: e1a07001 mov r7, r1 1380: e1a06002 mov r6, r2 1384: e1a0c003 mov ip, r3 1388: e59d8020 ldr r8, [sp, #32] /* * Verify Input parameters. */ if ( !pathname ) 138c: 0a000029 beq 1438 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 1390: e3530000 cmp r3, #0 1394: 0a000022 beq 1424 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 1398: e5d53000 ldrb r3, [r5] 139c: e353002f cmp r3, #47 ; 0x2f 13a0: 1353005c cmpne r3, #92 ; 0x5c 13a4: 13a04000 movne r4, #0 13a8: 03a04001 moveq r4, #1 13ac: 1a000010 bne 13f4 13b0: e59f3090 ldr r3, [pc, #144] ; 1448 13b4: e5934000 ldr r4, [r3] 13b8: e2844018 add r4, r4, #24 13bc: e8b4000f ldm r4!, {r0, r1, r2, r3} 13c0: e1a0900c mov r9, ip 13c4: e8a9000f stmia r9!, {r0, r1, r2, r3} 13c8: e5942000 ldr r2, [r4] 13cc: e3a04001 mov r4, #1 13d0: e5892000 str r2, [r9] 13d4: e1a01004 mov r1, r4 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 13d8: e0850004 add r0, r5, r4 13dc: e0611007 rsb r1, r1, r7 13e0: e1a02006 mov r2, r6 13e4: e1a0300c mov r3, ip 13e8: e58d8020 str r8, [sp, #32] pathnamelen - i, flags, pathloc, follow_link ); } 13ec: 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], 13f0: eaffffa3 b 1284 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 13f4: e3530000 cmp r3, #0 13f8: 0affffec beq 13b0 13fc: e59f3044 ldr r3, [pc, #68] ; 1448 1400: e593a000 ldr sl, [r3] 1404: e28aa004 add sl, sl, #4 1408: e8ba000f ldm sl!, {r0, r1, r2, r3} 140c: e1a0900c mov r9, ip 1410: e8a9000f stmia r9!, {r0, r1, r2, r3} 1414: e59a2000 ldr r2, [sl] 1418: e1a01004 mov r1, r4 141c: e5892000 str r2, [r9] 1420: eaffffec b 13d8 if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 1424: eb0030e5 bl d7c0 <__errno> <== NOT EXECUTED 1428: e3a03005 mov r3, #5 <== NOT EXECUTED 142c: e5803000 str r3, [r0] <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 1430: e3e00000 mvn r0, #0 1434: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 1438: eb0030e0 bl d7c0 <__errno> 143c: e3a0300e mov r3, #14 1440: e5803000 str r3, [r0] 1444: eafffff9 b 1430 1448: 00019228 .word 0x00019228 00001284 : /* * Verify Input parameters. */ if ( !pathname ) 1284: e3500000 cmp r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 1288: e92d4030 push {r4, r5, lr} 128c: e1a05002 mov r5, r2 1290: e1a04003 mov r4, r3 /* * Verify Input parameters. */ if ( !pathname ) 1294: 0a00002c beq 134c rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 1298: e3530000 cmp r3, #0 129c: 0a00002f beq 1360 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 12a0: e593c00c ldr ip, [r3, #12] 12a4: e59cc000 ldr ip, [ip] 12a8: e35c0000 cmp ip, #0 12ac: 0a000021 beq 1338 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 12b0: e1a0e00f mov lr, pc 12b4: e12fff1c bx ip /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 12b8: e59d200c ldr r2, [sp, #12] 12bc: e2703001 rsbs r3, r0, #1 12c0: 33a03000 movcc r3, #0 12c4: e3520000 cmp r2, #0 12c8: 03a03000 moveq r3, #0 12cc: e3530000 cmp r3, #0 12d0: 08bd8030 popeq {r4, r5, pc} if ( !pathloc->ops->node_type_h ){ 12d4: e594200c ldr r2, [r4, #12] 12d8: e5923010 ldr r3, [r2, #16] 12dc: e3530000 cmp r3, #0 12e0: 0a00000f beq 1324 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 12e4: e1a00004 mov r0, r4 12e8: e1a0e00f mov lr, pc 12ec: e12fff13 bx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 12f0: e2400003 sub r0, r0, #3 12f4: e3500001 cmp r0, #1 12f8: 83a00000 movhi r0, #0 12fc: 88bd8030 pophi {r4, r5, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 1300: e594200c ldr r2, [r4, #12] 1304: e5923034 ldr r3, [r2, #52] ; 0x34 1308: e3530000 cmp r3, #0 130c: 0a000004 beq 1324 * 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 ); 1310: e1a00004 mov r0, r4 1314: e1a01005 mov r1, r5 1318: e1a0e00f mov lr, pc 131c: e12fff13 bx r3 } } return result; } 1320: e8bd8030 pop {r4, r5, pc} if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 1324: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1328: e3530000 cmp r3, #0 <== NOT EXECUTED 132c: 11a00004 movne r0, r4 <== NOT EXECUTED 1330: 11a0e00f movne lr, pc <== NOT EXECUTED 1334: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1338: eb003120 bl d7c0 <__errno> <== NOT EXECUTED 133c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1340: e5803000 str r3, [r0] <== NOT EXECUTED 1344: e3e00000 mvn r0, #0 <== NOT EXECUTED 1348: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 134c: eb00311b bl d7c0 <__errno> <== NOT EXECUTED 1350: e3a0300e mov r3, #14 <== NOT EXECUTED 1354: e5803000 str r3, [r0] <== NOT EXECUTED 1358: e3e00000 mvn r0, #0 <== NOT EXECUTED 135c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 1360: eb003116 bl d7c0 <__errno> <== NOT EXECUTED 1364: e3a03005 mov r3, #5 <== NOT EXECUTED 1368: e5803000 str r3, [r0] <== NOT EXECUTED 136c: e3e00000 mvn r0, #0 <== NOT EXECUTED 1370: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0000108c : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 108c: e92d40f0 push {r4, r5, r6, r7, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 1090: e59f6120 ldr r6, [pc, #288] ; 11b8 1094: e5963000 ldr r3, [r6] 1098: e3a02012 mov r2, #18 109c: e583202c str r2, [r3, #44] ; 0x2c * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 10a0: e24dd01c sub sp, sp, #28 */ rtems_filesystem_umask = 022; init_fs_mount_table(); 10a4: eb0001b9 bl 1790 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 10a8: e59f310c ldr r3, [pc, #268] ; 11bc 10ac: e5933000 ldr r3, [r3] 10b0: e3530000 cmp r3, #0 10b4: 0a000033 beq 1188 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 10b8: e59f3100 ldr r3, [pc, #256] ; 11c0 10bc: e5930000 ldr r0, [r3] status = mount( 10c0: e890100e ldm r0, {r1, r2, r3, ip} 10c4: e28d0018 add r0, sp, #24 10c8: e58dc000 str ip, [sp] 10cc: eb0001b6 bl 17ac &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 10d0: e3700001 cmn r0, #1 10d4: 0a000033 beq 11a8 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 10d8: 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; 10dc: 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; 10e0: e28ee01c add lr, lr, #28 10e4: e8be000f ldm lr!, {r0, r1, r2, r3} 10e8: e287c018 add ip, r7, #24 10ec: e8ac000f stmia ip!, {r0, r1, r2, r3} 10f0: e59e3000 ldr r3, [lr] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 10f4: e3a05000 mov r5, #0 * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 10f8: e28d4004 add r4, sp, #4 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 10fc: e58c3000 str r3, [ip] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 1100: e1c753b0 strh r5, [r7, #48] ; 0x30 * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 1104: e1a03004 mov r3, r4 1108: e3a01001 mov r1, #1 110c: e1a02005 mov r2, r5 1110: e59f00ac ldr r0, [pc, #172] ; 11c4 rtems_filesystem_root = loc; 1114: e1a07004 mov r7, r4 * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 1118: e58d5000 str r5, [sp] 111c: eb000094 bl 1374 rtems_filesystem_root = loc; 1120: e596c000 ldr ip, [r6] 1124: e8b7000f ldm r7!, {r0, r1, r2, r3} 1128: e28cc018 add ip, ip, #24 112c: e8ac000f stmia ip!, {r0, r1, r2, r3} 1130: e5973000 ldr r3, [r7] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 1134: e1a02005 mov r2, r5 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 1138: e58c3000 str r3, [ip] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 113c: e3a01001 mov r1, #1 1140: e1a03004 mov r3, r4 1144: e59f0078 ldr r0, [pc, #120] ; 11c4 1148: e58d5000 str r5, [sp] 114c: eb000088 bl 1374 rtems_filesystem_current = loc; 1150: e596c000 ldr ip, [r6] 1154: e8b4000f ldm r4!, {r0, r1, r2, r3} 1158: e28cc004 add ip, ip, #4 115c: e8ac000f stmia ip!, {r0, r1, r2, r3} 1160: 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); 1164: e3a01f7f mov r1, #508 ; 0x1fc /* 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; 1168: 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); 116c: e2811003 add r1, r1, #3 1170: e59f0050 ldr r0, [pc, #80] ; 11c8 1174: eb000126 bl 1614 if ( status != 0 ) 1178: e1500005 cmp r0, r5 117c: 1a000005 bne 1198 * 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. */ } 1180: e28dd01c add sp, sp, #28 1184: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 1188: e3a004ab mov r0, #-1426063360 ; 0xab000000 <== NOT EXECUTED 118c: e28008cd add r0, r0, #13434880 ; 0xcd0000 <== NOT EXECUTED 1190: e2800001 add r0, r0, #1 <== NOT EXECUTED 1194: eb000f14 bl 4dec <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 1198: e3a004ab mov r0, #-1426063360 ; 0xab000000 <== NOT EXECUTED 119c: e28008cd add r0, r0, #13434880 ; 0xcd0000 <== NOT EXECUTED 11a0: e2800003 add r0, r0, #3 <== NOT EXECUTED 11a4: eb000f10 bl 4dec <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 11a8: e3a004ab mov r0, #-1426063360 ; 0xab000000 <== NOT EXECUTED 11ac: e28008cd add r0, r0, #13434880 ; 0xcd0000 <== NOT EXECUTED 11b0: e2800002 add r0, r0, #2 <== NOT EXECUTED 11b4: eb000f0c bl 4dec <== NOT EXECUTED 11b8: 00019228 .word 0x00019228 11bc: 000197e0 .word 0x000197e0 11c0: 00019098 .word 0x00019098 11c4: 0001a1d4 .word 0x0001a1d4 11c8: 0001a1d8 .word 0x0001a1d8 00008ef0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 8ef0: e5903000 ldr r3, [r0] <== NOT EXECUTED 8ef4: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 8ef8: e1530000 cmp r3, r0 <== NOT EXECUTED 8efc: 13a00000 movne r0, #0 <== NOT EXECUTED 8f00: 03a00001 moveq r0, #1 <== NOT EXECUTED 8f04: e12fff1e bx lr <== NOT EXECUTED 000011cc : { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 11cc: e5d02000 ldrb r2, [r0] 11d0: e3510000 cmp r1, #0 11d4: 13520000 cmpne r2, #0 int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 11d8: e1a03000 mov r3, r0 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 11dc: 0a00000c beq 1214 11e0: e352002f cmp r2, #47 ; 0x2f 11e4: 1352005c cmpne r2, #92 ; 0x5c 11e8: 1a000009 bne 1214 11ec: e3a00000 mov r0, #0 { pathname++; pathnamelen--; stripped++; 11f0: e2800001 add r0, r0, #1 { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 11f4: e7d32000 ldrb r2, [r3, r0] 11f8: e1510000 cmp r1, r0 11fc: 13520000 cmpne r2, #0 1200: 012fff1e bxeq lr 1204: e352002f cmp r2, #47 ; 0x2f 1208: 1352005c cmpne r2, #92 ; 0x5c 120c: 0afffff7 beq 11f0 1210: e12fff1e bx lr 1214: e3a00000 mov r0, #0 <== NOT EXECUTED pathname++; pathnamelen--; stripped++; } return stripped; } 1218: e12fff1e bx lr <== NOT EXECUTED 00000f40 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { f40: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED f44: e24dd018 sub sp, sp, #24 <== NOT EXECUTED f48: e1a06001 mov r6, r1 <== NOT EXECUTED f4c: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); f50: eb00360b bl e784 <== NOT EXECUTED f54: e28d4004 add r4, sp, #4 <== NOT EXECUTED f58: e1a01000 mov r1, r0 <== NOT EXECUTED f5c: e3a02000 mov r2, #0 <== NOT EXECUTED f60: e1a03004 mov r3, r4 <== NOT EXECUTED f64: e3a0c001 mov ip, #1 <== NOT EXECUTED f68: e1a00005 mov r0, r5 <== NOT EXECUTED f6c: e58dc000 str ip, [sp] <== NOT EXECUTED f70: eb0000ff bl 1374 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { f74: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED f78: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED f7c: e3530000 cmp r3, #0 <== 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 ); f80: e1a07000 mov r7, r0 <== NOT EXECUTED the_jnode = loc.node_access; f84: e59d8004 ldr r8, [sp, #4] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { f88: 0a000013 beq fdc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); f8c: e1a00004 mov r0, r4 <== NOT EXECUTED f90: e1a0e00f mov lr, pc <== NOT EXECUTED f94: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { f98: e3570000 cmp r7, #0 <== NOT EXECUTED f9c: 03500002 cmpeq r0, #2 <== NOT EXECUTED fa0: 03a07000 moveq r7, #0 <== NOT EXECUTED fa4: 13a07001 movne r7, #1 <== NOT EXECUTED fa8: 0a000015 beq 1004 <_irq_stack_size+0x4> <== NOT EXECUTED rtems_filesystem_freenode( &loc ); fac: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED fb0: e3530000 cmp r3, #0 <== NOT EXECUTED fb4: 0a000025 beq 1050 <_irq_stack_size+0x50> <== NOT EXECUTED fb8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED fbc: e3530000 cmp r3, #0 <== NOT EXECUTED fc0: 0a000022 beq 1050 <_irq_stack_size+0x50> <== NOT EXECUTED fc4: e1a00004 mov r0, r4 <== NOT EXECUTED fc8: e1a0e00f mov lr, pc <== NOT EXECUTED fcc: e12fff13 bx r3 <== NOT EXECUTED fd0: e3a0000d mov r0, #13 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } fd4: e28dd018 add sp, sp, #24 <== NOT EXECUTED fd8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); fdc: e592301c ldr r3, [r2, #28] <== NOT EXECUTED fe0: e3530000 cmp r3, #0 <== NOT EXECUTED fe4: 11a00004 movne r0, r4 <== NOT EXECUTED fe8: 11a0e00f movne lr, pc <== NOT EXECUTED fec: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ff0: eb0031f2 bl d7c0 <__errno> <== NOT EXECUTED ff4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED ff8: e5803000 str r3, [r0] <== NOT EXECUTED ffc: e3e00000 mvn r0, #0 <== NOT EXECUTED 1000: eafffff3 b fd4 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 1004: e5865000 str r5, [r6] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 1008: e1a00005 mov r0, r5 <== NOT EXECUTED 100c: eb0035dc bl e784 <== NOT EXECUTED 1010: e5860004 str r0, [r6, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 1014: e5983050 ldr r3, [r8, #80] ; 0x50 <== NOT EXECUTED 1018: e5863008 str r3, [r6, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 101c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; 1020: e5982054 ldr r2, [r8, #84] ; 0x54 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1024: e3530000 cmp r3, #0 <== NOT EXECUTED } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; 1028: e586200c str r2, [r6, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 102c: 0a000009 beq 1058 <_irq_stack_size+0x58> <== NOT EXECUTED 1030: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1034: e3530000 cmp r3, #0 <== NOT EXECUTED 1038: 0a000006 beq 1058 <_irq_stack_size+0x58> <== NOT EXECUTED 103c: e1a00004 mov r0, r4 <== NOT EXECUTED 1040: e1a0e00f mov lr, pc <== NOT EXECUTED 1044: e12fff13 bx r3 <== NOT EXECUTED 1048: e1a00007 mov r0, r7 <== NOT EXECUTED 104c: eaffffe0 b fd4 <== NOT EXECUTED 1050: e3a0000d mov r0, #13 <== NOT EXECUTED 1054: eaffffde b fd4 <== NOT EXECUTED 1058: e3a00000 mov r0, #0 <== NOT EXECUTED 105c: eaffffdc b fd4 <== NOT EXECUTED 00006988 : rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 6988: e59f3144 ldr r3, [pc, #324] ; 6ad4 698c: e593c000 ldr ip, [r3] rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; 6990: e59f3140 ldr r3, [pc, #320] ; 6ad8 if ( rtems_interrupt_is_in_progress() ) 6994: e35c0000 cmp ip, #0 rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 6998: e92d4010 push {r4, lr} 699c: e1a04000 mov r4, r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; 69a0: e5930000 ldr r0, [r3] if ( rtems_interrupt_is_in_progress() ) 69a4: 13a00012 movne r0, #18 69a8: 18bd8010 popne {r4, pc} return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 69ac: e3520000 cmp r2, #0 69b0: 0a00003c beq 6aa8 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) 69b4: e3510000 cmp r1, #0 if ( registered_major == NULL ) return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 69b8: e5820000 str r0, [r2] if ( driver_table == NULL ) 69bc: 0a000039 beq 6aa8 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 69c0: e591c000 ldr ip, [r1] 69c4: e35c0000 cmp ip, #0 69c8: 0a000033 beq 6a9c return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 69cc: e1500004 cmp r0, r4 69d0: 93a0000a movls r0, #10 69d4: 98bd8010 popls {r4, pc} rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 69d8: e59f00fc ldr r0, [pc, #252] ; 6adc 69dc: e590c000 ldr ip, [r0] 69e0: e28cc001 add ip, ip, #1 69e4: e580c000 str ip, [r0] return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 69e8: e3540000 cmp r4, #0 69ec: 1a000020 bne 6a74 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 69f0: e593e000 ldr lr, [r3] rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 69f4: e35e0000 cmp lr, #0 69f8: 0a00002c beq 6ab0 69fc: e59f30dc ldr r3, [pc, #220] ; 6ae0 6a00: e593c000 ldr ip, [r3] 6a04: e1a0300c mov r3, ip 6a08: ea000003 b 6a1c 6a0c: e2844001 add r4, r4, #1 6a10: e15e0004 cmp lr, r4 6a14: e2833018 add r3, r3, #24 6a18: 9a000005 bls 6a34 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 6a1c: e5930000 ldr r0, [r3] 6a20: e3500000 cmp r0, #0 6a24: 1afffff8 bne 6a0c 6a28: e5930004 ldr r0, [r3, #4] 6a2c: e3500000 cmp r0, #0 6a30: 1afffff5 bne 6a0c } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) 6a34: e15e0004 cmp lr, r4 6a38: 10843084 addne r3, r4, r4, lsl #1 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 6a3c: e5824000 str r4, [r2] if ( m != n ) 6a40: 108cc183 addne ip, ip, r3, lsl #3 6a44: 0a00001a beq 6ab4 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 6a48: e1a0e001 mov lr, r1 6a4c: e8be000f ldm lr!, {r0, r1, r2, r3} 6a50: e8ac000f stmia ip!, {r0, r1, r2, r3} 6a54: e89e0003 ldm lr, {r0, r1} 6a58: e88c0003 stm ip, {r0, r1} _Thread_Enable_dispatch(); 6a5c: eb00069b bl 84d0 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 6a60: e3a01000 mov r1, #0 6a64: e1a00004 mov r0, r4 6a68: e1a02001 mov r2, r1 } 6a6c: e8bd4010 pop {r4, lr} _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 6a70: ea0023c9 b f99c _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 6a74: e59f3064 ldr r3, [pc, #100] ; 6ae0 6a78: e5933000 ldr r3, [r3] 6a7c: e084c084 add ip, r4, r4, lsl #1 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 6a80: e793018c ldr r0, [r3, ip, lsl #3] 6a84: e3500000 cmp r0, #0 _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 6a88: e083c18c add ip, r3, ip, lsl #3 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 6a8c: 0a00000b beq 6ac0 major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); 6a90: eb00068e bl 84d0 <_Thread_Enable_dispatch> 6a94: e3a0000c mov r0, #12 return RTEMS_RESOURCE_IN_USE; 6a98: e8bd8010 pop {r4, pc} static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 6a9c: e591c004 ldr ip, [r1, #4] 6aa0: e35c0000 cmp ip, #0 6aa4: 1affffc8 bne 69cc _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 6aa8: e3a00009 mov r0, #9 } 6aac: e8bd8010 pop {r4, pc} if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 6ab0: e5824000 str r4, [r2] <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); 6ab4: eb000685 bl 84d0 <_Thread_Enable_dispatch> 6ab8: e3a00005 mov r0, #5 return sc; 6abc: e8bd8010 pop {r4, pc} static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 6ac0: e59c3004 ldr r3, [ip, #4] 6ac4: e3530000 cmp r3, #0 6ac8: 1afffff0 bne 6a90 if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 6acc: e5824000 str r4, [r2] 6ad0: eaffffdc b 6a48 6ad4: 000208bc .word 0x000208bc 6ad8: 00021128 .word 0x00021128 6adc: 0002082c .word 0x0002082c 6ae0: 0002112c .word 0x0002112c 0000144c : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 144c: e92d4010 push {r4, lr} rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 1450: e59f40b4 ldr r4, [pc, #180] ; 150c 1454: e5940000 ldr r0, [r4] 1458: e3500000 cmp r0, #0 * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 145c: e24dd004 sub sp, sp, #4 rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 1460: 0a000016 beq 14c0 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 1464: e3a01040 mov r1, #64 ; 0x40 1468: eb001ed5 bl 8fc4 146c: e59f309c ldr r3, [pc, #156] ; 1510 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 1470: 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, 1474: e5830000 str r0, [r3] 1478: e1a02000 mov r2, r0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 147c: 0a000020 beq 1504 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++) 1480: e5941000 ldr r1, [r4] rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 1484: e59f3088 ldr r3, [pc, #136] ; 1514 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 1488: e3510001 cmp r1, #1 rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 148c: e5830000 str r0, [r3] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 1490: 9a000008 bls 14b8 1494: e2803040 add r3, r0, #64 ; 0x40 1498: e3a02001 mov r2, #1 iop->data1 = iop + 1; 149c: e2822001 add r2, r2, #1 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 14a0: e1520001 cmp r2, r1 iop->data1 = iop + 1; 14a4: e503300c str r3, [r3, #-12] 14a8: e2833040 add r3, r3, #64 ; 0x40 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 14ac: 1afffffa bne 149c 14b0: e2422001 sub r2, r2, #1 14b4: e0802302 add r2, r0, r2, lsl #6 iop->data1 = iop + 1; iop->data1 = NULL; 14b8: e3a03000 mov r3, #0 14bc: e5823034 str r3, [r2, #52] ; 0x34 /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 14c0: e59fc050 ldr ip, [pc, #80] ; 1518 14c4: e59f0050 ldr r0, [pc, #80] ; 151c 14c8: e3a01001 mov r1, #1 14cc: e3a02054 mov r2, #84 ; 0x54 14d0: e3a03000 mov r3, #0 14d4: e58dc000 str ip, [sp] 14d8: eb000c08 bl 4500 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 14dc: e3500000 cmp r0, #0 14e0: 1a000006 bne 1500 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 14e4: e59f3034 ldr r3, [pc, #52] ; 1520 14e8: e5933000 ldr r3, [r3] 14ec: e3530000 cmp r3, #0 (* rtems_fs_init_helper)(); 14f0: 11a0e00f movne lr, pc 14f4: 112fff13 bxne r3 } 14f8: e28dd004 add sp, sp, #4 14fc: e8bd8010 pop {r4, pc} RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); 1500: eb000e39 bl 4dec <== NOT EXECUTED if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 1504: e280001a add r0, r0, #26 <== NOT EXECUTED 1508: eb000e37 bl 4dec <== NOT EXECUTED 150c: 00019090 .word 0x00019090 1510: 0001a8e4 .word 0x0001a8e4 1514: 0001a8e8 .word 0x0001a8e8 1518: 0001a8ec .word 0x0001a8ec 151c: 4c42494f .word 0x4c42494f 1520: 0001908c .word 0x0001908c 00026c08 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 26c08: e92d40f0 push {r4, r5, r6, r7, lr} rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 26c0c: e3a00000 mov r0, #0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 26c10: 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); 26c14: e1a01000 mov r1, r0 26c18: e28d2018 add r2, sp, #24 26c1c: eb0006c6 bl 2873c if (sc != RTEMS_SUCCESSFUL) return sc; 26c20: e2505000 subs r5, r0, #0 26c24: 1a00002d bne 26ce0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 26c28: e59f70f8 ldr r7, [pc, #248] ; 26d28 26c2c: e59f30f8 ldr r3, [pc, #248] ; 26d2c 26c30: e5974000 ldr r4, [r7] 26c34: e1540003 cmp r4, r3 26c38: 0a00002b beq 26cec return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 26c3c: e59f10e8 ldr r1, [pc, #232] ; 26d2c 26c40: e3a02048 mov r2, #72 ; 0x48 26c44: e1a00004 mov r0, r4 26c48: eb006bc3 bl 41b5c rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 26c4c: e59f30dc ldr r3, [pc, #220] ; 26d30 26c50: 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*/ 26c54: e59d3018 ldr r3, [sp, #24] 26c58: e1a0c004 mov ip, r4 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 26c5c: 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*/ 26c60: e48c3018 str r3, [ip], #24 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 26c64: e8be000f ldm lr!, {r0, r1, r2, r3} 26c68: e8ac000f stmia ip!, {r0, r1, r2, r3} 26c6c: 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); 26c70: e3a05000 mov r5, #0 26c74: e28d4004 add r4, sp, #4 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 26c78: 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); 26c7c: e3a01001 mov r1, #1 26c80: e1a03004 mov r3, r4 26c84: e1a02005 mov r2, r5 26c88: e59f00a4 ldr r0, [pc, #164] ; 26d34 rtems_filesystem_root = loc; 26c8c: e1a06004 mov r6, r4 * 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); 26c90: e58d5000 str r5, [sp] 26c94: ebff7a45 bl 55b0 rtems_filesystem_root = loc; 26c98: e597c000 ldr ip, [r7] 26c9c: e8b6000f ldm r6!, {r0, r1, r2, r3} 26ca0: e28cc018 add ip, ip, #24 26ca4: e8ac000f stmia ip!, {r0, r1, r2, r3} 26ca8: e5963000 ldr r3, [r6] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 26cac: 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; 26cb0: e58c3000 str r3, [ip] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 26cb4: e1a02005 mov r2, r5 26cb8: e1a03004 mov r3, r4 26cbc: e59f0070 ldr r0, [pc, #112] ; 26d34 26cc0: e58d5000 str r5, [sp] 26cc4: ebff7a39 bl 55b0 rtems_filesystem_current = loc; 26cc8: e597c000 ldr ip, [r7] 26ccc: e8b4000f ldm r4!, {r0, r1, r2, r3} 26cd0: e28cc004 add ip, ip, #4 26cd4: e8ac000f stmia ip!, {r0, r1, r2, r3} 26cd8: e5963000 ldr r3, [r6] 26cdc: e58c3000 str r3, [ip] return RTEMS_SUCCESSFUL; } 26ce0: e1a00005 mov r0, r5 26ce4: e28dd01c add sp, sp, #28 26ce8: e8bd80f0 pop {r4, r5, r6, r7, pc} sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 26cec: e3a00048 mov r0, #72 ; 0x48 26cf0: ebff7bff bl 5cf4 if (!tmp) 26cf4: e2504000 subs r4, r0, #0 26cf8: 03a0501a moveq r5, #26 26cfc: 0afffff7 beq 26ce0 #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); 26d00: e1a00005 mov r0, r5 26d04: e1a01007 mov r1, r7 26d08: e59f2028 ldr r2, [pc, #40] ; 26d38 26d0c: eb000790 bl 28b54 if (sc != RTEMS_SUCCESSFUL) { 26d10: e2505000 subs r5, r0, #0 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 26d14: 05874000 streq r4, [r7] #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) { 26d18: 0affffc7 beq 26c3c /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 26d1c: e1a00004 mov r0, r4 <== NOT EXECUTED 26d20: ebff7a58 bl 5688 <== NOT EXECUTED return sc; 26d24: eaffffed b 26ce0 <== NOT EXECUTED 26d28: 00058ed8 .word 0x00058ed8 26d2c: 00066e60 .word 0x00066e60 26d30: 00066e48 .word 0x00066e48 26d34: 00064088 .word 0x00064088 26d38: 00026af4 .word 0x00026af4 00026b58 : * 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) { 26b58: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 26b5c: e1a05000 mov r5, r0 <== NOT EXECUTED 26b60: e24dd008 sub sp, sp, #8 <== NOT EXECUTED rtems_status_code sc; rtems_user_env_t * shared_user_env; rtems_id current_task_id; sc=rtems_task_ident(RTEMS_SELF,0,¤t_task_id); 26b64: e3a00000 mov r0, #0 <== NOT EXECUTED 26b68: e1a01000 mov r1, r0 <== NOT EXECUTED 26b6c: e1a0200d mov r2, sp <== NOT EXECUTED 26b70: eb0006f1 bl 2873c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 26b74: e2503000 subs r3, r0, #0 <== NOT EXECUTED 26b78: 1a00000d bne 26bb4 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 26b7c: e59f4078 ldr r4, [pc, #120] ; 26bfc <== NOT EXECUTED 26b80: e5946000 ldr r6, [r4] <== NOT EXECUTED 26b84: e59d3000 ldr r3, [sp] <== NOT EXECUTED 26b88: e5962000 ldr r2, [r6] <== NOT EXECUTED 26b8c: e1520003 cmp r2, r3 <== NOT EXECUTED 26b90: 0a00000a beq 26bc0 <== NOT EXECUTED free_user_env(tmp); }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 26b94: e1a00005 mov r0, r5 <== NOT EXECUTED 26b98: e59f105c ldr r1, [pc, #92] ; 26bfc <== NOT EXECUTED 26b9c: e28d2004 add r2, sp, #4 <== NOT EXECUTED 26ba0: eb00083e bl 28ca0 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 26ba4: e2503000 subs r3, r0, #0 <== NOT EXECUTED 26ba8: 0a00000b beq 26bdc <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 26bac: e59f204c ldr r2, [pc, #76] ; 26c00 <== NOT EXECUTED 26bb0: e5842000 str r2, [r4] <== NOT EXECUTED return sc; } 26bb4: e1a00003 mov r0, r3 <== NOT EXECUTED 26bb8: e28dd008 add sp, sp, #8 <== NOT EXECUTED 26bbc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_current_user_env->task_id==current_task_id) { /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 26bc0: e1a01004 mov r1, r4 <== NOT EXECUTED 26bc4: eb00080f bl 28c08 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 26bc8: e2503000 subs r3, r0, #0 <== NOT EXECUTED 26bcc: 1afffff8 bne 26bb4 <== NOT EXECUTED free_user_env(tmp); 26bd0: e1a00006 mov r0, r6 <== NOT EXECUTED 26bd4: ebffffc6 bl 26af4 <== NOT EXECUTED 26bd8: eaffffed b 26b94 <== NOT EXECUTED sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 26bdc: e59f1018 ldr r1, [pc, #24] ; 26bfc <== NOT EXECUTED 26be0: e59f201c ldr r2, [pc, #28] ; 26c04 <== NOT EXECUTED 26be4: eb0007da bl 28b54 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 26be8: e2503000 subs r3, r0, #0 <== NOT EXECUTED 26bec: 1affffee bne 26bac <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 26bf0: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 26bf4: e5842000 str r2, [r4] <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 26bf8: eaffffed b 26bb4 <== NOT EXECUTED 26bfc: 00058ed8 .word 0x00058ed8 26c00: 00066e60 .word 0x00066e60 26c04: 00026af4 .word 0x00026af4 00005df0 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 5df0: e92d4800 push {fp, lr} <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 5df4: e59f3040 ldr r3, [pc, #64] ; 5e3c <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 5df8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 5dfc: e1a01000 mov r1, r0 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 5e00: e1a0200d mov r2, sp <== NOT EXECUTED 5e04: e5930000 ldr r0, [r3] <== NOT EXECUTED 5e08: eb001705 bl ba24 <_Protected_heap_Get_block_size> <== NOT EXECUTED 5e0c: e3500000 cmp r0, #0 <== NOT EXECUTED 5e10: 0a000007 beq 5e34 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 5e14: e59f3024 ldr r3, [pc, #36] ; 5e40 <== NOT EXECUTED 5e18: e59d0000 ldr r0, [sp] <== NOT EXECUTED 5e1c: e283c024 add ip, r3, #36 ; 0x24 <== NOT EXECUTED 5e20: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 5e24: e09b1000 adds r1, fp, r0 <== NOT EXECUTED 5e28: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED 5e2c: e5831024 str r1, [r3, #36] ; 0x24 <== NOT EXECUTED 5e30: e5832028 str r2, [r3, #40] ; 0x28 <== NOT EXECUTED } } 5e34: e28dd004 add sp, sp, #4 <== NOT EXECUTED 5e38: e8bd8800 pop {fp, pc} <== NOT EXECUTED 5e3c: 00058c0c .word 0x00058c0c 5e40: 00066e1c .word 0x00066e1c 00005e44 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 5e44: e92d4810 push {r4, fp, lr} <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 5e48: e2501000 subs r1, r0, #0 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 5e4c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 5e50: 0a000013 beq 5ea4 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 5e54: e28d2004 add r2, sp, #4 <== NOT EXECUTED 5e58: e3a03000 mov r3, #0 <== NOT EXECUTED 5e5c: 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); 5e60: e59f3044 ldr r3, [pc, #68] ; 5eac <== NOT EXECUTED 5e64: e1a0200d mov r2, sp <== NOT EXECUTED 5e68: e5930000 ldr r0, [r3] <== NOT EXECUTED 5e6c: eb0016ec bl ba24 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 5e70: e59f3038 ldr r3, [pc, #56] ; 5eb0 <== NOT EXECUTED 5e74: e59d4000 ldr r4, [sp] <== NOT EXECUTED 5e78: e283c01c add ip, r3, #28 <== NOT EXECUTED 5e7c: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 5e80: e5930024 ldr r0, [r3, #36] ; 0x24 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 5e84: e09b1004 adds r1, fp, r4 <== NOT EXECUTED 5e88: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 5e8c: e593c018 ldr ip, [r3, #24] <== NOT EXECUTED _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 5e90: e0600001 rsb r0, r0, r1 <== NOT EXECUTED if (current_depth > s->max_depth) 5e94: e150000c cmp r0, ip <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 5e98: e583101c str r1, [r3, #28] <== NOT EXECUTED 5e9c: e5832020 str r2, [r3, #32] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) s->max_depth = current_depth; 5ea0: 85830018 strhi r0, [r3, #24] <== NOT EXECUTED } 5ea4: e28dd004 add sp, sp, #4 <== NOT EXECUTED 5ea8: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 5eac: 00058c0c .word 0x00058c0c 5eb0: 00066e1c .word 0x00066e1c 00005eb4 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 5eb4: e59f1038 ldr r1, [pc, #56] ; 5ef4 <== NOT EXECUTED 5eb8: e3a02000 mov r2, #0 <== NOT EXECUTED 5ebc: e1a03001 mov r3, r1 <== NOT EXECUTED 5ec0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ec4: e2833004 add r3, r3, #4 <== NOT EXECUTED 5ec8: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ecc: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ed0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ed4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ed8: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5edc: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ee0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ee4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 5ee8: e5812004 str r2, [r1, #4] <== NOT EXECUTED 5eec: e5832000 str r2, [r3] <== NOT EXECUTED } 5ef0: e12fff1e bx lr <== NOT EXECUTED 5ef4: 00066e1c .word 0x00066e1c 00006500 : void rtems_panic( const char *printf_format, ... ) { 6500: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 6504: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 6508: e24dd004 sub sp, sp, #4 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); 650c: e28d300c add r3, sp, #12 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 6510: e1a02003 mov r2, r3 <== NOT EXECUTED 6514: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 6518: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 651c: e58d3000 str r3, [sp] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 6520: ebffff8d bl 635c <== NOT EXECUTED va_end(arglist); } 6524: e28dd004 add sp, sp, #4 <== NOT EXECUTED 6528: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 652c: e28dd010 add sp, sp, #16 <== NOT EXECUTED 6530: e12fff1e bx lr <== NOT EXECUTED 0000b3b8 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { b3b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) if (!rtems_pipe_configured) b3bc: e59f3054 ldr r3, [pc, #84] ; b418 b3c0: e5d33000 ldrb r3, [r3] b3c4: e3530000 cmp r3, #0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { b3c8: e24dd004 sub sp, sp, #4 if (!rtems_pipe_configured) b3cc: 0a000003 beq b3e0 return; if (rtems_pipe_semaphore) b3d0: e59fc044 ldr ip, [pc, #68] ; b41c <== NOT EXECUTED b3d4: e59c3000 ldr r3, [ip] <== NOT EXECUTED b3d8: e3530000 cmp r3, #0 <== NOT EXECUTED b3dc: 0a000001 beq b3e8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } b3e0: e28dd004 add sp, sp, #4 b3e4: e8bd8000 pop {pc} if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( b3e8: e59f0030 ldr r0, [pc, #48] ; b420 <== NOT EXECUTED b3ec: e3a01001 mov r1, #1 <== NOT EXECUTED b3f0: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED b3f4: e58dc000 str ip, [sp] <== NOT EXECUTED b3f8: ebffe440 bl 4500 <== 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) b3fc: e3500000 cmp r0, #0 <== NOT EXECUTED b400: 1a000003 bne b414 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); b404: ebffe330 bl 40cc <== NOT EXECUTED rtems_pipe_no = now; b408: e59f3014 ldr r3, [pc, #20] ; b424 <== NOT EXECUTED b40c: e1c300b0 strh r0, [r3] <== NOT EXECUTED b410: eafffff2 b b3e0 <== NOT EXECUTED sc = rtems_semaphore_create( rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); b414: ebffe674 bl 4dec <== NOT EXECUTED b418: 0001a704 .word 0x0001a704 b41c: 0001a860 .word 0x0001a860 b420: 50495045 .word 0x50495045 b424: 0001a866 .word 0x0001a866 00003c50 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 3c50: e92d4830 push {r4, r5, fp, lr} Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 3c54: e59f4078 ldr r4, [pc, #120] ; 3cd4 3c58: e5943000 ldr r3, [r4] ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 3c5c: e59300c8 ldr r0, [r3, #200] ; 0xc8 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 3c60: e28db00c add fp, sp, #12 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 3c64: e15b0000 cmp fp, r0 3c68: 33a05000 movcc r5, #0 3c6c: 3a000004 bcc 3c84 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 3c70: e59350c4 ldr r5, [r3, #196] ; 0xc4 3c74: e0805005 add r5, r0, r5 3c78: e15b0005 cmp fp, r5 3c7c: 83a05000 movhi r5, #0 3c80: 93a05001 movls r5, #1 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 3c84: e59f304c ldr r3, [pc, #76] ; 3cd8 3c88: e5933000 ldr r3, [r3] 3c8c: e3530000 cmp r3, #0 3c90: 03a01001 moveq r1, #1 3c94: 0a000005 beq 3cb0 pattern_ok = (!memcmp( 3c98: e59f103c ldr r1, [pc, #60] ; 3cdc 3c9c: e2800008 add r0, r0, #8 3ca0: e3a02010 mov r2, #16 3ca4: eb00f782 bl 41ab4 3ca8: e2701001 rsbs r1, r0, #1 3cac: 33a01000 movcc r1, #0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 3cb0: e3550000 cmp r5, #0 3cb4: 0a000002 beq 3cc4 3cb8: e3510000 cmp r1, #0 3cbc: 13a00000 movne r0, #0 3cc0: 18bd8830 popne {r4, r5, fp, pc} return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 3cc4: e5940000 ldr r0, [r4] <== NOT EXECUTED 3cc8: ebffffb3 bl 3b9c <== NOT EXECUTED 3ccc: e3a00001 mov r0, #1 <== NOT EXECUTED return true; } 3cd0: e8bd8830 pop {r4, r5, fp, pc} <== NOT EXECUTED 3cd4: 00067040 .word 0x00067040 3cd8: 00064310 .word 0x00064310 3cdc: 00066dec .word 0x00066dec 00003b8c : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 3b8c: e59f1004 ldr r1, [pc, #4] ; 3b98 <== NOT EXECUTED 3b90: e3a00000 mov r0, #0 <== NOT EXECUTED 3b94: eaffffe3 b 3b28 <== NOT EXECUTED 3b98: 000068d4 .word 0x000068d4 00003b28 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 3b28: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED print_context = context; 3b2c: e59f4048 ldr r4, [pc, #72] ; 3b7c <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 3b30: e1a05001 mov r5, r1 <== NOT EXECUTED 3b34: e1a06000 mov r6, r0 <== NOT EXECUTED print_context = context; print_handler = print; 3b38: 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; 3b3c: e5840008 str r0, [r4, #8] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 3b40: e59f1038 ldr r1, [pc, #56] ; 3b80 <== NOT EXECUTED 3b44: e1a0e00f mov lr, pc <== NOT EXECUTED 3b48: e12fff15 bx r5 <== NOT EXECUTED (*print)( context, 3b4c: e59f1030 ldr r1, [pc, #48] ; 3b84 <== NOT EXECUTED 3b50: e1a00006 mov r0, r6 <== NOT EXECUTED 3b54: e1a0e00f mov lr, pc <== NOT EXECUTED 3b58: e12fff15 bx r5 <== NOT EXECUTED " ID NAME LOW HIGH CURRENT AVAILABLE USED\n" ); /* iterate over all threads and dump the usage */ rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage ); 3b5c: e59f0024 ldr r0, [pc, #36] ; 3b88 <== NOT EXECUTED 3b60: eb001d63 bl b0f4 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 3b64: e3e00000 mvn r0, #0 <== NOT EXECUTED 3b68: ebffff9d bl 39e4 <== NOT EXECUTED print_context = NULL; 3b6c: e3a03000 mov r3, #0 <== NOT EXECUTED print_handler = NULL; 3b70: 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; 3b74: e5843008 str r3, [r4, #8] <== NOT EXECUTED print_handler = NULL; } 3b78: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3b7c: 00064310 .word 0x00064310 3b80: 0005d5e4 .word 0x0005d5e4 3b84: 0005d5fc .word 0x0005d5fc 3b88: 000039e4 .word 0x000039e4 00003ce0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 3ce0: e92d4810 push {r4, fp, lr} Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; 3ce4: e59030c8 ldr r3, [r0, #200] ; 0xc8 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 3ce8: e28db008 add fp, sp, #8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 3cec: e15b0003 cmp fp, r3 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 3cf0: e1a04000 mov r4, r0 Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; 3cf4: e2830008 add r0, r3, #8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 3cf8: 3a000003 bcc 3d0c void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; 3cfc: e59420c4 ldr r2, [r4, #196] ; 0xc4 3d00: e0833002 add r3, r3, r2 3d04: e15b0003 cmp fp, r3 3d08: 9a000007 bls 3d2c /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 3d0c: e59f1034 ldr r1, [pc, #52] ; 3d48 <== NOT EXECUTED 3d10: e3a02010 mov r2, #16 <== NOT EXECUTED 3d14: eb00f766 bl 41ab4 <== NOT EXECUTED 3d18: e2701001 rsbs r1, r0, #1 <== NOT EXECUTED 3d1c: 33a01000 movcc r1, #0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 3d20: e1a00004 mov r0, r4 } } 3d24: e8bd4810 pop {r4, fp, lr} pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 3d28: eaffff9b b 3b9c /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 3d2c: e59f1014 ldr r1, [pc, #20] ; 3d48 3d30: e3a02010 mov r2, #16 3d34: eb00f75e bl 41ab4 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 3d38: e3500000 cmp r0, #0 3d3c: 13a01000 movne r1, #0 3d40: 1afffff6 bne 3d20 3d44: e8bd8810 pop {r4, fp, pc} 3d48: 00066dec .word 0x00066dec 0000ae20 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ae20: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ae24: e2514000 subs r4, r1, #0 <== NOT EXECUTED #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ae28: e1a07000 mov r7, r0 <== NOT EXECUTED ae2c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED ae30: e1a08002 mov r8, r2 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ae34: 03a00009 moveq r0, #9 <== NOT EXECUTED ae38: 0a00001a beq aea8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; ae3c: eb000dbe bl e53c <__errno> <== NOT EXECUTED ae40: e3a03000 mov r3, #0 <== NOT EXECUTED ae44: e5803000 str r3, [r0] <== NOT EXECUTED *n = 0; ae48: e3a02000 mov r2, #0 <== NOT EXECUTED ae4c: e3a03000 mov r3, #0 <== NOT EXECUTED ae50: e884000c stm r4, {r2, r3} <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ae54: e1a00007 mov r0, r7 <== NOT EXECUTED ae58: e1a0100d mov r1, sp <== NOT EXECUTED ae5c: eb00192d bl 11318 <== 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 ) ae60: e3580000 cmp r8, #0 <== NOT EXECUTED *endptr = end; ae64: 159d3000 ldrne r3, [sp] <== NOT EXECUTED ae68: 059d3000 ldreq r3, [sp] <== NOT EXECUTED ae6c: 15883000 strne r3, [r8] <== NOT EXECUTED /* nothing was converted */ if ( end == s ) ae70: e1530007 cmp r3, r7 <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ae74: e1a05000 mov r5, r0 <== NOT EXECUTED ae78: e1a06001 mov r6, r1 <== NOT EXECUTED /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) ae7c: 03a0000b moveq r0, #11 <== NOT EXECUTED ae80: 0a000008 beq aea8 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ae84: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED ae88: e1a00005 mov r0, r5 <== NOT EXECUTED ae8c: e2422601 sub r2, r2, #1048576 ; 0x100000 <== NOT EXECUTED ae90: e3e03000 mvn r3, #0 <== NOT EXECUTED ae94: ebffe007 bl 2eb8 <__gedf2> <== NOT EXECUTED ae98: e3500000 cmp r0, #0 <== NOT EXECUTED ae9c: ca000003 bgt aeb0 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; aea0: e8840060 stm r4, {r5, r6} <== NOT EXECUTED aea4: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } aea8: e28dd004 add sp, sp, #4 <== NOT EXECUTED aeac: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) aeb0: eb000da1 bl e53c <__errno> <== NOT EXECUTED aeb4: e5903000 ldr r3, [r0] <== NOT EXECUTED aeb8: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED aebc: 03a0000a moveq r0, #10 <== NOT EXECUTED aec0: 1afffff6 bne aea0 <== NOT EXECUTED aec4: eafffff7 b aea8 <== NOT EXECUTED 0000aec8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { aec8: e92d40f0 push {r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) aecc: e2515000 subs r5, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { aed0: e1a04000 mov r4, r0 aed4: e24dd004 sub sp, sp, #4 aed8: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) aedc: 03a00009 moveq r0, #9 aee0: 0a000017 beq af44 return RTEMS_INVALID_ADDRESS; errno = 0; aee4: eb000d94 bl e53c <__errno> aee8: e3a03000 mov r3, #0 aeec: e5803000 str r3, [r0] *n = 0; aef0: e3a03000 mov r3, #0 aef4: e5853000 str r3, [r5] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); aef8: e1a00004 mov r0, r4 aefc: e1a0100d mov r1, sp af00: eb0018f1 bl 112cc #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 ) af04: e3560000 cmp r6, #0 *endptr = end; af08: 159d3000 ldrne r3, [sp] af0c: 059d3000 ldreq r3, [sp] af10: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) af14: e1530004 cmp r3, r4 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); af18: e1a07000 mov r7, r0 /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) af1c: 03a0000b moveq r0, #11 af20: 0a000007 beq af44 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) af24: e3e01102 mvn r1, #-2147483648 ; 0x80000000 af28: e1a00007 mov r0, r7 af2c: e2411502 sub r1, r1, #8388608 ; 0x800000 af30: ebffe02b bl 2fe4 <__gesf2> af34: e3500000 cmp r0, #0 af38: ca000003 bgt af4c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; af3c: e5857000 str r7, [r5] af40: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } af44: e28dd004 add sp, sp, #4 af48: e8bd80f0 pop {r4, r5, r6, r7, pc} return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) af4c: eb000d7a bl e53c <__errno> <== NOT EXECUTED af50: e5903000 ldr r3, [r0] <== NOT EXECUTED af54: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED af58: 03a0000a moveq r0, #10 <== NOT EXECUTED af5c: 1afffff6 bne af3c <== NOT EXECUTED af60: eafffff7 b af44 <== NOT EXECUTED 0001c860 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 1c860: e92d40f0 push {r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 1c864: e2515000 subs r5, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 1c868: e1a04000 mov r4, r0 1c86c: e24dd004 sub sp, sp, #4 1c870: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 1c874: 03a00009 moveq r0, #9 1c878: 0a000013 beq 1c8cc return RTEMS_INVALID_ADDRESS; errno = 0; 1c87c: eb008885 bl 3ea98 <__errno> 1c880: e3a03000 mov r3, #0 1c884: e5803000 str r3, [r0] *n = 0; 1c888: e5853000 str r3, [r5] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 1c88c: e1a00004 mov r0, r4 1c890: e1a0100d mov r1, sp 1c894: e3a02010 mov r2, #16 1c898: eb00a825 bl 46934 #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 ) 1c89c: e3560000 cmp r6, #0 *endptr = end; 1c8a0: 159d3000 ldrne r3, [sp] 1c8a4: 059d3000 ldreq r3, [sp] 1c8a8: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) 1c8ac: e1530004 cmp r3, r4 *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 1c8b0: e1a07000 mov r7, r0 /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 1c8b4: 03a0000b moveq r0, #11 1c8b8: 0a000003 beq 1c8cc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 1c8bc: e3770001 cmn r7, #1 1c8c0: 0a000003 beq 1c8d4 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 1c8c4: e5857000 str r7, [r5] 1c8c8: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 1c8cc: e28dd004 add sp, sp, #4 1c8d0: e8bd80f0 pop {r4, r5, r6, r7, pc} return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 1c8d4: eb00886f bl 3ea98 <__errno> <== NOT EXECUTED 1c8d8: e5903000 ldr r3, [r0] <== NOT EXECUTED 1c8dc: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 1c8e0: 03a0000a moveq r0, #10 <== NOT EXECUTED 1c8e4: 1afffff6 bne 1c8c4 <== NOT EXECUTED 1c8e8: eafffff7 b 1c8cc <== NOT EXECUTED 00003614 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 3614: e3500009 cmp r0, #9 3618: 012fff1e bxeq lr 361c: da000013 ble 3670 3620: e350000e cmp r0, #14 <== NOT EXECUTED 3624: 012fff1e bxeq lr <== NOT EXECUTED 3628: da00001b ble 369c <== NOT EXECUTED 362c: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED 3630: e2833002 add r3, r3, #2 <== NOT EXECUTED 3634: 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; 3638: 03a00011 moveq r0, #17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 363c: 012fff1e bxeq lr <== NOT EXECUTED 3640: da000028 ble 36e8 <== NOT EXECUTED 3644: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED 3648: e2833003 add r3, r3, #3 <== NOT EXECUTED 364c: 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; 3650: 03a00012 moveq r0, #18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 3654: 012fff1e bxeq lr <== NOT EXECUTED 3658: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED 365c: e2833004 add r3, r3, #4 <== NOT EXECUTED 3660: e1500003 cmp r0, r3 <== NOT EXECUTED 3664: 1a00001d bne 36e0 <== NOT EXECUTED case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; 3668: e3a00013 mov r0, #19 <== NOT EXECUTED case B460800: baud_index = 19; break; 366c: e12fff1e bx lr <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 3670: e3500004 cmp r0, #4 3674: 012fff1e bxeq lr 3678: ca000010 bgt 36c0 367c: e3500001 cmp r0, #1 3680: 012fff1e bxeq lr 3684: da00001f ble 3708 3688: e3500002 cmp r0, #2 <== NOT EXECUTED 368c: 012fff1e bxeq lr <== NOT EXECUTED 3690: e3500003 cmp r0, #3 <== NOT EXECUTED 3694: 1a000011 bne 36e0 <== NOT EXECUTED 3698: e12fff1e bx lr <== NOT EXECUTED 369c: e350000b cmp r0, #11 <== NOT EXECUTED 36a0: 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; 36a4: b3a0000a movlt r0, #10 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 36a8: b12fff1e bxlt lr <== NOT EXECUTED 36ac: e350000c cmp r0, #12 <== NOT EXECUTED 36b0: 012fff1e bxeq lr <== NOT EXECUTED 36b4: e350000d cmp r0, #13 <== NOT EXECUTED 36b8: 1a000008 bne 36e0 <== NOT EXECUTED 36bc: e12fff1e bx lr <== NOT EXECUTED 36c0: e3500006 cmp r0, #6 <== NOT EXECUTED 36c4: 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; 36c8: b3a00005 movlt r0, #5 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 36cc: b12fff1e bxlt lr <== NOT EXECUTED 36d0: e3500007 cmp r0, #7 <== NOT EXECUTED 36d4: 012fff1e bxeq lr <== NOT EXECUTED 36d8: e3500008 cmp r0, #8 <== NOT EXECUTED 36dc: 012fff1e bxeq lr <== NOT EXECUTED case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; case B460800: baud_index = 19; break; 36e0: e3e00000 mvn r0, #0 default: baud_index = -1; break; } return baud_index; } 36e4: e12fff1e bx lr rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 36e8: e350000f cmp r0, #15 <== NOT EXECUTED 36ec: 012fff1e bxeq lr <== NOT EXECUTED 36f0: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED 36f4: e2833001 add r3, r3, #1 <== NOT EXECUTED 36f8: e1500003 cmp r0, r3 <== NOT EXECUTED 36fc: 1afffff7 bne 36e0 <== 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; 3700: e3a00010 mov r0, #16 <== NOT EXECUTED case B57600: baud_index = 16; break; 3704: e12fff1e bx lr <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 3708: e3500000 cmp r0, #0 370c: 012fff1e bxeq lr 3710: eafffff2 b 36e0 00002038 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 2038: e59f3008 ldr r3, [pc, #8] ; 2048 <== NOT EXECUTED 203c: 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; } 2040: e3a00000 mov r0, #0 <== NOT EXECUTED 2044: e12fff1e bx lr <== NOT EXECUTED 2048: 00019214 .word 0x00019214 000035e8 : } } rtems_status_code rtems_termios_close (void *arg) { 35e8: e92d4070 push {r4, r5, r6, lr} rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 35ec: e59f51b0 ldr r5, [pc, #432] ; 37a4 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 35f0: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 35f4: e3a01000 mov r1, #0 } } rtems_status_code rtems_termios_close (void *arg) { 35f8: e1a06000 mov r6, r0 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 35fc: e1a02001 mov r2, r1 3600: e5950000 ldr r0, [r5] rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 3604: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3608: eb000457 bl 476c if (sc != RTEMS_SUCCESSFUL) 360c: e3500000 cmp r0, #0 3610: 1a00005f bne 3794 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 3614: e5943008 ldr r3, [r4, #8] 3618: e2433001 sub r3, r3, #1 361c: e3530000 cmp r3, #0 3620: e5843008 str r3, [r4, #8] 3624: 1a00002f bne 36e8 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 3628: e59420cc ldr r2, [r4, #204] ; 0xcc 362c: e59f3174 ldr r3, [pc, #372] ; 37a8 3630: e0833282 add r3, r3, r2, lsl #5 3634: e5931004 ldr r1, [r3, #4] 3638: e3510000 cmp r1, #0 363c: 0a000040 beq 3744 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 3640: e1a00004 mov r0, r4 <== NOT EXECUTED 3644: e1a0e00f mov lr, pc <== NOT EXECUTED 3648: e12fff11 bx r1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 364c: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED 3650: e3530002 cmp r3, #2 <== NOT EXECUTED 3654: 0a000044 beq 376c <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 3658: e594309c ldr r3, [r4, #156] ; 0x9c 365c: e3530000 cmp r3, #0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 3660: 11a02006 movne r2, r6 3664: 1284000c addne r0, r4, #12 3668: 18900003 ldmne r0, {r0, r1} 366c: 11a0e00f movne lr, pc 3670: 112fff13 bxne r3 if (tty->forw == NULL) { 3674: e5943000 ldr r3, [r4] 3678: e3530000 cmp r3, #0 367c: 0a000020 beq 3704 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 3680: e5942004 ldr r2, [r4, #4] 3684: e5832004 str r2, [r3, #4] } if (tty->back == NULL) { 3688: e5942004 ldr r2, [r4, #4] 368c: e3520000 cmp r2, #0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 3690: 15823000 strne r3, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 3694: 0a000025 beq 3730 } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 3698: e5940014 ldr r0, [r4, #20] 369c: eb000409 bl 46c8 rtems_semaphore_delete (tty->osem); 36a0: e5940018 ldr r0, [r4, #24] 36a4: eb000407 bl 46c8 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 36a8: e594008c ldr r0, [r4, #140] ; 0x8c 36ac: eb000405 bl 46c8 if ((tty->device.pollRead == NULL) || 36b0: e59430a0 ldr r3, [r4, #160] ; 0xa0 36b4: e3530000 cmp r3, #0 36b8: 0a00000e beq 36f8 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 36bc: e59430b4 ldr r3, [r4, #180] ; 0xb4 36c0: e3530002 cmp r3, #2 36c4: 0a00000b beq 36f8 rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 36c8: e5940058 ldr r0, [r4, #88] ; 0x58 36cc: eb001677 bl 90b0 free (tty->rawOutBuf.theBuf); 36d0: e594007c ldr r0, [r4, #124] ; 0x7c 36d4: eb001675 bl 90b0 free (tty->cbuf); 36d8: e594001c ldr r0, [r4, #28] 36dc: eb001673 bl 90b0 free (tty); 36e0: e1a00004 mov r0, r4 36e4: eb001671 bl 90b0 } rtems_semaphore_release (rtems_termios_ttyMutex); 36e8: e5950000 ldr r0, [r5] 36ec: eb000466 bl 488c return RTEMS_SUCCESSFUL; } 36f0: e3a00000 mov r0, #0 36f4: e8bd8070 pop {r4, r5, r6, pc} rtems_semaphore_delete (tty->isem); rtems_semaphore_delete (tty->osem); rtems_semaphore_delete (tty->rawOutBuf.Semaphore); if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 36f8: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED 36fc: eb0003f1 bl 46c8 <== NOT EXECUTED 3700: eafffff0 b 36c8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; 3704: e5942004 ldr r2, [r4, #4] 3708: e59f109c ldr r1, [pc, #156] ; 37ac if ( rtems_termios_ttyTail != NULL ) { 370c: e3520000 cmp r2, #0 rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; 3710: e5812000 str r2, [r1] if ( rtems_termios_ttyTail != NULL ) { 3714: 0a00001f beq 3798 rtems_termios_ttyTail->forw = NULL; 3718: e5823000 str r3, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 371c: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 3720: e5943000 ldr r3, [r4] <== NOT EXECUTED 3724: e3520000 cmp r2, #0 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 3728: 15823000 strne r3, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 372c: 1affffd9 bne 3698 <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; 3730: e59f1078 ldr r1, [pc, #120] ; 37b0 if ( rtems_termios_ttyHead != NULL ) { 3734: e3530000 cmp r3, #0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 3738: e5813000 str r3, [r1] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 373c: 15832004 strne r2, [r3, #4] 3740: eaffffd4 b 3698 } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3744: e5940018 ldr r0, [r4, #24] 3748: e1a02001 mov r2, r1 374c: eb000406 bl 476c if (sc != RTEMS_SUCCESSFUL) { 3750: e3500000 cmp r0, #0 3754: 1a00000e bne 3794 rtems_fatal_error_occurred (sc); } drainOutput (tty); 3758: e1a00004 mov r0, r4 375c: ebfffda4 bl 2df4 } if (tty->device.outputUsesInterrupts 3760: e59430b4 ldr r3, [r4, #180] ; 0xb4 3764: e3530002 cmp r3, #2 3768: 1affffba bne 3658 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 376c: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED 3770: e3a01001 mov r1, #1 <== NOT EXECUTED 3774: eb0002d2 bl 42c4 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 3778: e3500000 cmp r0, #0 <== NOT EXECUTED 377c: 1a000004 bne 3794 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 3780: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED 3784: e3a01001 mov r1, #1 <== NOT EXECUTED 3788: eb0002cd bl 42c4 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 378c: e3500000 cmp r0, #0 <== NOT EXECUTED 3790: 0affffb0 beq 3658 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3794: eb000594 bl 4dec <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 3798: e59f3010 ldr r3, [pc, #16] ; 37b0 379c: e5832000 str r2, [r3] 37a0: eaffffbc b 3698 37a4: 0001a928 .word 0x0001a928 37a8: 0001a754 .word 0x0001a754 37ac: 0001a92c .word 0x0001a92c 37b0: 0001a930 .word 0x0001a930 00002268 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2268: e590c090 ldr ip, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 226c: e59020b4 ldr r2, [r0, #180] ; 0xb4 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2270: e08c1001 add r1, ip, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2274: e3520002 cmp r2, #2 <== NOT EXECUTED * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2278: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 227c: e5801090 str r1, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2280: 0a00000b beq 22b4 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 2284: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED 2288: e3530005 cmp r3, #5 <== NOT EXECUTED 228c: 0a000001 beq 2298 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 2290: 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); 2294: eaffff6f b 2058 <== NOT EXECUTED } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2298: e59f302c ldr r3, [pc, #44] ; 22cc <== NOT EXECUTED 229c: e59330b4 ldr r3, [r3, #180] ; 0xb4 <== NOT EXECUTED 22a0: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 22a4: 11a0e00f movne lr, pc <== NOT EXECUTED 22a8: 112fff13 bxne r3 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 22ac: e3a00000 mov r0, #0 <== NOT EXECUTED 22b0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 22b4: e59000c8 ldr r0, [r0, #200] ; 0xc8 <== NOT EXECUTED 22b8: e1a01002 mov r1, r2 <== NOT EXECUTED 22bc: eb000800 bl 42c4 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 22c0: e3500000 cmp r0, #0 <== NOT EXECUTED 22c4: 0afffff8 beq 22ac <== NOT EXECUTED rtems_fatal_error_occurred (sc); 22c8: eb000ac7 bl 4dec <== NOT EXECUTED 22cc: 0001a754 .word 0x0001a754 000022d0 : * 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) { 22d0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 22d4: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED 22d8: e59f82f0 ldr r8, [pc, #752] ; 25d0 <== NOT EXECUTED 22dc: e0883283 add r3, r8, r3, lsl #5 <== NOT EXECUTED 22e0: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED 22e4: e3560000 cmp r6, #0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { 22e8: e24dd00c sub sp, sp, #12 <== NOT EXECUTED 22ec: e1a04000 mov r4, r0 <== NOT EXECUTED 22f0: e1a05001 mov r5, r1 <== NOT EXECUTED 22f4: e1a07002 mov r7, r2 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 22f8: 0a00001e beq 2378 <== NOT EXECUTED while (len--) { 22fc: e3520000 cmp r2, #0 <== NOT EXECUTED 2300: 0a00000b beq 2334 <== NOT EXECUTED 2304: e3a0a000 mov sl, #0 <== NOT EXECUTED 2308: ea000002 b 2318 <== NOT EXECUTED 230c: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED 2310: e0883283 add r3, r8, r3, lsl #5 <== NOT EXECUTED 2314: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2318: e7d5000a ldrb r0, [r5, sl] <== NOT EXECUTED 231c: e1a01004 mov r1, r4 <== NOT EXECUTED 2320: e28aa001 add sl, sl, #1 <== NOT EXECUTED 2324: e1a0e00f mov lr, pc <== NOT EXECUTED 2328: e12fff16 bx r6 <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { 232c: e157000a cmp r7, sl <== NOT EXECUTED 2330: 1afffff5 bne 230c <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2334: e59490e4 ldr r9, [r4, #228] ; 0xe4 <== NOT EXECUTED 2338: e3590000 cmp r9, #0 <== NOT EXECUTED 233c: 1a00000b bne 2370 <== NOT EXECUTED 2340: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED 2344: e3530000 cmp r3, #0 <== NOT EXECUTED 2348: 0a000008 beq 2370 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 234c: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 2350: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED 2354: e1a0e00f mov lr, pc <== NOT EXECUTED 2358: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 235c: e3a03001 mov r3, #1 <== NOT EXECUTED 2360: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 2364: e1a00009 mov r0, r9 <== NOT EXECUTED 2368: e28dd00c add sp, sp, #12 <== NOT EXECUTED 236c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2370: e3a09000 mov r9, #0 <== NOT EXECUTED 2374: eafffffa b 2364 <== 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, 2378: e280304a add r3, r0, #74 ; 0x4a <== NOT EXECUTED 237c: e58d3008 str r3, [sp, #8] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2380: e2803030 add r3, r0, #48 ; 0x30 <== NOT EXECUTED 2384: e58d3004 str r3, [sp, #4] <== NOT EXECUTED 2388: e1a0b006 mov fp, r6 <== NOT EXECUTED 238c: e58d6000 str r6, [sp] <== NOT EXECUTED 2390: ea000036 b 2470 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 2394: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED 2398: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 239c: e2800001 add r0, r0, #1 <== NOT EXECUTED 23a0: eb0052bd bl 16e9c <__umodsi3> <== NOT EXECUTED 23a4: e1a08000 mov r8, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 23a8: e10f9000 mrs r9, CPSR <== NOT EXECUTED 23ac: e3893080 orr r3, r9, #128 ; 0x80 <== NOT EXECUTED 23b0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 23b4: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 23b8: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED 23bc: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 23c0: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 23c4: e0800008 add r0, r0, r8 <== NOT EXECUTED 23c8: eb0052b3 bl 16e9c <__umodsi3> <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 23cc: e59430c0 ldr r3, [r4, #192] ; 0xc0 <== NOT EXECUTED 23d0: e1500003 cmp r0, r3 <== NOT EXECUTED 23d4: 9a000010 bls 241c <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 23d8: 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) 23dc: e3130001 tst r3, #1 <== NOT EXECUTED 23e0: 1a00000d bne 241c <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 23e4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 23e8: e3833001 orr r3, r3, #1 <== NOT EXECUTED 23ec: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 23f0: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 23f4: e3c33fff bic r3, r3, #1020 ; 0x3fc <== NOT EXECUTED 23f8: e3c33001 bic r3, r3, #1 <== NOT EXECUTED 23fc: e1a03a83 lsl r3, r3, #21 <== NOT EXECUTED 2400: e1a03aa3 lsr r3, r3, #21 <== NOT EXECUTED 2404: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED 2408: 0a000057 beq 256c <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 240c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 2410: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 2414: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 2418: 0a000062 beq 25a8 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 241c: e129f009 msr CPSR_fc, r9 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 2420: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 2424: e1530008 cmp r3, r8 <== NOT EXECUTED 2428: 0a00002d beq 24e4 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 242c: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 2430: e7c3a008 strb sl, [r3, r8] <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2434: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED 2438: e3530000 cmp r3, #0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 243c: e5848060 str r8, [r4, #96] ; 0x60 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2440: 1a000008 bne 2468 <== NOT EXECUTED 2444: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED 2448: e3530000 cmp r3, #0 <== NOT EXECUTED 244c: 0a000005 beq 2468 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2450: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED 2454: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED 2458: e1a0e00f mov lr, pc <== NOT EXECUTED 245c: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2460: e3a03001 mov r3, #1 <== NOT EXECUTED 2464: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED 2468: e2866001 add r6, r6, #1 <== NOT EXECUTED 246c: e2477001 sub r7, r7, #1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2470: e3570000 cmp r7, #0 <== NOT EXECUTED 2474: 0a00002d beq 2530 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2478: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 247c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2480: e7d5a006 ldrb sl, [r5, r6] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2484: 0a000005 beq 24a0 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 2488: e5d4304a ldrb r3, [r4, #74] ; 0x4a <== NOT EXECUTED 248c: e153000a cmp r3, sl <== NOT EXECUTED 2490: 0a000017 beq 24f4 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 2494: e5d43049 ldrb r3, [r4, #73] ; 0x49 <== NOT EXECUTED 2498: e153000a cmp r3, sl <== NOT EXECUTED 249c: 0a00001e beq 251c <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 24a0: e35b0000 cmp fp, #0 <== NOT EXECUTED 24a4: 0affffba beq 2394 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 24a8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 24ac: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 24b0: e3530020 cmp r3, #32 <== NOT EXECUTED 24b4: 1affffeb bne 2468 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 24b8: e10f8000 mrs r8, CPSR <== NOT EXECUTED 24bc: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED 24c0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 24c4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 24c8: 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; 24cc: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 24d0: 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; 24d4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 24d8: 1a00001b bne 254c <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 24dc: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED 24e0: eaffffe0 b 2468 <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; 24e4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 24e8: e2833001 add r3, r3, #1 <== NOT EXECUTED 24ec: e58d3000 str r3, [sp] <== NOT EXECUTED 24f0: eaffffdc b 2468 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { 24f4: e5d42049 ldrb r2, [r4, #73] ; 0x49 <== NOT EXECUTED 24f8: e1520003 cmp r2, r3 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 24fc: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2500: 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; 2504: 02233010 eoreq r3, r3, #16 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2508: 13833010 orrne r3, r3, #16 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 250c: 058430b8 streq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2510: 158430b8 strne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2514: e3a0b001 mov fp, #1 <== NOT EXECUTED 2518: eaffffe2 b 24a8 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 251c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 2520: e3c33010 bic r3, r3, #16 <== NOT EXECUTED 2524: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2528: e3a0b001 mov fp, #1 <== NOT EXECUTED 252c: eaffffdd b 24a8 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 2530: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED 2534: e59d9000 ldr r9, [sp] <== NOT EXECUTED 2538: e0833009 add r3, r3, r9 <== NOT EXECUTED 253c: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 2540: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED 2544: eb0008d0 bl 488c <== NOT EXECUTED return dropped; 2548: eaffff85 b 2364 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 254c: 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, 2550: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 2554: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2558: e0811003 add r1, r1, r3 <== NOT EXECUTED 255c: e3a02001 mov r2, #1 <== NOT EXECUTED 2560: e1a0e00f mov lr, pc <== NOT EXECUTED 2564: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 2568: eaffffdb b 24dc <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 256c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 2570: e3130020 tst r3, #32 <== NOT EXECUTED 2574: 1a000002 bne 2584 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 2578: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 257c: e3530000 cmp r3, #0 <== NOT EXECUTED 2580: 1affffa5 bne 241c <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 2584: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 2588: e3833002 orr r3, r3, #2 <== NOT EXECUTED 258c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2590: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2594: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 2598: e3a02001 mov r2, #1 <== NOT EXECUTED 259c: e1a0e00f mov lr, pc <== NOT EXECUTED 25a0: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 25a4: eaffff9c b 241c <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 25a8: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 25ac: 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; 25b0: e3822004 orr r2, r2, #4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 25b4: e3530000 cmp r3, #0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 25b8: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 25bc: 0affff96 beq 241c <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 25c0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 25c4: e1a0e00f mov lr, pc <== NOT EXECUTED 25c8: e12fff13 bx r3 <== NOT EXECUTED 25cc: eaffff92 b 241c <== NOT EXECUTED 25d0: 0001a754 .word 0x0001a754 00001ff0 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 1ff0: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 1ff4: e59fc034 ldr ip, [pc, #52] ; 2030 1ff8: e59c3000 ldr r3, [ip] 1ffc: e3530000 cmp r3, #0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2000: e24dd004 sub sp, sp, #4 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2004: 0a000001 beq 2010 RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 2008: e28dd004 add sp, sp, #4 200c: e8bd8000 pop {pc} /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( 2010: e59f001c ldr r0, [pc, #28] ; 2034 2014: e3a01001 mov r1, #1 2018: e3a02054 mov r2, #84 ; 0x54 201c: e58dc000 str ip, [sp] 2020: eb000936 bl 4500 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) 2024: e3500000 cmp r0, #0 2028: 0afffff6 beq 2008 rtems_fatal_error_occurred (sc); 202c: eb000b6e bl 4dec <== NOT EXECUTED 2030: 0001a928 .word 0x0001a928 2034: 54526d69 .word 0x54526d69 00003208 : rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 3208: e5903000 ldr r3, [r0] struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 320c: e3a01000 mov r1, #0 } } rtems_status_code rtems_termios_ioctl (void *arg) { 3210: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 3214: e580100c str r1, [r0, #12] rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 3218: e5935034 ldr r5, [r3, #52] ; 0x34 } } rtems_status_code rtems_termios_ioctl (void *arg) { 321c: e1a04000 mov r4, r0 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3220: e1a02001 mov r2, r1 3224: e5950018 ldr r0, [r5, #24] rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 3228: e5947008 ldr r7, [r4, #8] rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 322c: eb00054e bl 476c if (sc != RTEMS_SUCCESSFUL) { 3230: e2506000 subs r6, r0, #0 3234: 1a00000e bne 3274 args->ioctl_return = sc; return sc; } switch (args->command) { 3238: e5943004 ldr r3, [r4, #4] 323c: e3530004 cmp r3, #4 3240: 0a000006 beq 3260 3244: 8a00000d bhi 3280 3248: e3530002 cmp r3, #2 324c: 0a000020 beq 32d4 3250: 9a000087 bls 3474 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 3254: e1a00005 mov r0, r5 3258: ebfffee5 bl 2df4 break; 325c: ea000002 b 326c case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 3260: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 3264: e58520dc str r2, [r5, #220] ; 0xdc <== NOT EXECUTED 3268: e58530e0 str r3, [r5, #224] ; 0xe0 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 326c: e5950018 ldr r0, [r5, #24] 3270: eb000585 bl 488c args->ioctl_return = sc; 3274: e584600c str r6, [r4, #12] return sc; } 3278: e1a00006 mov r0, r6 327c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 3280: e3a02a46 mov r2, #286720 ; 0x46000 <== NOT EXECUTED 3284: e2822e67 add r2, r2, #1648 ; 0x670 <== NOT EXECUTED 3288: e282213d add r2, r2, #1073741839 ; 0x4000000f <== NOT EXECUTED 328c: e1530002 cmp r3, r2 <== NOT EXECUTED 3290: 0a00006b beq 3444 <== NOT EXECUTED 3294: 8a000082 bhi 34a4 <== NOT EXECUTED 3298: e3530005 cmp r3, #5 <== NOT EXECUTED 329c: 0a0000a5 beq 3538 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 32a0: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED 32a4: e59f3334 ldr r3, [pc, #820] ; 35e0 <== NOT EXECUTED 32a8: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 32ac: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 32b0: e3530000 cmp r3, #0 <== NOT EXECUTED 32b4: 03a0600a moveq r6, #10 <== NOT EXECUTED 32b8: 0affffeb beq 326c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 32bc: e1a00005 mov r0, r5 <== NOT EXECUTED 32c0: e1a01004 mov r1, r4 <== NOT EXECUTED 32c4: e1a0e00f mov lr, pc <== NOT EXECUTED 32c8: e12fff13 bx r3 <== NOT EXECUTED 32cc: e1a06000 mov r6, r0 <== NOT EXECUTED 32d0: eaffffe5 b 326c <== NOT EXECUTED case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 32d4: e594e008 ldr lr, [r4, #8] 32d8: e2857030 add r7, r5, #48 ; 0x30 32dc: e8be000f ldm lr!, {r0, r1, r2, r3} 32e0: e1a0c007 mov ip, r7 32e4: e8ac000f stmia ip!, {r0, r1, r2, r3} 32e8: e8be000f ldm lr!, {r0, r1, r2, r3} 32ec: e8ac000f stmia ip!, {r0, r1, r2, r3} /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 32f0: e59520b8 ldr r2, [r5, #184] ; 0xb8 case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 32f4: 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) && 32f8: e3120c02 tst r2, #512 ; 0x200 case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 32fc: 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) && 3300: 0a000012 beq 3350 3304: e5953030 ldr r3, [r5, #48] ; 0x30 3308: e3130b01 tst r3, #1024 ; 0x400 330c: 1a00000f bne 3350 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 3310: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 3314: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 3318: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 331c: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 3320: e3130020 tst r3, #32 <== NOT EXECUTED 3324: 0a000009 beq 3350 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 3328: e10f8000 mrs r8, CPSR <== NOT EXECUTED 332c: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED 3330: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 3334: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3338: e5952094 ldr r2, [r5, #148] ; 0x94 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 333c: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3340: 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; 3344: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3348: 1a00009c bne 35c0 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 334c: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 3350: e59530b8 ldr r3, [r5, #184] ; 0xb8 3354: e3130b01 tst r3, #1024 ; 0x400 3358: 0a000008 beq 3380 335c: e5953030 ldr r3, [r5, #48] ; 0x30 <== NOT EXECUTED 3360: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 3364: 1a000005 bne 3380 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 3368: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 336c: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 3370: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 3374: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 3378: e3c33002 bic r3, r3, #2 <== NOT EXECUTED 337c: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 3380: e59530b8 ldr r3, [r5, #184] ; 0xb8 3384: e3130c01 tst r3, #256 ; 0x100 3388: 05952038 ldreq r2, [r5, #56] ; 0x38 338c: 0a000012 beq 33dc 3390: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED 3394: e3520000 cmp r2, #0 <== NOT EXECUTED 3398: ba00007c blt 3590 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 339c: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 33a0: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 33a4: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 33a8: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 33ac: e3130004 tst r3, #4 <== NOT EXECUTED 33b0: 0a000006 beq 33d0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 33b4: e59530b0 ldr r3, [r5, #176] ; 0xb0 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 33b8: e3530000 cmp r3, #0 <== NOT EXECUTED 33bc: 0a000003 beq 33d0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 33c0: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 33c4: e1a0e00f mov lr, pc <== NOT EXECUTED 33c8: e12fff13 bx r3 <== NOT EXECUTED 33cc: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 33d0: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 33d4: e3c33004 bic r3, r3, #4 <== NOT EXECUTED 33d8: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { 33dc: e3520000 cmp r2, #0 33e0: ba00006a blt 3590 tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 33e4: e5953030 ldr r3, [r5, #48] ; 0x30 33e8: e3130a01 tst r3, #4096 ; 0x1000 tty->flow_ctrl |= FL_MDXOF; 33ec: 159520b8 ldrne r2, [r5, #184] ; 0xb8 33f0: 13822b01 orrne r2, r2, #1024 ; 0x400 33f4: 158520b8 strne r2, [r5, #184] ; 0xb8 } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 33f8: e3130b01 tst r3, #1024 ; 0x400 tty->flow_ctrl |= FL_MDXON; 33fc: 159530b8 ldrne r3, [r5, #184] ; 0xb8 tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { 3400: e595803c ldr r8, [r5, #60] ; 0x3c if (tty->termios.c_iflag & IXOFF) { tty->flow_ctrl |= FL_MDXOF; } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { tty->flow_ctrl |= FL_MDXON; 3404: 13833c02 orrne r3, r3, #512 ; 0x200 3408: 158530b8 strne r3, [r5, #184] ; 0xb8 tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { 340c: e2188002 ands r8, r8, #2 3410: 0a00004c beq 3548 tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 3414: e3a03000 mov r3, #0 tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3418: e5853074 str r3, [r5, #116] ; 0x74 /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 341c: e585306c str r3, [r5, #108] ; 0x6c tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 3420: e5853070 str r3, [r5, #112] ; 0x70 else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 3424: e59530a8 ldr r3, [r5, #168] ; 0xa8 3428: e3530000 cmp r3, #0 342c: 0affff8e beq 326c (*tty->device.setAttributes)(tty->minor, &tty->termios); 3430: e1a01007 mov r1, r7 3434: e5950010 ldr r0, [r5, #16] 3438: e1a0e00f mov lr, pc 343c: e12fff13 bx r3 3440: eaffff89 b 326c *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 3444: e5952060 ldr r2, [r5, #96] ; 0x60 <== NOT EXECUTED 3448: e595305c ldr r3, [r5, #92] ; 0x5c <== NOT EXECUTED if ( rawnc < 0 ) 344c: e0523003 subs r3, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 3450: 45952064 ldrmi r2, [r5, #100] ; 0x64 <== NOT EXECUTED 3454: 40833002 addmi r3, r3, r2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 3458: e2851020 add r1, r5, #32 <== NOT EXECUTED 345c: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 3460: e0412002 sub r2, r1, r2 <== NOT EXECUTED 3464: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED 3468: e0823003 add r3, r2, r3 <== NOT EXECUTED 346c: e5813000 str r3, [r1] <== NOT EXECUTED 3470: eaffff7d b 326c <== 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) { 3474: e3530001 cmp r3, #1 3478: 1affff88 bne 32a0 sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 347c: e5947008 ldr r7, [r4, #8] 3480: e285c030 add ip, r5, #48 ; 0x30 3484: e8bc000f ldm ip!, {r0, r1, r2, r3} 3488: e1a0e007 mov lr, r7 348c: e8ae000f stmia lr!, {r0, r1, r2, r3} 3490: e8bc000f ldm ip!, {r0, r1, r2, r3} 3494: e8ae000f stmia lr!, {r0, r1, r2, r3} 3498: e59c3000 ldr r3, [ip] 349c: e58e3000 str r3, [lr] break; 34a0: eaffff71 b 326c sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 34a4: e3a02a47 mov r2, #290816 ; 0x47000 <== NOT EXECUTED 34a8: e2822e41 add r2, r2, #1040 ; 0x410 <== NOT EXECUTED 34ac: e2822129 add r2, r2, #1073741834 ; 0x4000000a <== NOT EXECUTED 34b0: e1530002 cmp r3, r2 <== NOT EXECUTED 34b4: 0a00001b beq 3528 <== NOT EXECUTED 34b8: e3a02a47 mov r2, #290816 ; 0x47000 <== NOT EXECUTED 34bc: e2822e41 add r2, r2, #1040 ; 0x410 <== NOT EXECUTED 34c0: e282212e add r2, r2, #-2147483637 ; 0x8000000b <== NOT EXECUTED 34c4: e1530002 cmp r3, r2 <== NOT EXECUTED 34c8: 1affff74 bne 32a0 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 34cc: e59f710c ldr r7, [pc, #268] ; 35e0 <== NOT EXECUTED 34d0: e59530cc ldr r3, [r5, #204] ; 0xcc <== NOT EXECUTED 34d4: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED 34d8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 34dc: e3530000 cmp r3, #0 <== NOT EXECUTED 34e0: 0a000003 beq 34f4 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 34e4: e1a00005 mov r0, r5 <== NOT EXECUTED 34e8: e1a0e00f mov lr, pc <== NOT EXECUTED 34ec: e12fff13 bx r3 <== NOT EXECUTED 34f0: e1a06000 mov r6, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 34f4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 34f8: e5932000 ldr r2, [r3] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 34fc: e7973282 ldr r3, [r7, r2, lsl #5] <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 3500: e3a01000 mov r1, #0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3504: e3530000 cmp r3, #0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 3508: e58510d0 str r1, [r5, #208] ; 0xd0 <== 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); 350c: e58520cc str r2, [r5, #204] ; 0xcc <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3510: 0affff55 beq 326c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 3514: e1a00005 mov r0, r5 <== NOT EXECUTED 3518: e1a0e00f mov lr, pc <== NOT EXECUTED 351c: e12fff13 bx r3 <== NOT EXECUTED 3520: e1a06000 mov r6, r0 <== NOT EXECUTED 3524: eaffff50 b 326c <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 3528: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 352c: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED 3530: e5832000 str r2, [r3] <== NOT EXECUTED break; 3534: eaffff4c b 326c <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 3538: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 353c: e58520d4 str r2, [r5, #212] ; 0xd4 <== NOT EXECUTED 3540: e58530d8 str r3, [r5, #216] ; 0xd8 <== NOT EXECUTED break; 3544: eaffff48 b 326c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; 3548: e5d5a046 ldrb sl, [r5, #70] ; 0x46 <== NOT EXECUTED 354c: eb0002d6 bl 40ac <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 3550: e000009a mul r0, sl, r0 <== NOT EXECUTED 3554: e59f2088 ldr r2, [pc, #136] ; 35e4 <== NOT EXECUTED 3558: e0831092 umull r1, r3, r2, r0 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 355c: e5d52046 ldrb r2, [r5, #70] ; 0x46 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 3560: e1a031a3 lsr r3, r3, #3 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 3564: e3520000 cmp r2, #0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 3568: e5853054 str r3, [r5, #84] ; 0x54 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 356c: 0a00000b beq 35a0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 3570: e5d52047 ldrb r2, [r5, #71] ; 0x47 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3574: e3520000 cmp r2, #0 <== NOT EXECUTED 3578: 01a02003 moveq r2, r3 <== NOT EXECUTED 357c: 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; 3580: e585806c str r8, [r5, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3584: e5852074 str r2, [r5, #116] ; 0x74 <== NOT EXECUTED else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 3588: e5853070 str r3, [r5, #112] ; 0x70 <== NOT EXECUTED 358c: eaffffa4 b 3424 <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; 3590: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 3594: e3833c01 orr r3, r3, #256 ; 0x100 <== NOT EXECUTED 3598: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 359c: eaffff90 b 33e4 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 35a0: e5d53047 ldrb r3, [r5, #71] ; 0x47 <== NOT EXECUTED 35a4: e3530000 cmp r3, #0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 35a8: 03a03001 moveq r3, #1 <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 35ac: 15852074 strne r2, [r5, #116] ; 0x74 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 35b0: 1585206c strne r2, [r5, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 35b4: 15852070 strne r2, [r5, #112] ; 0x70 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 35b8: 0585306c streq r3, [r5, #108] ; 0x6c <== NOT EXECUTED 35bc: eaffff98 b 3424 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 35c0: e5953084 ldr r3, [r5, #132] ; 0x84 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 35c4: e595107c ldr r1, [r5, #124] ; 0x7c <== NOT EXECUTED 35c8: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 35cc: e0811003 add r1, r1, r3 <== NOT EXECUTED 35d0: e3a02001 mov r2, #1 <== NOT EXECUTED 35d4: e1a0e00f mov lr, pc <== NOT EXECUTED 35d8: e595f0a4 ldr pc, [r5, #164] ; 0xa4 <== NOT EXECUTED 35dc: eaffff5a b 334c <== NOT EXECUTED 35e0: 0001a754 .word 0x0001a754 35e4: cccccccd .word 0xcccccccd 000037b4 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 37b4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 37b8: e59f7490 ldr r7, [pc, #1168] ; 3c50 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 37bc: e1a06001 mov r6, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 37c0: e3a01000 mov r1, #0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 37c4: e24dd014 sub sp, sp, #20 37c8: e1a05000 mov r5, r0 37cc: e1a08002 mov r8, r2 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 37d0: e5970000 ldr r0, [r7] 37d4: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 37d8: e1a09003 mov r9, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 37dc: eb0003e2 bl 476c RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 37e0: e250a000 subs sl, r0, #0 37e4: 1a000020 bne 386c return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 37e8: e59fb464 ldr fp, [pc, #1124] ; 3c54 37ec: e59b4000 ldr r4, [fp] 37f0: e3540000 cmp r4, #0 37f4: 1a000003 bne 3808 37f8: ea00002b b 38ac 37fc: e5944000 ldr r4, [r4] 3800: e3540000 cmp r4, #0 3804: 0a000028 beq 38ac if ((tty->major == major) && (tty->minor == minor)) 3808: e594300c ldr r3, [r4, #12] 380c: e1530005 cmp r3, r5 3810: 1afffff9 bne 37fc 3814: e5943010 ldr r3, [r4, #16] 3818: e1530006 cmp r3, r6 381c: 1afffff6 bne 37fc if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { 3820: e5943008 ldr r3, [r4, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 3824: e5982000 ldr r2, [r8] if (!tty->refcount++) { 3828: e3530000 cmp r3, #0 382c: e2833001 add r3, r3, #1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 3830: e5824034 str r4, [r2, #52] ; 0x34 if (!tty->refcount++) { 3834: e5843008 str r3, [r4, #8] 3838: 1a000009 bne 3864 if (tty->device.firstOpen) 383c: e5943098 ldr r3, [r4, #152] ; 0x98 3840: e3530000 cmp r3, #0 (*tty->device.firstOpen)(major, minor, arg); 3844: 11a00005 movne r0, r5 3848: 11a01006 movne r1, r6 384c: 11a02008 movne r2, r8 3850: 11a0e00f movne lr, pc 3854: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3858: e59430b4 ldr r3, [r4, #180] ; 0xb4 385c: e3530002 cmp r3, #2 3860: 0a000004 beq 3878 (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 3864: e5970000 ldr r0, [r7] 3868: eb000407 bl 488c return RTEMS_SUCCESSFUL; } 386c: e1a0000a mov r0, sl 3870: e28dd014 add sp, sp, #20 3874: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} (*tty->device.firstOpen)(major, minor, arg); /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_start(tty->rxTaskId, 3878: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED 387c: e59f13d4 ldr r1, [pc, #980] ; 3c58 <== NOT EXECUTED 3880: e1a02004 mov r2, r4 <== NOT EXECUTED 3884: eb0004d1 bl 4bd0 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 3888: e3500000 cmp r0, #0 <== NOT EXECUTED 388c: 1a0000d2 bne 3bdc <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 3890: e1a02004 mov r2, r4 <== NOT EXECUTED 3894: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED 3898: e59f13bc ldr r1, [pc, #956] ; 3c5c <== NOT EXECUTED 389c: eb0004cb bl 4bd0 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 38a0: e3500000 cmp r0, #0 <== NOT EXECUTED 38a4: 0affffee beq 3864 <== NOT EXECUTED 38a8: ea0000cb b 3bdc <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 38ac: e3a00001 mov r0, #1 38b0: e3a010e8 mov r1, #232 ; 0xe8 38b4: eb0015c2 bl 8fc4 if (tty == NULL) { 38b8: e3500000 cmp r0, #0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 38bc: e58d0010 str r0, [sp, #16] 38c0: e1a04000 mov r4, r0 if (tty == NULL) { 38c4: 0a0000af beq 3b88 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 38c8: e59f0390 ldr r0, [pc, #912] ; 3c60 38cc: e59d1010 ldr r1, [sp, #16] 38d0: e5903004 ldr r3, [r0, #4] 38d4: e5813064 str r3, [r1, #100] ; 0x64 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 38d8: e5910064 ldr r0, [r1, #100] ; 0x64 38dc: eb001753 bl 9630 38e0: e59d2010 ldr r2, [sp, #16] if (tty->rawInBuf.theBuf == NULL) { 38e4: e3500000 cmp r0, #0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 38e8: e5820058 str r0, [r2, #88] ; 0x58 if (tty->rawInBuf.theBuf == NULL) { 38ec: 0a0000a9 beq 3b98 return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 38f0: e59fc368 ldr ip, [pc, #872] ; 3c60 38f4: e59de010 ldr lr, [sp, #16] 38f8: e59c3008 ldr r3, [ip, #8] 38fc: e58e3088 str r3, [lr, #136] ; 0x88 tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3900: e59e0088 ldr r0, [lr, #136] ; 0x88 3904: eb001749 bl 9630 3908: e59d1010 ldr r1, [sp, #16] if (tty->rawOutBuf.theBuf == NULL) { 390c: e3500000 cmp r0, #0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3910: e581007c str r0, [r1, #124] ; 0x7c if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); 3914: 05910058 ldreq r0, [r1, #88] ; 0x58 /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); if (tty->rawOutBuf.theBuf == NULL) { 3918: 0a000097 beq 3b7c return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 391c: e59f233c ldr r2, [pc, #828] ; 3c60 3920: e5920000 ldr r0, [r2] 3924: eb001741 bl 9630 3928: e59d3010 ldr r3, [sp, #16] if (tty->cbuf == NULL) { 392c: e3500000 cmp r0, #0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 3930: e583001c str r0, [r3, #28] if (tty->cbuf == NULL) { 3934: 0a00008c beq 3b6c tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 3938: e59b2000 ldr r2, [fp] tty->back = NULL; 393c: e59dc010 ldr ip, [sp, #16] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 3940: e3a03000 mov r3, #0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) 3944: e3520000 cmp r2, #0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 3948: e88c000c stm ip, {r2, r3} if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 394c: 1582c004 strne ip, [r2, #4] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 3950: e58c30d4 str r3, [ip, #212] ; 0xd4 tty->tty_snd.sw_arg = NULL; 3954: e58c30d8 str r3, [ip, #216] ; 0xd8 tty->tty_rcv.sw_pfn = NULL; 3958: e58c30dc str r3, [ip, #220] ; 0xdc tty->tty_rcv.sw_arg = NULL; 395c: e58c30e0 str r3, [ip, #224] ; 0xe0 tty->tty_rcvwakeup = 0; 3960: e58c30e4 str r3, [ip, #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) 3964: e59f32f8 ldr r3, [pc, #760] ; 3c64 3968: e5932000 ldr r2, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 396c: e59f12ec ldr r1, [pc, #748] ; 3c60 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) 3970: e3520000 cmp r2, #0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3974: e59d2010 ldr r2, [sp, #16] 3978: e5d1000c ldrb r0, [r1, #12] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 397c: e59de010 ldr lr, [sp, #16] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3980: e282c014 add ip, r2, #20 tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; 3984: 0583e000 streq lr, [r3] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 3988: e58be000 str lr, [fp] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 398c: e3800315 orr r0, r0, #1409286144 ; 0x54000000 3990: e58dc000 str ip, [sp] rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 3994: e59dc010 ldr ip, [sp, #16] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3998: e3800852 orr r0, r0, #5373952 ; 0x520000 399c: e3a03000 mov r3, #0 39a0: e3800c69 orr r0, r0, #26880 ; 0x6900 39a4: e3a01001 mov r1, #1 39a8: e3a02054 mov r2, #84 ; 0x54 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 39ac: e58c6010 str r6, [ip, #16] tty->major = major; 39b0: e58c500c str r5, [ip, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 39b4: eb0002d1 bl 4500 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) 39b8: e2503000 subs r3, r0, #0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 39bc: e59fb29c ldr fp, [pc, #668] ; 3c60 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) 39c0: 1a000085 bne 3bdc rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 39c4: e5db000c ldrb r0, [fp, #12] 39c8: e59de010 ldr lr, [sp, #16] 39cc: e3800315 orr r0, r0, #1409286144 ; 0x54000000 39d0: e3800852 orr r0, r0, #5373952 ; 0x520000 39d4: e28ec018 add ip, lr, #24 39d8: e3a01001 mov r1, #1 39dc: e3800c6f orr r0, r0, #28416 ; 0x6f00 39e0: e3a02054 mov r2, #84 ; 0x54 39e4: e58dc000 str ip, [sp] 39e8: eb0002c4 bl 4500 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) 39ec: e2501000 subs r1, r0, #0 39f0: 1a000079 bne 3bdc rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 39f4: e5db000c ldrb r0, [fp, #12] 39f8: e59d2010 ldr r2, [sp, #16] 39fc: e3800315 orr r0, r0, #1409286144 ; 0x54000000 3a00: e3800852 orr r0, r0, #5373952 ; 0x520000 3a04: e282c08c add ip, r2, #140 ; 0x8c 3a08: e3800b1e orr r0, r0, #30720 ; 0x7800 3a0c: e3a02020 mov r2, #32 3a10: e1a03001 mov r3, r1 3a14: e58dc000 str ip, [sp] 3a18: eb0002b8 bl 4500 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 3a1c: e250e000 subs lr, r0, #0 3a20: 1a00006d bne 3bdc tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 3a24: e8b9000f ldm r9!, {r0, r1, r2, r3} 3a28: e58d900c str r9, [sp, #12] 3a2c: e59d9010 ldr r9, [sp, #16] 3a30: e289c098 add ip, r9, #152 ; 0x98 3a34: e8ac000f stmia ip!, {r0, r1, r2, r3} 3a38: e59d900c ldr r9, [sp, #12] 3a3c: e899000f ldm r9, {r0, r1, r2, r3} 3a40: e88c000f stm ip, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3a44: e59dc010 ldr ip, [sp, #16] 3a48: e59c30b4 ldr r3, [ip, #180] ; 0xb4 3a4c: e3530002 cmp r3, #2 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; 3a50: e58ce094 str lr, [ip, #148] ; 0x94 tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3a54: 0a000061 beq 3be0 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 3a58: e59d9010 ldr r9, [sp, #16] 3a5c: e59930a0 ldr r3, [r9, #160] ; 0xa0 3a60: e3530000 cmp r3, #0 3a64: 0a00004e beq 3ba4 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 3a68: e59930b4 ldr r3, [r9, #180] ; 0xb4 3a6c: e3530002 cmp r3, #2 3a70: 0a00004b beq 3ba4 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; 3a74: e59d0010 ldr r0, [sp, #16] 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'; 3a78: e3a03000 mov r3, #0 tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; 3a7c: e58030b8 str r3, [r0, #184] ; 0xb8 /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 3a80: e5909064 ldr r9, [r0, #100] ; 0x64 tty->highwater = tty->rawInBuf.Size * 3/4; 3a84: e590b064 ldr fp, [r0, #100] ; 0x64 /* * Bump name characer */ if (c++ == 'z') 3a88: e59f11d0 ldr r1, [pc, #464] ; 3c60 /* 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; 3a8c: e1a090a9 lsr r9, r9, #1 3a90: e58d9008 str r9, [sp, #8] tty->highwater = tty->rawInBuf.Size * 3/4; 3a94: e08bb08b add fp, fp, fp, lsl #1 3a98: e59d9010 ldr r9, [sp, #16] /* * Bump name characer */ if (c++ == 'z') 3a9c: e5d1e00c ldrb lr, [r1, #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; 3aa0: e1a0b12b lsr fp, fp, #2 3aa4: e589b0c0 str fp, [r9, #192] ; 0xc0 /* * Bump name characer */ if (c++ == 'z') 3aa8: e59f91b0 ldr r9, [pc, #432] ; 3c60 3aac: e35e007a cmp lr, #122 ; 0x7a 3ab0: e28ee001 add lr, lr, #1 3ab4: e5c9e00c strb lr, [r9, #12] * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3ab8: e3a02c82 mov r2, #33280 ; 0x8200 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3abc: e59de010 ldr lr, [sp, #16] 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; 3ac0: e282203b add r2, r2, #59 ; 0x3b 3ac4: e58e203c str r2, [lr, #60] ; 0x3c tty->termios.c_cc[VINTR] = '\003'; 3ac8: e3a02003 mov r2, #3 3acc: e5ce2041 strb r2, [lr, #65] ; 0x41 tty->termios.c_cc[VQUIT] = '\034'; 3ad0: e3a0201c mov r2, #28 3ad4: e5ce2042 strb r2, [lr, #66] ; 0x42 tty->termios.c_cc[VERASE] = '\177'; 3ad8: e3a0207f mov r2, #127 ; 0x7f 3adc: e5ce2043 strb r2, [lr, #67] ; 0x43 tty->termios.c_cc[VKILL] = '\025'; 3ae0: e3a02015 mov r2, #21 3ae4: e5ce2044 strb r2, [lr, #68] ; 0x44 tty->termios.c_cc[VEOF] = '\004'; 3ae8: e3a02004 mov r2, #4 3aec: e5ce2045 strb r2, [lr, #69] ; 0x45 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 3af0: e3a02011 mov r2, #17 3af4: e5ce2049 strb r2, [lr, #73] ; 0x49 tty->termios.c_cc[VSTOP] = '\023'; 3af8: e3a02013 mov r2, #19 3afc: e5ce204a strb r2, [lr, #74] ; 0x4a tty->termios.c_cc[VSUSP] = '\032'; 3b00: e3a0201a mov r2, #26 3b04: e5ce204b strb r2, [lr, #75] ; 0x4b tty->termios.c_cc[VREPRINT] = '\022'; 3b08: e3a02012 mov r2, #18 3b0c: e5ce204d strb r2, [lr, #77] ; 0x4d tty->termios.c_cc[VDISCARD] = '\017'; 3b10: e3a0200f mov r2, #15 3b14: e5ce204e strb r2, [lr, #78] ; 0x4e tty->termios.c_cc[VWERASE] = '\027'; 3b18: e3a02017 mov r2, #23 3b1c: e5ce204f strb r2, [lr, #79] ; 0x4f /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3b20: e3a00b06 mov r0, #6144 ; 0x1800 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'; 3b24: e3a02016 mov r2, #22 3b28: e5ce2050 strb r2, [lr, #80] ; 0x50 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3b2c: e2800005 add r0, r0, #5 3b30: e58e0034 str r0, [lr, #52] ; 0x34 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3b34: e3a0cc25 mov ip, #9472 ; 0x2500 /* 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; 3b38: e59d0008 ldr r0, [sp, #8] /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3b3c: e3a01e8b mov r1, #2224 ; 0x8b0 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'; 3b40: e5ce304c strb r3, [lr, #76] ; 0x4c tty->termios.c_cc[VEOL2] = '\000'; 3b44: e5ce3051 strb r3, [lr, #81] ; 0x51 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3b48: e28cc002 add ip, ip, #2 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3b4c: e281100d add r1, r1, #13 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 3b50: 0282204b addeq r2, r2, #75 ; 0x4b 3b54: 01a03009 moveq r3, r9 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3b58: e58ec030 str ip, [lr, #48] ; 0x30 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3b5c: e58e1038 str r1, [lr, #56] ; 0x38 /* 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; 3b60: e58e00bc str r0, [lr, #188] ; 0xbc tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 3b64: 05c3200c strbeq r2, [r3, #12] 3b68: eaffff2c b 3820 /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 3b6c: e593007c ldr r0, [r3, #124] ; 0x7c <== NOT EXECUTED 3b70: eb00154e bl 90b0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 3b74: e59d9010 ldr r9, [sp, #16] <== NOT EXECUTED 3b78: e5990058 ldr r0, [r9, #88] ; 0x58 <== NOT EXECUTED 3b7c: eb00154b bl 90b0 <== NOT EXECUTED free(tty); 3b80: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 3b84: eb001549 bl 90b0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 3b88: e5970000 ldr r0, [r7] <== NOT EXECUTED 3b8c: eb00033e bl 488c <== NOT EXECUTED 3b90: e3a0a01a mov sl, #26 <== NOT EXECUTED return RTEMS_NO_MEMORY; 3b94: eaffff34 b 386c <== NOT EXECUTED * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); 3b98: e1a00002 mov r0, r2 <== NOT EXECUTED 3b9c: eb001543 bl 90b0 <== NOT EXECUTED 3ba0: eafffff8 b 3b88 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 3ba4: e59fc0b4 ldr ip, [pc, #180] ; 3c60 <== NOT EXECUTED 3ba8: e5dc000c ldrb r0, [ip, #12] <== NOT EXECUTED 3bac: e59de010 ldr lr, [sp, #16] <== NOT EXECUTED 3bb0: e3800315 orr r0, r0, #1409286144 ; 0x54000000 <== NOT EXECUTED 3bb4: e3a01000 mov r1, #0 <== NOT EXECUTED 3bb8: e3800852 orr r0, r0, #5373952 ; 0x520000 <== NOT EXECUTED 3bbc: e28ec068 add ip, lr, #104 ; 0x68 <== NOT EXECUTED 3bc0: e3800c72 orr r0, r0, #29184 ; 0x7200 <== NOT EXECUTED 3bc4: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 3bc8: e1a03001 mov r3, r1 <== NOT EXECUTED 3bcc: e58dc000 str ip, [sp] <== NOT EXECUTED 3bd0: eb00024a bl 4500 <== 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) 3bd4: e3500000 cmp r0, #0 <== NOT EXECUTED 3bd8: 0affffa5 beq 3a74 <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 3bdc: eb000482 bl 4dec <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 3be0: e5db000c ldrb r0, [fp, #12] <== NOT EXECUTED 3be4: e3800315 orr r0, r0, #1409286144 ; 0x54000000 <== NOT EXECUTED 3be8: e380071e orr r0, r0, #7864320 ; 0x780000 <== NOT EXECUTED 3bec: e28cc0c8 add ip, ip, #200 ; 0xc8 <== NOT EXECUTED 3bf0: e3800b15 orr r0, r0, #21504 ; 0x5400 <== NOT EXECUTED 3bf4: e3a0100a mov r1, #10 <== NOT EXECUTED 3bf8: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 3bfc: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 3c00: e58de000 str lr, [sp] <== NOT EXECUTED 3c04: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3c08: eb000349 bl 4934 <== 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) 3c0c: e250e000 subs lr, r0, #0 <== NOT EXECUTED 3c10: 1afffff1 bne 3bdc <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 3c14: e5db000c ldrb r0, [fp, #12] <== NOT EXECUTED 3c18: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED 3c1c: e3800452 orr r0, r0, #1375731712 ; 0x52000000 <== NOT EXECUTED 3c20: e380071e orr r0, r0, #7864320 ; 0x780000 <== NOT EXECUTED 3c24: e282c0c4 add ip, r2, #196 ; 0xc4 <== NOT EXECUTED 3c28: e3800b15 orr r0, r0, #21504 ; 0x5400 <== NOT EXECUTED 3c2c: e3a01009 mov r1, #9 <== NOT EXECUTED 3c30: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 3c34: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 3c38: e58de000 str lr, [sp] <== NOT EXECUTED 3c3c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3c40: eb00033b bl 4934 <== 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) 3c44: e3500000 cmp r0, #0 <== NOT EXECUTED 3c48: 0affff82 beq 3a58 <== NOT EXECUTED 3c4c: eaffffe2 b 3bdc <== NOT EXECUTED 3c50: 0001a928 .word 0x0001a928 3c54: 0001a930 .word 0x0001a930 3c58: 00003cd8 .word 0x00003cd8 3c5c: 00003c68 .word 0x00003c68 3c60: 00019214 .word 0x00019214 3c64: 0001a92c .word 0x0001a92c 000025d4 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 25d4: e59230b4 ldr r3, [r2, #180] ; 0xb4 25d8: e3530000 cmp r3, #0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 25dc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 25e0: e1a04002 mov r4, r2 25e4: e1a0b000 mov fp, r0 25e8: e1a09001 mov r9, r1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 25ec: 0a000039 beq 26d8 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 25f0: e3510000 cmp r1, #0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 25f4: e5928080 ldr r8, [r2, #128] ; 0x80 <== NOT EXECUTED while (len) { 25f8: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 25fc: e3a0a000 mov sl, #0 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 2600: e3a07002 mov r7, #2 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 2604: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED 2608: e2880001 add r0, r8, #1 <== NOT EXECUTED 260c: eb005222 bl 16e9c <__umodsi3> <== NOT EXECUTED 2610: e1a08000 mov r8, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 2614: e10f5000 mrs r5, CPSR <== NOT EXECUTED 2618: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED 261c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { 2620: e5946084 ldr r6, [r4, #132] ; 0x84 <== NOT EXECUTED 2624: e1560000 cmp r6, r0 <== NOT EXECUTED 2628: 1a00000d bne 2664 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 262c: e5847094 str r7, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 2630: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2634: e3a01000 mov r1, #0 <== NOT EXECUTED 2638: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 263c: e1a02001 mov r2, r1 <== NOT EXECUTED 2640: eb000849 bl 476c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2644: e3500000 cmp r0, #0 <== NOT EXECUTED 2648: 1a000028 bne 26f0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 264c: e10f5000 mrs r5, CPSR <== NOT EXECUTED 2650: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED 2654: 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) { 2658: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED 265c: e1530006 cmp r3, r6 <== NOT EXECUTED 2660: 0afffff1 beq 262c <== 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++; 2664: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 2668: e7db100a ldrb r1, [fp, sl] <== NOT EXECUTED 266c: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED 2670: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2674: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 2678: e3530000 cmp r3, #0 <== 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; 267c: e5848080 str r8, [r4, #128] ; 0x80 <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 2680: 1a000007 bne 26a4 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2684: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 2688: e3130010 tst r3, #16 <== NOT EXECUTED 268c: 0a000009 beq 26b8 <== 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; 2690: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 2694: e3833020 orr r3, r3, #32 <== NOT EXECUTED 2698: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 269c: e3a03001 mov r3, #1 <== NOT EXECUTED 26a0: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 26a4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 26a8: e2599001 subs r9, r9, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; 26ac: e28aa001 add sl, sl, #1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 26b0: 1affffd3 bne 2604 <== NOT EXECUTED 26b4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 26b8: 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, 26bc: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 26c0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 26c4: e0811003 add r1, r1, r3 <== NOT EXECUTED 26c8: e3a02001 mov r2, #1 <== NOT EXECUTED 26cc: e1a0e00f mov lr, pc <== NOT EXECUTED 26d0: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 26d4: eafffff0 b 269c <== NOT EXECUTED unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); 26d8: e1a01000 mov r1, r0 26dc: e1a02009 mov r2, r9 26e0: e5940010 ldr r0, [r4, #16] 26e4: e1a0e00f mov lr, pc 26e8: e594f0a4 ldr pc, [r4, #164] ; 0xa4 return; 26ec: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 26f0: eb0009bd bl 4dec <== NOT EXECUTED 00002e70 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2e70: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2e74: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2e78: e1a0a000 mov sl, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2e7c: e5934034 ldr r4, [r3, #52] ; 0x34 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2e80: e3a01000 mov r1, #0 <== NOT EXECUTED rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; 2e84: e59a300c ldr r3, [sl, #12] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2e88: e24dd008 sub sp, sp, #8 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2e8c: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 2e90: e1a02001 mov r2, r1 <== 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; 2e94: e59a7010 ldr r7, [sl, #16] <== NOT EXECUTED char *buffer = args->buffer; 2e98: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2e9c: eb000632 bl 476c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2ea0: e250b000 subs fp, r0, #0 <== NOT EXECUTED 2ea4: 1a00000e bne 2ee4 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 2ea8: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED 2eac: e59f334c ldr r3, [pc, #844] ; 3200 <== NOT EXECUTED 2eb0: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 2eb4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2eb8: e3530000 cmp r3, #0 <== NOT EXECUTED 2ebc: 0a00000b beq 2ef0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 2ec0: e1a0100a mov r1, sl <== NOT EXECUTED 2ec4: e1a00004 mov r0, r4 <== NOT EXECUTED 2ec8: e1a0e00f mov lr, pc <== NOT EXECUTED 2ecc: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2ed0: 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); 2ed4: e1a0b000 mov fp, r0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2ed8: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 2edc: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 2ee0: eb000669 bl 488c <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } 2ee4: e1a0000b mov r0, fp <== NOT EXECUTED 2ee8: e28dd008 add sp, sp, #8 <== NOT EXECUTED 2eec: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 2ef0: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED 2ef4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2ef8: e1520003 cmp r2, r3 <== NOT EXECUTED 2efc: 0a00001a beq 2f6c <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2f00: e3570000 cmp r7, #0 <== NOT EXECUTED 2f04: 0a000010 beq 2f4c <== NOT EXECUTED 2f08: e2842020 add r2, r4, #32 <== NOT EXECUTED 2f0c: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 2f10: e1530002 cmp r3, r2 <== NOT EXECUTED 2f14: aa00000c bge 2f4c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 2f18: e59d2000 ldr r2, [sp] <== NOT EXECUTED 2f1c: e0631002 rsb r1, r3, r2 <== NOT EXECUTED 2f20: ea000002 b 2f30 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2f24: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 2f28: e1520003 cmp r2, r3 <== NOT EXECUTED 2f2c: da000006 ble 2f4c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 2f30: e594201c ldr r2, [r4, #28] <== NOT EXECUTED 2f34: e7d22003 ldrb r2, [r2, r3] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2f38: e2577001 subs r7, r7, #1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 2f3c: e7c12003 strb r2, [r1, r3] <== NOT EXECUTED 2f40: e2833001 add r3, r3, #1 <== NOT EXECUTED 2f44: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2f48: 1afffff5 bne 2f24 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2f4c: e59a3010 ldr r3, [sl, #16] <== NOT EXECUTED 2f50: e0677003 rsb r7, r7, r3 <== NOT EXECUTED 2f54: e58a7018 str r7, [sl, #24] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2f58: e3a03000 mov r3, #0 <== NOT EXECUTED 2f5c: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 2f60: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 2f64: eb000648 bl 488c <== NOT EXECUTED return sc; 2f68: eaffffdd b 2ee4 <== NOT EXECUTED } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2f6c: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2f70: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED if (tty->device.pollRead != NULL 2f74: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2f78: e584202c str r2, [r4, #44] ; 0x2c <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 2f7c: e584b020 str fp, [r4, #32] <== NOT EXECUTED 2f80: e584b024 str fp, [r4, #36] ; 0x24 <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2f84: 0a000002 beq 2f94 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2f88: e59420b4 ldr r2, [r4, #180] ; 0xb4 <== NOT EXECUTED 2f8c: e3520000 cmp r2, #0 <== NOT EXECUTED 2f90: 0a00005e beq 3110 <== 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, 2f94: e2842049 add r2, r4, #73 ; 0x49 <== 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)) 2f98: e3a09c02 mov r9, #512 ; 0x200 <== 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; 2f9c: e5945074 ldr r5, [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, 2fa0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2fa4: e59f6258 ldr r6, [pc, #600] ; 3204 <== 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)) 2fa8: e2899002 add r9, r9, #2 <== 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, 2fac: e3a08001 mov r8, #1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2fb0: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED 2fb4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 2fb8: e1520003 cmp r2, r3 <== NOT EXECUTED 2fbc: 0a000036 beq 309c <== NOT EXECUTED 2fc0: e5963000 ldr r3, [r6] <== NOT EXECUTED 2fc4: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 2fc8: e2433001 sub r3, r3, #1 <== NOT EXECUTED 2fcc: e1520003 cmp r2, r3 <== NOT EXECUTED 2fd0: aa000031 bge 309c <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2fd4: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED 2fd8: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 2fdc: e2800001 add r0, r0, #1 <== NOT EXECUTED 2fe0: eb004fad bl 16e9c <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2fe4: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 2fe8: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2fec: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 2ff0: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 2ff4: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED 2ff8: e0823003 add r3, r2, r3 <== NOT EXECUTED 2ffc: e0600003 rsb r0, r0, r3 <== NOT EXECUTED 3000: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 3004: eb004fa4 bl 16e9c <__umodsi3> <== NOT EXECUTED 3008: e59430bc ldr r3, [r4, #188] ; 0xbc <== NOT EXECUTED 300c: e1500003 cmp r0, r3 <== NOT EXECUTED 3010: 2a000014 bcs 3068 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 3014: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 3018: e3c33001 bic r3, r3, #1 <== NOT EXECUTED 301c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 3020: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 3024: e3c33f7f bic r3, r3, #508 ; 0x1fc <== NOT EXECUTED 3028: e3c33001 bic r3, r3, #1 <== NOT EXECUTED 302c: e1a03b03 lsl r3, r3, #22 <== NOT EXECUTED 3030: e1a03b23 lsr r3, r3, #22 <== NOT EXECUTED 3034: e1530009 cmp r3, r9 <== NOT EXECUTED 3038: 0a000028 beq 30e0 <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 303c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 3040: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3044: 0a000007 beq 3068 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 3048: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 304c: 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; 3050: e3c22004 bic r2, r2, #4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 3054: 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; 3058: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 305c: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 3060: 11a0e00f movne lr, pc <== NOT EXECUTED 3064: 112fff13 bxne r3 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 3068: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 306c: e3130002 tst r3, #2 <== NOT EXECUTED 3070: 0a000012 beq 30c0 <== NOT EXECUTED if (siproc (c, tty)) 3074: e1a00005 mov r0, r5 <== NOT EXECUTED 3078: e1a01004 mov r1, r4 <== NOT EXECUTED 307c: ebffff0f bl 2cc0 <== NOT EXECUTED 3080: e3500000 cmp r0, #0 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) 3084: 13a08000 movne r8, #0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 3088: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED 308c: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 3090: e1520003 cmp r2, r3 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 3094: e5945070 ldr r5, [r4, #112] ; 0x70 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 3098: 1affffc8 bne 2fc0 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 309c: e3580000 cmp r8, #0 <== NOT EXECUTED 30a0: 0affff96 beq 2f00 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 30a4: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED 30a8: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 30ac: e1a02005 mov r2, r5 <== NOT EXECUTED 30b0: eb0005ad bl 476c <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 30b4: e3500000 cmp r0, #0 <== NOT EXECUTED 30b8: 0affffbc beq 2fb0 <== NOT EXECUTED 30bc: eaffff8f b 2f00 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 30c0: e1a00005 mov r0, r5 <== NOT EXECUTED 30c4: e1a01004 mov r1, r4 <== NOT EXECUTED 30c8: ebfffefc bl 2cc0 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30cc: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 30d0: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30d4: e1520003 cmp r2, r3 <== NOT EXECUTED 30d8: a3a08000 movge r8, #0 <== NOT EXECUTED 30dc: eaffffe9 b 3088 <== 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)) 30e0: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 30e4: e3530000 cmp r3, #0 <== NOT EXECUTED 30e8: 0a000002 beq 30f8 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 30ec: 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)) 30f0: e3130020 tst r3, #32 <== NOT EXECUTED 30f4: 0affffd0 beq 303c <== 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, 30f8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30fc: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 3100: e3a02001 mov r2, #1 <== NOT EXECUTED 3104: e1a0e00f mov lr, pc <== NOT EXECUTED 3108: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 310c: eaffffd5 b 3068 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 3110: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED 3114: e3120002 tst r2, #2 <== NOT EXECUTED 3118: 0a00000b beq 314c <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 311c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3120: e1a0e00f mov lr, pc <== NOT EXECUTED 3124: e12fff13 bx r3 <== NOT EXECUTED if (n < 0) { 3128: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 312c: e1a01004 mov r1, r4 <== NOT EXECUTED 3130: 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) { 3134: ba00002d blt 31f0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 3138: ebfffee0 bl 2cc0 <== NOT EXECUTED 313c: e3500000 cmp r0, #0 <== NOT EXECUTED 3140: 1affff6e bne 2f00 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 3144: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED 3148: eafffff3 b 311c <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 314c: eb0003de bl 40cc <== NOT EXECUTED 3150: e1a05000 mov r5, r0 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 3154: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3158: e1a0e00f mov lr, pc <== NOT EXECUTED 315c: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { 3160: e3500000 cmp r0, #0 <== NOT EXECUTED 3164: ba00000c blt 319c <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 3168: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 316c: e1a01004 mov r1, r4 <== NOT EXECUTED 3170: ebfffed2 bl 2cc0 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 3174: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 3178: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 317c: e1520003 cmp r2, r3 <== NOT EXECUTED 3180: aaffff5e bge 2f00 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 3184: e3530000 cmp r3, #0 <== NOT EXECUTED 3188: 0afffff1 beq 3154 <== NOT EXECUTED 318c: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 3190: e3530000 cmp r3, #0 <== NOT EXECUTED 3194: 0affffee beq 3154 <== NOT EXECUTED 3198: eaffffeb b 314c <== NOT EXECUTED rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { if (tty->termios.c_cc[VMIN]) { 319c: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 31a0: e3530000 cmp r3, #0 <== NOT EXECUTED 31a4: 0a000008 beq 31cc <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 31a8: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 31ac: e3530000 cmp r3, #0 <== NOT EXECUTED 31b0: 0a000002 beq 31c0 <== NOT EXECUTED 31b4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 31b8: e3530000 cmp r3, #0 <== NOT EXECUTED 31bc: 1a000005 bne 31d8 <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 31c0: e3a00001 mov r0, #1 <== NOT EXECUTED 31c4: eb00069b bl 4c38 <== NOT EXECUTED 31c8: eaffffe1 b 3154 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 31cc: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 31d0: e3530000 cmp r3, #0 <== NOT EXECUTED 31d4: 0affff49 beq 2f00 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 31d8: eb0003bb bl 40cc <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 31dc: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED 31e0: e0650000 rsb r0, r5, r0 <== NOT EXECUTED 31e4: e1500003 cmp r0, r3 <== NOT EXECUTED 31e8: 9afffff4 bls 31c0 <== NOT EXECUTED 31ec: eaffff43 b 2f00 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 31f0: e3a00001 mov r0, #1 <== NOT EXECUTED 31f4: eb00068f bl 4c38 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 31f8: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED 31fc: eaffffc6 b 311c <== NOT EXECUTED 3200: 0001a754 .word 0x0001a754 3204: 00019214 .word 0x00019214 00002058 : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 2058: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED 205c: e3c33fff bic r3, r3, #1020 ; 0x3fc <== NOT EXECUTED 2060: e1a03a83 lsl r3, r3, #21 <== NOT EXECUTED 2064: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 2068: e1a03aa3 lsr r3, r3, #21 <== NOT EXECUTED 206c: e2822001 add r2, r2, #1 <== NOT EXECUTED 2070: e1530002 cmp r3, r2 <== 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) { 2074: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 2078: 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)) 207c: 0a000046 beq 219c <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 2080: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED 2084: e2033003 and r3, r3, #3 <== NOT EXECUTED 2088: e3530002 cmp r3, #2 <== NOT EXECUTED 208c: 0a000054 beq 21e4 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2090: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED 2094: e5903084 ldr r3, [r0, #132] ; 0x84 <== NOT EXECUTED 2098: e1520003 cmp r2, r3 <== NOT EXECUTED 209c: 0a00002a beq 214c <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 20a0: e10f3000 mrs r3, CPSR <== NOT EXECUTED 20a4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 20a8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; 20ac: e3a02000 mov r2, #0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 20b0: e5900090 ldr r0, [r0, #144] ; 0x90 <== NOT EXECUTED tty->t_dqlen = 0; 20b4: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 20b8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 20bc: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED 20c0: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED 20c4: e0800003 add r0, r0, r3 <== NOT EXECUTED 20c8: eb005373 bl 16e9c <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 20cc: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 20d0: e3530002 cmp r3, #2 <== 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; 20d4: e1a05000 mov r5, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; 20d8: e5840084 str r0, [r4, #132] ; 0x84 <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 20dc: 0a00002b beq 2190 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 20e0: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 20e4: e1530005 cmp r3, r5 <== NOT EXECUTED 20e8: 0a00001d beq 2164 <== NOT EXECUTED if ( tty->tty_snd.sw_pfn != NULL) { (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 20ec: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 20f0: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 20f4: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 20f8: 0a00004b beq 222c <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 20fc: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 2100: e1550003 cmp r5, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 2104: 85946088 ldrhi r6, [r4, #136] ; 0x88 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 2108: 95946080 ldrls r6, [r4, #128] ; 0x80 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 210c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 2110: 80656006 rsbhi r6, r5, r6 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 2114: 90656006 rsbls r6, r5, r6 <== 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, 2118: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; /* 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)) { 211c: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 2120: 13a06001 movne r6, #1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 2124: e3a03001 mov r3, #1 <== NOT EXECUTED 2128: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED (*tty->device.write)(tty->minor, 212c: e0811005 add r1, r1, r5 <== NOT EXECUTED 2130: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2134: e1a02006 mov r2, r6 <== NOT EXECUTED 2138: e1a0e00f mov lr, pc <== NOT EXECUTED 213c: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 2140: e5845084 str r5, [r4, #132] ; 0x84 <== NOT EXECUTED } return nToSend; } 2144: e1a00006 mov r0, r6 <== NOT EXECUTED 2148: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 214c: e5903094 ldr r3, [r0, #148] ; 0x94 <== NOT EXECUTED 2150: e3530002 cmp r3, #2 <== NOT EXECUTED 2154: 0a00003f beq 2258 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2158: e3a06000 mov r6, #0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 215c: e1a00006 mov r0, r6 <== NOT EXECUTED 2160: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2164: e59430d4 ldr r3, [r4, #212] ; 0xd4 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2168: e3a06000 mov r6, #0 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 216c: e3530000 cmp r3, #0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2170: e5846094 str r6, [r4, #148] ; 0x94 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2174: 01a06003 moveq r6, r3 <== NOT EXECUTED 2178: 0afffff0 beq 2140 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 217c: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 2180: e59410d8 ldr r1, [r4, #216] ; 0xd8 <== NOT EXECUTED 2184: e1a0e00f mov lr, pc <== NOT EXECUTED 2188: e12fff13 bx r3 <== NOT EXECUTED 218c: eaffffeb b 2140 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2190: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 2194: eb0009bc bl 488c <== NOT EXECUTED 2198: eaffffd0 b 20e0 <== NOT EXECUTED /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 219c: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 21a0: e3a02001 mov r2, #1 <== NOT EXECUTED 21a4: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 21a8: e1a0e00f mov lr, pc <== NOT EXECUTED 21ac: 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 ( 21b0: e10f3000 mrs r3, CPSR <== NOT EXECUTED 21b4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 21b8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 21bc: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 21c0: 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--; 21c4: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 21c8: e3811002 orr r1, r1, #2 <== NOT EXECUTED 21cc: 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--; 21d0: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 21d4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 21d8: e3a06001 mov r6, #1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 21dc: e1a00006 mov r0, r6 <== NOT EXECUTED 21e0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED * FIXME: this .write call will generate another * dequeue callback. This will advance the "Tail" in the data * buffer, although the corresponding data is not yet out! * Therefore the dequeue "length" should be reduced by 1 */ (*tty->device.write)(tty->minor, 21e4: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 21e8: e3a02001 mov r2, #1 <== NOT EXECUTED 21ec: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 21f0: e1a0e00f mov lr, pc <== NOT EXECUTED 21f4: 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 ( 21f8: e10f3000 mrs r3, CPSR <== NOT EXECUTED 21fc: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 2200: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2204: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2208: 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--; 220c: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2210: e3c11002 bic r1, r1, #2 <== NOT EXECUTED 2214: 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--; 2218: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 221c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 2220: e3a06001 mov r6, #1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 2224: e1a00006 mov r0, r6 <== NOT EXECUTED 2228: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 222c: e10f3000 mrs r3, CPSR <== NOT EXECUTED 2230: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 2234: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 2238: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 223c: e3822020 orr r2, r2, #32 <== NOT EXECUTED 2240: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2244: e3a02001 mov r2, #1 <== NOT EXECUTED 2248: e5842094 str r2, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 224c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 2250: e3a06000 mov r6, #0 <== NOT EXECUTED 2254: eaffffb9 b 2140 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2258: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED 225c: eb00098a bl 488c <== NOT EXECUTED 2260: e3a06000 mov r6, #0 <== NOT EXECUTED 2264: eaffffbc b 215c <== NOT EXECUTED 00003cd8 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 3cd8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3cdc: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 3ce0: e1a04000 mov r4, r0 <== NOT EXECUTED 3ce4: e28d7007 add r7, sp, #7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3ce8: e3a06000 mov r6, #0 <== NOT EXECUTED 3cec: e1a0300d mov r3, sp <== NOT EXECUTED 3cf0: e3a01002 mov r1, #2 <== NOT EXECUTED 3cf4: e3a02000 mov r2, #0 <== NOT EXECUTED 3cf8: e3a00003 mov r0, #3 <== NOT EXECUTED 3cfc: eb000112 bl 414c <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 3d00: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3d04: e3130001 tst r3, #1 <== NOT EXECUTED 3d08: 1a000012 bne 3d58 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 3d0c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3d10: e1a0e00f mov lr, pc <== NOT EXECUTED 3d14: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (c != EOF) { 3d18: e3700001 cmn r0, #1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 3d1c: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 3d20: 0afffff1 beq 3cec <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 3d24: e1a01007 mov r1, r7 <== NOT EXECUTED 3d28: e3a02001 mov r2, #1 <== NOT EXECUTED 3d2c: e1a00004 mov r0, r4 <== NOT EXECUTED c = tty->device.pollRead(tty->minor); if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; 3d30: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 3d34: ebfff965 bl 22d0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3d38: e1a0300d mov r3, sp <== NOT EXECUTED 3d3c: e3a01002 mov r1, #2 <== NOT EXECUTED 3d40: e3a02000 mov r2, #0 <== NOT EXECUTED 3d44: e3a00003 mov r0, #3 <== NOT EXECUTED 3d48: eb0000ff bl 414c <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 3d4c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3d50: e3130001 tst r3, #1 <== NOT EXECUTED 3d54: 0affffec beq 3d0c <== NOT EXECUTED tty->rxTaskId = 0; 3d58: e58460c4 str r6, [r4, #196] ; 0xc4 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 3d5c: e1a00006 mov r0, r6 <== NOT EXECUTED 3d60: eb000341 bl 4a6c <== NOT EXECUTED 3d64: eaffffe0 b 3cec <== NOT EXECUTED 0000204c : 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); 204c: e59000c4 ldr r0, [r0, #196] ; 0xc4 <== NOT EXECUTED 2050: e3a01002 mov r1, #2 <== NOT EXECUTED 2054: ea00089a b 42c4 <== NOT EXECUTED 00003c68 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 3c68: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3c6c: e59f6060 ldr r6, [pc, #96] ; 3cd4 <== NOT EXECUTED 3c70: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 3c74: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 3c78: e3a07000 mov r7, #0 <== NOT EXECUTED 3c7c: e1a0300d mov r3, sp <== NOT EXECUTED 3c80: e3a01002 mov r1, #2 <== NOT EXECUTED 3c84: e3a02000 mov r2, #0 <== NOT EXECUTED 3c88: e3a00003 mov r0, #3 <== NOT EXECUTED 3c8c: eb00012e bl 414c <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 3c90: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3c94: e3130001 tst r3, #1 <== 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); 3c98: 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) { 3c9c: 1a000008 bne 3cc4 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 3ca0: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED 3ca4: e0863283 add r3, r6, r3, lsl #5 <== NOT EXECUTED 3ca8: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 3cac: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 3cb0: 11a0e00f movne lr, pc <== NOT EXECUTED 3cb4: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 3cb8: e1a00004 mov r0, r4 <== NOT EXECUTED 3cbc: ebfff8e5 bl 2058 <== NOT EXECUTED 3cc0: eaffffed b 3c7c <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { tty->txTaskId = 0; 3cc4: e58470c8 str r7, [r4, #200] ; 0xc8 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 3cc8: e1a00007 mov r0, r7 <== NOT EXECUTED 3ccc: eb000366 bl 4a6c <== NOT EXECUTED 3cd0: eaffffe9 b 3c7c <== NOT EXECUTED 3cd4: 0001a754 .word 0x0001a754 00002d24 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2d24: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2d28: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2d2c: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2d30: e3a01000 mov r1, #0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2d34: e1a05000 mov r5, r0 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2d38: e1a02001 mov r2, r1 2d3c: e5940018 ldr r0, [r4, #24] 2d40: eb000689 bl 476c if (sc != RTEMS_SUCCESSFUL) 2d44: e2506000 subs r6, r0, #0 2d48: 1a00000c bne 2d80 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2d4c: e59420cc ldr r2, [r4, #204] ; 0xcc 2d50: e59f3098 ldr r3, [pc, #152] ; 2df0 2d54: e0833282 add r3, r3, r2, lsl #5 2d58: e593300c ldr r3, [r3, #12] 2d5c: e3530000 cmp r3, #0 2d60: 0a000008 beq 2d88 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2d64: e1a01005 mov r1, r5 <== NOT EXECUTED 2d68: e1a00004 mov r0, r4 <== NOT EXECUTED 2d6c: e1a0e00f mov lr, pc <== NOT EXECUTED 2d70: e12fff13 bx r3 <== NOT EXECUTED 2d74: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2d78: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 2d7c: eb0006c2 bl 488c <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 2d80: e1a00006 mov r0, r6 <== NOT EXECUTED 2d84: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 2d88: e5943034 ldr r3, [r4, #52] ; 0x34 2d8c: e3130001 tst r3, #1 2d90: 0a000011 beq 2ddc uint32_t count = args->count; 2d94: e5958010 ldr r8, [r5, #16] char *buffer = args->buffer; while (count--) 2d98: e3580000 cmp r8, #0 rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; 2d9c: e595a00c ldr sl, [r5, #12] while (count--) 2da0: 01a03006 moveq r3, r6 2da4: 0a000007 beq 2dc8 2da8: e1a07006 mov r7, r6 oproc (*buffer++, tty); 2dac: e7da0007 ldrb r0, [sl, r7] 2db0: e1a01004 mov r1, r4 2db4: e2877001 add r7, r7, #1 2db8: ebfffe4d bl 26f4 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2dbc: e1580007 cmp r8, r7 2dc0: 1afffff9 bne 2dac oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2dc4: e5953010 ldr r3, [r5, #16] 2dc8: e5853018 str r3, [r5, #24] } rtems_semaphore_release (tty->osem); 2dcc: e5940018 ldr r0, [r4, #24] 2dd0: eb0006ad bl 488c return sc; } 2dd4: e1a00006 mov r0, r6 2dd8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2ddc: e285000c add r0, r5, #12 <== NOT EXECUTED 2de0: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 2de4: e1a02004 mov r2, r4 <== NOT EXECUTED 2de8: ebfffdf9 bl 25d4 <== NOT EXECUTED 2dec: eafffff4 b 2dc4 <== NOT EXECUTED 2df0: 0001a754 .word 0x0001a754 0000635c : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 635c: 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) 6360: e2108202 ands r8, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 6364: e1a04000 mov r4, r0 <== NOT EXECUTED 6368: e1a09001 mov r9, r1 <== NOT EXECUTED 636c: e1a07002 mov r7, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 6370: 0a00000c beq 63a8 <== NOT EXECUTED { if (rtems_panic_in_progress++) 6374: e59f2160 ldr r2, [pc, #352] ; 64dc <== NOT EXECUTED 6378: e5923000 ldr r3, [r2] <== NOT EXECUTED 637c: e3530000 cmp r3, #0 <== NOT EXECUTED 6380: e2833001 add r3, r3, #1 <== NOT EXECUTED 6384: e5823000 str r3, [r2] <== NOT EXECUTED 6388: 0a000004 beq 63a0 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 638c: e59f314c ldr r3, [pc, #332] ; 64e0 <== NOT EXECUTED 6390: e5931000 ldr r1, [r3] <== NOT EXECUTED 6394: e2811001 add r1, r1, #1 <== NOT EXECUTED 6398: e5831000 str r1, [r3] <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 639c: e5923000 ldr r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 63a0: e3530002 cmp r3, #2 <== NOT EXECUTED 63a4: ca00002e bgt 6464 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 63a8: e59f5134 ldr r5, [pc, #308] ; 64e4 <== NOT EXECUTED 63ac: e5953000 ldr r3, [r5] <== NOT EXECUTED 63b0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 63b4: eb003924 bl 1484c <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 63b8: e2146101 ands r6, r4, #1073741824 ; 0x40000000 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; 63bc: e3c4a207 bic sl, r4, #1879048192 ; 0x70000000 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 63c0: 1a000038 bne 64a8 <== 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); 63c4: e5953000 ldr r3, [r5] <== NOT EXECUTED 63c8: e1a02007 mov r2, r7 <== NOT EXECUTED 63cc: e1a01009 mov r1, r9 <== NOT EXECUTED 63d0: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 63d4: eb00513d bl 1a8d0 <== NOT EXECUTED if (status) 63d8: e35a0000 cmp sl, #0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); 63dc: e1a07000 mov r7, r0 <== NOT EXECUTED if (status) 63e0: 1a000025 bne 647c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 63e4: e3560000 cmp r6, #0 <== NOT EXECUTED 63e8: 0a00000b beq 641c <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 63ec: da000004 ble 6404 <== NOT EXECUTED 63f0: e1a00006 mov r0, r6 <== NOT EXECUTED 63f4: eb003ce5 bl 15790 <== NOT EXECUTED 63f8: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 63fc: e3530000 cmp r3, #0 <== NOT EXECUTED 6400: 1a00002b bne 64b4 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 6404: e5953000 ldr r3, [r5] <== NOT EXECUTED 6408: e59f10d8 ldr r1, [pc, #216] ; 64e8 <== NOT EXECUTED 640c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6410: e1a02006 mov r2, r6 <== NOT EXECUTED 6414: eb0039ca bl 14b44 <== NOT EXECUTED 6418: e0877000 add r7, r7, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 641c: e5953000 ldr r3, [r5] <== NOT EXECUTED 6420: e59f10c4 ldr r1, [pc, #196] ; 64ec <== NOT EXECUTED 6424: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6428: eb0039c5 bl 14b44 <== NOT EXECUTED (void) fflush(stderr); 642c: e5953000 ldr r3, [r5] <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); 6430: e1a0a000 mov sl, r0 <== NOT EXECUTED (void) fflush(stderr); 6434: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6438: eb003903 bl 1484c <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 643c: e3140203 tst r4, #805306368 ; 0x30000000 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); 6440: 008a0007 addeq r0, sl, r7 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 6444: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 6448: e3580000 cmp r8, #0 <== NOT EXECUTED 644c: 0a000006 beq 646c <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 6450: e3a00000 mov r0, #0 <== NOT EXECUTED 6454: e59f1094 ldr r1, [pc, #148] ; 64f0 <== NOT EXECUTED 6458: eb000035 bl 6534 <== NOT EXECUTED _exit(local_errno); 645c: e1a00006 mov r0, r6 <== NOT EXECUTED 6460: eb00031f bl 70e4 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); abort(); 6464: e3a00000 mov r0, #0 <== NOT EXECUTED } } return chars_written; } 6468: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 646c: e59f1080 ldr r1, [pc, #128] ; 64f4 <== NOT EXECUTED 6470: e1a00008 mov r0, r8 <== NOT EXECUTED 6474: eb00002e bl 6534 <== NOT EXECUTED abort(); 6478: eb0037f7 bl 1445c <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 647c: e59f3060 ldr r3, [pc, #96] ; 64e4 <== NOT EXECUTED 6480: e5933000 ldr r3, [r3] <== NOT EXECUTED 6484: e1a0000a mov r0, sl <== NOT EXECUTED 6488: e593a00c ldr sl, [r3, #12] <== NOT EXECUTED 648c: ebffffae bl 634c <== NOT EXECUTED 6490: e59f1060 ldr r1, [pc, #96] ; 64f8 <== NOT EXECUTED 6494: e1a02000 mov r2, r0 <== NOT EXECUTED 6498: e1a0000a mov r0, sl <== NOT EXECUTED 649c: eb0039a8 bl 14b44 <== NOT EXECUTED 64a0: e0877000 add r7, r7, r0 <== NOT EXECUTED 64a4: eaffffce b 63e4 <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; 64a8: eb0037f4 bl 14480 <__errno> <== NOT EXECUTED 64ac: e5906000 ldr r6, [r0] <== NOT EXECUTED 64b0: eaffffc3 b 63c4 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 64b4: e5953000 ldr r3, [r5] <== NOT EXECUTED 64b8: e1a00006 mov r0, r6 <== NOT EXECUTED 64bc: e593a00c ldr sl, [r3, #12] <== NOT EXECUTED 64c0: eb003cb2 bl 15790 <== NOT EXECUTED 64c4: e59f1030 ldr r1, [pc, #48] ; 64fc <== NOT EXECUTED 64c8: e1a02000 mov r2, r0 <== NOT EXECUTED 64cc: e1a0000a mov r0, sl <== NOT EXECUTED 64d0: eb00399b bl 14b44 <== NOT EXECUTED 64d4: e0877000 add r7, r7, r0 <== NOT EXECUTED if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) 64d8: eaffffcf b 641c <== NOT EXECUTED 64dc: 00025f1c .word 0x00025f1c 64e0: 000260ac .word 0x000260ac 64e4: 00023308 .word 0x00023308 64e8: 00024cf0 .word 0x00024cf0 64ec: 00024804 .word 0x00024804 64f0: 00024d04 .word 0x00024d04 64f4: 00024d1c .word 0x00024d1c 64f8: 00024cd0 .word 0x00024cd0 64fc: 00024ce0 .word 0x00024ce0 00025a20 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 25a20: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 25a24: e3a06000 mov r6, #0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 25a28: e59f90e8 ldr r9, [pc, #232] ; 25b18 limit++; continue; } sign = 1; } if (!isdigit(c)) 25a2c: e59f80e8 ldr r8, [pc, #232] ; 25b1c return 0; d = c - '0'; if ((i > (limit / 10)) 25a30: e59fa0e8 ldr sl, [pc, #232] ; 25b20 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 25a34: e1a04000 mov r4, r0 25a38: e1a0b001 mov fp, r1 25a3c: e3e07102 mvn r7, #-2147483648 ; 0x80000000 25a40: e1a05006 mov r5, r6 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 25a44: e5943004 ldr r3, [r4, #4] 25a48: e2433001 sub r3, r3, #1 25a4c: e3530000 cmp r3, #0 25a50: e5843004 str r3, [r4, #4] 25a54: ba00001d blt 25ad0 25a58: e5943000 ldr r3, [r4] 25a5c: e4d30001 ldrb r0, [r3], #1 if (c == ':') 25a60: e350003a cmp r0, #58 ; 0x3a unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 25a64: e5843000 str r3, [r4] if (c == ':') 25a68: 0a00001d beq 25ae4 break; if (sign == 0) { 25a6c: e3560000 cmp r6, #0 25a70: 1a000004 bne 25a88 if (c == '-') { 25a74: e350002d cmp r0, #45 ; 0x2d sign = -1; limit++; 25a78: 02877001 addeq r7, r7, #1 25a7c: 03e06000 mvneq r6, #0 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 25a80: 0affffef beq 25a44 sign = -1; limit++; continue; 25a84: e3a06001 mov r6, #1 } sign = 1; } if (!isdigit(c)) 25a88: e5983000 ldr r3, [r8] 25a8c: e0833000 add r3, r3, r0 25a90: e5d33001 ldrb r3, [r3, #1] 25a94: e3130004 tst r3, #4 25a98: 0a00001c beq 25b10 return 0; d = c - '0'; if ((i > (limit / 10)) 25a9c: e083279a umull r2, r3, sl, r7 25aa0: e15501a3 cmp r5, r3, lsr #3 25aa4: 8a000019 bhi 25b10 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 25aa8: e2400030 sub r0, r0, #48 ; 0x30 25aac: 11a03105 lslne r3, r5, #2 if ((i > (limit / 10)) 25ab0: 0a000011 beq 25afc || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 25ab4: e0835005 add r5, r3, r5 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 25ab8: e5943004 ldr r3, [r4, #4] 25abc: e2433001 sub r3, r3, #1 25ac0: e3530000 cmp r3, #0 return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 25ac4: e0805085 add r5, r0, r5, lsl #1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 25ac8: e5843004 str r3, [r4, #4] 25acc: aaffffe1 bge 25a58 25ad0: e5990000 ldr r0, [r9] <== NOT EXECUTED 25ad4: e1a01004 mov r1, r4 <== NOT EXECUTED 25ad8: eb0078ed bl 43e94 <__srget_r> <== NOT EXECUTED if (c == ':') 25adc: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 25ae0: 1affffe1 bne 25a6c <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 25ae4: e3560000 cmp r6, #0 25ae8: 0a000008 beq 25b10 return 0; *val = i * sign; 25aec: e0030695 mul r3, r5, r6 25af0: e3a00001 mov r0, #1 25af4: e58b3000 str r3, [fp] return 1; 25af8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 25afc: e1a03105 lsl r3, r5, #2 <== NOT EXECUTED 25b00: e0832005 add r2, r3, r5 <== NOT EXECUTED 25b04: e0472082 sub r2, r7, r2, lsl #1 <== NOT EXECUTED 25b08: e1500002 cmp r0, r2 <== NOT EXECUTED 25b0c: 9affffe8 bls 25ab4 <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 25b10: e3a00000 mov r0, #0 <== NOT EXECUTED } 25b14: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 25b18: 000596f0 .word 0x000596f0 25b1c: 000596e4 .word 0x000596e4 25b20: cccccccd .word 0xcccccccd 00025b24 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 25b24: e92d41f0 push {r4, r5, r6, r7, r8, lr} 25b28: e1a05002 mov r5, r2 int c; *name = *bufp; 25b2c: 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) { 25b30: e59d7018 ldr r7, [sp, #24] int c; *name = *bufp; 25b34: e5812000 str r2, [r1] for (;;) { c = getc(fp); 25b38: e59f60c4 ldr r6, [pc, #196] ; 25c04 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 25b3c: e1a04000 mov r4, r0 25b40: e1a08003 mov r8, r3 25b44: ea000013 b 25b98 int c; *name = *bufp; for (;;) { c = getc(fp); 25b48: e5943000 ldr r3, [r4] 25b4c: e4d30001 ldrb r0, [r3], #1 if (c == ':') { 25b50: e350003a cmp r0, #58 ; 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 25b54: e5843000 str r3, [r4] if (c == ':') { 25b58: 0a000018 beq 25bc0 if (nlFlag) return 0; break; } if (c == '\n') { 25b5c: e350000a cmp r0, #10 25b60: 0a000023 beq 25bf4 if (!nlFlag) return 0; break; } if (c == EOF) 25b64: e3700001 cmn r0, #1 25b68: 0a000023 beq 25bfc return 0; if (*nleft < 2) 25b6c: e5983000 ldr r3, [r8] 25b70: e3530001 cmp r3, #1 25b74: 9a000020 bls 25bfc return 0; **bufp = c; 25b78: e5953000 ldr r3, [r5] 25b7c: e5c30000 strb r0, [r3] ++(*bufp); 25b80: e5952000 ldr r2, [r5] --(*nleft); 25b84: e5983000 ldr r3, [r8] if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 25b88: e2822001 add r2, r2, #1 --(*nleft); 25b8c: e2433001 sub r3, r3, #1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 25b90: e5852000 str r2, [r5] --(*nleft); 25b94: e5883000 str r3, [r8] { int c; *name = *bufp; for (;;) { c = getc(fp); 25b98: e5943004 ldr r3, [r4, #4] 25b9c: e2433001 sub r3, r3, #1 25ba0: e3530000 cmp r3, #0 25ba4: e5843004 str r3, [r4, #4] 25ba8: aaffffe6 bge 25b48 25bac: e5960000 ldr r0, [r6] 25bb0: e1a01004 mov r1, r4 25bb4: eb0078b6 bl 43e94 <__srget_r> if (c == ':') { 25bb8: e350003a cmp r0, #58 ; 0x3a 25bbc: 1affffe6 bne 25b5c if (nlFlag) 25bc0: e3570000 cmp r7, #0 25bc4: 1a00000c bne 25bfc return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 25bc8: e5953000 ldr r3, [r5] 25bcc: e3a02000 mov r2, #0 25bd0: e5c32000 strb r2, [r3] ++(*bufp); 25bd4: e5952000 ldr r2, [r5] --(*nleft); 25bd8: e5983000 ldr r3, [r8] **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 25bdc: e2822001 add r2, r2, #1 --(*nleft); 25be0: e2433001 sub r3, r3, #1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 25be4: e5852000 str r2, [r5] --(*nleft); 25be8: e5883000 str r3, [r8] 25bec: e3a00001 mov r0, #1 return 1; 25bf0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 25bf4: e3570000 cmp r7, #0 25bf8: 1afffff2 bne 25bc8 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 25bfc: e3a00000 mov r0, #0 <== NOT EXECUTED } 25c00: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 25c04: 000596f0 .word 0x000596f0 00025c08 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 25c08: e92d41f0 push {r4, r5, r6, r7, r8, lr} 25c0c: e24dd014 sub sp, sp, #20 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 25c10: e28d5008 add r5, sp, #8 25c14: e28d4004 add r4, sp, #4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 25c18: e58d2008 str r2, [sp, #8] 25c1c: e58d3004 str r3, [sp, #4] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 25c20: e3a06000 mov r6, #0 25c24: e1a02005 mov r2, r5 25c28: e1a03004 mov r3, r4 25c2c: e58d6000 str r6, [sp] FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 25c30: e1a07000 mov r7, r0 25c34: e1a08001 mov r8, r1 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 25c38: ebffffb9 bl 25b24 25c3c: e1500006 cmp r0, r6 25c40: 1a000002 bne 25c50 *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 25c44: e3a00000 mov r0, #0 <== NOT EXECUTED } 25c48: e28dd014 add sp, sp, #20 25c4c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 25c50: e1a00007 mov r0, r7 25c54: e2881004 add r1, r8, #4 25c58: e1a02005 mov r2, r5 25c5c: e1a03004 mov r3, r4 25c60: e58d6000 str r6, [sp] 25c64: ebffffae bl 25b24 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 25c68: e1500006 cmp r0, r6 25c6c: 0afffff4 beq 25c44 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 25c70: e1a00007 mov r0, r7 25c74: e28d1010 add r1, sp, #16 25c78: ebffff68 bl 25a20 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 25c7c: e1500006 cmp r0, r6 25c80: 0affffef beq 25c44 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 25c84: e1a03004 mov r3, r4 25c88: e1a00007 mov r0, r7 25c8c: e1a02005 mov r2, r5 25c90: e3a04001 mov r4, #1 25c94: e28d100c add r1, sp, #12 25c98: e58d4000 str r4, [sp] 25c9c: ebffffa0 bl 25b24 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 25ca0: e1500006 cmp r0, r6 25ca4: 0affffe6 beq 25c44 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 25ca8: e1dd31b0 ldrh r3, [sp, #16] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25cac: e59d100c ldr r1, [sp, #12] if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 25cb0: e1c830b8 strh r3, [r8, #8] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25cb4: e5d13000 ldrb r3, [r1] 25cb8: e1530006 cmp r3, r6 25cbc: 03a04017 moveq r4, #23 25cc0: 0a000007 beq 25ce4 25cc4: e1a02001 mov r2, r1 if(*cp == ',') 25cc8: e353002c cmp r3, #44 ; 0x2c grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25ccc: e5f23001 ldrb r3, [r2, #1]! if(*cp == ',') memcount++; 25cd0: 02844001 addeq r4, r4, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25cd4: e3530000 cmp r3, #0 25cd8: 1afffffa bne 25cc8 25cdc: e1a04104 lsl r4, r4, #2 25ce0: e2844013 add r4, r4, #19 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 25ce4: e59d3004 ldr r3, [sp, #4] 25ce8: e1530004 cmp r3, r4 25cec: 3affffd4 bcc 25c44 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 25cf0: e59d3008 ldr r3, [sp, #8] 25cf4: e283300f add r3, r3, #15 25cf8: e3c3300f bic r3, r3, #15 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 25cfc: e5831000 str r1, [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); 25d00: e588300c str r3, [r8, #12] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25d04: e59d200c ldr r2, [sp, #12] 25d08: e5d23000 ldrb r3, [r2] 25d0c: e3530000 cmp r3, #0 25d10: 03a01004 moveq r1, #4 25d14: 0a00000b beq 25d48 25d18: e2822001 add r2, r2, #1 25d1c: e3a01001 mov r1, #1 if(*cp == ',') { *cp = '\0'; 25d20: e3a00000 mov r0, #0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 25d24: e353002c cmp r3, #44 ; 0x2c *cp = '\0'; 25d28: 05420001 strbeq r0, [r2, #-1] grp->gr_mem[memcount++] = cp + 1; 25d2c: 0598300c ldreq r3, [r8, #12] 25d30: 07832101 streq r2, [r3, r1, lsl #2] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25d34: e4d23001 ldrb r3, [r2], #1 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; 25d38: 02811001 addeq r1, r1, #1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 25d3c: e3530000 cmp r3, #0 25d40: 1afffff7 bne 25d24 25d44: e1a01101 lsl r1, r1, #2 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 25d48: e598300c ldr r3, [r8, #12] 25d4c: e3a02000 mov r2, #0 25d50: e7832001 str r2, [r3, r1] 25d54: e3a00001 mov r0, #1 return 1; 25d58: eaffffba b 25c48 00025d9c : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 25d9c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 25da0: e24dd014 sub sp, sp, #20 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25da4: e28d5008 add r5, sp, #8 25da8: e28d4004 add r4, sp, #4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 25dac: e58d2008 str r2, [sp, #8] 25db0: e58d3004 str r3, [sp, #4] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25db4: e3a06000 mov r6, #0 25db8: e1a02005 mov r2, r5 25dbc: e1a03004 mov r3, r4 25dc0: e58d6000 str r6, [sp] FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 25dc4: e1a07000 mov r7, r0 25dc8: e1a08001 mov r8, r1 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25dcc: ebffff54 bl 25b24 25dd0: e1500006 cmp r0, r6 25dd4: 1a000002 bne 25de4 || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; 25dd8: e3a00000 mov r0, #0 <== NOT EXECUTED } 25ddc: e28dd014 add sp, sp, #20 25de0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 25de4: e1a00007 mov r0, r7 25de8: e2881004 add r1, r8, #4 25dec: e1a02005 mov r2, r5 25df0: e1a03004 mov r3, r4 25df4: e58d6000 str r6, [sp] 25df8: ebffff49 bl 25b24 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25dfc: e1500006 cmp r0, r6 25e00: 0afffff4 beq 25dd8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 25e04: e1a00007 mov r0, r7 25e08: e28d1010 add r1, sp, #16 25e0c: ebffff03 bl 25a20 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25e10: e1500006 cmp r0, r6 25e14: 0affffef beq 25dd8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 25e18: e1a00007 mov r0, r7 25e1c: e28d100c add r1, sp, #12 25e20: ebfffefe bl 25a20 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25e24: e1500006 cmp r0, r6 25e28: 0affffea beq 25dd8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 25e2c: e1a00007 mov r0, r7 25e30: e288100c add r1, r8, #12 25e34: e1a02005 mov r2, r5 25e38: e1a03004 mov r3, r4 25e3c: e58d6000 str r6, [sp] 25e40: ebffff37 bl 25b24 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25e44: e1500006 cmp r0, r6 25e48: 0affffe2 beq 25dd8 || !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) 25e4c: e1a00007 mov r0, r7 25e50: e2881010 add r1, r8, #16 25e54: e1a02005 mov r2, r5 25e58: e1a03004 mov r3, r4 25e5c: e58d6000 str r6, [sp] 25e60: ebffff2f bl 25b24 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25e64: e1500006 cmp r0, r6 25e68: 0affffda beq 25dd8 || !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) 25e6c: e1a00007 mov r0, r7 25e70: e2881014 add r1, r8, #20 25e74: e1a02005 mov r2, r5 25e78: e1a03004 mov r3, r4 25e7c: e58d6000 str r6, [sp] 25e80: ebffff27 bl 25b24 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25e84: e1500006 cmp r0, r6 25e88: 0affffd2 beq 25dd8 || !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)) 25e8c: e1a03004 mov r3, r4 25e90: e1a00007 mov r0, r7 25e94: e1a02005 mov r2, r5 25e98: e3a04001 mov r4, #1 25e9c: e2881018 add r1, r8, #24 25ea0: e58d4000 str r4, [sp] 25ea4: ebffff1e bl 25b24 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 25ea8: e1500006 cmp r0, r6 25eac: 0affffc9 beq 25dd8 || !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; 25eb0: e1dd30bc ldrh r3, [sp, #12] 25eb4: e1c830ba strh r3, [r8, #10] || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; 25eb8: e1dd31b0 ldrh r3, [sp, #16] pwd->pw_gid = pwgid; 25ebc: e1a00004 mov r0, r4 || !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; 25ec0: e1c830b8 strh r3, [r8, #8] pwd->pw_gid = pwgid; return 1; 25ec4: eaffffc4 b 25ddc 000051a0 : int sched_get_priority_min( int policy ) { switch ( policy ) { 51a0: e3500004 cmp r0, #4 #include int sched_get_priority_min( int policy ) { 51a4: e52de004 push {lr} ; (str lr, [sp, #-4]!) switch ( policy ) { 51a8: 9a000004 bls 51c0 case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 51ac: eb002531 bl e678 <__errno> 51b0: e3a03016 mov r3, #22 51b4: e5803000 str r3, [r0] 51b8: e3e00000 mvn r0, #0 } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } 51bc: e49df004 pop {pc} ; (ldr pc, [sp], #4) int sched_get_priority_min( int policy ) { switch ( policy ) { 51c0: e3a03001 mov r3, #1 51c4: e1a00013 lsl r0, r3, r0 51c8: e3100017 tst r0, #23 51cc: 11a00003 movne r0, r3 51d0: 149df004 popne {pc} ; (ldrne pc, [sp], #4) case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 51d4: eb002527 bl e678 <__errno> <== NOT EXECUTED 51d8: e3a03016 mov r3, #22 <== NOT EXECUTED 51dc: e5803000 str r3, [r0] <== NOT EXECUTED 51e0: e3e00000 mvn r0, #0 <== NOT EXECUTED } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } 51e4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 0000770c : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 770c: e92d4010 push {r4, lr} 7710: e24dd004 sub sp, sp, #4 7714: e1a04000 mov r4, r0 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 7718: e1a00001 mov r0, r1 771c: e1a0100d mov r1, sp 7720: eb001635 bl cffc <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 7724: e3500003 cmp r0, #3 7728: 0a000005 beq 7744 do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 772c: e1a00004 mov r0, r4 <== NOT EXECUTED 7730: e3a01000 mov r1, #0 <== NOT EXECUTED 7734: e59d2000 ldr r2, [sp] <== NOT EXECUTED 7738: eb0018f0 bl db00 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED break; } } return lock_status; } 773c: e28dd004 add sp, sp, #4 7740: e8bd8010 pop {r4, pc} */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 7744: e1a00004 mov r0, r4 7748: e3a01001 mov r1, #1 774c: e59d2000 ldr r2, [sp] 7750: eb0018ea bl db00 <_POSIX_Semaphore_Wait_support> 7754: eafffff8 b 773c 000259c8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 259c8: e59f300c ldr r3, [pc, #12] ; 259dc <== NOT EXECUTED 259cc: e5933000 ldr r3, [r3] <== NOT EXECUTED 259d0: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED return 0; } 259d4: e3a00000 mov r0, #0 <== NOT EXECUTED 259d8: e12fff1e bx lr <== NOT EXECUTED 259dc: 00058ed8 .word 0x00058ed8 00025fe8 : return NULL; return &grent; } void setgrent(void) { 25fe8: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) 25fec: e59f4020 ldr r4, [pc, #32] ; 26014 <== NOT EXECUTED return &grent; } void setgrent(void) { init_etc_passwd_group(); 25ff0: ebffffc4 bl 25f08 <== NOT EXECUTED if (group_fp != NULL) 25ff4: e5940000 ldr r0, [r4] <== NOT EXECUTED 25ff8: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(group_fp); 25ffc: 1b0062f2 blne 3ebcc <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 26000: e59f0010 ldr r0, [pc, #16] ; 26018 <== NOT EXECUTED 26004: e59f1010 ldr r1, [pc, #16] ; 2601c <== NOT EXECUTED 26008: eb006512 bl 3f458 <== NOT EXECUTED 2600c: e5840000 str r0, [r4] <== NOT EXECUTED } 26010: e8bd8010 pop {r4, pc} <== NOT EXECUTED 26014: 00066b18 .word 0x00066b18 26018: 0005d104 .word 0x0005d104 2601c: 00062968 .word 0x00062968 000261e0 : return NULL; return &pwent; } void setpwent(void) { 261e0: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) 261e4: e59f4020 ldr r4, [pc, #32] ; 2620c <== NOT EXECUTED return &pwent; } void setpwent(void) { init_etc_passwd_group(); 261e8: ebffff46 bl 25f08 <== NOT EXECUTED if (passwd_fp != NULL) 261ec: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED 261f0: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(passwd_fp); 261f4: 1b006274 blne 3ebcc <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 261f8: e59f0010 ldr r0, [pc, #16] ; 26210 <== NOT EXECUTED 261fc: e59f1010 ldr r1, [pc, #16] ; 26214 <== NOT EXECUTED 26200: eb006494 bl 3f458 <== NOT EXECUTED 26204: e5840004 str r0, [r4, #4] <== NOT EXECUTED } 26208: e8bd8010 pop {r4, pc} <== NOT EXECUTED 2620c: 00066b18 .word 0x00066b18 26210: 0005d054 .word 0x0005d054 26214: 00062968 .word 0x00062968 000057b8 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 57b8: e59f300c ldr r3, [pc, #12] ; 57cc <== NOT EXECUTED 57bc: e5933000 ldr r3, [r3] <== NOT EXECUTED 57c0: e1c303b2 strh r0, [r3, #50] ; 0x32 <== NOT EXECUTED return 0; } 57c4: e3a00000 mov r0, #0 <== NOT EXECUTED 57c8: e12fff1e bx lr <== NOT EXECUTED 57cc: 00058ed8 .word 0x00058ed8 00002cc0 : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 2cc0: e591303c ldr r3, [r1, #60] ; 0x3c <== NOT EXECUTED 2cc4: e3c33f61 bic r3, r3, #388 ; 0x184 <== NOT EXECUTED 2cc8: e3c33003 bic r3, r3, #3 <== NOT EXECUTED 2ccc: e1a03a03 lsl r3, r3, #20 <== NOT EXECUTED 2cd0: e1a03a23 lsr r3, r3, #20 <== NOT EXECUTED 2cd4: e3530000 cmp r3, #0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2cd8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2cdc: e1a04001 mov r4, r1 <== NOT EXECUTED 2ce0: 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)) { 2ce4: 1a000002 bne 2cf4 <== 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); 2ce8: e1a00005 mov r0, r5 <== NOT EXECUTED } return i; } 2cec: 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); 2cf0: eaffff80 b 2af8 <== NOT EXECUTED /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2cf4: e3a01000 mov r1, #0 <== NOT EXECUTED 2cf8: e1a02001 mov r2, r1 <== NOT EXECUTED 2cfc: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 2d00: eb000699 bl 476c <== NOT EXECUTED i = iproc (c, tty); 2d04: e1a01004 mov r1, r4 <== NOT EXECUTED 2d08: e1a00005 mov r0, r5 <== NOT EXECUTED 2d0c: ebffff79 bl 2af8 <== NOT EXECUTED 2d10: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2d14: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 2d18: eb0006db bl 488c <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2d1c: e1a00005 mov r0, r5 <== NOT EXECUTED 2d20: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00006ddc : int _STAT_NAME( const char *path, struct stat *buf ) { 6ddc: e92d4070 push {r4, r5, r6, lr} /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 6de0: e2515000 subs r5, r1, #0 int _STAT_NAME( const char *path, struct stat *buf ) { 6de4: e24dd018 sub sp, sp, #24 6de8: e1a06000 mov r6, r0 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 6dec: 0a00002f beq 6eb0 rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 6df0: eb00f9b3 bl 454c4 6df4: e28d4004 add r4, sp, #4 6df8: e1a01000 mov r1, r0 6dfc: e3a0c001 mov ip, #1 6e00: e1a00006 mov r0, r6 6e04: e3a02000 mov r2, #0 6e08: e1a03004 mov r3, r4 6e0c: e58dc000 str ip, [sp] 6e10: ebfff9e6 bl 55b0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 6e14: e2501000 subs r1, r0, #0 6e18: 1a000022 bne 6ea8 return -1; if ( !loc.handlers->fstat_h ){ 6e1c: e59d300c ldr r3, [sp, #12] 6e20: e5933018 ldr r3, [r3, #24] 6e24: e3530000 cmp r3, #0 6e28: 0a000013 beq 6e7c /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 6e2c: e3a02048 mov r2, #72 ; 0x48 6e30: e1a00005 mov r0, r5 6e34: eb00ebcf bl 41d78 status = (*loc.handlers->fstat_h)( &loc, buf ); 6e38: e1a01005 mov r1, r5 6e3c: e59d300c ldr r3, [sp, #12] 6e40: e1a00004 mov r0, r4 6e44: e1a0e00f mov lr, pc 6e48: e593f018 ldr pc, [r3, #24] rtems_filesystem_freenode( &loc ); 6e4c: e59d3010 ldr r3, [sp, #16] 6e50: e3530000 cmp r3, #0 * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 6e54: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 6e58: 0a000004 beq 6e70 6e5c: e593301c ldr r3, [r3, #28] 6e60: e3530000 cmp r3, #0 6e64: 11a00004 movne r0, r4 6e68: 11a0e00f movne lr, pc 6e6c: 112fff13 bxne r3 return status; } 6e70: e1a00005 mov r0, r5 6e74: e28dd018 add sp, sp, #24 6e78: e8bd8070 pop {r4, r5, r6, pc} 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 6e7c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 6e80: e3530000 cmp r3, #0 <== NOT EXECUTED 6e84: 0a000004 beq 6e9c <== NOT EXECUTED 6e88: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 6e8c: e3530000 cmp r3, #0 <== NOT EXECUTED 6e90: 11a00004 movne r0, r4 <== NOT EXECUTED 6e94: 11a0e00f movne lr, pc <== NOT EXECUTED 6e98: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 6e9c: eb00defd bl 3ea98 <__errno> <== NOT EXECUTED 6ea0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 6ea4: e5803000 str r3, [r0] <== NOT EXECUTED 6ea8: e3e05000 mvn r5, #0 6eac: eaffffef b 6e70 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 6eb0: eb00def8 bl 3ea98 <__errno> 6eb4: e3a0300e mov r3, #14 6eb8: e5803000 str r3, [r0] 6ebc: e3e05000 mvn r5, #0 6ec0: eaffffea b 6e70 00026f28 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 26f28: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 26f2c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 26f30: e1a04001 mov r4, r1 <== NOT EXECUTED 26f34: 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 ) ) 26f38: eb007961 bl 454c4 <== NOT EXECUTED 26f3c: e28d5004 add r5, sp, #4 <== NOT EXECUTED 26f40: e1a01000 mov r1, r0 <== NOT EXECUTED 26f44: e3a0c001 mov ip, #1 <== NOT EXECUTED 26f48: e1a00006 mov r0, r6 <== NOT EXECUTED 26f4c: e3a02000 mov r2, #0 <== NOT EXECUTED 26f50: e1a03005 mov r3, r5 <== NOT EXECUTED 26f54: e58dc000 str ip, [sp] <== NOT EXECUTED 26f58: ebff7994 bl 55b0 <== NOT EXECUTED 26f5c: e3500000 cmp r0, #0 <== NOT EXECUTED 26f60: 1a000028 bne 27008 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 26f64: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 26f68: e5932028 ldr r2, [r3, #40] ; 0x28 <== NOT EXECUTED 26f6c: e5922044 ldr r2, [r2, #68] ; 0x44 <== NOT EXECUTED 26f70: e3520000 cmp r2, #0 <== NOT EXECUTED 26f74: 0a000020 beq 26ffc <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 26f78: e1a02004 mov r2, r4 <== NOT EXECUTED 26f7c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26f80: e2822004 add r2, r2, #4 <== NOT EXECUTED 26f84: e5840004 str r0, [r4, #4] <== NOT EXECUTED 26f88: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26f8c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26f90: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26f94: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26f98: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26f9c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26fa0: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26fa4: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26fa8: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26fac: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26fb0: e4820004 str r0, [r2], #4 <== NOT EXECUTED 26fb4: e5820000 str r0, [r2] <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 26fb8: e1a01004 mov r1, r4 <== NOT EXECUTED 26fbc: e283001c add r0, r3, #28 <== NOT EXECUTED 26fc0: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED 26fc4: e1a0e00f mov lr, pc <== NOT EXECUTED 26fc8: e593f044 ldr pc, [r3, #68] ; 0x44 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 26fcc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 26fd0: e3530000 cmp r3, #0 <== 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 ); 26fd4: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 26fd8: 0a000004 beq 26ff0 <== NOT EXECUTED 26fdc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 26fe0: e3530000 cmp r3, #0 <== NOT EXECUTED 26fe4: 11a00005 movne r0, r5 <== NOT EXECUTED 26fe8: 11a0e00f movne lr, pc <== NOT EXECUTED 26fec: 112fff13 bxne r3 <== NOT EXECUTED return result; } 26ff0: e1a00004 mov r0, r4 <== NOT EXECUTED 26ff4: e28dd018 add sp, sp, #24 <== NOT EXECUTED 26ff8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 26ffc: eb005ea5 bl 3ea98 <__errno> <== NOT EXECUTED 27000: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 27004: e5803000 str r3, [r0] <== NOT EXECUTED 27008: e3e04000 mvn r4, #0 <== NOT EXECUTED 2700c: eafffff7 b 26ff0 <== NOT EXECUTED 00027010 : int symlink( const char *actualpath, const char *sympath ) { 27010: 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 ); 27014: e5d13000 ldrb r3, [r1] 27018: e353002f cmp r3, #47 ; 0x2f 2701c: 1353005c cmpne r3, #92 ; 0x5c int symlink( const char *actualpath, const char *sympath ) { 27020: e24dd018 sub sp, sp, #24 27024: e1a0e001 mov lr, r1 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 27028: 13a06000 movne r6, #0 2702c: 03a06001 moveq r6, #1 int symlink( const char *actualpath, const char *sympath ) { 27030: e1a05000 mov r5, r0 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 27034: 0a000001 beq 27040 27038: e3530000 cmp r3, #0 2703c: 1a000029 bne 270e8 27040: e59f3104 ldr r3, [pc, #260] ; 2714c 27044: e593c000 ldr ip, [r3] 27048: e28cc018 add ip, ip, #24 2704c: e8bc000f ldm ip!, {r0, r1, r2, r3} 27050: e1a0600d mov r6, sp 27054: e8a6000f stmia r6!, {r0, r1, r2, r3} if ( !loc.ops->evalformake_h ) { 27058: e59d300c ldr r3, [sp, #12] 2705c: e5933004 ldr r3, [r3, #4] rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 27060: e59c2000 ldr r2, [ip] if ( !loc.ops->evalformake_h ) { 27064: e3530000 cmp r3, #0 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 27068: e5862000 str r2, [r6] 2706c: e1a0400d mov r4, sp 27070: e3a06001 mov r6, #1 if ( !loc.ops->evalformake_h ) { 27074: 0a000028 beq 2711c rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 27078: e08e0006 add r0, lr, r6 2707c: e1a0100d mov r1, sp 27080: e28d2014 add r2, sp, #20 27084: e1a0e00f mov lr, pc 27088: e12fff13 bx r3 if ( result != 0 ) 2708c: e3500000 cmp r0, #0 27090: 1a000024 bne 27128 return -1; if ( !loc.ops->symlink_h ) { 27094: e59d200c ldr r2, [sp, #12] 27098: e5923038 ldr r3, [r2, #56] ; 0x38 2709c: e3530000 cmp r3, #0 270a0: 0a000022 beq 27130 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 270a4: e1a01005 mov r1, r5 270a8: e1a0000d mov r0, sp 270ac: e59d2014 ldr r2, [sp, #20] 270b0: e1a0e00f mov lr, pc 270b4: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 270b8: e59d300c ldr r3, [sp, #12] 270bc: e3530000 cmp r3, #0 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); 270c0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 270c4: 0a000004 beq 270dc 270c8: e593301c ldr r3, [r3, #28] 270cc: e3530000 cmp r3, #0 270d0: 11a0000d movne r0, sp 270d4: 11a0e00f movne lr, pc 270d8: 112fff13 bxne r3 return result; } 270dc: e1a00005 mov r0, r5 270e0: e28dd018 add sp, sp, #24 270e4: e8bd80f0 pop {r4, r5, r6, r7, pc} rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 270e8: e59f305c ldr r3, [pc, #92] ; 2714c 270ec: e593c000 ldr ip, [r3] 270f0: e28cc004 add ip, ip, #4 270f4: e8bc000f ldm ip!, {r0, r1, r2, r3} 270f8: e1a0700d mov r7, sp 270fc: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->evalformake_h ) { 27100: e59d300c ldr r3, [sp, #12] 27104: e5933004 ldr r3, [r3, #4] rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 27108: e59c2000 ldr r2, [ip] if ( !loc.ops->evalformake_h ) { 2710c: e3530000 cmp r3, #0 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 27110: e1a0400d mov r4, sp 27114: e5872000 str r2, [r7] if ( !loc.ops->evalformake_h ) { 27118: 1affffd6 bne 27078 if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 2711c: eb005e5d bl 3ea98 <__errno> <== NOT EXECUTED 27120: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 27124: e5803000 str r3, [r0] <== NOT EXECUTED 27128: e3e05000 mvn r5, #0 2712c: eaffffea b 270dc result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); 27130: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 27134: e3530000 cmp r3, #0 <== NOT EXECUTED 27138: 0afffff7 beq 2711c <== NOT EXECUTED 2713c: e1a0000d mov r0, sp <== NOT EXECUTED 27140: e1a0e00f mov lr, pc <== NOT EXECUTED 27144: e12fff13 bx r3 <== NOT EXECUTED 27148: eafffff3 b 2711c <== NOT EXECUTED 2714c: 00058ed8 .word 0x00058ed8 00011950 : int fd, int opt, struct termios *tp ) { switch (opt) { 11950: e3510000 cmp r1, #0 int tcsetattr( int fd, int opt, struct termios *tp ) { 11954: e92d4030 push {r4, r5, lr} 11958: e1a04002 mov r4, r2 1195c: e1a05000 mov r5, r0 switch (opt) { 11960: 0a00000b beq 11994 11964: e3510001 cmp r1, #1 <== NOT EXECUTED 11968: 0a000004 beq 11980 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 1196c: eb001562 bl 16efc <__errno> <== NOT EXECUTED 11970: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 11974: e5803000 str r3, [r0] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 11978: e3e00000 mvn r0, #0 <== NOT EXECUTED 1197c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 11980: e3a01003 mov r1, #3 <== NOT EXECUTED 11984: e3a02000 mov r2, #0 <== NOT EXECUTED 11988: eb000f3f bl 1568c <== NOT EXECUTED 1198c: e3500000 cmp r0, #0 <== NOT EXECUTED 11990: bafffff8 blt 11978 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 11994: e1a00005 mov r0, r5 11998: e1a02004 mov r2, r4 1199c: e3a01002 mov r1, #2 } } 119a0: e8bd4030 pop {r4, r5, lr} return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 119a4: ea000f38 b 1568c 0000ce84 : #include int unlink( const char *path ) { ce84: e92d40f0 push {r4, r5, r6, r7, lr} ce88: e24dd02c sub sp, sp, #44 ; 0x2c ce8c: e1a05000 mov r5, r0 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); ce90: ebffd0e1 bl 121c if ( parentpathlen == 0 ) ce94: e2507000 subs r7, r0, #0 ce98: 1a00007d bne d094 rtems_filesystem_get_start_loc( path, &i, &parentloc ); ce9c: e5d53000 ldrb r3, [r5] cea0: e353002f cmp r3, #47 ; 0x2f cea4: 1353005c cmpne r3, #92 ; 0x5c cea8: 1a000049 bne cfd4 ceac: e59f326c ldr r3, [pc, #620] ; d120 ceb0: e593c000 ldr ip, [r3] ceb4: e28cc018 add ip, ip, #24 ceb8: e8bc000f ldm ip!, {r0, r1, r2, r3} cebc: e28d4018 add r4, sp, #24 cec0: e1a0e004 mov lr, r4 cec4: e8ae000f stmia lr!, {r0, r1, r2, r3} cec8: e59c2000 ldr r2, [ip] cecc: e58e2000 str r2, [lr] ced0: e3a06000 mov r6, #0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ced4: e1a0e004 mov lr, r4 ced8: e8be000f ldm lr!, {r0, r1, r2, r3} cedc: e28dc004 add ip, sp, #4 cee0: e8ac000f stmia ip!, {r0, r1, r2, r3} cee4: e59e3000 ldr r3, [lr] name = path + parentpathlen; cee8: e0855007 add r5, r5, r7 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ceec: e58c3000 str r3, [ip] name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); cef0: e1a00005 mov r0, r5 cef4: eb000622 bl e784 cef8: e1a01000 mov r1, r0 cefc: e1a00005 mov r0, r5 cf00: ebffd0b1 bl 11cc cf04: e0857000 add r7, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), cf08: e1a00007 mov r0, r7 cf0c: eb00061c bl e784 cf10: e28d5004 add r5, sp, #4 cf14: e3a0c000 mov ip, #0 cf18: e1a01000 mov r1, r0 cf1c: e1a0200c mov r2, ip cf20: e1a00007 mov r0, r7 cf24: e1a03005 mov r3, r5 cf28: e58dc000 str ip, [sp] cf2c: ebffd0d4 bl 1284 0, &loc, false ); if ( result != 0 ) { cf30: e3500000 cmp r0, #0 cf34: 1a000033 bne d008 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { cf38: e59d2010 ldr r2, [sp, #16] cf3c: e5923010 ldr r3, [r2, #16] cf40: e3530000 cmp r3, #0 cf44: 0a00003e beq d044 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 ) { cf48: e1a00005 mov r0, r5 cf4c: e1a0e00f mov lr, pc cf50: e12fff13 bx r3 cf54: e3500001 cmp r0, #1 cf58: 0a000059 beq d0c4 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { cf5c: e59d2010 ldr r2, [sp, #16] cf60: e592300c ldr r3, [r2, #12] cf64: e3530000 cmp r3, #0 cf68: 0a000035 beq d044 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); cf6c: e1a00004 mov r0, r4 cf70: e1a01005 mov r1, r5 cf74: e1a0e00f mov lr, pc cf78: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); cf7c: e59d3010 ldr r3, [sp, #16] cf80: e3530000 cmp r3, #0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); cf84: e1a07000 mov r7, r0 rtems_filesystem_freenode( &loc ); cf88: 0a000004 beq cfa0 cf8c: e593301c ldr r3, [r3, #28] cf90: e3530000 cmp r3, #0 cf94: 11a00005 movne r0, r5 cf98: 11a0e00f movne lr, pc cf9c: 112fff13 bxne r3 if ( free_parentloc ) cfa0: e3560000 cmp r6, #0 cfa4: 0a000007 beq cfc8 rtems_filesystem_freenode( &parentloc ); cfa8: e59d3024 ldr r3, [sp, #36] ; 0x24 cfac: e3530000 cmp r3, #0 cfb0: 0a000004 beq cfc8 cfb4: e593301c ldr r3, [r3, #28] cfb8: e3530000 cmp r3, #0 cfbc: 11a00004 movne r0, r4 cfc0: 11a0e00f movne lr, pc cfc4: 112fff13 bxne r3 return result; } cfc8: e1a00007 mov r0, r7 cfcc: e28dd02c add sp, sp, #44 ; 0x2c cfd0: e8bd80f0 pop {r4, r5, r6, r7, pc} */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); cfd4: e3530000 cmp r3, #0 <== NOT EXECUTED cfd8: 0affffb3 beq ceac <== NOT EXECUTED cfdc: e59f313c ldr r3, [pc, #316] ; d120 <== NOT EXECUTED cfe0: e593c000 ldr ip, [r3] <== NOT EXECUTED cfe4: e28cc004 add ip, ip, #4 <== NOT EXECUTED cfe8: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED cfec: e28d4018 add r4, sp, #24 <== NOT EXECUTED cff0: e1a0e004 mov lr, r4 <== NOT EXECUTED cff4: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED cff8: e59c2000 ldr r2, [ip] <== NOT EXECUTED cffc: e1a06007 mov r6, r7 <== NOT EXECUTED d000: e58e2000 str r2, [lr] <== NOT EXECUTED d004: eaffffb2 b ced4 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) d008: e3560000 cmp r6, #0 d00c: 1a000001 bne d018 result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); d010: e3e07000 mvn r7, #0 <== NOT EXECUTED d014: eaffffeb b cfc8 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); d018: e59d3024 ldr r3, [sp, #36] ; 0x24 d01c: e3530000 cmp r3, #0 d020: 0afffffa beq d010 d024: e593301c ldr r3, [r3, #28] d028: e3530000 cmp r3, #0 d02c: 0afffff7 beq d010 d030: e1a00004 mov r0, r4 d034: e1a0e00f mov lr, pc d038: e12fff13 bx r3 d03c: e3e07000 mvn r7, #0 d040: eaffffe0 b cfc8 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); d044: e592301c ldr r3, [r2, #28] <== NOT EXECUTED d048: e3530000 cmp r3, #0 <== NOT EXECUTED d04c: 11a00005 movne r0, r5 <== NOT EXECUTED d050: 11a0e00f movne lr, pc <== NOT EXECUTED d054: 112fff13 bxne r3 <== NOT EXECUTED if ( free_parentloc ) d058: e3560000 cmp r6, #0 <== NOT EXECUTED d05c: 0a000007 beq d080 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); d060: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED d064: e3530000 cmp r3, #0 <== NOT EXECUTED d068: 0a000004 beq d080 <== NOT EXECUTED d06c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED d070: e3530000 cmp r3, #0 <== NOT EXECUTED d074: 11a00004 movne r0, r4 <== NOT EXECUTED d078: 11a0e00f movne lr, pc <== NOT EXECUTED d07c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); d080: eb0001ce bl d7c0 <__errno> <== NOT EXECUTED d084: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED d088: e5803000 str r3, [r0] <== NOT EXECUTED d08c: e3e07000 mvn r7, #0 <== NOT EXECUTED d090: eaffffcc b cfc8 <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path( path, parentpathlen, d094: e28d4018 add r4, sp, #24 d098: e3a0c000 mov ip, #0 d09c: e1a00005 mov r0, r5 d0a0: e1a01007 mov r1, r7 d0a4: e3a02002 mov r2, #2 d0a8: e1a03004 mov r3, r4 d0ac: e58dc000 str ip, [sp] d0b0: ebffd0af bl 1374 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) d0b4: e3500000 cmp r0, #0 d0b8: 1affffd4 bne d010 d0bc: e3a06001 mov r6, #1 d0c0: eaffff83 b ced4 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); d0c4: e59d3010 ldr r3, [sp, #16] d0c8: e3530000 cmp r3, #0 d0cc: 0a000004 beq d0e4 d0d0: e593301c ldr r3, [r3, #28] d0d4: e3530000 cmp r3, #0 d0d8: 11a00005 movne r0, r5 d0dc: 11a0e00f movne lr, pc d0e0: 112fff13 bxne r3 if ( free_parentloc ) d0e4: e3560000 cmp r6, #0 d0e8: 0a000007 beq d10c rtems_filesystem_freenode( &parentloc ); d0ec: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED d0f0: e3530000 cmp r3, #0 <== NOT EXECUTED d0f4: 0a000004 beq d10c <== NOT EXECUTED d0f8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED d0fc: e3530000 cmp r3, #0 <== NOT EXECUTED d100: 11a00004 movne r0, r4 <== NOT EXECUTED d104: 11a0e00f movne lr, pc <== NOT EXECUTED d108: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); d10c: eb0001ab bl d7c0 <__errno> d110: e3a03015 mov r3, #21 d114: e5803000 str r3, [r0] d118: e3e07000 mvn r7, #0 d11c: eaffffa9 b cfc8 d120: 00019228 .word 0x00019228 00008f58 : */ int unmount( const char *path ) { 8f58: e92d4030 push {r4, r5, lr} 8f5c: e24dd018 sub sp, sp, #24 8f60: 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 ) ) 8f64: eb00f156 bl 454c4 8f68: e28d4004 add r4, sp, #4 8f6c: e1a01000 mov r1, r0 8f70: e3a0c001 mov ip, #1 8f74: e1a00005 mov r0, r5 8f78: e3a02000 mov r2, #0 8f7c: e1a03004 mov r3, r4 8f80: e58dc000 str ip, [sp] 8f84: ebfff189 bl 55b0 8f88: e3500000 cmp r0, #0 8f8c: 1a000032 bne 905c return -1; mt_entry = loc.mt_entry; 8f90: e59d5014 ldr r5, [sp, #20] fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 8f94: e59d3004 ldr r3, [sp, #4] 8f98: e595201c ldr r2, [r5, #28] 8f9c: e1520003 cmp r2, r3 8fa0: 1a000049 bne 90cc /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 8fa4: e59d3010 ldr r3, [sp, #16] 8fa8: e3530000 cmp r3, #0 8fac: 0a000004 beq 8fc4 8fb0: e593301c ldr r3, [r3, #28] 8fb4: e3530000 cmp r3, #0 8fb8: 11a00004 movne r0, r4 8fbc: 11a0e00f movne lr, pc 8fc0: 112fff13 bxne r3 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; 8fc4: e5953014 ldr r3, [r5, #20] 8fc8: e5933028 ldr r3, [r3, #40] ; 0x28 8fcc: e3530000 cmp r3, #0 8fd0: 0a000052 beq 9120 fs_root_loc = &mt_entry->mt_fs_root; 8fd4: e5953028 ldr r3, [r5, #40] ; 0x28 8fd8: e593302c ldr r3, [r3, #44] ; 0x2c 8fdc: e3530000 cmp r3, #0 8fe0: 0a00004e beq 9120 * 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 ) 8fe4: e59f3148 ldr r3, [pc, #328] ; 9134 8fe8: e5933000 ldr r3, [r3] 8fec: e5933014 ldr r3, [r3, #20] 8ff0: e1530005 cmp r3, r5 8ff4: 0a00001b beq 9068 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 8ff8: e59f1138 ldr r1, [pc, #312] ; 9138 8ffc: e4913004 ldr r3, [r1], #4 9000: e1530001 cmp r3, r1 9004: 0a00000a beq 9034 !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 ) { 9008: e595002c ldr r0, [r5, #44] ; 0x2c 900c: e5932018 ldr r2, [r3, #24] 9010: e1520000 cmp r2, r0 9014: 1a000003 bne 9028 9018: ea000012 b 9068 <== NOT EXECUTED 901c: e5932018 ldr r2, [r3, #24] 9020: e1500002 cmp r0, r2 9024: 0a00000f beq 9068 * 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 ) { 9028: e5933000 ldr r3, [r3] /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 902c: e1530001 cmp r3, r1 9030: 1afffff9 bne 901c * 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 ) 9034: e1a00005 mov r0, r5 9038: ebfff250 bl 5980 903c: e3500001 cmp r0, #1 9040: 0a000008 beq 9068 * 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 ) 9044: e5953014 ldr r3, [r5, #20] 9048: e1a00005 mov r0, r5 904c: e1a0e00f mov lr, pc 9050: e593f028 ldr pc, [r3, #40] ; 0x28 9054: e2504000 subs r4, r0, #0 9058: 0a000007 beq 907c */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 905c: e3e00000 mvn r0, #0 } 9060: e28dd018 add sp, sp, #24 9064: e8bd8030 pop {r4, r5, pc} * descriptors that are currently active and reference nodes in the * file system that we are trying to unmount */ if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 ) rtems_set_errno_and_return_minus_one( EBUSY ); 9068: eb00d68a bl 3ea98 <__errno> 906c: e3a03010 mov r3, #16 9070: e5803000 str r3, [r0] 9074: e3e00000 mvn r0, #0 9078: eafffff8 b 9060 * 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){ 907c: e5953028 ldr r3, [r5, #40] ; 0x28 9080: e1a00005 mov r0, r5 9084: e1a0e00f mov lr, pc 9088: e593f02c ldr pc, [r3, #44] ; 0x2c 908c: e3500000 cmp r0, #0 9090: 1a00001a bne 9100 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 9094: e1a00005 mov r0, r5 9098: eb0005ba bl a788 <_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 ); 909c: e5953014 ldr r3, [r5, #20] 90a0: e3530000 cmp r3, #0 90a4: 0a000004 beq 90bc 90a8: e593301c ldr r3, [r3, #28] 90ac: e3530000 cmp r3, #0 90b0: 12850008 addne r0, r5, #8 90b4: 11a0e00f movne lr, pc 90b8: 112fff13 bxne r3 free( mt_entry ); 90bc: e1a00005 mov r0, r5 90c0: ebfff170 bl 5688 90c4: e3a00000 mov r0, #0 return 0; 90c8: eaffffe4 b 9060 /* * 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 ); 90cc: e59d3010 ldr r3, [sp, #16] 90d0: e3530000 cmp r3, #0 90d4: 0a000004 beq 90ec 90d8: e593301c ldr r3, [r3, #28] 90dc: e3530000 cmp r3, #0 90e0: 11a00004 movne r0, r4 90e4: 11a0e00f movne lr, pc 90e8: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EACCES ); 90ec: eb00d669 bl 3ea98 <__errno> 90f0: e3a0300d mov r3, #13 90f4: e5803000 str r3, [r0] 90f8: e3e00000 mvn r0, #0 90fc: eaffffd7 b 9060 * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 9100: e1a00005 mov r0, r5 <== NOT EXECUTED 9104: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED 9108: e1a0e00f mov lr, pc <== NOT EXECUTED 910c: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 9110: e3500000 cmp r0, #0 <== NOT EXECUTED 9114: 0affffd0 beq 905c <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 9118: e1a00004 mov r0, r4 <== NOT EXECUTED 911c: eb0004c5 bl a438 <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 9120: eb00d65c bl 3ea98 <__errno> <== NOT EXECUTED 9124: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 9128: e5803000 str r3, [r0] <== NOT EXECUTED 912c: e3e00000 mvn r0, #0 <== NOT EXECUTED 9130: eaffffca b 9060 <== NOT EXECUTED 9134: 00058ed8 .word 0x00058ed8 9138: 00066e48 .word 0x00066e48 000271dc : int utime( const char *path, const struct utimbuf *times ) { 271dc: e92d4070 push {r4, r5, r6, lr} 271e0: e24dd018 sub sp, sp, #24 271e4: e1a05001 mov r5, r1 271e8: 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 ) ) 271ec: eb0078b4 bl 454c4 271f0: e28d4004 add r4, sp, #4 271f4: e1a01000 mov r1, r0 271f8: e3a0c001 mov ip, #1 271fc: e1a00006 mov r0, r6 27200: e3a02000 mov r2, #0 27204: e1a03004 mov r3, r4 27208: e58dc000 str ip, [sp] 2720c: ebff78e7 bl 55b0 27210: e3500000 cmp r0, #0 27214: 1a00001b bne 27288 return -1; if ( !temp_loc.ops->utime_h ){ 27218: e59d2010 ldr r2, [sp, #16] 2721c: e5923030 ldr r3, [r2, #48] ; 0x30 27220: e3530000 cmp r3, #0 27224: 0a00000f beq 27268 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 ); 27228: e8950006 ldm r5, {r1, r2} 2722c: e1a00004 mov r0, r4 27230: e1a0e00f mov lr, pc 27234: e12fff13 bx r3 rtems_filesystem_freenode( &temp_loc ); 27238: e59d3010 ldr r3, [sp, #16] 2723c: e3530000 cmp r3, #0 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 ); 27240: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 27244: 0a000004 beq 2725c 27248: e593301c ldr r3, [r3, #28] 2724c: e3530000 cmp r3, #0 27250: 11a00004 movne r0, r4 27254: 11a0e00f movne lr, pc 27258: 112fff13 bxne r3 return result; } 2725c: e1a00005 mov r0, r5 27260: e28dd018 add sp, sp, #24 27264: e8bd8070 pop {r4, r5, r6, pc} if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); 27268: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 2726c: e3530000 cmp r3, #0 <== NOT EXECUTED 27270: 11a00004 movne r0, r4 <== NOT EXECUTED 27274: 11a0e00f movne lr, pc <== NOT EXECUTED 27278: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2727c: eb005e05 bl 3ea98 <__errno> <== NOT EXECUTED 27280: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 27284: e5803000 str r3, [r0] <== NOT EXECUTED 27288: e3e05000 mvn r5, #0 2728c: eafffff2 b 2725c 00018b04 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 18b04: e59f30bc ldr r3, [pc, #188] ; 18bc8 18b08: e5933000 ldr r3, [r3] 18b0c: e1500003 cmp r0, r3 ssize_t write( int fd, const void *buffer, size_t count ) { 18b10: e92d4810 push {r4, fp, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 18b14: 2a00001c bcs 18b8c iop = rtems_libio_iop( fd ); 18b18: e59f40ac ldr r4, [pc, #172] ; 18bcc 18b1c: e5944000 ldr r4, [r4] 18b20: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 18b24: e5940014 ldr r0, [r4, #20] 18b28: e3100c01 tst r0, #256 ; 0x100 18b2c: 0a000016 beq 18b8c rtems_libio_check_buffer( buffer ); 18b30: e3510000 cmp r1, #0 18b34: 0a000019 beq 18ba0 rtems_libio_check_count( count ); 18b38: e3520000 cmp r2, #0 18b3c: 01a00002 moveq r0, r2 18b40: 08bd8810 popeq {r4, fp, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 18b44: e3100004 tst r0, #4 18b48: 0a000014 beq 18ba0 /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 18b4c: e594303c ldr r3, [r4, #60] ; 0x3c 18b50: e593300c ldr r3, [r3, #12] 18b54: e3530000 cmp r3, #0 18b58: 0a000015 beq 18bb4 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 18b5c: e1a00004 mov r0, r4 18b60: e1a0e00f mov lr, pc 18b64: e12fff13 bx r3 if ( rc > 0 ) 18b68: e3500000 cmp r0, #0 18b6c: d8bd8810 pople {r4, fp, pc} iop->offset += rc; 18b70: e284c00c add ip, r4, #12 18b74: e89c1800 ldm ip, {fp, ip} 18b78: e09b2000 adds r2, fp, r0 18b7c: e0ac3fc0 adc r3, ip, r0, asr #31 18b80: e584200c str r2, [r4, #12] 18b84: e5843010 str r3, [r4, #16] return rc; } 18b88: e8bd8810 pop {r4, fp, pc} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 18b8c: ebffd30b bl d7c0 <__errno> <== NOT EXECUTED 18b90: e3a03009 mov r3, #9 <== NOT EXECUTED 18b94: e5803000 str r3, [r0] <== NOT EXECUTED 18b98: e3e00000 mvn r0, #0 <== NOT EXECUTED 18b9c: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 18ba0: ebffd306 bl d7c0 <__errno> <== NOT EXECUTED 18ba4: e3a03016 mov r3, #22 <== NOT EXECUTED 18ba8: e5803000 str r3, [r0] <== NOT EXECUTED 18bac: e3e00000 mvn r0, #0 <== NOT EXECUTED 18bb0: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 18bb4: ebffd301 bl d7c0 <__errno> <== NOT EXECUTED 18bb8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 18bbc: e5803000 str r3, [r0] <== NOT EXECUTED 18bc0: e3e00000 mvn r0, #0 <== NOT EXECUTED 18bc4: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 18bc8: 00019090 .word 0x00019090 18bcc: 0001a8e4 .word 0x0001a8e4 00005a9c : int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 5a9c: e59f317c ldr r3, [pc, #380] ; 5c20 5aa0: e5933000 ldr r3, [r3] 5aa4: e1500003 cmp r0, r3 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 5aa8: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} 5aac: e1a05002 mov r5, r2 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 5ab0: 2a00004e bcs 5bf0 iop = rtems_libio_iop( fd ); 5ab4: e59f3168 ldr r3, [pc, #360] ; 5c24 5ab8: e5937000 ldr r7, [r3] 5abc: e0877300 add r7, r7, r0, lsl #6 rtems_libio_check_is_open( iop ); 5ac0: e5973014 ldr r3, [r7, #20] 5ac4: e3130c01 tst r3, #256 ; 0x100 5ac8: 0a000048 beq 5bf0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5acc: e3130004 tst r3, #4 5ad0: 0a000040 beq 5bd8 /* * Argument validation on IO vector */ if ( !iov ) 5ad4: e3510000 cmp r1, #0 5ad8: 0a00003e beq 5bd8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 5adc: e3520000 cmp r2, #0 5ae0: da00003c ble 5bd8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 5ae4: e3520b01 cmp r2, #1024 ; 0x400 5ae8: ca00003a bgt 5bd8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 5aec: e597303c ldr r3, [r7, #60] ; 0x3c 5af0: e593300c ldr r3, [r3, #12] 5af4: e3530000 cmp r3, #0 5af8: 0a000043 beq 5c0c rtems_set_errno_and_return_minus_one( ENOTSUP ); 5afc: e1a04001 mov r4, r1 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 5b00: e3a0cc7f mov ip, #32512 ; 0x7f00 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 ); 5b04: e3a01000 mov r1, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 5b08: e28cc0ff add ip, ip, #255 ; 0xff 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 ); 5b0c: e1a02004 mov r2, r4 5b10: e3a06001 mov r6, #1 5b14: e1a08001 mov r8, r1 5b18: ea000000 b 5b20 * 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++ ) { 5b1c: e1a08003 mov r8, r3 if ( !iov[v].iov_base ) 5b20: e5923000 ldr r3, [r2] 5b24: e3530000 cmp r3, #0 * 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++ ) { 5b28: e2811001 add r1, r1, #1 if ( !iov[v].iov_base ) 5b2c: 0a000029 beq 5bd8 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 ) 5b30: e5920004 ldr r0, [r2, #4] all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 5b34: e0883000 add r3, r8, r0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 5b38: e3500000 cmp r0, #0 5b3c: 13a06000 movne r6, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 5b40: e1580003 cmp r8, r3 5b44: d153000c cmple r3, ip 5b48: d3a08000 movle r8, #0 5b4c: c3a08001 movgt r8, #1 5b50: ca000020 bgt 5bd8 * 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++ ) { 5b54: e1550001 cmp r5, r1 5b58: e2822008 add r2, r2, #8 5b5c: caffffee bgt 5b1c } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 5b60: e3560000 cmp r6, #0 <== NOT EXECUTED 5b64: 1a00001f bne 5be8 <== NOT EXECUTED 5b68: e1a08006 mov r8, r6 <== NOT EXECUTED 5b6c: ea000002 b 5b7c <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 5b70: e1550006 cmp r5, r6 <== NOT EXECUTED 5b74: e2844008 add r4, r4, #8 <== NOT EXECUTED 5b78: da00001a ble 5be8 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 5b7c: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 5b80: e3520000 cmp r2, #0 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 5b84: e2866001 add r6, r6, #1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 5b88: 0afffff8 beq 5b70 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 5b8c: e5941000 ldr r1, [r4] <== NOT EXECUTED 5b90: e597303c ldr r3, [r7, #60] ; 0x3c <== NOT EXECUTED 5b94: e1a00007 mov r0, r7 <== NOT EXECUTED 5b98: e1a0e00f mov lr, pc <== NOT EXECUTED 5b9c: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED if ( bytes < 0 ) 5ba0: e3500000 cmp r0, #0 <== NOT EXECUTED 5ba4: ba000016 blt 5c04 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 5ba8: 0a000006 beq 5bc8 <== NOT EXECUTED iop->offset += bytes; 5bac: e287c00c add ip, r7, #12 <== NOT EXECUTED 5bb0: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 5bb4: e09b2000 adds r2, fp, r0 <== NOT EXECUTED 5bb8: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED 5bbc: e587200c str r2, [r7, #12] <== NOT EXECUTED 5bc0: e5873010 str r3, [r7, #16] <== NOT EXECUTED total += bytes; 5bc4: e0888000 add r8, r8, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 5bc8: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 5bcc: e1500003 cmp r0, r3 <== NOT EXECUTED 5bd0: 0affffe6 beq 5b70 <== NOT EXECUTED 5bd4: ea000003 b 5be8 <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); 5bd8: eb0028e2 bl ff68 <__errno> 5bdc: e3a03016 mov r3, #22 5be0: e5803000 str r3, [r0] 5be4: e3e08000 mvn r8, #0 if (bytes != iov[ v ].iov_len) break; } return total; } 5be8: e1a00008 mov r0, r8 5bec: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 5bf0: eb0028dc bl ff68 <__errno> 5bf4: e3a03009 mov r3, #9 5bf8: e5803000 str r3, [r0] 5bfc: e3e08000 mvn r8, #0 5c00: eafffff8 b 5be8 if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 5c04: e3e08000 mvn r8, #0 <== NOT EXECUTED 5c08: eafffff6 b 5be8 <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5c0c: eb0028d5 bl ff68 <__errno> <== NOT EXECUTED 5c10: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 5c14: e5803000 str r3, [r0] <== NOT EXECUTED 5c18: e3e08000 mvn r8, #0 <== NOT EXECUTED 5c1c: eafffff1 b 5be8 <== NOT EXECUTED 5c20: 0001d090 .word 0x0001d090 5c24: 0001fd38 .word 0x0001fd38