a0007f34 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { a0007f34: e5903000 ldr r3, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; a0007f38: e5902010 ldr r2, [r0, #16] switch( node->type ) { a0007f3c: 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; a0007f40: e5922034 ldr r2, [r2, #52] ; 0x34 switch( node->type ) { a0007f44: e2433001 sub r3, r3, #1 a0007f48: e3530006 cmp r3, #6 a0007f4c: 979ff103 ldrls pc, [pc, r3, lsl #2] a0007f50: ea000008 b a0007f78 <== NOT EXECUTED a0007f54: a0007fa0 .word 0xa0007fa0 <== NOT EXECUTED a0007f58: a0007fb0 .word 0xa0007fb0 <== NOT EXECUTED a0007f5c: a0007f90 .word 0xa0007f90 <== NOT EXECUTED a0007f60: a0007f90 .word 0xa0007f90 <== NOT EXECUTED a0007f64: a0007f80 .word 0xa0007f80 <== NOT EXECUTED a0007f68: a0007f80 .word 0xa0007f80 <== NOT EXECUTED a0007f6c: a0007f70 .word 0xa0007f70 <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; a0007f70: e59f3048 ldr r3, [pc, #72] ; a0007fc0 a0007f74: e5803008 str r3, [r0, #8] break; } return 0; } a0007f78: e3a00000 mov r0, #0 a0007f7c: 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; a0007f80: e5923004 ldr r3, [r2, #4] a0007f84: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } a0007f88: e3a00000 mov r0, #0 a0007f8c: 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; a0007f90: e59f302c ldr r3, [pc, #44] ; a0007fc4 a0007f94: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } a0007f98: e3a00000 mov r0, #0 a0007f9c: 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; a0007fa0: e5923008 ldr r3, [r2, #8] a0007fa4: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } a0007fa8: e3a00000 mov r0, #0 a0007fac: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; a0007fb0: e59f3010 ldr r3, [pc, #16] ; a0007fc8 a0007fb4: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } a0007fb8: e3a00000 mov r0, #0 a0007fbc: e12fff1e bx lr a0007fc0: a00197b4 .word 0xa00197b4 a0007fc4: a0019850 .word 0xa0019850 a0007fc8: a0019818 .word 0xa0019818 a000d1a8 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000d1a8: e92d40f0 push {r4, r5, r6, r7, lr} a000d1ac: e1a01801 lsl r1, r1, #16 a000d1b0: e1a02802 lsl r2, r2, #16 a000d1b4: 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; a000d1b8: e5904000 ldr r4, [r0] int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000d1bc: e1a07821 lsr r7, r1, #16 a000d1c0: 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(); a000d1c4: eb0004a3 bl a000e458 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a000d1c8: e1d453bc ldrh r5, [r4, #60] ; 0x3c a000d1cc: e3500000 cmp r0, #0 a000d1d0: 11550000 cmpne r5, r0 a000d1d4: 03a05000 moveq r5, #0 a000d1d8: 13a05001 movne r5, #1 a000d1dc: 1a000009 bne a000d208 rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; a000d1e0: e1c473bc strh r7, [r4, #60] ; 0x3c jnode->st_gid = group; a000d1e4: e1c463be strh r6, [r4, #62] ; 0x3e IMFS_update_ctime( jnode ); a000d1e8: e1a0000d mov r0, sp a000d1ec: e1a01005 mov r1, r5 a000d1f0: ebffd61d bl a0002a6c a000d1f4: e59d3000 ldr r3, [sp] a000d1f8: e1a00005 mov r0, r5 a000d1fc: e5843048 str r3, [r4, #72] ; 0x48 return 0; } a000d200: e28dd008 add sp, sp, #8 a000d204: 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 ); a000d208: eb0016e3 bl a0012d9c <__errno> <== NOT EXECUTED a000d20c: e3a03001 mov r3, #1 <== NOT EXECUTED a000d210: e5803000 str r3, [r0] <== NOT EXECUTED a000d214: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d218: eafffff8 b a000d200 <== NOT EXECUTED a000bd44 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000bd44: 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 ) a000bd48: e2504000 subs r4, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000bd4c: e1a05001 mov r5, r1 a000bd50: e59d6014 ldr r6, [sp, #20] IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) a000bd54: 01a07004 moveq r7, r4 a000bd58: 1a000001 bne a000bd64 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } a000bd5c: e1a00007 mov r0, r7 <== NOT EXECUTED a000bd60: 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 ); a000bd64: e1a01002 mov r1, r2 a000bd68: e59f210c ldr r2, [pc, #268] ; a000be7c a000bd6c: e1a00005 mov r0, r5 a000bd70: e5922000 ldr r2, [r2] a000bd74: e592202c ldr r2, [r2, #44] ; 0x2c a000bd78: e1c32002 bic r2, r3, r2 a000bd7c: ebffffc0 bl a000bc84 if ( !node ) a000bd80: e2507000 subs r7, r0, #0 a000bd84: 0afffff4 beq a000bd5c return NULL; /* * Set the type specific information */ switch (type) { a000bd88: e2455001 sub r5, r5, #1 a000bd8c: e3550006 cmp r5, #6 a000bd90: 979ff105 ldrls pc, [pc, r5, lsl #2] a000bd94: ea000033 b a000be68 <== NOT EXECUTED a000bd98: a000be4c .word 0xa000be4c <== NOT EXECUTED a000bd9c: a000be38 .word 0xa000be38 <== NOT EXECUTED a000bda0: a000bdb4 .word 0xa000bdb4 <== NOT EXECUTED a000bda4: a000bdb4 .word 0xa000bdb4 <== NOT EXECUTED a000bda8: a000be08 .word 0xa000be08 <== NOT EXECUTED a000bdac: a000bdf0 .word 0xa000bdf0 <== NOT EXECUTED a000bdb0: a000be2c .word 0xa000be2c <== 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; a000bdb4: e5963000 ldr r3, [r6] a000bdb8: 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; a000bdbc: e5943010 ldr r3, [r4, #16] } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; a000bdc0: e5940000 ldr r0, [r4] RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); a000bdc4: e1a01007 mov r1, r7 fs_info = parent_loc->mt_entry->fs_info; a000bdc8: e5932034 ldr r2, [r3, #52] ; 0x34 node->Parent = parent; a000bdcc: e5870008 str r0, [r7, #8] a000bdd0: e2800050 add r0, r0, #80 ; 0x50 node->st_ino = ++fs_info->ino_count; a000bdd4: e5923000 ldr r3, [r2] a000bdd8: e2833001 add r3, r3, #1 a000bddc: e5823000 str r3, [r2] a000bde0: e5873038 str r3, [r7, #56] ; 0x38 a000bde4: ebffe473 bl a0004fb8 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } a000bde8: e1a00007 mov r0, r7 a000bdec: 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; a000bdf0: e3a03000 mov r3, #0 <== NOT EXECUTED a000bdf4: e3a02000 mov r2, #0 <== NOT EXECUTED a000bdf8: e5872050 str r2, [r7, #80] ; 0x50 <== NOT EXECUTED a000bdfc: e5873054 str r3, [r7, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; a000be00: e3a03000 mov r3, #0 <== NOT EXECUTED a000be04: e5873058 str r3, [r7, #88] ; 0x58 <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; a000be08: 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; a000be0c: e3a01000 mov r1, #0 a000be10: e3a02000 mov r2, #0 a000be14: e5871050 str r1, [r7, #80] ; 0x50 a000be18: e5872054 str r2, [r7, #84] ; 0x54 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; a000be1c: 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; a000be20: e5873058 str r3, [r7, #88] ; 0x58 node->info.file.doubly_indirect = 0; a000be24: e587305c str r3, [r7, #92] ; 0x5c node->info.file.triply_indirect = 0; break; a000be28: eaffffe3 b a000bdbc case IMFS_FIFO: node->info.fifo.pipe = NULL; a000be2c: e3a03000 mov r3, #0 a000be30: e5873050 str r3, [r7, #80] ; 0x50 break; a000be34: eaffffe0 b a000bdbc 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; a000be38: 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; a000be3c: e5963000 ldr r3, [r6] node->info.device.minor = info->device.minor; a000be40: 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; a000be44: e5873050 str r3, [r7, #80] ; 0x50 node->info.device.minor = info->device.minor; break; a000be48: eaffffdb b a000bdbc */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a000be4c: e2872054 add r2, r7, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); a000be50: e2873050 add r3, r7, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a000be54: e5872050 str r2, [r7, #80] ; 0x50 the_chain->permanent_null = NULL; a000be58: e3a02000 mov r2, #0 a000be5c: e5872054 str r2, [r7, #84] ; 0x54 the_chain->last = _Chain_Head(the_chain); a000be60: e5873058 str r3, [r7, #88] ; 0x58 a000be64: eaffffd4 b a000bdbc case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); a000be68: e59f0010 ldr r0, [pc, #16] ; a000be80 <== NOT EXECUTED a000be6c: e3a0105c mov r1, #92 ; 0x5c <== NOT EXECUTED a000be70: e59f200c ldr r2, [pc, #12] ; a000be84 <== NOT EXECUTED a000be74: e59f300c ldr r3, [pc, #12] ; a000be88 <== NOT EXECUTED a000be78: ebfff3fa bl a0008e68 <__assert_func> <== NOT EXECUTED a000be7c: a0018fe8 .word 0xa0018fe8 a000be80: a001a2b8 .word 0xa001a2b8 a000be84: a0019b20 .word 0xa0019b20 a000be88: a001a308 .word 0xa001a308 a0002d7c : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); a0002d7c: e3500000 cmp r0, #0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { a0002d80: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0002d84: e1a05001 mov r5, r1 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); a0002d88: 0a000021 beq a0002e14 assert( level >= 0 ); a0002d8c: e3510000 cmp r1, #0 a0002d90: ba000029 blt a0002e3c assert( the_directory->type == IMFS_DIRECTORY ); a0002d94: e590304c ldr r3, [r0, #76] ; 0x4c a0002d98: e3530001 cmp r3, #1 a0002d9c: 1a000021 bne a0002e28 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; a0002da0: e5907050 ldr r7, [r0, #80] ; 0x50 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0002da4: e2808054 add r8, r0, #84 ; 0x54 a0002da8: e1570008 cmp r7, r8 a0002dac: 0a000013 beq a0002e00 a0002db0: e59f6098 ldr r6, [pc, #152] ; a0002e50 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 ); a0002db4: 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; a0002db8: e3a04000 mov r4, #0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); a0002dbc: 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++ ) a0002dc0: e2844001 add r4, r4, #1 fprintf(stdout, "...." ); a0002dc4: e59f0088 ldr r0, [pc, #136] ; a0002e54 a0002dc8: e5933008 ldr r3, [r3, #8] a0002dcc: e3a01001 mov r1, #1 a0002dd0: e3a02004 mov r2, #4 a0002dd4: eb0040ed bl a0013190 !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++ ) a0002dd8: e1550004 cmp r5, r4 a0002ddc: aafffff6 bge a0002dbc fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); a0002de0: e1a00007 mov r0, r7 a0002de4: ebffff7a bl a0002bd4 if ( the_jnode->type == IMFS_DIRECTORY ) a0002de8: e597304c ldr r3, [r7, #76] ; 0x4c a0002dec: e3530001 cmp r3, #1 a0002df0: 0a000003 beq a0002e04 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 ) { a0002df4: e5977000 ldr r7, [r7] assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; a0002df8: e1570008 cmp r7, r8 a0002dfc: 1affffed bne a0002db8 a0002e00: 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 ); a0002e04: e1a00007 mov r0, r7 a0002e08: e1a0100a mov r1, sl a0002e0c: ebffffda bl a0002d7c a0002e10: eafffff7 b a0002df4 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); a0002e14: e59f003c ldr r0, [pc, #60] ; a0002e58 <== NOT EXECUTED a0002e18: e3a01084 mov r1, #132 ; 0x84 <== NOT EXECUTED a0002e1c: e59f2038 ldr r2, [pc, #56] ; a0002e5c <== NOT EXECUTED a0002e20: e59f3038 ldr r3, [pc, #56] ; a0002e60 <== NOT EXECUTED a0002e24: eb0001e5 bl a00035c0 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); a0002e28: e59f0028 ldr r0, [pc, #40] ; a0002e58 <== NOT EXECUTED a0002e2c: e3a01088 mov r1, #136 ; 0x88 <== NOT EXECUTED a0002e30: e59f2024 ldr r2, [pc, #36] ; a0002e5c <== NOT EXECUTED a0002e34: e59f3028 ldr r3, [pc, #40] ; a0002e64 <== NOT EXECUTED a0002e38: eb0001e0 bl a00035c0 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); a0002e3c: e59f0014 ldr r0, [pc, #20] ; a0002e58 <== NOT EXECUTED a0002e40: e3a01086 mov r1, #134 ; 0x86 <== NOT EXECUTED a0002e44: e59f2010 ldr r2, [pc, #16] ; a0002e5c <== NOT EXECUTED a0002e48: e59f3018 ldr r3, [pc, #24] ; a0002e68 <== NOT EXECUTED a0002e4c: eb0001db bl a00035c0 <__assert_func> <== NOT EXECUTED a0002e50: a0021f34 .word 0xa0021f34 a0002e54: a0023cf0 .word 0xa0023cf0 a0002e58: a0023bc8 .word 0xa0023bc8 a0002e5c: a00224c8 .word 0xa00224c8 a0002e60: a0023ca8 .word 0xa0023ca8 a0002e64: a0023cc8 .word 0xa0023cc8 a0002e68: a0023cb8 .word 0xa0023cb8 a0008170 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a0008170: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a0008174: e5936000 ldr r6, [r3] const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a0008178: e24dd040 sub sp, sp, #64 ; 0x40 a000817c: e1a07003 mov r7, r3 a0008180: e1a0a000 mov sl, r0 a0008184: e1a04001 mov r4, r1 a0008188: e58d2000 str r2, [sp] /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a000818c: e3a05000 mov r5, #0 a0008190: e28d8004 add r8, sp, #4 a0008194: 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 ); a0008198: e1a02008 mov r2, r8 a000819c: e1a03009 mov r3, r9 a00081a0: e08a0005 add r0, sl, r5 a00081a4: e1a01004 mov r1, r4 a00081a8: eb000223 bl a0008a3c pathnamelen -= len; i += len; if ( !pathloc->node_access ) a00081ac: e5973000 ldr r3, [r7] * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); a00081b0: e1a0b000 mov fp, r0 pathnamelen -= len; a00081b4: e59d203c ldr r2, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) a00081b8: e3530000 cmp r3, #0 a00081bc: 0a00004e beq a00082fc rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a00081c0: 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; a00081c4: 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; a00081c8: 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 ) a00081cc: 1a00000f bne a0008210 * 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 ) { a00081d0: e593204c ldr r2, [r3, #76] ; 0x4c a00081d4: e3520001 cmp r2, #1 a00081d8: 0a000054 beq a0008330 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a00081dc: e1a00007 mov r0, r7 a00081e0: ebffff53 bl a0007f34 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a00081e4: e59d1000 ldr r1, [sp] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a00081e8: e1a0b000 mov fp, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a00081ec: e1a00007 mov r0, r7 a00081f0: ebffff75 bl a0007fcc a00081f4: e3500000 cmp r0, #0 a00081f8: 1a000036 bne a00082d8 rtems_set_errno_and_return_minus_one( EACCES ); a00081fc: eb001539 bl a000d6e8 <__errno> a0008200: e3a0300d mov r3, #13 a0008204: e5803000 str r3, [r0] a0008208: e3e0b000 mvn fp, #0 a000820c: ea000031 b a00082d8 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) a0008210: e596104c ldr r1, [r6, #76] ; 0x4c a0008214: e3510001 cmp r1, #1 a0008218: 0a000031 beq a00082e4 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { a000821c: 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; a0008220: e1a06003 mov r6, r3 switch( type ) { a0008224: 0a000006 beq a0008244 a0008228: e35b0004 cmp fp, #4 a000822c: 0a000025 beq a00082c8 a0008230: e35b0002 cmp fp, #2 a0008234: 0a000013 beq a0008288 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { a0008238: e35b0004 cmp fp, #4 a000823c: 1affffd5 bne a0008198 a0008240: eaffffe2 b a00081d0 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { a0008244: e593304c ldr r3, [r3, #76] ; 0x4c a0008248: e3530003 cmp r3, #3 a000824c: 0a00002f beq a0008310 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { a0008250: e3530004 cmp r3, #4 a0008254: 0a000053 beq a00083a8 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a0008258: e3530001 cmp r3, #1 a000825c: 1a00004c bne a0008394 /* * 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 ) { a0008260: e596e05c ldr lr, [r6, #92] ; 0x5c a0008264: e35e0000 cmp lr, #0 a0008268: 1a000033 bne a000833c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a000826c: e1a00006 mov r0, r6 a0008270: e1a01008 mov r1, r8 a0008274: eb0001c1 bl a0008980 if ( !node ) a0008278: e2506000 subs r6, r0, #0 a000827c: 0a00001e beq a00082fc /* * Set the node access to the point we have found. */ pathloc->node_access = node; a0008280: e5876000 str r6, [r7] break; a0008284: eaffffc3 b a0008198 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a0008288: e59f1144 ldr r1, [pc, #324] ; a00083d4 a000828c: e5912000 ldr r2, [r1] a0008290: e5922018 ldr r2, [r2, #24] a0008294: e1520003 cmp r2, r3 a0008298: 0affffbe beq a0008198 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { a000829c: e597e010 ldr lr, [r7, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == a00082a0: e59e201c ldr r2, [lr, #28] a00082a4: e1520003 cmp r2, r3 a00082a8: 0a000047 beq a00083cc pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) a00082ac: e5936008 ldr r6, [r3, #8] a00082b0: e3560000 cmp r6, #0 a00082b4: 1afffff1 bne a0008280 rtems_set_errno_and_return_minus_one( ENOENT ); a00082b8: eb00150a bl a000d6e8 <__errno> a00082bc: e580b000 str fp, [r0] a00082c0: e3e0b000 mvn fp, #0 a00082c4: ea000003 b a00082d8 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); a00082c8: eb001506 bl a000d6e8 <__errno> a00082cc: e3a0305b mov r3, #91 ; 0x5b a00082d0: e5803000 str r3, [r0] a00082d4: e3e0b000 mvn fp, #0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } a00082d8: e1a0000b mov r0, fp a00082dc: e28dd040 add sp, sp, #64 ; 0x40 a00082e0: 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 ) ) a00082e4: e1a00007 mov r0, r7 a00082e8: ebffff37 bl a0007fcc a00082ec: e3500000 cmp r0, #0 a00082f0: 0affffc1 beq a00081fc a00082f4: e5973000 ldr r3, [r7] a00082f8: eaffffc7 b a000821c * 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 ); a00082fc: eb0014f9 bl a000d6e8 <__errno> a0008300: e3a03002 mov r3, #2 a0008304: e5803000 str r3, [r0] a0008308: e3e0b000 mvn fp, #0 a000830c: eafffff1 b a00082d8 * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); a0008310: e1a00007 mov r0, r7 a0008314: e3a01000 mov r1, #0 a0008318: ebffff3e bl a0008018 node = pathloc->node_access; a000831c: e5976000 ldr r6, [r7] if ( !node ) a0008320: e3560000 cmp r6, #0 a0008324: 0a00001a beq a0008394 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; a0008328: e596304c ldr r3, [r6, #76] ; 0x4c a000832c: eaffffc9 b a0008258 * * 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 ) { a0008330: e593e05c ldr lr, [r3, #92] ; 0x5c a0008334: e35e0000 cmp lr, #0 a0008338: 0affffa7 beq a00081dc newloc = node->info.directory.mt_fs->mt_fs_root; a000833c: e28ee01c add lr, lr, #28 a0008340: e28dc028 add ip, sp, #40 ; 0x28 a0008344: e8be000f ldm lr!, {r0, r1, r2, r3} a0008348: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; a000834c: e28d6028 add r6, sp, #40 ; 0x28 a0008350: e8b6000f ldm r6!, {r0, r1, r2, r3} a0008354: e1a06007 mov r6, r7 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; a0008358: e59ee000 ldr lr, [lr] *pathloc = newloc; a000835c: e8a6000f stmia r6!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)( &pathname[i-len], a0008360: 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; a0008364: e586e000 str lr, [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; a0008368: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], a000836c: e0610005 rsb r0, r1, r5 a0008370: e08a0000 add r0, sl, r0 a0008374: e0841001 add r1, r4, r1 a0008378: e59d2000 ldr r2, [sp] a000837c: e1a03007 mov r3, r7 a0008380: e597c00c ldr ip, [r7, #12] a0008384: e1a0e00f mov lr, pc a0008388: e59cf000 ldr pc, [ip] a000838c: e1a0b000 mov fp, r0 a0008390: eaffffd0 b a00082d8 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a0008394: eb0014d3 bl a000d6e8 <__errno> a0008398: e3a03014 mov r3, #20 a000839c: e5803000 str r3, [r0] a00083a0: e3e0b000 mvn fp, #0 a00083a4: eaffffcb b a00082d8 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); a00083a8: e1a00007 mov r0, r7 a00083ac: e3a01000 mov r1, #0 a00083b0: ebffff31 bl a000807c node = pathloc->node_access; if ( result == -1 ) a00083b4: 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 ); a00083b8: e1a0b000 mov fp, r0 node = pathloc->node_access; a00083bc: e5976000 ldr r6, [r7] if ( result == -1 ) a00083c0: 0affffc4 beq a00082d8 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; a00083c4: e596304c ldr r3, [r6, #76] ; 0x4c a00083c8: eaffffa2 b a0008258 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; a00083cc: e28ee008 add lr, lr, #8 a00083d0: eaffffda b a0008340 a00083d4: a0018fe8 .word 0xa0018fe8 a00084ac : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { a00084ac: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a00084b0: e24dd040 sub sp, sp, #64 ; 0x40 a00084b4: e1a06001 mov r6, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a00084b8: 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 */ ) { a00084bc: e58d2000 str r2, [sp] a00084c0: e1a0a000 mov sl, r0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); a00084c4: eb001878 bl a000e6ac a00084c8: e3a07000 mov r7, #0 a00084cc: e28d8004 add r8, sp, #4 a00084d0: 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 ); a00084d4: e1a01004 mov r1, r4 a00084d8: e28d303c add r3, sp, #60 ; 0x3c a00084dc: e08a0007 add r0, sl, r7 a00084e0: e1a02008 mov r2, r8 a00084e4: eb000154 bl a0008a3c pathlen -= len; i += len; if ( !pathloc->node_access ) a00084e8: e5963000 ldr r3, [r6] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a00084ec: e59db03c ldr fp, [sp, #60] ; 0x3c * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); a00084f0: e1a09000 mov r9, r0 pathlen -= len; i += len; if ( !pathloc->node_access ) a00084f4: e3530000 cmp r3, #0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a00084f8: e06b4004 rsb r4, fp, r4 i += len; if ( !pathloc->node_access ) a00084fc: 0a00003a beq a00085ec /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a0008500: e3500000 cmp r0, #0 a0008504: 1a000006 bne a0008524 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); a0008508: eb001476 bl a000d6e8 <__errno> a000850c: e3a03011 mov r3, #17 a0008510: e5803000 str r3, [r0] a0008514: e3e05000 mvn r5, #0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } a0008518: e1a00005 mov r0, r5 a000851c: e28dd040 add sp, sp, #64 ; 0x40 a0008520: 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 ) a0008524: e595104c ldr r1, [r5, #76] ; 0x4c a0008528: e3510001 cmp r1, #1 a000852c: 0a00004b beq a0008660 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; a0008530: 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; a0008534: e1a05003 mov r5, r3 switch( type ) { a0008538: e3590004 cmp r9, #4 a000853c: 979ff109 ldrls pc, [pc, r9, lsl #2] a0008540: eaffffe3 b a00084d4 <== NOT EXECUTED a0008544: a0008508 .word 0xa0008508 <== NOT EXECUTED a0008548: a00084d4 .word 0xa00084d4 <== NOT EXECUTED a000854c: a00085bc .word 0xa00085bc <== NOT EXECUTED a0008550: a000856c .word 0xa000856c <== NOT EXECUTED a0008554: a0008558 .word 0xa0008558 <== 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 ); a0008558: eb001462 bl a000d6e8 <__errno> a000855c: e3a0305b mov r3, #91 ; 0x5b a0008560: e5803000 str r3, [r0] a0008564: e3e05000 mvn r5, #0 a0008568: eaffffea b a0008518 pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { a000856c: e593304c ldr r3, [r3, #76] ; 0x4c a0008570: e3530003 cmp r3, #3 a0008574: 0a00006a beq a0008724 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { a0008578: e3530004 cmp r3, #4 a000857c: 0a000068 beq a0008724 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) a0008580: e3550000 cmp r5, #0 a0008584: 0a00004c beq a00086bc /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a0008588: e595304c ldr r3, [r5, #76] ; 0x4c a000858c: e3530001 cmp r3, #1 a0008590: 1a000049 bne a00086bc /* * 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 ) { a0008594: e595e05c ldr lr, [r5, #92] ; 0x5c a0008598: e35e0000 cmp lr, #0 a000859c: 1a00004b bne a00086d0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a00085a0: e1a00005 mov r0, r5 a00085a4: e1a01008 mov r1, r8 a00085a8: eb0000f4 bl a0008980 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) a00085ac: e2505000 subs r5, r0, #0 a00085b0: 0a000012 beq a0008600 done = true; else pathloc->node_access = node; a00085b4: e5865000 str r5, [r6] a00085b8: eaffffc5 b a00084d4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a00085bc: e59f1188 ldr r1, [pc, #392] ; a000874c a00085c0: e5912000 ldr r2, [r1] a00085c4: e5922018 ldr r2, [r2, #24] a00085c8: e1520003 cmp r2, r3 a00085cc: 0affffc0 beq a00084d4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ a00085d0: e596e010 ldr lr, [r6, #16] a00085d4: e59e201c ldr r2, [lr, #28] a00085d8: e1520003 cmp r2, r3 a00085dc: 0a000058 beq a0008744 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) a00085e0: e5935008 ldr r5, [r3, #8] a00085e4: e3550000 cmp r5, #0 a00085e8: 1afffff1 bne a00085b4 * 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 ); a00085ec: eb00143d bl a000d6e8 <__errno> a00085f0: e3a03002 mov r3, #2 a00085f4: e5803000 str r3, [r0] a00085f8: e3e05000 mvn r5, #0 a00085fc: eaffffc5 b a0008518 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; a0008600: e59d303c ldr r3, [sp, #60] ; 0x3c a0008604: e59d1000 ldr r1, [sp] a0008608: e0633007 rsb r3, r3, r7 a000860c: e08a3003 add r3, sl, r3 a0008610: 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++) { a0008614: e7da3007 ldrb r3, [sl, r7] a0008618: e3530000 cmp r3, #0 a000861c: 0a000015 beq a0008678 if ( !IMFS_is_separator( path[ i ] ) ) a0008620: e353002f cmp r3, #47 ; 0x2f a0008624: 1353005c cmpne r3, #92 ; 0x5c a0008628: 1affffef bne a00085ec rtems_set_errno_and_return_minus_one( ENOENT ); a000862c: 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++) { a0008630: e5d73001 ldrb r3, [r7, #1] if ( !IMFS_is_separator( path[ i ] ) ) a0008634: e2877001 add r7, r7, #1 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { a0008638: e3530000 cmp r3, #0 a000863c: 0a00000d beq a0008678 if ( !IMFS_is_separator( path[ i ] ) ) a0008640: e353005c cmp r3, #92 ; 0x5c a0008644: 1353002f cmpne r3, #47 ; 0x2f a0008648: 0afffff8 beq a0008630 rtems_set_errno_and_return_minus_one( ENOENT ); a000864c: eb001425 bl a000d6e8 <__errno> a0008650: e3a03002 mov r3, #2 a0008654: e5803000 str r3, [r0] a0008658: e3e05000 mvn r5, #0 a000865c: eaffffad b a0008518 * 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 ) ) a0008660: e1a00006 mov r0, r6 a0008664: ebfffe58 bl a0007fcc a0008668: e3500000 cmp r0, #0 a000866c: 0a00000d beq a00086a8 a0008670: e5963000 ldr r3, [r6] a0008674: eaffffad b a0008530 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a0008678: e1a00006 mov r0, r6 a000867c: ebfffe2c bl a0007f34 /* * The returned node must be a directory */ node = pathloc->node_access; a0008680: e5963000 ldr r3, [r6] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a0008684: e1a05000 mov r5, r0 /* * The returned node must be a directory */ node = pathloc->node_access; a0008688: e593304c ldr r3, [r3, #76] ; 0x4c a000868c: e3530001 cmp r3, #1 a0008690: 1a000009 bne a00086bc /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) a0008694: e1a00006 mov r0, r6 a0008698: e3a01003 mov r1, #3 a000869c: ebfffe4a bl a0007fcc a00086a0: e3500000 cmp r0, #0 a00086a4: 1affff9b bne a0008518 rtems_set_errno_and_return_minus_one( EACCES ); a00086a8: eb00140e bl a000d6e8 <__errno> a00086ac: e3a0300d mov r3, #13 a00086b0: e5803000 str r3, [r0] a00086b4: e3e05000 mvn r5, #0 a00086b8: eaffff96 b a0008518 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a00086bc: eb001409 bl a000d6e8 <__errno> a00086c0: e3a03014 mov r3, #20 a00086c4: e5803000 str r3, [r0] a00086c8: e3e05000 mvn r5, #0 a00086cc: eaffff91 b a0008518 * 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; a00086d0: e28ee01c add lr, lr, #28 a00086d4: e28dc028 add ip, sp, #40 ; 0x28 a00086d8: e8be000f ldm lr!, {r0, r1, r2, r3} a00086dc: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; a00086e0: e28d4028 add r4, sp, #40 ; 0x28 a00086e4: e8b4000f ldm r4!, {r0, r1, r2, r3} a00086e8: e1a04006 mov r4, r6 * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; a00086ec: e59ee000 ldr lr, [lr] *pathloc = newloc; a00086f0: e8a4000f stmia r4!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a00086f4: 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; a00086f8: 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; a00086fc: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a0008700: e0600007 rsb r0, r0, r7 a0008704: e08a0000 add r0, sl, r0 a0008708: e1a01006 mov r1, r6 a000870c: e59d2000 ldr r2, [sp] a0008710: e596300c ldr r3, [r6, #12] a0008714: e1a0e00f mov lr, pc a0008718: e593f004 ldr pc, [r3, #4] a000871c: e1a05000 mov r5, r0 a0008720: eaffff7c b a0008518 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); a0008724: e1a00006 mov r0, r6 a0008728: e3a01000 mov r1, #0 a000872c: ebffff29 bl a00083d8 if ( result == -1 ) a0008730: e3700001 cmn r0, #1 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); a0008734: e1a05000 mov r5, r0 if ( result == -1 ) a0008738: 0affff76 beq a0008518 a000873c: e5965000 ldr r5, [r6] a0008740: eaffff8e b a0008580 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; a0008744: e28ee008 add lr, lr, #8 a0008748: eaffffe1 b a00086d4 a000874c: a0018fe8 .word 0xa0018fe8 a0008018 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; a0008018: e5903000 ldr r3, [r0] int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000801c: e92d4030 push {r4, r5, lr} /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) a0008020: e593204c ldr r2, [r3, #76] ; 0x4c int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a0008024: e1a04000 mov r4, r0 a0008028: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) a000802c: e3520003 cmp r2, #3 a0008030: 1a00000e bne a0008070 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; a0008034: e5933050 ldr r3, [r3, #80] ; 0x50 a0008038: e5803000 str r3, [r0] IMFS_Set_handlers( node ); a000803c: ebffffbc bl a0007f34 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a0008040: e1a00004 mov r0, r4 a0008044: e1a01005 mov r1, r5 a0008048: ebffffdf bl a0007fcc a000804c: e3500000 cmp r0, #0 a0008050: 0a000001 beq a000805c a0008054: e3a00000 mov r0, #0 a0008058: e8bd8030 pop {r4, r5, pc} rtems_set_errno_and_return_minus_one( EACCES ); a000805c: eb0015a1 bl a000d6e8 <__errno> <== NOT EXECUTED a0008060: e3a0300d mov r3, #13 <== NOT EXECUTED a0008064: e5803000 str r3, [r0] <== NOT EXECUTED a0008068: e3e00000 mvn r0, #0 <== NOT EXECUTED return result; } a000806c: 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); a0008070: e3a0032b mov r0, #-1409286144 ; 0xac000000 <== NOT EXECUTED a0008074: e2400833 sub r0, r0, #3342336 ; 0x330000 <== NOT EXECUTED a0008078: ebfff306 bl a0004c98 <== NOT EXECUTED a000807c : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000807c: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *jnode = node->node_access; a0008080: e590e000 ldr lr, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a0008084: e1a04000 mov r4, r0 a0008088: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) a000808c: e59e304c ldr r3, [lr, #76] ; 0x4c a0008090: e3530004 cmp r3, #4 a0008094: 1a000031 bne a0008160 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) a0008098: e59e3008 ldr r3, [lr, #8] a000809c: e3530000 cmp r3, #0 a00080a0: 0a00002b beq a0008154 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; a00080a4: e5803000 str r3, [r0] rtems_filesystem_get_sym_start_loc( a00080a8: e59e2050 ldr r2, [lr, #80] ; 0x50 a00080ac: e5d23000 ldrb r3, [r2] a00080b0: e353002f cmp r3, #47 ; 0x2f a00080b4: 1353005c cmpne r3, #92 ; 0x5c a00080b8: 13a06000 movne r6, #0 a00080bc: 03a06001 moveq r6, #1 a00080c0: 1a00001b bne a0008134 a00080c4: e59f30a0 ldr r3, [pc, #160] ; a000816c a00080c8: e1a07004 mov r7, r4 a00080cc: e3a06001 mov r6, #1 a00080d0: e593c000 ldr ip, [r3] a00080d4: e28cc018 add ip, ip, #24 a00080d8: e8bc000f ldm ip!, {r0, r1, r2, r3} a00080dc: e8a7000f stmia r7!, {r0, r1, r2, r3} a00080e0: e59c2000 ldr r2, [ip] a00080e4: e5872000 str r2, [r7] a00080e8: e59e2050 ldr r2, [lr, #80] ; 0x50 * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), a00080ec: e0826006 add r6, r2, r6 a00080f0: e1a00006 mov r0, r6 a00080f4: eb00196c bl a000e6ac /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( a00080f8: e1a02005 mov r2, r5 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), a00080fc: e1a01000 mov r1, r0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( a0008100: e1a03004 mov r3, r4 a0008104: e1a00006 mov r0, r6 a0008108: eb000018 bl a0008170 a000810c: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); a0008110: e1a00004 mov r0, r4 a0008114: ebffff86 bl a0007f34 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a0008118: e1a00004 mov r0, r4 a000811c: e1a01005 mov r1, r5 a0008120: ebffffa9 bl a0007fcc a0008124: e3500000 cmp r0, #0 a0008128: 0a000004 beq a0008140 rtems_set_errno_and_return_minus_one( EACCES ); return result; } a000812c: e1a00006 mov r0, r6 a0008130: e8bd80f0 pop {r4, r5, r6, r7, pc} * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( a0008134: e3530000 cmp r3, #0 a0008138: 1affffeb bne a00080ec a000813c: eaffffe0 b a00080c4 <== 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 ); a0008140: eb001568 bl a000d6e8 <__errno> <== NOT EXECUTED a0008144: e3a0300d mov r3, #13 <== NOT EXECUTED a0008148: e5803000 str r3, [r0] <== NOT EXECUTED a000814c: e3e06000 mvn r6, #0 <== NOT EXECUTED a0008150: eafffff5 b a000812c <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); a0008154: e3a004ba mov r0, #-1174405120 ; 0xba000000 <== NOT EXECUTED a0008158: e280060d add r0, r0, #13631488 ; 0xd00000 <== NOT EXECUTED a000815c: ebfff2cd bl a0004c98 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); a0008160: e3a0032b mov r0, #-1409286144 ; 0xac000000 <== NOT EXECUTED a0008164: e2400833 sub r0, r0, #3342336 ; 0x330000 <== NOT EXECUTED a0008168: ebfff2ca bl a0004c98 <== NOT EXECUTED a000816c: a0018fe8 .word 0xa0018fe8 a000be8c : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a000be8c: e92d4070 push {r4, r5, r6, lr} a000be90: e24dd008 sub sp, sp, #8 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; a000be94: e5904000 ldr r4, [r0] int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a000be98: e1a06001 mov r6, r1 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); a000be9c: ebfff4ae bl a000915c if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a000bea0: e1d453bc ldrh r5, [r4, #60] ; 0x3c a000bea4: e3500000 cmp r0, #0 a000bea8: 11550000 cmpne r5, r0 a000beac: 03a05000 moveq r5, #0 a000beb0: 13a05001 movne r5, #1 a000beb4: 1a00000e bne a000bef4 /* * 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); a000beb8: e5943030 ldr r3, [r4, #48] ; 0x30 a000bebc: e1a06a06 lsl r6, r6, #20 IMFS_update_ctime( jnode ); a000bec0: e1a0000d mov r0, sp /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a000bec4: e3c33eff bic r3, r3, #4080 ; 0xff0 a000bec8: e3c3300f bic r3, r3, #15 a000becc: e1a06a26 lsr r6, r6, #20 a000bed0: e1866003 orr r6, r6, r3 a000bed4: e5846030 str r6, [r4, #48] ; 0x30 IMFS_update_ctime( jnode ); a000bed8: e1a01005 mov r1, r5 a000bedc: ebfff4a3 bl a0009170 a000bee0: e59d3000 ldr r3, [sp] a000bee4: e1a00005 mov r0, r5 a000bee8: e5843048 str r3, [r4, #72] ; 0x48 return 0; } a000beec: e28dd008 add sp, sp, #8 a000bef0: 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 ); a000bef4: eb0005fb bl a000d6e8 <__errno> <== NOT EXECUTED a000bef8: e3a03001 mov r3, #1 <== NOT EXECUTED a000befc: e5803000 str r3, [r0] <== NOT EXECUTED a000bf00: e3e00000 mvn r0, #0 <== NOT EXECUTED a000bf04: eafffff8 b a000beec <== NOT EXECUTED a00088d4 : } int IMFS_fifo_close( rtems_libio_t *iop ) { a00088d4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; a00088d8: e5905038 ldr r5, [r0, #56] ; 0x38 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); a00088dc: e1a01000 mov r1, r0 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { a00088e0: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); a00088e4: e2850050 add r0, r5, #80 ; 0x50 <== NOT EXECUTED a00088e8: eb000b96 bl a000b748 <== NOT EXECUTED if (! err) { a00088ec: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00088f0: 0a000002 beq a0008900 <== 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); a00088f4: ba00000e blt a0008934 <== NOT EXECUTED } a00088f8: e1a00006 mov r0, r6 <== NOT EXECUTED a00088fc: 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; a0008900: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) a0008904: e1a00005 mov r0, r5 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; a0008908: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a000890c: 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) a0008910: eb000243 bl a0009224 <== NOT EXECUTED a0008914: e3500000 cmp r0, #0 <== NOT EXECUTED a0008918: 1afffff6 bne a00088f8 <== NOT EXECUTED a000891c: e1d533b4 ldrh r3, [r5, #52] ; 0x34 <== NOT EXECUTED a0008920: e3530000 cmp r3, #0 <== NOT EXECUTED a0008924: 1afffff3 bne a00088f8 <== NOT EXECUTED free(jnode); a0008928: e1a00005 mov r0, r5 <== NOT EXECUTED a000892c: eb00019b bl a0008fa0 <== NOT EXECUTED a0008930: eafffff0 b a00088f8 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); a0008934: eb00136b bl a000d6e8 <__errno> <== NOT EXECUTED a0008938: e2666000 rsb r6, r6, #0 <== NOT EXECUTED a000893c: e5806000 str r6, [r0] <== NOT EXECUTED a0008940: e3e06000 mvn r6, #0 <== NOT EXECUTED a0008944: eaffffeb b a00088f8 <== NOT EXECUTED a00087a8 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a00087a8: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { a00087ac: e59f0068 ldr r0, [pc, #104] ; a000881c <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a00087b0: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { a00087b4: e1510000 cmp r1, r0 <== NOT EXECUTED a00087b8: 0a000005 beq a00087d4 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); a00087bc: e5930038 ldr r0, [r3, #56] ; 0x38 <== NOT EXECUTED a00087c0: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED a00087c4: eb000ad0 bl a000b30c <== NOT EXECUTED IMFS_FIFO_RETURN(err); a00087c8: e3500000 cmp r0, #0 <== NOT EXECUTED a00087cc: ba00000d blt a0008808 <== NOT EXECUTED } a00087d0: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) a00087d4: e3520000 cmp r2, #0 <== NOT EXECUTED a00087d8: 03a0400e moveq r4, #14 <== NOT EXECUTED a00087dc: 0a00000a beq a000880c <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) a00087e0: e5920000 ldr r0, [r2] <== NOT EXECUTED a00087e4: e3500000 cmp r0, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; a00087e8: 15932014 ldrne r2, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a00087ec: 05932014 ldreq r2, [r3, #20] <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; a00087f0: 13a00000 movne r0, #0 <== NOT EXECUTED a00087f4: 13822001 orrne r2, r2, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a00087f8: 03c22001 biceq r2, r2, #1 <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; a00087fc: 15832014 strne r2, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a0008800: 05832014 streq r2, [r3, #20] <== NOT EXECUTED a0008804: e8bd8010 pop {r4, pc} <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); a0008808: e2604000 rsb r4, r0, #0 <== NOT EXECUTED a000880c: eb0013b5 bl a000d6e8 <__errno> <== NOT EXECUTED a0008810: e5804000 str r4, [r0] <== NOT EXECUTED a0008814: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008818: eaffffec b a00087d0 <== NOT EXECUTED a000881c: 8004667e .word 0x8004667e a0008750 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0008750: e92d4030 push {r4, r5, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); a0008754: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0008758: e24dd004 sub sp, sp, #4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); a000875c: e59cc050 ldr ip, [ip, #80] ; 0x50 <== NOT EXECUTED a0008760: e58d0000 str r0, [sp] <== NOT EXECUTED a0008764: e1a0000c mov r0, ip <== NOT EXECUTED a0008768: eb000ac9 bl a000b294 <== NOT EXECUTED a000876c: e1a03000 mov r3, r0 <== NOT EXECUTED a0008770: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0008774: 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); a0008778: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a000877c: ba000003 blt a0008790 <== NOT EXECUTED } a0008780: e1a01004 mov r1, r4 <== NOT EXECUTED a0008784: e1a00003 mov r0, r3 <== NOT EXECUTED a0008788: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000878c: 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); a0008790: eb0013d4 bl a000d6e8 <__errno> <== NOT EXECUTED a0008794: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0008798: e5805000 str r5, [r0] <== NOT EXECUTED a000879c: e3e03000 mvn r3, #0 <== NOT EXECUTED a00087a0: e3e04000 mvn r4, #0 <== NOT EXECUTED a00087a4: eafffff5 b a0008780 <== NOT EXECUTED a000887c : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000887c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; a0008880: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0008884: e1a03000 mov r3, r0 <== NOT EXECUTED a0008888: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); a000888c: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0008890: eb000ab8 bl a000b378 <== NOT EXECUTED if (err > 0) a0008894: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0008898: da000007 ble a00088bc <== NOT EXECUTED IMFS_update_atime(jnode); a000889c: e1a0000d mov r0, sp <== NOT EXECUTED a00088a0: e3a01000 mov r1, #0 <== NOT EXECUTED a00088a4: eb000231 bl a0009170 <== NOT EXECUTED a00088a8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00088ac: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED IMFS_FIFO_RETURN(err); } a00088b0: e1a00005 mov r0, r5 <== NOT EXECUTED a00088b4: e28dd008 add sp, sp, #8 <== NOT EXECUTED a00088b8: 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); a00088bc: 0afffffb beq a00088b0 <== NOT EXECUTED a00088c0: eb001388 bl a000d6e8 <__errno> <== NOT EXECUTED a00088c4: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a00088c8: e5805000 str r5, [r0] <== NOT EXECUTED a00088cc: e3e05000 mvn r5, #0 <== NOT EXECUTED a00088d0: eafffff6 b a00088b0 <== NOT EXECUTED a0008820 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0008820: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; a0008824: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0008828: e1a03000 mov r3, r0 <== NOT EXECUTED a000882c: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); a0008830: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0008834: eb000b3c bl a000b52c <== NOT EXECUTED if (err > 0) { a0008838: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000883c: da000008 ble a0008864 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); a0008840: e1a0000d mov r0, sp <== NOT EXECUTED a0008844: e3a01000 mov r1, #0 <== NOT EXECUTED a0008848: eb000248 bl a0009170 <== NOT EXECUTED a000884c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0008850: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED a0008854: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } a0008858: e1a00005 mov r0, r5 <== NOT EXECUTED a000885c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0008860: 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); a0008864: 0afffffb beq a0008858 <== NOT EXECUTED a0008868: eb00139e bl a000d6e8 <__errno> <== NOT EXECUTED a000886c: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0008870: e5805000 str r5, [r0] <== NOT EXECUTED a0008874: e3e05000 mvn r5, #0 <== NOT EXECUTED a0008878: eafffff6 b a0008858 <== NOT EXECUTED a0008980 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { a0008980: e92d4070 push {r4, r5, r6, lr} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); a0008984: e2505000 subs r5, r0, #0 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { a0008988: e1a04001 mov r4, r1 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); a000898c: 0a000020 beq a0008a14 if ( !name ) a0008990: e3510000 cmp r1, #0 a0008994: 0a00000c beq a00089cc /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) a0008998: e1a00001 mov r0, r1 a000899c: e59f1084 ldr r1, [pc, #132] ; a0008a28 a00089a0: eb001679 bl a000e38c a00089a4: e3500000 cmp r0, #0 a00089a8: 0a000005 beq a00089c4 return directory; if ( !strcmp( name, dotdotname ) ) a00089ac: e1a00004 mov r0, r4 a00089b0: e59f1074 ldr r1, [pc, #116] ; a0008a2c a00089b4: eb001674 bl a000e38c a00089b8: e3500000 cmp r0, #0 return directory->Parent; a00089bc: 05955008 ldreq r5, [r5, #8] */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) a00089c0: 1a000004 bne a00089d8 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } a00089c4: e1a00005 mov r0, r5 a00089c8: 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; a00089cc: e3a05000 mov r5, #0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } a00089d0: e1a00005 mov r0, r5 a00089d4: 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; a00089d8: e5956050 ldr r6, [r5, #80] ; 0x50 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a00089dc: e2855054 add r5, r5, #84 ; 0x54 a00089e0: e1560005 cmp r6, r5 a00089e4: 1a000003 bne a00089f8 a00089e8: eafffff7 b a00089cc !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { a00089ec: e5966000 ldr r6, [r6] if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; a00089f0: e1560005 cmp r6, r5 a00089f4: 0afffff4 beq a00089cc !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 ) ) a00089f8: e1a00004 mov r0, r4 a00089fc: e286100c add r1, r6, #12 a0008a00: eb001661 bl a000e38c a0008a04: e3500000 cmp r0, #0 a0008a08: 1afffff7 bne a00089ec a0008a0c: e1a05006 mov r5, r6 a0008a10: eaffffeb b a00089c4 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); a0008a14: e59f0014 ldr r0, [pc, #20] ; a0008a30 <== NOT EXECUTED a0008a18: e3a0102a mov r1, #42 ; 0x2a <== NOT EXECUTED a0008a1c: e59f2010 ldr r2, [pc, #16] ; a0008a34 <== NOT EXECUTED a0008a20: e59f3010 ldr r3, [pc, #16] ; a0008a38 <== NOT EXECUTED a0008a24: eb00010f bl a0008e68 <__assert_func> <== NOT EXECUTED a0008a28: a0019808 .word 0xa0019808 a0008a2c: a0019810 .word 0xa0019810 a0008a30: a001a198 .word 0xa001a198 a0008a34: a00197f0 .word 0xa00197f0 a0008a38: a001a1e8 .word 0xa001a1e8 a000de78 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000de78: 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; a000de7c: e1a0c000 mov ip, r0 a000de80: 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 ) { a000de84: e24dd014 sub sp, sp, #20 * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; a000de88: e1a0600d mov r6, sp ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000de8c: 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; a000de90: e8bc000f ldm ip!, {r0, r1, r2, r3} a000de94: e8a6000f stmia r6!, {r0, r1, r2, r3} a000de98: e59c2000 ldr r2, [ip] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; a000de9c: e3a01000 mov r1, #0 a000dea0: e58e101c str r1, [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; a000dea4: e1a0500d mov r5, sp a000dea8: e5862000 str r2, [r6] temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000deac: e1a0000d mov r0, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; a000deb0: e58d4000 str r4, [sp] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; a000deb4: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000deb8: ebfffd59 bl a000d424 if ( jnode->type != IMFS_DIRECTORY ) { a000debc: e594304c ldr r3, [r4, #76] ; 0x4c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a000dec0: e2842054 add r2, r4, #84 ; 0x54 a000dec4: e3530001 cmp r3, #1 a000dec8: 1a000010 bne a000df10 a000decc: e5943050 ldr r3, [r4, #80] ; 0x50 a000ded0: e1530002 cmp r3, r2 a000ded4: 0a00000d beq a000df10 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { a000ded8: e3540000 cmp r4, #0 a000dedc: 0a000008 beq a000df04 if ( jnode->type == IMFS_DIRECTORY ) { a000dee0: e594304c ldr r3, [r4, #76] ; 0x4c a000dee4: e3530001 cmp r3, #1 a000dee8: 1affffef bne a000deac a000deec: e5943050 ldr r3, [r4, #80] ; 0x50 a000def0: e2842054 add r2, r4, #84 ; 0x54 a000def4: e1530002 cmp r3, r2 a000def8: 0affffeb beq a000deac if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); a000defc: e2534000 subs r4, r3, #0 a000df00: 1affffe9 bne a000deac a000df04: e3a00000 mov r0, #0 return 0; } a000df08: e28dd014 add sp, sp, #20 a000df0c: 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 ); a000df10: e3a00000 mov r0, #0 a000df14: e1a0100d mov r1, sp a000df18: ebffd106 bl a0002338 if (result != 0) a000df1c: e3500000 cmp r0, #0 a000df20: 01a04006 moveq r4, r6 a000df24: 0affffeb beq a000ded8 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); a000df28: e3e00000 mvn r0, #0 <== NOT EXECUTED a000df2c: eafffff5 b a000df08 <== NOT EXECUTED a0008b2c : 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 ) { a0008b2c: e92d40f0 push {r4, r5, r6, r7, lr} a0008b30: e1a06001 mov r6, r1 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a0008b34: e59f10c8 ldr r1, [pc, #200] ; a0008c04 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 ) { a0008b38: e1a04000 mov r4, r0 a0008b3c: e1a07002 mov r7, r2 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a0008b40: e5911000 ldr r1, [r1] rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { a0008b44: 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) { a0008b48: e3510010 cmp r1, #16 a0008b4c: 0a000008 beq a0008b74 a0008b50: e3a03000 mov r3, #0 a0008b54: e3a02020 mov r2, #32 a0008b58: e1510002 cmp r1, r2 a0008b5c: e2833001 add r3, r3, #1 a0008b60: 0a000003 beq a0008b74 a0008b64: e3530005 cmp r3, #5 a0008b68: e1a02082 lsl r2, r2, #1 a0008b6c: 1afffff9 bne a0008b58 a0008b70: e3a01080 mov r1, #128 ; 0x80 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) a0008b74: e59f308c ldr r3, [pc, #140] ; a0008c08 a0008b78: e5831000 str r1, [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(); a0008b7c: eb000c60 bl a000bd04 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; a0008b80: e59fe084 ldr lr, [pc, #132] ; a0008c0c a0008b84: e284c038 add ip, r4, #56 ; 0x38 /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); a0008b88: 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; a0008b8c: e8be000f ldm lr!, {r0, r1, r2, r3} a0008b90: e8ac000f stmia ip!, {r0, r1, r2, r3} a0008b94: e8be000f ldm lr!, {r0, r1, r2, r3} a0008b98: e8ac000f stmia ip!, {r0, r1, r2, r3} a0008b9c: 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; a0008ba0: e5846028 str r6, [r4, #40] ; 0x28 temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; a0008ba4: 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; a0008ba8: 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 ) ); a0008bac: e3a00001 mov r0, #1 a0008bb0: e3a0100c mov r1, #12 a0008bb4: eb0000be bl a0008eb4 if ( !fs_info ) { a0008bb8: e3500000 cmp r0, #0 a0008bbc: 0a000009 beq a0008be8 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; a0008bc0: e594201c ldr r2, [r4, #28] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; a0008bc4: e3a03001 mov r3, #1 a0008bc8: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; a0008bcc: e5805008 str r5, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; a0008bd0: 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; a0008bd4: 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; a0008bd8: e5823038 str r3, [r2, #56] ; 0x38 /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); a0008bdc: eb0009ae bl a000b29c a0008be0: e3a00000 mov r0, #0 return 0; } a0008be4: 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); a0008be8: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a0008bec: eb0000eb bl a0008fa0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a0008bf0: eb0012bc bl a000d6e8 <__errno> <== NOT EXECUTED a0008bf4: e3a0300c mov r3, #12 <== NOT EXECUTED a0008bf8: e5803000 str r3, [r0] <== NOT EXECUTED a0008bfc: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008c00: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0008c04: a0018e14 .word 0xa0018e14 a0008c08: a001a7a8 .word 0xa001a7a8 a0008c0c: a0019aec .word 0xa0019aec a0001fe4 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { a0001fe4: e92d4070 push {r4, r5, r6, lr} int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a0001fe8: 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 */ ) { a0001fec: e24dd048 sub sp, sp, #72 ; 0x48 a0001ff0: e1a05001 mov r5, r1 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a0001ff4: e58d3028 str r3, [sp, #40] ; 0x28 if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) a0001ff8: e1d333b4 ldrh r3, [r3, #52] ; 0x34 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { a0001ffc: 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 ) a0002000: e3530007 cmp r3, #7 a0002004: 8a00001e bhi a0002084 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 ); a0002008: e1a00002 mov r0, r2 a000200c: eb00473b bl a0013d00 a0002010: e28d4004 add r4, sp, #4 a0002014: e1a01000 mov r1, r0 a0002018: e1a02004 mov r2, r4 a000201c: e28d3044 add r3, sp, #68 ; 0x44 a0002020: e1a00006 mov r0, r6 a0002024: eb002ff0 bl a000dfec * 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( a0002028: e3a03ca2 mov r3, #41472 ; 0xa200 a000202c: e28dc028 add ip, sp, #40 ; 0x28 a0002030: e1a00005 mov r0, r5 a0002034: e1a02004 mov r2, r4 a0002038: e2433001 sub r3, r3, #1 a000203c: e3a01003 mov r1, #3 a0002040: e58dc000 str ip, [sp] a0002044: eb002ca4 bl a000d2dc new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) a0002048: e3500000 cmp r0, #0 a000204c: 0a000011 beq a0002098 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++; a0002050: e59d3028 ldr r3, [sp, #40] ; 0x28 IMFS_update_ctime( info.hard_link.link_node ); a0002054: e28d003c add r0, sp, #60 ; 0x3c a0002058: e3a01000 mov r1, #0 rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; a000205c: e1d323b4 ldrh r2, [r3, #52] ; 0x34 a0002060: e2822001 add r2, r2, #1 a0002064: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); a0002068: eb00027f bl a0002a6c a000206c: e59d203c ldr r2, [sp, #60] ; 0x3c a0002070: e59d3028 ldr r3, [sp, #40] ; 0x28 a0002074: e3a00000 mov r0, #0 a0002078: e5832048 str r2, [r3, #72] ; 0x48 return 0; } a000207c: e28dd048 add sp, sp, #72 ; 0x48 a0002080: 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 ); a0002084: eb004344 bl a0012d9c <__errno> a0002088: e3a0301f mov r3, #31 a000208c: e5803000 str r3, [r0] a0002090: e3e00000 mvn r0, #0 a0002094: eafffff8 b a000207c ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); a0002098: eb00433f bl a0012d9c <__errno> <== NOT EXECUTED a000209c: e3a0300c mov r3, #12 <== NOT EXECUTED a00020a0: e5803000 str r3, [r0] <== NOT EXECUTED a00020a4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00020a8: eafffff3 b a000207c <== NOT EXECUTED a0010dc4 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); a0010dc4: e2503000 subs r3, r0, #0 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { a0010dc8: e92d4030 push {r4, r5, lr} block_p memory; block_p *block_entry_ptr; assert( the_jnode ); a0010dcc: 0a000010 beq a0010e14 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010dd0: e593304c ldr r3, [r3, #76] ; 0x4c a0010dd4: e3530005 cmp r3, #5 a0010dd8: 1a000013 bne a0010e2c 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 ); a0010ddc: e3a02001 mov r2, #1 a0010de0: ebfffe90 bl a0010828 if ( *block_entry_ptr ) a0010de4: e5904000 ldr r4, [r0] assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); a0010de8: e1a05000 mov r5, r0 if ( *block_entry_ptr ) a0010dec: e3540000 cmp r4, #0 a0010df0: 0a000001 beq a0010dfc a0010df4: e3a00000 mov r0, #0 a0010df8: e8bd8030 pop {r4, r5, pc} #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); a0010dfc: ebfffe7c bl a00107f4 if ( !memory ) a0010e00: e3500000 cmp r0, #0 return 1; *block_entry_ptr = memory; a0010e04: 15850000 strne r0, [r5] fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) a0010e08: 03a00001 moveq r0, #1 return 1; *block_entry_ptr = memory; a0010e0c: 11a00004 movne r0, r4 return 0; } a0010e10: e8bd8030 pop {r4, r5, pc} ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); a0010e14: e3a01f5a mov r1, #360 ; 0x168 <== NOT EXECUTED a0010e18: e2811001 add r1, r1, #1 <== NOT EXECUTED a0010e1c: e59f0020 ldr r0, [pc, #32] ; a0010e44 <== NOT EXECUTED a0010e20: e59f2020 ldr r2, [pc, #32] ; a0010e48 <== NOT EXECUTED a0010e24: e59f3020 ldr r3, [pc, #32] ; a0010e4c <== NOT EXECUTED a0010e28: ebfff50b bl a000e25c <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010e2c: e3a01f5b mov r1, #364 ; 0x16c <== NOT EXECUTED a0010e30: e2811001 add r1, r1, #1 <== NOT EXECUTED a0010e34: e59f0008 ldr r0, [pc, #8] ; a0010e44 <== NOT EXECUTED a0010e38: e59f2008 ldr r2, [pc, #8] ; a0010e48 <== NOT EXECUTED a0010e3c: e59f300c ldr r3, [pc, #12] ; a0010e50 <== NOT EXECUTED a0010e40: ebfff505 bl a000e25c <__assert_func> <== NOT EXECUTED a0010e44: a0020118 .word 0xa0020118 a0010e48: a001f7c0 .word 0xa001f7c0 a0010e4c: a0020160 .word 0xa0020160 a0010e50: a0020170 .word 0xa0020170 a0010e54 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010e54: e92d4df0 push {r4, r5, r6, r7, r8, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a0010e58: e2504000 subs r4, r0, #0 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010e5c: e24dd004 sub sp, sp, #4 a0010e60: e1a08001 mov r8, r1 a0010e64: e1a06002 mov r6, r2 /* * Perform internal consistency checks */ assert( the_jnode ); a0010e68: 0a00004f beq a0010fac if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010e6c: e594304c ldr r3, [r4, #76] ; 0x4c a0010e70: e3530005 cmp r3, #5 a0010e74: 1a000046 bne a0010f94 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010e78: e3a03000 mov r3, #0 a0010e7c: e1530002 cmp r3, r2 a0010e80: e59f313c ldr r3, [pc, #316] ; a0010fc4 a0010e84: e593b000 ldr fp, [r3] a0010e88: e1a0312b lsr r3, fp, #2 a0010e8c: e0213393 mla r1, r3, r3, r3 a0010e90: e0223391 mla r2, r1, r3, r3 a0010e94: e2423001 sub r3, r2, #1 a0010e98: e002039b mul r2, fp, r3 a0010e9c: ca000007 bgt a0010ec0 a0010ea0: 0a000004 beq a0010eb8 rtems_set_errno_and_return_minus_one( EINVAL ); a0010ea4: eb0007bc bl a0012d9c <__errno> <== NOT EXECUTED a0010ea8: e3a03016 mov r3, #22 <== NOT EXECUTED a0010eac: e5803000 str r3, [r0] <== NOT EXECUTED a0010eb0: e3e00000 mvn r0, #0 <== NOT EXECUTED a0010eb4: ea00002e b a0010f74 <== 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 ) a0010eb8: e1520008 cmp r2, r8 a0010ebc: 9afffff8 bls a0010ea4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) a0010ec0: e5947054 ldr r7, [r4, #84] ; 0x54 a0010ec4: e594a050 ldr sl, [r4, #80] ; 0x50 a0010ec8: e1560007 cmp r6, r7 a0010ecc: da000026 ble a0010f6c /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010ed0: e1a0cfcb asr ip, fp, #31 a0010ed4: e1a0300c mov r3, ip a0010ed8: e1a0200b mov r2, fp a0010edc: e1a00008 mov r0, r8 a0010ee0: e1a01006 mov r1, r6 a0010ee4: e58dc000 str ip, [sp] a0010ee8: eb002fbe bl a001cde8 <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010eec: e59dc000 ldr ip, [sp] /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010ef0: e1a05000 mov r5, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010ef4: e1a01007 mov r1, r7 a0010ef8: e1a0000a mov r0, sl a0010efc: e1a0200b mov r2, fp a0010f00: e1a0300c mov r3, ip a0010f04: eb002fb7 bl a001cde8 <__divdi3> /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a0010f08: 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; a0010f0c: e1a0a000 mov sl, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a0010f10: 3a000019 bcc a0010f7c a0010f14: e1a07000 mov r7, r0 a0010f18: ea000002 b a0010f28 a0010f1c: e2877001 add r7, r7, #1 a0010f20: e1550007 cmp r5, r7 a0010f24: 3a000014 bcc a0010f7c if ( IMFS_memfile_addblock( the_jnode, block ) ) { a0010f28: e1a00004 mov r0, r4 a0010f2c: e1a01007 mov r1, r7 a0010f30: ebffffa3 bl a0010dc4 a0010f34: e3500000 cmp r0, #0 a0010f38: 0afffff7 beq a0010f1c a0010f3c: ea000003 b a0010f50 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); a0010f40: e1a01007 mov r1, r7 <== NOT EXECUTED a0010f44: 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-- ) { a0010f48: e2477001 sub r7, r7, #1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); a0010f4c: ebfffee8 bl a0010af4 <== 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-- ) { a0010f50: e15a0007 cmp sl, r7 <== NOT EXECUTED a0010f54: 9afffff9 bls a0010f40 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); a0010f58: eb00078f bl a0012d9c <__errno> <== NOT EXECUTED a0010f5c: e3a0301c mov r3, #28 <== NOT EXECUTED a0010f60: e5803000 str r3, [r0] <== NOT EXECUTED a0010f64: e3e00000 mvn r0, #0 <== NOT EXECUTED a0010f68: ea000001 b a0010f74 <== 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 ) a0010f6c: 0a000005 beq a0010f88 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; a0010f70: e3a00000 mov r0, #0 return 0; } a0010f74: e28dd004 add sp, sp, #4 a0010f78: e8bd8df0 pop {r4, r5, r6, r7, r8, sl, fp, pc} /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; a0010f7c: e5846054 str r6, [r4, #84] ; 0x54 a0010f80: e5848050 str r8, [r4, #80] ; 0x50 a0010f84: eafffff9 b a0010f70 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 ) a0010f88: e158000a cmp r8, sl a0010f8c: 8affffcf bhi a0010ed0 a0010f90: eafffff6 b a0010f70 assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010f94: e3a01f4d mov r1, #308 ; 0x134 <== NOT EXECUTED a0010f98: e2811001 add r1, r1, #1 <== NOT EXECUTED a0010f9c: e59f0024 ldr r0, [pc, #36] ; a0010fc8 <== NOT EXECUTED a0010fa0: e59f2024 ldr r2, [pc, #36] ; a0010fcc <== NOT EXECUTED a0010fa4: e59f3024 ldr r3, [pc, #36] ; a0010fd0 <== NOT EXECUTED a0010fa8: ebfff4ab bl a000e25c <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); a0010fac: e3a01e13 mov r1, #304 ; 0x130 <== NOT EXECUTED a0010fb0: e2811001 add r1, r1, #1 <== NOT EXECUTED a0010fb4: e59f000c ldr r0, [pc, #12] ; a0010fc8 <== NOT EXECUTED a0010fb8: e59f200c ldr r2, [pc, #12] ; a0010fcc <== NOT EXECUTED a0010fbc: e59f3010 ldr r3, [pc, #16] ; a0010fd4 <== NOT EXECUTED a0010fc0: ebfff4a5 bl a000e25c <__assert_func> <== NOT EXECUTED a0010fc4: a00205a8 .word 0xa00205a8 a0010fc8: a0020118 .word 0xa0020118 a0010fcc: a001f7d8 .word 0xa001f7d8 a0010fd0: a0020170 .word 0xa0020170 a0010fd4: a0020160 .word 0xa0020160 a0010828 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a0010828: e92d41f0 push {r4, r5, r6, r7, r8, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a001082c: e2504000 subs r4, r0, #0 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a0010830: e24dd004 sub sp, sp, #4 /* * Perform internal consistency checks */ assert( the_jnode ); a0010834: 0a000078 beq a0010a1c if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010838: e594304c ldr r3, [r4, #76] ; 0x4c a001083c: e3530005 cmp r3, #5 a0010840: 1a000070 bne a0010a08 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a0010844: e59f320c ldr r3, [pc, #524] ; a0010a58 a0010848: e5935000 ldr r5, [r3] a001084c: e1a05125 lsr r5, r5, #2 a0010850: e2453001 sub r3, r5, #1 a0010854: e1510003 cmp r1, r3 a0010858: 9a000019 bls a00108c4 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { a001085c: e0265595 mla r6, r5, r5, r5 <== NOT EXECUTED a0010860: e2463001 sub r3, r6, #1 <== NOT EXECUTED a0010864: e1510003 cmp r1, r3 <== NOT EXECUTED a0010868: 8a000025 bhi a0010904 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; a001086c: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a0010870: e1a00006 mov r0, r6 <== NOT EXECUTED a0010874: e1a01005 mov r1, r5 <== NOT EXECUTED a0010878: e58d2000 str r2, [sp] <== NOT EXECUTED a001087c: eb002ea7 bl a001c320 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010880: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a0010884: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010888: e1a00006 mov r0, r6 <== NOT EXECUTED a001088c: eb002e5f bl a001c210 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { a0010890: e59d2000 ldr r2, [sp] <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010894: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; a0010898: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { a001089c: e3520000 cmp r2, #0 <== NOT EXECUTED a00108a0: 0a000044 beq a00109b8 <== NOT EXECUTED if ( !p ) { a00108a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00108a8: 0a000049 beq a00109d4 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; a00108ac: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED a00108b0: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED if ( !p1 ) { a00108b4: e3500000 cmp r0, #0 <== NOT EXECUTED a00108b8: 0a000034 beq a0010990 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a00108bc: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED a00108c0: ea000005 b a00108dc <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { a00108c4: e3520000 cmp r2, #0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; a00108c8: e5940058 ldr r0, [r4, #88] ; 0x58 if ( malloc_it ) { a00108cc: 0a000035 beq a00109a8 if ( !p ) { a00108d0: e3500000 cmp r0, #0 a00108d4: 0a000002 beq a00108e4 } if ( !p ) return 0; return &info->indirect[ my_block ]; a00108d8: e0800101 add r0, r0, r1, lsl #2 /* * This means the requested block number is out of range. */ return 0; } a00108dc: e28dd004 add sp, sp, #4 a00108e0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); a00108e4: e58d1000 str r1, [sp] a00108e8: ebffffc1 bl a00107f4 if ( !p ) a00108ec: e3500000 cmp r0, #0 a00108f0: e59d1000 ldr r1, [sp] return 0; info->indirect = p; a00108f4: 15840058 strne r0, [r4, #88] ; 0x58 if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) a00108f8: 1afffff6 bne a00108d8 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a00108fc: e3a00000 mov r0, #0 <== NOT EXECUTED a0010900: eafffff5 b a00108dc <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { a0010904: e0235596 mla r3, r6, r5, r5 <== NOT EXECUTED a0010908: e2433001 sub r3, r3, #1 <== NOT EXECUTED a001090c: e1510003 cmp r1, r3 <== NOT EXECUTED a0010910: 8afffff9 bhi a00108fc <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; a0010914: e0666001 rsb r6, r6, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a0010918: e1a00006 mov r0, r6 <== NOT EXECUTED a001091c: e1a01005 mov r1, r5 <== NOT EXECUTED a0010920: e58d2000 str r2, [sp] <== NOT EXECUTED a0010924: eb002e7d bl a001c320 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010928: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a001092c: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010930: e1a00006 mov r0, r6 <== NOT EXECUTED a0010934: eb002e35 bl a001c210 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a0010938: 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; a001093c: e1a08000 mov r8, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a0010940: eb002e32 bl a001c210 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a0010944: 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; a0010948: e1a06000 mov r6, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a001094c: e1a00008 mov r0, r8 <== NOT EXECUTED a0010950: eb002e72 bl a001c320 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { a0010954: e59d2000 ldr r2, [sp] <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a0010958: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; a001095c: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { a0010960: e3520000 cmp r2, #0 <== NOT EXECUTED a0010964: 0a00001f beq a00109e8 <== NOT EXECUTED if ( !p ) { a0010968: e3530000 cmp r3, #0 <== NOT EXECUTED a001096c: 0a000034 beq a0010a44 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; a0010970: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED a0010974: e0836106 add r6, r3, r6, lsl #2 <== NOT EXECUTED if ( !p1 ) { a0010978: e3520000 cmp r2, #0 <== NOT EXECUTED a001097c: 0a00002b beq a0010a30 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; a0010980: e7920105 ldr r0, [r2, r5, lsl #2] <== NOT EXECUTED a0010984: e0825105 add r5, r2, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { a0010988: e3500000 cmp r0, #0 <== NOT EXECUTED a001098c: 1affffca bne a00108bc <== NOT EXECUTED p2 = memfile_alloc_block(); a0010990: ebffff97 bl a00107f4 <== NOT EXECUTED if ( !p2 ) a0010994: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; a0010998: 15850000 strne r0, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) a001099c: 0affffd6 beq a00108fc <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a00109a0: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED a00109a4: eaffffcc b a00108dc <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) a00109a8: e3500000 cmp r0, #0 a00109ac: 1affffc9 bne a00108d8 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a00109b0: e3a00000 mov r0, #0 <== NOT EXECUTED a00109b4: eaffffc8 b a00108dc <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) a00109b8: e3530000 cmp r3, #0 <== NOT EXECUTED a00109bc: 0affffce beq a00108fc <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; a00109c0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) a00109c4: e3500000 cmp r0, #0 <== NOT EXECUTED a00109c8: 0affffcb beq a00108fc <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a00109cc: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED a00109d0: eaffffc1 b a00108dc <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); a00109d4: ebffff86 bl a00107f4 <== NOT EXECUTED if ( !p ) a00109d8: e2503000 subs r3, r0, #0 <== NOT EXECUTED a00109dc: 0affffc6 beq a00108fc <== NOT EXECUTED return 0; info->doubly_indirect = p; a00109e0: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED a00109e4: eaffffb0 b a00108ac <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) a00109e8: e3530000 cmp r3, #0 <== NOT EXECUTED a00109ec: 0affffc2 beq a00108fc <== 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 ]; a00109f0: e7933106 ldr r3, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) a00109f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00109f8: 0affffbf beq a00108fc <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a00109fc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0010a00: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED a0010a04: eaffffb4 b a00108dc <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010a08: e59f004c ldr r0, [pc, #76] ; a0010a5c <== NOT EXECUTED a0010a0c: e3a01fe3 mov r1, #908 ; 0x38c <== NOT EXECUTED a0010a10: e59f2048 ldr r2, [pc, #72] ; a0010a60 <== NOT EXECUTED a0010a14: e59f3048 ldr r3, [pc, #72] ; a0010a64 <== NOT EXECUTED a0010a18: ebfff60f bl a000e25c <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); a0010a1c: e59f0038 ldr r0, [pc, #56] ; a0010a5c <== NOT EXECUTED a0010a20: e3a01fe2 mov r1, #904 ; 0x388 <== NOT EXECUTED a0010a24: e59f2034 ldr r2, [pc, #52] ; a0010a60 <== NOT EXECUTED a0010a28: e59f3038 ldr r3, [pc, #56] ; a0010a68 <== NOT EXECUTED a0010a2c: ebfff60a bl a000e25c <__assert_func> <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); a0010a30: ebffff6f bl a00107f4 <== NOT EXECUTED if ( !p1 ) a0010a34: e2502000 subs r2, r0, #0 <== NOT EXECUTED a0010a38: 0affffaf beq a00108fc <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; a0010a3c: e5862000 str r2, [r6] <== NOT EXECUTED a0010a40: eaffffce b a0010980 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); a0010a44: ebffff6a bl a00107f4 <== NOT EXECUTED if ( !p ) a0010a48: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0010a4c: 0affffaa beq a00108fc <== NOT EXECUTED return 0; info->triply_indirect = p; a0010a50: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0010a54: eaffffc5 b a0010970 <== NOT EXECUTED a0010a58: a00205a8 .word 0xa00205a8 a0010a5c: a0020118 .word 0xa0020118 a0010a60: a001f748 .word 0xa001f748 a0010a64: a0020170 .word 0xa0020170 a0010a68: a0020160 .word 0xa0020160 a0011468 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a0011468: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a001146c: e2509000 subs r9, r0, #0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a0011470: e24dd014 sub sp, sp, #20 a0011474: e1a08003 mov r8, r3 a0011478: e1a0a001 mov sl, r1 a001147c: e1a0b002 mov fp, r2 a0011480: e59d5038 ldr r5, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); a0011484: 0a000095 beq a00116e0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || a0011488: e599304c ldr r3, [r9, #76] ; 0x4c a001148c: e2432005 sub r2, r3, #5 a0011490: e3520001 cmp r2, #1 a0011494: 8a00008b bhi a00116c8 /* * Error checks on arguments */ assert( dest ); a0011498: e3580000 cmp r8, #0 a001149c: 0a00009a beq a001170c /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) a00114a0: e3550000 cmp r5, #0 a00114a4: 0a000076 beq a0011684 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { a00114a8: e3530006 cmp r3, #6 a00114ac: 0a00005a beq a001161c * 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 ) a00114b0: e5992054 ldr r2, [r9, #84] ; 0x54 /* * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; a00114b4: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) a00114b8: e3a01000 mov r1, #0 a00114bc: e1510002 cmp r1, r2 a00114c0: e5992050 ldr r2, [r9, #80] ; 0x50 a00114c4: e085100a add r1, r5, sl a00114c8: ca000051 bgt a0011614 a00114cc: 0a00004e beq a001160c /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a00114d0: e59f624c ldr r6, [pc, #588] ; a0011724 a00114d4: e1a0000a mov r0, sl a00114d8: e1a0100b mov r1, fp a00114dc: e5964000 ldr r4, [r6] a00114e0: e1a02004 mov r2, r4 a00114e4: e1a03fc2 asr r3, r2, #31 a00114e8: e98d000c stmib sp, {r2, r3} a00114ec: eb002f67 bl a001d290 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a00114f0: e99d000c ldmib sp, {r2, r3} /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a00114f4: e1a0c000 mov ip, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a00114f8: e1a0100b mov r1, fp a00114fc: e1a0000a mov r0, sl a0011500: e58dc000 str ip, [sp] a0011504: eb002e37 bl a001cde8 <__divdi3> if ( start_offset ) { a0011508: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a001150c: e1a07000 mov r7, r0 if ( start_offset ) { a0011510: e35c0000 cmp ip, #0 a0011514: 01a0a00c moveq sl, ip a0011518: 0a000013 beq a001156c 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 ); a001151c: e1a00009 mov r0, r9 a0011520: e1a01007 mov r1, r7 a0011524: e3a02000 mov r2, #0 a0011528: e58dc000 str ip, [sp] a001152c: ebfffcbd bl a0010828 assert( block_ptr ); a0011530: e3500000 cmp r0, #0 a0011534: e59dc000 ldr ip, [sp] a0011538: 0a00006d beq a00116f4 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); a001153c: 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; a0011540: e06ca004 rsb sl, ip, r4 a0011544: e155000a cmp r5, sl a0011548: 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 ); a001154c: e1a00008 mov r0, r8 a0011550: e081100c add r1, r1, ip a0011554: e1a0200a mov r2, sl a0011558: eb00081d bl a00135d4 dest += to_copy; block++; my_length -= to_copy; a001155c: 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; a0011560: e088800a add r8, r8, sl block++; a0011564: e2877001 add r7, r7, #1 my_length -= to_copy; a0011568: 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 ) { a001156c: e1550004 cmp r5, r4 a0011570: 3a000010 bcc a00115b8 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0011574: e1a00009 mov r0, r9 a0011578: e1a01007 mov r1, r7 a001157c: e3a02000 mov r2, #0 a0011580: ebfffca8 bl a0010828 assert( block_ptr ); a0011584: e3500000 cmp r0, #0 a0011588: 0a000042 beq a0011698 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); a001158c: e5901000 ldr r1, [r0] a0011590: e1a02004 mov r2, r4 a0011594: e1a00008 mov r0, r8 a0011598: eb00080d bl a00135d4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a001159c: e5963000 ldr r3, [r6] if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; a00115a0: e0645005 rsb r5, r4, 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; a00115a4: e0888004 add r8, r8, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a00115a8: e1530005 cmp r3, r5 assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; a00115ac: e2877001 add r7, r7, #1 my_length -= to_copy; copied += to_copy; a00115b0: 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 ) { a00115b4: 9affffee bls a0011574 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { a00115b8: e3550000 cmp r5, #0 a00115bc: 0a00000a beq a00115ec block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a00115c0: e1a01007 mov r1, r7 a00115c4: e1a00009 mov r0, r9 a00115c8: e3a02000 mov r2, #0 a00115cc: ebfffc95 bl a0010828 assert( block_ptr ); a00115d0: e2503000 subs r3, r0, #0 a00115d4: 0a000035 beq a00116b0 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); a00115d8: e1a00008 mov r0, r8 a00115dc: e5931000 ldr r1, [r3] a00115e0: e1a02005 mov r2, r5 a00115e4: eb0007fa bl a00135d4 copied += my_length; a00115e8: e08aa005 add sl, sl, r5 } IMFS_update_atime( the_jnode ); a00115ec: e28d000c add r0, sp, #12 a00115f0: e3a01000 mov r1, #0 a00115f4: ebffc51c bl a0002a6c a00115f8: e59d300c ldr r3, [sp, #12] return copied; a00115fc: e1a0000a mov r0, sl return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); a0011600: e5893040 str r3, [r9, #64] ; 0x40 return copied; } a0011604: e28dd014 add sp, sp, #20 a0011608: 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 ) a001160c: e1510002 cmp r1, r2 a0011610: 9affffae bls a00114d0 my_length = the_jnode->info.file.size - start; a0011614: e0635002 rsb r5, r3, r2 a0011618: eaffffac b a00114d0 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)) a001161c: e2894050 add r4, r9, #80 ; 0x50 <== NOT EXECUTED a0011620: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED a0011624: e1a00003 mov r0, r3 <== NOT EXECUTED a0011628: e1a01004 mov r1, r4 <== NOT EXECUTED a001162c: e3a02000 mov r2, #0 <== NOT EXECUTED a0011630: e050000a subs r0, r0, sl <== NOT EXECUTED a0011634: e0c1100b sbc r1, r1, fp <== NOT EXECUTED a0011638: 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; a001163c: e5992058 ldr r2, [r9, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) a0011640: da00000b ble a0011674 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; a0011644: e06a5003 rsb r5, sl, r3 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); a0011648: e082100a add r1, r2, sl <== NOT EXECUTED a001164c: e1a00008 mov r0, r8 <== NOT EXECUTED a0011650: e1a02005 mov r2, r5 <== NOT EXECUTED a0011654: eb0007de bl a00135d4 <== NOT EXECUTED IMFS_update_atime( the_jnode ); a0011658: e28d000c add r0, sp, #12 <== NOT EXECUTED a001165c: e3a01000 mov r1, #0 <== NOT EXECUTED a0011660: ebffc501 bl a0002a6c <== NOT EXECUTED a0011664: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED return my_length; a0011668: 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 ); a001166c: e5893040 str r3, [r9, #64] ; 0x40 <== NOT EXECUTED return my_length; a0011670: eaffffe3 b a0011604 <== 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)) a0011674: 1afffff3 bne a0011648 <== NOT EXECUTED a0011678: e1550000 cmp r5, r0 <== NOT EXECUTED a001167c: 9afffff1 bls a0011648 <== NOT EXECUTED a0011680: eaffffef b a0011644 <== 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 ); a0011684: eb0005c4 bl a0012d9c <__errno> <== NOT EXECUTED a0011688: e3a03016 mov r3, #22 <== NOT EXECUTED a001168c: e5803000 str r3, [r0] <== NOT EXECUTED a0011690: e3e00000 mvn r0, #0 <== NOT EXECUTED a0011694: eaffffda b a0011604 <== 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 ); a0011698: e3a01fa9 mov r1, #676 ; 0x2a4 <== NOT EXECUTED a001169c: e2811003 add r1, r1, #3 <== NOT EXECUTED a00116a0: e59f0080 ldr r0, [pc, #128] ; a0011728 <== NOT EXECUTED a00116a4: e59f2080 ldr r2, [pc, #128] ; a001172c <== NOT EXECUTED a00116a8: e59f3080 ldr r3, [pc, #128] ; a0011730 <== NOT EXECUTED a00116ac: ebfff2ea bl a000e25c <__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 ); a00116b0: e3a01fae mov r1, #696 ; 0x2b8 <== NOT EXECUTED a00116b4: e2811001 add r1, r1, #1 <== NOT EXECUTED a00116b8: e59f0068 ldr r0, [pc, #104] ; a0011728 <== NOT EXECUTED a00116bc: e59f2068 ldr r2, [pc, #104] ; a001172c <== NOT EXECUTED a00116c0: e59f3068 ldr r3, [pc, #104] ; a0011730 <== NOT EXECUTED a00116c4: ebfff2e4 bl a000e25c <__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 || a00116c8: e3a01e25 mov r1, #592 ; 0x250 <== NOT EXECUTED a00116cc: e2811001 add r1, r1, #1 <== NOT EXECUTED a00116d0: e59f0050 ldr r0, [pc, #80] ; a0011728 <== NOT EXECUTED a00116d4: e59f2050 ldr r2, [pc, #80] ; a001172c <== NOT EXECUTED a00116d8: e59f3054 ldr r3, [pc, #84] ; a0011734 <== NOT EXECUTED a00116dc: ebfff2de bl a000e25c <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); a00116e0: e59f0040 ldr r0, [pc, #64] ; a0011728 <== NOT EXECUTED a00116e4: e3a01f93 mov r1, #588 ; 0x24c <== NOT EXECUTED a00116e8: e59f203c ldr r2, [pc, #60] ; a001172c <== NOT EXECUTED a00116ec: e59f3044 ldr r3, [pc, #68] ; a0011738 <== NOT EXECUTED a00116f0: ebfff2d9 bl a000e25c <__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 ); a00116f4: e3a01fa5 mov r1, #660 ; 0x294 <== NOT EXECUTED a00116f8: e2811002 add r1, r1, #2 <== NOT EXECUTED a00116fc: e59f0024 ldr r0, [pc, #36] ; a0011728 <== NOT EXECUTED a0011700: e59f2024 ldr r2, [pc, #36] ; a001172c <== NOT EXECUTED a0011704: e59f3024 ldr r3, [pc, #36] ; a0011730 <== NOT EXECUTED a0011708: ebfff2d3 bl a000e25c <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); a001170c: e3a01f96 mov r1, #600 ; 0x258 <== NOT EXECUTED a0011710: e2811002 add r1, r1, #2 <== NOT EXECUTED a0011714: e59f000c ldr r0, [pc, #12] ; a0011728 <== NOT EXECUTED a0011718: e59f200c ldr r2, [pc, #12] ; a001172c <== NOT EXECUTED a001171c: e59f3018 ldr r3, [pc, #24] ; a001173c <== NOT EXECUTED a0011720: ebfff2cd bl a000e25c <__assert_func> <== NOT EXECUTED a0011724: a00205a8 .word 0xa00205a8 a0011728: a0020118 .word 0xa0020118 a001172c: a001f808 .word 0xa001f808 a0011730: a00201a8 .word 0xa00201a8 a0011734: a00201c0 .word 0xa00201c0 a0011738: a0020160 .word 0xa0020160 a001173c: a0020210 .word 0xa0020210 a0010b44 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { a0010b44: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a0010b48: e250a000 subs sl, r0, #0 a0010b4c: 0a000052 beq a0010c9c if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010b50: e59a304c ldr r3, [sl, #76] ; 0x4c a0010b54: e3530005 cmp r3, #5 a0010b58: 1a000055 bne a0010cb4 /* * 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; a0010b5c: e59f6168 ldr r6, [pc, #360] ; a0010ccc * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a0010b60: 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; a0010b64: e5967000 ldr r7, [r6] * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a0010b68: 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; a0010b6c: e1a07127 lsr r7, r7, #2 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a0010b70: 0a000002 beq a0010b80 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); a0010b74: e28a0058 add r0, sl, #88 ; 0x58 a0010b78: e1a01007 mov r1, r7 a0010b7c: ebffffba bl a0010a6c } if ( info->doubly_indirect ) { a0010b80: e59a305c ldr r3, [sl, #92] ; 0x5c a0010b84: e3530000 cmp r3, #0 a0010b88: 0a000015 beq a0010be4 for ( i=0 ; i <== NOT EXECUTED a0010b98: e3a02000 mov r2, #0 <== NOT EXECUTED a0010b9c: e1a04002 mov r4, r2 <== NOT EXECUTED a0010ba0: ea000000 b a0010ba8 <== NOT EXECUTED a0010ba4: e59a305c ldr r3, [sl, #92] ; 0x5c <== NOT EXECUTED if ( info->doubly_indirect[i] ) { a0010ba8: e7931102 ldr r1, [r3, r2, lsl #2] <== NOT EXECUTED a0010bac: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED a0010bb0: e3510000 cmp r1, #0 <== NOT EXECUTED a0010bb4: 0a000002 beq a0010bc4 <== NOT EXECUTED memfile_free_blocks_in_table( a0010bb8: e0830002 add r0, r3, r2 <== NOT EXECUTED a0010bbc: e1a01007 mov r1, r7 <== NOT EXECUTED a0010bc0: ebffffa9 bl a0010a6c <== 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 ); a0010bd8: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED a0010bdc: e1a01007 mov r1, r7 <== NOT EXECUTED a0010be0: ebffffa1 bl a0010a6c <== NOT EXECUTED } if ( info->triply_indirect ) { a0010be4: e59a0060 ldr r0, [sl, #96] ; 0x60 a0010be8: e3500000 cmp r0, #0 a0010bec: 0a000028 beq a0010c94 for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; a0010bfc: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010c00: e3550000 cmp r5, #0 <== NOT EXECUTED a0010c04: 13a09000 movne r9, #0 <== NOT EXECUTED a0010c08: 11a08009 movne r8, r9 <== NOT EXECUTED a0010c0c: 0a00001d beq a0010c88 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED a0010c18: e3a00000 mov r0, #0 <== NOT EXECUTED a0010c1c: e1a04000 mov r4, r0 <== NOT EXECUTED if ( p[j] ) { a0010c20: e7953100 ldr r3, [r5, r0, lsl #2] <== NOT EXECUTED a0010c24: e1a00100 lsl r0, r0, #2 <== NOT EXECUTED a0010c28: e3530000 cmp r3, #0 <== NOT EXECUTED a0010c2c: 0a000002 beq a0010c3c <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); a0010c30: e0850000 add r0, r5, r0 <== NOT EXECUTED a0010c34: e1a01007 mov r1, r7 <== NOT EXECUTED a0010c38: ebffff8b bl a0010a6c <== 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 a0010c50: 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( a0010c54: e0800009 add r0, r0, r9 <== NOT EXECUTED a0010c58: e1a01007 mov r1, r7 <== NOT EXECUTED a0010c5c: ebffff82 bl a0010a6c <== 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]; a0010c74: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010c78: e1a09108 lsl r9, r8, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; a0010c7c: e7905108 ldr r5, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010c80: e3550000 cmp r5, #0 <== NOT EXECUTED a0010c84: 1affffe1 bne a0010c10 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( a0010c88: e28a0060 add r0, sl, #96 ; 0x60 <== NOT EXECUTED a0010c8c: e1a01007 mov r1, r7 <== NOT EXECUTED a0010c90: ebffff75 bl a0010a6c <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } a0010c94: e3a00000 mov r0, #0 a0010c98: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * Perform internal consistency checks */ assert( the_jnode ); a0010c9c: e3a01f7b mov r1, #492 ; 0x1ec <== NOT EXECUTED a0010ca0: e2811002 add r1, r1, #2 <== NOT EXECUTED a0010ca4: e59f0024 ldr r0, [pc, #36] ; a0010cd0 <== NOT EXECUTED a0010ca8: e59f2024 ldr r2, [pc, #36] ; a0010cd4 <== NOT EXECUTED a0010cac: e59f3024 ldr r3, [pc, #36] ; a0010cd8 <== NOT EXECUTED a0010cb0: ebfff569 bl a000e25c <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010cb4: e3a01e1f mov r1, #496 ; 0x1f0 <== NOT EXECUTED a0010cb8: e2811002 add r1, r1, #2 <== NOT EXECUTED a0010cbc: e59f000c ldr r0, [pc, #12] ; a0010cd0 <== NOT EXECUTED a0010cc0: e59f200c ldr r2, [pc, #12] ; a0010cd4 <== NOT EXECUTED a0010cc4: e59f3010 ldr r3, [pc, #16] ; a0010cdc <== NOT EXECUTED a0010cc8: ebfff563 bl a000e25c <__assert_func> <== NOT EXECUTED a0010ccc: a00205a8 .word 0xa00205a8 a0010cd0: a0020118 .word 0xa0020118 a0010cd4: a001f7a8 .word 0xa001f7a8 a0010cd8: a0020160 .word 0xa0020160 a0010cdc: a0020170 .word 0xa0020170 a0010af4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { a0010af4: 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 ); a0010af8: e3a02000 mov r2, #0 <== NOT EXECUTED a0010afc: ebffff49 bl a0010828 <== NOT EXECUTED assert( block_ptr ); a0010b00: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0010b04: 0a000005 beq a0010b20 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; a0010b08: 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; a0010b0c: e5930000 ldr r0, [r3] <== NOT EXECUTED *block_ptr = 0; a0010b10: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); a0010b14: ebffff2e bl a00107d4 <== NOT EXECUTED } return 1; } a0010b18: e3a00001 mov r0, #1 <== NOT EXECUTED a0010b1c: 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 ); a0010b20: e3a01f65 mov r1, #404 ; 0x194 <== NOT EXECUTED a0010b24: e2811002 add r1, r1, #2 <== NOT EXECUTED a0010b28: e59f0008 ldr r0, [pc, #8] ; a0010b38 <== NOT EXECUTED a0010b2c: e59f2008 ldr r2, [pc, #8] ; a0010b3c <== NOT EXECUTED a0010b30: e59f3008 ldr r3, [pc, #8] ; a0010b40 <== NOT EXECUTED a0010b34: ebfff5c8 bl a000e25c <__assert_func> <== NOT EXECUTED a0010b38: a0020118 .word 0xa0020118 a0010b3c: a001f788 .word 0xa001f788 a0010b40: a00201a8 .word 0xa00201a8 a00110f0 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a00110f0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a00110f4: e2509000 subs r9, r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a00110f8: e24dd014 sub sp, sp, #20 a00110fc: e1a06001 mov r6, r1 a0011100: e1a07002 mov r7, r2 a0011104: e1a08003 mov r8, r3 a0011108: e59da038 ldr sl, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); a001110c: 0a000084 beq a0011324 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0011110: e599304c ldr r3, [r9, #76] ; 0x4c a0011114: e3530005 cmp r3, #5 a0011118: 1a000075 bne a00112f4 /* * Error check arguments */ assert( source ); a001111c: e3580000 cmp r8, #0 a0011120: 0a00006d beq a00112dc /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) a0011124: e35a0000 cmp sl, #0 a0011128: 0a000061 beq a00112b4 * 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 ) { a001112c: e5993054 ldr r3, [r9, #84] ; 0x54 a0011130: e08a1001 add r1, sl, r1 a0011134: e3530000 cmp r3, #0 a0011138: ba000053 blt a001128c a001113c: 0a00004f beq a0011280 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0011140: e59f5208 ldr r5, [pc, #520] ; a0011350 a0011144: e1a00006 mov r0, r6 a0011148: e1a01007 mov r1, r7 a001114c: e5954000 ldr r4, [r5] a0011150: e1a02004 mov r2, r4 a0011154: e1a03fc2 asr r3, r2, #31 a0011158: e98d000c stmib sp, {r2, r3} a001115c: eb00304b bl a001d290 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a0011160: e99d000c ldmib sp, {r2, r3} /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0011164: e1a0b000 mov fp, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a0011168: e1a01007 mov r1, r7 a001116c: e1a00006 mov r0, r6 a0011170: eb002f1c bl a001cde8 <__divdi3> if ( start_offset ) { a0011174: e35b0000 cmp fp, #0 a0011178: 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; a001117c: e1a06000 mov r6, r0 if ( start_offset ) { a0011180: 01a0a00b moveq sl, fp a0011184: 0a000014 beq a00111dc 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 ); a0011188: e1a00009 mov r0, r9 a001118c: e1a01006 mov r1, r6 a0011190: e3a02000 mov r2, #0 a0011194: ebfffda3 bl a0010828 assert( block_ptr ); a0011198: e3500000 cmp r0, #0 a001119c: 0a000066 beq a001133c 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 ); a00111a0: 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; a00111a4: e06b3004 rsb r3, fp, r4 a00111a8: e153000a cmp r3, sl a00111ac: 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 ); a00111b0: e1a01008 mov r1, r8 a00111b4: e1a02003 mov r2, r3 a00111b8: e080000b add r0, r0, fp a00111bc: e58d3000 str r3, [sp] a00111c0: eb000903 bl a00135d4 src += to_copy; a00111c4: e59d3000 ldr r3, [sp] block++; my_length -= to_copy; copied += to_copy; a00111c8: e5954000 ldr r4, [r5] #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; block++; a00111cc: e2866001 add r6, r6, #1 my_length -= to_copy; a00111d0: 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; a00111d4: e0888003 add r8, r8, r3 block++; my_length -= to_copy; copied += to_copy; a00111d8: 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 ) { a00111dc: e1570004 cmp r7, r4 a00111e0: 3a000010 bcc a0011228 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a00111e4: e1a00009 mov r0, r9 a00111e8: e1a01006 mov r1, r6 a00111ec: e3a02000 mov r2, #0 a00111f0: ebfffd8c bl a0010828 assert( block_ptr ); a00111f4: e3500000 cmp r0, #0 a00111f8: 0a000032 beq a00112c8 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 ); a00111fc: e1a01008 mov r1, r8 a0011200: e5900000 ldr r0, [r0] a0011204: e1a02004 mov r2, r4 a0011208: eb0008f1 bl a00135d4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a001120c: 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; a0011210: e0647007 rsb r7, r4, 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; a0011214: e0888004 add r8, r8, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0011218: e1530007 cmp r3, r7 #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; block++; a001121c: 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( a0011220: 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 ) { a0011224: 9affffee bls a00111e4 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { a0011228: e3570000 cmp r7, #0 a001122c: 0a00000a beq a001125c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0011230: e1a01006 mov r1, r6 a0011234: e1a00009 mov r0, r9 a0011238: e3a02000 mov r2, #0 a001123c: ebfffd79 bl a0010828 assert( block_ptr ); a0011240: e3500000 cmp r0, #0 a0011244: 0a000030 beq a001130c 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 ); a0011248: e5900000 ldr r0, [r0] a001124c: e1a01008 mov r1, r8 a0011250: e1a02007 mov r2, r7 a0011254: eb0008de bl a00135d4 my_length = 0; copied += to_copy; a0011258: e08aa007 add sl, sl, r7 } IMFS_mtime_ctime_update( the_jnode ); a001125c: e28d000c add r0, sp, #12 a0011260: e3a01000 mov r1, #0 a0011264: ebffc600 bl a0002a6c a0011268: e59d300c ldr r3, [sp, #12] a001126c: e5893048 str r3, [r9, #72] ; 0x48 a0011270: e5893044 str r3, [r9, #68] ; 0x44 return copied; } a0011274: e1a0000a mov r0, sl a0011278: e28dd014 add sp, sp, #20 a001127c: 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 ) { a0011280: e5993050 ldr r3, [r9, #80] ; 0x50 a0011284: e1530001 cmp r3, r1 a0011288: 2affffac bcs a0011140 status = IMFS_memfile_extend( the_jnode, last_byte ); a001128c: e1a00009 mov r0, r9 a0011290: e3a02000 mov r2, #0 a0011294: ebfffeee bl a0010e54 if ( status ) a0011298: e3500000 cmp r0, #0 a001129c: 0affffa7 beq a0011140 rtems_set_errno_and_return_minus_one( ENOSPC ); a00112a0: eb0006bd bl a0012d9c <__errno> <== NOT EXECUTED a00112a4: e3a0301c mov r3, #28 <== NOT EXECUTED a00112a8: e5803000 str r3, [r0] <== NOT EXECUTED a00112ac: e3e0a000 mvn sl, #0 <== NOT EXECUTED a00112b0: eaffffef b a0011274 <== 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 ); a00112b4: eb0006b8 bl a0012d9c <__errno> <== NOT EXECUTED a00112b8: e3a03016 mov r3, #22 <== NOT EXECUTED a00112bc: e5803000 str r3, [r0] <== NOT EXECUTED a00112c0: e3e0a000 mvn sl, #0 <== NOT EXECUTED a00112c4: eaffffea b a0011274 <== 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 ); a00112c8: e59f0084 ldr r0, [pc, #132] ; a0011354 <== NOT EXECUTED a00112cc: e3a01e33 mov r1, #816 ; 0x330 <== NOT EXECUTED a00112d0: e59f2080 ldr r2, [pc, #128] ; a0011358 <== NOT EXECUTED a00112d4: e59f3080 ldr r3, [pc, #128] ; a001135c <== NOT EXECUTED a00112d8: ebfff3df bl a000e25c <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); a00112dc: e3a01fbb mov r1, #748 ; 0x2ec <== NOT EXECUTED a00112e0: e2811003 add r1, r1, #3 <== NOT EXECUTED a00112e4: e59f0068 ldr r0, [pc, #104] ; a0011354 <== NOT EXECUTED a00112e8: e59f2068 ldr r2, [pc, #104] ; a0011358 <== NOT EXECUTED a00112ec: e59f306c ldr r3, [pc, #108] ; a0011360 <== NOT EXECUTED a00112f0: ebfff3d9 bl a000e25c <__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 ); a00112f4: e3a01fb9 mov r1, #740 ; 0x2e4 <== NOT EXECUTED a00112f8: e2811003 add r1, r1, #3 <== NOT EXECUTED a00112fc: e59f0050 ldr r0, [pc, #80] ; a0011354 <== NOT EXECUTED a0011300: e59f2050 ldr r2, [pc, #80] ; a0011358 <== NOT EXECUTED a0011304: e59f3058 ldr r3, [pc, #88] ; a0011364 <== NOT EXECUTED a0011308: ebfff3d3 bl a000e25c <__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 ); a001130c: e3a01fd1 mov r1, #836 ; 0x344 <== NOT EXECUTED a0011310: e2811002 add r1, r1, #2 <== NOT EXECUTED a0011314: e59f0038 ldr r0, [pc, #56] ; a0011354 <== NOT EXECUTED a0011318: e59f2038 ldr r2, [pc, #56] ; a0011358 <== NOT EXECUTED a001131c: e59f3038 ldr r3, [pc, #56] ; a001135c <== NOT EXECUTED a0011320: ebfff3cd bl a000e25c <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); a0011324: e3a01e2e mov r1, #736 ; 0x2e0 <== NOT EXECUTED a0011328: e2811003 add r1, r1, #3 <== NOT EXECUTED a001132c: e59f0020 ldr r0, [pc, #32] ; a0011354 <== NOT EXECUTED a0011330: e59f2020 ldr r2, [pc, #32] ; a0011358 <== NOT EXECUTED a0011334: e59f302c ldr r3, [pc, #44] ; a0011368 <== NOT EXECUTED a0011338: ebfff3c7 bl a000e25c <__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 ); a001133c: e59f0010 ldr r0, [pc, #16] ; a0011354 <== NOT EXECUTED a0011340: e3a01fc7 mov r1, #796 ; 0x31c <== NOT EXECUTED a0011344: e59f200c ldr r2, [pc, #12] ; a0011358 <== NOT EXECUTED a0011348: e59f300c ldr r3, [pc, #12] ; a001135c <== NOT EXECUTED a001134c: ebfff3c2 bl a000e25c <__assert_func> <== NOT EXECUTED a0011350: a00205a8 .word 0xa00205a8 a0011354: a0020118 .word 0xa0020118 a0011358: a001f7f0 .word 0xa001f7f0 a001135c: a00201a8 .word 0xa00201a8 a0011360: a00201b8 .word 0xa00201b8 a0011364: a0020170 .word 0xa0020170 a0011368: a0020160 .word 0xa0020160 a0008c10 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a0008c10: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0008c14: e24dd040 sub sp, sp, #64 ; 0x40 a0008c18: e1a04001 mov r4, r1 a0008c1c: e1a07002 mov r7, r2 a0008c20: e1a06003 mov r6, r3 a0008c24: 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 ); a0008c28: eb00169f bl a000e6ac a0008c2c: e28d5004 add r5, sp, #4 a0008c30: e1a01000 mov r1, r0 a0008c34: e28d303c add r3, sp, #60 ; 0x3c a0008c38: e1a00008 mov r0, r8 a0008c3c: e1a02005 mov r2, r5 a0008c40: ebffff7d bl a0008a3c /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) a0008c44: e2043a0f and r3, r4, #61440 ; 0xf000 a0008c48: e3530901 cmp r3, #16384 ; 0x4000 a0008c4c: 0a00001b beq a0008cc0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) a0008c50: e3530902 cmp r3, #32768 ; 0x8000 a0008c54: 03a01005 moveq r1, #5 a0008c58: 0a000005 beq a0008c74 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { a0008c5c: e3530a06 cmp r3, #24576 ; 0x6000 a0008c60: 13530a02 cmpne r3, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); a0008c64: 058d7028 streq r7, [sp, #40] ; 0x28 a0008c68: 058d602c streq r6, [sp, #44] ; 0x2c a0008c6c: 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) ) { a0008c70: 1a00000a bne a0008ca0 * 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( a0008c74: e28dc028 add ip, sp, #40 ; 0x28 a0008c78: e59d0058 ldr r0, [sp, #88] ; 0x58 a0008c7c: e1a02005 mov r2, r5 a0008c80: e1a03004 mov r3, r4 a0008c84: e58dc000 str ip, [sp] a0008c88: eb000c2d bl a000bd44 new_name, mode, &info ); if ( !new_node ) a0008c8c: e3500000 cmp r0, #0 a0008c90: 13a00000 movne r0, #0 a0008c94: 0a00000b beq a0008cc8 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } a0008c98: e28dd040 add sp, sp, #64 ; 0x40 a0008c9c: 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)) a0008ca0: e3530a01 cmp r3, #4096 ; 0x1000 a0008ca4: 03a01007 moveq r1, #7 a0008ca8: 0afffff1 beq a0008c74 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); a0008cac: eb00128d bl a000d6e8 <__errno> <== NOT EXECUTED a0008cb0: e3a03016 mov r3, #22 <== NOT EXECUTED a0008cb4: e5803000 str r3, [r0] <== NOT EXECUTED a0008cb8: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008cbc: eafffff5 b a0008c98 <== NOT EXECUTED a0008cc0: e3a01001 mov r1, #1 a0008cc4: eaffffea b a0008c74 mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); a0008cc8: eb001286 bl a000d6e8 <__errno> <== NOT EXECUTED a0008ccc: e3a0300c mov r3, #12 <== NOT EXECUTED a0008cd0: e5803000 str r3, [r0] <== NOT EXECUTED a0008cd4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008cd8: eaffffee b a0008c98 <== NOT EXECUTED a0002178 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0002178: e5903008 ldr r3, [r0, #8] #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a000217c: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) a0002180: e593204c ldr r2, [r3, #76] ; 0x4c a0002184: e3520001 cmp r2, #1 a0002188: 1a000002 bne a0002198 /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; a000218c: e583005c str r0, [r3, #92] ; 0x5c a0002190: e3a00000 mov r0, #0 return 0; } a0002194: 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 ); a0002198: eb0042ff bl a0012d9c <__errno> <== NOT EXECUTED a000219c: e3a03014 mov r3, #20 <== NOT EXECUTED a00021a0: e5803000 str r3, [r0] <== NOT EXECUTED a00021a4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00021a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0002bd4 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { a0002bd4: e92d4030 push {r4, r5, lr} assert( the_jnode ); a0002bd8: e2504000 subs r4, r0, #0 a0002bdc: 0a000055 beq a0002d38 fprintf(stdout, "%s", the_jnode->name ); a0002be0: e59f5164 ldr r5, [pc, #356] ; a0002d4c a0002be4: e284000c add r0, r4, #12 a0002be8: e5953000 ldr r3, [r5] a0002bec: e5931008 ldr r1, [r3, #8] a0002bf0: eb003e51 bl a001253c switch( the_jnode->type ) { a0002bf4: e594204c ldr r2, [r4, #76] ; 0x4c a0002bf8: e2423001 sub r3, r2, #1 a0002bfc: e3530006 cmp r3, #6 a0002c00: 979ff103 ldrls pc, [pc, r3, lsl #2] a0002c04: ea000011 b a0002c50 <== NOT EXECUTED a0002c08: a0002c74 .word 0xa0002c74 <== NOT EXECUTED a0002c0c: a0002c90 .word 0xa0002c90 <== NOT EXECUTED a0002c10: a0002cac .word 0xa0002cac <== NOT EXECUTED a0002c14: a0002cd8 .word 0xa0002cd8 <== NOT EXECUTED a0002c18: a0002d04 .word 0xa0002d04 <== NOT EXECUTED a0002c1c: a0002d1c .word 0xa0002d1c <== NOT EXECUTED a0002c20: a0002c24 .word 0xa0002c24 <== NOT EXECUTED fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); a0002c24: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002c28: e3a01001 mov r1, #1 <== NOT EXECUTED a0002c2c: e3a02012 mov r2, #18 <== NOT EXECUTED a0002c30: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0002c34: e59f0114 ldr r0, [pc, #276] ; a0002d50 <== NOT EXECUTED a0002c38: eb004154 bl a0013190 <== NOT EXECUTED assert(0); a0002c3c: e59f0110 ldr r0, [pc, #272] ; a0002d54 <== NOT EXECUTED a0002c40: e3a01067 mov r1, #103 ; 0x67 <== NOT EXECUTED a0002c44: e59f210c ldr r2, [pc, #268] ; a0002d58 <== NOT EXECUTED a0002c48: e59f310c ldr r3, [pc, #268] ; a0002d5c <== NOT EXECUTED a0002c4c: eb00025b bl a00035c0 <__assert_func> <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); a0002c50: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002c54: e59f1104 ldr r1, [pc, #260] ; a0002d60 <== NOT EXECUTED a0002c58: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0002c5c: eb003dd5 bl a00123b8 <== NOT EXECUTED assert(0); a0002c60: e59f00ec ldr r0, [pc, #236] ; a0002d54 <== NOT EXECUTED a0002c64: e3a0106c mov r1, #108 ; 0x6c <== NOT EXECUTED a0002c68: e59f20e8 ldr r2, [pc, #232] ; a0002d58 <== NOT EXECUTED a0002c6c: e59f30e8 ldr r3, [pc, #232] ; a0002d5c <== NOT EXECUTED a0002c70: eb000252 bl a00035c0 <__assert_func> <== NOT EXECUTED assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); a0002c74: e5953000 ldr r3, [r5] a0002c78: e3a0002f mov r0, #47 ; 0x2f a0002c7c: e5931008 ldr r1, [r3, #8] a0002c80: eb003de8 bl a0012428 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); a0002c84: e59f00d8 ldr r0, [pc, #216] ; a0002d64 } a0002c88: e8bd4030 pop {r4, r5, lr} default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); a0002c8c: ea00452f b a0014150 case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", a0002c90: e5952000 ldr r2, [r5] a0002c94: e5943054 ldr r3, [r4, #84] ; 0x54 a0002c98: e59f10c8 ldr r1, [pc, #200] ; a0002d68 a0002c9c: e5920008 ldr r0, [r2, #8] a0002ca0: e5942050 ldr r2, [r4, #80] ; 0x50 a0002ca4: eb003dc3 bl a00123b8 the_jnode->info.device.major, the_jnode->info.device.minor ); break; a0002ca8: eafffff5 b a0002c84 (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); a0002cac: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002cb0: e3a01001 mov r1, #1 <== NOT EXECUTED a0002cb4: e3a02013 mov r2, #19 <== NOT EXECUTED a0002cb8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0002cbc: e59f00a8 ldr r0, [pc, #168] ; a0002d6c <== NOT EXECUTED a0002cc0: eb004132 bl a0013190 <== NOT EXECUTED assert(0); a0002cc4: e59f0088 ldr r0, [pc, #136] ; a0002d54 <== NOT EXECUTED a0002cc8: e3a0105d mov r1, #93 ; 0x5d <== NOT EXECUTED a0002ccc: e59f2084 ldr r2, [pc, #132] ; a0002d58 <== NOT EXECUTED a0002cd0: e59f3084 ldr r3, [pc, #132] ; a0002d5c <== NOT EXECUTED a0002cd4: eb000239 bl a00035c0 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); a0002cd8: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002cdc: e3a01001 mov r1, #1 <== NOT EXECUTED a0002ce0: e3a02013 mov r2, #19 <== NOT EXECUTED a0002ce4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0002ce8: e59f007c ldr r0, [pc, #124] ; a0002d6c <== NOT EXECUTED a0002cec: eb004127 bl a0013190 <== NOT EXECUTED assert(0); a0002cf0: e59f005c ldr r0, [pc, #92] ; a0002d54 <== NOT EXECUTED a0002cf4: e3a01062 mov r1, #98 ; 0x62 <== NOT EXECUTED a0002cf8: e59f2058 ldr r2, [pc, #88] ; a0002d58 <== NOT EXECUTED a0002cfc: e59f3058 ldr r3, [pc, #88] ; a0002d5c <== NOT EXECUTED a0002d00: eb00022e bl a00035c0 <__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 ")", a0002d04: e5953000 ldr r3, [r5] a0002d08: e5942050 ldr r2, [r4, #80] ; 0x50 a0002d0c: e59f105c ldr r1, [pc, #92] ; a0002d70 a0002d10: e5930008 ldr r0, [r3, #8] a0002d14: eb003da7 bl a00123b8 (uint32_t)the_jnode->info.file.size ); #endif break; a0002d18: eaffffd9 b a0002c84 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)", a0002d1c: e5952000 ldr r2, [r5] <== NOT EXECUTED a0002d20: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0002d24: e59f1048 ldr r1, [pc, #72] ; a0002d74 <== NOT EXECUTED a0002d28: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED a0002d2c: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0002d30: eb003da0 bl a00123b8 <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; a0002d34: eaffffd2 b a0002c84 <== NOT EXECUTED void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); a0002d38: e59f0014 ldr r0, [pc, #20] ; a0002d54 <== NOT EXECUTED a0002d3c: e3a01038 mov r1, #56 ; 0x38 <== NOT EXECUTED a0002d40: e59f2010 ldr r2, [pc, #16] ; a0002d58 <== NOT EXECUTED a0002d44: e59f302c ldr r3, [pc, #44] ; a0002d78 <== NOT EXECUTED a0002d48: eb00021c bl a00035c0 <__assert_func> <== NOT EXECUTED a0002d4c: a0021f34 .word 0xa0021f34 a0002d50: a0023c80 .word 0xa0023c80 a0002d54: a0023bc8 .word 0xa0023bc8 a0002d58: a00224b0 .word 0xa00224b0 a0002d5c: a0023c78 .word 0xa0023c78 a0002d60: a0023c98 .word 0xa0023c98 a0002d64: a0023bc0 .word 0xa0023bc0 a0002d68: a0023c28 .word 0xa0023c28 a0002d6c: a0023c60 .word 0xa0023c60 a0002d70: a0023c50 .word 0xa0023c50 a0002d74: a0023c40 .word 0xa0023c40 a0002d78: a0023c18 .word 0xa0023c18 a00021b8 : ) { IMFS_jnode_t *node; int i; node = loc->node_access; a00021b8: e5903000 ldr r3, [r0] int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { a00021bc: e92d4010 push {r4, lr} IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) a00021c0: e593004c ldr r0, [r3, #76] ; 0x4c a00021c4: e3500004 cmp r0, #4 a00021c8: 1a000015 bne a0002224 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) a00021cc: e3520000 cmp r2, #0 a00021d0: 0a000011 beq a000221c a00021d4: e5930050 ldr r0, [r3, #80] ; 0x50 a00021d8: e5d0c000 ldrb ip, [r0] a00021dc: e35c0000 cmp ip, #0 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); a00021e0: 13a04000 movne r4, #0 a00021e4: 11a00004 movne r0, r4 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) a00021e8: 1a000004 bne a0002200 a00021ec: ea00000a b a000221c <== NOT EXECUTED a00021f0: e593c050 ldr ip, [r3, #80] ; 0x50 a00021f4: e7dcc000 ldrb ip, [ip, r0] a00021f8: e35c0000 cmp ip, #0 a00021fc: 0a000005 beq a0002218 a0002200: e2800001 add r0, r0, #1 a0002204: e1520000 cmp r2, r0 buf[i] = node->info.sym_link.name[i]; a0002208: 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++ ) a000220c: e1a04000 mov r4, r0 a0002210: 8afffff6 bhi a00021f0 buf[i] = node->info.sym_link.name[i]; return i; } a0002214: e8bd8010 pop {r4, pc} a0002218: e8bd8010 pop {r4, pc} 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++ ) a000221c: e3a00000 mov r0, #0 <== NOT EXECUTED a0002220: eafffffb b a0002214 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); a0002224: eb0042dc bl a0012d9c <__errno> <== NOT EXECUTED a0002228: e3a03016 mov r3, #22 <== NOT EXECUTED a000222c: e5803000 str r3, [r0] <== NOT EXECUTED a0002230: e3e00000 mvn r0, #0 <== NOT EXECUTED a0002234: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0002238 : 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 */ ) { a0002238: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; a000223c: 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 */ ) { a0002240: 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 ); a0002244: 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 */ ) { a0002248: 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 ); a000224c: e284000c add r0, r4, #12 <== NOT EXECUTED a0002250: e3a02020 mov r2, #32 <== NOT EXECUTED a0002254: eb0046c1 bl a0013d60 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) a0002258: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000225c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002260: 0a000001 beq a000226c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a0002264: e1a00004 mov r0, r4 <== NOT EXECUTED a0002268: eb0012c9 bl a0006d94 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; a000226c: 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 ); a0002270: e1a01004 mov r1, r4 <== NOT EXECUTED a0002274: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; a0002278: e5843008 str r3, [r4, #8] <== NOT EXECUTED a000227c: eb0012b9 bl a0006d68 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); a0002280: e1a0000d mov r0, sp <== NOT EXECUTED a0002284: e3a01000 mov r1, #0 <== NOT EXECUTED a0002288: eb0001f7 bl a0002a6c <== NOT EXECUTED a000228c: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } a0002290: 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 ); a0002294: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a0002298: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000229c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0008da0 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; a0008da0: e5903000 ldr r3, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { a0008da4: e92d4800 push {fp, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { a0008da8: e593204c ldr r2, [r3, #76] ; 0x4c a0008dac: e2422002 sub r2, r2, #2 a0008db0: e3520005 cmp r2, #5 a0008db4: 979ff102 ldrls pc, [pc, r2, lsl #2] a0008db8: ea000020 b a0008e40 <== NOT EXECUTED a0008dbc: a0008e2c .word 0xa0008e2c <== NOT EXECUTED a0008dc0: a0008e40 .word 0xa0008e40 <== NOT EXECUTED a0008dc4: a0008dd4 .word 0xa0008dd4 <== NOT EXECUTED a0008dc8: a0008e54 .word 0xa0008e54 <== NOT EXECUTED a0008dcc: a0008e54 .word 0xa0008e54 <== NOT EXECUTED a0008dd0: a0008dd4 .word 0xa0008dd4 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; a0008dd4: e3a0b000 mov fp, #0 <== NOT EXECUTED a0008dd8: e3a0c000 mov ip, #0 <== NOT EXECUTED a0008ddc: e581b020 str fp, [r1, #32] <== NOT EXECUTED a0008de0: 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; a0008de4: e5932038 ldr r2, [r3, #56] ; 0x38 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; a0008de8: e1d3c3b4 ldrh ip, [r3, #52] ; 0x34 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; a0008dec: e5930030 ldr r0, [r3, #48] ; 0x30 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; a0008df0: 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; a0008df4: e5932040 ldr r2, [r3, #64] ; 0x40 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; a0008df8: e1c1c1b0 strh ip, [r1, #16] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; a0008dfc: e1d3c3bc ldrh ip, [r3, #60] ; 0x3c buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; a0008e00: e5812028 str r2, [r1, #40] ; 0x28 buf->st_mtime = the_jnode->stat_mtime; a0008e04: e5932044 ldr r2, [r3, #68] ; 0x44 } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; a0008e08: e1c1c1b2 strh ip, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; a0008e0c: e581000c str r0, [r1, #12] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; a0008e10: e5812030 str r2, [r1, #48] ; 0x30 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; a0008e14: e1d303be ldrh r0, [r3, #62] ; 0x3e buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; a0008e18: e5933048 ldr r3, [r3, #72] ; 0x48 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; a0008e1c: e1c101b4 strh r0, [r1, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; a0008e20: e5813038 str r3, [r1, #56] ; 0x38 a0008e24: e3a00000 mov r0, #0 return 0; } a0008e28: 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 ); a0008e2c: e5930054 ldr r0, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; a0008e30: e5932050 ldr r2, [r3, #80] ; 0x50 a0008e34: e581001c str r0, [r1, #28] a0008e38: e5812018 str r2, [r1, #24] break; a0008e3c: eaffffe8 b a0008de4 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); a0008e40: eb001228 bl a000d6e8 <__errno> <== NOT EXECUTED a0008e44: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0008e48: e5803000 str r3, [r0] <== NOT EXECUTED a0008e4c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008e50: 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; a0008e54: e283c050 add ip, r3, #80 ; 0x50 a0008e58: e89c1800 ldm ip, {fp, ip} a0008e5c: e581b020 str fp, [r1, #32] a0008e60: e581c024 str ip, [r1, #36] ; 0x24 break; a0008e64: eaffffde b a0008de4 a00022a0 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a00022a0: e92d40f0 push {r4, r5, r6, r7, lr} a00022a4: e1a06000 mov r6, r0 a00022a8: 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 ); a00022ac: e1a00002 mov r0, r2 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a00022b0: e1a07002 mov r7, r2 a00022b4: 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 ); a00022b8: eb004690 bl a0013d00 a00022bc: e28d4004 add r4, sp, #4 a00022c0: e1a01000 mov r1, r0 a00022c4: e1a02004 mov r2, r4 a00022c8: e28d303c add r3, sp, #60 ; 0x3c a00022cc: e1a00007 mov r0, r7 a00022d0: eb002f45 bl a000dfec /* * Duplicate link name */ info.sym_link.name = strdup(link_name); a00022d4: e1a00005 mov r0, r5 a00022d8: eb004674 bl a0013cb0 if (info.sym_link.name == NULL) { a00022dc: 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); a00022e0: e58d0028 str r0, [sp, #40] ; 0x28 if (info.sym_link.name == NULL) { a00022e4: 0a00000e beq a0002324 * 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( a00022e8: e3a03ca2 mov r3, #41472 ; 0xa200 a00022ec: e28dc028 add ip, sp, #40 ; 0x28 a00022f0: e1a00006 mov r0, r6 a00022f4: e1a02004 mov r2, r4 a00022f8: e2433001 sub r3, r3, #1 a00022fc: e3a01004 mov r1, #4 a0002300: e58dc000 str ip, [sp] a0002304: eb002bf4 bl a000d2dc new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { a0002308: e3500000 cmp r0, #0 a000230c: 13a00000 movne r0, #0 a0002310: 0a000001 beq a000231c free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } a0002314: e28dd040 add sp, sp, #64 ; 0x40 a0002318: 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); a000231c: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a0002320: eb00019d bl a000299c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a0002324: eb00429c bl a0012d9c <__errno> <== NOT EXECUTED a0002328: e3a0300c mov r3, #12 <== NOT EXECUTED a000232c: e5803000 str r3, [r0] <== NOT EXECUTED a0002330: e3e00000 mvn r0, #0 <== NOT EXECUTED a0002334: eafffff6 b a0002314 <== NOT EXECUTED a0002338 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0002338: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; a000233c: e5915000 ldr r5, [r1] int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0002340: e24dd01c sub sp, sp, #28 a0002344: e1a04001 mov r4, r1 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { a0002348: e595304c ldr r3, [r5, #76] ; 0x4c int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a000234c: e1a06000 mov r6, r0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { a0002350: e3530003 cmp r3, #3 a0002354: 0a000006 beq a0002374 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); a0002358: e1a00006 mov r0, r6 a000235c: e1a01004 mov r1, r4 a0002360: e5943008 ldr r3, [r4, #8] a0002364: e1a0e00f mov lr, pc a0002368: e593f034 ldr pc, [r3, #52] ; 0x34 return result; } a000236c: e28dd01c add sp, sp, #28 a0002370: e8bd80f0 pop {r4, r5, r6, r7, pc} * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) a0002374: e595e050 ldr lr, [r5, #80] ; 0x50 a0002378: e35e0000 cmp lr, #0 a000237c: 0a00001f beq a0002400 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; a0002380: e1a0c00d mov ip, sp a0002384: e1a07001 mov r7, r1 a0002388: e8b7000f ldm r7!, {r0, r1, r2, r3} a000238c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0002390: e5973000 ldr r3, [r7] the_link.node_access = node->info.hard_link.link_node; a0002394: e28d701c add r7, sp, #28 a0002398: e527e01c str lr, [r7, #-28]! IMFS_Set_handlers( &the_link ); a000239c: 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; a00023a0: e58c3000 str r3, [ip] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); a00023a4: eb002c1e bl a000d424 /* * 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) a00023a8: e5953050 ldr r3, [r5, #80] ; 0x50 a00023ac: e1d323b4 ldrh r2, [r3, #52] ; 0x34 a00023b0: e3520001 cmp r2, #1 a00023b4: 0a000008 beq a00023dc if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; a00023b8: e2422001 sub r2, r2, #1 a00023bc: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( node->info.hard_link.link_node ); a00023c0: e28d0014 add r0, sp, #20 a00023c4: e3a01000 mov r1, #0 a00023c8: eb0001a7 bl a0002a6c a00023cc: e5953050 ldr r3, [r5, #80] ; 0x50 a00023d0: e59d2014 ldr r2, [sp, #20] a00023d4: e5832048 str r2, [r3, #72] ; 0x48 a00023d8: eaffffde b a0002358 * 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 ); a00023dc: e1a0100d mov r1, sp a00023e0: e1a00006 mov r0, r6 a00023e4: e59d3008 ldr r3, [sp, #8] a00023e8: e1a0e00f mov lr, pc a00023ec: e593f034 ldr pc, [r3, #52] ; 0x34 if ( result != 0 ) a00023f0: e3500000 cmp r0, #0 a00023f4: 13e00000 mvnne r0, #0 a00023f8: 0affffd6 beq a0002358 a00023fc: eaffffda b a000236c */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); a0002400: eb004265 bl a0012d9c <__errno> <== NOT EXECUTED a0002404: e3a03016 mov r3, #22 <== NOT EXECUTED a0002408: e5803000 str r3, [r0] <== NOT EXECUTED a000240c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0002410: eaffffd5 b a000236c <== NOT EXECUTED a0002414 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0002414: e5903008 ldr r3, [r0, #8] #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a0002418: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) a000241c: e593204c ldr r2, [r3, #76] ; 0x4c a0002420: e3520001 cmp r2, #1 a0002424: 1a000005 bne a0002440 /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) a0002428: e593205c ldr r2, [r3, #92] ; 0x5c a000242c: e3520000 cmp r2, #0 a0002430: 0a000007 beq a0002454 /* * 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; a0002434: e3a00000 mov r0, #0 a0002438: e583005c str r0, [r3, #92] ; 0x5c return 0; } a000243c: 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 ); a0002440: eb004255 bl a0012d9c <__errno> <== NOT EXECUTED a0002444: e3a03014 mov r3, #20 <== NOT EXECUTED a0002448: e5803000 str r3, [r0] <== NOT EXECUTED a000244c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0002450: 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 */ a0002454: eb004250 bl a0012d9c <__errno> <== NOT EXECUTED a0002458: e3a03016 mov r3, #22 <== NOT EXECUTED a000245c: e5803000 str r3, [r0] <== NOT EXECUTED a0002460: e3e00000 mvn r0, #0 <== NOT EXECUTED a0002464: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a000146c : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a000146c: e59f30d4 ldr r3, [pc, #212] ; a0001548 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { a0001470: e92d4070 push {r4, r5, r6, lr} #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a0001474: e5933000 ldr r3, [r3] void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { a0001478: e1a05000 mov r5, r0 a000147c: e1a06001 mov r6, r1 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a0001480: e3530000 cmp r3, #0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { a0001484: e1a04002 mov r4, r2 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a0001488: 0a000001 beq a0001494 (*rtems_malloc_statistics_helpers->initialize)(); a000148c: e1a0e00f mov lr, pc <== NOT EXECUTED a0001490: e593f000 ldr pc, [r3] <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); a0001494: eb00200c bl a00094cc /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { a0001498: e59f30ac ldr r3, [pc, #172] ; a000154c a000149c: e5933000 ldr r3, [r3] a00014a0: e3530000 cmp r3, #0 a00014a4: 0a000006 beq a00014c4 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( a00014a8: e1a00005 mov r0, r5 <== NOT EXECUTED a00014ac: e1a01004 mov r1, r4 <== NOT EXECUTED a00014b0: e1a0e00f mov lr, pc <== NOT EXECUTED a00014b4: e593f000 ldr pc, [r3] <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; a00014b8: e0856006 add r6, r5, r6 <== NOT EXECUTED a00014bc: e0606006 rsb r6, r0, r6 <== NOT EXECUTED a00014c0: 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 ( a00014c4: e59f4084 ldr r4, [pc, #132] ; a0001550 a00014c8: e5d41000 ldrb r1, [r4] a00014cc: e3510000 cmp r1, #0 a00014d0: 1a000018 bne a0001538 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() a00014d4: e59f3078 ldr r3, [pc, #120] ; a0001554 a00014d8: e5d33028 ldrb r3, [r3, #40] ; 0x28 a00014dc: e3530000 cmp r3, #0 a00014e0: 1a00000e bne a0001520 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); a00014e4: e59f406c ldr r4, [pc, #108] ; a0001558 a00014e8: e1a01005 mov r1, r5 a00014ec: e1a02006 mov r2, r6 a00014f0: e5940000 ldr r0, [r4] a00014f4: e3a03004 mov r3, #4 a00014f8: eb000fd8 bl a0005460 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { a00014fc: e3500000 cmp r0, #0 a0001500: 0a00000e beq a0001540 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); a0001504: e59f5050 ldr r5, [pc, #80] ; a000155c a0001508: e5940000 ldr r0, [r4] a000150c: e5954000 ldr r4, [r5] a0001510: eb0012c7 bl a0006034 <_Protected_heap_Get_size> a0001514: e0800004 add r0, r0, r4 a0001518: e5850000 str r0, [r5] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } a000151c: e8bd8070 pop {r4, r5, r6, pc} if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); a0001520: e1a00005 mov r0, r5 a0001524: e1a02006 mov r2, r6 a0001528: eb0032b8 bl a000e010 * 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 ) { a000152c: e5d43000 ldrb r3, [r4] a0001530: e3530000 cmp r3, #0 a0001534: 0affffea beq a00014e4 a0001538: e59f4018 ldr r4, [pc, #24] ; a0001558 a000153c: eafffff0 b a0001504 heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); a0001540: e280001a add r0, r0, #26 <== NOT EXECUTED a0001544: eb000dd3 bl a0004c98 <== NOT EXECUTED a0001548: a001a5c8 .word 0xa001a5c8 a000154c: a001a5cc .word 0xa001a5cc a0001550: a001a5c5 .word 0xa001a5c5 a0001554: a0018ec4 .word 0xa0018ec4 a0001558: a0018e1c .word 0xa0018e1c a000155c: a001a838 .word 0xa001a838 a000395c : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { a000395c: 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 ) a0003960: e250a000 subs sl, r0, #0 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { a0003964: e24dd010 sub sp, sp, #16 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) a0003968: 0a000030 beq a0003a30 <== NOT EXECUTED return; if ( !print_handler ) a000396c: e59f4108 ldr r4, [pc, #264] ; a0003a7c <== NOT EXECUTED a0003970: e5947004 ldr r7, [r4, #4] <== NOT EXECUTED a0003974: e3570000 cmp r7, #0 <== NOT EXECUTED a0003978: 0a00002c beq a0003a30 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { a000397c: e37a0001 cmn sl, #1 <== NOT EXECUTED a0003980: 0a000031 beq a0003a4c <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); a0003984: e59a80f4 ldr r8, [sl, #244] ; 0xf4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; a0003988: e28a50c4 add r5, sl, #196 ; 0xc4 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); a000398c: e8950240 ldm r5, {r6, r9} <== NOT EXECUTED a0003990: e2899010 add r9, r9, #16 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); a0003994: e2466010 sub r6, r6, #16 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); a0003998: e1a00009 mov r0, r9 <== NOT EXECUTED a000399c: e1a01006 mov r1, r6 <== NOT EXECUTED a00039a0: ebffffd8 bl a0003908 <== NOT EXECUTED if ( high_water_mark ) a00039a4: e250b000 subs fp, r0, #0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); a00039a8: 10899006 addne r9, r9, r6 <== NOT EXECUTED a00039ac: 106bb009 rsbne fp, fp, r9 <== NOT EXECUTED else used = 0; if ( the_thread ) { a00039b0: e35a0000 cmp sl, #0 <== NOT EXECUTED a00039b4: 0a00002b beq a0003a68 <== NOT EXECUTED (*print_handler)( a00039b8: e59aa008 ldr sl, [sl, #8] <== NOT EXECUTED a00039bc: e28d2008 add r2, sp, #8 <== NOT EXECUTED a00039c0: e3a01005 mov r1, #5 <== NOT EXECUTED a00039c4: e1a0000a mov r0, sl <== NOT EXECUTED a00039c8: e5949008 ldr r9, [r4, #8] <== NOT EXECUTED a00039cc: eb001818 bl a0009a34 <== NOT EXECUTED a00039d0: e1a0200a mov r2, sl <== NOT EXECUTED a00039d4: e1a03000 mov r3, r0 <== NOT EXECUTED a00039d8: e59f10a0 ldr r1, [pc, #160] ; a0003a80 <== NOT EXECUTED a00039dc: e1a00009 mov r0, r9 <== NOT EXECUTED a00039e0: e12fff37 blx r7 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( a00039e4: e5953000 ldr r3, [r5] <== NOT EXECUTED a00039e8: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED a00039ec: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a00039f0: e2433001 sub r3, r3, #1 <== NOT EXECUTED a00039f4: e0823003 add r3, r2, r3 <== NOT EXECUTED a00039f8: e58d8000 str r8, [sp] <== NOT EXECUTED a00039fc: e58d6004 str r6, [sp, #4] <== NOT EXECUTED a0003a00: e59f107c ldr r1, [pc, #124] ; a0003a84 <== NOT EXECUTED a0003a04: e1a0e00f mov lr, pc <== NOT EXECUTED a0003a08: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { a0003a0c: e5942000 ldr r2, [r4] <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( a0003a10: e59f3064 ldr r3, [pc, #100] ; a0003a7c <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { a0003a14: e3520000 cmp r2, #0 <== NOT EXECUTED a0003a18: 0a000006 beq a0003a38 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); a0003a1c: e1a0200b mov r2, fp <== NOT EXECUTED a0003a20: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0003a24: e59f105c ldr r1, [pc, #92] ; a0003a88 <== NOT EXECUTED a0003a28: e1a0e00f mov lr, pc <== NOT EXECUTED a0003a2c: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED } } a0003a30: e28dd010 add sp, sp, #16 <== NOT EXECUTED a0003a34: 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" ); a0003a38: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0003a3c: e59f1048 ldr r1, [pc, #72] ; a0003a8c <== NOT EXECUTED a0003a40: e1a0e00f mov lr, pc <== NOT EXECUTED a0003a44: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED a0003a48: eafffff8 b a0003a30 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { a0003a4c: e59f503c ldr r5, [pc, #60] ; a0003a90 <== NOT EXECUTED a0003a50: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a0003a54: e3530000 cmp r3, #0 <== NOT EXECUTED a0003a58: 13a08000 movne r8, #0 <== NOT EXECUTED a0003a5c: 11a0a008 movne sl, r8 <== NOT EXECUTED a0003a60: 1affffc9 bne a000398c <== NOT EXECUTED a0003a64: eafffff1 b a0003a30 <== 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 ); a0003a68: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a0003a6c: e59f1020 ldr r1, [pc, #32] ; a0003a94 <== NOT EXECUTED a0003a70: e3e02000 mvn r2, #0 <== NOT EXECUTED a0003a74: e12fff37 blx r7 <== NOT EXECUTED a0003a78: eaffffd9 b a00039e4 <== NOT EXECUTED a0003a7c: a0064b7c .word 0xa0064b7c a0003a80: a005d490 .word 0xa005d490 a0003a84: a005d4b0 .word 0xa005d4b0 a0003a88: a005d4e0 .word 0xa005d4e0 a0003a8c: a005d4d0 .word 0xa005d4d0 a0003a90: a0067664 .word 0xa0067664 a0003a94: a005d4a0 .word 0xa005d4a0 a0003908 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; a0003908: e2803010 add r3, r0, #16 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) a000390c: e3c11003 bic r1, r1, #3 <== NOT EXECUTED a0003910: e0831001 add r1, r3, r1 <== NOT EXECUTED a0003914: e1530001 cmp r3, r1 <== NOT EXECUTED a0003918: 2a00000a bcs a0003948 <== NOT EXECUTED if (*base != U32_PATTERN) a000391c: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a0003920: e59f2030 ldr r2, [pc, #48] ; a0003958 <== NOT EXECUTED a0003924: e1500002 cmp r0, r2 <== NOT EXECUTED a0003928: 0a000003 beq a000393c <== NOT EXECUTED a000392c: ea000007 b a0003950 <== NOT EXECUTED a0003930: e5932000 ldr r2, [r3] <== NOT EXECUTED a0003934: e1520000 cmp r2, r0 <== NOT EXECUTED a0003938: 1a000004 bne a0003950 <== 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++) a000393c: e2833004 add r3, r3, #4 <== NOT EXECUTED a0003940: e1510003 cmp r1, r3 <== NOT EXECUTED a0003944: 8afffff9 bhi a0003930 <== NOT EXECUTED a0003948: e3a00000 mov r0, #0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } a000394c: e12fff1e bx lr <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; a0003950: e1a00003 mov r0, r3 <== NOT EXECUTED a0003954: e12fff1e bx lr <== NOT EXECUTED a0003958: a5a5a5a5 .word 0xa5a5a5a5 a0015db4 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0015db4: e590304c ldr r3, [r0, #76] ; 0x4c Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a0015db8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0015dbc: e1530002 cmp r3, r2 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a0015dc0: e1a07000 mov r7, r0 a0015dc4: e1a05002 mov r5, r2 a0015dc8: e1a08001 mov r8, r1 a0015dcc: e59da020 ldr sl, [sp, #32] Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0015dd0: 3a000013 bcc a0015e24 <_CORE_message_queue_Broadcast+0x70> * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { a0015dd4: e5906048 ldr r6, [r0, #72] ; 0x48 a0015dd8: e3560000 cmp r6, #0 a0015ddc: 0a000009 beq a0015e08 <_CORE_message_queue_Broadcast+0x54> *count = 0; a0015de0: e3a00000 mov r0, #0 a0015de4: e58a0000 str r0, [sl] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0015de8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0015dec: e594002c ldr r0, [r4, #44] ; 0x2c a0015df0: e1a01008 mov r1, r8 a0015df4: e1a02005 mov r2, r5 a0015df8: eb002723 bl a001fa8c buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0015dfc: e5943028 ldr r3, [r4, #40] ; 0x28 */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; a0015e00: e2866001 add r6, r6, #1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0015e04: e5835000 str r5, [r3] * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { a0015e08: e1a00007 mov r0, r7 a0015e0c: eb000a05 bl a0018628 <_Thread_queue_Dequeue> /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = a0015e10: e2504000 subs r4, r0, #0 a0015e14: 1afffff4 bne a0015dec <_CORE_message_queue_Broadcast+0x38> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; a0015e18: e58a6000 str r6, [sl] a0015e1c: e1a00004 mov r0, r4 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } a0015e20: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0015e24: e3a00001 mov r0, #1 <== NOT EXECUTED a0015e28: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a00041d4 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { a00041d4: 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 ]; a00041d8: e5901104 ldr r1, [r0, #260] ; 0x104 option_set = (rtems_option) the_thread->Wait.option; a00041dc: e5905030 ldr r5, [r0, #48] ; 0x30 */ void _Event_Surrender( Thread_Control *the_thread ) { a00041e0: e1a04000 mov r4, r0 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00041e4: e10f0000 mrs r0, CPSR a00041e8: e3803080 orr r3, r0, #128 ; 0x80 a00041ec: 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; a00041f0: e5912000 ldr r2, [r1] event_condition = (rtems_event_set) the_thread->Wait.count; a00041f4: 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 ) ) { a00041f8: e013c002 ands ip, r3, r2 a00041fc: 0a000021 beq a0004288 <_Event_Surrender+0xb4> /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && a0004200: e59f6100 ldr r6, [pc, #256] ; a0004308 <_Event_Surrender+0x134> a0004204: e5966000 ldr r6, [r6] a0004208: e3560000 cmp r6, #0 a000420c: 0a000003 beq a0004220 <_Event_Surrender+0x4c> a0004210: e59f60f4 ldr r6, [pc, #244] ; a000430c <_Event_Surrender+0x138> a0004214: e5966000 ldr r6, [r6] a0004218: e1540006 cmp r4, r6 a000421c: 0a000024 beq a00042b4 <_Event_Surrender+0xe0> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { a0004220: e5946010 ldr r6, [r4, #16] a0004224: e3160c01 tst r6, #256 ; 0x100 a0004228: 0a000014 beq a0004280 <_Event_Surrender+0xac> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { a000422c: e153000c cmp r3, ip a0004230: 0a000001 beq a000423c <_Event_Surrender+0x68> a0004234: e3150002 tst r5, #2 a0004238: 0a000010 beq a0004280 <_Event_Surrender+0xac> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a000423c: 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 ); a0004240: e1c2200c bic r2, r2, ip a0004244: e5812000 str r2, [r1] the_thread->Wait.count = 0; a0004248: e3a02000 mov r2, #0 a000424c: e5842024 str r2, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0004250: e583c000 str ip, [r3] static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( a0004254: e10f3000 mrs r3, CPSR a0004258: e129f000 msr CPSR_fc, r0 a000425c: e129f003 msr CPSR_fc, r3 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a0004260: e5943050 ldr r3, [r4, #80] ; 0x50 a0004264: e3530002 cmp r3, #2 a0004268: 0a000008 beq a0004290 <_Event_Surrender+0xbc> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a000426c: e129f000 msr CPSR_fc, r0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0004270: e59f1098 ldr r1, [pc, #152] ; a0004310 <_Event_Surrender+0x13c> a0004274: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } a0004278: e8bd40f0 pop {r4, r5, r6, r7, lr} a000427c: ea0007ef b a0006240 <_Thread_Clear_state> a0004280: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0004284: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0004288: e129f000 msr CPSR_fc, r0 a000428c: e8bd80f0 pop {r4, r5, r6, r7, pc} RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a0004290: e3a03003 mov r3, #3 a0004294: e5843050 str r3, [r4, #80] ; 0x50 a0004298: 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 ); a000429c: e2840048 add r0, r4, #72 ; 0x48 a00042a0: eb000da3 bl a0007934 <_Watchdog_Remove> a00042a4: e59f1064 ldr r1, [pc, #100] ; a0004310 <_Event_Surrender+0x13c> a00042a8: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } a00042ac: e8bd40f0 pop {r4, r5, r6, r7, lr} a00042b0: ea0007e2 b a0006240 <_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) || a00042b4: e59f6058 ldr r6, [pc, #88] ; a0004314 <_Event_Surrender+0x140> a00042b8: 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() && a00042bc: e3570002 cmp r7, #2 a00042c0: 0a000002 beq a00042d0 <_Event_Surrender+0xfc> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { a00042c4: 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() && a00042c8: e3570001 cmp r7, #1 a00042cc: 1affffd3 bne a0004220 <_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) ) { a00042d0: e153000c cmp r3, ip a00042d4: 0a000001 beq a00042e0 <_Event_Surrender+0x10c> a00042d8: e3150002 tst r5, #2 a00042dc: 0a000007 beq a0004300 <_Event_Surrender+0x12c> api->pending_events = _Event_sets_Clear( pending_events,seized_events ); a00042e0: e1c2200c bic r2, r2, ip the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a00042e4: e5943028 ldr r3, [r4, #40] ; 0x28 if ( _ISR_Is_in_progress() && _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 ); a00042e8: e5812000 str r2, [r1] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; a00042ec: e3a02003 mov r2, #3 a00042f0: 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; a00042f4: e3a02000 mov r2, #0 a00042f8: e5842024 str r2, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a00042fc: e583c000 str ip, [r3] a0004300: e129f000 msr CPSR_fc, r0 a0004304: e8bd80f0 pop {r4, r5, r6, r7, pc} a0004308: a001aa3c .word 0xa001aa3c a000430c: a001aa60 .word 0xa001aa60 a0004310: 1003fff8 .word 0x1003fff8 a0004314: a001b230 .word 0xa001b230 a000a760 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000a760: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000a764: 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; a000a768: e5902010 ldr r2, [r0, #16] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000a76c: e24dd01c sub sp, sp, #28 a000a770: 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 ) { a000a774: e2911004 adds r1, r1, #4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000a778: 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 ) { a000a77c: e58d1000 str r1, [sp] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000a780: 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; a000a784: 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; a000a788: e58d200c str r2, [sp, #12] uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { a000a78c: 2a000074 bcs a000a964 <_Heap_Allocate_aligned_with_boundary+0x204> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { a000a790: e3530000 cmp r3, #0 a000a794: 1a000070 bne a000a95c <_Heap_Allocate_aligned_with_boundary+0x1fc> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a000a798: e157000a cmp r7, sl a000a79c: 03a06000 moveq r6, #0 a000a7a0: 0a000072 beq a000a970 <_Heap_Allocate_aligned_with_boundary+0x210> uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a000a7a4: e59d300c ldr r3, [sp, #12] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; a000a7a8: e2651004 rsb r1, r5, #4 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a000a7ac: 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; a000a7b0: e2833007 add r3, r3, #7 a000a7b4: e58d3010 str r3, [sp, #16] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; a000a7b8: e58d1014 str r1, [sp, #20] a000a7bc: ea000004 b a000a7d4 <_Heap_Allocate_aligned_with_boundary+0x74> boundary ); } } if ( alloc_begin != 0 ) { a000a7c0: e3540000 cmp r4, #0 a000a7c4: 1a000057 bne a000a928 <_Heap_Allocate_aligned_with_boundary+0x1c8> break; } block = block->next; a000a7c8: e59aa008 ldr sl, [sl, #8] if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a000a7cc: e157000a cmp r7, sl a000a7d0: 0a000066 beq a000a970 <_Heap_Allocate_aligned_with_boundary+0x210> /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { a000a7d4: e59a9004 ldr r9, [sl, #4] a000a7d8: e59d2000 ldr r2, [sp] while ( block != free_list_tail ) { _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; a000a7dc: 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 ) { a000a7e0: e1520009 cmp r2, r9 a000a7e4: 2afffff7 bcs a000a7c8 <_Heap_Allocate_aligned_with_boundary+0x68> if ( alignment == 0 ) { a000a7e8: 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; a000a7ec: 028a4008 addeq r4, sl, #8 a000a7f0: 0afffff2 beq a000a7c0 <_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; a000a7f4: e59d1014 ldr r1, [sp, #20] uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000a7f8: 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; a000a7fc: e59d2010 ldr r2, [sp, #16] 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; a000a800: e3c99001 bic r9, r9, #1 a000a804: e08a9009 add r9, sl, r9 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; a000a808: 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; a000a80c: e58d3004 str r3, [sp, #4] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000a810: 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; a000a814: e0633002 rsb r3, r3, r2 a000a818: e1a01008 mov r1, r8 a000a81c: e0839009 add r9, r3, r9 a000a820: eb003167 bl a0016dc4 <__umodsi3> a000a824: 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; a000a828: 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 ) { a000a82c: e1590004 cmp r9, r4 a000a830: e58d3008 str r3, [sp, #8] a000a834: 2a000003 bcs a000a848 <_Heap_Allocate_aligned_with_boundary+0xe8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000a838: e1a00009 mov r0, r9 a000a83c: e1a01008 mov r1, r8 a000a840: eb00315f bl a0016dc4 <__umodsi3> a000a844: e0604009 rsb r4, r0, r9 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { a000a848: e35b0000 cmp fp, #0 a000a84c: 0a000025 beq a000a8e8 <_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; a000a850: e0849005 add r9, r4, r5 a000a854: e1a00009 mov r0, r9 a000a858: e1a0100b mov r1, fp a000a85c: eb003158 bl a0016dc4 <__umodsi3> a000a860: 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 ) { a000a864: e1590000 cmp r9, r0 a000a868: 93a03000 movls r3, #0 a000a86c: 83a03001 movhi r3, #1 a000a870: e1540000 cmp r4, r0 a000a874: 23a03000 movcs r3, #0 a000a878: e3530000 cmp r3, #0 a000a87c: 0a000019 beq a000a8e8 <_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; a000a880: e59d1008 ldr r1, [sp, #8] a000a884: 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 ) { a000a888: e1590000 cmp r9, r0 a000a88c: 958d6018 strls r6, [sp, #24] a000a890: 9a000002 bls a000a8a0 <_Heap_Allocate_aligned_with_boundary+0x140> a000a894: eaffffcb b a000a7c8 <_Heap_Allocate_aligned_with_boundary+0x68> a000a898: e1590000 cmp r9, r0 a000a89c: 8a000035 bhi a000a978 <_Heap_Allocate_aligned_with_boundary+0x218> return 0; } alloc_begin = boundary_line - alloc_size; a000a8a0: e0654000 rsb r4, r5, r0 a000a8a4: e1a01008 mov r1, r8 a000a8a8: e1a00004 mov r0, r4 a000a8ac: eb003144 bl a0016dc4 <__umodsi3> a000a8b0: e0604004 rsb r4, r0, r4 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; a000a8b4: e0846005 add r6, r4, r5 a000a8b8: e1a00006 mov r0, r6 a000a8bc: e1a0100b mov r1, fp a000a8c0: eb00313f bl a0016dc4 <__umodsi3> a000a8c4: 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 ) { a000a8c8: e1560000 cmp r6, r0 a000a8cc: 93a03000 movls r3, #0 a000a8d0: 83a03001 movhi r3, #1 a000a8d4: e1540000 cmp r4, r0 a000a8d8: 23a03000 movcs r3, #0 a000a8dc: e3530000 cmp r3, #0 a000a8e0: 1affffec bne a000a898 <_Heap_Allocate_aligned_with_boundary+0x138> a000a8e4: 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 ) { a000a8e8: e59d2008 ldr r2, [sp, #8] a000a8ec: e1520004 cmp r2, r4 a000a8f0: 8affffb4 bhi a000a7c8 <_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; a000a8f4: e59d100c ldr r1, [sp, #12] a000a8f8: e1a00004 mov r0, r4 a000a8fc: eb003130 bl a0016dc4 <__umodsi3> a000a900: e3e09007 mvn r9, #7 a000a904: e06a9009 rsb r9, sl, r9 if ( free_size >= min_block_size || free_size == 0 ) { a000a908: e59d1004 ldr r1, [sp, #4] /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { 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; a000a90c: e0899004 add r9, r9, r4 if ( free_size >= min_block_size || free_size == 0 ) { a000a910: e0603009 rsb r3, r0, r9 a000a914: e1590000 cmp r9, r0 a000a918: 11510003 cmpne r1, r3 a000a91c: 8affffa9 bhi a000a7c8 <_Heap_Allocate_aligned_with_boundary+0x68> boundary ); } } if ( alloc_begin != 0 ) { a000a920: e3540000 cmp r4, #0 a000a924: 0affffa7 beq a000a7c8 <_Heap_Allocate_aligned_with_boundary+0x68> block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; a000a928: e597204c ldr r2, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000a92c: e1a0100a mov r1, sl a000a930: e1a03005 mov r3, r5 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; a000a934: e0822006 add r2, r2, r6 a000a938: e587204c str r2, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000a93c: e1a00007 mov r0, r7 a000a940: e1a02004 mov r2, r4 a000a944: ebffeb60 bl a00056cc <_Heap_Block_allocate> a000a948: e1a00004 mov r0, r4 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; a000a94c: e5973044 ldr r3, [r7, #68] ; 0x44 a000a950: e1530006 cmp r3, r6 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; a000a954: 35876044 strcc r6, [r7, #68] ; 0x44 a000a958: ea000002 b a000a968 <_Heap_Allocate_aligned_with_boundary+0x208> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { a000a95c: e1550003 cmp r5, r3 a000a960: 9a000006 bls a000a980 <_Heap_Allocate_aligned_with_boundary+0x220> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; a000a964: e3a00000 mov r0, #0 } return (void *) alloc_begin; } a000a968: e28dd01c add sp, sp, #28 a000a96c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { a000a970: e3a00000 mov r0, #0 a000a974: eafffff4 b a000a94c <_Heap_Allocate_aligned_with_boundary+0x1ec> a000a978: e59d6018 ldr r6, [sp, #24] <== NOT EXECUTED a000a97c: eaffff91 b a000a7c8 <_Heap_Allocate_aligned_with_boundary+0x68> <== NOT EXECUTED if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { a000a980: e3580000 cmp r8, #0 a000a984: 01a08002 moveq r8, r2 a000a988: eaffff82 b a000a798 <_Heap_Allocate_aligned_with_boundary+0x38> a000facc <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { a000facc: e92d41f0 push {r4, r5, r6, r7, r8, lr} Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; a000fad0: e590c01c ldr ip, [r0, #28] Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { a000fad4: e1a04000 mov r4, r0 Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; a000fad8: e5900018 ldr r0, [r0, #24] a000fadc: e151000c cmp r1, ip a000fae0: 23a05000 movcs r5, #0 a000fae4: 33a05001 movcc r5, #1 Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { a000fae8: e1a07003 mov r7, r3 Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; a000faec: e1510000 cmp r1, r0 a000faf0: 33a05000 movcc r5, #0 a000faf4: e3550000 cmp r5, #0 uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; uintptr_t extend_size = 0; Heap_Block *const last_block = heap->last_block; a000faf8: e5946024 ldr r6, [r4, #36] ; 0x24 uintptr_t *amount_extended ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; a000fafc: 1a000012 bne a000fb4c <_Heap_Extend+0x80> * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { a000fb00: e151000c cmp r1, ip a000fb04: 0a000001 beq a000fb10 <_Heap_Extend+0x44> a000fb08: e3a00002 mov r0, #2 a000fb0c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end a000fb10: e3e08007 mvn r8, #7 { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; a000fb14: e0811002 add r1, r1, r2 * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end a000fb18: e0668008 rsb r8, r6, r8 a000fb1c: e0888001 add r8, r8, r1 * Currently only case 4 should make it to this point. * The basic trick is to make the extend area look like a used * block and free it. */ heap->area_end = new_heap_area_end; a000fb20: e584101c str r1, [r4, #28] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000fb24: e1a00008 mov r0, r8 a000fb28: e5941010 ldr r1, [r4, #16] a000fb2c: ebffcd81 bl a0003138 <__umodsi3> a000fb30: e0600008 rsb r0, r0, r8 extend_size = new_heap_area_end - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE; extend_size = _Heap_Align_down( extend_size, heap->page_size ); *amount_extended = extend_size; a000fb34: e5870000 str r0, [r7] if( extend_size >= heap->min_block_size ) { a000fb38: e5943014 ldr r3, [r4, #20] a000fb3c: e1530000 cmp r3, r0 a000fb40: 9a000003 bls a000fb54 <_Heap_Extend+0x88> a000fb44: e1a00005 mov r0, r5 <== NOT EXECUTED a000fb48: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED uintptr_t *amount_extended ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; a000fb4c: e3a00001 mov r0, #1 a000fb50: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000fb54: e5961004 ldr r1, [r6, #4] if( extend_size >= heap->min_block_size ) { Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = a000fb58: e5942020 ldr r2, [r4, #32] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000fb5c: e0803006 add r3, r0, r6 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000fb60: e2011001 and r1, r1, #1 a000fb64: e0632002 rsb r2, r3, r2 a000fb68: e1801001 orr r1, r0, r1 a000fb6c: e3822001 orr r2, r2, #1 a000fb70: e5861004 str r1, [r6, #4] a000fb74: e5832004 str r2, [r3, #4] | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; a000fb78: e594802c ldr r8, [r4, #44] ; 0x2c ++stats->used_blocks; a000fb7c: e5941040 ldr r1, [r4, #64] ; 0x40 --stats->frees; /* Do not count subsequent call as actual free() */ a000fb80: e5942050 ldr r2, [r4, #80] ; 0x50 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; a000fb84: e0880000 add r0, r8, r0 ++stats->used_blocks; a000fb88: e2811001 add r1, r1, #1 --stats->frees; /* Do not count subsequent call as actual free() */ a000fb8c: e2422001 sub r2, r2, #1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; a000fb90: e584002c str r0, [r4, #44] ; 0x2c ++stats->used_blocks; a000fb94: e5841040 str r1, [r4, #64] ; 0x40 new_last_block->size_and_flag = ((uintptr_t) heap->first_block - (uintptr_t) new_last_block) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; a000fb98: e5843024 str r3, [r4, #36] ; 0x24 /* Statistics */ stats->size += extend_size; ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ a000fb9c: e5842050 str r2, [r4, #80] ; 0x50 _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); a000fba0: e1a00004 mov r0, r4 a000fba4: e2861008 add r1, r6, #8 a000fba8: ebffe879 bl a0009d94 <_Heap_Free> a000fbac: e1a00005 mov r0, r5 } return HEAP_EXTEND_SUCCESSFUL; } a000fbb0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a000644c <_Heap_Walk>: 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() ) ) { a000644c: e59f357c ldr r3, [pc, #1404] ; a00069d0 <_Heap_Walk+0x584> bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a0006450: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 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; a0006454: e31200ff tst r2, #255 ; 0xff if ( !_System_state_Is_up( _System_state_Get() ) ) { a0006458: 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; a000645c: e59f2570 ldr r2, [pc, #1392] ; a00069d4 <_Heap_Walk+0x588> a0006460: e59fa570 ldr sl, [pc, #1392] ; a00069d8 <_Heap_Walk+0x58c> bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a0006464: e24dd038 sub sp, sp, #56 ; 0x38 a0006468: e1a04000 mov r4, r0 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; a000646c: 01a0a002 moveq sl, r2 if ( !_System_state_Is_up( _System_state_Get() ) ) { a0006470: e3530003 cmp r3, #3 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; a0006474: e5902010 ldr r2, [r0, #16] uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; a0006478: e5903024 ldr r3, [r0, #36] ; 0x24 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000647c: e1a08001 mov r8, r1 uintptr_t const page_size = heap->page_size; a0006480: e58d2020 str r2, [sp, #32] uintptr_t const min_block_size = heap->min_block_size; a0006484: e590b014 ldr fp, [r0, #20] Heap_Block *const last_block = heap->last_block; a0006488: e58d3024 str r3, [sp, #36] ; 0x24 Heap_Block *block = heap->first_block; a000648c: 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() ) ) { a0006490: 0a000002 beq a00064a0 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { a0006494: e3a00001 mov r0, #1 block = next_block; } return true; } a0006498: e28dd038 add sp, sp, #56 ; 0x38 a000649c: 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)( a00064a0: e5900018 ldr r0, [r0, #24] a00064a4: e594101c ldr r1, [r4, #28] a00064a8: e5942008 ldr r2, [r4, #8] a00064ac: e594300c ldr r3, [r4, #12] a00064b0: e59dc024 ldr ip, [sp, #36] ; 0x24 a00064b4: e98d0003 stmib sp, {r0, r1} a00064b8: e58d2014 str r2, [sp, #20] a00064bc: e58d3018 str r3, [sp, #24] a00064c0: e59f2514 ldr r2, [pc, #1300] ; a00069dc <_Heap_Walk+0x590> a00064c4: e58db000 str fp, [sp] a00064c8: e58d500c str r5, [sp, #12] a00064cc: e58dc010 str ip, [sp, #16] a00064d0: e1a00008 mov r0, r8 a00064d4: e3a01000 mov r1, #0 a00064d8: e59d3020 ldr r3, [sp, #32] a00064dc: e12fff3a blx sl heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { a00064e0: e59d2020 ldr r2, [sp, #32] a00064e4: e3520000 cmp r2, #0 a00064e8: 0a000030 beq a00065b0 <_Heap_Walk+0x164> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { a00064ec: e59d3020 ldr r3, [sp, #32] a00064f0: e2139003 ands r9, r3, #3 a00064f4: 1a000033 bne a00065c8 <_Heap_Walk+0x17c> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { a00064f8: e1a0000b mov r0, fp a00064fc: e59d1020 ldr r1, [sp, #32] a0006500: ebffe978 bl a0000ae8 <__umodsi3> a0006504: e2506000 subs r6, r0, #0 a0006508: 1a000034 bne a00065e0 <_Heap_Walk+0x194> ); return false; } if ( a000650c: e2850008 add r0, r5, #8 a0006510: e59d1020 ldr r1, [sp, #32] a0006514: ebffe973 bl a0000ae8 <__umodsi3> a0006518: e2509000 subs r9, r0, #0 a000651c: 1a000036 bne a00065fc <_Heap_Walk+0x1b0> 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; a0006520: e5957004 ldr r7, [r5, #4] ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { a0006524: e2176001 ands r6, r7, #1 a0006528: 0a00003a beq a0006618 <_Heap_Walk+0x1cc> ); return false; } if ( first_block->prev_size != page_size ) { a000652c: e5953000 ldr r3, [r5] a0006530: e59dc020 ldr ip, [sp, #32] a0006534: e15c0003 cmp ip, r3 a0006538: 1a000015 bne a0006594 <_Heap_Walk+0x148> ); return false; } if ( _Heap_Is_free( last_block ) ) { a000653c: e59d2024 ldr r2, [sp, #36] ; 0x24 a0006540: e5923004 ldr r3, [r2, #4] a0006544: e3c33001 bic r3, r3, #1 a0006548: e0823003 add r3, r2, r3 a000654c: e5939004 ldr r9, [r3, #4] a0006550: e2199001 ands r9, r9, #1 a0006554: 0a000101 beq a0006960 <_Heap_Walk+0x514> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; a0006558: e5949008 ldr r9, [r4, #8] int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; a000655c: 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 ) { a0006560: e1540009 cmp r4, r9 int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; a0006564: 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 ) { a0006568: 0a000065 beq a0006704 <_Heap_Walk+0x2b8> 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; a000656c: 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 a0006570: e15c0009 cmp ip, r9 a0006574: 9a00002d bls a0006630 <_Heap_Walk+0x1e4> if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( a0006578: e1a00008 mov r0, r8 a000657c: e1a03009 mov r3, r9 a0006580: e3a01001 mov r1, #1 a0006584: e59f2454 ldr r2, [pc, #1108] ; a00069e0 <_Heap_Walk+0x594> a0006588: e12fff3a blx sl a000658c: e3a00000 mov r0, #0 a0006590: eaffffc0 b a0006498 <_Heap_Walk+0x4c> return false; } if ( first_block->prev_size != page_size ) { (*printer)( a0006594: e1a00008 mov r0, r8 a0006598: e58dc000 str ip, [sp] a000659c: e3a01001 mov r1, #1 a00065a0: e59f243c ldr r2, [pc, #1084] ; a00069e4 <_Heap_Walk+0x598> a00065a4: e12fff3a blx sl a00065a8: e1a00009 mov r0, r9 a00065ac: eaffffb9 b a0006498 <_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" ); a00065b0: e1a00008 mov r0, r8 a00065b4: e3a01001 mov r1, #1 a00065b8: e59f2428 ldr r2, [pc, #1064] ; a00069e8 <_Heap_Walk+0x59c> a00065bc: e12fff3a blx sl a00065c0: e59d0020 ldr r0, [sp, #32] a00065c4: eaffffb3 b a0006498 <_Heap_Walk+0x4c> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( a00065c8: e1a00008 mov r0, r8 a00065cc: e3a01001 mov r1, #1 a00065d0: e59f2414 ldr r2, [pc, #1044] ; a00069ec <_Heap_Walk+0x5a0> a00065d4: e12fff3a blx sl a00065d8: e3a00000 mov r0, #0 a00065dc: eaffffad b a0006498 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( a00065e0: e1a00008 mov r0, r8 a00065e4: e1a0300b mov r3, fp a00065e8: e3a01001 mov r1, #1 a00065ec: e59f23fc ldr r2, [pc, #1020] ; a00069f0 <_Heap_Walk+0x5a4> a00065f0: e12fff3a blx sl a00065f4: e1a00009 mov r0, r9 a00065f8: eaffffa6 b a0006498 <_Heap_Walk+0x4c> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( a00065fc: e1a00008 mov r0, r8 a0006600: e1a03005 mov r3, r5 a0006604: e3a01001 mov r1, #1 a0006608: e59f23e4 ldr r2, [pc, #996] ; a00069f4 <_Heap_Walk+0x5a8> a000660c: e12fff3a blx sl a0006610: e1a00006 mov r0, r6 a0006614: eaffff9f b a0006498 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( a0006618: e1a00008 mov r0, r8 a000661c: e3a01001 mov r1, #1 a0006620: e59f23d0 ldr r2, [pc, #976] ; a00069f8 <_Heap_Walk+0x5ac> a0006624: e12fff3a blx sl a0006628: e1a00006 mov r0, r6 a000662c: eaffff99 b a0006498 <_Heap_Walk+0x4c> && (uintptr_t) block <= (uintptr_t) heap->last_block; a0006630: 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 a0006634: e1520009 cmp r2, r9 && (uintptr_t) block <= (uintptr_t) heap->last_block; a0006638: 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 a000663c: 3affffcd bcc a0006578 <_Heap_Walk+0x12c> ); return false; } if ( a0006640: e2890008 add r0, r9, #8 a0006644: e1a01003 mov r1, r3 a0006648: e58dc01c str ip, [sp, #28] a000664c: ebffe925 bl a0000ae8 <__umodsi3> a0006650: e3500000 cmp r0, #0 a0006654: e59dc01c ldr ip, [sp, #28] a0006658: 1a0000c6 bne a0006978 <_Heap_Walk+0x52c> ); return false; } if ( _Heap_Is_used( free_block ) ) { a000665c: e5993004 ldr r3, [r9, #4] a0006660: e3c33001 bic r3, r3, #1 a0006664: e0893003 add r3, r9, r3 a0006668: e5933004 ldr r3, [r3, #4] a000666c: e3130001 tst r3, #1 a0006670: 1a0000cf bne a00069b4 <_Heap_Walk+0x568> ); return false; } if ( free_block->prev != prev_block ) { a0006674: e599200c ldr r2, [r9, #12] a0006678: e1540002 cmp r4, r2 a000667c: 1a0000c4 bne a0006994 <_Heap_Walk+0x548> a0006680: e58d7030 str r7, [sp, #48] ; 0x30 a0006684: e58db034 str fp, [sp, #52] ; 0x34 a0006688: e59d702c ldr r7, [sp, #44] ; 0x2c a000668c: e59db028 ldr fp, [sp, #40] ; 0x28 a0006690: e58d502c str r5, [sp, #44] ; 0x2c a0006694: e58d6028 str r6, [sp, #40] ; 0x28 a0006698: e1a0600c mov r6, ip a000669c: ea000011 b a00066e8 <_Heap_Walk+0x29c> a00066a0: e1590006 cmp r9, r6 a00066a4: 3affffb3 bcc a0006578 <_Heap_Walk+0x12c> a00066a8: e1570009 cmp r7, r9 ); return false; } if ( a00066ac: e2890008 add r0, r9, #8 a00066b0: e1a0100b mov r1, fp a00066b4: 3affffaf bcc a0006578 <_Heap_Walk+0x12c> a00066b8: ebffe90a bl a0000ae8 <__umodsi3> a00066bc: e3500000 cmp r0, #0 a00066c0: 1a0000ac bne a0006978 <_Heap_Walk+0x52c> ); return false; } if ( _Heap_Is_used( free_block ) ) { a00066c4: e5993004 ldr r3, [r9, #4] a00066c8: e3c33001 bic r3, r3, #1 a00066cc: e0833009 add r3, r3, r9 a00066d0: e5933004 ldr r3, [r3, #4] a00066d4: e3130001 tst r3, #1 a00066d8: 1a0000b5 bne a00069b4 <_Heap_Walk+0x568> ); return false; } if ( free_block->prev != prev_block ) { a00066dc: e599200c ldr r2, [r9, #12] a00066e0: e1520005 cmp r2, r5 a00066e4: 1a0000aa bne a0006994 <_Heap_Walk+0x548> (*printer)( a00066e8: e1a05009 mov r5, r9 return false; } prev_block = free_block; free_block = free_block->next; a00066ec: 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 ) { a00066f0: e1540009 cmp r4, r9 a00066f4: 1affffe9 bne a00066a0 <_Heap_Walk+0x254> a00066f8: e28d502c add r5, sp, #44 ; 0x2c a00066fc: e89508a0 ldm r5, {r5, r7, fp} a0006700: e59d6028 ldr r6, [sp, #40] ; 0x28 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { a0006704: e59d3024 ldr r3, [sp, #36] ; 0x24 a0006708: 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)" : ""), a000670c: 158db028 strne fp, [sp, #40] ; 0x28 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { a0006710: 0affff5f beq a0006494 <_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; a0006714: 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 ) { a0006718: 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); a000671c: e0876005 add r6, r7, r5 a0006720: 0a000010 beq a0006768 <_Heap_Walk+0x31c> (*printer)( a0006724: e1a03005 mov r3, r5 a0006728: e58d7000 str r7, [sp] a000672c: e1a00008 mov r0, r8 a0006730: e3a01000 mov r1, #0 a0006734: e59f22c0 ldr r2, [pc, #704] ; a00069fc <_Heap_Walk+0x5b0> a0006738: e12fff3a blx 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 a000673c: e5943020 ldr r3, [r4, #32] a0006740: e1530006 cmp r3, r6 a0006744: 9a000011 bls a0006790 <_Heap_Walk+0x344> block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( a0006748: e1a00008 mov r0, r8 a000674c: e58d6000 str r6, [sp] a0006750: e1a03005 mov r3, r5 a0006754: e3a01001 mov r1, #1 a0006758: e59f22a0 ldr r2, [pc, #672] ; a0006a00 <_Heap_Walk+0x5b4> a000675c: e12fff3a blx sl a0006760: e3a00000 mov r0, #0 "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; a0006764: eaffff4b b a0006498 <_Heap_Walk+0x4c> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( a0006768: e58d7000 str r7, [sp] a000676c: e5953000 ldr r3, [r5] a0006770: e1a00008 mov r0, r8 a0006774: e59f2288 ldr r2, [pc, #648] ; a0006a04 <_Heap_Walk+0x5b8> a0006778: e58d3004 str r3, [sp, #4] a000677c: e1a03005 mov r3, r5 a0006780: e12fff3a blx sl a0006784: e5943020 ldr r3, [r4, #32] a0006788: e1530006 cmp r3, r6 a000678c: 8affffed bhi a0006748 <_Heap_Walk+0x2fc> a0006790: e5943024 ldr r3, [r4, #36] ; 0x24 a0006794: e1530006 cmp r3, r6 a0006798: 3affffea bcc a0006748 <_Heap_Walk+0x2fc> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { a000679c: e1a00007 mov r0, r7 a00067a0: e59d1020 ldr r1, [sp, #32] a00067a4: ebffe8cf bl a0000ae8 <__umodsi3> a00067a8: e2509000 subs r9, r0, #0 a00067ac: 1a000051 bne a00068f8 <_Heap_Walk+0x4ac> ); return false; } if ( block_size < min_block_size ) { a00067b0: e59d3028 ldr r3, [sp, #40] ; 0x28 a00067b4: e1530007 cmp r3, r7 a00067b8: 8a000056 bhi a0006918 <_Heap_Walk+0x4cc> ); return false; } if ( next_block_begin <= block_begin ) { a00067bc: e1550006 cmp r5, r6 a00067c0: 2a00005e bcs a0006940 <_Heap_Walk+0x4f4> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { a00067c4: e5963004 ldr r3, [r6, #4] a00067c8: e3130001 tst r3, #1 a00067cc: 1a000034 bne a00068a4 <_Heap_Walk+0x458> 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; a00067d0: 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)( a00067d4: 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; a00067d8: 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; a00067dc: e3cb7001 bic r7, fp, #1 return _Heap_Free_list_head(heap)->next; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; a00067e0: e594100c ldr r1, [r4, #12] return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; a00067e4: e1530002 cmp r3, r2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a00067e8: 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; a00067ec: 059f0214 ldreq r0, [pc, #532] ; a0006a08 <_Heap_Walk+0x5bc> a00067f0: 0a000003 beq a0006804 <_Heap_Walk+0x3b8> "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)" : ""), a00067f4: e59fc210 ldr ip, [pc, #528] ; a0006a0c <_Heap_Walk+0x5c0> a00067f8: e1520004 cmp r2, r4 a00067fc: e59f020c ldr r0, [pc, #524] ; a0006a10 <_Heap_Walk+0x5c4> a0006800: 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)( a0006804: e5953008 ldr r3, [r5, #8] a0006808: e1510003 cmp r1, r3 a000680c: 059f1200 ldreq r1, [pc, #512] ; a0006a14 <_Heap_Walk+0x5c8> a0006810: 0a000003 beq a0006824 <_Heap_Walk+0x3d8> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") a0006814: e59fc1f0 ldr ip, [pc, #496] ; a0006a0c <_Heap_Walk+0x5c0> a0006818: e1530004 cmp r3, r4 a000681c: e59f11f4 ldr r1, [pc, #500] ; a0006a18 <_Heap_Walk+0x5cc> a0006820: 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)( a0006824: e58d2000 str r2, [sp] a0006828: e98d0009 stmib sp, {r0, r3} a000682c: e58d100c str r1, [sp, #12] a0006830: e1a03005 mov r3, r5 a0006834: e1a00008 mov r0, r8 a0006838: e3a01000 mov r1, #0 a000683c: e59f21d8 ldr r2, [pc, #472] ; a0006a1c <_Heap_Walk+0x5d0> a0006840: e12fff3a blx sl block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { a0006844: e5993000 ldr r3, [r9] a0006848: e1570003 cmp r7, r3 a000684c: 0a000009 beq a0006878 <_Heap_Walk+0x42c> (*printer)( a0006850: e58d3004 str r3, [sp, #4] a0006854: e1a00008 mov r0, r8 a0006858: e58d7000 str r7, [sp] a000685c: e58d9008 str r9, [sp, #8] a0006860: e1a03005 mov r3, r5 a0006864: e3a01001 mov r1, #1 a0006868: e59f21b0 ldr r2, [pc, #432] ; a0006a20 <_Heap_Walk+0x5d4> a000686c: e12fff3a blx sl a0006870: e3a00000 mov r0, #0 a0006874: eaffff07 b a0006498 <_Heap_Walk+0x4c> ); return false; } if ( !prev_used ) { a0006878: e21b9001 ands r9, fp, #1 a000687c: 0a000016 beq a00068dc <_Heap_Walk+0x490> a0006880: 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 ) { a0006884: e1530004 cmp r3, r4 a0006888: 1a000003 bne a000689c <_Heap_Walk+0x450> a000688c: ea00000b b a00068c0 <_Heap_Walk+0x474> <== NOT EXECUTED if ( free_block == block ) { return true; } free_block = free_block->next; a0006890: 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 ) { a0006894: e1530004 cmp r3, r4 a0006898: 0a000008 beq a00068c0 <_Heap_Walk+0x474> if ( free_block == block ) { a000689c: e1530005 cmp r3, r5 a00068a0: 1afffffa bne a0006890 <_Heap_Walk+0x444> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { a00068a4: e59d2024 ldr r2, [sp, #36] ; 0x24 a00068a8: e1520006 cmp r2, r6 a00068ac: 0afffef8 beq a0006494 <_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 ) { a00068b0: e5967004 ldr r7, [r6, #4] a00068b4: e1a05006 mov r5, r6 a00068b8: e2076001 and r6, r7, #1 a00068bc: eaffff94 b a0006714 <_Heap_Walk+0x2c8> return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( a00068c0: e1a00008 mov r0, r8 a00068c4: e1a03005 mov r3, r5 a00068c8: e3a01001 mov r1, #1 a00068cc: e59f2150 ldr r2, [pc, #336] ; a0006a24 <_Heap_Walk+0x5d8> a00068d0: e12fff3a blx sl a00068d4: e3a00000 mov r0, #0 a00068d8: eafffeee b a0006498 <_Heap_Walk+0x4c> return false; } if ( !prev_used ) { (*printer)( a00068dc: e1a00008 mov r0, r8 a00068e0: e1a03005 mov r3, r5 a00068e4: e3a01001 mov r1, #1 a00068e8: e59f2138 ldr r2, [pc, #312] ; a0006a28 <_Heap_Walk+0x5dc> a00068ec: e12fff3a blx sl a00068f0: e1a00009 mov r0, r9 a00068f4: eafffee7 b a0006498 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( a00068f8: e1a00008 mov r0, r8 a00068fc: e58d7000 str r7, [sp] a0006900: e1a03005 mov r3, r5 a0006904: e3a01001 mov r1, #1 a0006908: e59f211c ldr r2, [pc, #284] ; a0006a2c <_Heap_Walk+0x5e0> a000690c: e12fff3a blx sl a0006910: e3a00000 mov r0, #0 "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; a0006914: eafffedf b a0006498 <_Heap_Walk+0x4c> } if ( block_size < min_block_size ) { (*printer)( a0006918: e58d3004 str r3, [sp, #4] a000691c: e1a00008 mov r0, r8 a0006920: e1a0b003 mov fp, r3 a0006924: e58d7000 str r7, [sp] a0006928: e1a03005 mov r3, r5 a000692c: e3a01001 mov r1, #1 a0006930: e59f20f8 ldr r2, [pc, #248] ; a0006a30 <_Heap_Walk+0x5e4> a0006934: e12fff3a blx sl a0006938: e1a00009 mov r0, r9 block, block_size, min_block_size ); return false; a000693c: eafffed5 b a0006498 <_Heap_Walk+0x4c> } if ( next_block_begin <= block_begin ) { (*printer)( a0006940: e1a00008 mov r0, r8 a0006944: e58d6000 str r6, [sp] a0006948: e1a03005 mov r3, r5 a000694c: e3a01001 mov r1, #1 a0006950: e59f20dc ldr r2, [pc, #220] ; a0006a34 <_Heap_Walk+0x5e8> a0006954: e12fff3a blx sl a0006958: e1a00009 mov r0, r9 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; a000695c: eafffecd b a0006498 <_Heap_Walk+0x4c> return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( a0006960: e1a00008 mov r0, r8 a0006964: e3a01001 mov r1, #1 a0006968: e59f20c8 ldr r2, [pc, #200] ; a0006a38 <_Heap_Walk+0x5ec> a000696c: e12fff3a blx sl a0006970: e1a00009 mov r0, r9 a0006974: eafffec7 b a0006498 <_Heap_Walk+0x4c> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( a0006978: e1a00008 mov r0, r8 a000697c: e1a03009 mov r3, r9 a0006980: e3a01001 mov r1, #1 a0006984: e59f20b0 ldr r2, [pc, #176] ; a0006a3c <_Heap_Walk+0x5f0> a0006988: e12fff3a blx sl a000698c: e3a00000 mov r0, #0 a0006990: eafffec0 b a0006498 <_Heap_Walk+0x4c> return false; } if ( free_block->prev != prev_block ) { (*printer)( a0006994: e58d2000 str r2, [sp] a0006998: e1a00008 mov r0, r8 a000699c: e1a03009 mov r3, r9 a00069a0: e3a01001 mov r1, #1 a00069a4: e59f2094 ldr r2, [pc, #148] ; a0006a40 <_Heap_Walk+0x5f4> a00069a8: e12fff3a blx sl a00069ac: e3a00000 mov r0, #0 a00069b0: eafffeb8 b a0006498 <_Heap_Walk+0x4c> return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( a00069b4: e1a00008 mov r0, r8 a00069b8: e1a03009 mov r3, r9 a00069bc: e3a01001 mov r1, #1 a00069c0: e59f207c ldr r2, [pc, #124] ; a0006a44 <_Heap_Walk+0x5f8> a00069c4: e12fff3a blx sl a00069c8: e3a00000 mov r0, #0 a00069cc: eafffeb1 b a0006498 <_Heap_Walk+0x4c> a00069d0: a001d310 .word 0xa001d310 a00069d4: a0006440 .word 0xa0006440 a00069d8: a0006a48 .word 0xa0006a48 a00069dc: a001b328 .word 0xa001b328 a00069e0: a001b4d0 .word 0xa001b4d0 a00069e4: a001b488 .word 0xa001b488 a00069e8: a001b3c0 .word 0xa001b3c0 a00069ec: a001b3d8 .word 0xa001b3d8 a00069f0: a001b3f8 .word 0xa001b3f8 a00069f4: a001b420 .word 0xa001b420 a00069f8: a001b458 .word 0xa001b458 a00069fc: a001b578 .word 0xa001b578 a0006a00: a001b5b8 .word 0xa001b5b8 a0006a04: a001b590 .word 0xa001b590 a0006a08: a001b680 .word 0xa001b680 a0006a0c: a001b2d0 .word 0xa001b2d0 a0006a10: a001b690 .word 0xa001b690 a0006a14: a001b6a0 .word 0xa001b6a0 a0006a18: a001b6b0 .word 0xa001b6b0 a0006a1c: a001b6c0 .word 0xa001b6c0 a0006a20: a001b6f0 .word 0xa001b6f0 a0006a24: a001b760 .word 0xa001b760 a0006a28: a001b730 .word 0xa001b730 a0006a2c: a001b5e8 .word 0xa001b5e8 a0006a30: a001b618 .word 0xa001b618 a0006a34: a001b648 .word 0xa001b648 a0006a38: a001b4b8 .word 0xa001b4b8 a0006a3c: a001b4f0 .word 0xa001b4f0 a0006a40: a001b540 .word 0xa001b540 a0006a44: a001b520 .word 0xa001b520 a0005934 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { a0005934: 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 ) a0005938: e5908034 ldr r8, [r0, #52] ; 0x34 */ void _Objects_Extend_information( Objects_Information *information ) { a000593c: e24dd014 sub sp, sp, #20 a0005940: e1a05000 mov r5, r0 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a0005944: e3580000 cmp r8, #0 /* * 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 ); a0005948: e1d070b8 ldrh r7, [r0, #8] index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000594c: 0a00009d beq a0005bc8 <_Objects_Extend_information+0x294> block_count = 0; else { block_count = information->maximum / information->allocation_size; a0005950: e1d091b4 ldrh r9, [r0, #20] a0005954: e1d0a1b0 ldrh sl, [r0, #16] a0005958: e1a01009 mov r1, r9 a000595c: e1a0000a mov r0, sl a0005960: eb0044d3 bl a0016cb4 <__aeabi_uidiv> a0005964: e1a03800 lsl r3, r0, #16 for ( ; block < block_count; block++ ) { a0005968: e1b03823 lsrs r3, r3, #16 a000596c: 01a01009 moveq r1, r9 a0005970: 01a06007 moveq r6, r7 a0005974: 01a04003 moveq r4, r3 a0005978: 0a00000f beq a00059bc <_Objects_Extend_information+0x88> if ( information->object_blocks[ block ] == NULL ) a000597c: e5984000 ldr r4, [r8] a0005980: e3540000 cmp r4, #0 a0005984: 11a01009 movne r1, r9 a0005988: 11a06007 movne r6, r7 a000598c: 13a04000 movne r4, #0 a0005990: 01a01009 moveq r1, r9 a0005994: 01a06007 moveq r6, r7 a0005998: 1a000003 bne a00059ac <_Objects_Extend_information+0x78> a000599c: ea000006 b a00059bc <_Objects_Extend_information+0x88> <== NOT EXECUTED a00059a0: e7982104 ldr r2, [r8, r4, lsl #2] a00059a4: e3520000 cmp r2, #0 a00059a8: 0a000003 beq a00059bc <_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++ ) { a00059ac: e2844001 add r4, r4, #1 a00059b0: e1530004 cmp r3, r4 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; a00059b4: 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++ ) { a00059b8: 8afffff8 bhi a00059a0 <_Objects_Extend_information+0x6c> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; a00059bc: 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 ) { a00059c0: e35a0801 cmp sl, #65536 ; 0x10000 a00059c4: 2a000065 bcs a0005b60 <_Objects_Extend_information+0x22c> /* * 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 ) { a00059c8: 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; a00059cc: e5952018 ldr r2, [r5, #24] if ( information->auto_extend ) { a00059d0: 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; a00059d4: e0000192 mul r0, r2, r1 if ( information->auto_extend ) { a00059d8: 1a000062 bne a0005b68 <_Objects_Extend_information+0x234> new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); a00059dc: e58d3000 str r3, [sp] a00059e0: eb000824 bl a0007a78 <_Workspace_Allocate_or_fatal_error> a00059e4: e59d3000 ldr r3, [sp] a00059e8: e1a09000 mov r9, r0 } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { a00059ec: e1d521b0 ldrh r2, [r5, #16] a00059f0: e1560002 cmp r6, r2 a00059f4: 3a000039 bcc a0005ae0 <_Objects_Extend_information+0x1ac> */ /* * Up the block count and maximum */ block_count++; a00059f8: 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 ); a00059fc: e08c008c add r0, ip, ip, lsl #1 a0005a00: e08a0000 add r0, sl, r0 a0005a04: e0800007 add r0, r0, r7 a0005a08: e1a00100 lsl r0, r0, #2 a0005a0c: e88d1008 stm sp, {r3, ip} a0005a10: eb000824 bl a0007aa8 <_Workspace_Allocate> if ( !object_blocks ) { a0005a14: e250b000 subs fp, r0, #0 a0005a18: e89d1008 ldm sp, {r3, ip} a0005a1c: 0a00006f beq a0005be0 <_Objects_Extend_information+0x2ac> * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { a0005a20: e1d521b0 ldrh r2, [r5, #16] RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); a0005a24: e08b818c add r8, fp, ip, lsl #3 a0005a28: e08bc10c add ip, fp, ip, lsl #2 a0005a2c: e1570002 cmp r7, r2 a0005a30: 3a000052 bcc a0005b80 <_Objects_Extend_information+0x24c> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { a0005a34: 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, a0005a38: 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; a0005a3c: 11a01002 movne r1, r2 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { a0005a40: 0a000003 beq a0005a54 <_Objects_Extend_information+0x120> local_table[ index ] = NULL; a0005a44: 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++ ) { a0005a48: e2822001 add r2, r2, #1 a0005a4c: e1570002 cmp r7, r2 a0005a50: 8afffffb bhi a0005a44 <_Objects_Extend_information+0x110> a0005a54: 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 ); a0005a58: e1d511b4 ldrh r1, [r5, #20] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; a0005a5c: e3a00000 mov r0, #0 inactive_per_block[block_count] = 0; a0005a60: e78c0003 str r0, [ip, r3] for ( index=index_base ; index < ( information->allocation_size + index_base ); a0005a64: e0861001 add r1, r6, r1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; a0005a68: e1560001 cmp r6, r1 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; a0005a6c: e78b0003 str r0, [fp, r3] inactive_per_block[block_count] = 0; for ( index=index_base ; a0005a70: 2a000005 bcs a0005a8c <_Objects_Extend_information+0x158> a0005a74: e0882106 add r2, r8, r6, lsl #2 a0005a78: e1a03006 mov r3, r6 index < ( information->allocation_size + index_base ); index++ ) { a0005a7c: 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 ; a0005a80: e1530001 cmp r3, r1 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; a0005a84: 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 ; a0005a88: 3afffffb bcc a0005a7c <_Objects_Extend_information+0x148> a0005a8c: e10f3000 mrs r3, CPSR a0005a90: e3832080 orr r2, r3, #128 ; 0x80 a0005a94: 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( a0005a98: e5952000 ldr r2, [r5] a0005a9c: e1d510b4 ldrh r1, [r5, #4] 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; a0005aa0: e1a0a80a lsl sl, sl, #16 information->maximum_id = _Objects_Build_id( a0005aa4: e1a02c02 lsl r2, r2, #24 a0005aa8: 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; a0005aac: e1a0a82a lsr sl, sl, #16 information->maximum_id = _Objects_Build_id( a0005ab0: e1822d81 orr r2, r2, r1, lsl #27 a0005ab4: e182200a orr r2, r2, sl local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; a0005ab8: e5950034 ldr r0, [r5, #52] ; 0x34 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; a0005abc: e585c030 str ip, [r5, #48] ; 0x30 information->local_table = local_table; a0005ac0: e585801c str r8, [r5, #28] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( a0005ac4: 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; a0005ac8: e1c5a1b0 strh sl, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; a0005acc: e585b034 str fp, [r5, #52] ; 0x34 static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0005ad0: e129f003 msr CPSR_fc, r3 information->maximum ); _ISR_Enable( level ); if ( old_tables ) a0005ad4: e3500000 cmp r0, #0 a0005ad8: 0a000000 beq a0005ae0 <_Objects_Extend_information+0x1ac> _Workspace_Free( old_tables ); a0005adc: eb0007f7 bl a0007ac0 <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a0005ae0: e5953034 ldr r3, [r5, #52] ; 0x34 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( a0005ae4: e28d7008 add r7, sp, #8 a0005ae8: e1a01009 mov r1, r9 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a0005aec: e7839104 str r9, [r3, r4, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( a0005af0: e1a00007 mov r0, r7 a0005af4: e1d521b4 ldrh r2, [r5, #20] a0005af8: e5953018 ldr r3, [r5, #24] a0005afc: eb001277 bl a000a4e0 <_Chain_Initialize> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a0005b00: e1a04104 lsl r4, r4, #2 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a0005b04: 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 ) { a0005b08: ea000008 b a0005b30 <_Objects_Extend_information+0x1fc> the_object->id = _Objects_Build_id( a0005b0c: e5952000 ldr r2, [r5] a0005b10: e1d5c0b4 ldrh ip, [r5, #4] a0005b14: e1a02c02 lsl r2, r2, #24 a0005b18: e3822801 orr r2, r2, #65536 ; 0x10000 a0005b1c: e1822d8c orr r2, r2, ip, lsl #27 a0005b20: e1822006 orr r2, r2, r6 a0005b24: e5832008 str r2, [r3, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a0005b28: ebfffd22 bl a0004fb8 <_Chain_Append> index++; a0005b2c: 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 ) { a0005b30: e1a00007 mov r0, r7 a0005b34: eb00125c bl a000a4ac <_Chain_Get> a0005b38: e2503000 subs r3, r0, #0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a0005b3c: e1a01003 mov r1, r3 a0005b40: 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 ) { a0005b44: 1afffff0 bne a0005b0c <_Objects_Extend_information+0x1d8> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; a0005b48: e1d531b4 ldrh r3, [r5, #20] information->inactive = a0005b4c: e1d522bc ldrh r2, [r5, #44] ; 0x2c _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; a0005b50: e5951030 ldr r1, [r5, #48] ; 0x30 information->inactive = a0005b54: e0832002 add r2, r3, r2 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; a0005b58: e7813004 str r3, [r1, r4] information->inactive = a0005b5c: e1c522bc strh r2, [r5, #44] ; 0x2c (Objects_Maximum)(information->inactive + information->allocation_size); } a0005b60: e28dd014 add sp, sp, #20 a0005b64: 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 ); a0005b68: e58d3000 str r3, [sp] a0005b6c: eb0007cd bl a0007aa8 <_Workspace_Allocate> if ( !new_object_block ) a0005b70: e2509000 subs r9, r0, #0 a0005b74: e59d3000 ldr r3, [sp] a0005b78: 1affff9b bne a00059ec <_Objects_Extend_information+0xb8> a0005b7c: eafffff7 b a0005b60 <_Objects_Extend_information+0x22c> /* * 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, a0005b80: e1a03103 lsl r3, r3, #2 a0005b84: e1a02003 mov r2, r3 a0005b88: e5951034 ldr r1, [r5, #52] ; 0x34 a0005b8c: e88d1008 stm sp, {r3, ip} a0005b90: eb0020e2 bl a000df20 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, a0005b94: e89d1008 ldm sp, {r3, ip} a0005b98: e5951030 ldr r1, [r5, #48] ; 0x30 a0005b9c: e1a0000c mov r0, ip a0005ba0: e1a02003 mov r2, r3 a0005ba4: eb0020dd bl a000df20 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, a0005ba8: e1d521b0 ldrh r2, [r5, #16] a0005bac: e1a00008 mov r0, r8 a0005bb0: e595101c ldr r1, [r5, #28] a0005bb4: e0872002 add r2, r7, r2 a0005bb8: e1a02102 lsl r2, r2, #2 a0005bbc: eb0020d7 bl a000df20 a0005bc0: e89d1008 ldm sp, {r3, ip} a0005bc4: eaffffa3 b a0005a58 <_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 ) a0005bc8: e1a04008 mov r4, r8 a0005bcc: e1d0a1b0 ldrh sl, [r0, #16] a0005bd0: e1d011b4 ldrh r1, [r0, #20] a0005bd4: e1a06007 mov r6, r7 a0005bd8: e1a03008 mov r3, r8 a0005bdc: eaffff76 b a00059bc <_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 ); a0005be0: e1a00009 mov r0, r9 a0005be4: eb0007b5 bl a0007ac0 <_Workspace_Free> return; a0005be8: eaffffdc b a0005b60 <_Objects_Extend_information+0x22c> a00065c8 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a00065c8: e92d40f0 push {r4, r5, r6, r7, lr} a00065cc: e1a05000 mov r5, r0 a00065d0: e1a06001 mov r6, r1 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a00065d4: e1a00002 mov r0, r2 a00065d8: e1d513ba ldrh r1, [r5, #58] ; 0x3a bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a00065dc: e1a07002 mov r7, r2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a00065e0: eb002547 bl a000fb04 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { a00065e4: e5d53038 ldrb r3, [r5, #56] ; 0x38 { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a00065e8: e1a04000 mov r4, r0 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { a00065ec: e3530000 cmp r3, #0 a00065f0: 1a000017 bne a0006654 <_Objects_Set_name+0x8c> d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a00065f4: e5d72000 ldrb r2, [r7] a00065f8: e3500001 cmp r0, #1 a00065fc: e1a02c02 lsl r2, r2, #24 a0006600: 9a00000c bls a0006638 <_Objects_Set_name+0x70> a0006604: e5d73001 ldrb r3, [r7, #1] a0006608: e3500002 cmp r0, #2 a000660c: e1822803 orr r2, r2, r3, lsl #16 a0006610: 0a000009 beq a000663c <_Objects_Set_name+0x74> a0006614: e5d73002 ldrb r3, [r7, #2] a0006618: e3500003 cmp r0, #3 a000661c: e1822403 orr r2, r2, r3, lsl #8 a0006620: 15d73003 ldrbne r3, [r7, #3] a0006624: 0a000005 beq a0006640 <_Objects_Set_name+0x78> a0006628: e1823003 orr r3, r2, r3 a000662c: e586300c str r3, [r6, #12] a0006630: e3a00001 mov r0, #1 ); } return true; } a0006634: e8bd80f0 pop {r4, r5, r6, r7, pc} d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a0006638: e3822602 orr r2, r2, #2097152 ; 0x200000 a000663c: e3822a02 orr r2, r2, #8192 ; 0x2000 a0006640: e3a03020 mov r3, #32 a0006644: e1823003 orr r3, r2, r3 a0006648: e586300c str r3, [r6, #12] a000664c: e3a00001 mov r0, #1 ); } return true; } a0006650: e8bd80f0 pop {r4, r5, r6, r7, pc} #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); a0006654: e2800001 add r0, r0, #1 a0006658: eb0006e7 bl a00081fc <_Workspace_Allocate> if ( !d ) a000665c: e2505000 subs r5, r0, #0 a0006660: 0a00000e beq a00066a0 <_Objects_Set_name+0xd8> return false; if ( the_object->name.name_p ) { a0006664: e596000c ldr r0, [r6, #12] a0006668: e3500000 cmp r0, #0 a000666c: 0a000002 beq a000667c <_Objects_Set_name+0xb4> _Workspace_Free( (void *)the_object->name.name_p ); a0006670: eb0006e7 bl a0008214 <_Workspace_Free> the_object->name.name_p = NULL; a0006674: e3a03000 mov r3, #0 a0006678: e586300c str r3, [r6, #12] } strncpy( d, name, length ); a000667c: e1a01007 mov r1, r7 a0006680: e1a00005 mov r0, r5 a0006684: e1a02004 mov r2, r4 a0006688: eb0024e3 bl a000fa1c d[length] = '\0'; a000668c: e3a03000 mov r3, #0 a0006690: e7c53004 strb r3, [r5, r4] the_object->name.name_p = d; a0006694: e3a00001 mov r0, #1 a0006698: e586500c str r5, [r6, #12] a000669c: e8bd80f0 pop {r4, r5, r6, r7, pc} #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); if ( !d ) a00066a0: e1a00005 mov r0, r5 <== NOT EXECUTED a00066a4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0005734 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { a0005734: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0005738: e1a04001 mov r4, r1 a000573c: e24dd004 sub sp, sp, #4 a0005740: 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 ) ) { a0005744: e1a0100d mov r1, sp a0005748: e1a00004 mov r0, r4 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { a000574c: e1a08002 mov r8, r2 a0005750: 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 ) ) { a0005754: eb000076 bl a0005934 <_POSIX_Mutex_Get> a0005758: e3500000 cmp r0, #0 a000575c: 0a00000a beq a000578c <_POSIX_Condition_variables_Wait_support+0x58> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a0005760: e59f30dc ldr r3, [pc, #220] ; a0005844 <_POSIX_Condition_variables_Wait_support+0x110> return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); a0005764: e1a0100d mov r1, sp a0005768: e1a00006 mov r0, r6 a000576c: e5932000 ldr r2, [r3] a0005770: e2422001 sub r2, r2, #1 a0005774: e5832000 str r2, [r3] a0005778: ebffff76 bl a0005558 <_POSIX_Condition_variables_Get> switch ( location ) { a000577c: e59d3000 ldr r3, [sp] return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); a0005780: e1a0a000 mov sl, r0 switch ( location ) { a0005784: e3530000 cmp r3, #0 a0005788: 0a000003 beq a000579c <_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 ) a000578c: e3a05016 mov r5, #22 case OBJECTS_ERROR: break; } return EINVAL; } a0005790: e1a00005 mov r0, r5 a0005794: e28dd004 add sp, sp, #4 a0005798: 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 ) ) { a000579c: e5903014 ldr r3, [r0, #20] a00057a0: e3530000 cmp r3, #0 a00057a4: 0a000005 beq a00057c0 <_POSIX_Condition_variables_Wait_support+0x8c> a00057a8: e5942000 ldr r2, [r4] a00057ac: e1530002 cmp r3, r2 a00057b0: 0a000002 beq a00057c0 <_POSIX_Condition_variables_Wait_support+0x8c> _Thread_Enable_dispatch(); a00057b4: eb000c47 bl a00088d8 <_Thread_Enable_dispatch> a00057b8: e3a05016 mov r5, #22 return EINVAL; a00057bc: eafffff3 b a0005790 <_POSIX_Condition_variables_Wait_support+0x5c> } (void) pthread_mutex_unlock( mutex ); a00057c0: e1a00004 mov r0, r4 a00057c4: eb0000e6 bl a0005b64 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { a00057c8: e3570000 cmp r7, #0 a00057cc: 0a000006 beq a00057ec <_POSIX_Condition_variables_Wait_support+0xb8> status = _Thread_Executing->Wait.return_code; if ( status && status != ETIMEDOUT ) return status; } else { _Thread_Enable_dispatch(); a00057d0: eb000c40 bl a00088d8 <_Thread_Enable_dispatch> a00057d4: e3a05074 mov r5, #116 ; 0x74 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); a00057d8: e1a00004 mov r0, r4 a00057dc: eb0000bf bl a0005ae0 if ( mutex_status ) a00057e0: e3500000 cmp r0, #0 a00057e4: 0affffe9 beq a0005790 <_POSIX_Condition_variables_Wait_support+0x5c> a00057e8: eaffffe7 b a000578c <_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; a00057ec: e59f5054 ldr r5, [pc, #84] ; a0005848 <_POSIX_Condition_variables_Wait_support+0x114> return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; a00057f0: e5941000 ldr r1, [r4] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; a00057f4: e28a2018 add r2, sl, #24 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; a00057f8: e5953000 ldr r3, [r5] return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; a00057fc: e58a1014 str r1, [sl, #20] RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0005800: e3a00001 mov r0, #1 _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; a0005804: e5837034 str r7, [r3, #52] ; 0x34 _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; a0005808: 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; a000580c: e5832044 str r2, [r3, #68] ; 0x44 a0005810: e58a0048 str r0, [sl, #72] ; 0x48 _Thread_Executing->Wait.id = *cond; a0005814: e5831020 str r1, [r3, #32] _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); a0005818: e1a00002 mov r0, r2 a000581c: e1a01008 mov r1, r8 a0005820: e59f2024 ldr r2, [pc, #36] ; a000584c <_POSIX_Condition_variables_Wait_support+0x118> a0005824: eb000d70 bl a0008dec <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); a0005828: eb000c2a bl a00088d8 <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; a000582c: e5953000 ldr r3, [r5] a0005830: e5935034 ldr r5, [r3, #52] ; 0x34 if ( status && status != ETIMEDOUT ) a0005834: e3550074 cmp r5, #116 ; 0x74 a0005838: 13550000 cmpne r5, #0 a000583c: 0affffe5 beq a00057d8 <_POSIX_Condition_variables_Wait_support+0xa4> a0005840: eaffffd2 b a0005790 <_POSIX_Condition_variables_Wait_support+0x5c> <== NOT EXECUTED a0005844: a001d5ec .word 0xa001d5ec a0005848: a001d6a0 .word 0xa001d6a0 a000584c: a00091d8 .word 0xa00091d8 a000d320 <_POSIX_signals_Clear_process_signals>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a000d320: e10f2000 mrs r2, CPSR a000d324: e3823080 orr r3, r2, #128 ; 0x80 a000d328: 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 ) { a000d32c: e3a0100c mov r1, #12 a000d330: e0030091 mul r3, r1, r0 a000d334: e59f105c ldr r1, [pc, #92] ; a000d398 <_POSIX_signals_Clear_process_signals+0x78> a000d338: e7911003 ldr r1, [r1, r3] a000d33c: e3510002 cmp r1, #2 a000d340: 0a00000c beq a000d378 <_POSIX_signals_Clear_process_signals+0x58> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; a000d344: e59f3050 ldr r3, [pc, #80] ; a000d39c <_POSIX_signals_Clear_process_signals+0x7c> a000d348: e3a0c001 mov ip, #1 a000d34c: e2400001 sub r0, r0, #1 a000d350: e5931000 ldr r1, [r3] a000d354: e1c1001c bic r0, r1, ip, lsl r0 if ( !_POSIX_signals_Pending ) a000d358: 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; a000d35c: e5830000 str r0, [r3] if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; a000d360: 059f3038 ldreq r3, [pc, #56] ; a000d3a0 <_POSIX_signals_Clear_process_signals+0x80> a000d364: 05931000 ldreq r1, [r3] a000d368: 02411001 subeq r1, r1, #1 a000d36c: 05831000 streq r1, [r3] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a000d370: e129f002 msr CPSR_fc, r2 } _ISR_Enable( level ); } a000d374: 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 ] ) ) a000d378: e59f1024 ldr r1, [pc, #36] ; a000d3a4 <_POSIX_signals_Clear_process_signals+0x84> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a000d37c: e791c003 ldr ip, [r1, r3] a000d380: e0813003 add r3, r1, r3 a000d384: e2833004 add r3, r3, #4 a000d388: e15c0003 cmp ip, r3 a000d38c: 0affffec beq a000d344 <_POSIX_signals_Clear_process_signals+0x24> a000d390: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); } a000d394: e12fff1e bx lr <== NOT EXECUTED a000d398: a001aeb8 .word 0xa001aeb8 a000d39c: a001b084 .word 0xa001b084 a000d3a0: a001aa44 .word 0xa001aa44 a000d3a4: a001b088 .word 0xa001b088 a0006c0c <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; a0006c0c: 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 ) { a0006c10: e92d05f0 push {r4, r5, r6, r7, r8, sl} */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a0006c14: e281503c add r5, r1, #60 ; 0x3c a0006c18: e5815038 str r5, [r1, #56] ; 0x38 the_chain->permanent_null = NULL; a0006c1c: e3a05000 mov r5, #0 the_chain->last = _Chain_Head(the_chain); a0006c20: e281c038 add ip, r1, #56 ; 0x38 priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) a0006c24: e3130020 tst r3, #32 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; a0006c28: e1a04323 lsr r4, r3, #6 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; a0006c2c: e581503c str r5, [r1, #60] ; 0x3c a0006c30: e3a0500c mov r5, #12 the_chain->last = _Chain_Head(the_chain); a0006c34: e581c040 str ip, [r1, #64] ; 0x40 block_state = the_thread_queue->state; a0006c38: e5906038 ldr r6, [r0, #56] ; 0x38 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; a0006c3c: e02c0495 mla ip, r5, r4, r0 a0006c40: 159fa17c ldrne sl, [pc, #380] ; a0006dc4 <_Thread_queue_Enqueue_priority+0x1b8> block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) a0006c44: 1a00001c bne a0006cbc <_Thread_queue_Enqueue_priority+0xb0> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0006c48: e28ca004 add sl, ip, #4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0006c4c: e10f8000 mrs r8, CPSR a0006c50: e3884080 orr r4, r8, #128 ; 0x80 a0006c54: 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; a0006c58: e59c4000 ldr r4, [ip] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a0006c5c: e154000a cmp r4, sl a0006c60: 1a000009 bne a0006c8c <_Thread_queue_Enqueue_priority+0x80> a0006c64: ea000053 b a0006db8 <_Thread_queue_Enqueue_priority+0x1ac> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( a0006c68: e10f7000 mrs r7, CPSR a0006c6c: e129f008 msr CPSR_fc, r8 a0006c70: 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) ) { a0006c74: e5947010 ldr r7, [r4, #16] a0006c78: e1160007 tst r6, r7 a0006c7c: 0a000034 beq a0006d54 <_Thread_queue_Enqueue_priority+0x148> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; a0006c80: 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 ) ) { a0006c84: e154000a cmp r4, sl a0006c88: 0a000002 beq a0006c98 <_Thread_queue_Enqueue_priority+0x8c> search_priority = search_thread->current_priority; a0006c8c: e5945014 ldr r5, [r4, #20] if ( priority <= search_priority ) a0006c90: e1530005 cmp r3, r5 a0006c94: 8afffff3 bhi a0006c68 <_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 ) ) { a0006c98: e1a06008 mov r6, r8 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != a0006c9c: e590c030 ldr ip, [r0, #48] ; 0x30 a0006ca0: e35c0001 cmp ip, #1 a0006ca4: 0a00002c beq a0006d5c <_Thread_queue_Enqueue_priority+0x150> * 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; a0006ca8: e5826000 str r6, [r2] return the_thread_queue->sync_state; a0006cac: e1a0000c mov r0, ip } a0006cb0: e8bd05f0 pop {r4, r5, r6, r7, r8, sl} a0006cb4: e12fff1e bx lr static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0006cb8: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; a0006cbc: e5da5000 ldrb r5, [sl] a0006cc0: e2855001 add r5, r5, #1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0006cc4: e10f8000 mrs r8, CPSR a0006cc8: e3884080 orr r4, r8, #128 ; 0x80 a0006ccc: e129f004 msr CPSR_fc, r4 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; a0006cd0: e59c4008 ldr r4, [ip, #8] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a0006cd4: e154000c cmp r4, ip a0006cd8: 1a000009 bne a0006d04 <_Thread_queue_Enqueue_priority+0xf8> a0006cdc: ea00000b b a0006d10 <_Thread_queue_Enqueue_priority+0x104> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( a0006ce0: e10f7000 mrs r7, CPSR a0006ce4: e129f008 msr CPSR_fc, r8 a0006ce8: 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) ) { a0006cec: e5947010 ldr r7, [r4, #16] a0006cf0: e1160007 tst r6, r7 a0006cf4: 0affffef beq a0006cb8 <_Thread_queue_Enqueue_priority+0xac> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) a0006cf8: 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 ) ) { a0006cfc: e154000c cmp r4, ip a0006d00: 0a000002 beq a0006d10 <_Thread_queue_Enqueue_priority+0x104> search_priority = search_thread->current_priority; a0006d04: e5945014 ldr r5, [r4, #20] if ( priority >= search_priority ) a0006d08: e1530005 cmp r3, r5 a0006d0c: 3afffff3 bcc a0006ce0 <_Thread_queue_Enqueue_priority+0xd4> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a0006d10: e590c030 ldr ip, [r0, #48] ; 0x30 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a0006d14: e1a06008 mov r6, r8 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a0006d18: e35c0001 cmp ip, #1 a0006d1c: 1affffe1 bne a0006ca8 <_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 ) a0006d20: 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; a0006d24: e3a03000 mov r3, #0 a0006d28: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) a0006d2c: 0a000017 beq a0006d90 <_Thread_queue_Enqueue_priority+0x184> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; a0006d30: e5943000 ldr r3, [r4] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; a0006d34: e5814004 str r4, [r1, #4] search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a0006d38: e5810044 str r0, [r1, #68] ; 0x44 search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; a0006d3c: e5813000 str r3, [r1] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; a0006d40: e5831004 str r1, [r3, #4] next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; a0006d44: e5841000 str r1, [r4] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0006d48: e129f008 msr CPSR_fc, r8 a0006d4c: e3a00001 mov r0, #1 next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0006d50: eaffffd6 b a0006cb0 <_Thread_queue_Enqueue_priority+0xa4> a0006d54: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED a0006d58: eaffffbb b a0006c4c <_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 ) a0006d5c: 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; a0006d60: e3a03000 mov r3, #0 a0006d64: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) a0006d68: 0a000008 beq a0006d90 <_Thread_queue_Enqueue_priority+0x184> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; a0006d6c: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; a0006d70: e5814000 str r4, [r1] the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a0006d74: e5810044 str r0, [r1, #68] ; 0x44 search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; a0006d78: e5813004 str r3, [r1, #4] previous_node->next = the_node; a0006d7c: e5831000 str r1, [r3] search_node->previous = the_node; a0006d80: e5841004 str r1, [r4, #4] a0006d84: e129f008 msr CPSR_fc, r8 a0006d88: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0006d8c: eaffffc7 b a0006cb0 <_Thread_queue_Enqueue_priority+0xa4> a0006d90: 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; a0006d94: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; a0006d98: e5814000 str r4, [r1] the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a0006d9c: e5810044 str r0, [r1, #68] ; 0x44 search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; a0006da0: e5813004 str r3, [r1, #4] previous_node->next = the_node; a0006da4: e5831000 str r1, [r3] search_node->previous = the_node; a0006da8: e5841004 str r1, [r4, #4] a0006dac: e129f006 msr CPSR_fc, r6 a0006db0: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0006db4: eaffffbd b a0006cb0 <_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 ) ) { a0006db8: e1a06008 mov r6, r8 a0006dbc: e3e05000 mvn r5, #0 a0006dc0: eaffffb5 b a0006c9c <_Thread_queue_Enqueue_priority+0x90> a0006dc4: a0018ec0 .word 0xa0018ec0 a0015330 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { a0015330: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0015334: e24dd024 sub sp, sp, #36 ; 0x24 a0015338: 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; a001533c: e3a03000 mov r3, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0015340: e28d0018 add r0, sp, #24 a0015344: e28d700c add r7, sp, #12 a0015348: e59f91c8 ldr r9, [pc, #456] ; a0015518 <_Timer_server_Body+0x1e8> a001534c: e59fb1c8 ldr fp, [pc, #456] ; a001551c <_Timer_server_Body+0x1ec> a0015350: e280a004 add sl, r0, #4 a0015354: e2872004 add r2, r7, #4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; a0015358: e58d301c str r3, [sp, #28] the_chain->last = _Chain_Head(the_chain); a001535c: e58d0020 str r0, [sp, #32] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; a0015360: e58d3010 str r3, [sp, #16] static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a0015364: e2840040 add r0, r4, #64 ; 0x40 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a0015368: e2843008 add r3, r4, #8 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a001536c: e58d2000 str r2, [sp] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a0015370: e58da018 str sl, [sp, #24] a0015374: e58d200c str r2, [sp, #12] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); a0015378: e58d7014 str r7, [sp, #20] */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a001537c: 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 ); a0015380: e2848068 add r8, r4, #104 ; 0x68 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a0015384: e98d0009 stmib sp, {r0, r3} { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; a0015388: e28d2018 add r2, sp, #24 a001538c: e5842078 str r2, [r4, #120] ; 0x78 static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; a0015390: e5993000 ldr r3, [r9] /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; a0015394: e594103c ldr r1, [r4, #60] ; 0x3c watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0015398: e1a00006 mov r0, r6 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; a001539c: e584303c str r3, [r4, #60] ; 0x3c _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a00153a0: e0611003 rsb r1, r1, r3 a00153a4: e1a02007 mov r2, r7 a00153a8: eb001109 bl a00197d4 <_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(); a00153ac: e59b5000 ldr r5, [fp] Watchdog_Interval last_snapshot = watchdogs->last_snapshot; a00153b0: 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 ) { a00153b4: e1550001 cmp r5, r1 a00153b8: 8a000022 bhi a0015448 <_Timer_server_Body+0x118> * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { a00153bc: 3a000018 bcc a0015424 <_Timer_server_Body+0xf4> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; a00153c0: 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 ); a00153c4: e5940078 ldr r0, [r4, #120] ; 0x78 a00153c8: eb00025d bl a0015d44 <_Chain_Get> if ( timer == NULL ) { a00153cc: e3500000 cmp r0, #0 a00153d0: 0a00000b beq a0015404 <_Timer_server_Body+0xd4> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a00153d4: e5903038 ldr r3, [r0, #56] ; 0x38 a00153d8: e3530001 cmp r3, #1 a00153dc: 0a000015 beq a0015438 <_Timer_server_Body+0x108> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a00153e0: e3530003 cmp r3, #3 a00153e4: 1afffff6 bne a00153c4 <_Timer_server_Body+0x94> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a00153e8: e2801010 add r1, r0, #16 a00153ec: e1a00008 mov r0, r8 a00153f0: eb001126 bl a0019890 <_Watchdog_Insert> } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); a00153f4: e5940078 ldr r0, [r4, #120] ; 0x78 a00153f8: eb000251 bl a0015d44 <_Chain_Get> if ( timer == NULL ) { a00153fc: e3500000 cmp r0, #0 a0015400: 1afffff3 bne a00153d4 <_Timer_server_Body+0xa4> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0015404: e10f2000 mrs r2, CPSR a0015408: e3823080 orr r3, r2, #128 ; 0x80 a001540c: e129f003 msr CPSR_fc, r3 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { a0015410: e59d3018 ldr r3, [sp, #24] a0015414: e15a0003 cmp sl, r3 a0015418: 0a00000f beq a001545c <_Timer_server_Body+0x12c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a001541c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a0015420: eaffffda b a0015390 <_Timer_server_Body+0x60> <== NOT EXECUTED /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); a0015424: e0652001 rsb r2, r5, r1 a0015428: e1a00008 mov r0, r8 a001542c: e3a01001 mov r1, #1 a0015430: eb0010b8 bl a0019718 <_Watchdog_Adjust> a0015434: eaffffe1 b a00153c0 <_Timer_server_Body+0x90> Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a0015438: e2801010 add r1, r0, #16 a001543c: e1a00006 mov r0, r6 a0015440: eb001112 bl a0019890 <_Watchdog_Insert> a0015444: eaffffde b a00153c4 <_Timer_server_Body+0x94> /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0015448: e0611005 rsb r1, r1, r5 a001544c: e1a00008 mov r0, r8 a0015450: e1a02007 mov r2, r7 a0015454: eb0010de bl a00197d4 <_Watchdog_Adjust_to_chain> a0015458: eaffffd8 b a00153c0 <_Timer_server_Body+0x90> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; a001545c: e5840078 str r0, [r4, #120] ; 0x78 a0015460: 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 ) ) { a0015464: e59d300c ldr r3, [sp, #12] a0015468: e59d0000 ldr r0, [sp] a001546c: e1500003 cmp r0, r3 a0015470: 159d5000 ldrne r5, [sp] a0015474: 1a00000a bne a00154a4 <_Timer_server_Body+0x174> a0015478: ea000011 b a00154c4 <_Timer_server_Body+0x194> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; a001547c: 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; a0015480: e3a00000 mov r0, #0 a0015484: e5830008 str r0, [r3, #8] the_chain->first = new_first; a0015488: e58d200c str r2, [sp, #12] new_first->previous = _Chain_Head(the_chain); a001548c: e5827004 str r7, [r2, #4] a0015490: 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 ); a0015494: e5930020 ldr r0, [r3, #32] a0015498: e5931024 ldr r1, [r3, #36] ; 0x24 a001549c: e1a0e00f mov lr, pc a00154a0: e593f01c ldr pc, [r3, #28] static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00154a4: e10f1000 mrs r1, CPSR a00154a8: e3813080 orr r3, r1, #128 ; 0x80 a00154ac: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); a00154b0: e59d300c ldr r3, [sp, #12] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a00154b4: e1550003 cmp r5, r3 a00154b8: 1affffef bne a001547c <_Timer_server_Body+0x14c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a00154bc: e129f001 msr CPSR_fc, r1 a00154c0: eaffffb0 b a0015388 <_Timer_server_Body+0x58> a00154c4: e59f0054 ldr r0, [pc, #84] ; a0015520 <_Timer_server_Body+0x1f0> } } else { ts->active = false; a00154c8: e3a02000 mov r2, #0 a00154cc: e5c4207c strb r2, [r4, #124] ; 0x7c a00154d0: e5903000 ldr r3, [r0] a00154d4: e2833001 add r3, r3, #1 a00154d8: e5803000 str r3, [r0] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); a00154dc: e3a01008 mov r1, #8 a00154e0: e5940000 ldr r0, [r4] a00154e4: eb000e0d bl a0018d20 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); a00154e8: e1a00004 mov r0, r4 a00154ec: ebffff63 bl a0015280 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); a00154f0: e1a00004 mov r0, r4 a00154f4: ebffff77 bl a00152d8 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); a00154f8: eb000b4a bl a0018228 <_Thread_Enable_dispatch> ts->active = true; a00154fc: e3a02001 mov r2, #1 a0015500: 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 ); a0015504: e59d0008 ldr r0, [sp, #8] a0015508: eb00114d bl a0019a44 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a001550c: e59d0004 ldr r0, [sp, #4] a0015510: eb00114b bl a0019a44 <_Watchdog_Remove> a0015514: eaffff9b b a0015388 <_Timer_server_Body+0x58> a0015518: a003bd24 .word 0xa003bd24 a001551c: a003bc54 .word 0xa003bc54 a0015520: a003bbcc .word 0xa003bbcc a00096cc <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { a00096cc: e92d41f0 push {r4, r5, r6, r7, r8, lr} a00096d0: e1a04000 mov r4, r0 a00096d4: e1a05002 mov r5, r2 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00096d8: e10f3000 mrs r3, CPSR a00096dc: e3832080 orr r2, r3, #128 ; 0x80 a00096e0: e129f002 msr CPSR_fc, r2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); a00096e4: e1a07000 mov r7, r0 a00096e8: 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 ) ) { a00096ec: e1520007 cmp r2, r7 a00096f0: 0a000018 beq a0009758 <_Watchdog_Adjust+0x8c> switch ( direction ) { a00096f4: e3510000 cmp r1, #0 a00096f8: 1a000018 bne a0009760 <_Watchdog_Adjust+0x94> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { a00096fc: e3550000 cmp r5, #0 a0009700: 0a000014 beq a0009758 <_Watchdog_Adjust+0x8c> if ( units < _Watchdog_First( header )->delta_interval ) { a0009704: e5926010 ldr r6, [r2, #16] a0009708: e1550006 cmp r5, r6 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000970c: 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 ) { a0009710: 2a000005 bcs a000972c <_Watchdog_Adjust+0x60> a0009714: ea000018 b a000977c <_Watchdog_Adjust+0xb0> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { a0009718: e0555006 subs r5, r5, r6 a000971c: 0a00000d beq a0009758 <_Watchdog_Adjust+0x8c> if ( units < _Watchdog_First( header )->delta_interval ) { a0009720: e5926010 ldr r6, [r2, #16] a0009724: e1560005 cmp r6, r5 a0009728: 8a000013 bhi a000977c <_Watchdog_Adjust+0xb0> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000972c: e5828010 str r8, [r2, #16] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0009730: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); _Watchdog_Tickle( header ); a0009734: e1a00004 mov r0, r4 a0009738: eb0000aa bl a00099e8 <_Watchdog_Tickle> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a000973c: e10f3000 mrs r3, CPSR a0009740: e3832080 orr r2, r3, #128 ; 0x80 a0009744: e129f002 msr CPSR_fc, r2 a0009748: e5941000 ldr r1, [r4] _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) a000974c: e1570001 cmp r7, r1 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); a0009750: e1a02001 mov r2, r1 a0009754: 1affffef bne a0009718 <_Watchdog_Adjust+0x4c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0009758: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } a000975c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { a0009760: e3510001 cmp r1, #1 a0009764: 1afffffb bne a0009758 <_Watchdog_Adjust+0x8c> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; a0009768: e5921010 ldr r1, [r2, #16] a000976c: e0815005 add r5, r1, r5 a0009770: e5825010 str r5, [r2, #16] a0009774: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } a0009778: 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; a000977c: e0655006 rsb r5, r5, r6 a0009780: e5825010 str r5, [r2, #16] break; a0009784: eafffff3 b a0009758 <_Watchdog_Adjust+0x8c> a0018600 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); a0018600: e24dd004 sub sp, sp, #4 a0018604: e58d0000 str r0, [sp] a0018608: eb0001f4 bl a0018de0 <___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(); a001860c: ebffffe0 bl a0018594 rtems_shutdown_executive(status); a0018610: e59d0000 ldr r0, [sp] a0018614: eb00003f bl a0018718 a0018618: eafffffe b a0018618 <_exit+0x18> <== NOT EXECUTED a0038834 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); a0038834: e1a00001 mov r0, r1 <== NOT EXECUTED a0038838: e1a01002 mov r1, r2 <== NOT EXECUTED a003883c: e1a02003 mov r2, r3 <== NOT EXECUTED a0038840: eaffff83 b a0038654 <== NOT EXECUTED a000c008 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } a000c008: e3a00001 mov r0, #1 <== NOT EXECUTED a000c00c: e12fff1e bx lr <== NOT EXECUTED a00091d4 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); a00091d4: eaffffe5 b a0009170 <== NOT EXECUTED a00265e0 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); a00265e0: e1a00001 mov r0, r1 <== NOT EXECUTED a00265e4: e1a01002 mov r1, r2 <== NOT EXECUTED a00265e8: eaffff68 b a0026390 <== NOT EXECUTED a002682c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); a002682c: e1a00001 mov r0, r1 <== NOT EXECUTED a0026830: e1a01002 mov r1, r2 <== NOT EXECUTED a0026834: eaffffc2 b a0026744 <== NOT EXECUTED a00186fc <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); a00186fc: e1a00001 mov r0, r1 <== NOT EXECUTED a0018700: e1a01002 mov r1, r2 <== NOT EXECUTED a0018704: ea00000e b a0018744 <== NOT EXECUTED a00583c0 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { a00583c0: 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 ); a00583c4: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { a00583c8: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED a00583cc: e1a05001 mov r5, r1 <== NOT EXECUTED a00583d0: 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 ); a00583d4: ebfeb3f7 bl a00053b8 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) a00583d8: e2507000 subs r7, r0, #0 <== NOT EXECUTED a00583dc: 1a0000e9 bne a0058788 <_rename_r+0x3c8> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); a00583e0: e5d53000 ldrb r3, [r5] <== NOT EXECUTED a00583e4: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED a00583e8: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED a00583ec: 1a000061 bne a0058578 <_rename_r+0x1b8> <== NOT EXECUTED a00583f0: e59f33c4 ldr r3, [pc, #964] ; a00587bc <_rename_r+0x3fc> <== NOT EXECUTED a00583f4: e28d4018 add r4, sp, #24 <== NOT EXECUTED a00583f8: e1a0a004 mov sl, r4 <== NOT EXECUTED a00583fc: e593c000 ldr ip, [r3] <== NOT EXECUTED a0058400: e3a08000 mov r8, #0 <== NOT EXECUTED a0058404: e28cc018 add ip, ip, #24 <== NOT EXECUTED a0058408: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a005840c: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED a0058410: e59c2000 ldr r2, [ip] <== NOT EXECUTED a0058414: e58a2000 str r2, [sl] <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; a0058418: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED a005841c: e1a0e004 mov lr, r4 <== NOT EXECUTED a0058420: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a0058424: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0058428: e59e3000 ldr r3, [lr] <== NOT EXECUTED name = old + old_parent_pathlen; a005842c: e0855007 add r5, r5, r7 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a0058430: e1a00005 mov r0, r5 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; a0058434: e58c3000 str r3, [ip] <== NOT EXECUTED name = old + old_parent_pathlen; a0058438: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a005843c: ebffb3dc bl a00453b4 <== NOT EXECUTED a0058440: e1a01000 mov r1, r0 <== NOT EXECUTED a0058444: e1a00005 mov r0, r5 <== NOT EXECUTED a0058448: ebfeb3c6 bl a0005368 <== NOT EXECUTED a005844c: e0855000 add r5, r5, r0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a0058450: 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 ) ); a0058454: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a0058458: ebffb3d5 bl a00453b4 <== NOT EXECUTED a005845c: e28d702c add r7, sp, #44 ; 0x2c <== NOT EXECUTED a0058460: e3a0c000 mov ip, #0 <== NOT EXECUTED a0058464: e1a01000 mov r1, r0 <== NOT EXECUTED a0058468: e1a0200c mov r2, ip <== NOT EXECUTED a005846c: e1a00005 mov r0, r5 <== NOT EXECUTED a0058470: e1a03007 mov r3, r7 <== NOT EXECUTED a0058474: e58dc000 str ip, [sp] <== NOT EXECUTED a0058478: ebfeb3e7 bl a000541c <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { a005847c: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0058480: 1a000078 bne a0058668 <_rename_r+0x2a8> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); a0058484: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a0058488: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED a005848c: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED a0058490: 13a0e000 movne lr, #0 <== NOT EXECUTED a0058494: 03a0e001 moveq lr, #1 <== NOT EXECUTED a0058498: 1a000043 bne a00585ac <_rename_r+0x1ec> <== NOT EXECUTED a005849c: e59f3318 ldr r3, [pc, #792] ; a00587bc <_rename_r+0x3fc> <== NOT EXECUTED a00584a0: e28d5004 add r5, sp, #4 <== NOT EXECUTED a00584a4: e3a0e001 mov lr, #1 <== NOT EXECUTED a00584a8: e593c000 ldr ip, [r3] <== NOT EXECUTED a00584ac: e28cc018 add ip, ip, #24 <== NOT EXECUTED a00584b0: e1a0a005 mov sl, r5 <== NOT EXECUTED a00584b4: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a00584b8: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { a00584bc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); a00584c0: e59c2000 ldr r2, [ip] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { a00584c4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); a00584c8: e58a2000 str r2, [sl] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { a00584cc: e3530000 cmp r3, #0 <== NOT EXECUTED a00584d0: 0a000095 beq a005872c <_rename_r+0x36c> <== 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 ); a00584d4: e086000e add r0, r6, lr <== NOT EXECUTED a00584d8: e1a01005 mov r1, r5 <== NOT EXECUTED a00584dc: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED a00584e0: e12fff33 blx r3 <== NOT EXECUTED if ( result != 0 ) { a00584e4: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00584e8: 1a00006c bne a00586a0 <_rename_r+0x2e0> <== 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 ) { a00584ec: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a00584f0: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED a00584f4: e1520003 cmp r2, r3 <== NOT EXECUTED a00584f8: 1a00003b bne a00585ec <_rename_r+0x22c> <== 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 ) { a00584fc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0058500: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED a0058504: e35c0000 cmp ip, #0 <== NOT EXECUTED a0058508: 0a000082 beq a0058718 <_rename_r+0x358> <== 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 ); a005850c: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED a0058510: e1a00004 mov r0, r4 <== NOT EXECUTED a0058514: e1a01007 mov r1, r7 <== NOT EXECUTED a0058518: e1a02005 mov r2, r5 <== NOT EXECUTED a005851c: e12fff3c blx ip <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a0058520: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); a0058524: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a0058528: e3530000 cmp r3, #0 <== NOT EXECUTED a005852c: 0a000004 beq a0058544 <_rename_r+0x184> <== NOT EXECUTED a0058530: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0058534: e3530000 cmp r3, #0 <== NOT EXECUTED a0058538: 0a000001 beq a0058544 <_rename_r+0x184> <== NOT EXECUTED a005853c: e1a00005 mov r0, r5 <== NOT EXECUTED a0058540: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a0058544: e3580000 cmp r8, #0 <== NOT EXECUTED a0058548: 1a00001e bne a00585c8 <_rename_r+0x208> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); a005854c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a0058550: e3530000 cmp r3, #0 <== NOT EXECUTED a0058554: 0a000004 beq a005856c <_rename_r+0x1ac> <== NOT EXECUTED a0058558: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a005855c: e3530000 cmp r3, #0 <== NOT EXECUTED a0058560: 0a000001 beq a005856c <_rename_r+0x1ac> <== NOT EXECUTED a0058564: e1a00007 mov r0, r7 <== NOT EXECUTED a0058568: e12fff33 blx r3 <== NOT EXECUTED return result; } a005856c: e1a00006 mov r0, r6 <== NOT EXECUTED a0058570: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED a0058574: 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 ); a0058578: e3530000 cmp r3, #0 <== NOT EXECUTED a005857c: 0affff9b beq a00583f0 <_rename_r+0x30> <== NOT EXECUTED a0058580: e59f3234 ldr r3, [pc, #564] ; a00587bc <_rename_r+0x3fc> <== NOT EXECUTED a0058584: e28d4018 add r4, sp, #24 <== NOT EXECUTED a0058588: e1a0e004 mov lr, r4 <== NOT EXECUTED a005858c: e593c000 ldr ip, [r3] <== NOT EXECUTED a0058590: e1a08007 mov r8, r7 <== NOT EXECUTED a0058594: e28cc004 add ip, ip, #4 <== NOT EXECUTED a0058598: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a005859c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED a00585a0: e59c2000 ldr r2, [ip] <== NOT EXECUTED a00585a4: e58e2000 str r2, [lr] <== NOT EXECUTED a00585a8: eaffff9a b a0058418 <_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 ); a00585ac: e3530000 cmp r3, #0 <== NOT EXECUTED a00585b0: 0affffb9 beq a005849c <_rename_r+0xdc> <== NOT EXECUTED a00585b4: e59f3200 ldr r3, [pc, #512] ; a00587bc <_rename_r+0x3fc> <== NOT EXECUTED a00585b8: e28d5004 add r5, sp, #4 <== NOT EXECUTED a00585bc: e593c000 ldr ip, [r3] <== NOT EXECUTED a00585c0: e28cc004 add ip, ip, #4 <== NOT EXECUTED a00585c4: eaffffb9 b a00584b0 <_rename_r+0xf0> <== NOT EXECUTED result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); a00585c8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a00585cc: e3530000 cmp r3, #0 <== NOT EXECUTED a00585d0: 0affffdd beq a005854c <_rename_r+0x18c> <== NOT EXECUTED a00585d4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00585d8: e3530000 cmp r3, #0 <== NOT EXECUTED a00585dc: 0affffda beq a005854c <_rename_r+0x18c> <== NOT EXECUTED a00585e0: e1a00004 mov r0, r4 <== NOT EXECUTED a00585e4: e12fff33 blx r3 <== NOT EXECUTED a00585e8: eaffffd7 b a005854c <_rename_r+0x18c> <== 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 ); a00585ec: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00585f0: e3530000 cmp r3, #0 <== NOT EXECUTED a00585f4: 0a000004 beq a005860c <_rename_r+0x24c> <== NOT EXECUTED a00585f8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00585fc: e3530000 cmp r3, #0 <== NOT EXECUTED a0058600: 0a000001 beq a005860c <_rename_r+0x24c> <== NOT EXECUTED a0058604: e1a00005 mov r0, r5 <== NOT EXECUTED a0058608: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a005860c: e3580000 cmp r8, #0 <== NOT EXECUTED a0058610: 0a000007 beq a0058634 <_rename_r+0x274> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a0058614: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0058618: e3530000 cmp r3, #0 <== NOT EXECUTED a005861c: 0a000004 beq a0058634 <_rename_r+0x274> <== NOT EXECUTED a0058620: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0058624: e3530000 cmp r3, #0 <== NOT EXECUTED a0058628: 0a000001 beq a0058634 <_rename_r+0x274> <== NOT EXECUTED a005862c: e1a00004 mov r0, r4 <== NOT EXECUTED a0058630: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a0058634: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a0058638: e3530000 cmp r3, #0 <== NOT EXECUTED a005863c: 0a000004 beq a0058654 <_rename_r+0x294> <== NOT EXECUTED a0058640: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0058644: e3530000 cmp r3, #0 <== NOT EXECUTED a0058648: 0a000001 beq a0058654 <_rename_r+0x294> <== NOT EXECUTED a005864c: e1a00007 mov r0, r7 <== NOT EXECUTED a0058650: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); a0058654: ebff98cb bl a003e988 <__errno> <== NOT EXECUTED a0058658: e3a03012 mov r3, #18 <== NOT EXECUTED a005865c: e5803000 str r3, [r0] <== NOT EXECUTED a0058660: e3e06000 mvn r6, #0 <== NOT EXECUTED a0058664: eaffffc0 b a005856c <_rename_r+0x1ac> <== 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 ) a0058668: e3580000 cmp r8, #0 <== NOT EXECUTED a005866c: 0a000007 beq a0058690 <_rename_r+0x2d0> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a0058670: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0058674: e3530000 cmp r3, #0 <== NOT EXECUTED a0058678: 0a000004 beq a0058690 <_rename_r+0x2d0> <== NOT EXECUTED a005867c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0058680: e3530000 cmp r3, #0 <== NOT EXECUTED a0058684: 0a000001 beq a0058690 <_rename_r+0x2d0> <== NOT EXECUTED a0058688: e1a00004 mov r0, r4 <== NOT EXECUTED a005868c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); a0058690: ebff98bc bl a003e988 <__errno> <== NOT EXECUTED a0058694: e3e06000 mvn r6, #0 <== NOT EXECUTED a0058698: e5805000 str r5, [r0] <== NOT EXECUTED a005869c: eaffffb2 b a005856c <_rename_r+0x1ac> <== 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 ); a00586a0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00586a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00586a8: 0a000004 beq a00586c0 <_rename_r+0x300> <== NOT EXECUTED a00586ac: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00586b0: e3530000 cmp r3, #0 <== NOT EXECUTED a00586b4: 0a000001 beq a00586c0 <_rename_r+0x300> <== NOT EXECUTED a00586b8: e1a00005 mov r0, r5 <== NOT EXECUTED a00586bc: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a00586c0: e3580000 cmp r8, #0 <== NOT EXECUTED a00586c4: 0a000007 beq a00586e8 <_rename_r+0x328> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a00586c8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a00586cc: e3530000 cmp r3, #0 <== NOT EXECUTED a00586d0: 0a000004 beq a00586e8 <_rename_r+0x328> <== NOT EXECUTED a00586d4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00586d8: e3530000 cmp r3, #0 <== NOT EXECUTED a00586dc: 0a000001 beq a00586e8 <_rename_r+0x328> <== NOT EXECUTED a00586e0: e1a00004 mov r0, r4 <== NOT EXECUTED a00586e4: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a00586e8: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a00586ec: e3530000 cmp r3, #0 <== NOT EXECUTED a00586f0: 0a000004 beq a0058708 <_rename_r+0x348> <== NOT EXECUTED a00586f4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00586f8: e3530000 cmp r3, #0 <== NOT EXECUTED a00586fc: 0a000001 beq a0058708 <_rename_r+0x348> <== NOT EXECUTED a0058700: e1a00007 mov r0, r7 <== NOT EXECUTED a0058704: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); a0058708: ebff989e bl a003e988 <__errno> <== NOT EXECUTED a005870c: e5806000 str r6, [r0] <== NOT EXECUTED a0058710: e3e06000 mvn r6, #0 <== NOT EXECUTED a0058714: eaffff94 b a005856c <_rename_r+0x1ac> <== 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 ); a0058718: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a005871c: e3530000 cmp r3, #0 <== NOT EXECUTED a0058720: 0a000001 beq a005872c <_rename_r+0x36c> <== NOT EXECUTED a0058724: e1a00005 mov r0, r5 <== NOT EXECUTED a0058728: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a005872c: e3580000 cmp r8, #0 <== NOT EXECUTED a0058730: 0a000007 beq a0058754 <_rename_r+0x394> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a0058734: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0058738: e3530000 cmp r3, #0 <== NOT EXECUTED a005873c: 0a000004 beq a0058754 <_rename_r+0x394> <== NOT EXECUTED a0058740: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0058744: e3530000 cmp r3, #0 <== NOT EXECUTED a0058748: 0a000001 beq a0058754 <_rename_r+0x394> <== NOT EXECUTED a005874c: e1a00004 mov r0, r4 <== NOT EXECUTED a0058750: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a0058754: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a0058758: e3530000 cmp r3, #0 <== NOT EXECUTED a005875c: 0a000004 beq a0058774 <_rename_r+0x3b4> <== NOT EXECUTED a0058760: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0058764: e3530000 cmp r3, #0 <== NOT EXECUTED a0058768: 0a000001 beq a0058774 <_rename_r+0x3b4> <== NOT EXECUTED a005876c: e1a00007 mov r0, r7 <== NOT EXECUTED a0058770: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0058774: ebff9883 bl a003e988 <__errno> <== NOT EXECUTED a0058778: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a005877c: e5803000 str r3, [r0] <== NOT EXECUTED a0058780: e3e06000 mvn r6, #0 <== NOT EXECUTED a0058784: eaffff78 b a005856c <_rename_r+0x1ac> <== 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, a0058788: e28d4018 add r4, sp, #24 <== NOT EXECUTED a005878c: e3a0c000 mov ip, #0 <== NOT EXECUTED a0058790: e1a00005 mov r0, r5 <== NOT EXECUTED a0058794: e1a01007 mov r1, r7 <== NOT EXECUTED a0058798: e3a02002 mov r2, #2 <== NOT EXECUTED a005879c: e1a03004 mov r3, r4 <== NOT EXECUTED a00587a0: e58dc000 str ip, [sp] <== NOT EXECUTED a00587a4: ebfeb356 bl a0005504 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) a00587a8: e3500000 cmp r0, #0 <== NOT EXECUTED a00587ac: 03a08001 moveq r8, #1 <== NOT EXECUTED a00587b0: 0affff18 beq a0058418 <_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 ); a00587b4: e3e06000 mvn r6, #0 <== NOT EXECUTED a00587b8: eaffff6b b a005856c <_rename_r+0x1ac> <== NOT EXECUTED a00587bc: a0058c2c .word 0xa0058c2c a0006de4 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); a0006de4: e1a00001 mov r0, r1 <== NOT EXECUTED a0006de8: e1a01002 mov r1, r2 <== NOT EXECUTED a0006dec: eaffffc2 b a0006cfc <== NOT EXECUTED a000d038 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); a000d038: e1a00001 mov r0, r1 <== NOT EXECUTED a000d03c: eaffff5d b a000cdb8 <== NOT EXECUTED a0025014 : #include int chdir( const char *pathname ) { a0025014: e92d4030 push {r4, r5, lr} a0025018: e24dd018 sub sp, sp, #24 a002501c: 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 ); a0025020: eb0080e3 bl a00453b4 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( a0025024: e28d4004 add r4, sp, #4 a0025028: e3a0c001 mov ip, #1 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); a002502c: e1a01000 mov r1, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( a0025030: e1a0200c mov r2, ip a0025034: e1a00005 mov r0, r5 a0025038: e1a03004 mov r3, r4 a002503c: e58dc000 str ip, [sp] a0025040: ebff812f bl a0005504 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) a0025044: e3500000 cmp r0, #0 a0025048: 1a000022 bne a00250d8 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { a002504c: e59d2010 ldr r2, [sp, #16] a0025050: e5923010 ldr r3, [r2, #16] a0025054: e3530000 cmp r3, #0 a0025058: 0a000016 beq a00250b8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { a002505c: e1a00004 mov r0, r4 a0025060: e12fff33 blx r3 a0025064: e3500001 cmp r0, #1 a0025068: 1a00001c bne a00250e0 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); a002506c: e59f50a0 ldr r5, [pc, #160] ; a0025114 a0025070: e595c000 ldr ip, [r5] a0025074: e59c3010 ldr r3, [ip, #16] a0025078: e3530000 cmp r3, #0 a002507c: 0a000005 beq a0025098 a0025080: e593301c ldr r3, [r3, #28] a0025084: e3530000 cmp r3, #0 a0025088: 0a000002 beq a0025098 a002508c: e28c0004 add r0, ip, #4 a0025090: e12fff33 blx r3 a0025094: e595c000 ldr ip, [r5] rtems_filesystem_current = loc; a0025098: e28cc004 add ip, ip, #4 a002509c: e8b4000f ldm r4!, {r0, r1, r2, r3} a00250a0: e8ac000f stmia ip!, {r0, r1, r2, r3} a00250a4: e5943000 ldr r3, [r4] a00250a8: e3a00000 mov r0, #0 a00250ac: e58c3000 str r3, [ip] return 0; } a00250b0: e28dd018 add sp, sp, #24 a00250b4: e8bd8030 pop {r4, r5, pc} /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); a00250b8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a00250bc: e3530000 cmp r3, #0 <== NOT EXECUTED a00250c0: 0a000001 beq a00250cc <== NOT EXECUTED a00250c4: e1a00004 mov r0, r4 <== NOT EXECUTED a00250c8: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00250cc: eb00662d bl a003e988 <__errno> <== NOT EXECUTED a00250d0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00250d4: e5803000 str r3, [r0] <== NOT EXECUTED a00250d8: e3e00000 mvn r0, #0 a00250dc: eafffff3 b a00250b0 } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); a00250e0: e59d3010 ldr r3, [sp, #16] a00250e4: e3530000 cmp r3, #0 a00250e8: 0a000004 beq a0025100 a00250ec: e593301c ldr r3, [r3, #28] a00250f0: e3530000 cmp r3, #0 a00250f4: 0a000001 beq a0025100 a00250f8: e1a00004 mov r0, r4 a00250fc: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); a0025100: eb006620 bl a003e988 <__errno> a0025104: e3a03014 mov r3, #20 a0025108: e5803000 str r3, [r0] a002510c: e3e00000 mvn r0, #0 a0025110: eaffffe6 b a00250b0 a0025114: a0058c2c .word 0xa0058c2c a00051d0 : int chmod( const char *path, mode_t mode ) { a00051d0: e92d4070 push {r4, r5, r6, lr} a00051d4: e24dd018 sub sp, sp, #24 a00051d8: e1a05001 mov r5, r1 a00051dc: 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 ); a00051e0: eb010073 bl a00453b4 a00051e4: e28d4004 add r4, sp, #4 a00051e8: e1a01000 mov r1, r0 a00051ec: e3a0c001 mov ip, #1 a00051f0: e1a00006 mov r0, r6 a00051f4: e3a02000 mov r2, #0 a00051f8: e1a03004 mov r3, r4 a00051fc: e58dc000 str ip, [sp] a0005200: eb0000bf bl a0005504 if ( status != 0 ) a0005204: e3500000 cmp r0, #0 a0005208: 1a00001f bne a000528c return -1; if ( !loc.handlers ){ a000520c: e59d300c ldr r3, [sp, #12] a0005210: e3530000 cmp r3, #0 a0005214: 0a000011 beq a0005260 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ a0005218: e593301c ldr r3, [r3, #28] a000521c: e3530000 cmp r3, #0 a0005220: 0a00001b beq a0005294 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); a0005224: e1a01005 mov r1, r5 a0005228: e1a00004 mov r0, r4 a000522c: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0005230: e59d3010 ldr r3, [sp, #16] if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); a0005234: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0005238: e3530000 cmp r3, #0 a000523c: 0a000004 beq a0005254 a0005240: e593301c ldr r3, [r3, #28] a0005244: e3530000 cmp r3, #0 a0005248: 0a000001 beq a0005254 a000524c: e1a00004 mov r0, r4 a0005250: e12fff33 blx r3 return result; } a0005254: e1a00005 mov r0, r5 a0005258: e28dd018 add sp, sp, #24 a000525c: 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 ); a0005260: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0005264: e3530000 cmp r3, #0 <== NOT EXECUTED a0005268: 0a000004 beq a0005280 <== NOT EXECUTED a000526c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0005270: e3530000 cmp r3, #0 <== NOT EXECUTED a0005274: 0a000001 beq a0005280 <== NOT EXECUTED a0005278: e1a00004 mov r0, r4 <== NOT EXECUTED a000527c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); a0005280: eb00e5c0 bl a003e988 <__errno> <== NOT EXECUTED a0005284: e3a03009 mov r3, #9 <== NOT EXECUTED a0005288: e5803000 str r3, [r0] <== NOT EXECUTED a000528c: e3e05000 mvn r5, #0 a0005290: eaffffef b a0005254 } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); a0005294: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0005298: e3530000 cmp r3, #0 <== NOT EXECUTED a000529c: 0a000004 beq a00052b4 <== NOT EXECUTED a00052a0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00052a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00052a8: 0a000001 beq a00052b4 <== NOT EXECUTED a00052ac: e1a00004 mov r0, r4 <== NOT EXECUTED a00052b0: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00052b4: eb00e5b3 bl a003e988 <__errno> <== NOT EXECUTED a00052b8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00052bc: e5803000 str r3, [r0] <== NOT EXECUTED a00052c0: e3e05000 mvn r5, #0 <== NOT EXECUTED a00052c4: eaffffe2 b a0005254 <== NOT EXECUTED a0025118 : int chown( const char *path, uid_t owner, gid_t group ) { a0025118: e92d40f0 push {r4, r5, r6, r7, lr} a002511c: e1a01801 lsl r1, r1, #16 a0025120: e1a02802 lsl r2, r2, #16 a0025124: e24dd018 sub sp, sp, #24 a0025128: e1a06821 lsr r6, r1, #16 a002512c: e1a05822 lsr r5, r2, #16 a0025130: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) a0025134: eb00809e bl a00453b4 a0025138: e28d4004 add r4, sp, #4 a002513c: e1a01000 mov r1, r0 a0025140: e3a0c001 mov ip, #1 a0025144: e1a00007 mov r0, r7 a0025148: e3a02000 mov r2, #0 a002514c: e1a03004 mov r3, r4 a0025150: e58dc000 str ip, [sp] a0025154: ebff80ea bl a0005504 a0025158: e3500000 cmp r0, #0 a002515c: 1a00001b bne a00251d0 return -1; if ( !loc.ops->chown_h ) { a0025160: e59d2010 ldr r2, [sp, #16] a0025164: e5923018 ldr r3, [r2, #24] a0025168: e3530000 cmp r3, #0 a002516c: 0a00000f beq a00251b0 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); a0025170: e1a02005 mov r2, r5 a0025174: e1a01006 mov r1, r6 a0025178: e1a00004 mov r0, r4 a002517c: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0025180: e59d3010 ldr r3, [sp, #16] if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); a0025184: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0025188: e3530000 cmp r3, #0 a002518c: 0a000004 beq a00251a4 a0025190: e593301c ldr r3, [r3, #28] a0025194: e3530000 cmp r3, #0 a0025198: 0a000001 beq a00251a4 a002519c: e1a00004 mov r0, r4 a00251a0: e12fff33 blx r3 return result; } a00251a4: e1a00005 mov r0, r5 a00251a8: e28dd018 add sp, sp, #24 a00251ac: 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 ); a00251b0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a00251b4: e3530000 cmp r3, #0 <== NOT EXECUTED a00251b8: 0a000001 beq a00251c4 <== NOT EXECUTED a00251bc: e1a00004 mov r0, r4 <== NOT EXECUTED a00251c0: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00251c4: eb0065ef bl a003e988 <__errno> <== NOT EXECUTED a00251c8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00251cc: e5803000 str r3, [r0] <== NOT EXECUTED a00251d0: e3e05000 mvn r5, #0 a00251d4: eafffff2 b a00251a4 a00251d8 : #include int chroot( const char *pathname ) { a00251d8: 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) { a00251dc: e59f50d4 ldr r5, [pc, #212] ; a00252b8 a00251e0: e59f30d4 ldr r3, [pc, #212] ; a00252bc #include int chroot( const char *pathname ) { a00251e4: e24dd018 sub sp, sp, #24 int result; rtems_filesystem_location_info_t loc; /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { a00251e8: e5954000 ldr r4, [r5] #include int chroot( const char *pathname ) { a00251ec: 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) { a00251f0: e1540003 cmp r4, r3 a00251f4: 0a00001f beq a0025278 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); a00251f8: e1a00006 mov r0, r6 a00251fc: ebffff84 bl a0025014 if (result) { a0025200: e250c000 subs ip, r0, #0 a0025204: 1a000024 bne a002529c rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a0025208: e28d4004 add r4, sp, #4 a002520c: e1a0200c mov r2, ip a0025210: e59f00a8 ldr r0, [pc, #168] ; a00252c0 a0025214: e3a01001 mov r1, #1 a0025218: e1a03004 mov r3, r4 a002521c: e58dc000 str ip, [sp] a0025220: ebff80b7 bl a0005504 a0025224: e3500000 cmp r0, #0 a0025228: 1a00001b bne a002529c /* 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); a002522c: e595c000 ldr ip, [r5] a0025230: e59c3024 ldr r3, [ip, #36] ; 0x24 a0025234: e3530000 cmp r3, #0 a0025238: 0a000006 beq a0025258 a002523c: e593301c ldr r3, [r3, #28] a0025240: e3530000 cmp r3, #0 a0025244: 0a000003 beq a0025258 a0025248: e28c0018 add r0, ip, #24 a002524c: e12fff33 blx r3 a0025250: e59f3060 ldr r3, [pc, #96] ; a00252b8 a0025254: e593c000 ldr ip, [r3] rtems_filesystem_root = loc; a0025258: e28cc018 add ip, ip, #24 a002525c: e8b4000f ldm r4!, {r0, r1, r2, r3} a0025260: e8ac000f stmia ip!, {r0, r1, r2, r3} a0025264: e5943000 ldr r3, [r4] a0025268: e3a00000 mov r0, #0 a002526c: e58c3000 str r3, [ip] return 0; } a0025270: e28dd018 add sp, sp, #24 a0025274: 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*/ a0025278: eb00061f bl a0026afc if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ a002527c: e5953000 ldr r3, [r5] a0025280: e1530004 cmp r3, r4 a0025284: 1affffdb bne a00251f8 rtems_set_errno_and_return_minus_one( ENOTSUP ); a0025288: eb0065be bl a003e988 <__errno> <== NOT EXECUTED a002528c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0025290: e5803000 str r3, [r0] <== NOT EXECUTED a0025294: e3e00000 mvn r0, #0 <== NOT EXECUTED a0025298: eafffff4 b a0025270 <== 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 ); a002529c: eb0065b9 bl a003e988 <__errno> <== NOT EXECUTED a00252a0: e1a04000 mov r4, r0 <== NOT EXECUTED a00252a4: eb0065b7 bl a003e988 <__errno> <== NOT EXECUTED a00252a8: e5903000 ldr r3, [r0] <== NOT EXECUTED a00252ac: e3e00000 mvn r0, #0 <== NOT EXECUTED a00252b0: e5843000 str r3, [r4] <== NOT EXECUTED a00252b4: eaffffed b a0025270 <== NOT EXECUTED a00252b8: a0058c2c .word 0xa0058c2c a00252bc: a00676c8 .word 0xa00676c8 a00252c0: a005e528 .word 0xa005e528 a0007e74 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { a0007e74: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0007e78: e5902038 ldr r2, [r0, #56] ; 0x38 #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { a0007e7c: e24dd00c sub sp, sp, #12 rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = 0; a0007e80: e3a01000 mov r1, #0 args.mode = 0; a0007e84: e58d1008 str r1, [sp, #8] rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = 0; a0007e88: e58d1004 str r1, [sp, #4] #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { a0007e8c: e1a03000 mov r3, r0 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( a0007e90: e592100c ldr r1, [r2, #12] a0007e94: e5920008 ldr r0, [r2, #8] a0007e98: e1a0200d mov r2, sp rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a0007e9c: e58d3000 str r3, [sp] args.flags = 0; args.mode = 0; status = rtems_io_close( a0007ea0: eb00058c bl a00094d8 np->major, np->minor, (void *) &args ); if ( status ) { a0007ea4: e2503000 subs r3, r0, #0 a0007ea8: 01a00003 moveq r0, r3 a0007eac: 0a000000 beq a0007eb4 return rtems_deviceio_errno(status); a0007eb0: eb00003e bl a0007fb0 <== NOT EXECUTED } return 0; } a0007eb4: e28dd00c add sp, sp, #12 a0007eb8: e8bd8000 pop {pc} a0007ec8 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { a0007ec8: 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; a0007ecc: e5936000 ldr r6, [r3] const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { a0007ed0: e24dd004 sub sp, sp, #4 a0007ed4: e58d3000 str r3, [sp] 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) a0007ed8: e3560000 cmp r6, #0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { a0007edc: e1a0a000 mov sl, r0 a0007ee0: 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) a0007ee4: 0a000028 beq a0007f8c rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { a0007ee8: e59f30b0 ldr r3, [pc, #176] ; a0007fa0 a0007eec: e5938000 ldr r8, [r3] a0007ef0: 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 ); a0007ef4: 13a03000 movne r3, #0 a0007ef8: 11a04003 movne r4, r3 for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) a0007efc: 13a09014 movne r9, #20 /* 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++) { a0007f00: 0a000010 beq a0007f48 if (!device_name_table[i].device_name) a0007f04: e00b0399 mul fp, r9, r3 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) a0007f08: e1a0000a mov r0, sl device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) a0007f0c: e796500b ldr r5, [r6, fp] continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) a0007f10: e1a02007 mov r2, r7 /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { a0007f14: e2844001 add r4, r4, #1 if (!device_name_table[i].device_name) a0007f18: e2551000 subs r1, r5, #0 a0007f1c: e086b00b add fp, r6, fp a0007f20: 0a000005 beq a0007f3c continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) a0007f24: eb000fdb bl a000be98 a0007f28: e3500000 cmp r0, #0 a0007f2c: 1a000002 bne a0007f3c continue; if (device_name_table[i].device_name[pathnamelen] != '\0') a0007f30: e7d50007 ldrb r0, [r5, r7] a0007f34: e3500000 cmp r0, #0 a0007f38: 0a000007 beq a0007f5c /* 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++) { a0007f3c: e1580004 cmp r8, r4 a0007f40: e1a03004 mov r3, r4 a0007f44: 8affffee bhi a0007f04 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); a0007f48: eb000c1c bl a000afc0 <__errno> a0007f4c: e3a03002 mov r3, #2 a0007f50: e5803000 str r3, [r0] a0007f54: e3e00000 mvn r0, #0 a0007f58: ea000009 b a0007f84 /* 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; a0007f5c: e59f3040 ldr r3, [pc, #64] ; a0007fa4 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; a0007f60: e59d1000 ldr r1, [sp] pathloc->handlers = &devFS_file_handlers; a0007f64: e59f203c ldr r2, [pc, #60] ; a0007fa8 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; a0007f68: e5933000 ldr r3, [r3] if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; a0007f6c: e581b000 str fp, [r1] pathloc->handlers = &devFS_file_handlers; a0007f70: e5812008 str r2, [r1, #8] pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; a0007f74: e5933028 ldr r3, [r3, #40] ; 0x28 continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; a0007f78: e59f202c ldr r2, [pc, #44] ; a0007fac pathloc->mt_entry = rtems_filesystem_root.mt_entry; a0007f7c: e5813010 str r3, [r1, #16] continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; a0007f80: e581200c str r2, [r1, #12] return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } a0007f84: e28dd004 add sp, sp, #4 a0007f88: 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 ); a0007f8c: eb000c0b bl a000afc0 <__errno> <== NOT EXECUTED a0007f90: e3a0300e mov r3, #14 <== NOT EXECUTED a0007f94: e5803000 str r3, [r0] <== NOT EXECUTED a0007f98: e3e00000 mvn r0, #0 <== NOT EXECUTED a0007f9c: eafffff8 b a0007f84 <== NOT EXECUTED a0007fa0: a000d924 .word 0xa000d924 a0007fa4: a000db4c .word 0xa000db4c a0007fa8: a000dab8 .word 0xa000dab8 a0007fac: a000daf0 .word 0xa000daf0 a0000c34 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a0000c34: e92d40f0 push {r4, r5, r6, r7, lr} rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( a0000c38: e59f7058 ldr r7, [pc, #88] ; a0000c98 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a0000c3c: 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( a0000c40: e3a06014 mov r6, #20 a0000c44: e5970000 ldr r0, [r7] a0000c48: e0000096 mul r0, r6, r0 a0000c4c: eb001b6b bl a0007a00 <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) a0000c50: e2505000 subs r5, r0, #0 a0000c54: 0a00000a beq a0000c84 rtems_set_errno_and_return_minus_one( ENOMEM ); memset( a0000c58: e5972000 ldr r2, [r7] a0000c5c: e3a01000 mov r1, #0 a0000c60: e0020296 mul r2, r6, r2 a0000c64: eb002b03 bl a000b878 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; a0000c68: e59f302c ldr r3, [pc, #44] ; a0000c9c 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; a0000c6c: e584501c str r5, [r4, #28] a0000c70: e3a00000 mov r0, #0 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; temp_mt_entry->mt_fs_root.ops = &devFS_ops; a0000c74: e2832038 add r2, r3, #56 ; 0x38 a0000c78: 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; a0000c7c: e5843024 str r3, [r4, #36] ; 0x24 /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } a0000c80: e8bd80f0 pop {r4, r5, r6, r7, 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 ); a0000c84: eb0028cd bl a000afc0 <__errno> <== NOT EXECUTED a0000c88: e3a0300c mov r3, #12 <== NOT EXECUTED a0000c8c: e5803000 str r3, [r0] <== NOT EXECUTED a0000c90: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000c94: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0000c98: a000d924 .word 0xa000d924 a0000c9c: a000dab8 .word 0xa000dab8 a0000e1c : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0000e1c: e52de004 push {lr} ; (str lr, [sp, #-4]!) a0000e20: e1a03000 mov r3, r0 rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000e24: e5900038 ldr r0, [r0, #56] ; 0x38 int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0000e28: e24dd010 sub sp, sp, #16 rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.command = command; a0000e2c: e98d0006 stmib sp, {r1, r2} args.buffer = buffer; status = rtems_io_control( a0000e30: e590100c ldr r1, [r0, #12] a0000e34: e1a0200d mov r2, sp a0000e38: 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; a0000e3c: e58d3000 str r3, [sp] args.command = command; args.buffer = buffer; status = rtems_io_control( a0000e40: eb000fac bl a0004cf8 np->major, np->minor, (void *) &args ); if ( status ) a0000e44: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; a0000e48: 059d000c ldreq r0, [sp, #12] np->major, np->minor, (void *) &args ); if ( status ) a0000e4c: 1a000001 bne a0000e58 return rtems_deviceio_errno(status); return args.ioctl_return; } a0000e50: e28dd010 add sp, sp, #16 a0000e54: e8bd8000 pop {pc} np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a0000e58: eb001c54 bl a0007fb0 <== NOT EXECUTED a0000e5c: eafffffb b a0000e50 <== NOT EXECUTED a0000ca0 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { a0000ca0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0000ca4: 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') && a0000ca8: e5d00000 ldrb r0, [r0] const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { a0000cac: e24dd004 sub sp, sp, #4 a0000cb0: e1a05001 mov r5, r1 * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && a0000cb4: e3500064 cmp r0, #100 ; 0x64 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { a0000cb8: e58d2000 str r2, [sp] a0000cbc: 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') && a0000cc0: 0a000039 beq a0000dac (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) a0000cc4: e2053a0f and r3, r5, #61440 ; 0xf000 a0000cc8: e3530a02 cmp r3, #8192 ; 0x2000 a0000ccc: 13530a06 cmpne r3, #24576 ; 0x6000 a0000cd0: 03a03000 moveq r3, #0 a0000cd4: 13a03001 movne r3, #1 a0000cd8: 1a00003d bne a0000dd4 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; a0000cdc: e59d2028 ldr r2, [sp, #40] ; 0x28 a0000ce0: e5927000 ldr r7, [r2] if (!device_name_table) a0000ce4: e3570000 cmp r7, #0 a0000ce8: 0a000043 beq a0000dfc rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ a0000cec: e59f211c ldr r2, [pc, #284] ; a0000e10 a0000cf0: e5928000 ldr r8, [r2] a0000cf4: e3580000 cmp r8, #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 ); a0000cf8: 13e09000 mvnne r9, #0 a0000cfc: 11a06003 movne r6, r3 for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) a0000d00: 13a0a014 movne sl, #20 /* 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++){ a0000d04: 1a000007 bne a0000d28 a0000d08: ea000036 b a0000de8 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) a0000d0c: eb002b81 bl a000bb18 <== NOT EXECUTED a0000d10: e3500000 cmp r0, #0 <== NOT EXECUTED a0000d14: 0a00001f beq a0000d98 <== 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++){ a0000d18: e2866001 add r6, r6, #1 <== NOT EXECUTED a0000d1c: e1560008 cmp r6, r8 <== NOT EXECUTED a0000d20: e1a03006 mov r3, r6 <== NOT EXECUTED a0000d24: 2a000009 bcs a0000d50 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) a0000d28: e002039a mul r2, sl, r3 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) a0000d2c: 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) a0000d30: e7973002 ldr r3, [r7, r2] a0000d34: e2531000 subs r1, r3, #0 a0000d38: 1afffff3 bne a0000d0c slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); a0000d3c: e1a09006 mov r9, r6 /* 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++){ a0000d40: e2866001 add r6, r6, #1 a0000d44: e1560008 cmp r6, r8 a0000d48: e1a03006 mov r3, r6 a0000d4c: 3afffff5 bcc a0000d28 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) a0000d50: e3790001 cmn r9, #1 a0000d54: 0a000023 beq a0000de8 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0000d58: e10f6000 mrs r6, CPSR a0000d5c: e3863080 orr r3, r6, #128 ; 0x80 a0000d60: e129f003 msr CPSR_fc, r3 rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; a0000d64: e3a02014 mov r2, #20 a0000d68: e0030992 mul r3, r2, r9 device_name_table[slot].device_name_length = strlen(path); a0000d6c: e1a00004 mov r0, r4 if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; a0000d70: e7874003 str r4, [r7, r3] a0000d74: e0877003 add r7, r7, r3 device_name_table[slot].device_name_length = strlen(path); a0000d78: eb002c2e bl a000be38 device_name_table[slot].major = major; a0000d7c: e59d3000 ldr r3, [sp] device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; a0000d80: e5875010 str r5, [r7, #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); a0000d84: e9870809 stmib r7, {r0, r3, fp} static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0000d88: e129f006 msr CPSR_fc, r6 a0000d8c: e3a00000 mov r0, #0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } a0000d90: e28dd004 add sp, sp, #4 a0000d94: 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 ); a0000d98: eb002888 bl a000afc0 <__errno> <== NOT EXECUTED a0000d9c: e3a03011 mov r3, #17 <== NOT EXECUTED a0000da0: e5803000 str r3, [r0] <== NOT EXECUTED a0000da4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000da8: eafffff8 b a0000d90 <== 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') && a0000dac: e5d43001 ldrb r3, [r4, #1] a0000db0: e3530065 cmp r3, #101 ; 0x65 a0000db4: 1affffc2 bne a0000cc4 (path[2] == 'v') && (path[3] == '\0')) a0000db8: e5d43002 ldrb r3, [r4, #2] a0000dbc: e3530076 cmp r3, #118 ; 0x76 a0000dc0: 1affffbf bne a0000cc4 a0000dc4: e5d40003 ldrb r0, [r4, #3] a0000dc8: e3500000 cmp r0, #0 a0000dcc: 1affffbc bne a0000cc4 a0000dd0: eaffffee b a0000d90 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 ); a0000dd4: eb002879 bl a000afc0 <__errno> <== NOT EXECUTED a0000dd8: e3a03016 mov r3, #22 <== NOT EXECUTED a0000ddc: e5803000 str r3, [r0] <== NOT EXECUTED a0000de0: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000de4: eaffffe9 b a0000d90 <== 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 ); a0000de8: eb002874 bl a000afc0 <__errno> <== NOT EXECUTED a0000dec: e3a0300c mov r3, #12 <== NOT EXECUTED a0000df0: e5803000 str r3, [r0] <== NOT EXECUTED a0000df4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000df8: eaffffe4 b a0000d90 <== 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 ); a0000dfc: eb00286f bl a000afc0 <__errno> <== NOT EXECUTED a0000e00: e3a0300e mov r3, #14 <== NOT EXECUTED a0000e04: e5803000 str r3, [r0] <== NOT EXECUTED a0000e08: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000e0c: eaffffdf b a0000d90 <== NOT EXECUTED a0000e10: a000d924 .word 0xa000d924 a0000e60 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0000e60: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; a0000e64: e5901014 ldr r1, [r0, #20] { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000e68: e5902038 ldr r2, [r0, #56] ; 0x38 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0000e6c: e24dd00c sub sp, sp, #12 np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; args.mode = mode; a0000e70: e98d000a stmib sp, {r1, r3} rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0000e74: e1a0c000 mov ip, r0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( a0000e78: e592100c ldr r1, [r2, #12] a0000e7c: e5920008 ldr r0, [r2, #8] a0000e80: e1a0200d mov r2, sp rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a0000e84: e58dc000 str ip, [sp] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( a0000e88: eb000fe7 bl a0004e2c np->major, np->minor, (void *) &args ); if ( status ) a0000e8c: e2503000 subs r3, r0, #0 a0000e90: 01a00003 moveq r0, r3 a0000e94: 0a000000 beq a0000e9c return rtems_deviceio_errno(status); a0000e98: eb001c44 bl a0007fb0 <== NOT EXECUTED return 0; } a0000e9c: e28dd00c add sp, sp, #12 a0000ea0: e8bd8000 pop {pc} a0000ea4 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0000ea4: e92d4010 push {r4, lr} <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; a0000ea8: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0000eac: e24dd01c sub sp, sp, #28 <== NOT EXECUTED a0000eb0: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000eb4: e5900038 ldr r0, [r0, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; a0000eb8: e58d2010 str r2, [sp, #16] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; a0000ebc: e3a02000 mov r2, #0 <== NOT EXECUTED a0000ec0: e58d2018 str r2, [sp, #24] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; a0000ec4: e58dc014 str ip, [sp, #20] <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; a0000ec8: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( a0000ecc: e1a0200d mov r2, sp <== NOT EXECUTED a0000ed0: e590100c ldr r1, [r0, #12] <== NOT EXECUTED a0000ed4: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a0000ed8: e58d3000 str r3, [sp] <== NOT EXECUTED args.offset = iop->offset; a0000edc: e283400c add r4, r3, #12 <== NOT EXECUTED a0000ee0: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED a0000ee4: e98d0018 stmib sp, {r3, r4} <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( a0000ee8: eb000fe3 bl a0004e7c <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) a0000eec: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a0000ef0: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) a0000ef4: 1a000001 bne a0000f00 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } a0000ef8: e28dd01c add sp, sp, #28 <== NOT EXECUTED a0000efc: e8bd8010 pop {r4, pc} <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a0000f00: eb001c2a bl a0007fb0 <== NOT EXECUTED a0000f04: eafffffb b a0000ef8 <== NOT EXECUTED a0000f08 : struct stat *buf ) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; a0000f08: e5903000 ldr r3, [r0] int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { a0000f0c: 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) a0000f10: e3530000 cmp r3, #0 a0000f14: 0a000007 beq a0000f38 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; a0000f18: 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 ); a0000f1c: e593200c ldr r2, [r3, #12] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; a0000f20: e5933008 ldr r3, [r3, #8] buf->st_mode = the_dev->mode; a0000f24: 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 ); a0000f28: e581201c str r2, [r1, #28] a0000f2c: e5813018 str r3, [r1, #24] buf->st_mode = the_dev->mode; a0000f30: e3a00000 mov r0, #0 return 0; } a0000f34: 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 ); a0000f38: eb002820 bl a000afc0 <__errno> <== NOT EXECUTED a0000f3c: e3a0300e mov r3, #14 <== NOT EXECUTED a0000f40: e5803000 str r3, [r0] <== NOT EXECUTED a0000f44: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000f48: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0000f4c : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0000f4c: e92d4010 push {r4, lr} args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a0000f50: e590c014 ldr ip, [r0, #20] ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0000f54: e24dd01c sub sp, sp, #28 a0000f58: e1a03000 mov r3, r0 rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000f5c: e5900038 ldr r0, [r0, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; a0000f60: e58d2010 str r2, [sp, #16] args.flags = iop->flags; args.bytes_moved = 0; a0000f64: e3a02000 mov r2, #0 a0000f68: e58d2018 str r2, [sp, #24] args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a0000f6c: e58dc014 str ip, [sp, #20] np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; a0000f70: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a0000f74: e1a0200d mov r2, sp a0000f78: e590100c ldr r1, [r0, #12] a0000f7c: 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; a0000f80: e58d3000 str r3, [sp] args.offset = iop->offset; a0000f84: e283400c add r4, r3, #12 a0000f88: e8940018 ldm r4, {r3, r4} a0000f8c: e98d0018 stmib sp, {r3, r4} args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a0000f90: eb000fcd bl a0004ecc np->major, np->minor, (void *) &args ); if ( status ) a0000f94: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a0000f98: 059d0018 ldreq r0, [sp, #24] np->major, np->minor, (void *) &args ); if ( status ) a0000f9c: 1a000001 bne a0000fa8 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } a0000fa0: e28dd01c add sp, sp, #28 a0000fa4: e8bd8010 pop {r4, pc} np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a0000fa8: eb001c00 bl a0007fb0 <== NOT EXECUTED a0000fac: eafffffb b a0000fa0 <== NOT EXECUTED a000b218 : */ int device_close( rtems_libio_t *iop ) { a000b218: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000b21c: e5903038 ldr r3, [r0, #56] ; 0x38 */ int device_close( rtems_libio_t *iop ) { a000b220: e24dd00c sub sp, sp, #12 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; a000b224: e3a02000 mov r2, #0 args.mode = 0; a000b228: e58d2008 str r2, [sp, #8] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; a000b22c: e88d0005 stm sp, {r0, r2} args.mode = 0; status = rtems_io_close( a000b230: e5931054 ldr r1, [r3, #84] ; 0x54 a000b234: e5930050 ldr r0, [r3, #80] ; 0x50 a000b238: e1a0200d mov r2, sp a000b23c: eb000559 bl a000c7a8 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { a000b240: e2503000 subs r3, r0, #0 a000b244: 01a00003 moveq r0, r3 a000b248: 0a000000 beq a000b250 return rtems_deviceio_errno(status); a000b24c: eb0006c5 bl a000cd68 <== NOT EXECUTED } return 0; } a000b250: e28dd00c add sp, sp, #12 a000b254: e8bd8000 pop {pc} a000b11c : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a000b11c: e52de004 push {lr} ; (str lr, [sp, #-4]!) args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; a000b120: e5903038 ldr r3, [r0, #56] ; 0x38 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a000b124: e24dd010 sub sp, sp, #16 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; a000b128: e88d0007 stm sp, {r0, r1, r2} the_jnode = iop->file_info; status = rtems_io_control( a000b12c: e5931054 ldr r1, [r3, #84] ; 0x54 a000b130: e5930050 ldr r0, [r3, #80] ; 0x50 a000b134: e1a0200d mov r2, sp a000b138: eb0005ae bl a000c7f8 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b13c: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; a000b140: 059d000c ldreq r0, [sp, #12] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b144: 1a000001 bne a000b150 return rtems_deviceio_errno(status); return args.ioctl_return; } a000b148: e28dd010 add sp, sp, #16 a000b14c: e8bd8000 pop {pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a000b150: eb000704 bl a000cd68 <== NOT EXECUTED a000b154: eafffffb b a000b148 <== NOT EXECUTED a000b258 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a000b258: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; a000b25c: e5901014 ldr r1, [r0, #20] { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000b260: e5902038 ldr r2, [r0, #56] ; 0x38 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a000b264: e24dd00c sub sp, sp, #12 the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; args.mode = mode; a000b268: e88d000b stm sp, {r0, r1, r3} status = rtems_io_open( a000b26c: e5921054 ldr r1, [r2, #84] ; 0x54 a000b270: e5920050 ldr r0, [r2, #80] ; 0x50 a000b274: e1a0200d mov r2, sp a000b278: eb000572 bl a000c848 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b27c: e2503000 subs r3, r0, #0 a000b280: 01a00003 moveq r0, r3 a000b284: 0a000000 beq a000b28c return rtems_deviceio_errno(status); a000b288: eb0006b6 bl a000cd68 <== NOT EXECUTED return 0; } a000b28c: e28dd00c add sp, sp, #12 a000b290: e8bd8000 pop {pc} a000b1b8 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000b1b8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a000b1bc: e280500c add r5, r0, #12 <== NOT EXECUTED a000b1c0: e8950030 ldm r5, {r4, r5} <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000b1c4: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; a000b1c8: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000b1cc: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; a000b1d0: e98d0030 stmib sp, {r4, r5} <== NOT EXECUTED args.buffer = buffer; args.count = count; a000b1d4: e58d2010 str r2, [sp, #16] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; a000b1d8: e3a02000 mov r2, #0 <== NOT EXECUTED a000b1dc: e58d2018 str r2, [sp, #24] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; a000b1e0: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; a000b1e4: e58dc014 str ip, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; a000b1e8: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( a000b1ec: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED a000b1f0: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED a000b1f4: e1a0200d mov r2, sp <== NOT EXECUTED a000b1f8: eb0005a6 bl a000c898 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b1fc: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a000b200: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b204: 1a000001 bne a000b210 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } a000b208: e28dd01c add sp, sp, #28 <== NOT EXECUTED a000b20c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a000b210: eb0006d4 bl a000cd68 <== NOT EXECUTED a000b214: eafffffb b a000b208 <== NOT EXECUTED a000b158 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a000b158: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a000b15c: e280500c add r5, r0, #12 a000b160: e8950030 ldm r5, {r4, r5} ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a000b164: e24dd01c sub sp, sp, #28 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a000b168: e590c014 ldr ip, [r0, #20] { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000b16c: e5903038 ldr r3, [r0, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; a000b170: e98d0030 stmib sp, {r4, r5} args.buffer = (void *) buffer; args.count = count; a000b174: e58d2010 str r2, [sp, #16] args.flags = iop->flags; args.bytes_moved = 0; a000b178: e3a02000 mov r2, #0 a000b17c: e58d2018 str r2, [sp, #24] the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; a000b180: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; a000b184: e58dc014 str ip, [sp, #20] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; a000b188: e58d0000 str r0, [sp] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a000b18c: e5931054 ldr r1, [r3, #84] ; 0x54 a000b190: e5930050 ldr r0, [r3, #80] ; 0x50 a000b194: e1a0200d mov r2, sp a000b198: eb0005d2 bl a000c8e8 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b19c: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a000b1a0: 059d0018 ldreq r0, [sp, #24] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000b1a4: 1a000001 bne a000b1b0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } a000b1a8: e28dd01c add sp, sp, #28 a000b1ac: e8bd8030 pop {r4, r5, pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a000b1b0: eb0006ec bl a000cd68 <== NOT EXECUTED a000b1b4: eafffffb b a000b1a8 <== NOT EXECUTED a0002ce8 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { a0002ce8: e59030b4 ldr r3, [r0, #180] ; 0xb4 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { a0002cec: e92d4030 push {r4, r5, lr} rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { a0002cf0: e3530000 cmp r3, #0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { a0002cf4: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { a0002cf8: 0a000017 beq a0002d5c static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002cfc: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0002d00: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0002d04: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { a0002d08: e5901084 ldr r1, [r0, #132] ; 0x84 <== NOT EXECUTED a0002d0c: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED a0002d10: e1510002 cmp r1, r2 <== NOT EXECUTED a0002d14: 0a00000f beq a0002d58 <== NOT EXECUTED tty->rawOutBufState = rob_wait; a0002d18: e3a05002 mov r5, #2 <== NOT EXECUTED a0002d1c: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002d20: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, a0002d24: e3a01000 mov r1, #0 <== NOT EXECUTED a0002d28: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0002d2c: e1a02001 mov r2, r1 <== NOT EXECUTED a0002d30: eb000637 bl a0004614 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) a0002d34: e3500000 cmp r0, #0 <== NOT EXECUTED a0002d38: 1a000008 bne a0002d60 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002d3c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0002d40: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0002d44: 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) { a0002d48: e5941084 ldr r1, [r4, #132] ; 0x84 <== NOT EXECUTED a0002d4c: e5942080 ldr r2, [r4, #128] ; 0x80 <== NOT EXECUTED a0002d50: e1510002 cmp r1, r2 <== NOT EXECUTED a0002d54: 1afffff0 bne a0002d1c <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002d58: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0002d5c: e8bd8030 pop {r4, r5, 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); a0002d60: eb0007cc bl a0004c98 <== NOT EXECUTED a0002024 : int dup2( int fildes, int fildes2 ) { a0002024: e92d4070 push {r4, r5, r6, lr} a0002028: e24dd048 sub sp, sp, #72 ; 0x48 a000202c: e1a05001 mov r5, r1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); a0002030: e1a0100d mov r1, sp int dup2( int fildes, int fildes2 ) { a0002034: e1a06000 mov r6, r0 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); a0002038: eb0001bb bl a000272c if ( status == -1 ) a000203c: e3700001 cmn r0, #1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); a0002040: e1a0400d mov r4, sp if ( status == -1 ) a0002044: 1a000002 bne a0002054 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); a0002048: e3e00000 mvn r0, #0 } a000204c: e28dd048 add sp, sp, #72 ; 0x48 a0002050: e8bd8070 pop {r4, r5, r6, pc} /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); a0002054: e1a0100d mov r1, sp a0002058: e1a00005 mov r0, r5 a000205c: eb0001b2 bl a000272c if ( status == -1 ) a0002060: e3700001 cmn r0, #1 a0002064: 0afffff7 beq a0002048 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); a0002068: e1a00006 mov r0, r6 <== NOT EXECUTED a000206c: e1a02005 mov r2, r5 <== NOT EXECUTED a0002070: e3a01000 mov r1, #0 <== NOT EXECUTED a0002074: eb00009b bl a00022e8 <== NOT EXECUTED a0002078: eafffff3 b a000204c <== NOT EXECUTED a0002760 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { a0002760: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { a0002764: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { a0002768: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000276c: e1a04001 mov r4, r1 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { a0002770: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { a0002774: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { a0002778: 0a000007 beq a000279c <== NOT EXECUTED a000277c: e59f2060 ldr r2, [pc, #96] ; a00027e4 <== NOT EXECUTED a0002780: e2503009 subs r3, r0, #9 <== NOT EXECUTED a0002784: 13a03001 movne r3, #1 <== NOT EXECUTED a0002788: e5922000 ldr r2, [r2] <== NOT EXECUTED a000278c: e0822000 add r2, r2, r0 <== NOT EXECUTED a0002790: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a0002794: e01332a2 ands r3, r3, r2, lsr #5 <== NOT EXECUTED a0002798: 1a000003 bne a00027ac <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); a000279c: e1a01004 mov r1, r4 <== NOT EXECUTED a00027a0: ebffff92 bl a00025f0 <== NOT EXECUTED } } a00027a4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00027a8: 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')) { a00027ac: e350000a cmp r0, #10 <== NOT EXECUTED a00027b0: 0afffff9 beq a000279c <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; a00027b4: 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] = '^'; a00027b8: e3a0c05e mov ip, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); a00027bc: e1a0000d mov r0, sp <== NOT EXECUTED a00027c0: e3a01002 mov r1, #2 <== NOT EXECUTED a00027c4: 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; a00027c8: 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] = '^'; a00027cc: e5cdc000 strb ip, [sp] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); a00027d0: ebffff3e bl a00024d0 <== NOT EXECUTED tty->column += 2; a00027d4: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00027d8: e2833002 add r3, r3, #2 <== NOT EXECUTED a00027dc: 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')) { a00027e0: eaffffef b a00027a4 <== NOT EXECUTED a00027e4: a0019090 .word 0xa0019090 a00258f8 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) a00258f8: e59f300c ldr r3, [pc, #12] ; a002590c <== NOT EXECUTED a00258fc: e5930000 ldr r0, [r3] <== NOT EXECUTED a0025900: e3500000 cmp r0, #0 <== NOT EXECUTED a0025904: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); a0025908: ea00646b b a003eabc <== NOT EXECUTED a002590c: a0067384 .word 0xa0067384 a0025910 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) a0025910: e59f300c ldr r3, [pc, #12] ; a0025924 <== NOT EXECUTED a0025914: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a0025918: e3500000 cmp r0, #0 <== NOT EXECUTED a002591c: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); a0025920: ea006465 b a003eabc <== NOT EXECUTED a0025924: a0067384 .word 0xa0067384 a00027e8 : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) a00027e8: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { a00027ec: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED if (tty->ccount == 0) a00027f0: 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) { a00027f4: e1a04000 mov r4, r0 <== NOT EXECUTED a00027f8: e1a06001 mov r6, r1 <== NOT EXECUTED if (tty->ccount == 0) a00027fc: 0a000027 beq a00028a0 <== NOT EXECUTED return; if (lineFlag) { a0002800: e3510000 cmp r1, #0 <== NOT EXECUTED a0002804: 0590203c ldreq r2, [r0, #60] ; 0x3c <== NOT EXECUTED a0002808: 1a000025 bne a00028a4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { a000280c: e59f71d0 ldr r7, [pc, #464] ; a00029e4 <== NOT EXECUTED a0002810: ea000007 b a0002834 <== NOT EXECUTED a0002814: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED a0002818: 1a000059 bne a0002984 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) a000281c: e3560000 cmp r6, #0 <== NOT EXECUTED a0002820: 0a00001e beq a00028a0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { a0002824: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0002828: e3530000 cmp r3, #0 <== NOT EXECUTED a000282c: 0a00001b beq a00028a0 <== NOT EXECUTED a0002830: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; a0002834: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a0002838: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000283c: e5843020 str r3, [r4, #32] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { a0002840: e3120008 tst r2, #8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; a0002844: e7d05003 ldrb r5, [r0, r3] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { a0002848: 0afffff3 beq a000281c <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { a000284c: e3560000 cmp r6, #0 <== NOT EXECUTED a0002850: 1a000001 bne a000285c <== NOT EXECUTED a0002854: e3120010 tst r2, #16 <== NOT EXECUTED a0002858: 0a000045 beq a0002974 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { a000285c: e3550009 cmp r5, #9 <== NOT EXECUTED a0002860: 0a00001f beq a00028e4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { a0002864: e5973000 ldr r3, [r7] <== NOT EXECUTED a0002868: e2855001 add r5, r5, #1 <== NOT EXECUTED a000286c: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED a0002870: e3130020 tst r3, #32 <== NOT EXECUTED a0002874: 1affffe6 bne a0002814 <== 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); a0002878: e59f0168 ldr r0, [pc, #360] ; a00029e8 <== NOT EXECUTED a000287c: e3a01003 mov r1, #3 <== NOT EXECUTED a0002880: e1a02004 mov r2, r4 <== NOT EXECUTED a0002884: ebffff11 bl a00024d0 <== NOT EXECUTED if (tty->column) a0002888: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a000288c: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a0002890: 12433001 subne r3, r3, #1 <== NOT EXECUTED a0002894: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } } } if (!lineFlag) a0002898: e3560000 cmp r6, #0 <== NOT EXECUTED a000289c: 1affffe0 bne a0002824 <== NOT EXECUTED a00028a0: 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)) { a00028a4: e590203c ldr r2, [r0, #60] ; 0x3c <== NOT EXECUTED a00028a8: e2121008 ands r1, r2, #8 <== NOT EXECUTED a00028ac: 0a00002e beq a000296c <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { a00028b0: e2121010 ands r1, r2, #16 <== NOT EXECUTED a00028b4: 1affffd4 bne a000280c <== NOT EXECUTED tty->ccount = 0; a00028b8: e5801020 str r1, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); a00028bc: e5d00044 ldrb r0, [r0, #68] ; 0x44 <== NOT EXECUTED a00028c0: e1a01004 mov r1, r4 <== NOT EXECUTED a00028c4: ebffffa5 bl a0002760 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) a00028c8: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a00028cc: e3130020 tst r3, #32 <== NOT EXECUTED a00028d0: 0afffff2 beq a00028a0 <== NOT EXECUTED echo ('\n', tty); a00028d4: e1a01004 mov r1, r4 <== NOT EXECUTED a00028d8: e3a0000a mov r0, #10 <== NOT EXECUTED } } if (!lineFlag) break; } } a00028dc: 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); a00028e0: eaffff9e b a0002760 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { a00028e4: 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; a00028e8: e594502c ldr r5, [r4, #44] ; 0x2c <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { a00028ec: 0a000011 beq a0002938 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { a00028f0: e5978000 ldr r8, [r7] <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) a00028f4: 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)) { a00028f8: e3a02000 mov r2, #0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; a00028fc: e7d01002 ldrb r1, [r0, r2] <== NOT EXECUTED a0002900: e2822001 add r2, r2, #1 <== NOT EXECUTED if (c == '\t') { a0002904: e3510009 cmp r1, #9 <== NOT EXECUTED col = (col | 7) + 1; a0002908: 03855007 orreq r5, r5, #7 <== NOT EXECUTED } else if (iscntrl (c)) { a000290c: e088c001 add ip, r8, r1 <== NOT EXECUTED * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; a0002910: 02855001 addeq r5, r5, #1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { a0002914: 0a000005 beq a0002930 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { a0002918: e5dc1001 ldrb r1, [ip, #1] <== NOT EXECUTED a000291c: e3110020 tst r1, #32 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; a0002920: 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)) { a0002924: 0a000001 beq a0002930 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) a0002928: e35a0000 cmp sl, #0 <== NOT EXECUTED col += 2; a000292c: 12855002 addne r5, r5, #2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { a0002930: e1530002 cmp r3, r2 <== NOT EXECUTED a0002934: 1afffff0 bne a00028fc <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { a0002938: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a000293c: e1550003 cmp r5, r3 <== NOT EXECUTED a0002940: aaffffb5 bge a000281c <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); a0002944: e59f00a0 ldr r0, [pc, #160] ; a00029ec <== NOT EXECUTED a0002948: e3a01001 mov r1, #1 <== NOT EXECUTED a000294c: e1a02004 mov r2, r4 <== NOT EXECUTED a0002950: ebfffede bl a00024d0 <== NOT EXECUTED tty->column--; a0002954: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0002958: e2433001 sub r3, r3, #1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { a000295c: e1550003 cmp r5, r3 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; a0002960: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { a0002964: bafffff6 blt a0002944 <== NOT EXECUTED a0002968: eaffffab b a000281c <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; a000296c: e5801020 str r1, [r0, #32] <== NOT EXECUTED return; a0002970: 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); a0002974: e5d40043 ldrb r0, [r4, #67] ; 0x43 <== NOT EXECUTED a0002978: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } a000297c: 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); a0002980: eaffff76 b a0002760 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); a0002984: e59f005c ldr r0, [pc, #92] ; a00029e8 <== NOT EXECUTED a0002988: e3a01003 mov r1, #3 <== NOT EXECUTED a000298c: e1a02004 mov r2, r4 <== NOT EXECUTED a0002990: ebfffece bl a00024d0 <== NOT EXECUTED if (tty->column) a0002994: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0002998: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a000299c: 12433001 subne r3, r3, #1 <== NOT EXECUTED a00029a0: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { a00029a4: e5973000 ldr r3, [r7] <== NOT EXECUTED a00029a8: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED a00029ac: e3130020 tst r3, #32 <== NOT EXECUTED a00029b0: 0affffb0 beq a0002878 <== NOT EXECUTED a00029b4: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED a00029b8: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED a00029bc: 0affff96 beq a000281c <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); a00029c0: e59f0020 ldr r0, [pc, #32] ; a00029e8 <== NOT EXECUTED a00029c4: e3a01003 mov r1, #3 <== NOT EXECUTED a00029c8: e1a02004 mov r2, r4 <== NOT EXECUTED a00029cc: ebfffebf bl a00024d0 <== NOT EXECUTED if (tty->column) a00029d0: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00029d4: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a00029d8: 12433001 subne r3, r3, #1 <== NOT EXECUTED a00029dc: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00029e0: eaffffac b a0002898 <== NOT EXECUTED a00029e4: a0019090 .word 0xa0019090 a00029e8: a001a050 .word 0xa001a050 a00029ec: a001a048 .word 0xa001a048 a00384c4 : ) { rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); a00384c4: e59f3178 ldr r3, [pc, #376] ; a0038644 <== NOT EXECUTED #include int fchdir( int fd ) { a00384c8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); a00384cc: e5933000 ldr r3, [r3] <== NOT EXECUTED #include int fchdir( int fd ) { a00384d0: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); a00384d4: e1500003 cmp r0, r3 <== NOT EXECUTED a00384d8: 2a000042 bcs a00385e8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); a00384dc: e59f3164 ldr r3, [pc, #356] ; a0038648 <== NOT EXECUTED a00384e0: e5934000 ldr r4, [r3] <== NOT EXECUTED a00384e4: e0844300 add r4, r4, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); a00384e8: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a00384ec: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a00384f0: 0a00003c beq a00385e8 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a00384f4: e3130002 tst r3, #2 <== NOT EXECUTED a00384f8: 0a000047 beq a003861c <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { a00384fc: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a0038500: e3530000 cmp r3, #0 <== NOT EXECUTED a0038504: 0a000049 beq a0038630 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { a0038508: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a003850c: e3530000 cmp r3, #0 <== NOT EXECUTED a0038510: 0a000046 beq a0038630 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != a0038514: e2844018 add r4, r4, #24 <== NOT EXECUTED a0038518: e1a00004 mov r0, r4 <== NOT EXECUTED a003851c: e12fff33 blx r3 <== NOT EXECUTED a0038520: e3500001 cmp r0, #1 <== NOT EXECUTED a0038524: e1a06000 mov r6, r0 <== NOT EXECUTED a0038528: 1a000029 bne a00385d4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; a003852c: e59f5118 ldr r5, [pc, #280] ; a003864c <== NOT EXECUTED a0038530: e28da004 add sl, sp, #4 <== NOT EXECUTED a0038534: e1a0900a mov r9, sl <== NOT EXECUTED a0038538: e595e000 ldr lr, [r5] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a003853c: e3a07000 mov r7, #0 <== NOT EXECUTED a0038540: e28d8018 add r8, sp, #24 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; a0038544: e28ec004 add ip, lr, #4 <== NOT EXECUTED a0038548: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a003854c: e8a9000f stmia r9!, {r0, r1, r2, r3} <== NOT EXECUTED a0038550: e59c3000 ldr r3, [ip] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; a0038554: e28ee004 add lr, lr, #4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; a0038558: e5893000 str r3, [r9] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; a003855c: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED a0038560: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED a0038564: e5943000 ldr r3, [r4] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a0038568: e1a01006 mov r1, r6 <== NOT EXECUTED a003856c: e1a02007 mov r2, r7 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; a0038570: e58c3000 str r3, [ip] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a0038574: e59f00d4 ldr r0, [pc, #212] ; a0038650 <== NOT EXECUTED a0038578: e1a03008 mov r3, r8 <== NOT EXECUTED a003857c: e58d7000 str r7, [sp] <== NOT EXECUTED a0038580: ebff33df bl a0005504 <== NOT EXECUTED a0038584: e1500007 cmp r0, r7 <== NOT EXECUTED a0038588: 1a00001b bne a00385fc <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); a003858c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0038590: e3530000 cmp r3, #0 <== NOT EXECUTED a0038594: 0a000004 beq a00385ac <== NOT EXECUTED a0038598: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a003859c: e3530000 cmp r3, #0 <== NOT EXECUTED a00385a0: 0a000001 beq a00385ac <== NOT EXECUTED a00385a4: e1a0000a mov r0, sl <== NOT EXECUTED a00385a8: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_current = loc; a00385ac: e595c000 ldr ip, [r5] <== NOT EXECUTED a00385b0: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED a00385b4: e3a04000 mov r4, #0 <== NOT EXECUTED a00385b8: e28cc004 add ip, ip, #4 <== NOT EXECUTED a00385bc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a00385c0: e5983000 ldr r3, [r8] <== NOT EXECUTED a00385c4: e58c3000 str r3, [ip] <== NOT EXECUTED return 0; } a00385c8: e1a00004 mov r0, r4 <== NOT EXECUTED a00385cc: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED a00385d0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); a00385d4: eb0018eb bl a003e988 <__errno> <== NOT EXECUTED a00385d8: e3a03014 mov r3, #20 <== NOT EXECUTED a00385dc: e5803000 str r3, [r0] <== NOT EXECUTED a00385e0: e3e04000 mvn r4, #0 <== NOT EXECUTED a00385e4: eafffff7 b a00385c8 <== 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); a00385e8: eb0018e6 bl a003e988 <__errno> <== NOT EXECUTED a00385ec: e3a03009 mov r3, #9 <== NOT EXECUTED a00385f0: e5803000 str r3, [r0] <== NOT EXECUTED a00385f4: e3e04000 mvn r4, #0 <== NOT EXECUTED a00385f8: eafffff2 b a00385c8 <== 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; a00385fc: e595c000 ldr ip, [r5] <== NOT EXECUTED a0038600: e8ba000f ldm sl!, {r0, r1, r2, r3} <== NOT EXECUTED a0038604: e3e04000 mvn r4, #0 <== NOT EXECUTED a0038608: e28cc004 add ip, ip, #4 <== NOT EXECUTED a003860c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0038610: e5993000 ldr r3, [r9] <== NOT EXECUTED a0038614: e58c3000 str r3, [ip] <== NOT EXECUTED return -1; a0038618: eaffffea b a00385c8 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a003861c: eb0018d9 bl a003e988 <__errno> <== NOT EXECUTED a0038620: e3a03016 mov r3, #22 <== NOT EXECUTED a0038624: e5803000 str r3, [r0] <== NOT EXECUTED a0038628: e3e04000 mvn r4, #0 <== NOT EXECUTED a003862c: eaffffe5 b a00385c8 <== 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 ); a0038630: eb0018d4 bl a003e988 <__errno> <== NOT EXECUTED a0038634: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0038638: e5803000 str r3, [r0] <== NOT EXECUTED a003863c: e3e04000 mvn r4, #0 <== NOT EXECUTED a0038640: eaffffe0 b a00385c8 <== NOT EXECUTED a0038644: a0058914 .word 0xa0058914 a0038648: a006766c .word 0xa006766c a003864c: a0058c2c .word 0xa0058c2c a0038650: a005e528 .word 0xa005e528 a00254fc : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); a00254fc: e59f308c ldr r3, [pc, #140] ; a0025590 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { a0025500: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0025504: e5933000 ldr r3, [r3] <== NOT EXECUTED a0025508: e1500003 cmp r0, r3 <== NOT EXECUTED a002550c: 2a000010 bcs a0025554 <== NOT EXECUTED iop = rtems_libio_iop( fd ); a0025510: e59f307c ldr r3, [pc, #124] ; a0025594 <== NOT EXECUTED a0025514: e5933000 ldr r3, [r3] <== NOT EXECUTED a0025518: e0833300 add r3, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); a002551c: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a0025520: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED a0025524: 0a00000a beq a0025554 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a0025528: e3120004 tst r2, #4 <== NOT EXECUTED a002552c: 0a00000d beq a0025568 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) a0025530: e593203c ldr r2, [r3, #60] ; 0x3c <== NOT EXECUTED a0025534: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a0025538: e3520000 cmp r2, #0 <== NOT EXECUTED a002553c: 0a00000e beq a002557c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); a0025540: e2830018 add r0, r3, #24 <== NOT EXECUTED a0025544: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED a0025548: e1a0e00f mov lr, pc <== NOT EXECUTED a002554c: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } a0025550: 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); a0025554: eb00650b bl a003e988 <__errno> <== NOT EXECUTED a0025558: e3a03009 mov r3, #9 <== NOT EXECUTED a002555c: e5803000 str r3, [r0] <== NOT EXECUTED a0025560: e3e00000 mvn r0, #0 <== NOT EXECUTED a0025564: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a0025568: eb006506 bl a003e988 <__errno> <== NOT EXECUTED a002556c: e3a03016 mov r3, #22 <== NOT EXECUTED a0025570: e5803000 str r3, [r0] <== NOT EXECUTED a0025574: e3e00000 mvn r0, #0 <== NOT EXECUTED a0025578: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a002557c: eb006501 bl a003e988 <__errno> <== NOT EXECUTED a0025580: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0025584: e5803000 str r3, [r0] <== NOT EXECUTED a0025588: e3e00000 mvn r0, #0 <== NOT EXECUTED a002558c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0025590: a0058914 .word 0xa0058914 a0025594: a006766c .word 0xa006766c a0025598 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0025598: e59f3094 ldr r3, [pc, #148] ; a0025634 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { a002559c: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a00255a0: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a00255a4: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { a00255a8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a00255ac: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { a00255b0: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a00255b4: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a00255b8: 2a00000e bcs a00255f8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); a00255bc: e59f3074 ldr r3, [pc, #116] ; a0025638 <== NOT EXECUTED a00255c0: e5933000 ldr r3, [r3] <== NOT EXECUTED a00255c4: e0830300 add r0, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); a00255c8: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a00255cc: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a00255d0: 0a000008 beq a00255f8 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a00255d4: e3130004 tst r3, #4 <== NOT EXECUTED a00255d8: 0a00000b beq a002560c <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) a00255dc: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED a00255e0: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a00255e4: e3530000 cmp r3, #0 <== NOT EXECUTED a00255e8: 0a00000c beq a0025620 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); a00255ec: e2800018 add r0, r0, #24 <== NOT EXECUTED a00255f0: e12fff33 blx r3 <== NOT EXECUTED } a00255f4: 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); a00255f8: eb0064e2 bl a003e988 <__errno> <== NOT EXECUTED a00255fc: e3a03009 mov r3, #9 <== NOT EXECUTED a0025600: e5803000 str r3, [r0] <== NOT EXECUTED a0025604: e3e00000 mvn r0, #0 <== NOT EXECUTED a0025608: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a002560c: eb0064dd bl a003e988 <__errno> <== NOT EXECUTED a0025610: e3a03016 mov r3, #22 <== NOT EXECUTED a0025614: e5803000 str r3, [r0] <== NOT EXECUTED a0025618: e3e00000 mvn r0, #0 <== NOT EXECUTED a002561c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a0025620: eb0064d8 bl a003e988 <__errno> <== NOT EXECUTED a0025624: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0025628: e5803000 str r3, [r0] <== NOT EXECUTED a002562c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0025630: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0025634: a0058914 .word 0xa0058914 a0025638: a006766c .word 0xa006766c a0038654 : int fcntl( int fd, int cmd, ... ) { a0038654: e92d000e push {r1, r2, r3} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a0038658: e59f21cc ldr r2, [pc, #460] ; a003882c int fcntl( int fd, int cmd, ... ) { a003865c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a0038660: e5922000 ldr r2, [r2] int fcntl( int fd, int cmd, ... ) { a0038664: e24dd004 sub sp, sp, #4 int ret; va_list ap; va_start( ap, cmd ); a0038668: e28d3028 add r3, sp, #40 ; 0x28 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a003866c: e1500002 cmp r0, r2 ... ) { int ret; va_list ap; va_start( ap, cmd ); a0038670: e58d3000 str r3, [sp] int fcntl( int fd, int cmd, ... ) { a0038674: e59d4024 ldr r4, [sp, #36] ; 0x24 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a0038678: 2a00005f bcs a00387fc iop = rtems_libio_iop( fd ); a003867c: e59f61ac ldr r6, [pc, #428] ; a0038830 a0038680: e5967000 ldr r7, [r6] a0038684: e0875300 add r5, r7, r0, lsl #6 rtems_libio_check_is_open(iop); a0038688: e595c014 ldr ip, [r5, #20] a003868c: e31c0c01 tst ip, #256 ; 0x100 a0038690: 0a000059 beq a00387fc /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { a0038694: e3540009 cmp r4, #9 a0038698: 979ff104 ldrls pc, [pc, r4, lsl #2] a003869c: ea00002a b a003874c a00386a0: a0038760 .word 0xa0038760 <== NOT EXECUTED a00386a4: a00387c0 .word 0xa00387c0 <== NOT EXECUTED a00386a8: a00387cc .word 0xa00387cc <== NOT EXECUTED a00386ac: a00387ec .word 0xa00387ec <== NOT EXECUTED a00386b0: a00386ec .word 0xa00386ec <== NOT EXECUTED a00386b4: a00386c8 .word 0xa00386c8 <== NOT EXECUTED a00386b8: a00386c8 .word 0xa00386c8 <== NOT EXECUTED a00386bc: a00386c8 .word 0xa00386c8 <== NOT EXECUTED a00386c0: a00386c8 .word 0xa00386c8 <== NOT EXECUTED a00386c4: a00386c8 .word 0xa00386c8 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; a00386c8: eb0018ae bl a003e988 <__errno> a00386cc: e3a03086 mov r3, #134 ; 0x86 a00386d0: e5803000 str r3, [r0] a00386d4: e3e07000 mvn r7, #0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } a00386d8: e1a00007 mov r0, r7 a00386dc: e28dd004 add sp, sp, #4 a00386e0: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} a00386e4: e28dd00c add sp, sp, #12 a00386e8: 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 ) ); a00386ec: e5930000 ldr r0, [r3] a00386f0: ebff34e7 bl a0005a94 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); a00386f4: e5952014 ldr r2, [r5, #20] a00386f8: e3a03c02 mov r3, #512 ; 0x200 a00386fc: e2833001 add r3, r3, #1 a0038700: e3c22c02 bic r2, r2, #512 ; 0x200 a0038704: e0003003 and r3, r0, r3 a0038708: e3c22001 bic r2, r2, #1 a003870c: e1833002 orr r3, r3, r2 a0038710: e5853014 str r3, [r5, #20] a0038714: e3a07000 mov r7, #0 * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { a0038718: e595303c ldr r3, [r5, #60] ; 0x3c a003871c: e5933030 ldr r3, [r3, #48] ; 0x30 a0038720: e3530000 cmp r3, #0 a0038724: 0affffeb beq a00386d8 int err = (*iop->handlers->fcntl_h)( cmd, iop ); a0038728: e1a00004 mov r0, r4 a003872c: e1a01005 mov r1, r5 a0038730: e12fff33 blx r3 if (err) { a0038734: e2504000 subs r4, r0, #0 a0038738: 0affffe6 beq a00386d8 errno = err; a003873c: eb001891 bl a003e988 <__errno> <== NOT EXECUTED a0038740: e5804000 str r4, [r0] <== NOT EXECUTED a0038744: e3e07000 mvn r7, #0 <== NOT EXECUTED a0038748: eaffffe2 b a00386d8 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; a003874c: eb00188d bl a003e988 <__errno> a0038750: e3a03016 mov r3, #22 a0038754: e5803000 str r3, [r0] a0038758: e3e07000 mvn r7, #0 a003875c: eaffffdd b a00386d8 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); a0038760: e5938000 ldr r8, [r3] if ( fd2 ) a0038764: e3580000 cmp r8, #0 a0038768: 0a000028 beq a0038810 diop = rtems_libio_iop( fd2 ); a003876c: e1520008 cmp r2, r8 <== NOT EXECUTED a0038770: 93a09000 movls r9, #0 <== NOT EXECUTED a0038774: 80878308 addhi r8, r7, r8, lsl #6 <== NOT EXECUTED a0038778: 91a08009 movls r8, r9 <== NOT EXECUTED a003877c: 81a09008 movhi r9, r8 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; a0038780: e288a018 add sl, r8, #24 a0038784: e2856018 add r6, r5, #24 a0038788: e8b6000f ldm r6!, {r0, r1, r2, r3} a003878c: e8aa000f stmia sl!, {r0, r1, r2, r3} ret = -1; break; } } diop->handlers = iop->handlers; a0038790: e595203c ldr r2, [r5, #60] ; 0x3c diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; a0038794: e5961000 ldr r1, [r6] break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; a0038798: e5953038 ldr r3, [r5, #56] ; 0x38 diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); a003879c: e0677009 rsb r7, r7, r9 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; a00387a0: e58a1000 str r1, [sl] ret = -1; break; } } diop->handlers = iop->handlers; a00387a4: e588203c str r2, [r8, #60] ; 0x3c diop->file_info = iop->file_info; a00387a8: e5883038 str r3, [r8, #56] ; 0x38 diop->flags = iop->flags; a00387ac: e588c014 str ip, [r8, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); a00387b0: e1a07347 asr r7, r7, #6 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { a00387b4: e3570000 cmp r7, #0 a00387b8: aaffffd6 bge a0038718 a00387bc: eaffffc5 b a00386d8 <== 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); a00387c0: e1a0c5ac lsr ip, ip, #11 a00387c4: e20c7001 and r7, ip, #1 a00387c8: eaffffd2 b a0038718 * 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 ) ) a00387cc: e5937000 ldr r7, [r3] a00387d0: e3570000 cmp r7, #0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; a00387d4: 138ccb02 orrne ip, ip, #2048 ; 0x800 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; a00387d8: 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; a00387dc: 1585c014 strne ip, [r5, #20] a00387e0: 13a07000 movne r7, #0 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; a00387e4: 0585c014 streq ip, [r5, #20] a00387e8: eaffffca b a0038718 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); a00387ec: e1a0000c mov r0, ip a00387f0: ebff3406 bl a0005810 a00387f4: e1a07000 mov r7, r0 a00387f8: eaffffed b a00387b4 int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); a00387fc: eb001861 bl a003e988 <__errno> <== NOT EXECUTED a0038800: e3a03009 mov r3, #9 <== NOT EXECUTED a0038804: e5803000 str r3, [r0] <== NOT EXECUTED a0038808: e3e07000 mvn r7, #0 <== NOT EXECUTED a003880c: eaffffb1 b a00386d8 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); a0038810: ebff3471 bl a00059dc if ( diop == 0 ) { a0038814: e2508000 subs r8, r0, #0 a0038818: 0affffc9 beq a0038744 a003881c: e5967000 ldr r7, [r6] a0038820: e595c014 ldr ip, [r5, #20] a0038824: e1a09008 mov r9, r8 a0038828: eaffffd4 b a0038780 a003882c: a0058914 .word 0xa0058914 a0038830: a006766c .word 0xa006766c a000b864 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { a000b864: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, a000b868: e59f5408 ldr r5, [pc, #1032] ; a000bc78 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { a000b86c: e1a07001 mov r7, r1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, a000b870: e3a01000 mov r1, #0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { a000b874: e24dd00c sub sp, sp, #12 a000b878: e1a04000 mov r4, r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, a000b87c: e1a02001 mov r2, r1 a000b880: e5950000 ldr r0, [r5] a000b884: ebffe362 bl a0004614 a000b888: e2509000 subs r9, r0, #0 a000b88c: 13e0a003 mvnne sl, #3 a000b890: 1a00001c bne a000b908 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; a000b894: e5946000 ldr r6, [r4] <== NOT EXECUTED if (pipe == NULL) { a000b898: e3560000 cmp r6, #0 <== NOT EXECUTED a000b89c: 0a00007d beq a000ba98 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) a000b8a0: e3a01000 mov r1, #0 <== NOT EXECUTED a000b8a4: e5960028 ldr r0, [r6, #40] ; 0x28 <== NOT EXECUTED a000b8a8: e1a02001 mov r2, r1 <== NOT EXECUTED a000b8ac: ebffe358 bl a0004614 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { a000b8b0: e5943000 ldr r3, [r4] <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) a000b8b4: e3500000 cmp r0, #0 <== NOT EXECUTED a000b8b8: 01a0a000 moveq sl, r0 <== NOT EXECUTED a000b8bc: 13e0a003 mvnne sl, #3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { a000b8c0: e3530000 cmp r3, #0 <== NOT EXECUTED a000b8c4: 0a000038 beq a000b9ac <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); a000b8c8: e5950000 ldr r0, [r5] <== NOT EXECUTED a000b8cc: ebffe398 bl a0004734 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) a000b8d0: e35a0000 cmp sl, #0 <== NOT EXECUTED a000b8d4: 1a00000b bne a000b908 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { a000b8d8: e5972014 ldr r2, [r7, #20] <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; a000b8dc: e5945000 ldr r5, [r4] <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { a000b8e0: e2023006 and r3, r2, #6 <== NOT EXECUTED a000b8e4: e3530004 cmp r3, #4 <== NOT EXECUTED a000b8e8: 0a000009 beq a000b914 <== NOT EXECUTED a000b8ec: e3530006 cmp r3, #6 <== NOT EXECUTED a000b8f0: 0a000054 beq a000ba48 <== NOT EXECUTED a000b8f4: e3530002 cmp r3, #2 <== NOT EXECUTED a000b8f8: 0a000031 beq a000b9c4 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); a000b8fc: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000b900: ebffe38b bl a0004734 <== NOT EXECUTED a000b904: e3a0a000 mov sl, #0 <== NOT EXECUTED return 0; out_error: pipe_release(pipep, iop); return err; } a000b908: e1a0000a mov r0, sl a000b90c: e28dd00c add sp, sp, #12 a000b910: 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)) { a000b914: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED a000b918: e3530000 cmp r3, #0 <== NOT EXECUTED a000b91c: 1a000002 bne a000b92c <== NOT EXECUTED a000b920: e3120001 tst r2, #1 <== NOT EXECUTED a000b924: 13e0a005 mvnne sl, #5 <== NOT EXECUTED a000b928: 1a00001b bne a000b99c <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) a000b92c: e5952014 ldr r2, [r5, #20] <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; a000b930: e5951024 ldr r1, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b934: e3520000 cmp r2, #0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; a000b938: e2811001 add r1, r1, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b93c: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; a000b940: e5851024 str r1, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b944: e5852014 str r2, [r5, #20] <== NOT EXECUTED a000b948: 0a0000b8 beq a000bc30 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { a000b94c: e3530000 cmp r3, #0 <== NOT EXECUTED a000b950: 1affffe9 bne a000b8fc <== NOT EXECUTED prevCounter = pipe->readerCounter; a000b954: e5956020 ldr r6, [r5, #32] <== NOT EXECUTED a000b958: ea000006 b a000b978 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) a000b95c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000b960: ebffe32b bl a0004614 <== NOT EXECUTED a000b964: e3500000 cmp r0, #0 <== NOT EXECUTED a000b968: 1a00000a bne a000b998 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); a000b96c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a000b970: e1530006 cmp r3, r6 <== NOT EXECUTED a000b974: 1affffe0 bne a000b8fc <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); a000b978: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000b97c: ebffe36c bl a0004734 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) a000b980: e3a01000 mov r1, #0 <== NOT EXECUTED a000b984: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED a000b988: eb000311 bl a000c5d4 <== NOT EXECUTED a000b98c: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) a000b990: e1a02001 mov r2, r1 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) a000b994: 0afffff0 beq a000b95c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; a000b998: e3e0a003 mvn sl, #3 <== NOT EXECUTED out_error: pipe_release(pipep, iop); a000b99c: e1a00004 mov r0, r4 <== NOT EXECUTED a000b9a0: e1a01007 mov r1, r7 <== NOT EXECUTED a000b9a4: ebffff67 bl a000b748 <== NOT EXECUTED return err; a000b9a8: eaffffd6 b a000b908 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) a000b9ac: e35a0000 cmp sl, #0 <== NOT EXECUTED a000b9b0: 1a0000a3 bne a000bc44 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; a000b9b4: e5846000 str r6, [r4] <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); a000b9b8: e5950000 ldr r0, [r5] <== NOT EXECUTED a000b9bc: ebffe35c bl a0004734 <== NOT EXECUTED a000b9c0: eaffffc4 b a000b8d8 <== NOT EXECUTED pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) a000b9c4: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; a000b9c8: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000b9cc: e3530000 cmp r3, #0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; a000b9d0: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) a000b9d4: e2833001 add r3, r3, #1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; a000b9d8: e5852020 str r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000b9dc: e5853010 str r3, [r5, #16] <== NOT EXECUTED a000b9e0: 0a00008e beq a000bc20 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { a000b9e4: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a000b9e8: e3530000 cmp r3, #0 <== NOT EXECUTED a000b9ec: 1affffc2 bne a000b8fc <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) a000b9f0: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED a000b9f4: e3130001 tst r3, #1 <== NOT EXECUTED a000b9f8: 1affffbf bne a000b8fc <== NOT EXECUTED break; prevCounter = pipe->writerCounter; a000b9fc: e5956024 ldr r6, [r5, #36] ; 0x24 <== NOT EXECUTED a000ba00: ea000006 b a000ba20 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) a000ba04: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000ba08: ebffe301 bl a0004614 <== NOT EXECUTED a000ba0c: e3500000 cmp r0, #0 <== NOT EXECUTED a000ba10: 1affffe0 bne a000b998 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); a000ba14: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED a000ba18: e1530006 cmp r3, r6 <== NOT EXECUTED a000ba1c: 1affffb6 bne a000b8fc <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); a000ba20: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000ba24: ebffe342 bl a0004734 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) a000ba28: e3a01000 mov r1, #0 <== NOT EXECUTED a000ba2c: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED a000ba30: eb0002e7 bl a000c5d4 <== NOT EXECUTED a000ba34: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) a000ba38: 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)) a000ba3c: 0afffff0 beq a000ba04 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; a000ba40: e3e0a003 mvn sl, #3 <== NOT EXECUTED a000ba44: eaffffd4 b a000b99c <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) a000ba48: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; a000ba4c: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000ba50: e3530000 cmp r3, #0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; a000ba54: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) a000ba58: e2833001 add r3, r3, #1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; a000ba5c: e5852020 str r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000ba60: e5853010 str r3, [r5, #16] <== NOT EXECUTED a000ba64: 0a000069 beq a000bc10 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) a000ba68: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; a000ba6c: e5952024 ldr r2, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000ba70: e3530000 cmp r3, #0 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; a000ba74: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000ba78: e2833001 add r3, r3, #1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; a000ba7c: e5852024 str r2, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000ba80: e5853014 str r3, [r5, #20] <== NOT EXECUTED a000ba84: 1affff9c bne a000b8fc <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); a000ba88: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED a000ba8c: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000ba90: eb0002b6 bl a000c570 <== NOT EXECUTED a000ba94: eaffff98 b a000b8fc <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); a000ba98: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED a000ba9c: ebfff69e bl a000951c <== NOT EXECUTED if (pipe == NULL) a000baa0: e3500000 cmp r0, #0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); a000baa4: e1a08000 mov r8, r0 <== NOT EXECUTED a000baa8: e1a06000 mov r6, r0 <== NOT EXECUTED if (pipe == NULL) a000baac: 03e0a00b mvneq sl, #11 <== NOT EXECUTED a000bab0: 0affff84 beq a000b8c8 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); a000bab4: e1a03000 mov r3, r0 <== NOT EXECUTED a000bab8: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000babc: e2833004 add r3, r3, #4 <== NOT EXECUTED a000bac0: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bac4: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bac8: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bacc: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bad0: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bad4: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bad8: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000badc: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000bae0: e4839004 str r9, [r3], #4 <== NOT EXECUTED pipe->Size = PIPE_BUF; a000bae4: 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)); a000bae8: e4839004 str r9, [r3], #4 <== NOT EXECUTED a000baec: e5839000 str r9, [r3] <== NOT EXECUTED pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); a000baf0: 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; a000baf4: e5882004 str r2, [r8, #4] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); a000baf8: ebfff687 bl a000951c <== NOT EXECUTED if (! pipe->Buffer) a000bafc: 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); a000bb00: e5880000 str r0, [r8] <== NOT EXECUTED if (! pipe->Buffer) a000bb04: 03e0a00b mvneq sl, #11 <== NOT EXECUTED a000bb08: 0a00003d beq a000bc04 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( a000bb0c: e59fa168 ldr sl, [pc, #360] ; a000bc7c <== NOT EXECUTED a000bb10: e1a01009 mov r1, r9 <== NOT EXECUTED a000bb14: e1a02009 mov r2, r9 <== NOT EXECUTED a000bb18: e5da0000 ldrb r0, [sl] <== NOT EXECUTED a000bb1c: e288302c add r3, r8, #44 ; 0x2c <== NOT EXECUTED a000bb20: e3800205 orr r0, r0, #1342177280 ; 0x50000000 <== NOT EXECUTED a000bb24: e3800849 orr r0, r0, #4784128 ; 0x490000 <== NOT EXECUTED a000bb28: e3800c72 orr r0, r0, #29184 ; 0x7200 <== NOT EXECUTED a000bb2c: eb000244 bl a000c444 <== NOT EXECUTED a000bb30: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000bb34: 1a00002f bne a000bbf8 <== 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( a000bb38: e5da3000 ldrb r3, [sl] <== NOT EXECUTED a000bb3c: e1a02001 mov r2, r1 <== NOT EXECUTED a000bb40: e3830205 orr r0, r3, #1342177280 ; 0x50000000 <== NOT EXECUTED a000bb44: e3800849 orr r0, r0, #4784128 ; 0x490000 <== NOT EXECUTED a000bb48: e2883030 add r3, r8, #48 ; 0x30 <== NOT EXECUTED a000bb4c: e3800c77 orr r0, r0, #30464 ; 0x7700 <== NOT EXECUTED a000bb50: eb00023b bl a000c444 <== NOT EXECUTED a000bb54: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000bb58: 1a000024 bne a000bbf0 <== 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( a000bb5c: e5da2000 ldrb r2, [sl] <== NOT EXECUTED a000bb60: e288c028 add ip, r8, #40 ; 0x28 <== NOT EXECUTED a000bb64: e3a01001 mov r1, #1 <== NOT EXECUTED a000bb68: e3820205 orr r0, r2, #1342177280 ; 0x50000000 <== NOT EXECUTED a000bb6c: e3800849 orr r0, r0, #4784128 ; 0x490000 <== NOT EXECUTED a000bb70: e3800c73 orr r0, r0, #29440 ; 0x7300 <== NOT EXECUTED a000bb74: e3a02010 mov r2, #16 <== NOT EXECUTED a000bb78: e58dc000 str ip, [sp] <== NOT EXECUTED a000bb7c: ebffe209 bl a00043a8 <== NOT EXECUTED a000bb80: e3500000 cmp r0, #0 <== NOT EXECUTED a000bb84: 1a000017 bne a000bbe8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) a000bb88: e28d8004 add r8, sp, #4 <== NOT EXECUTED a000bb8c: e596102c ldr r1, [r6, #44] ; 0x2c <== NOT EXECUTED a000bb90: e1a02008 mov r2, r8 <== NOT EXECUTED a000bb94: e59f00e4 ldr r0, [pc, #228] ; a000bc80 <== NOT EXECUTED a000bb98: ebffe869 bl a0005d44 <_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 a000bb9c: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED a000bba0: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a000bba4: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); a000bba8: ebffeaa7 bl a000664c <_Thread_Enable_dispatch> <== NOT EXECUTED a000bbac: e1a02008 mov r2, r8 <== NOT EXECUTED a000bbb0: e5961030 ldr r1, [r6, #48] ; 0x30 <== NOT EXECUTED a000bbb4: e59f00c4 ldr r0, [pc, #196] ; a000bc80 <== NOT EXECUTED a000bbb8: ebffe861 bl a0005d44 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state a000bbbc: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED a000bbc0: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a000bbc4: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); a000bbc8: ebffea9f bl a000664c <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') a000bbcc: e5da3000 ldrb r3, [sl] <== NOT EXECUTED a000bbd0: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED a000bbd4: e2833001 add r3, r3, #1 <== NOT EXECUTED a000bbd8: e5ca3000 strb r3, [sl] <== NOT EXECUTED c = 'a'; a000bbdc: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED a000bbe0: 05ca3000 strbeq r3, [sl] <== NOT EXECUTED a000bbe4: eaffff2d b a000b8a0 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); a000bbe8: e5980030 ldr r0, [r8, #48] ; 0x30 <== NOT EXECUTED a000bbec: eb000245 bl a000c508 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); a000bbf0: e598002c ldr r0, [r8, #44] ; 0x2c <== NOT EXECUTED a000bbf4: eb000243 bl a000c508 <== NOT EXECUTED err_rbar: free(pipe->Buffer); a000bbf8: e5980000 ldr r0, [r8] <== NOT EXECUTED a000bbfc: ebfff4e7 bl a0008fa0 <== NOT EXECUTED a000bc00: e3e0a003 mvn sl, #3 <== NOT EXECUTED err_buf: free(pipe); a000bc04: e1a00008 mov r0, r8 <== NOT EXECUTED a000bc08: ebfff4e4 bl a0008fa0 <== NOT EXECUTED a000bc0c: eaffff2d b a000b8c8 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); a000bc10: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED a000bc14: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000bc18: eb000254 bl a000c570 <== NOT EXECUTED a000bc1c: eaffff91 b a000ba68 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); a000bc20: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED a000bc24: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000bc28: eb000250 bl a000c570 <== NOT EXECUTED a000bc2c: eaffff6c b a000b9e4 <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); a000bc30: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED a000bc34: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000bc38: eb00024c bl a000c570 <== NOT EXECUTED a000bc3c: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED a000bc40: eaffff41 b a000b94c <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); a000bc44: e596002c ldr r0, [r6, #44] ; 0x2c <== NOT EXECUTED a000bc48: eb00022e bl a000c508 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); a000bc4c: e5960030 ldr r0, [r6, #48] ; 0x30 <== NOT EXECUTED a000bc50: eb00022c bl a000c508 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); a000bc54: e5960028 ldr r0, [r6, #40] ; 0x28 <== NOT EXECUTED a000bc58: ebffe244 bl a0004570 <== NOT EXECUTED free(pipe->Buffer); a000bc5c: e5960000 ldr r0, [r6] <== NOT EXECUTED a000bc60: ebfff4ce bl a0008fa0 <== NOT EXECUTED free(pipe); a000bc64: e1a00006 mov r0, r6 <== NOT EXECUTED a000bc68: ebfff4cc bl a0008fa0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); a000bc6c: e5950000 ldr r0, [r5] <== NOT EXECUTED a000bc70: ebffe2af bl a0004734 <== NOT EXECUTED a000bc74: eaffff23 b a000b908 <== NOT EXECUTED a000bc78: a001a7ac .word 0xa001a7ac a000bc7c: a001907c .word 0xa001907c a000bc80: a001b2a4 .word 0xa001b2a4 a0008db8 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; a0008db8: e59f3044 ldr r3, [pc, #68] ; a0008e04 <== NOT EXECUTED a0008dbc: e4932004 ldr r2, [r3], #4 <== NOT EXECUTED a0008dc0: e1520003 cmp r2, r3 <== NOT EXECUTED a0008dc4: 0a00000a beq a0008df4 <== 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 ) { a0008dc8: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED a0008dcc: e5921018 ldr r1, [r2, #24] <== NOT EXECUTED a0008dd0: e1510000 cmp r1, r0 <== NOT EXECUTED a0008dd4: 1a000003 bne a0008de8 <== NOT EXECUTED a0008dd8: ea000007 b a0008dfc <== NOT EXECUTED a0008ddc: e5921018 ldr r1, [r2, #24] <== NOT EXECUTED a0008de0: e1510000 cmp r1, r0 <== NOT EXECUTED a0008de4: 0a000004 beq a0008dfc <== 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 ) { a0008de8: e5922000 ldr r2, [r2] <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; a0008dec: e1520003 cmp r2, r3 <== NOT EXECUTED a0008df0: 1afffff9 bne a0008ddc <== NOT EXECUTED a0008df4: e3a00000 mov r0, #0 <== NOT EXECUTED return true; } } return false; } a0008df8: 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; a0008dfc: e3a00001 mov r0, #1 <== NOT EXECUTED a0008e00: e12fff1e bx lr <== NOT EXECUTED a0008e04: a00676b0 .word 0xa00676b0 a0002568 : { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); a0002568: e59f3108 ldr r3, [pc, #264] ; a0002678 long fpathconf( int fd, int name ) { a000256c: 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); a0002570: e5933000 ldr r3, [r3] a0002574: e1500003 cmp r0, r3 a0002578: 2a000034 bcs a0002650 iop = rtems_libio_iop(fd); a000257c: e59f30f8 ldr r3, [pc, #248] ; a000267c a0002580: e5933000 ldr r3, [r3] a0002584: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); a0002588: e5903014 ldr r3, [r0, #20] a000258c: e3130c01 tst r3, #256 ; 0x100 a0002590: 0a00002e beq a0002650 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); a0002594: e3130002 tst r3, #2 a0002598: 0a000031 beq a0002664 /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; a000259c: e5903028 ldr r3, [r0, #40] ; 0x28 switch ( name ) { a00025a0: e351000b cmp r1, #11 a00025a4: 979ff101 ldrls pc, [pc, r1, lsl #2] a00025a8: ea00000d b a00025e4 a00025ac: a00025f8 .word 0xa00025f8 <== NOT EXECUTED a00025b0: a0002600 .word 0xa0002600 <== NOT EXECUTED a00025b4: a0002608 .word 0xa0002608 <== NOT EXECUTED a00025b8: a0002610 .word 0xa0002610 <== NOT EXECUTED a00025bc: a0002618 .word 0xa0002618 <== NOT EXECUTED a00025c0: a0002620 .word 0xa0002620 <== NOT EXECUTED a00025c4: a0002628 .word 0xa0002628 <== NOT EXECUTED a00025c8: a0002630 .word 0xa0002630 <== NOT EXECUTED a00025cc: a0002638 .word 0xa0002638 <== NOT EXECUTED a00025d0: a0002640 .word 0xa0002640 <== NOT EXECUTED a00025d4: a0002648 .word 0xa0002648 <== NOT EXECUTED a00025d8: a00025dc .word 0xa00025dc <== 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; a00025dc: e5930060 ldr r0, [r3, #96] ; 0x60 break; a00025e0: e49df004 pop {pc} ; (ldr pc, [sp], #4) default: rtems_set_errno_and_return_minus_one( EINVAL ); a00025e4: eb0036ad bl a00100a0 <__errno> a00025e8: e3a03016 mov r3, #22 a00025ec: e5803000 str r3, [r0] a00025f0: e3e00000 mvn r0, #0 break; } return return_value; } a00025f4: 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; a00025f8: e5930038 ldr r0, [r3, #56] ; 0x38 break; a00025fc: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_CANON: return_value = the_limits->max_canon; a0002600: e593003c ldr r0, [r3, #60] ; 0x3c break; a0002604: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_INPUT: return_value = the_limits->max_input; a0002608: e5930040 ldr r0, [r3, #64] ; 0x40 break; a000260c: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NAME_MAX: return_value = the_limits->name_max; a0002610: e5930044 ldr r0, [r3, #68] ; 0x44 break; a0002614: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PATH_MAX: return_value = the_limits->path_max; a0002618: e5930048 ldr r0, [r3, #72] ; 0x48 break; a000261c: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; a0002620: e593004c ldr r0, [r3, #76] ; 0x4c break; a0002624: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; a0002628: e5930054 ldr r0, [r3, #84] ; 0x54 break; a000262c: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; a0002630: e5930058 ldr r0, [r3, #88] ; 0x58 break; a0002634: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_VDISABLE: return_value = the_limits->posix_vdisable; a0002638: e5930064 ldr r0, [r3, #100] ; 0x64 break; a000263c: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; a0002640: e5930050 ldr r0, [r3, #80] ; 0x50 break; a0002644: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; a0002648: e593005c ldr r0, [r3, #92] ; 0x5c break; a000264c: 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); a0002650: eb003692 bl a00100a0 <__errno> a0002654: e3a03009 mov r3, #9 a0002658: e5803000 str r3, [r0] a000265c: e3e00000 mvn r0, #0 a0002660: e49df004 pop {pc} ; (ldr pc, [sp], #4) rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); a0002664: eb00368d bl a00100a0 <__errno> <== NOT EXECUTED a0002668: e3a03016 mov r3, #22 <== NOT EXECUTED a000266c: e5803000 str r3, [r0] <== NOT EXECUTED a0002670: e3e00000 mvn r0, #0 <== NOT EXECUTED a0002674: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0002678: a001cb30 .word 0xa001cb30 a000267c: a001e934 .word 0xa001e934 a0008fa0 : void free( void *ptr ) { MSBUMP(free_calls, 1); a0008fa0: e59f3090 ldr r3, [pc, #144] ; a0009038 a0008fa4: e92d4030 push {r4, r5, lr} a0008fa8: e593200c ldr r2, [r3, #12] if ( !ptr ) a0008fac: e2504000 subs r4, r0, #0 void free( void *ptr ) { MSBUMP(free_calls, 1); a0008fb0: e2822001 add r2, r2, #1 a0008fb4: e583200c str r2, [r3, #12] if ( !ptr ) a0008fb8: 0a000010 beq a0009000 /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && a0008fbc: e59f3078 ldr r3, [pc, #120] ; a000903c a0008fc0: e5933000 ldr r3, [r3] a0008fc4: e3530003 cmp r3, #3 a0008fc8: 0a000014 beq a0009020 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) a0008fcc: e59f306c ldr r3, [pc, #108] ; a0009040 a0008fd0: e5933000 ldr r3, [r3] a0008fd4: e3530000 cmp r3, #0 a0008fd8: 0a000002 beq a0008fe8 (*rtems_malloc_statistics_helpers->at_free)(ptr); a0008fdc: e1a00004 mov r0, r4 <== NOT EXECUTED a0008fe0: e1a0e00f mov lr, pc <== NOT EXECUTED a0008fe4: e593f008 ldr pc, [r3, #8] <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { a0008fe8: e59f5054 ldr r5, [pc, #84] ; a0009044 a0008fec: e1a01004 mov r1, r4 a0008ff0: e5950000 ldr r0, [r5] a0008ff4: eb0006ea bl a000aba4 <_Protected_heap_Free> a0008ff8: e3500000 cmp r0, #0 a0008ffc: 0a000000 beq a0009004 a0009000: e8bd8030 pop {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, a0009004: 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", a0009008: e59f0038 ldr r0, [pc, #56] ; a0009048 <== NOT EXECUTED a000900c: e1a01004 mov r1, r4 <== NOT EXECUTED a0009010: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0009014: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } a0009018: 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", a000901c: eaffe3ac b a0001ed4 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && a0009020: eb00011d bl a000949c a0009024: e3500000 cmp r0, #0 a0009028: 1affffe7 bne a0008fcc !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); a000902c: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } a0009030: 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); a0009034: ea00012b b a00094e8 <== NOT EXECUTED a0009038: a001a838 .word 0xa001a838 a000903c: a001ab50 .word 0xa001ab50 a0009040: a001a5c8 .word 0xa001a5c8 a0009044: a0018e1c .word 0xa0018e1c a0009048: a001a240 .word 0xa001a240 a00269e4 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env a00269e4: e59f305c ldr r3, [pc, #92] ; a0026a48 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { a00269e8: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env a00269ec: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { a00269f0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env a00269f4: 0a000012 beq a0026a44 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); a00269f8: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED a00269fc: e3530000 cmp r3, #0 <== NOT EXECUTED a0026a00: 0a000004 beq a0026a18 <== NOT EXECUTED a0026a04: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0026a08: e3530000 cmp r3, #0 <== NOT EXECUTED a0026a0c: 0a000001 beq a0026a18 <== NOT EXECUTED a0026a10: e2800004 add r0, r0, #4 <== NOT EXECUTED a0026a14: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); a0026a18: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a0026a1c: e3530000 cmp r3, #0 <== NOT EXECUTED a0026a20: 0a000004 beq a0026a38 <== NOT EXECUTED a0026a24: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0026a28: e3530000 cmp r3, #0 <== NOT EXECUTED a0026a2c: 0a000001 beq a0026a38 <== NOT EXECUTED a0026a30: e2840018 add r0, r4, #24 <== NOT EXECUTED a0026a34: e12fff33 blx r3 <== NOT EXECUTED free(env); a0026a38: e1a00004 mov r0, r4 <== NOT EXECUTED } } a0026a3c: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); a0026a40: eaff7ae0 b a00055c8 <== NOT EXECUTED a0026a44: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0026a48: a00676c8 .word 0xa00676c8 a0018368 : int fstat( int fd, struct stat *sbuf ) { a0018368: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) a001836c: e2515000 subs r5, r1, #0 a0018370: 0a000023 beq a0018404 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); a0018374: e59f309c ldr r3, [pc, #156] ; a0018418 a0018378: e5933000 ldr r3, [r3] a001837c: e1500003 cmp r0, r3 a0018380: 2a000015 bcs a00183dc a0018384: e59f3090 ldr r3, [pc, #144] ; a001841c a0018388: e5934000 ldr r4, [r3] a001838c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); a0018390: e5943014 ldr r3, [r4, #20] a0018394: e3130c01 tst r3, #256 ; 0x100 a0018398: 0a00000f beq a00183dc if ( !iop->handlers ) a001839c: e594303c ldr r3, [r4, #60] ; 0x3c a00183a0: e3530000 cmp r3, #0 a00183a4: 0a00000c beq a00183dc rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) a00183a8: e5933018 ldr r3, [r3, #24] a00183ac: e3530000 cmp r3, #0 a00183b0: 0a00000e beq a00183f0 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); a00183b4: e3a01000 mov r1, #0 a00183b8: e3a02048 mov r2, #72 ; 0x48 a00183bc: e1a00005 mov r0, r5 a00183c0: ebffd712 bl a000e010 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); a00183c4: e2840018 add r0, r4, #24 a00183c8: e1a01005 mov r1, r5 a00183cc: e594303c ldr r3, [r4, #60] ; 0x3c a00183d0: e1a0e00f mov lr, pc a00183d4: e593f018 ldr pc, [r3, #24] } a00183d8: 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 ); a00183dc: ebffd4c1 bl a000d6e8 <__errno> a00183e0: e3a03009 mov r3, #9 a00183e4: e5803000 str r3, [r0] a00183e8: e3e00000 mvn r0, #0 a00183ec: e8bd8030 pop {r4, r5, pc} if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a00183f0: ebffd4bc bl a000d6e8 <__errno> <== NOT EXECUTED a00183f4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00183f8: e5803000 str r3, [r0] <== NOT EXECUTED a00183fc: e3e00000 mvn r0, #0 <== NOT EXECUTED a0018400: 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 ); a0018404: ebffd4b7 bl a000d6e8 <__errno> a0018408: e3a0300e mov r3, #14 a001840c: e5803000 str r3, [r0] a0018410: e3e00000 mvn r0, #0 a0018414: e8bd8030 pop {r4, r5, pc} a0018418: a0018e10 .word 0xa0018e10 a001841c: a001a82c .word 0xa001a82c a0025700 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0025700: e59f3088 ldr r3, [pc, #136] ; a0025790 #include int fsync( int fd ) { a0025704: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0025708: e5933000 ldr r3, [r3] a002570c: e1500003 cmp r0, r3 a0025710: 2a00000f bcs a0025754 iop = rtems_libio_iop( fd ); a0025714: e59f3078 ldr r3, [pc, #120] ; a0025794 a0025718: e5933000 ldr r3, [r3] a002571c: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); a0025720: e5903014 ldr r3, [r0, #20] a0025724: e3130c01 tst r3, #256 ; 0x100 a0025728: 0a000009 beq a0025754 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a002572c: e3130004 tst r3, #4 a0025730: 0a00000c beq a0025768 /* * Now process the fsync(). */ if ( !iop->handlers ) a0025734: e590303c ldr r3, [r0, #60] ; 0x3c a0025738: e3530000 cmp r3, #0 a002573c: 0a000004 beq a0025754 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) a0025740: e5933028 ldr r3, [r3, #40] ; 0x28 a0025744: e3530000 cmp r3, #0 a0025748: 0a00000b beq a002577c rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); a002574c: e12fff33 blx r3 } a0025750: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); a0025754: eb00648b bl a003e988 <__errno> <== NOT EXECUTED a0025758: e3a03009 mov r3, #9 <== NOT EXECUTED a002575c: e5803000 str r3, [r0] <== NOT EXECUTED a0025760: e3e00000 mvn r0, #0 <== NOT EXECUTED a0025764: 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 ); a0025768: eb006486 bl a003e988 <__errno> a002576c: e3a03016 mov r3, #22 a0025770: e5803000 str r3, [r0] a0025774: e3e00000 mvn r0, #0 a0025778: 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 ); a002577c: eb006481 bl a003e988 <__errno> a0025780: e3a03086 mov r3, #134 ; 0x86 a0025784: e5803000 str r3, [r0] a0025788: e3e00000 mvn r0, #0 a002578c: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0025790: a0058914 .word 0xa0058914 a0025794: a006766c .word 0xa006766c a000904c : ) { rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a000904c: e59f30ec ldr r3, [pc, #236] ; a0009140 int ftruncate( int fd, off_t length ) { a0009050: e92d40f0 push {r4, r5, r6, r7, lr} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a0009054: e5933000 ldr r3, [r3] int ftruncate( int fd, off_t length ) { a0009058: e24dd014 sub sp, sp, #20 a000905c: e1a05001 mov r5, r1 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a0009060: e1500003 cmp r0, r3 int ftruncate( int fd, off_t length ) { a0009064: e1a06002 mov r6, r2 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a0009068: 2a000020 bcs a00090f0 iop = rtems_libio_iop( fd ); a000906c: e59f30d0 ldr r3, [pc, #208] ; a0009144 a0009070: e5934000 ldr r4, [r3] a0009074: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); a0009078: e5943014 ldr r3, [r4, #20] a000907c: e3130c01 tst r3, #256 ; 0x100 a0009080: 0a00001a beq a00090f0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; a0009084: e284c018 add ip, r4, #24 a0009088: e1a0700d mov r7, sp a000908c: e8bc000f ldm ip!, {r0, r1, r2, r3} a0009090: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) a0009094: e59d100c ldr r1, [sp, #12] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; a0009098: e59c2000 ldr r2, [ip] if ( !loc.ops->node_type_h ) a000909c: e591c010 ldr ip, [r1, #16] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; a00090a0: e5872000 str r2, [r7] if ( !loc.ops->node_type_h ) a00090a4: e35c0000 cmp ip, #0 a00090a8: 0a00001a beq a0009118 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) a00090ac: e1a0000d mov r0, sp a00090b0: e12fff3c blx ip a00090b4: e3500001 cmp r0, #1 a00090b8: 0a00001b beq a000912c rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a00090bc: e5943014 ldr r3, [r4, #20] a00090c0: e3130004 tst r3, #4 a00090c4: 0a00000e beq a0009104 if ( !iop->handlers->ftruncate_h ) a00090c8: e594303c ldr r3, [r4, #60] ; 0x3c a00090cc: e5933020 ldr r3, [r3, #32] a00090d0: e3530000 cmp r3, #0 a00090d4: 0a00000f beq a0009118 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); a00090d8: e1a00004 mov r0, r4 a00090dc: e1a01005 mov r1, r5 a00090e0: e1a02006 mov r2, r6 a00090e4: e12fff33 blx r3 } a00090e8: e28dd014 add sp, sp, #20 a00090ec: 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); a00090f0: eb00117c bl a000d6e8 <__errno> <== NOT EXECUTED a00090f4: e3a03009 mov r3, #9 <== NOT EXECUTED a00090f8: e5803000 str r3, [r0] <== NOT EXECUTED a00090fc: e3e00000 mvn r0, #0 <== NOT EXECUTED a0009100: eafffff8 b a00090e8 <== 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 ); a0009104: eb001177 bl a000d6e8 <__errno> <== NOT EXECUTED a0009108: e3a03016 mov r3, #22 <== NOT EXECUTED a000910c: e5803000 str r3, [r0] <== NOT EXECUTED a0009110: e3e00000 mvn r0, #0 <== NOT EXECUTED a0009114: eafffff3 b a00090e8 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a0009118: eb001172 bl a000d6e8 <__errno> <== NOT EXECUTED a000911c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0009120: e5803000 str r3, [r0] <== NOT EXECUTED a0009124: e3e00000 mvn r0, #0 <== NOT EXECUTED a0009128: eaffffee b a00090e8 <== 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 ); a000912c: eb00116d bl a000d6e8 <__errno> a0009130: e3a03015 mov r3, #21 a0009134: e5803000 str r3, [r0] a0009138: e3e00000 mvn r0, #0 a000913c: eaffffe9 b a00090e8 a0009140: a0018e10 .word 0xa0018e10 a0009144: a001a82c .word 0xa001a82c a00582e8 : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a00582e8: e59f30ac ldr r3, [pc, #172] ; a005839c int getdents( int dd_fd, char *dd_buf, int dd_len ) { a00582ec: e92d40f0 push {r4, r5, r6, r7, lr} /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a00582f0: e5933000 ldr r3, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { a00582f4: e24dd014 sub sp, sp, #20 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; a00582f8: e1a0700d mov r7, sp /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a00582fc: e1500003 cmp r0, r3 a0058300: 359f3098 ldrcc r3, [pc, #152] ; a00583a0 a0058304: 23a04000 movcs r4, #0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { a0058308: e1a06001 mov r6, r1 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a005830c: 35934000 ldrcc r4, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { a0058310: e1a05002 mov r5, r2 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a0058314: 30844300 addcc r4, r4, r0, lsl #6 /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0058318: e284c018 add ip, r4, #24 a005831c: e8bc000f ldm ip!, {r0, r1, r2, r3} a0058320: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) a0058324: e59d100c ldr r1, [sp, #12] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0058328: e59c2000 ldr r2, [ip] if ( !loc.ops->node_type_h ) a005832c: e591c010 ldr ip, [r1, #16] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0058330: e5872000 str r2, [r7] if ( !loc.ops->node_type_h ) a0058334: e35c0000 cmp ip, #0 a0058338: 0a000012 beq a0058388 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) a005833c: e1a0000d mov r0, sp a0058340: e12fff3c blx ip a0058344: e3500001 cmp r0, #1 a0058348: 1a000009 bne a0058374 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) a005834c: e594303c ldr r3, [r4, #60] ; 0x3c a0058350: e5933008 ldr r3, [r3, #8] a0058354: e3530000 cmp r3, #0 a0058358: 0a00000a beq a0058388 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); a005835c: e1a00004 mov r0, r4 a0058360: e1a01006 mov r1, r6 a0058364: e1a02005 mov r2, r5 a0058368: e12fff33 blx r3 } a005836c: e28dd014 add sp, sp, #20 a0058370: 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 ); a0058374: ebff9983 bl a003e988 <__errno> a0058378: e3a03014 mov r3, #20 a005837c: e5803000 str r3, [r0] a0058380: e3e00000 mvn r0, #0 a0058384: eafffff8 b a005836c * 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 ); a0058388: ebff997e bl a003e988 <__errno> <== NOT EXECUTED a005838c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0058390: e5803000 str r3, [r0] <== NOT EXECUTED a0058394: e3e00000 mvn r0, #0 <== NOT EXECUTED a0058398: eafffff3 b a005836c <== NOT EXECUTED a005839c: a0058914 .word 0xa0058914 a00583a0: a006766c .word 0xa006766c a00258bc : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { a00258bc: e59f3008 ldr r3, [pc, #8] ; a00258cc <== NOT EXECUTED a00258c0: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } a00258c4: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00258c8: e12fff1e bx lr <== NOT EXECUTED a00258cc: a0058c2c .word 0xa0058c2c a0025f34 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { a0025f34: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0025f38: e59d801c ldr r8, [sp, #28] a0025f3c: e1a05000 mov r5, r0 a0025f40: e1a0a001 mov sl, r1 a0025f44: e1a04002 mov r4, r2 a0025f48: e1a07003 mov r7, r3 FILE *fp; int match; init_etc_passwd_group(); a0025f4c: ebffffb0 bl a0025e14 if ((fp = fopen("/etc/group", "r")) == NULL) { a0025f50: e59f00b0 ldr r0, [pc, #176] ; a0026008 a0025f54: e59f10b0 ldr r1, [pc, #176] ; a002600c a0025f58: eb0064fa bl a003f348 a0025f5c: e2506000 subs r6, r0, #0 a0025f60: 1a000006 bne a0025f80 a0025f64: ea000022 b a0025ff4 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); a0025f68: e5940000 ldr r0, [r4] a0025f6c: eb007aa8 bl a0044a14 a0025f70: e2700001 rsbs r0, r0, #1 a0025f74: 33a00000 movcc r0, #0 } else { match = (grp->gr_gid == gid); } if (match) { a0025f78: e3500000 cmp r0, #0 a0025f7c: 1a00000f bne a0025fc0 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { a0025f80: e1a01004 mov r1, r4 a0025f84: e1a02007 mov r2, r7 a0025f88: e1a03008 mov r3, r8 a0025f8c: e1a00006 mov r0, r6 a0025f90: ebfffedf bl a0025b14 a0025f94: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); a0025f98: e1a01005 mov r1, r5 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { a0025f9c: 0a00000d beq a0025fd8 errno = EINVAL; fclose(fp); return -1; } if (name) { a0025fa0: e3550000 cmp r5, #0 a0025fa4: 1affffef bne a0025f68 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); a0025fa8: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED a0025fac: e150000a cmp r0, sl <== NOT EXECUTED a0025fb0: 13a00000 movne r0, #0 <== NOT EXECUTED a0025fb4: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { a0025fb8: e3500000 cmp r0, #0 <== NOT EXECUTED a0025fbc: 0affffef beq a0025f80 <== NOT EXECUTED fclose(fp); a0025fc0: e1a00006 mov r0, r6 a0025fc4: eb0062bc bl a003eabc *result = grp; a0025fc8: e59d3020 ldr r3, [sp, #32] a0025fcc: e3a00000 mov r0, #0 a0025fd0: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } a0025fd4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; a0025fd8: eb00626a bl a003e988 <__errno> <== NOT EXECUTED a0025fdc: e3a03016 mov r3, #22 <== NOT EXECUTED a0025fe0: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); a0025fe4: e1a00006 mov r0, r6 <== NOT EXECUTED a0025fe8: eb0062b3 bl a003eabc <== NOT EXECUTED a0025fec: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a0025ff0: 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; a0025ff4: eb006263 bl a003e988 <__errno> <== NOT EXECUTED a0025ff8: e3a03016 mov r3, #22 <== NOT EXECUTED a0025ffc: e5803000 str r3, [r0] <== NOT EXECUTED a0026000: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a0026004: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a0026008: a005cf60 .word 0xa005cf60 a002600c: a005f868 .word 0xa005f868 a0025c68 : return NULL; return p; } struct group *getgrent(void) { a0025c68: e92d4010 push {r4, lr} <== NOT EXECUTED if (group_fp == NULL) a0025c6c: e59f4030 ldr r4, [pc, #48] ; a0025ca4 <== NOT EXECUTED a0025c70: e5940000 ldr r0, [r4] <== NOT EXECUTED a0025c74: e3500000 cmp r0, #0 <== NOT EXECUTED a0025c78: 1a000001 bne a0025c84 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) a0025c7c: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &grent; } a0025c80: e8bd8010 pop {r4, pc} <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) a0025c84: e2841008 add r1, r4, #8 <== NOT EXECUTED a0025c88: e2842018 add r2, r4, #24 <== NOT EXECUTED a0025c8c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0025c90: ebffff9f bl a0025b14 <== NOT EXECUTED a0025c94: e3500000 cmp r0, #0 <== NOT EXECUTED a0025c98: 0afffff7 beq a0025c7c <== NOT EXECUTED a0025c9c: e2840008 add r0, r4, #8 <== NOT EXECUTED a0025ca0: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0025ca4: a0067384 .word 0xa0067384 a002604c : struct group *getgrgid( gid_t gid ) { a002604c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) a0026050: e59f1030 ldr r1, [pc, #48] ; a0026088 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { a0026054: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED a0026058: e24dd008 sub sp, sp, #8 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) a002605c: e28dc004 add ip, sp, #4 <== NOT EXECUTED a0026060: e2812010 add r2, r1, #16 <== NOT EXECUTED a0026064: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0026068: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a002606c: e58dc000 str ip, [sp] <== NOT EXECUTED a0026070: ebffffe6 bl a0026010 <== NOT EXECUTED a0026074: e3500000 cmp r0, #0 <== NOT EXECUTED a0026078: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; a002607c: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } a0026080: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0026084: e8bd8000 pop {pc} <== NOT EXECUTED a0026088: a006738c .word 0xa006738c a0026010 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { a0026010: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0026014: e1a0c002 mov ip, r2 <== NOT EXECUTED a0026018: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a002601c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); a0026020: e58d3000 str r3, [sp] <== NOT EXECUTED a0026024: e1a0300c mov r3, ip <== NOT EXECUTED a0026028: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { a002602c: e1a0e001 mov lr, r1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); a0026030: e1a0200e mov r2, lr <== NOT EXECUTED a0026034: e1a01820 lsr r1, r0, #16 <== NOT EXECUTED a0026038: e3a00000 mov r0, #0 <== NOT EXECUTED a002603c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a0026040: ebffffbb bl a0025f34 <== NOT EXECUTED } a0026044: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0026048: e8bd8000 pop {pc} <== NOT EXECUTED a0026130 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { a0026130: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0026134: e59d801c ldr r8, [sp, #28] a0026138: e1a05000 mov r5, r0 a002613c: e1a0a001 mov sl, r1 a0026140: e1a04002 mov r4, r2 a0026144: e1a07003 mov r7, r3 FILE *fp; int match; init_etc_passwd_group(); a0026148: ebffff31 bl a0025e14 if ((fp = fopen("/etc/passwd", "r")) == NULL) { a002614c: e59f00b0 ldr r0, [pc, #176] ; a0026204 a0026150: e59f10b0 ldr r1, [pc, #176] ; a0026208 a0026154: eb00647b bl a003f348 a0026158: e2506000 subs r6, r0, #0 a002615c: 1a000006 bne a002617c a0026160: ea000022 b a00261f0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); a0026164: e5940000 ldr r0, [r4] a0026168: eb007a29 bl a0044a14 a002616c: e2700001 rsbs r0, r0, #1 a0026170: 33a00000 movcc r0, #0 } else { match = (pwd->pw_uid == uid); } if (match) { a0026174: e3500000 cmp r0, #0 a0026178: 1a00000f bne a00261bc if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { a002617c: e1a01004 mov r1, r4 a0026180: e1a02007 mov r2, r7 a0026184: e1a03008 mov r3, r8 a0026188: e1a00006 mov r0, r6 a002618c: ebfffec5 bl a0025ca8 a0026190: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); a0026194: e1a01005 mov r1, r5 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { a0026198: 0a00000d beq a00261d4 errno = EINVAL; fclose(fp); return -1; } if (name) { a002619c: e3550000 cmp r5, #0 a00261a0: 1affffef bne a0026164 match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); a00261a4: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED a00261a8: e150000a cmp r0, sl <== NOT EXECUTED a00261ac: 13a00000 movne r0, #0 <== NOT EXECUTED a00261b0: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { a00261b4: e3500000 cmp r0, #0 <== NOT EXECUTED a00261b8: 0affffef beq a002617c <== NOT EXECUTED fclose(fp); a00261bc: e1a00006 mov r0, r6 a00261c0: eb00623d bl a003eabc *result = pwd; a00261c4: e59d3020 ldr r3, [sp, #32] a00261c8: e3a00000 mov r0, #0 a00261cc: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } a00261d0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; a00261d4: eb0061eb bl a003e988 <__errno> <== NOT EXECUTED a00261d8: e3a03016 mov r3, #22 <== NOT EXECUTED a00261dc: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); a00261e0: e1a00006 mov r0, r6 <== NOT EXECUTED a00261e4: eb006234 bl a003eabc <== NOT EXECUTED a00261e8: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a00261ec: 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; a00261f0: eb0061e4 bl a003e988 <__errno> <== NOT EXECUTED a00261f4: e3a03016 mov r3, #22 <== NOT EXECUTED a00261f8: e5803000 str r3, [r0] <== NOT EXECUTED a00261fc: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a0026200: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a0026204: a005cea8 .word 0xa005cea8 a0026208: a005f868 .word 0xa005f868 a0025dd4 : return NULL; return p; } struct passwd *getpwent(void) { a0025dd4: e92d4010 push {r4, lr} <== NOT EXECUTED if (passwd_fp == NULL) a0025dd8: e59f4030 ldr r4, [pc, #48] ; a0025e10 <== NOT EXECUTED a0025ddc: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED a0025de0: e3500000 cmp r0, #0 <== NOT EXECUTED a0025de4: 1a000001 bne a0025df0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) a0025de8: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &pwent; } a0025dec: e8bd8010 pop {r4, pc} <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) a0025df0: e28410e0 add r1, r4, #224 ; 0xe0 <== NOT EXECUTED a0025df4: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED a0025df8: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0025dfc: ebffffa9 bl a0025ca8 <== NOT EXECUTED a0025e00: e3500000 cmp r0, #0 <== NOT EXECUTED a0025e04: 0afffff7 beq a0025de8 <== NOT EXECUTED a0025e08: e28400e0 add r0, r4, #224 ; 0xe0 <== NOT EXECUTED a0025e0c: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0025e10: a0067384 .word 0xa0067384 a0026248 : struct passwd *getpwuid( uid_t uid ) { a0026248: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) a002624c: e59f1030 ldr r1, [pc, #48] ; a0026284 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { a0026250: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED a0026254: e24dd008 sub sp, sp, #8 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) a0026258: e28dc004 add ip, sp, #4 <== NOT EXECUTED a002625c: e281201c add r2, r1, #28 <== NOT EXECUTED a0026260: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0026264: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a0026268: e58dc000 str ip, [sp] <== NOT EXECUTED a002626c: ebffffe6 bl a002620c <== NOT EXECUTED a0026270: e3500000 cmp r0, #0 <== NOT EXECUTED a0026274: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; a0026278: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } a002627c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0026280: e8bd8000 pop {pc} <== NOT EXECUTED a0026284: a0067464 .word 0xa0067464 a002620c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { a002620c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0026210: e1a0c002 mov ip, r2 <== NOT EXECUTED a0026214: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0026218: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); a002621c: e58d3000 str r3, [sp] <== NOT EXECUTED a0026220: e1a0300c mov r3, ip <== NOT EXECUTED a0026224: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { a0026228: e1a0e001 mov lr, r1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); a002622c: e1a0200e mov r2, lr <== NOT EXECUTED a0026230: e1a01820 lsr r1, r0, #16 <== NOT EXECUTED a0026234: e3a00000 mov r0, #0 <== NOT EXECUTED a0026238: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a002623c: ebffffbb bl a0026130 <== NOT EXECUTED } a0026240: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0026244: e8bd8000 pop {pc} <== NOT EXECUTED a0009170 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { a0009170: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { a0009174: e2504000 subs r4, r0, #0 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { a0009178: e24dd008 sub sp, sp, #8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { a000917c: 0a00000e beq a00091bc static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0009180: e10f5000 mrs r5, CPSR a0009184: e3853080 orr r3, r5, #128 ; 0x80 a0009188: e129f003 msr CPSR_fc, r3 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); a000918c: e1a0000d mov r0, sp a0009190: eb00053a bl a000a680 <_TOD_Get> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0009194: 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; a0009198: e59fc030 ldr ip, [pc, #48] ; a00091d0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; a000919c: e89d000c ldm sp, {r2, r3} useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; a00091a0: e3a00000 mov r0, #0 a00091a4: e0c1539c smull r5, r1, ip, r3 a00091a8: e1a03fc3 asr r3, r3, #31 a00091ac: e0633341 rsb r3, r3, r1, asr #6 a00091b0: e884000c stm r4, {r2, r3} * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } a00091b4: e28dd008 add sp, sp, #8 a00091b8: e8bd8030 pop {r4, r5, pc} void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; a00091bc: eb001149 bl a000d6e8 <__errno> <== NOT EXECUTED a00091c0: e3a0300e mov r3, #14 <== NOT EXECUTED a00091c4: e5803000 str r3, [r0] <== NOT EXECUTED a00091c8: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a00091cc: eafffff8 b a00091b4 <== NOT EXECUTED a00091d0: 10624dd3 .word 0x10624dd3 a000570c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { a000570c: e59f3008 ldr r3, [pc, #8] ; a000571c <== NOT EXECUTED a0005710: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } a0005714: e1d303b2 ldrh r0, [r3, #50] ; 0x32 <== NOT EXECUTED a0005718: e12fff1e bx lr <== NOT EXECUTED a000571c: a0058c2c .word 0xa0058c2c a0004ff0 : int ioctl( int fd, ioctl_command_t command, ... ) { a0004ff0: e92d000e push {r1, r2, r3} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); a0004ff4: e59f308c ldr r3, [pc, #140] ; a0005088 int ioctl( int fd, ioctl_command_t command, ... ) { a0004ff8: 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 ); a0004ffc: e5933000 ldr r3, [r3] int ioctl( int fd, ioctl_command_t command, ... ) { a0005000: e24dd004 sub sp, sp, #4 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); a0005004: e1500003 cmp r0, r3 a0005008: 2a000014 bcs a0005060 iop = rtems_libio_iop( fd ); a000500c: e59f3078 ldr r3, [pc, #120] ; a000508c a0005010: e5933000 ldr r3, [r3] a0005014: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); a0005018: e5903014 ldr r3, [r0, #20] a000501c: e3130c01 tst r3, #256 ; 0x100 a0005020: 0a00000e beq a0005060 /* * Now process the ioctl(). */ if ( !iop->handlers ) a0005024: 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 *); a0005028: e28d2010 add r2, sp, #16 a000502c: e58d2000 str r2, [sp] /* * Now process the ioctl(). */ if ( !iop->handlers ) a0005030: e3530000 cmp r3, #0 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); a0005034: e59d200c ldr r2, [sp, #12] /* * Now process the ioctl(). */ if ( !iop->handlers ) a0005038: 0a000008 beq a0005060 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) a000503c: e5933010 ldr r3, [r3, #16] a0005040: e3530000 cmp r3, #0 a0005044: 0a00000a beq a0005074 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); a0005048: e59d1008 ldr r1, [sp, #8] a000504c: e12fff33 blx r3 return rc; } a0005050: e28dd004 add sp, sp, #4 a0005054: e49de004 pop {lr} ; (ldr lr, [sp], #4) a0005058: e28dd00c add sp, sp, #12 a000505c: e12fff1e bx lr /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); a0005060: eb003845 bl a001317c <__errno> a0005064: e3a03009 mov r3, #9 a0005068: e5803000 str r3, [r0] a000506c: e3e00000 mvn r0, #0 a0005070: eafffff6 b a0005050 if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a0005074: eb003840 bl a001317c <__errno> <== NOT EXECUTED a0005078: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000507c: e5803000 str r3, [r0] <== NOT EXECUTED a0005080: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005084: eafffff1 b a0005050 <== NOT EXECUTED a0005088: a001ed80 .word 0xa001ed80 a000508c: a0020c18 .word 0xa0020c18 a00029f0 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) a00029f0: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { a00029f4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) a00029f8: e3130020 tst r3, #32 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { a00029fc: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; a0002a00: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) a0002a04: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { a0002a08: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) a0002a0c: 0a000007 beq a0002a30 <== NOT EXECUTED c = tolower (c); a0002a10: e59f219c ldr r2, [pc, #412] ; a0002bb4 <== NOT EXECUTED a0002a14: e5922000 ldr r2, [r2] <== NOT EXECUTED a0002a18: e0822004 add r2, r2, r4 <== NOT EXECUTED a0002a1c: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a0002a20: e2022003 and r2, r2, #3 <== NOT EXECUTED a0002a24: e3520001 cmp r2, #1 <== NOT EXECUTED a0002a28: 02844020 addeq r4, r4, #32 <== NOT EXECUTED a0002a2c: e20440ff and r4, r4, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { a0002a30: e354000d cmp r4, #13 <== NOT EXECUTED a0002a34: 0a000012 beq a0002a84 <== 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)) { a0002a38: e354000a cmp r4, #10 <== NOT EXECUTED a0002a3c: 0a000034 beq a0002b14 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { a0002a40: e3540000 cmp r4, #0 <== NOT EXECUTED a0002a44: 1a000015 bne a0002aa0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { a0002a48: e59f2168 ldr r2, [pc, #360] ; a0002bb8 <== NOT EXECUTED a0002a4c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a0002a50: e5922000 ldr r2, [r2] <== NOT EXECUTED a0002a54: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0002a58: e1530002 cmp r3, r2 <== NOT EXECUTED a0002a5c: aa00000a bge a0002a8c <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) a0002a60: e595203c ldr r2, [r5, #60] ; 0x3c <== NOT EXECUTED a0002a64: e3120008 tst r2, #8 <== NOT EXECUTED a0002a68: 1a00002c bne a0002b20 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; a0002a6c: e595101c ldr r1, [r5, #28] <== NOT EXECUTED a0002a70: e2832001 add r2, r3, #1 <== NOT EXECUTED a0002a74: e3a00000 mov r0, #0 <== NOT EXECUTED a0002a78: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED a0002a7c: e5852020 str r2, [r5, #32] <== NOT EXECUTED a0002a80: 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) a0002a84: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED a0002a88: 0a000001 beq a0002a94 <== 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; a0002a8c: e3a00000 mov r0, #0 <== NOT EXECUTED } return 0; } a0002a90: 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) a0002a94: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0002a98: 03a0400d moveq r4, #13 <== NOT EXECUTED a0002a9c: 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)) { a0002aa0: e595303c ldr r3, [r5, #60] ; 0x3c <== NOT EXECUTED a0002aa4: e3130002 tst r3, #2 <== NOT EXECUTED a0002aa8: 0affffe6 beq a0002a48 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { a0002aac: e5d52043 ldrb r2, [r5, #67] ; 0x43 <== NOT EXECUTED a0002ab0: e1520004 cmp r2, r4 <== NOT EXECUTED a0002ab4: 0a000039 beq a0002ba0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { a0002ab8: e5d52044 ldrb r2, [r5, #68] ; 0x44 <== NOT EXECUTED a0002abc: e1520004 cmp r2, r4 <== NOT EXECUTED a0002ac0: 0a000031 beq a0002b8c <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { a0002ac4: e5d52045 ldrb r2, [r5, #69] ; 0x45 <== NOT EXECUTED a0002ac8: e1520004 cmp r2, r4 <== NOT EXECUTED a0002acc: 0a000028 beq a0002b74 <== NOT EXECUTED return 1; } else if (c == '\n') { a0002ad0: e354000a cmp r4, #10 <== NOT EXECUTED a0002ad4: 0a00001b beq a0002b48 <== 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]) a0002ad8: e5d5204c ldrb r2, [r5, #76] ; 0x4c <== NOT EXECUTED a0002adc: e1520004 cmp r2, r4 <== NOT EXECUTED a0002ae0: 0a000002 beq a0002af0 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { a0002ae4: e5d52051 ldrb r2, [r5, #81] ; 0x51 <== NOT EXECUTED a0002ae8: e1520004 cmp r2, r4 <== NOT EXECUTED a0002aec: 1affffd5 bne a0002a48 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) a0002af0: e3130008 tst r3, #8 <== NOT EXECUTED a0002af4: 1a000020 bne a0002b7c <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; a0002af8: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a0002afc: e595101c ldr r1, [r5, #28] <== NOT EXECUTED a0002b00: e3a00001 mov r0, #1 <== NOT EXECUTED a0002b04: e0832000 add r2, r3, r0 <== NOT EXECUTED a0002b08: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED a0002b0c: e5852020 str r2, [r5, #32] <== NOT EXECUTED return 1; a0002b10: 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)) { a0002b14: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED a0002b18: 13a0400d movne r4, #13 <== NOT EXECUTED a0002b1c: eaffffdf b a0002aa0 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); a0002b20: e1a00004 mov r0, r4 <== NOT EXECUTED a0002b24: e1a01005 mov r1, r5 <== NOT EXECUTED a0002b28: ebffff0c bl a0002760 <== NOT EXECUTED a0002b2c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; a0002b30: e595101c ldr r1, [r5, #28] <== NOT EXECUTED a0002b34: e3a00000 mov r0, #0 <== NOT EXECUTED a0002b38: e2832001 add r2, r3, #1 <== NOT EXECUTED a0002b3c: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED a0002b40: e5852020 str r2, [r5, #32] <== NOT EXECUTED a0002b44: 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)) a0002b48: e3130048 tst r3, #72 ; 0x48 <== NOT EXECUTED a0002b4c: 0a000002 beq a0002b5c <== NOT EXECUTED echo (c, tty); a0002b50: e1a00004 mov r0, r4 <== NOT EXECUTED a0002b54: e1a01005 mov r1, r5 <== NOT EXECUTED a0002b58: ebffff00 bl a0002760 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; a0002b5c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a0002b60: e595101c ldr r1, [r5, #28] <== NOT EXECUTED a0002b64: e3a0000a mov r0, #10 <== NOT EXECUTED a0002b68: e2832001 add r2, r3, #1 <== NOT EXECUTED a0002b6c: e7c10003 strb r0, [r1, r3] <== NOT EXECUTED a0002b70: e5852020 str r2, [r5, #32] <== NOT EXECUTED a0002b74: e3a00001 mov r0, #1 <== NOT EXECUTED return 1; a0002b78: 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); a0002b7c: e1a00004 mov r0, r4 <== NOT EXECUTED a0002b80: e1a01005 mov r1, r5 <== NOT EXECUTED a0002b84: ebfffef5 bl a0002760 <== NOT EXECUTED a0002b88: eaffffda b a0002af8 <== 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); a0002b8c: e1a00005 mov r0, r5 <== NOT EXECUTED a0002b90: e3a01001 mov r1, #1 <== NOT EXECUTED a0002b94: ebffff13 bl a00027e8 <== NOT EXECUTED a0002b98: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; a0002b9c: 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); a0002ba0: e1a00005 mov r0, r5 <== NOT EXECUTED a0002ba4: e3a01000 mov r1, #0 <== NOT EXECUTED a0002ba8: ebffff0e bl a00027e8 <== NOT EXECUTED a0002bac: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; a0002bb0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0002bb4: a0019090 .word 0xa0019090 a0002bb8: a0018fd4 .word 0xa0018fd4 a000d040 : int killinfo( pid_t pid, int sig, const union sigval *value ) { a000d040: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000d044: e24dd00c sub sp, sp, #12 a000d048: e1a04000 mov r4, r0 a000d04c: e1a05001 mov r5, r1 a000d050: e1a07002 mov r7, r2 POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) a000d054: ebfffbe9 bl a000c000 a000d058: e1500004 cmp r0, r4 a000d05c: 1a000097 bne a000d2c0 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) a000d060: e3550000 cmp r5, #0 a000d064: 0a00009a beq a000d2d4 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); a000d068: e2453001 sub r3, r5, #1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) a000d06c: e353001f cmp r3, #31 a000d070: 8a000097 bhi a000d2d4 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 ) a000d074: e59f6284 ldr r6, [pc, #644] ; a000d300 a000d078: e3a0100c mov r1, #12 a000d07c: e0226591 mla r2, r1, r5, r6 a000d080: e5922008 ldr r2, [r2, #8] a000d084: e3520001 cmp r2, #1 a000d088: 0a00003a beq a000d178 /* * 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 ) ) a000d08c: e3550008 cmp r5, #8 a000d090: 13550004 cmpne r5, #4 a000d094: 0a00003a beq a000d184 a000d098: e355000b cmp r5, #11 a000d09c: 0a000038 beq a000d184 static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); a000d0a0: e3a04001 mov r4, #1 * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { a000d0a4: e3570000 cmp r7, #0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; a000d0a8: e58d4004 str r4, [sp, #4] /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; a000d0ac: e58d5000 str r5, [sp] a000d0b0: e1a04314 lsl r4, r4, r3 siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; a000d0b4: 15973000 ldrne r3, [r7] */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; a000d0b8: 058d7008 streq r7, [sp, #8] } else { siginfo->si_value = *value; a000d0bc: 158d3008 strne r3, [sp, #8] a000d0c0: e59f323c ldr r3, [pc, #572] ; a000d304 a000d0c4: e5932000 ldr r2, [r3] a000d0c8: e2822001 add r2, r2, #1 a000d0cc: 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; a000d0d0: e59f3230 ldr r3, [pc, #560] ; a000d308 a000d0d4: e5930000 ldr r0, [r3] api = the_thread->API_Extensions[ THREAD_API_POSIX ]; a000d0d8: e5903108 ldr r3, [r0, #264] ; 0x108 a000d0dc: e59330cc ldr r3, [r3, #204] ; 0xcc a000d0e0: e1d43003 bics r3, r4, r3 a000d0e4: 1a000014 bne a000d13c /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; a000d0e8: e59fc21c ldr ip, [pc, #540] ; a000d30c a000d0ec: e49c3004 ldr r3, [ip], #4 a000d0f0: e153000c cmp r3, ip a000d0f4: 0a00003a beq a000d1e4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) a000d0f8: e5932030 ldr r2, [r3, #48] ; 0x30 for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; a000d0fc: e1a00003 mov r0, r3 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; a000d100: e5931108 ldr r1, [r3, #264] ; 0x108 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) a000d104: e1140002 tst r4, r2 a000d108: 0a000008 beq a000d130 a000d10c: ea00000a b a000d13c 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 ) { a000d110: 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 ; a000d114: e153000c cmp r3, ip a000d118: 0a000031 beq a000d1e4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) a000d11c: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; a000d120: e5931108 ldr r1, [r3, #264] ; 0x108 <== 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; a000d124: e1a00003 mov r0, r3 <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) a000d128: e1140002 tst r4, r2 <== NOT EXECUTED a000d12c: 1a000002 bne a000d13c <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) a000d130: e59120cc ldr r2, [r1, #204] ; 0xcc a000d134: e1d42002 bics r2, r4, r2 a000d138: 0afffff4 beq a000d110 * 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; a000d13c: e3a03001 mov r3, #1 a000d140: 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 ) ) { a000d144: e1a01005 mov r1, r5 a000d148: e1a0200d mov r2, sp a000d14c: eb0000a7 bl a000d3f0 <_POSIX_signals_Unblock_thread> a000d150: e3500000 cmp r0, #0 a000d154: 1a00001f bne a000d1d8 /* * 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 ); a000d158: e1a00004 mov r0, r4 a000d15c: eb000091 bl a000d3a8 <_POSIX_signals_Set_process_signals> if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { a000d160: e3a0300c mov r3, #12 a000d164: e0040593 mul r4, r3, r5 a000d168: e7963004 ldr r3, [r6, r4] a000d16c: e3530002 cmp r3, #2 a000d170: 0a000007 beq a000d194 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); a000d174: ebffe534 bl a000664c <_Thread_Enable_dispatch> a000d178: e3a00000 mov r0, #0 return 0; } a000d17c: e28dd00c add sp, sp, #12 a000d180: 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 ); a000d184: eb000128 bl a000d62c a000d188: e1a01005 mov r1, r5 a000d18c: eb0000e8 bl a000d534 a000d190: eafffff9 b a000d17c */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) a000d194: e59f0174 ldr r0, [pc, #372] ; a000d310 a000d198: ebfff4c3 bl a000a4ac <_Chain_Get> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { a000d19c: e2503000 subs r3, r0, #0 a000d1a0: 0a000050 beq a000d2e8 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; a000d1a4: e59d1000 ldr r1, [sp] a000d1a8: e28d2004 add r2, sp, #4 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); a000d1ac: e59f0160 ldr r0, [pc, #352] ; a000d314 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; a000d1b0: e5831008 str r1, [r3, #8] a000d1b4: e492c004 ldr ip, [r2], #4 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); a000d1b8: e0800004 add r0, r0, r4 a000d1bc: e1a01003 mov r1, r3 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; a000d1c0: e583c00c str ip, [r3, #12] a000d1c4: e5922000 ldr r2, [r2] a000d1c8: e5832010 str r2, [r3, #16] _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); a000d1cc: ebffdf79 bl a0004fb8 <_Chain_Append> } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); a000d1d0: ebffe51d bl a000664c <_Thread_Enable_dispatch> a000d1d4: eaffffe7 b a000d178 /* * 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(); a000d1d8: ebffe51b bl a000664c <_Thread_Enable_dispatch> a000d1dc: e3a00000 mov r0, #0 return 0; a000d1e0: eaffffe5 b a000d17c * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; a000d1e4: e59f312c ldr r3, [pc, #300] ; a000d318 a000d1e8: e59fa12c ldr sl, [pc, #300] ; a000d31c */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( a000d1ec: e3a00000 mov r0, #0 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; a000d1f0: e5d3c000 ldrb ip, [r3] */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( a000d1f4: e28a900c add r9, sl, #12 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; a000d1f8: e28cc001 add ip, ip, #1 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) a000d1fc: e59a3008 ldr r3, [sl, #8] a000d200: e3530000 cmp r3, #0 a000d204: 0a000020 beq a000d28c continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; a000d208: e5933004 ldr r3, [r3, #4] */ if ( !the_info ) continue; #endif maximum = the_info->maximum; a000d20c: e1d3e1b0 ldrh lr, [r3, #16] object_table = the_info->local_table; a000d210: e593701c ldr r7, [r3, #28] for ( index = 1 ; index <= maximum ; index++ ) { a000d214: e35e0000 cmp lr, #0 a000d218: 0a00001b beq a000d28c a000d21c: e3a03001 mov r3, #1 the_thread = (Thread_Control *) object_table[ index ]; a000d220: e7972103 ldr r2, [r7, r3, lsl #2] #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { a000d224: e2833001 add r3, r3, #1 the_thread = (Thread_Control *) object_table[ index ]; if ( !the_thread ) a000d228: e3520000 cmp r2, #0 a000d22c: 0a000014 beq a000d284 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) a000d230: e5921014 ldr r1, [r2, #20] a000d234: e151000c cmp r1, ip a000d238: 8a000011 bhi a000d284 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; a000d23c: e5928108 ldr r8, [r2, #264] ; 0x108 a000d240: e59880cc ldr r8, [r8, #204] ; 0xcc a000d244: e1d48008 bics r8, r4, r8 a000d248: 0a00000d beq a000d284 * * 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 ) { a000d24c: e151000c cmp r1, ip a000d250: 3a000009 bcc a000d27c * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { a000d254: e5908010 ldr r8, [r0, #16] a000d258: e3580000 cmp r8, #0 a000d25c: 0a000008 beq a000d284 /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { a000d260: e592b010 ldr fp, [r2, #16] a000d264: e35b0000 cmp fp, #0 a000d268: 0a000003 beq a000d27c continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { a000d26c: e3180201 tst r8, #268435456 ; 0x10000000 a000d270: 1a000003 bne a000d284 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { a000d274: e31b0201 tst fp, #268435456 ; 0x10000000 a000d278: 0a000001 beq a000d284 a000d27c: e1a0c001 mov ip, r1 a000d280: e1a00002 mov r0, r2 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { a000d284: e15e0003 cmp lr, r3 a000d288: 2affffe4 bcs a000d220 a000d28c: e28aa004 add sl, sl, #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++) { a000d290: e15a0009 cmp sl, r9 a000d294: 1affffd8 bne a000d1fc } } } } if ( interested ) { a000d298: e3500000 cmp r0, #0 a000d29c: 0affffad beq a000d158 * 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; a000d2a0: e3a03001 mov r3, #1 a000d2a4: 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 ) ) { a000d2a8: e1a01005 mov r1, r5 a000d2ac: e1a0200d mov r2, sp a000d2b0: eb00004e bl a000d3f0 <_POSIX_signals_Unblock_thread> a000d2b4: e3500000 cmp r0, #0 a000d2b8: 0affffa6 beq a000d158 a000d2bc: eaffffc5 b a000d1d8 <== NOT EXECUTED /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); a000d2c0: eb000108 bl a000d6e8 <__errno> a000d2c4: e3a03003 mov r3, #3 a000d2c8: e5803000 str r3, [r0] a000d2cc: e3e00000 mvn r0, #0 a000d2d0: eaffffa9 b a000d17c */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); a000d2d4: eb000103 bl a000d6e8 <__errno> a000d2d8: e3a03016 mov r3, #22 a000d2dc: e5803000 str r3, [r0] a000d2e0: e3e00000 mvn r0, #0 a000d2e4: eaffffa4 b a000d17c 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(); a000d2e8: ebffe4d7 bl a000664c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); a000d2ec: eb0000fd bl a000d6e8 <__errno> a000d2f0: e3a0300b mov r3, #11 a000d2f4: e5803000 str r3, [r0] a000d2f8: e3e00000 mvn r0, #0 a000d2fc: eaffff9e b a000d17c a000d300: a001aeb8 .word 0xa001aeb8 a000d304: a001a9ac .word 0xa001a9ac a000d308: a001aa60 .word 0xa001aa60 a000d30c: a001b044 .word 0xa001b044 a000d310: a001b038 .word 0xa001b038 a000d314: a001b088 .word 0xa001b088 a000d318: a0018ec0 .word 0xa0018ec0 a000d31c: a001a968 .word 0xa001a968 a0018594 : /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) a0018594: e59f3058 ldr r3, [pc, #88] ; a00185f4 extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { a0018598: e92d4030 push {r4, r5, lr} /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) a001859c: e5933000 ldr r3, [r3] a00185a0: e3530003 cmp r3, #3 a00185a4: 0a000000 beq a00185ac a00185a8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { a00185ac: e59f3044 ldr r3, [pc, #68] ; a00185f8 a00185b0: e59f4044 ldr r4, [pc, #68] ; a00185fc a00185b4: e5935000 ldr r5, [r3] a00185b8: e5943000 ldr r3, [r4] a00185bc: e1530005 cmp r3, r5 a00185c0: 0a000002 beq a00185d0 _wrapup_reent(_global_impure_ptr); a00185c4: e1a00005 mov r0, r5 a00185c8: eb000174 bl a0018ba0 <_wrapup_reent> /* Don't reclaim this one, just in case we do printfs * on the way out to ROM. */ _reclaim_reent(&libc_global_reent); #endif _REENT = _global_impure_ptr; a00185cc: e5845000 str r5, [r4] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); a00185d0: e5950004 ldr r0, [r5, #4] a00185d4: ebffd490 bl a000d81c fclose (stdout); a00185d8: e5943000 ldr r3, [r4] a00185dc: e5930008 ldr r0, [r3, #8] a00185e0: ebffd48d bl a000d81c fclose (stderr); a00185e4: e5943000 ldr r3, [r4] a00185e8: e593000c ldr r0, [r3, #12] } a00185ec: e8bd4030 pop {r4, r5, lr} * _fwalk (_REENT, fclose); */ fclose (stdin); fclose (stdout); fclose (stderr); a00185f0: eaffd489 b a000d81c a00185f4: a001ab50 .word 0xa001ab50 a00185f8: a0019cc0 .word 0xa0019cc0 a00185fc: a0019094 .word 0xa0019094 a0026390 : int link( const char *existing, const char *new ) { a0026390: e92d40f0 push {r4, r5, r6, r7, lr} a0026394: e24dd030 sub sp, sp, #48 ; 0x30 a0026398: e1a06001 mov r6, r1 a002639c: e1a04000 mov r4, r0 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), a00263a0: eb007c03 bl a00453b4 a00263a4: e28d5018 add r5, sp, #24 a00263a8: e1a01000 mov r1, r0 a00263ac: e3a0c001 mov ip, #1 a00263b0: e1a00004 mov r0, r4 a00263b4: e3a02000 mov r2, #0 a00263b8: e1a03005 mov r3, r5 a00263bc: e58dc000 str ip, [sp] a00263c0: ebff7c4f bl a0005504 0, &existing_loc, true ); if ( result != 0 ) a00263c4: e3500000 cmp r0, #0 a00263c8: 1a00004b bne a00264fc /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); a00263cc: e5d63000 ldrb r3, [r6] a00263d0: e353002f cmp r3, #47 ; 0x2f a00263d4: 1353005c cmpne r3, #92 ; 0x5c a00263d8: 13a0e000 movne lr, #0 a00263dc: 03a0e001 moveq lr, #1 a00263e0: 1a000033 bne a00264b4 a00263e4: e59f31f0 ldr r3, [pc, #496] ; a00265dc a00263e8: e28d4004 add r4, sp, #4 a00263ec: e3a0e001 mov lr, #1 a00263f0: e593c000 ldr ip, [r3] a00263f4: e28cc018 add ip, ip, #24 a00263f8: e1a07004 mov r7, r4 a00263fc: e8bc000f ldm ip!, {r0, r1, r2, r3} a0026400: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !parent_loc.ops->evalformake_h ) { a0026404: e59d3010 ldr r3, [sp, #16] /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); a0026408: e59c2000 ldr r2, [ip] if ( !parent_loc.ops->evalformake_h ) { a002640c: e5933004 ldr r3, [r3, #4] /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); a0026410: e5872000 str r2, [r7] if ( !parent_loc.ops->evalformake_h ) { a0026414: e3530000 cmp r3, #0 a0026418: 0a00002c beq a00264d0 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 ); a002641c: e086000e add r0, r6, lr a0026420: e1a01004 mov r1, r4 a0026424: e28d202c add r2, sp, #44 ; 0x2c a0026428: e12fff33 blx r3 if ( result != 0 ) { a002642c: e2506000 subs r6, r0, #0 a0026430: 1a000048 bne a0026558 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { a0026434: e59d3028 ldr r3, [sp, #40] ; 0x28 a0026438: e59d2014 ldr r2, [sp, #20] a002643c: e1520003 cmp r2, r3 a0026440: 1a00002f bne a0026504 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { a0026444: e59d2010 ldr r2, [sp, #16] a0026448: e5923008 ldr r3, [r2, #8] a002644c: e3530000 cmp r3, #0 a0026450: 0a00004c beq a0026588 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 ); a0026454: e1a00005 mov r0, r5 a0026458: e1a01004 mov r1, r4 a002645c: e59d202c ldr r2, [sp, #44] ; 0x2c a0026460: e12fff33 blx r3 rtems_filesystem_freenode( &existing_loc ); a0026464: e59d3024 ldr r3, [sp, #36] ; 0x24 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); a0026468: e1a06000 mov r6, r0 rtems_filesystem_freenode( &existing_loc ); a002646c: e3530000 cmp r3, #0 a0026470: 0a000004 beq a0026488 a0026474: e593301c ldr r3, [r3, #28] a0026478: e3530000 cmp r3, #0 a002647c: 0a000001 beq a0026488 a0026480: e1a00005 mov r0, r5 a0026484: e12fff33 blx r3 rtems_filesystem_freenode( &parent_loc ); a0026488: e59d3010 ldr r3, [sp, #16] a002648c: e3530000 cmp r3, #0 a0026490: 0a000004 beq a00264a8 a0026494: e593301c ldr r3, [r3, #28] a0026498: e3530000 cmp r3, #0 a002649c: 0a000001 beq a00264a8 a00264a0: e1a00004 mov r0, r4 a00264a4: e12fff33 blx r3 return result; } a00264a8: e1a00006 mov r0, r6 a00264ac: e28dd030 add sp, sp, #48 ; 0x30 a00264b0: 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 ); a00264b4: e3530000 cmp r3, #0 a00264b8: 0affffc9 beq a00263e4 a00264bc: e59f3118 ldr r3, [pc, #280] ; a00265dc a00264c0: e28d4004 add r4, sp, #4 a00264c4: e593c000 ldr ip, [r3] a00264c8: e28cc004 add ip, ip, #4 a00264cc: eaffffc9 b a00263f8 if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); a00264d0: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a00264d4: e3530000 cmp r3, #0 <== NOT EXECUTED a00264d8: 0a000004 beq a00264f0 <== NOT EXECUTED a00264dc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00264e0: e3530000 cmp r3, #0 <== NOT EXECUTED a00264e4: 0a000001 beq a00264f0 <== NOT EXECUTED a00264e8: e1a00005 mov r0, r5 <== NOT EXECUTED a00264ec: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00264f0: eb006124 bl a003e988 <__errno> <== NOT EXECUTED a00264f4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00264f8: e5803000 str r3, [r0] <== NOT EXECUTED a00264fc: e3e06000 mvn r6, #0 a0026500: eaffffe8 b a00264a8 * 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 ); a0026504: e59d3024 ldr r3, [sp, #36] ; 0x24 a0026508: e3530000 cmp r3, #0 a002650c: 0a000004 beq a0026524 a0026510: e593301c ldr r3, [r3, #28] a0026514: e3530000 cmp r3, #0 a0026518: 0a000001 beq a0026524 a002651c: e1a00005 mov r0, r5 a0026520: e12fff33 blx r3 rtems_filesystem_freenode( &parent_loc ); a0026524: e59d3010 ldr r3, [sp, #16] a0026528: e3530000 cmp r3, #0 a002652c: 0a000004 beq a0026544 a0026530: e593301c ldr r3, [r3, #28] a0026534: e3530000 cmp r3, #0 a0026538: 0a000001 beq a0026544 a002653c: e1a00004 mov r0, r4 a0026540: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( EXDEV ); a0026544: eb00610f bl a003e988 <__errno> a0026548: e3a03012 mov r3, #18 a002654c: e5803000 str r3, [r0] a0026550: e3e06000 mvn r6, #0 a0026554: eaffffd3 b a00264a8 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 ); a0026558: e59d3024 ldr r3, [sp, #36] ; 0x24 a002655c: e3530000 cmp r3, #0 a0026560: 0a000004 beq a0026578 a0026564: e593301c ldr r3, [r3, #28] a0026568: e3530000 cmp r3, #0 a002656c: 0a000001 beq a0026578 a0026570: e1a00005 mov r0, r5 a0026574: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( result ); a0026578: eb006102 bl a003e988 <__errno> a002657c: e5806000 str r6, [r0] a0026580: e3e06000 mvn r6, #0 a0026584: eaffffc7 b a00264a8 rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); a0026588: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a002658c: e3530000 cmp r3, #0 <== NOT EXECUTED a0026590: 0a000005 beq a00265ac <== NOT EXECUTED a0026594: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0026598: e3530000 cmp r3, #0 <== NOT EXECUTED a002659c: 0a000002 beq a00265ac <== NOT EXECUTED a00265a0: e1a00005 mov r0, r5 <== NOT EXECUTED a00265a4: e12fff33 blx r3 <== NOT EXECUTED a00265a8: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); a00265ac: e3520000 cmp r2, #0 <== NOT EXECUTED a00265b0: 0a000004 beq a00265c8 <== NOT EXECUTED a00265b4: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a00265b8: e3530000 cmp r3, #0 <== NOT EXECUTED a00265bc: 0a000001 beq a00265c8 <== NOT EXECUTED a00265c0: e1a00004 mov r0, r4 <== NOT EXECUTED a00265c4: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00265c8: eb0060ee bl a003e988 <__errno> <== NOT EXECUTED a00265cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00265d0: e5803000 str r3, [r0] <== NOT EXECUTED a00265d4: e3e06000 mvn r6, #0 <== NOT EXECUTED a00265d8: eaffffb2 b a00264a8 <== NOT EXECUTED a00265dc: a0058c2c .word 0xa0058c2c a0018434 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); a0018434: e59fc134 ldr ip, [pc, #308] ; a0018570 off_t lseek( int fd, off_t offset, int whence ) { a0018438: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); a001843c: e59cc000 ldr ip, [ip] a0018440: e150000c cmp r0, ip a0018444: 2a00003d bcs a0018540 iop = rtems_libio_iop( fd ); a0018448: e59fc124 ldr ip, [pc, #292] ; a0018574 a001844c: e59c4000 ldr r4, [ip] a0018450: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); a0018454: e5940014 ldr r0, [r4, #20] a0018458: e3100c01 tst r0, #256 ; 0x100 a001845c: 0a000037 beq a0018540 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) a0018460: e594c03c ldr ip, [r4, #60] ; 0x3c a0018464: e59c0014 ldr r0, [ip, #20] a0018468: e3500000 cmp r0, #0 a001846c: 0a000039 beq a0018558 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { a0018470: e3530001 cmp r3, #1 /* * Now process the lseek(). */ old_offset = iop->offset; a0018474: e284600c add r6, r4, #12 a0018478: e8960060 ldm r6, {r5, r6} switch ( whence ) { a001847c: 0a000022 beq a001850c a0018480: e3530002 cmp r3, #2 a0018484: 0a00000d beq a00184c0 a0018488: e3530000 cmp r3, #0 a001848c: 1a000023 bne a0018520 case SEEK_SET: iop->offset = offset; a0018490: e584100c str r1, [r4, #12] a0018494: 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 ); a0018498: e1a00004 mov r0, r4 a001849c: e1a0e00f mov lr, pc a00184a0: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) a00184a4: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); a00184a8: e1a02000 mov r2, r0 a00184ac: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) a00184b0: 0a00000e beq a00184f0 /* * So if the operation failed, we have to restore iop->offset. */ return status; } a00184b4: e1a01003 mov r1, r3 a00184b8: e1a00002 mov r0, r2 a00184bc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; a00184c0: e9940180 ldmib r4, {r7, r8} a00184c4: e0977001 adds r7, r7, r1 a00184c8: e0a88002 adc r8, r8, r2 a00184cc: e584700c str r7, [r4, #12] a00184d0: 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 ); a00184d4: e1a00004 mov r0, r4 a00184d8: e1a0e00f mov lr, pc a00184dc: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) a00184e0: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); a00184e4: e1a02000 mov r2, r0 a00184e8: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) a00184ec: 1afffff0 bne a00184b4 a00184f0: e3710001 cmn r1, #1 a00184f4: 1affffee bne a00184b4 iop->offset = old_offset; a00184f8: e584500c str r5, [r4, #12] a00184fc: e5846010 str r6, [r4, #16] /* * So if the operation failed, we have to restore iop->offset. */ return status; } a0018500: e1a01003 mov r1, r3 a0018504: e1a00002 mov r0, r2 a0018508: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; a001850c: e0917005 adds r7, r1, r5 a0018510: e0a28006 adc r8, r2, r6 a0018514: e584700c str r7, [r4, #12] a0018518: e5848010 str r8, [r4, #16] break; a001851c: eaffffdd b a0018498 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); a0018520: ebffd470 bl a000d6e8 <__errno> a0018524: e3a03016 mov r3, #22 a0018528: e5803000 str r3, [r0] a001852c: e3e02000 mvn r2, #0 a0018530: e3e03000 mvn r3, #0 /* * So if the operation failed, we have to restore iop->offset. */ return status; } a0018534: e1a01003 mov r1, r3 a0018538: e1a00002 mov r0, r2 a001853c: 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); a0018540: ebffd468 bl a000d6e8 <__errno> a0018544: e3a03009 mov r3, #9 a0018548: e5803000 str r3, [r0] a001854c: e3e02000 mvn r2, #0 a0018550: e3e03000 mvn r3, #0 a0018554: eaffffd6 b a00184b4 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a0018558: ebffd462 bl a000d6e8 <__errno> <== NOT EXECUTED a001855c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0018560: e5803000 str r3, [r0] <== NOT EXECUTED a0018564: e3e02000 mvn r2, #0 <== NOT EXECUTED a0018568: e3e03000 mvn r3, #0 <== NOT EXECUTED a001856c: eaffffd0 b a00184b4 <== NOT EXECUTED a0018570: a0018e10 .word 0xa0018e10 a0018574: a001a82c .word 0xa001a82c a0026744 : int _STAT_NAME( const char *path, struct stat *buf ) { a0026744: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a0026748: e2515000 subs r5, r1, #0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { a002674c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0026750: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a0026754: 0a00002f beq a0026818 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), a0026758: eb007b15 bl a00453b4 <== NOT EXECUTED a002675c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0026760: e3a0c000 mov ip, #0 <== NOT EXECUTED a0026764: e1a01000 mov r1, r0 <== NOT EXECUTED a0026768: e1a0200c mov r2, ip <== NOT EXECUTED a002676c: e1a00006 mov r0, r6 <== NOT EXECUTED a0026770: e1a03004 mov r3, r4 <== NOT EXECUTED a0026774: e58dc000 str ip, [sp] <== NOT EXECUTED a0026778: ebff7b61 bl a0005504 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) a002677c: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0026780: 1a000022 bne a0026810 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ a0026784: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0026788: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a002678c: e3530000 cmp r3, #0 <== NOT EXECUTED a0026790: 0a000013 beq a00267e4 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); a0026794: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED a0026798: e1a00005 mov r0, r5 <== NOT EXECUTED a002679c: eb006d31 bl a0041c68 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); a00267a0: e1a01005 mov r1, r5 <== NOT EXECUTED a00267a4: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00267a8: e1a00004 mov r0, r4 <== NOT EXECUTED a00267ac: e1a0e00f mov lr, pc <== NOT EXECUTED a00267b0: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a00267b4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); a00267b8: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a00267bc: e3530000 cmp r3, #0 <== NOT EXECUTED a00267c0: 0a000004 beq a00267d8 <== NOT EXECUTED a00267c4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00267c8: e3530000 cmp r3, #0 <== NOT EXECUTED a00267cc: 0a000001 beq a00267d8 <== NOT EXECUTED a00267d0: e1a00004 mov r0, r4 <== NOT EXECUTED a00267d4: e12fff33 blx r3 <== NOT EXECUTED return status; } a00267d8: e1a00005 mov r0, r5 <== NOT EXECUTED a00267dc: e28dd018 add sp, sp, #24 <== NOT EXECUTED a00267e0: 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 ); a00267e4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00267e8: e3530000 cmp r3, #0 <== NOT EXECUTED a00267ec: 0a000004 beq a0026804 <== NOT EXECUTED a00267f0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00267f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00267f8: 0a000001 beq a0026804 <== NOT EXECUTED a00267fc: e1a00004 mov r0, r4 <== NOT EXECUTED a0026800: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0026804: eb00605f bl a003e988 <__errno> <== NOT EXECUTED a0026808: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a002680c: e5803000 str r3, [r0] <== NOT EXECUTED a0026810: e3e05000 mvn r5, #0 <== NOT EXECUTED a0026814: eaffffef b a00267d8 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); a0026818: eb00605a bl a003e988 <__errno> <== NOT EXECUTED a002681c: e3a0300e mov r3, #14 <== NOT EXECUTED a0026820: e5803000 str r3, [r0] <== NOT EXECUTED a0026824: e3e05000 mvn r5, #0 <== NOT EXECUTED a0026828: eaffffea b a00267d8 <== NOT EXECUTED a000951c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); a000951c: e59f30e4 ldr r3, [pc, #228] ; a0009608 a0009520: e92d4070 push {r4, r5, r6, lr} a0009524: e5932004 ldr r2, [r3, #4] a0009528: e1a04000 mov r4, r0 a000952c: e2822001 add r2, r2, #1 a0009530: e5832004 str r2, [r3, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); a0009534: ebffffef bl a00094f8 /* * Validate the parameters */ if ( !size ) a0009538: e3540000 cmp r4, #0 a000953c: 0a000021 beq a00095c8 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && a0009540: e59f30c4 ldr r3, [pc, #196] ; a000960c a0009544: e5933000 ldr r3, [r3] a0009548: e3530003 cmp r3, #3 a000954c: 0a00001a beq a00095bc RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); a0009550: e59f30b8 ldr r3, [pc, #184] ; a0009610 a0009554: e3a02000 mov r2, #0 a0009558: e1a01004 mov r1, r4 a000955c: e5930000 ldr r0, [r3] a0009560: e1a03002 mov r3, r2 a0009564: eb00057b bl a000ab58 <_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 ) { a0009568: 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; a000956c: 11a05006 movne r5, r6 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { a0009570: 0a000017 beq a00095d4 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) a0009574: e59f3098 ldr r3, [pc, #152] ; a0009614 a0009578: e5933000 ldr r3, [r3] a000957c: e3530000 cmp r3, #0 a0009580: 0a000003 beq a0009594 (*rtems_malloc_dirty_helper)( return_this, size ); a0009584: e1a01004 mov r1, r4 <== NOT EXECUTED a0009588: e1a00005 mov r0, r5 <== NOT EXECUTED a000958c: e1a0e00f mov lr, pc <== NOT EXECUTED a0009590: e593f000 ldr pc, [r3] <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) a0009594: e59f307c ldr r3, [pc, #124] ; a0009618 a0009598: e5933000 ldr r3, [r3] a000959c: e3530000 cmp r3, #0 a00095a0: 0a000002 beq a00095b0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); a00095a4: e1a00005 mov r0, r5 <== NOT EXECUTED a00095a8: e1a0e00f mov lr, pc <== NOT EXECUTED a00095ac: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED a00095b0: e1a06005 mov r6, r5 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } a00095b4: e1a00006 mov r0, r6 a00095b8: 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()) && a00095bc: ebffffb6 bl a000949c a00095c0: e3500000 cmp r0, #0 a00095c4: 1affffe1 bne a0009550 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); a00095c8: e3a06000 mov r6, #0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } a00095cc: e1a00006 mov r0, r6 <== NOT EXECUTED a00095d0: 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) a00095d4: e59f3040 ldr r3, [pc, #64] ; a000961c a00095d8: e5933000 ldr r3, [r3] a00095dc: e3530000 cmp r3, #0 a00095e0: 0a000004 beq a00095f8 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); a00095e4: e1a00004 mov r0, r4 <== NOT EXECUTED a00095e8: e1a0e00f mov lr, pc <== NOT EXECUTED a00095ec: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { a00095f0: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00095f4: 1affffde bne a0009574 <== NOT EXECUTED errno = ENOMEM; a00095f8: eb00103a bl a000d6e8 <__errno> a00095fc: e3a0300c mov r3, #12 a0009600: e5803000 str r3, [r0] return (void *) 0; a0009604: eaffffea b a00095b4 a0009608: a001a838 .word 0xa001a838 a000960c: a001ab50 .word 0xa001ab50 a0009610: a0018e1c .word 0xa0018e1c a0009614: a001a5d0 .word 0xa001a5d0 a0009618: a001a5c8 .word 0xa001a5c8 a000961c: a001a5cc .word 0xa001a5cc a00094e8 : } void malloc_deferred_free( void *pointer ) { a00094e8: e1a01000 mov r1, r0 <== NOT EXECUTED a00094ec: e59f0000 ldr r0, [pc, #0] ; a00094f4 <== NOT EXECUTED a00094f0: eaffeeb0 b a0004fb8 <_Chain_Append> <== NOT EXECUTED a00094f4: a001aeac .word 0xa001aeac a00094f8 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { a00094f8: 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) a00094fc: ea000000 b a0009504 free(to_be_freed); a0009500: ebfffea6 bl a0008fa0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); a0009504: e59f000c ldr r0, [pc, #12] ; a0009518 a0009508: eb0003e7 bl a000a4ac <_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) a000950c: e3500000 cmp r0, #0 a0009510: 1afffffa bne a0009500 free(to_be_freed); } a0009514: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0009518: a001aeac .word 0xa001aeac a0010a6c : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { a0010a6c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( block_table ); a0010a70: e2504000 subs r4, r0, #0 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { a0010a74: e1a08001 mov r8, r1 /* * Perform internal consistency checks */ assert( block_table ); a0010a78: 0a000014 beq a0010ad0 * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i a0010a88: e3a05000 mov r5, #0 a0010a8c: e1a06005 mov r6, r5 if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; a0010a90: e1a0a005 mov sl, r5 */ b = *block_table; for ( i=0 ; i memfile_free_block( b[i] ); a0010aa0: ebffff4b bl a00107d4 b[i] = 0; a0010aa4: 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 a0010ab8: 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 ); a0010abc: e1a00007 mov r0, r7 a0010ac0: ebffff43 bl a00107d4 *block_table = 0; a0010ac4: e3a03000 mov r3, #0 a0010ac8: e5843000 str r3, [r4] } a0010acc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Perform internal consistency checks */ assert( block_table ); a0010ad0: e3a01e1b mov r1, #432 ; 0x1b0 <== NOT EXECUTED a0010ad4: e2811003 add r1, r1, #3 <== NOT EXECUTED a0010ad8: e59f0008 ldr r0, [pc, #8] ; a0010ae8 <== NOT EXECUTED a0010adc: e59f2008 ldr r2, [pc, #8] ; a0010aec <== NOT EXECUTED a0010ae0: e59f3008 ldr r3, [pc, #8] ; a0010af0 <== NOT EXECUTED a0010ae4: ebfff5dc bl a000e25c <__assert_func> <== NOT EXECUTED a0010ae8: a0020118 .word 0xa0020118 a0010aec: a001f768 .word 0xa001f768 a0010af0: a0020198 .word 0xa0020198 a0010fd8 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { a0010fd8: e92d4010 push {r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a0010fdc: e5904038 ldr r4, [r0, #56] ; 0x38 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { a0010fe0: 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 ) a0010fe4: e5943054 ldr r3, [r4, #84] ; 0x54 a0010fe8: e1530002 cmp r3, r2 a0010fec: aa000003 bge a0011000 return IMFS_memfile_extend( the_jnode, length ); a0010ff0: e1a00004 mov r0, r4 <== NOT EXECUTED a0010ff4: ebffff96 bl a0010e54 <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } a0010ff8: e28dd008 add sp, sp, #8 a0010ffc: 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 ) a0011000: 0a000009 beq a001102c * 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; a0011004: e5841050 str r1, [r4, #80] ; 0x50 a0011008: e5842054 str r2, [r4, #84] ; 0x54 iop->size = the_jnode->info.file.size; a001100c: e9800006 stmib r0, {r1, r2} IMFS_update_atime( the_jnode ); a0011010: e3a01000 mov r1, #0 a0011014: e1a0000d mov r0, sp a0011018: ebffc693 bl a0002a6c a001101c: e59d3000 ldr r3, [sp] a0011020: e3a00000 mov r0, #0 a0011024: e5843040 str r3, [r4, #64] ; 0x40 return 0; a0011028: eafffff2 b a0010ff8 * 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 ) a001102c: e5943050 ldr r3, [r4, #80] ; 0x50 a0011030: e1530001 cmp r3, r1 a0011034: 2afffff2 bcs a0011004 a0011038: eaffffec b a0010ff0 <== NOT EXECUTED a001103c : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a001103c: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a0011040: e5905038 ldr r5, [r0, #56] ; 0x38 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0011044: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { a0011048: e595304c ldr r3, [r5, #76] ; 0x4c a001104c: e3530006 cmp r3, #6 a0011050: 0a00000d beq a001108c 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 )) a0011054: e1a00005 mov r0, r5 a0011058: e284200c add r2, r4, #12 a001105c: e8920006 ldm r2, {r1, r2} a0011060: ebffff7b bl a0010e54 a0011064: e3500000 cmp r0, #0 a0011068: 1a00001a bne a00110d8 rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; a001106c: e2853050 add r3, r5, #80 ; 0x50 a0011070: e893000c ldm r3, {r2, r3} a0011074: e984000c stmib r4, {r2, r3} a0011078: e284300c add r3, r4, #12 a001107c: e893000c ldm r3, {r2, r3} } return iop->offset; } a0011080: e1a01003 mov r1, r3 a0011084: e1a00002 mov r0, r2 a0011088: 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) a001108c: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED a0011090: e2853050 add r3, r5, #80 ; 0x50 <== NOT EXECUTED a0011094: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a0011098: e590000c ldr r0, [r0, #12] <== NOT EXECUTED a001109c: e1510003 cmp r1, r3 <== NOT EXECUTED a00110a0: ca000007 bgt a00110c4 <== NOT EXECUTED a00110a4: 0a000004 beq a00110bc <== NOT EXECUTED a00110a8: e1a02000 mov r2, r0 <== NOT EXECUTED a00110ac: e1a03001 mov r3, r1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } a00110b0: e1a01003 mov r1, r3 <== NOT EXECUTED a00110b4: e1a00002 mov r0, r2 <== NOT EXECUTED a00110b8: 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) a00110bc: e1500002 cmp r0, r2 <== NOT EXECUTED a00110c0: 9afffff8 bls a00110a8 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; a00110c4: e584200c str r2, [r4, #12] <== NOT EXECUTED a00110c8: 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; } a00110cc: e1a01003 mov r1, r3 <== NOT EXECUTED a00110d0: e1a00002 mov r0, r2 <== NOT EXECUTED a00110d4: 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 ); a00110d8: eb00072f bl a0012d9c <__errno> <== NOT EXECUTED a00110dc: e3a0301c mov r3, #28 <== NOT EXECUTED a00110e0: e5803000 str r3, [r0] <== NOT EXECUTED a00110e4: e3e02000 mvn r2, #0 <== NOT EXECUTED a00110e8: e3e03000 mvn r3, #0 <== NOT EXECUTED a00110ec: eaffffe3 b a0011080 <== NOT EXECUTED a00113a8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a00113a8: 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)) a00113ac: e5903014 ldr r3, [r0, #20] rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a00113b0: e24dd004 sub sp, sp, #4 a00113b4: e1a04000 mov r4, r0 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) a00113b8: e3130f81 tst r3, #516 ; 0x204 uint32_t mode ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a00113bc: e5905038 ldr r5, [r0, #56] ; 0x38 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) a00113c0: 0a000002 beq a00113d0 && (the_jnode->type == IMFS_LINEAR_FILE)) { a00113c4: e595204c ldr r2, [r5, #76] ; 0x4c a00113c8: e3520006 cmp r2, #6 a00113cc: 0a00000b beq a0011400 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) a00113d0: e5952050 ldr r2, [r5, #80] ; 0x50 a00113d4: e5951054 ldr r1, [r5, #84] ; 0x54 && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) a00113d8: e3130c02 tst r3, #512 ; 0x200 iop->offset = the_jnode->info.file.size; a00113dc: 1584200c strne r2, [r4, #12] a00113e0: 15841010 strne r1, [r4, #16] a00113e4: 15951054 ldrne r1, [r5, #84] ; 0x54 a00113e8: 15952050 ldrne r2, [r5, #80] ; 0x50 iop->size = the_jnode->info.file.size; a00113ec: e3a00000 mov r0, #0 a00113f0: e5841008 str r1, [r4, #8] a00113f4: e5842004 str r2, [r4, #4] return 0; } a00113f8: e28dd004 add sp, sp, #4 a00113fc: 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; a0011400: 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; a0011404: 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; a0011408: e3a03005 mov r3, #5 <== NOT EXECUTED the_jnode->info.file.size = 0; a001140c: e3a01000 mov r1, #0 <== NOT EXECUTED a0011410: 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) a0011414: e15c0000 cmp ip, r0 <== NOT EXECUTED if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; a0011418: 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; a001141c: 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; a0011420: e5953058 ldr r3, [r5, #88] ; 0x58 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; a0011424: e5851050 str r1, [r5, #80] ; 0x50 <== NOT EXECUTED a0011428: e5852054 str r2, [r5, #84] ; 0x54 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; a001142c: 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; a0011430: 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) a0011434: 1a000004 bne a001144c <== NOT EXECUTED a0011438: e1a0b001 mov fp, r1 <== NOT EXECUTED a001143c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a0011440: e1a01002 mov r1, r2 <== NOT EXECUTED a0011444: e1a0200b mov r2, fp <== NOT EXECUTED a0011448: eaffffe2 b a00113d8 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) a001144c: e1a00005 mov r0, r5 <== NOT EXECUTED a0011450: e58dc000 str ip, [sp] <== NOT EXECUTED a0011454: ebffff25 bl a00110f0 <== 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) a0011458: e3700001 cmn r0, #1 <== NOT EXECUTED a001145c: 0affffe5 beq a00113f8 <== NOT EXECUTED a0011460: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a0011464: eaffffd9 b a00113d0 <== NOT EXECUTED a0001570 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { a0001570: 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) ) ) a0001574: e3110a0f tst r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { a0001578: e24dd01c sub sp, sp, #28 a000157c: e1a05001 mov r5, r1 a0001580: e1a0e000 mov lr, r0 a0001584: e1a07002 mov r7, r2 a0001588: 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) ) ) a000158c: 0a000040 beq a0001694 rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); a0001590: e5d03000 ldrb r3, [r0] a0001594: e353002f cmp r3, #47 ; 0x2f a0001598: 1353005c cmpne r3, #92 ; 0x5c a000159c: 13a06000 movne r6, #0 a00015a0: 03a06001 moveq r6, #1 a00015a4: 1a000029 bne a0001650 a00015a8: e59f30f8 ldr r3, [pc, #248] ; a00016a8 a00015ac: e28d4004 add r4, sp, #4 a00015b0: e3a06001 mov r6, #1 a00015b4: e593c000 ldr ip, [r3] a00015b8: e28cc018 add ip, ip, #24 a00015bc: e1a0a004 mov sl, r4 a00015c0: e8bc000f ldm ip!, {r0, r1, r2, r3} a00015c4: e8aa000f stmia sl!, {r0, r1, r2, r3} if ( !temp_loc.ops->evalformake_h ) { a00015c8: e59d3010 ldr r3, [sp, #16] int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); a00015cc: e59c2000 ldr r2, [ip] if ( !temp_loc.ops->evalformake_h ) { a00015d0: 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 ); a00015d4: e58a2000 str r2, [sl] if ( !temp_loc.ops->evalformake_h ) { a00015d8: e3530000 cmp r3, #0 a00015dc: 0a000027 beq a0001680 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( a00015e0: e08e0006 add r0, lr, r6 a00015e4: e1a01004 mov r1, r4 a00015e8: e28d2018 add r2, sp, #24 a00015ec: e12fff33 blx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) a00015f0: e3500000 cmp r0, #0 a00015f4: 1a000024 bne a000168c return -1; if ( !temp_loc.ops->mknod_h ) { a00015f8: e59d3010 ldr r3, [sp, #16] a00015fc: e593c014 ldr ip, [r3, #20] a0001600: e35c0000 cmp ip, #0 a0001604: 0a000018 beq a000166c 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 ); a0001608: e1a01005 mov r1, r5 a000160c: e1a03008 mov r3, r8 a0001610: e58d4000 str r4, [sp] a0001614: e59d0018 ldr r0, [sp, #24] a0001618: e1a02007 mov r2, r7 a000161c: e12fff3c blx ip rtems_filesystem_freenode( &temp_loc ); a0001620: e59d3010 ldr r3, [sp, #16] if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); a0001624: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); a0001628: e3530000 cmp r3, #0 a000162c: 0a000004 beq a0001644 a0001630: e593301c ldr r3, [r3, #28] a0001634: e3530000 cmp r3, #0 a0001638: 0a000001 beq a0001644 a000163c: e1a00004 mov r0, r4 a0001640: e12fff33 blx r3 return result; } a0001644: e1a00005 mov r0, r5 a0001648: e28dd01c add sp, sp, #28 a000164c: 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 ); a0001650: e3530000 cmp r3, #0 a0001654: 0affffd3 beq a00015a8 a0001658: e59f3048 ldr r3, [pc, #72] ; a00016a8 a000165c: e28d4004 add r4, sp, #4 a0001660: e593c000 ldr ip, [r3] a0001664: e28cc004 add ip, ip, #4 a0001668: eaffffd3 b a00015bc ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); a000166c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0001670: e3530000 cmp r3, #0 <== NOT EXECUTED a0001674: 0a000001 beq a0001680 <== NOT EXECUTED a0001678: e1a00004 mov r0, r4 <== NOT EXECUTED a000167c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0001680: eb003018 bl a000d6e8 <__errno> <== NOT EXECUTED a0001684: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0001688: e5803000 str r3, [r0] <== NOT EXECUTED a000168c: e3e05000 mvn r5, #0 a0001690: eaffffeb b a0001644 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 ); a0001694: eb003013 bl a000d6e8 <__errno> <== NOT EXECUTED a0001698: e3a03016 mov r3, #22 <== NOT EXECUTED a000169c: e5803000 str r3, [r0] <== NOT EXECUTED a00016a0: e3e05000 mvn r5, #0 <== NOT EXECUTED a00016a4: eaffffe6 b a0001644 <== NOT EXECUTED a00016a8: a0018fe8 .word 0xa0018fe8 a00016c8 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { a00016c8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { a00016cc: e2516000 subs r6, r1, #0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { a00016d0: e24dd018 sub sp, sp, #24 a00016d4: e1a07000 mov r7, r0 a00016d8: e1a05002 mov r5, r2 a00016dc: e1a09003 mov r9, r3 a00016e0: e59da038 ldr sl, [sp, #56] ; 0x38 /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { a00016e4: 0a000080 beq a00018ec /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && a00016e8: e3520001 cmp r2, #1 a00016ec: 8a00007e bhi a00018ec errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { a00016f0: e5968024 ldr r8, [r6, #36] ; 0x24 a00016f4: e3580000 cmp r8, #0 a00016f8: 0a000086 beq a0001918 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) a00016fc: e3530000 cmp r3, #0 a0001700: 03a0006c moveq r0, #108 ; 0x6c a0001704: 0a000002 beq a0001714 size += strlen( device ) + 1; a0001708: e1a00003 mov r0, r3 <== NOT EXECUTED a000170c: eb0033e6 bl a000e6ac <== NOT EXECUTED a0001710: e280006d add r0, r0, #109 ; 0x6d <== NOT EXECUTED temp_mt_entry = malloc( size ); a0001714: eb001f80 bl a000951c if ( !temp_mt_entry ) { a0001718: e3500000 cmp r0, #0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); a000171c: e1a04000 mov r4, r0 a0001720: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { a0001724: 0a000086 beq a0001944 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { a0001728: e3590000 cmp r9, #0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; a000172c: 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; a0001730: 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; a0001734: 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 ) { a0001738: 0a000004 beq a0001750 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); a000173c: e280306c add r3, r0, #108 ; 0x6c <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); a0001740: e1a00003 mov r0, r3 <== NOT EXECUTED a0001744: 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 = a0001748: 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 ); a000174c: eb00339a bl a000e5bc <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { a0001750: e35a0000 cmp sl, #0 a0001754: 0a000048 beq a000187c if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) a0001758: e1a0000a mov r0, sl a000175c: eb0033d2 bl a000e6ac * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( a0001760: e28d5004 add r5, sp, #4 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) a0001764: e1a01000 mov r1, r0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( a0001768: e3a0c001 mov ip, #1 a000176c: e1a0000a mov r0, sl a0001770: e3a02007 mov r2, #7 a0001774: e1a03005 mov r3, r5 a0001778: e58dc000 str ip, [sp] a000177c: ebfffeca bl a00012ac a0001780: e3700001 cmn r0, #1 a0001784: 0a000066 beq a0001924 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { a0001788: e59d3010 ldr r3, [sp, #16] a000178c: e5933010 ldr r3, [r3, #16] a0001790: e3530000 cmp r3, #0 a0001794: 0a000066 beq a0001934 /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { a0001798: e1a00005 mov r0, r5 a000179c: e12fff33 blx r3 a00017a0: e3500001 cmp r0, #1 a00017a4: 1a000057 bne a0001908 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; a00017a8: e59f11a8 ldr r1, [pc, #424] ; a0001958 a00017ac: e4913004 ldr r3, [r1], #4 a00017b0: e1530001 cmp r3, r1 a00017b4: 0a000051 beq a0001900 !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 ) a00017b8: e59d0004 ldr r0, [sp, #4] a00017bc: e593201c ldr r2, [r3, #28] a00017c0: e1520000 cmp r2, r0 a00017c4: 1a000003 bne a00017d8 a00017c8: ea000021 b a0001854 <== NOT EXECUTED a00017cc: e593201c ldr r2, [r3, #28] a00017d0: e1520000 cmp r2, r0 a00017d4: 0a00001e beq a0001854 * 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 ) { a00017d8: e5933000 ldr r3, [r3] /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; a00017dc: e1530001 cmp r3, r1 a00017e0: 1afffff9 bne a00017cc * 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; a00017e4: e59d2010 ldr r2, [sp, #16] * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; a00017e8: e59d100c ldr r1, [sp, #12] * 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; a00017ec: e5840008 str r0, [r4, #8] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ a00017f0: 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; a00017f4: 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; a00017f8: 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 ){ a00017fc: e3530000 cmp r3, #0 * 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; a0001800: e5842014 str r2, [r4, #20] temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; a0001804: e5841018 str r1, [r4, #24] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ a0001808: 0a000049 beq a0001934 errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { a000180c: e1a00004 mov r0, r4 a0001810: e12fff33 blx r3 a0001814: e3500000 cmp r0, #0 a0001818: 1a000010 bne a0001860 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 ) ) { a000181c: e1a00004 mov r0, r4 a0001820: e1a0e00f mov lr, pc a0001824: e596f024 ldr pc, [r6, #36] ; 0x24 a0001828: e2506000 subs r6, r0, #0 a000182c: 1a00001b bne a00018a0 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); a0001830: e59f0120 ldr r0, [pc, #288] ; a0001958 a0001834: e1a01004 mov r1, r4 a0001838: eb000dde bl a0004fb8 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) a000183c: e3570000 cmp r7, #0 a0001840: 01a00007 moveq r0, r7 *mt_entry = temp_mt_entry; a0001844: 15874000 strne r4, [r7] a0001848: 11a00006 movne r0, r6 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } a000184c: e28dd018 add sp, sp, #24 a0001850: 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; a0001854: eb002fa3 bl a000d6e8 <__errno> a0001858: e3a03010 mov r3, #16 a000185c: e5803000 str r3, [r0] return 0; cleanup_and_bail: free( temp_mt_entry ); a0001860: e1a00004 mov r0, r4 a0001864: eb001dcd bl a0008fa0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); a0001868: e595300c ldr r3, [r5, #12] a000186c: e3530000 cmp r3, #0 a0001870: 1a000016 bne a00018d0 a0001874: e3e00000 mvn r0, #0 <== NOT EXECUTED a0001878: eafffff3 b a000184c <== 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; a000187c: e584a01c str sl, [r4, #28] temp_mt_entry->mt_fs_root.handlers = NULL; a0001880: e584a024 str sl, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = NULL; a0001884: e584a028 str sl, [r4, #40] ; 0x28 temp_mt_entry->mt_point_node.node_access = NULL; a0001888: e584a008 str sl, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; a000188c: e584a010 str sl, [r4, #16] temp_mt_entry->mt_point_node.ops = NULL; a0001890: e584a014 str sl, [r4, #20] temp_mt_entry->mt_point_node.mt_entry = NULL; a0001894: e584a018 str sl, [r4, #24] a0001898: e1a0500a mov r5, sl a000189c: eaffffde b a000181c } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { a00018a0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00018a4: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a00018a8: e3530000 cmp r3, #0 <== NOT EXECUTED a00018ac: 0a000001 beq a00018b8 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); a00018b0: e1a00004 mov r0, r4 <== NOT EXECUTED a00018b4: e12fff33 blx r3 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); a00018b8: e1a00004 mov r0, r4 <== NOT EXECUTED a00018bc: eb001db7 bl a0008fa0 <== NOT EXECUTED if ( loc_to_free ) a00018c0: e3550000 cmp r5, #0 <== NOT EXECUTED a00018c4: 1affffe7 bne a0001868 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); a00018c8: e3e00000 mvn r0, #0 <== NOT EXECUTED a00018cc: eaffffde b a000184c <== NOT EXECUTED a00018d0: e593301c ldr r3, [r3, #28] a00018d4: e3530000 cmp r3, #0 a00018d8: 0affffe5 beq a0001874 a00018dc: e1a00005 mov r0, r5 a00018e0: e12fff33 blx r3 a00018e4: e3e00000 mvn r0, #0 a00018e8: eaffffd7 b a000184c * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; a00018ec: eb002f7d bl a000d6e8 <__errno> a00018f0: e3a03016 mov r3, #22 a00018f4: e5803000 str r3, [r0] a00018f8: e3e00000 mvn r0, #0 return -1; a00018fc: eaffffd2 b a000184c cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); a0001900: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a0001904: eaffffb6 b a00017e4 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; a0001908: eb002f76 bl a000d6e8 <__errno> a000190c: e3a03014 mov r3, #20 a0001910: e5803000 str r3, [r0] goto cleanup_and_bail; a0001914: eaffffd1 b a0001860 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; a0001918: eb002f72 bl a000d6e8 <__errno> <== NOT EXECUTED a000191c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0001920: e5803000 str r3, [r0] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); a0001924: e1a00008 mov r0, r8 <== NOT EXECUTED a0001928: eb001d9c bl a0008fa0 <== NOT EXECUTED a000192c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0001930: eaffffc5 b a000184c <== 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; a0001934: eb002f6b bl a000d6e8 <__errno> <== NOT EXECUTED a0001938: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000193c: e5803000 str r3, [r0] <== NOT EXECUTED goto cleanup_and_bail; a0001940: eaffffc6 b a0001860 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; a0001944: eb002f67 bl a000d6e8 <__errno> <== NOT EXECUTED a0001948: e3a0300c mov r3, #12 <== NOT EXECUTED a000194c: e5803000 str r3, [r0] <== NOT EXECUTED a0001950: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a0001954: eaffffbc b a000184c <== NOT EXECUTED a0001958: a001a864 .word 0xa001a864 a00019cc : */ int newlib_free_buffers( FILE *fp ) { a00019cc: e92d4010 push {r4, lr} a00019d0: e1a04000 mov r4, r0 switch ( fileno(fp) ) { a00019d4: eb003042 bl a000dae4 a00019d8: e3500002 cmp r0, #2 a00019dc: 9a000003 bls a00019f0 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); a00019e0: e1a00004 mov r0, r4 <== NOT EXECUTED a00019e4: eb002f8c bl a000d81c <== NOT EXECUTED } return 0; } a00019e8: e3a00000 mov r0, #0 a00019ec: e8bd8010 pop {r4, pc} { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { a00019f0: e1d430bc ldrh r3, [r4, #12] a00019f4: e3130080 tst r3, #128 ; 0x80 a00019f8: 0afffffa beq a00019e8 free( fp->_bf._base ); a00019fc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0001a00: eb001d66 bl a0008fa0 <== NOT EXECUTED fp->_flags &= ~__SMBF; a0001a04: e1d420bc ldrh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; a0001a08: e3a03000 mov r3, #0 <== NOT EXECUTED a0001a0c: e5843010 str r3, [r4, #16] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; a0001a10: e3c22080 bic r2, r2, #128 ; 0x80 <== NOT EXECUTED a0001a14: e1c420bc strh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; a0001a18: e5843000 str r3, [r4] <== NOT EXECUTED break; default: fclose(fp); } return 0; } a0001a1c: e3a00000 mov r0, #0 <== NOT EXECUTED a0001a20: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0001d4c : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { a0001d4c: e92d4010 push {r4, lr} rtems_device_driver status; if ( !initialized ) { a0001d50: e59f3044 ldr r3, [pc, #68] ; a0001d9c rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { a0001d54: e1a04000 mov r4, r0 rtems_device_driver status; if ( !initialized ) { a0001d58: e5d32000 ldrb r2, [r3] a0001d5c: e3520000 cmp r2, #0 a0001d60: 0a000001 beq a0001d6c NULL_major = major; } return RTEMS_SUCCESSFUL; } a0001d64: e3a00000 mov r0, #0 a0001d68: e8bd8010 pop {r4, pc} ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; a0001d6c: e3a0c001 mov ip, #1 status = rtems_io_register_name( a0001d70: e59f0028 ldr r0, [pc, #40] ; a0001da0 a0001d74: e1a01004 mov r1, r4 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; a0001d78: e5c3c000 strb ip, [r3] status = rtems_io_register_name( a0001d7c: eb00004e bl a0001ebc "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) a0001d80: e3500000 cmp r0, #0 a0001d84: 1a000003 bne a0001d98 rtems_fatal_error_occurred(status); NULL_major = major; a0001d88: e59f3014 ldr r3, [pc, #20] ; a0001da4 } return RTEMS_SUCCESSFUL; } a0001d8c: e3a00000 mov r0, #0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); NULL_major = major; a0001d90: e5834000 str r4, [r3] } return RTEMS_SUCCESSFUL; } a0001d94: e8bd8010 pop {r4, pc} major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); a0001d98: eb001027 bl a0005e3c <== NOT EXECUTED a0001d9c: a001f898 .word 0xa001f898 a0001da0: a001e848 .word 0xa001e848 a0001da4: a001fa48 .word 0xa001fa48 a0001c68 : int open( const char *pathname, int flags, ... ) { a0001c68: e92d000e push {r1, r2, r3} a0001c6c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} a0001c70: e24dd01c sub sp, sp, #28 a0001c74: e59d503c ldr r5, [sp, #60] ; 0x3c a0001c78: e1a06000 mov r6, r0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); a0001c7c: e59da040 ldr sl, [sp, #64] ; 0x40 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; a0001c80: e2853001 add r3, r5, #1 if ( ( status & _FREAD ) == _FREAD ) a0001c84: e2138001 ands r8, r3, #1 a0001c88: 13a08004 movne r8, #4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) a0001c8c: e3130002 tst r3, #2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); a0001c90: e28d3044 add r3, sp, #68 ; 0x44 eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) eval_flags |= RTEMS_LIBIO_PERMS_WRITE; a0001c94: 13888002 orrne r8, r8, #2 va_start(ap, flags); mode = va_arg( ap, int ); a0001c98: e58d3018 str r3, [sp, #24] * code does not require changes here since network file * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); a0001c9c: eb001dc3 bl a00093b0 if ( iop == 0 ) { a0001ca0: e2504000 subs r4, r0, #0 a0001ca4: 03a06017 moveq r6, #23 a0001ca8: 0a00005d beq a0001e24 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); a0001cac: e1a00006 mov r0, r6 a0001cb0: eb00327d bl a000e6ac /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( a0001cb4: e28d7004 add r7, sp, #4 pathname, strlen( pathname ), eval_flags, &loc, true ); a0001cb8: e1a01000 mov r1, r0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( a0001cbc: e1a02008 mov r2, r8 a0001cc0: e1a00006 mov r0, r6 a0001cc4: e3a08001 mov r8, #1 a0001cc8: e1a03007 mov r3, r7 a0001ccc: e58d8000 str r8, [sp] a0001cd0: ebfffd75 bl a00012ac pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { a0001cd4: e3700001 cmn r0, #1 a0001cd8: 0a000055 beq a0001e34 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { a0001cdc: e2053c0a and r3, r5, #2560 ; 0xa00 a0001ce0: e3530c0a cmp r3, #2560 ; 0xa00 a0001ce4: 03a06011 moveq r6, #17 a0001ce8: 0a00003f beq a0001dec /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; a0001cec: e59d300c ldr r3, [sp, #12] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); a0001cf0: e1a00005 mov r0, r5 a0001cf4: e5948014 ldr r8, [r4, #20] /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; a0001cf8: e584303c str r3, [r4, #60] ; 0x3c iop->file_info = loc.node_access; a0001cfc: e59d3004 ldr r3, [sp, #4] a0001d00: e5843038 str r3, [r4, #56] ; 0x38 iop->flags |= rtems_libio_fcntl_flags( flags ); a0001d04: eb001dd7 bl a0009468 iop->pathinfo = loc; a0001d08: e284c018 add ip, r4, #24 a0001d0c: 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 ); a0001d10: e1808008 orr r8, r0, r8 iop->pathinfo = loc; a0001d14: e8be000f ldm lr!, {r0, r1, r2, r3} a0001d18: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !iop->handlers || !iop->handlers->open_h ) { a0001d1c: 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; a0001d20: e59e2000 ldr r2, [lr] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); a0001d24: e5848014 str r8, [r4, #20] iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { a0001d28: e3530000 cmp r3, #0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; a0001d2c: e58c2000 str r2, [ip] if ( !iop->handlers || !iop->handlers->open_h ) { a0001d30: 0a00002c beq a0001de8 a0001d34: e593c000 ldr ip, [r3] a0001d38: e35c0000 cmp ip, #0 a0001d3c: 0a000029 beq a0001de8 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); a0001d40: e1a01006 mov r1, r6 a0001d44: e1a0300a mov r3, sl a0001d48: e1a00004 mov r0, r4 a0001d4c: e1a02005 mov r2, r5 a0001d50: e12fff3c blx ip if ( rc ) { a0001d54: e3500000 cmp r0, #0 a0001d58: 1a000009 bne a0001d84 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { a0001d5c: e3150b01 tst r5, #1024 ; 0x400 a0001d60: 1a00000c bne a0001d98 a0001d64: e59f5154 ldr r5, [pc, #340] ; a0001ec0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; a0001d68: e5950000 ldr r0, [r5] a0001d6c: e0604004 rsb r4, r0, r4 a0001d70: e1a00344 asr r0, r4, #6 } a0001d74: e28dd01c add sp, sp, #28 a0001d78: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} a0001d7c: e28dd00c add sp, sp, #12 a0001d80: e12fff1e bx lr goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; a0001d84: eb002e57 bl a000d6e8 <__errno> a0001d88: e5906000 ldr r6, [r0] */ done: va_end(ap); if ( rc ) { a0001d8c: e3560000 cmp r6, #0 a0001d90: 0afffff3 beq a0001d64 a0001d94: ea000014 b a0001dec /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); a0001d98: e59f5120 ldr r5, [pc, #288] ; a0001ec0 a0001d9c: e3a01000 mov r1, #0 a0001da0: e3a02000 mov r2, #0 a0001da4: e5950000 ldr r0, [r5] a0001da8: e0600004 rsb r0, r0, r4 a0001dac: e1a00340 asr r0, r0, #6 a0001db0: eb001ca5 bl a000904c if ( rc ) { a0001db4: e2506000 subs r6, r0, #0 a0001db8: 0affffea beq a0001d68 if(errno) rc = errno; a0001dbc: eb002e49 bl a000d6e8 <__errno> <== NOT EXECUTED a0001dc0: e5903000 ldr r3, [r0] <== NOT EXECUTED a0001dc4: e3530000 cmp r3, #0 <== NOT EXECUTED a0001dc8: 1a000039 bne a0001eb4 <== NOT EXECUTED close( iop - rtems_libio_iops ); a0001dcc: e5950000 ldr r0, [r5] <== NOT EXECUTED a0001dd0: e0600004 rsb r0, r0, r4 <== NOT EXECUTED a0001dd4: e1a00340 asr r0, r0, #6 <== NOT EXECUTED a0001dd8: e3a04000 mov r4, #0 <== NOT EXECUTED a0001ddc: eb001c47 bl a0008f00 <== NOT EXECUTED a0001de0: e1a07004 mov r7, r4 <== NOT EXECUTED a0001de4: eaffffe8 b a0001d8c <== 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; a0001de8: e3a06086 mov r6, #134 ; 0x86 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) a0001dec: e3540000 cmp r4, #0 a0001df0: 0a000001 beq a0001dfc rtems_libio_free( iop ); a0001df4: e1a00004 mov r0, r4 a0001df8: eb001d55 bl a0009354 if ( loc_to_free ) a0001dfc: e3570000 cmp r7, #0 a0001e00: 0a000007 beq a0001e24 rtems_filesystem_freenode( loc_to_free ); a0001e04: e597300c ldr r3, [r7, #12] a0001e08: e3530000 cmp r3, #0 a0001e0c: 0a000004 beq a0001e24 a0001e10: e593301c ldr r3, [r3, #28] a0001e14: e3530000 cmp r3, #0 a0001e18: 0a000001 beq a0001e24 a0001e1c: e1a00007 mov r0, r7 a0001e20: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( rc ); a0001e24: eb002e2f bl a000d6e8 <__errno> a0001e28: e5806000 str r6, [r0] a0001e2c: e3e00000 mvn r0, #0 a0001e30: eaffffcf b a0001d74 status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { a0001e34: eb002e2b bl a000d6e8 <__errno> a0001e38: e5903000 ldr r3, [r0] a0001e3c: e3530002 cmp r3, #2 a0001e40: 0a000003 beq a0001e54 } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; a0001e44: eb002e27 bl a000d6e8 <__errno> a0001e48: e3a07000 mov r7, #0 a0001e4c: e5906000 ldr r6, [r0] goto done; a0001e50: eaffffcd b a0001d8c rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { a0001e54: e2159c02 ands r9, r5, #512 ; 0x200 a0001e58: 01a07009 moveq r7, r9 a0001e5c: 01a06003 moveq r6, r3 a0001e60: 0affffe1 beq a0001dec rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); a0001e64: e1a00006 mov r0, r6 a0001e68: e38a1902 orr r1, sl, #32768 ; 0x8000 a0001e6c: e3a02000 mov r2, #0 a0001e70: e3a03000 mov r3, #0 a0001e74: ebfffdbd bl a0001570 if ( rc ) { a0001e78: e2509000 subs r9, r0, #0 a0001e7c: 1afffff0 bne a0001e44 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 ); a0001e80: e1a00006 mov r0, r6 a0001e84: eb003208 bl a000e6ac a0001e88: e1a03007 mov r3, r7 a0001e8c: e1a01000 mov r1, r0 a0001e90: e1a02009 mov r2, r9 a0001e94: e1a00006 mov r0, r6 a0001e98: e58d8000 str r8, [sp] a0001e9c: ebfffd02 bl a00012ac if ( status != 0 ) { /* The file did not exist */ a0001ea0: e3500000 cmp r0, #0 a0001ea4: 11a07009 movne r7, r9 a0001ea8: 13a0600d movne r6, #13 a0001eac: 1affffce bne a0001dec a0001eb0: eaffff8d b a0001cec */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; a0001eb4: eb002e0b bl a000d6e8 <__errno> <== NOT EXECUTED a0001eb8: e5906000 ldr r6, [r0] <== NOT EXECUTED a0001ebc: eaffffc2 b a0001dcc <== NOT EXECUTED a0001ec0: a001a82c .word 0xa001a82c a0001c00 : int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { a0001c00: e3a01000 mov r1, #0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { a0001c04: 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) { a0001c08: e59f004c ldr r0, [pc, #76] ; a0001c5c a0001c0c: e1a02001 mov r2, r1 a0001c10: eb000014 bl a0001c68 a0001c14: e3700001 cmn r0, #1 a0001c18: 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) a0001c1c: e59f0038 ldr r0, [pc, #56] ; a0001c5c a0001c20: e3a01001 mov r1, #1 a0001c24: e3a02000 mov r2, #0 a0001c28: eb00000e bl a0001c68 a0001c2c: e3700001 cmn r0, #1 a0001c30: 0a000007 beq a0001c54 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) a0001c34: e59f0020 ldr r0, [pc, #32] ; a0001c5c a0001c38: e3a01001 mov r1, #1 a0001c3c: e3a02000 mov r2, #0 a0001c40: eb000008 bl a0001c68 a0001c44: e3700001 cmn r0, #1 a0001c48: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ a0001c4c: e59f000c ldr r0, [pc, #12] ; a0001c60 <== NOT EXECUTED a0001c50: eb000c10 bl a0004c98 <== 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 */ a0001c54: e59f0008 ldr r0, [pc, #8] ; a0001c64 <== NOT EXECUTED a0001c58: eb000c0e bl a0004c98 <== NOT EXECUTED a0001c5c: a0019fd0 .word 0xa0019fd0 a0001c60: 55544432 .word 0x55544432 a0001c64: 55544431 .word 0x55544431 a00025f0 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { a00025f0: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { a00025f4: e5913034 ldr r3, [r1, #52] ; 0x34 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { a00025f8: e24dd004 sub sp, sp, #4 a00025fc: e1a04001 mov r4, r1 int i; if (tty->termios.c_oflag & OPOST) { a0002600: e3130001 tst r3, #1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { a0002604: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { a0002608: 0a000014 beq a0002660 switch (c) { a000260c: e5dd1000 ldrb r1, [sp] a0002610: e2412008 sub r2, r1, #8 a0002614: e3520005 cmp r2, #5 a0002618: 979ff102 ldrls pc, [pc, r2, lsl #2] a000261c: ea000005 b a0002638 a0002620: a00026d0 .word 0xa00026d0 <== NOT EXECUTED a0002624: a00026ac .word 0xa00026ac <== NOT EXECUTED a0002628: a00026e4 .word 0xa00026e4 <== NOT EXECUTED a000262c: a0002638 .word 0xa0002638 <== NOT EXECUTED a0002630: a0002638 .word 0xa0002638 <== NOT EXECUTED a0002634: a0002678 .word 0xa0002678 <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) a0002638: e3130002 tst r3, #2 a000263c: 1a000034 bne a0002714 a0002640: e59f310c ldr r3, [pc, #268] ; a0002754 a0002644: e5933000 ldr r3, [r3] c = toupper(c); if (!iscntrl(c)) a0002648: e0831001 add r1, r3, r1 a000264c: e5d13001 ldrb r3, [r1, #1] a0002650: e3130020 tst r3, #32 tty->column++; a0002654: 05943028 ldreq r3, [r4, #40] ; 0x28 a0002658: 02833001 addeq r3, r3, #1 a000265c: 05843028 streq r3, [r4, #40] ; 0x28 break; } } rtems_termios_puts (&c, 1, tty); a0002660: e1a02004 mov r2, r4 a0002664: e1a0000d mov r0, sp a0002668: e3a01001 mov r1, #1 a000266c: ebffff97 bl a00024d0 } a0002670: e28dd004 add sp, sp, #4 a0002674: e8bd8010 pop {r4, pc} tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) a0002678: e3130010 tst r3, #16 <== NOT EXECUTED a000267c: 0a000002 beq a000268c <== NOT EXECUTED a0002680: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED a0002684: e3520000 cmp r2, #0 <== NOT EXECUTED a0002688: 0afffff8 beq a0002670 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { a000268c: e2132008 ands r2, r3, #8 <== NOT EXECUTED a0002690: 0a00000c beq a00026c8 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) a0002694: 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'; a0002698: e3a0300a mov r3, #10 <== NOT EXECUTED a000269c: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) tty->column = 0; a00026a0: 13a03000 movne r3, #0 <== NOT EXECUTED a00026a4: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00026a8: eaffffec b a0002660 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); a00026ac: e5942028 ldr r2, [r4, #40] ; 0x28 if ((tty->termios.c_oflag & TABDLY) == XTABS) { a00026b0: e2033b06 and r3, r3, #6144 ; 0x1800 a00026b4: e3530b06 cmp r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); a00026b8: e2021007 and r1, r2, #7 a00026bc: e2611008 rsb r1, r1, #8 if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; a00026c0: 10812002 addne r2, r1, r2 tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { a00026c4: 0a00001c beq a000273c tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; a00026c8: e5842028 str r2, [r4, #40] ; 0x28 <== NOT EXECUTED break; a00026cc: eaffffe3 b a0002660 <== NOT EXECUTED case '\b': if (tty->column > 0) a00026d0: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00026d4: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a00026d8: c2433001 subgt r3, r3, #1 <== NOT EXECUTED a00026dc: c5843028 strgt r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00026e0: eaffffde b a0002660 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) a00026e4: e3130020 tst r3, #32 tty->column = 0; a00026e8: 13a02000 movne r2, #0 a00026ec: 15842028 strne r2, [r4, #40] ; 0x28 if (tty->termios.c_oflag & ONLCR) { a00026f0: e3130004 tst r3, #4 a00026f4: 0affffd9 beq a0002660 rtems_termios_puts ("\r", 1, tty); a00026f8: e59f0058 ldr r0, [pc, #88] ; a0002758 a00026fc: e3a01001 mov r1, #1 a0002700: e1a02004 mov r2, r4 a0002704: ebffff71 bl a00024d0 tty->column = 0; a0002708: e3a03000 mov r3, #0 a000270c: e5843028 str r3, [r4, #40] ; 0x28 a0002710: eaffffd2 b a0002660 tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); a0002714: e59f3038 ldr r3, [pc, #56] ; a0002754 <== NOT EXECUTED a0002718: e5933000 ldr r3, [r3] <== NOT EXECUTED a000271c: e0832001 add r2, r3, r1 <== NOT EXECUTED a0002720: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a0002724: e2022003 and r2, r2, #3 <== NOT EXECUTED a0002728: e3520002 cmp r2, #2 <== NOT EXECUTED a000272c: 02411020 subeq r1, r1, #32 <== NOT EXECUTED a0002730: e20110ff and r1, r1, #255 ; 0xff <== NOT EXECUTED a0002734: e5cd1000 strb r1, [sp] <== NOT EXECUTED a0002738: eaffffc2 b a0002648 <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; a000273c: e0812002 add r2, r1, r2 a0002740: e5842028 str r2, [r4, #40] ; 0x28 rtems_termios_puts ( " ", i, tty); a0002744: e59f0010 ldr r0, [pc, #16] ; a000275c a0002748: e1a02004 mov r2, r4 a000274c: ebffff5f bl a00024d0 return; a0002750: eaffffc6 b a0002670 a0002754: a0019090 .word 0xa0019090 a0002758: a001a118 .word 0xa001a118 a000275c: a001a038 .word 0xa001a038 a000cbd0 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { a000cbd0: e92d4070 push {r4, r5, r6, lr} a000cbd4: 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) a000cbd8: e28d4004 add r4, sp, #4 a000cbdc: e3a0c001 mov ip, #1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { a000cbe0: 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) a000cbe4: e3a01003 mov r1, #3 a000cbe8: e59f0160 ldr r0, [pc, #352] ; a000cd50 a000cbec: e3a02007 mov r2, #7 a000cbf0: e1a03004 mov r3, r4 a000cbf4: e58dc000 str ip, [sp] a000cbf8: ebffd1ab bl a00012ac a000cbfc: e3500000 cmp r0, #0 a000cc00: 1a00003d bne a000ccfc return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); a000cc04: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000cc08: e3530000 cmp r3, #0 <== NOT EXECUTED a000cc0c: 0a000004 beq a000cc24 <== NOT EXECUTED a000cc10: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000cc14: e3530000 cmp r3, #0 <== NOT EXECUTED a000cc18: 0a000001 beq a000cc24 <== NOT EXECUTED a000cc1c: e1a00004 mov r0, r4 <== NOT EXECUTED a000cc20: e12fff33 blx r3 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000cc24: e59fc128 ldr ip, [pc, #296] ; a000cd54 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); a000cc28: e28d4018 add r4, sp, #24 a000cc2c: e3a03c6f mov r3, #28416 ; 0x6f00 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000cc30: e1dce0b0 ldrh lr, [ip] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); a000cc34: e2833066 add r3, r3, #102 ; 0x66 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000cc38: e59f1118 ldr r1, [pc, #280] ; a000cd58 a000cc3c: e1a0200e mov r2, lr a000cc40: e28ee001 add lr, lr, #1 a000cc44: e1cce0b0 strh lr, [ip] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); a000cc48: e59fc10c ldr ip, [pc, #268] ; a000cd5c sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000cc4c: e284000a add r0, r4, #10 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); a000cc50: e1c430b8 strh r3, [r4, #8] a000cc54: e58dc018 str ip, [sp, #24] a000cc58: e28cc33e add ip, ip, #-134217728 ; 0xf8000000 a000cc5c: e28cc73e add ip, ip, #16252928 ; 0xf80000 a000cc60: e28cccba add ip, ip, #47616 ; 0xba00 a000cc64: e58dc01c str ip, [sp, #28] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000cc68: eb000552 bl a000e1b8 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { a000cc6c: e1a00004 mov r0, r4 a000cc70: e3a01d06 mov r1, #384 ; 0x180 a000cc74: eb00004b bl a000cda8 a000cc78: e2506000 subs r6, r0, #0 a000cc7c: 1a00001c bne a000ccf4 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); a000cc80: e1a00004 mov r0, r4 a000cc84: e3a01901 mov r1, #16384 ; 0x4000 a000cc88: ebffd3f6 bl a0001c68 if (filsdes[0] < 0) { a000cc8c: 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); a000cc90: e5850000 str r0, [r5] if (filsdes[0] < 0) { a000cc94: ba000023 blt a000cd28 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]); a000cc98: e59f30c0 ldr r3, [pc, #192] ; a000cd60 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); a000cc9c: e3a01001 mov r1, #1 <== NOT EXECUTED the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); a000cca0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000cca4: e1500003 cmp r0, r3 <== NOT EXECUTED a000cca8: 359f30b4 ldrcc r3, [pc, #180] ; a000cd64 <== NOT EXECUTED a000ccac: 35936000 ldrcc r6, [r3] <== NOT EXECUTED a000ccb0: 30866300 addcc r6, r6, r0, lsl #6 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a000ccb4: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); a000ccb8: e1a00004 mov r0, r4 <== NOT EXECUTED unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a000ccbc: e3c33001 bic r3, r3, #1 <== NOT EXECUTED a000ccc0: e5863014 str r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); a000ccc4: ebffd3e7 bl a0001c68 <== NOT EXECUTED if (filsdes[1] < 0) { a000ccc8: 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); a000cccc: e5850004 str r0, [r5, #4] <== NOT EXECUTED if (filsdes[1] < 0) { a000ccd0: a3a06000 movge r6, #0 <== NOT EXECUTED a000ccd4: ba000018 blt a000cd3c <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); a000ccd8: e1a00004 mov r0, r4 <== NOT EXECUTED a000ccdc: eb000035 bl a000cdb8 <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); a000cce0: eb000280 bl a000d6e8 <__errno> a000cce4: e5806000 str r6, [r0] } a000cce8: e3e00000 mvn r0, #0 a000ccec: e28dd028 add sp, sp, #40 ; 0x28 a000ccf0: 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){ a000ccf4: eb00027b bl a000d6e8 <__errno> <== NOT EXECUTED a000ccf8: eafffffa b a000cce8 <== 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) a000ccfc: eb000279 bl a000d6e8 <__errno> a000cd00: e5903000 ldr r3, [r0] a000cd04: e3530002 cmp r3, #2 a000cd08: 1afffff6 bne a000cce8 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) a000cd0c: e3a01fff mov r1, #1020 ; 0x3fc a000cd10: e2811003 add r1, r1, #3 a000cd14: e59f0034 ldr r0, [pc, #52] ; a000cd50 a000cd18: ebffd210 bl a0001560 a000cd1c: e3500000 cmp r0, #0 a000cd20: 0affffbf beq a000cc24 a000cd24: eaffffef b a000cce8 <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; a000cd28: eb00026e bl a000d6e8 <__errno> a000cd2c: 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); a000cd30: e1a00004 mov r0, r4 a000cd34: eb00001f bl a000cdb8 a000cd38: eaffffe8 b a000cce0 iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; a000cd3c: eb000269 bl a000d6e8 <__errno> <== NOT EXECUTED a000cd40: e5906000 ldr r6, [r0] <== NOT EXECUTED close(filsdes[0]); a000cd44: e5950000 ldr r0, [r5] <== NOT EXECUTED a000cd48: ebfff06c bl a0008f00 <== NOT EXECUTED a000cd4c: eaffffe1 b a000ccd8 <== NOT EXECUTED a000cd50: a001a320 .word 0xa001a320 a000cd54: a001a7b2 .word 0xa001a7b2 a000cd58: a001a328 .word 0xa001a328 a000cd5c: 706d742f .word 0x706d742f a000cd60: a0018e10 .word 0xa0018e10 a000cd64: a001a82c .word 0xa001a82c a000b30c : uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { a000b30c: e59f3060 ldr r3, [pc, #96] ; a000b374 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { a000b310: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if (cmd == FIONREAD) { a000b314: e1510003 cmp r1, r3 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { a000b318: e1a05000 mov r5, r0 <== NOT EXECUTED a000b31c: e1a04002 mov r4, r2 <== NOT EXECUTED if (cmd == FIONREAD) { a000b320: 0a000001 beq a000b32c <== NOT EXECUTED a000b324: e3e00015 mvn r0, #21 <== NOT EXECUTED a000b328: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if (buffer == NULL) a000b32c: e3520000 cmp r2, #0 <== NOT EXECUTED a000b330: 1a000001 bne a000b33c <== NOT EXECUTED a000b334: e3e0000d mvn r0, #13 <== NOT EXECUTED a000b338: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) a000b33c: e3a01000 mov r1, #0 <== NOT EXECUTED a000b340: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000b344: e1a02001 mov r2, r1 <== NOT EXECUTED a000b348: ebffe4b1 bl a0004614 <== NOT EXECUTED a000b34c: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000b350: 0a000001 beq a000b35c <== NOT EXECUTED a000b354: e3e00003 mvn r0, #3 <== NOT EXECUTED a000b358: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; a000b35c: e595300c ldr r3, [r5, #12] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000b360: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; a000b364: e5843000 str r3, [r4] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000b368: ebffe4f1 bl a0004734 <== NOT EXECUTED a000b36c: e1a00006 mov r0, r6 <== NOT EXECUTED return 0; } return -EINVAL; } a000b370: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a000b374: 4004667f .word 0x4004667f a000b294 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } a000b294: e3e0001c mvn r0, #28 <== NOT EXECUTED a000b298: e12fff1e bx lr <== NOT EXECUTED a000b378 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { a000b378: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a000b37c: e1a09001 mov r9, r1 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000b380: e3a01000 mov r1, #0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { a000b384: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a000b388: e1a04000 mov r4, r0 <== NOT EXECUTED a000b38c: e1a05002 mov r5, r2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000b390: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000b394: e1a02001 mov r2, r1 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { a000b398: e1a08003 mov r8, r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000b39c: ebffe49c bl a0004614 <== NOT EXECUTED a000b3a0: e250a000 subs sl, r0, #0 <== NOT EXECUTED a000b3a4: 13e07003 mvnne r7, #3 <== NOT EXECUTED a000b3a8: 1a000027 bne a000b44c <== NOT EXECUTED return -EINTR; while (read < count) { a000b3ac: e3550000 cmp r5, #0 <== NOT EXECUTED a000b3b0: 01a07005 moveq r7, r5 <== NOT EXECUTED a000b3b4: 01a06007 moveq r6, r7 <== NOT EXECUTED a000b3b8: 0a00001f beq a000b43c <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) a000b3bc: e1a0700a mov r7, sl <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); a000b3c0: e28db004 add fp, sp, #4 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { a000b3c4: e594200c ldr r2, [r4, #12] <== NOT EXECUTED a000b3c8: e3520000 cmp r2, #0 <== NOT EXECUTED a000b3cc: 1a000021 bne a000b458 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) a000b3d0: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000b3d4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b3d8: 0a00003c beq a000b4d0 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { a000b3dc: e5986014 ldr r6, [r8, #20] <== NOT EXECUTED a000b3e0: e2166001 ands r6, r6, #1 <== NOT EXECUTED a000b3e4: 1a00003b bne a000b4d8 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; a000b3e8: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000b3ec: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; a000b3f0: e2833001 add r3, r3, #1 <== NOT EXECUTED a000b3f4: e5843018 str r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000b3f8: ebffe4cd bl a0004734 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) a000b3fc: e1a01006 mov r1, r6 <== NOT EXECUTED a000b400: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000b404: eb000472 bl a000c5d4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000b408: e1a01006 mov r1, r6 <== NOT EXECUTED a000b40c: 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)) a000b410: e2506000 subs r6, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000b414: 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)) a000b418: 13e06003 mvnne r6, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000b41c: ebffe47c bl a0004614 <== NOT EXECUTED a000b420: e3500000 cmp r0, #0 <== NOT EXECUTED a000b424: 1a00002d bne a000b4e0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; a000b428: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if (ret != 0) a000b42c: e3560000 cmp r6, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; a000b430: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000b434: e5843018 str r3, [r4, #24] <== NOT EXECUTED if (ret != 0) a000b438: 0affffe1 beq a000b3c4 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); a000b43c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b440: ebffe4bb bl a0004734 <== NOT EXECUTED out_nolock: if (read > 0) a000b444: e3570000 cmp r7, #0 <== NOT EXECUTED a000b448: d1a07006 movle r7, r6 <== NOT EXECUTED return read; return ret; } a000b44c: e1a00007 mov r0, r7 <== NOT EXECUTED a000b450: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b454: 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; a000b458: e9941008 ldmib r4, {r3, ip} <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); a000b45c: e06a6005 rsb r6, sl, r5 <== NOT EXECUTED a000b460: e1520006 cmp r2, r6 <== NOT EXECUTED a000b464: 31a06002 movcc r6, r2 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; a000b468: e06c3003 rsb r3, ip, r3 <== NOT EXECUTED if (chunk > chunk1) { a000b46c: e1560003 cmp r6, r3 <== NOT EXECUTED a000b470: ca00001c bgt a000b4e8 <== 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); a000b474: e5941000 ldr r1, [r4] <== NOT EXECUTED a000b478: e089000a add r0, r9, sl <== NOT EXECUTED a000b47c: e1a02006 mov r2, r6 <== NOT EXECUTED a000b480: e081100c add r1, r1, ip <== NOT EXECUTED a000b484: eb000aa5 bl a000df20 <== NOT EXECUTED pipe->Start += chunk; a000b488: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; a000b48c: e5941004 ldr r1, [r4, #4] <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; a000b490: e0860000 add r0, r6, r0 <== NOT EXECUTED a000b494: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; a000b498: eb002e49 bl a0016dc4 <__umodsi3> <== NOT EXECUTED pipe->Length -= chunk; a000b49c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; a000b4a0: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Length -= chunk; a000b4a4: e0663003 rsb r3, r6, r3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) a000b4a8: e3530000 cmp r3, #0 <== NOT EXECUTED pipe->Start = 0; a000b4ac: 05843008 streq r3, [r4, #8] <== NOT EXECUTED else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; pipe->Length -= chunk; a000b4b0: e584300c str r3, [r4, #12] <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) a000b4b4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED a000b4b8: e3530000 cmp r3, #0 <== NOT EXECUTED a000b4bc: 1a000016 bne a000b51c <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; a000b4c0: e0877006 add r7, r7, r6 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { a000b4c4: e1570005 cmp r7, r5 <== NOT EXECUTED a000b4c8: e1a0a007 mov sl, r7 <== NOT EXECUTED a000b4cc: 3affffbc bcc a000b3c4 <== NOT EXECUTED a000b4d0: e3a06000 mov r6, #0 <== NOT EXECUTED a000b4d4: eaffffd8 b a000b43c <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { a000b4d8: e3e0600a mvn r6, #10 <== NOT EXECUTED a000b4dc: eaffffd6 b a000b43c <== 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)) { a000b4e0: e3e06003 mvn r6, #3 <== NOT EXECUTED a000b4e4: eaffffd6 b a000b444 <== 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); a000b4e8: e5941000 ldr r1, [r4] <== NOT EXECUTED a000b4ec: e1a02003 mov r2, r3 <== NOT EXECUTED a000b4f0: e089000a add r0, r9, sl <== NOT EXECUTED a000b4f4: e081100c add r1, r1, ip <== NOT EXECUTED a000b4f8: e58d3000 str r3, [sp] <== NOT EXECUTED a000b4fc: eb000a87 bl a000df20 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); a000b500: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b504: e5941000 ldr r1, [r4] <== NOT EXECUTED a000b508: e08a0003 add r0, sl, r3 <== NOT EXECUTED a000b50c: e0890000 add r0, r9, r0 <== NOT EXECUTED a000b510: e0632006 rsb r2, r3, r6 <== NOT EXECUTED a000b514: eb000a81 bl a000df20 <== NOT EXECUTED a000b518: eaffffda b a000b488 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); a000b51c: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000b520: e1a0100b mov r1, fp <== NOT EXECUTED a000b524: eb000411 bl a000c570 <== NOT EXECUTED a000b528: eaffffe4 b a000b4c0 <== NOT EXECUTED a000b748 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { a000b748: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED pipe_control_t *pipe = *pipep; a000b74c: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { a000b750: e1a05001 mov r5, r1 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, a000b754: e3a01000 mov r1, #0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { a000b758: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000b75c: e1a07000 mov r7, r0 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, a000b760: e1a02001 mov r2, r1 <== NOT EXECUTED a000b764: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b768: ebffe3a9 bl a0004614 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) a000b76c: e3500000 cmp r0, #0 <== NOT EXECUTED a000b770: 1a000039 bne a000b85c <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); a000b774: e5956014 ldr r6, [r5, #20] <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, a000b778: e59f50e0 ldr r5, [pc, #224] ; a000b860 <== NOT EXECUTED a000b77c: e3a01000 mov r1, #0 <== NOT EXECUTED /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) a000b780: e3160002 tst r6, #2 <== NOT EXECUTED pipe->Readers --; a000b784: 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); a000b788: e2066006 and r6, r6, #6 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, a000b78c: e1a02001 mov r2, r1 <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; a000b790: 12433001 subne r3, r3, #1 <== NOT EXECUTED a000b794: 15843010 strne r3, [r4, #16] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) a000b798: e3160004 tst r6, #4 <== NOT EXECUTED pipe->Writers --; a000b79c: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, a000b7a0: e5950000 ldr r0, [r5] <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; a000b7a4: 12433001 subne r3, r3, #1 <== NOT EXECUTED a000b7a8: 15843014 strne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, a000b7ac: ebffe398 bl a0004614 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) a000b7b0: e3500000 cmp r0, #0 <== NOT EXECUTED a000b7b4: 1a000028 bne a000b85c <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); a000b7b8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b7bc: ebffe3dc bl a0004734 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { a000b7c0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000b7c4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b7c8: 0a00000e beq a000b808 <== 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) a000b7cc: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED a000b7d0: e2723001 rsbs r3, r2, #1 <== NOT EXECUTED a000b7d4: 33a03000 movcc r3, #0 <== NOT EXECUTED a000b7d8: e3560002 cmp r6, #2 <== NOT EXECUTED a000b7dc: 03a03000 moveq r3, #0 <== NOT EXECUTED a000b7e0: e3530000 cmp r3, #0 <== NOT EXECUTED a000b7e4: 0a000002 beq a000b7f4 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); a000b7e8: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000b7ec: e1a0100d mov r1, sp <== NOT EXECUTED a000b7f0: eb00035e bl a000c570 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); a000b7f4: e5950000 ldr r0, [r5] <== NOT EXECUTED a000b7f8: ebffe3cd bl a0004734 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } a000b7fc: e3a00000 mov r0, #0 <== NOT EXECUTED a000b800: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000b804: 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) { a000b808: e5948014 ldr r8, [r4, #20] <== NOT EXECUTED a000b80c: e3580000 cmp r8, #0 <== NOT EXECUTED a000b810: 0a000005 beq a000b82c <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) a000b814: e3560004 cmp r6, #4 <== NOT EXECUTED a000b818: 0afffff5 beq a000b7f4 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); a000b81c: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000b820: e1a0100d mov r1, sp <== NOT EXECUTED a000b824: eb000351 bl a000c570 <== NOT EXECUTED a000b828: eafffff1 b a000b7f4 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); a000b82c: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000b830: eb000334 bl a000c508 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); a000b834: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000b838: eb000332 bl a000c508 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); a000b83c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b840: ebffe34a bl a0004570 <== NOT EXECUTED free(pipe->Buffer); a000b844: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b848: ebfff5d4 bl a0008fa0 <== NOT EXECUTED free(pipe); a000b84c: e1a00004 mov r0, r4 <== NOT EXECUTED a000b850: ebfff5d2 bl a0008fa0 <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; a000b854: 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) { a000b858: eaffffe5 b a000b7f4 <== 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); a000b85c: ebffe50d bl a0004c98 <== NOT EXECUTED a000b860: a001a7ac .word 0xa001a7ac a000b52c : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { a000b52c: 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) a000b530: e2524000 subs r4, r2, #0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { a000b534: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a000b538: e1a05000 mov r5, r0 <== NOT EXECUTED a000b53c: e1a06001 mov r6, r1 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) a000b540: 01a07004 moveq r7, r4 <== NOT EXECUTED a000b544: 1a000002 bne a000b554 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } a000b548: e1a00007 mov r0, r7 <== NOT EXECUTED a000b54c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b550: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) a000b554: e3a01000 mov r1, #0 <== NOT EXECUTED a000b558: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000b55c: e1a02001 mov r2, r1 <== NOT EXECUTED a000b560: e58d3000 str r3, [sp] <== NOT EXECUTED a000b564: ebffe42a bl a0004614 <== NOT EXECUTED a000b568: e2509000 subs r9, r0, #0 <== NOT EXECUTED a000b56c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b570: 13e07003 mvnne r7, #3 <== NOT EXECUTED a000b574: 1afffff3 bne a000b548 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { a000b578: e5957010 ldr r7, [r5, #16] <== NOT EXECUTED a000b57c: e3570000 cmp r7, #0 <== NOT EXECUTED a000b580: 0a000050 beq a000b6c8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; a000b584: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { a000b588: 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); a000b58c: e28db004 add fp, sp, #4 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; a000b590: e1540008 cmp r4, r8 <== NOT EXECUTED a000b594: 91a0a004 movls sl, r4 <== NOT EXECUTED a000b598: 83a0a001 movhi sl, #1 <== NOT EXECUTED while (written < count) { while (PIPE_SPACE(pipe) < chunk) { a000b59c: e595000c ldr r0, [r5, #12] <== NOT EXECUTED a000b5a0: e0602008 rsb r2, r0, r8 <== NOT EXECUTED a000b5a4: e152000a cmp r2, sl <== NOT EXECUTED a000b5a8: 2a000021 bcs a000b634 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { a000b5ac: e5938014 ldr r8, [r3, #20] <== NOT EXECUTED a000b5b0: e2188001 ands r8, r8, #1 <== NOT EXECUTED a000b5b4: 1a000051 bne a000b700 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; a000b5b8: e595201c ldr r2, [r5, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000b5bc: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000b5c0: e58d3000 str r3, [sp] <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; a000b5c4: e2822001 add r2, r2, #1 <== NOT EXECUTED a000b5c8: e585201c str r2, [r5, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000b5cc: ebffe458 bl a0004734 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) a000b5d0: e1a01008 mov r1, r8 <== NOT EXECUTED a000b5d4: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED a000b5d8: eb0003fd bl a000c5d4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000b5dc: e1a01008 mov r1, r8 <== NOT EXECUTED a000b5e0: 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)) a000b5e4: e2508000 subs r8, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000b5e8: 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)) a000b5ec: 13e08003 mvnne r8, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000b5f0: ebffe407 bl a0004614 <== NOT EXECUTED a000b5f4: e3500000 cmp r0, #0 <== NOT EXECUTED a000b5f8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b5fc: 1a00003d bne a000b6f8 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; a000b600: e595201c ldr r2, [r5, #28] <== NOT EXECUTED if (ret != 0) a000b604: e3580000 cmp r8, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; a000b608: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000b60c: e585201c str r2, [r5, #28] <== NOT EXECUTED if (ret != 0) a000b610: 1a00002d bne a000b6cc <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { a000b614: e5952010 ldr r2, [r5, #16] <== NOT EXECUTED a000b618: e3520000 cmp r2, #0 <== NOT EXECUTED a000b61c: 0a000029 beq a000b6c8 <== NOT EXECUTED a000b620: 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) { a000b624: e595000c ldr r0, [r5, #12] <== NOT EXECUTED a000b628: e0602008 rsb r2, r0, r8 <== NOT EXECUTED a000b62c: e152000a cmp r2, sl <== NOT EXECUTED a000b630: 3affffdd bcc a000b5ac <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); a000b634: e595c008 ldr ip, [r5, #8] <== NOT EXECUTED a000b638: e1a01008 mov r1, r8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); a000b63c: e069a004 rsb sl, r9, r4 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); a000b640: e080000c add r0, r0, ip <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); a000b644: e152000a cmp r2, sl <== NOT EXECUTED a000b648: 31a0a002 movcc sl, r2 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); a000b64c: e58d3000 str r3, [sp] <== NOT EXECUTED a000b650: eb002ddb bl a0016dc4 <__umodsi3> <== NOT EXECUTED a000b654: e0608008 rsb r8, r0, r8 <== NOT EXECUTED if (chunk > chunk1) { a000b658: e15a0008 cmp sl, r8 <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); a000b65c: e1a0c000 mov ip, r0 <== NOT EXECUTED if (chunk > chunk1) { a000b660: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b664: da000027 ble a000b708 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); a000b668: e5950000 ldr r0, [r5] <== NOT EXECUTED a000b66c: e0861009 add r1, r6, r9 <== NOT EXECUTED a000b670: e1a02008 mov r2, r8 <== NOT EXECUTED a000b674: e080000c add r0, r0, ip <== NOT EXECUTED a000b678: eb000a28 bl a000df20 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); a000b67c: e0881009 add r1, r8, r9 <== NOT EXECUTED a000b680: e0861001 add r1, r6, r1 <== NOT EXECUTED a000b684: e068200a rsb r2, r8, sl <== NOT EXECUTED a000b688: e5950000 ldr r0, [r5] <== NOT EXECUTED a000b68c: eb000a23 bl a000df20 <== NOT EXECUTED a000b690: e59d3000 ldr r3, [sp] <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; a000b694: e595200c ldr r2, [r5, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) a000b698: 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; a000b69c: e082200a add r2, r2, sl <== NOT EXECUTED if (pipe->waitingReaders > 0) a000b6a0: 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; a000b6a4: e585200c str r2, [r5, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) a000b6a8: 1a00001e bne a000b728 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; a000b6ac: 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) { a000b6b0: e1540007 cmp r4, r7 <== NOT EXECUTED a000b6b4: e1a09007 mov r9, r7 <== NOT EXECUTED a000b6b8: 9a000020 bls a000b740 <== NOT EXECUTED a000b6bc: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED a000b6c0: e3a0a001 mov sl, #1 <== NOT EXECUTED a000b6c4: eaffffb4 b a000b59c <== NOT EXECUTED a000b6c8: e3e0801f mvn r8, #31 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); a000b6cc: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED a000b6d0: ebffe417 bl a0004734 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) a000b6d4: e3780020 cmn r8, #32 <== NOT EXECUTED a000b6d8: 0a000002 beq a000b6e8 <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) a000b6dc: e3570000 cmp r7, #0 <== NOT EXECUTED a000b6e0: d1a07008 movle r7, r8 <== NOT EXECUTED a000b6e4: eaffff97 b a000b548 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); a000b6e8: eb000244 bl a000c000 <== NOT EXECUTED a000b6ec: e3a0100d mov r1, #13 <== NOT EXECUTED a000b6f0: eb0002b5 bl a000c1cc <== NOT EXECUTED a000b6f4: eafffff8 b a000b6dc <== 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)) { a000b6f8: e3e08003 mvn r8, #3 <== NOT EXECUTED a000b6fc: eafffff6 b a000b6dc <== 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)) { a000b700: e3e0800a mvn r8, #10 <== NOT EXECUTED a000b704: eafffff0 b a000b6cc <== 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); a000b708: e5950000 ldr r0, [r5] <== NOT EXECUTED a000b70c: e0861009 add r1, r6, r9 <== NOT EXECUTED a000b710: e1a0200a mov r2, sl <== NOT EXECUTED a000b714: e080000c add r0, r0, ip <== NOT EXECUTED a000b718: e58d3000 str r3, [sp] <== NOT EXECUTED a000b71c: eb0009ff bl a000df20 <== NOT EXECUTED a000b720: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b724: eaffffda b a000b694 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); a000b728: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED a000b72c: e1a0100b mov r1, fp <== NOT EXECUTED a000b730: e58d3000 str r3, [sp] <== NOT EXECUTED a000b734: eb00038d bl a000c570 <== NOT EXECUTED a000b738: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b73c: eaffffda b a000b6ac <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { a000b740: e3a08000 mov r8, #0 <== NOT EXECUTED a000b744: eaffffe0 b a000b6cc <== NOT EXECUTED a000594c : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { a000594c: e92d4030 push {r4, r5, lr} Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) a0005950: e2505000 subs r5, r0, #0 int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { a0005954: e24dd00c sub sp, sp, #12 Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) a0005958: 0a00001d beq a00059d4 * * 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 ); a000595c: e1a00001 mov r0, r1 a0005960: e28d1004 add r1, sp, #4 a0005964: eb0019d7 bl a000c0c8 <_POSIX_Absolute_timeout_to_ticks> a0005968: e5951000 ldr r1, [r5] a000596c: e1a04000 mov r4, r0 a0005970: e28d2008 add r2, sp, #8 a0005974: e59f0090 ldr r0, [pc, #144] ; a0005a0c a0005978: eb000a74 bl a0008350 <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { a000597c: e59dc008 ldr ip, [sp, #8] a0005980: e35c0000 cmp ip, #0 a0005984: 1a000012 bne a00059d4 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( a0005988: 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, a000598c: e3540003 cmp r4, #3 a0005990: 13a05000 movne r5, #0 a0005994: 03a05001 moveq r5, #1 a0005998: e2800010 add r0, r0, #16 a000599c: e59d3004 ldr r3, [sp, #4] a00059a0: e1a02005 mov r2, r5 a00059a4: e58dc000 str ip, [sp] a00059a8: eb000715 bl a0007604 <_CORE_RWLock_Obtain_for_reading> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); a00059ac: eb000c87 bl a0008bd0 <_Thread_Enable_dispatch> if ( !do_wait ) { a00059b0: e3550000 cmp r5, #0 a00059b4: 1a00000f bne a00059f8 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { a00059b8: e59f3050 ldr r3, [pc, #80] ; a0005a10 a00059bc: e5933000 ldr r3, [r3] a00059c0: e5930034 ldr r0, [r3, #52] ; 0x34 a00059c4: e3500002 cmp r0, #2 a00059c8: 0a000004 beq a00059e0 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( a00059cc: eb000042 bl a0005adc <_POSIX_RWLock_Translate_core_RWLock_return_code> a00059d0: ea000000 b a00059d8 a00059d4: e3a00016 mov r0, #22 case OBJECTS_ERROR: break; } return EINVAL; } a00059d8: e28dd00c add sp, sp, #12 a00059dc: e8bd8030 pop {r4, r5, pc} ); _Thread_Enable_dispatch(); if ( !do_wait ) { if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { switch (status) { a00059e0: e3540000 cmp r4, #0 a00059e4: 0afffffa beq a00059d4 a00059e8: e3540002 cmp r4, #2 a00059ec: 93a00074 movls r0, #116 ; 0x74 a00059f0: 9afffff8 bls a00059d8 a00059f4: eafffff4 b a00059cc <== NOT EXECUTED a00059f8: e59f3010 ldr r3, [pc, #16] ; a0005a10 a00059fc: e5933000 ldr r3, [r3] a0005a00: e5930034 ldr r0, [r3, #52] ; 0x34 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( a0005a04: eb000034 bl a0005adc <_POSIX_RWLock_Translate_core_RWLock_return_code> a0005a08: eafffff2 b a00059d8 a0005a0c: a001dd54 .word 0xa001dd54 a0005a10: a001dc40 .word 0xa001dc40 a0005a14 : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { a0005a14: e92d4030 push {r4, r5, lr} Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) a0005a18: e2505000 subs r5, r0, #0 int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { a0005a1c: e24dd00c sub sp, sp, #12 Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) a0005a20: 0a00001d beq a0005a9c * * 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 ); a0005a24: e1a00001 mov r0, r1 a0005a28: e28d1004 add r1, sp, #4 a0005a2c: eb0019a5 bl a000c0c8 <_POSIX_Absolute_timeout_to_ticks> a0005a30: e5951000 ldr r1, [r5] a0005a34: e1a04000 mov r4, r0 a0005a38: e28d2008 add r2, sp, #8 a0005a3c: e59f0090 ldr r0, [pc, #144] ; a0005ad4 a0005a40: eb000a42 bl a0008350 <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { a0005a44: e59dc008 ldr ip, [sp, #8] a0005a48: e35c0000 cmp ip, #0 a0005a4c: 1a000012 bne a0005a9c case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( a0005a50: 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, a0005a54: e3540003 cmp r4, #3 a0005a58: 13a05000 movne r5, #0 a0005a5c: 03a05001 moveq r5, #1 a0005a60: e2800010 add r0, r0, #16 a0005a64: e59d3004 ldr r3, [sp, #4] a0005a68: e1a02005 mov r2, r5 a0005a6c: e58dc000 str ip, [sp] a0005a70: eb00071a bl a00076e0 <_CORE_RWLock_Obtain_for_writing> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); a0005a74: eb000c55 bl a0008bd0 <_Thread_Enable_dispatch> if ( !do_wait && a0005a78: e3550000 cmp r5, #0 a0005a7c: 1a00000f bne a0005ac0 (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { a0005a80: e59f3050 ldr r3, [pc, #80] ; a0005ad8 a0005a84: e5933000 ldr r3, [r3] a0005a88: e5930034 ldr r0, [r3, #52] ; 0x34 ticks, NULL ); _Thread_Enable_dispatch(); if ( !do_wait && a0005a8c: e3500002 cmp r0, #2 a0005a90: 0a000004 beq a0005aa8 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( a0005a94: eb000010 bl a0005adc <_POSIX_RWLock_Translate_core_RWLock_return_code> a0005a98: ea000000 b a0005aa0 a0005a9c: e3a00016 mov r0, #22 case OBJECTS_ERROR: break; } return EINVAL; } a0005aa0: e28dd00c add sp, sp, #12 a0005aa4: e8bd8030 pop {r4, r5, pc} ); _Thread_Enable_dispatch(); if ( !do_wait && (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { switch (status) { a0005aa8: e3540000 cmp r4, #0 a0005aac: 0afffffa beq a0005a9c a0005ab0: e3540002 cmp r4, #2 a0005ab4: 93a00074 movls r0, #116 ; 0x74 a0005ab8: 9afffff8 bls a0005aa0 a0005abc: eafffff4 b a0005a94 <== NOT EXECUTED a0005ac0: e59f3010 ldr r3, [pc, #16] ; a0005ad8 a0005ac4: e5933000 ldr r3, [r3] a0005ac8: e5930034 ldr r0, [r3, #52] ; 0x34 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( a0005acc: eb000002 bl a0005adc <_POSIX_RWLock_Translate_core_RWLock_return_code> a0005ad0: eafffff2 b a0005aa0 a0005ad4: a001dd54 .word 0xa001dd54 a0005ad8: a001dc40 .word 0xa001dc40 a0004c38 : * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) a0004c38: e59f3060 ldr r3, [pc, #96] ; a0004ca0 * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { a0004c3c: e92d4010 push {r4, lr} * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) a0004c40: e5933000 ldr r3, [r3] a0004c44: e3530000 cmp r3, #0 a0004c48: 1a000011 bne a0004c94 a0004c4c: e59f3050 ldr r3, [pc, #80] ; a0004ca4 return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; a0004c50: e59f4050 ldr r4, [pc, #80] ; a0004ca8 a0004c54: e5931000 ldr r1, [r3] a0004c58: e5942000 ldr r2, [r4] a0004c5c: e2811001 add r1, r1, #1 a0004c60: e5831000 str r1, [r3] a0004c64: e5923108 ldr r3, [r2, #264] ; 0x108 _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && a0004c68: e59320d4 ldr r2, [r3, #212] ; 0xd4 a0004c6c: e3520000 cmp r2, #0 a0004c70: 1a000008 bne a0004c98 thread_support->cancelation_requested ) a0004c74: e59330dc ldr r3, [r3, #220] ; 0xdc a0004c78: e3530000 cmp r3, #0 a0004c7c: 0a000005 beq a0004c98 cancel = true; _Thread_Enable_dispatch(); a0004c80: eb000967 bl a0007224 <_Thread_Enable_dispatch> if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); a0004c84: e5940000 ldr r0, [r4] a0004c88: e3e01000 mvn r1, #0 } a0004c8c: e8bd4010 pop {r4, lr} thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); a0004c90: ea001745 b a000a9ac <_POSIX_Thread_Exit> a0004c94: e8bd8010 pop {r4, pc} <== NOT EXECUTED } a0004c98: e8bd4010 pop {r4, lr} _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); a0004c9c: ea000960 b a0007224 <_Thread_Enable_dispatch> a0004ca0: a001c77c .word 0xa001c77c a0004ca4: a001c6ec .word 0xa001c6ec a0004ca8: a001c7a0 .word 0xa001c7a0 a001861c : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a001861c: e59f30c0 ldr r3, [pc, #192] ; a00186e4 ssize_t read( int fd, void *buffer, size_t count ) { a0018620: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0018624: e593c000 ldr ip, [r3] ssize_t read( int fd, void *buffer, size_t count ) { a0018628: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a001862c: e150000c cmp r0, ip a0018630: 2a00001c bcs a00186a8 iop = rtems_libio_iop( fd ); a0018634: e59fc0ac ldr ip, [pc, #172] ; a00186e8 a0018638: e59c4000 ldr r4, [ip] a001863c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); a0018640: e5940014 ldr r0, [r4, #20] a0018644: e3100c01 tst r0, #256 ; 0x100 a0018648: 0a000016 beq a00186a8 rtems_libio_check_buffer( buffer ); a001864c: e3510000 cmp r1, #0 a0018650: 0a000019 beq a00186bc rtems_libio_check_count( count ); a0018654: e3520000 cmp r2, #0 a0018658: 0a000010 beq a00186a0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a001865c: e3100002 tst r0, #2 a0018660: 0a000015 beq a00186bc /* * Now process the read(). */ if ( !iop->handlers->read_h ) a0018664: e594303c ldr r3, [r4, #60] ; 0x3c a0018668: e5933008 ldr r3, [r3, #8] a001866c: e3530000 cmp r3, #0 a0018670: 0a000016 beq a00186d0 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); a0018674: e1a00004 mov r0, r4 a0018678: e12fff33 blx r3 if ( rc > 0 ) a001867c: e3500000 cmp r0, #0 a0018680: da000005 ble a001869c iop->offset += rc; a0018684: e284600c add r6, r4, #12 a0018688: e8960060 ldm r6, {r5, r6} a001868c: e0952000 adds r2, r5, r0 a0018690: e0a63fc0 adc r3, r6, r0, asr #31 a0018694: e584200c str r2, [r4, #12] a0018698: e5843010 str r3, [r4, #16] return rc; } a001869c: e8bd8070 pop {r4, r5, r6, pc} rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); a00186a0: e1a00002 mov r0, r2 <== NOT EXECUTED a00186a4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); a00186a8: ebffd40e bl a000d6e8 <__errno> a00186ac: e3a03009 mov r3, #9 a00186b0: e5803000 str r3, [r0] a00186b4: e3e00000 mvn r0, #0 a00186b8: e8bd8070 pop {r4, r5, r6, pc} rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a00186bc: ebffd409 bl a000d6e8 <__errno> <== NOT EXECUTED a00186c0: e3a03016 mov r3, #22 <== NOT EXECUTED a00186c4: e5803000 str r3, [r0] <== NOT EXECUTED a00186c8: e3e00000 mvn r0, #0 <== NOT EXECUTED a00186cc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a00186d0: ebffd404 bl a000d6e8 <__errno> <== NOT EXECUTED a00186d4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00186d8: e5803000 str r3, [r0] <== NOT EXECUTED a00186dc: e3e00000 mvn r0, #0 <== NOT EXECUTED a00186e0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a00186e4: a0018e10 .word 0xa0018e10 a00186e8: a001a82c .word 0xa001a82c a0026c34 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { a0026c34: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int result; if (!buf) a0026c38: e2516000 subs r6, r1, #0 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { a0026c3c: e24dd018 sub sp, sp, #24 a0026c40: e1a05002 mov r5, r2 a0026c44: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if (!buf) a0026c48: 0a000030 beq a0026d10 rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), a0026c4c: eb0079d8 bl a00453b4 a0026c50: e28d4004 add r4, sp, #4 a0026c54: e3a0c000 mov ip, #0 a0026c58: e1a01000 mov r1, r0 a0026c5c: e1a0200c mov r2, ip a0026c60: e1a00007 mov r0, r7 a0026c64: e1a03004 mov r3, r4 a0026c68: e58dc000 str ip, [sp] a0026c6c: ebff7a24 bl a0005504 0, &loc, false ); if ( result != 0 ) a0026c70: e3500000 cmp r0, #0 a0026c74: 1a000023 bne a0026d08 return -1; if ( !loc.ops->node_type_h ){ a0026c78: e59d2010 ldr r2, [sp, #16] a0026c7c: e5923010 ldr r3, [r2, #16] a0026c80: e3530000 cmp r3, #0 a0026c84: 0a000017 beq a0026ce8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ a0026c88: e1a00004 mov r0, r4 a0026c8c: e12fff33 blx r3 a0026c90: e3500004 cmp r0, #4 a0026c94: 1a000022 bne a0026d24 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ a0026c98: e59d2010 ldr r2, [sp, #16] a0026c9c: e592303c ldr r3, [r2, #60] ; 0x3c a0026ca0: e3530000 cmp r3, #0 a0026ca4: 0a00002b beq a0026d58 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); a0026ca8: e1a02005 mov r2, r5 a0026cac: e1a01006 mov r1, r6 a0026cb0: e1a00004 mov r0, r4 a0026cb4: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0026cb8: e59d3010 ldr r3, [sp, #16] if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); a0026cbc: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0026cc0: e3530000 cmp r3, #0 a0026cc4: 0a000004 beq a0026cdc a0026cc8: e593301c ldr r3, [r3, #28] a0026ccc: e3530000 cmp r3, #0 a0026cd0: 0a000001 beq a0026cdc a0026cd4: e1a00004 mov r0, r4 a0026cd8: e12fff33 blx r3 return result; } a0026cdc: e1a00005 mov r0, r5 a0026ce0: e28dd018 add sp, sp, #24 a0026ce4: 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 ); a0026ce8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0026cec: e3530000 cmp r3, #0 <== NOT EXECUTED a0026cf0: 0a000001 beq a0026cfc <== NOT EXECUTED a0026cf4: e1a00004 mov r0, r4 <== NOT EXECUTED a0026cf8: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0026cfc: eb005f21 bl a003e988 <__errno> <== NOT EXECUTED a0026d00: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0026d04: e5803000 str r3, [r0] <== NOT EXECUTED a0026d08: e3e05000 mvn r5, #0 <== NOT EXECUTED a0026d0c: eafffff2 b a0026cdc <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); a0026d10: eb005f1c bl a003e988 <__errno> <== NOT EXECUTED a0026d14: e3a0300e mov r3, #14 <== NOT EXECUTED a0026d18: e5803000 str r3, [r0] <== NOT EXECUTED a0026d1c: e3e05000 mvn r5, #0 <== NOT EXECUTED a0026d20: eaffffed b a0026cdc <== 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 ); a0026d24: e59d3010 ldr r3, [sp, #16] a0026d28: e3530000 cmp r3, #0 a0026d2c: 0a000004 beq a0026d44 a0026d30: e593301c ldr r3, [r3, #28] a0026d34: e3530000 cmp r3, #0 a0026d38: 0a000001 beq a0026d44 a0026d3c: e1a00004 mov r0, r4 a0026d40: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( EINVAL ); a0026d44: eb005f0f bl a003e988 <__errno> a0026d48: e3a03016 mov r3, #22 a0026d4c: e5803000 str r3, [r0] a0026d50: e3e05000 mvn r5, #0 a0026d54: eaffffe0 b a0026cdc } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); a0026d58: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0026d5c: e3530000 cmp r3, #0 <== NOT EXECUTED a0026d60: 0a000001 beq a0026d6c <== NOT EXECUTED a0026d64: e1a00004 mov r0, r4 <== NOT EXECUTED a0026d68: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0026d6c: eb005f05 bl a003e988 <__errno> <== NOT EXECUTED a0026d70: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0026d74: e5803000 str r3, [r0] <== NOT EXECUTED a0026d78: e3e05000 mvn r5, #0 <== NOT EXECUTED a0026d7c: eaffffd6 b a0026cdc <== NOT EXECUTED a0003508 : int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); a0003508: e59f3150 ldr r3, [pc, #336] ; a0003660 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { a000350c: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); a0003510: e5933000 ldr r3, [r3] ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { a0003514: e1a04002 mov r4, r2 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); a0003518: e1500003 cmp r0, r3 a000351c: 2a000045 bcs a0003638 iop = rtems_libio_iop( fd ); a0003520: e59f313c ldr r3, [pc, #316] ; a0003664 a0003524: e5936000 ldr r6, [r3] a0003528: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); a000352c: e5963014 ldr r3, [r6, #20] a0003530: e3130c01 tst r3, #256 ; 0x100 a0003534: 0a00003f beq a0003638 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a0003538: e3130002 tst r3, #2 a000353c: 0a000037 beq a0003620 /* * Argument validation on IO vector */ if ( !iov ) a0003540: e3510000 cmp r1, #0 a0003544: 0a000035 beq a0003620 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) a0003548: e3520000 cmp r2, #0 a000354c: da000033 ble a0003620 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) a0003550: e3520b01 cmp r2, #1024 ; 0x400 a0003554: ca000031 bgt a0003620 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) a0003558: e596303c ldr r3, [r6, #60] ; 0x3c a000355c: e5933008 ldr r3, [r3, #8] a0003560: e3530000 cmp r3, #0 a0003564: 0a000038 beq a000364c rtems_set_errno_and_return_minus_one( ENOTSUP ); a0003568: e1a05001 mov r5, r1 a000356c: e3a01000 mov r1, #0 a0003570: e1a02005 mov r2, r5 a0003574: e1a00001 mov r0, r1 a0003578: ea000000 b a0003580 * 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++ ) { a000357c: e1a0000e mov r0, lr ssize_t old; if ( !iov[v].iov_base ) a0003580: e592c000 ldr ip, [r2] * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003584: e2811001 add r1, r1, #1 ssize_t old; if ( !iov[v].iov_base ) a0003588: e35c0000 cmp ip, #0 a000358c: 0a000023 beq a0003620 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) a0003590: e592c004 ldr ip, [r2, #4] * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003594: e2822008 add r2, r2, #8 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) a0003598: e35c0000 cmp ip, #0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; a000359c: 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 ) a00035a0: 0a00001e beq a0003620 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) a00035a4: e150000e cmp r0, lr a00035a8: ca00001c bgt a0003620 * 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++ ) { a00035ac: e1540001 cmp r4, r1 a00035b0: cafffff1 bgt a000357c a00035b4: e3a07000 mov r7, #0 a00035b8: e1a08007 mov r8, r7 a00035bc: ea00000f b a0003600 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) { a00035c0: 0a000006 beq a00035e0 iop->offset += bytes; a00035c4: e286c00c add ip, r6, #12 <== NOT EXECUTED a00035c8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a00035cc: e09b2000 adds r2, fp, r0 <== NOT EXECUTED a00035d0: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED a00035d4: e586200c str r2, [r6, #12] <== NOT EXECUTED a00035d8: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; a00035dc: e0888000 add r8, r8, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) a00035e0: e5953004 ldr r3, [r5, #4] } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a00035e4: e2855008 add r5, r5, #8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) a00035e8: e1500003 cmp r0, r3 a00035ec: 1a00000f bne a0003630 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a00035f0: e1540007 cmp r4, r7 <== NOT EXECUTED a00035f4: da00000d ble a0003630 <== NOT EXECUTED a00035f8: e596303c ldr r3, [r6, #60] ; 0x3c <== NOT EXECUTED a00035fc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); a0003600: e8950006 ldm r5, {r1, r2} a0003604: e1a00006 mov r0, r6 a0003608: e12fff33 blx r3 if ( bytes < 0 ) a000360c: e3500000 cmp r0, #0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003610: e2877001 add r7, r7, #1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) a0003614: aaffffe9 bge a00035c0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003618: e3e08000 mvn r8, #0 <== NOT EXECUTED a000361c: ea000003 b a0003630 <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); a0003620: eb003220 bl a000fea8 <__errno> a0003624: e3a03016 mov r3, #22 a0003628: e5803000 str r3, [r0] a000362c: e3e08000 mvn r8, #0 if (bytes != iov[ v ].iov_len) break; } return total; } a0003630: e1a00008 mov r0, r8 a0003634: 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 ); a0003638: eb00321a bl a000fea8 <__errno> <== NOT EXECUTED a000363c: e3a03009 mov r3, #9 <== NOT EXECUTED a0003640: e5803000 str r3, [r0] <== NOT EXECUTED a0003644: e3e08000 mvn r8, #0 <== NOT EXECUTED a0003648: eafffff8 b a0003630 <== 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 ); a000364c: eb003215 bl a000fea8 <__errno> <== NOT EXECUTED a0003650: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0003654: e5803000 str r3, [r0] <== NOT EXECUTED a0003658: e3e08000 mvn r8, #0 <== NOT EXECUTED a000365c: eafffff3 b a0003630 <== NOT EXECUTED a0003660: a001ce30 .word 0xa001ce30 a0003664: a001fd20 .word 0xa001fd20 a0018744 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0018744: 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())) { a0018748: e59f3118 ldr r3, [pc, #280] ; a0018868 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a001874c: e59f5118 ldr r5, [pc, #280] ; a001886c a0018750: e24dd004 sub sp, sp, #4 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0018754: e5933000 ldr r3, [r3] { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0018758: e5952010 ldr r2, [r5, #16] a001875c: e1a04000 mov r4, r0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0018760: e3530003 cmp r3, #3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0018764: e2822001 add r2, r2, #1 a0018768: e1a06001 mov r6, r1 a001876c: e5852010 str r2, [r5, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0018770: 0a000020 beq a00187f8 } /* * Continue with realloc(). */ if ( !ptr ) a0018774: e3540000 cmp r4, #0 a0018778: 0a00001a beq a00187e8 return malloc( size ); if ( !size ) { a001877c: e3560000 cmp r6, #0 a0018780: 0a00000f beq a00187c4 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { a0018784: e59f70e4 ldr r7, [pc, #228] ; a0018870 a0018788: e1a01004 mov r1, r4 a001878c: e1a0200d mov r2, sp a0018790: e5970000 ldr r0, [r7] a0018794: eb00006c bl a001894c <_Protected_heap_Get_block_size> a0018798: e2508000 subs r8, r0, #0 a001879c: 0a00000c beq a00187d4 #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 ) ) { a00187a0: e5970000 ldr r0, [r7] a00187a4: e1a01004 mov r1, r4 a00187a8: e1a02006 mov r2, r6 a00187ac: eb000077 bl a0018990 <_Protected_heap_Resize_block> a00187b0: e3500000 cmp r0, #0 a00187b4: 0a00001b beq a0018828 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } a00187b8: e1a00004 mov r0, r4 a00187bc: e28dd004 add sp, sp, #4 a00187c0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); a00187c4: e1a00004 mov r0, r4 <== NOT EXECUTED a00187c8: ebffc1f4 bl a0008fa0 <== NOT EXECUTED a00187cc: e1a04006 mov r4, r6 <== NOT EXECUTED return (void *) 0; a00187d0: eafffff8 b a00187b8 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; a00187d4: ebffd3c3 bl a000d6e8 <__errno> a00187d8: e3a03016 mov r3, #22 a00187dc: e5803000 str r3, [r0] a00187e0: e1a04008 mov r4, r8 return (void *) 0; a00187e4: eafffff3 b a00187b8 /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); a00187e8: e1a00006 mov r0, r6 a00187ec: ebffc34a bl a000951c a00187f0: e1a04000 mov r4, r0 a00187f4: eaffffef b a00187b8 /* * 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) a00187f8: e59f3074 ldr r3, [pc, #116] ; a0018874 a00187fc: e5933000 ldr r3, [r3] a0018800: e3530000 cmp r3, #0 a0018804: 0a000001 beq a0018810 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; a0018808: e3a04000 mov r4, #0 a001880c: eaffffe9 b a00187b8 if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) a0018810: e59f3060 ldr r3, [pc, #96] ; a0018878 a0018814: e5933000 ldr r3, [r3] a0018818: e3530000 cmp r3, #0 a001881c: 0affffd4 beq a0018774 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; a0018820: e3a04000 mov r4, #0 <== NOT EXECUTED a0018824: eaffffe3 b a00187b8 <== 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 ); a0018828: e1a00006 mov r0, r6 a001882c: ebffc33a bl a000951c MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ a0018830: e5953004 ldr r3, [r5, #4] if ( !new_area ) { a0018834: e2507000 subs r7, r0, #0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ a0018838: e2433001 sub r3, r3, #1 a001883c: e5853004 str r3, [r5, #4] if ( !new_area ) { a0018840: 0afffff0 beq a0018808 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); a0018844: e59d2000 ldr r2, [sp] a0018848: e1a01004 mov r1, r4 a001884c: e1560002 cmp r6, r2 a0018850: 31a02006 movcc r2, r6 a0018854: ebffd5b1 bl a000df20 free( ptr ); a0018858: e1a00004 mov r0, r4 a001885c: ebffc1cf bl a0008fa0 a0018860: e1a04007 mov r4, r7 return new_area; a0018864: eaffffd3 b a00187b8 a0018868: a001ab50 .word 0xa001ab50 a001886c: a001a838 .word 0xa001a838 a0018870: a0018e1c .word 0xa0018e1c a0018874: a001a9ac .word 0xa001a9ac a0018878: a001aa3c .word 0xa001aa3c a0006a60 : #include int rmdir( const char *pathname ) { a0006a60: e92d40f0 push {r4, r5, r6, r7, lr} a0006a64: e24dd02c sub sp, sp, #44 ; 0x2c a0006a68: e1a05000 mov r5, r0 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); a0006a6c: ebfffa51 bl a00053b8 if ( parentpathlen == 0 ) a0006a70: e2507000 subs r7, r0, #0 a0006a74: 1a000078 bne a0006c5c rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); a0006a78: e5d53000 ldrb r3, [r5] a0006a7c: e353002f cmp r3, #47 ; 0x2f a0006a80: 1353005c cmpne r3, #92 ; 0x5c a0006a84: 1a000047 bne a0006ba8 a0006a88: e59f3268 ldr r3, [pc, #616] ; a0006cf8 a0006a8c: e28d4018 add r4, sp, #24 a0006a90: e3a06000 mov r6, #0 a0006a94: e593c000 ldr ip, [r3] a0006a98: e28cc018 add ip, ip, #24 a0006a9c: e1a0e004 mov lr, r4 a0006aa0: e8bc000f ldm ip!, {r0, r1, r2, r3} a0006aa4: e8ae000f stmia lr!, {r0, r1, r2, r3} a0006aa8: e59c2000 ldr r2, [ip] a0006aac: e58e2000 str r2, [lr] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a0006ab0: e28dc004 add ip, sp, #4 a0006ab4: e1a0e004 mov lr, r4 a0006ab8: e8be000f ldm lr!, {r0, r1, r2, r3} a0006abc: e8ac000f stmia ip!, {r0, r1, r2, r3} a0006ac0: e59e3000 ldr r3, [lr] name = pathname + parentpathlen; a0006ac4: e0855007 add r5, r5, r7 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a0006ac8: e1a00005 mov r0, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a0006acc: e58c3000 str r3, [ip] name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a0006ad0: eb00fa37 bl a00453b4 a0006ad4: e1a01000 mov r1, r0 a0006ad8: e1a00005 mov r0, r5 a0006adc: ebfffa21 bl a0005368 a0006ae0: e0857000 add r7, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a0006ae4: e1a00007 mov r0, r7 a0006ae8: eb00fa31 bl a00453b4 a0006aec: e28d5004 add r5, sp, #4 a0006af0: e3a0c000 mov ip, #0 a0006af4: e1a01000 mov r1, r0 a0006af8: e1a0200c mov r2, ip a0006afc: e1a00007 mov r0, r7 a0006b00: e1a03005 mov r3, r5 a0006b04: e58dc000 str ip, [sp] a0006b08: ebfffa43 bl a000541c 0, &loc, false ); if ( result != 0 ) { a0006b0c: e3500000 cmp r0, #0 a0006b10: 1a000043 bne a0006c24 /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ a0006b14: e59d2010 ldr r2, [sp, #16] a0006b18: e5923010 ldr r3, [r2, #16] a0006b1c: e3530000 cmp r3, #0 a0006b20: 0a000070 beq a0006ce8 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 ){ a0006b24: e1a00005 mov r0, r5 a0006b28: e12fff33 blx r3 a0006b2c: e3500001 cmp r0, #1 a0006b30: 1a000024 bne a0006bc8 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ a0006b34: e59d300c ldr r3, [sp, #12] a0006b38: e5933034 ldr r3, [r3, #52] ; 0x34 a0006b3c: e3530000 cmp r3, #0 a0006b40: 0a000051 beq a0006c8c if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); a0006b44: e1a00004 mov r0, r4 a0006b48: e1a01005 mov r1, r5 a0006b4c: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0006b50: e59d3010 ldr r3, [sp, #16] if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); a0006b54: e1a07000 mov r7, r0 rtems_filesystem_freenode( &loc ); a0006b58: e3530000 cmp r3, #0 a0006b5c: 0a000004 beq a0006b74 a0006b60: e593301c ldr r3, [r3, #28] a0006b64: e3530000 cmp r3, #0 a0006b68: 0a000001 beq a0006b74 a0006b6c: e1a00005 mov r0, r5 a0006b70: e12fff33 blx r3 if ( free_parentloc ) a0006b74: e3560000 cmp r6, #0 a0006b78: 0a000007 beq a0006b9c rtems_filesystem_freenode( &parentloc ); a0006b7c: e59d3024 ldr r3, [sp, #36] ; 0x24 a0006b80: e3530000 cmp r3, #0 a0006b84: 0a000004 beq a0006b9c a0006b88: e593301c ldr r3, [r3, #28] a0006b8c: e3530000 cmp r3, #0 a0006b90: 0a000001 beq a0006b9c a0006b94: e1a00004 mov r0, r4 a0006b98: e12fff33 blx r3 return result; } a0006b9c: e1a00007 mov r0, r7 a0006ba0: e28dd02c add sp, sp, #44 ; 0x2c a0006ba4: e8bd80f0 pop {r4, r5, r6, r7, pc} */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); a0006ba8: e3530000 cmp r3, #0 <== NOT EXECUTED a0006bac: 0affffb5 beq a0006a88 <== NOT EXECUTED a0006bb0: e59f3140 ldr r3, [pc, #320] ; a0006cf8 <== NOT EXECUTED a0006bb4: e28d4018 add r4, sp, #24 <== NOT EXECUTED a0006bb8: e1a06007 mov r6, r7 <== NOT EXECUTED a0006bbc: e593c000 ldr ip, [r3] <== NOT EXECUTED a0006bc0: e28cc004 add ip, ip, #4 <== NOT EXECUTED a0006bc4: eaffffb4 b a0006a9c <== 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 ); a0006bc8: e59d3010 ldr r3, [sp, #16] a0006bcc: e3530000 cmp r3, #0 a0006bd0: 0a000004 beq a0006be8 a0006bd4: e593301c ldr r3, [r3, #28] a0006bd8: e3530000 cmp r3, #0 a0006bdc: 0a000001 beq a0006be8 a0006be0: e1a00005 mov r0, r5 a0006be4: e12fff33 blx r3 if ( free_parentloc ) a0006be8: e3560000 cmp r6, #0 a0006bec: 0a000007 beq a0006c10 rtems_filesystem_freenode( &parentloc ); a0006bf0: e59d3024 ldr r3, [sp, #36] ; 0x24 a0006bf4: e3530000 cmp r3, #0 a0006bf8: 0a000004 beq a0006c10 a0006bfc: e593301c ldr r3, [r3, #28] a0006c00: e3530000 cmp r3, #0 a0006c04: 0a000001 beq a0006c10 a0006c08: e1a00004 mov r0, r4 a0006c0c: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); a0006c10: eb00df5c bl a003e988 <__errno> a0006c14: e3a03014 mov r3, #20 a0006c18: e5803000 str r3, [r0] a0006c1c: e3e07000 mvn r7, #0 a0006c20: eaffffdd b a0006b9c 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 ) a0006c24: e3560000 cmp r6, #0 a0006c28: 1a000001 bne a0006c34 result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); a0006c2c: e3e07000 mvn r7, #0 a0006c30: eaffffd9 b a0006b9c result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); a0006c34: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0006c38: e3530000 cmp r3, #0 <== NOT EXECUTED a0006c3c: 0afffffa beq a0006c2c <== NOT EXECUTED a0006c40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0006c44: e3530000 cmp r3, #0 <== NOT EXECUTED a0006c48: 0afffff7 beq a0006c2c <== NOT EXECUTED a0006c4c: e1a00004 mov r0, r4 <== NOT EXECUTED a0006c50: e12fff33 blx r3 <== NOT EXECUTED a0006c54: e3e07000 mvn r7, #0 <== NOT EXECUTED a0006c58: eaffffcf b a0006b9c <== 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, a0006c5c: e28d4018 add r4, sp, #24 a0006c60: e3a0c000 mov ip, #0 a0006c64: e1a00005 mov r0, r5 a0006c68: e1a01007 mov r1, r7 a0006c6c: e3a02002 mov r2, #2 a0006c70: e1a03004 mov r3, r4 a0006c74: e58dc000 str ip, [sp] a0006c78: ebfffa21 bl a0005504 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) a0006c7c: e3500000 cmp r0, #0 a0006c80: 1affffe9 bne a0006c2c a0006c84: e3a06001 mov r6, #1 a0006c88: eaffff88 b a0006ab0 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); a0006c8c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0006c90: e3530000 cmp r3, #0 <== NOT EXECUTED a0006c94: 0a000004 beq a0006cac <== NOT EXECUTED a0006c98: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0006c9c: e3530000 cmp r3, #0 <== NOT EXECUTED a0006ca0: 0a000001 beq a0006cac <== NOT EXECUTED a0006ca4: e1a00005 mov r0, r5 <== NOT EXECUTED a0006ca8: e12fff33 blx r3 <== NOT EXECUTED if ( free_parentloc ) a0006cac: e3560000 cmp r6, #0 <== NOT EXECUTED a0006cb0: 0a000007 beq a0006cd4 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); a0006cb4: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0006cb8: e3530000 cmp r3, #0 <== NOT EXECUTED a0006cbc: 0a000004 beq a0006cd4 <== NOT EXECUTED a0006cc0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0006cc4: e3530000 cmp r3, #0 <== NOT EXECUTED a0006cc8: 0a000001 beq a0006cd4 <== NOT EXECUTED a0006ccc: e1a00004 mov r0, r4 <== NOT EXECUTED a0006cd0: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0006cd4: eb00df2b bl a003e988 <__errno> <== NOT EXECUTED a0006cd8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0006cdc: e5803000 str r3, [r0] <== NOT EXECUTED a0006ce0: e3e07000 mvn r7, #0 <== NOT EXECUTED a0006ce4: eaffffac b a0006b9c <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); a0006ce8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0006cec: e3530000 cmp r3, #0 <== NOT EXECUTED a0006cf0: 1affffeb bne a0006ca4 <== NOT EXECUTED a0006cf4: eaffffec b a0006cac <== NOT EXECUTED a0006cf8: a0058c2c .word 0xa0058c2c a00135a8 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } a00135a8: e59f0000 ldr r0, [pc, #0] ; a00135b0 <== NOT EXECUTED a00135ac: e12fff1e bx lr <== NOT EXECUTED a00135b0: a00230c0 .word 0xa00230c0 a000faf0 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a000faf0: e92d4010 push {r4, lr} a000faf4: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); a000faf8: eb000006 bl a000fb18 if (nap) a000fafc: e3500000 cmp r0, #0 a000fb00: 0a000001 beq a000fb0c return nap->name; return rtems_assoc_name_bad(local_value); } a000fb04: e5900000 ldr r0, [r0] a000fb08: 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); a000fb0c: e1a00004 mov r0, r4 <== NOT EXECUTED } a000fb10: 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); a000fb14: ea000ea3 b a00135a8 <== NOT EXECUTED a000d650 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a000d650: e92d4030 push {r4, r5, lr} a000d654: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a000d658: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a000d65c: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a000d660: e3500000 cmp r0, #0 a000d664: 01a04000 moveq r4, r0 a000d668: 0a000013 beq a000d6bc a000d66c: e59f105c ldr r1, [pc, #92] ; a000d6d0 a000d670: eb000345 bl a000e38c a000d674: e3500000 cmp r0, #0 a000d678: 13a02000 movne r2, #0 a000d67c: 1a00000b bne a000d6b0 default_ap = ap++; for ( ; ap->name; ap++) a000d680: e594200c ldr r2, [r4, #12] <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; a000d684: e284300c add r3, r4, #12 <== NOT EXECUTED for ( ; ap->name; ap++) a000d688: e3520000 cmp r2, #0 <== NOT EXECUTED a000d68c: 0a00000a beq a000d6bc <== NOT EXECUTED a000d690: e1a02004 mov r2, r4 <== NOT EXECUTED a000d694: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->local_value == local_value) a000d698: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a000d69c: e1530005 cmp r3, r5 <== NOT EXECUTED a000d6a0: 0a000005 beq a000d6bc <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) a000d6a4: e5b4300c ldr r3, [r4, #12]! a000d6a8: e3530000 cmp r3, #0 a000d6ac: 0a000004 beq a000d6c4 if (ap->local_value == local_value) a000d6b0: e5943004 ldr r3, [r4, #4] a000d6b4: e1530005 cmp r3, r5 a000d6b8: 1afffff9 bne a000d6a4 return ap; return default_ap; } a000d6bc: e1a00004 mov r0, r4 a000d6c0: 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++) a000d6c4: e1a04002 mov r4, r2 if (ap->local_value == local_value) return ap; return default_ap; } a000d6c8: e1a00004 mov r0, r4 a000d6cc: e8bd8030 pop {r4, r5, pc} a000d6d0: a001a310 .word 0xa001a310 a000bf7c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { a000bf7c: e92d4030 push {r4, r5, lr} a000bf80: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a000bf84: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { a000bf88: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a000bf8c: e3500000 cmp r0, #0 a000bf90: 01a04000 moveq r4, r0 a000bf94: 0a000013 beq a000bfe8 a000bf98: e59f105c ldr r1, [pc, #92] ; a000bffc a000bf9c: eb0008fa bl a000e38c a000bfa0: e3500000 cmp r0, #0 a000bfa4: 13a02000 movne r2, #0 a000bfa8: 1a00000b bne a000bfdc default_ap = ap++; for ( ; ap->name; ap++) a000bfac: e594200c ldr r2, [r4, #12] <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; a000bfb0: e284300c add r3, r4, #12 <== NOT EXECUTED for ( ; ap->name; ap++) a000bfb4: e3520000 cmp r2, #0 <== NOT EXECUTED a000bfb8: 0a00000a beq a000bfe8 <== NOT EXECUTED a000bfbc: e1a02004 mov r2, r4 <== NOT EXECUTED a000bfc0: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->remote_value == remote_value) a000bfc4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000bfc8: e1530005 cmp r3, r5 <== NOT EXECUTED a000bfcc: 0a000005 beq a000bfe8 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) a000bfd0: e5b4300c ldr r3, [r4, #12]! a000bfd4: e3530000 cmp r3, #0 a000bfd8: 0a000004 beq a000bff0 if (ap->remote_value == remote_value) a000bfdc: e5943008 ldr r3, [r4, #8] a000bfe0: e1530005 cmp r3, r5 a000bfe4: 1afffff9 bne a000bfd0 return ap; return default_ap; } a000bfe8: e1a00004 mov r0, r4 a000bfec: 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++) a000bff0: e1a04002 mov r4, r2 if (ap->remote_value == remote_value) return ap; return default_ap; } a000bff4: e1a00004 mov r0, r4 a000bff8: e8bd8030 pop {r4, r5, pc} a000bffc: a001a310 .word 0xa001a310 a000cd94 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a000cd94: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); a000cd98: eb00022c bl a000d650 <== NOT EXECUTED if (nap) a000cd9c: e3500000 cmp r0, #0 <== NOT EXECUTED return nap->remote_value; a000cda0: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } a000cda4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0001350 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { a0001350: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a0001354: e1a05000 mov r5, r0 <== NOT EXECUTED a0001358: e1a04001 mov r4, r1 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); a000135c: ebffffc2 bl a000126c <== NOT EXECUTED if ( !p ) a0001360: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0001364: 1a000002 bne a0001374 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; a0001368: e3a04000 mov r4, #0 <== NOT EXECUTED } a000136c: e1a00004 mov r0, r4 <== NOT EXECUTED a0001370: 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)]; a0001374: e1a00005 mov r0, r5 <== NOT EXECUTED a0001378: eb003503 bl a000e78c <== NOT EXECUTED if ( *rhs != '=' ) a000137c: e7d63000 ldrb r3, [r6, r0] <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; a0001380: e0866000 add r6, r6, r0 <== NOT EXECUTED if ( *rhs != '=' ) a0001384: e353003d cmp r3, #61 ; 0x3d <== NOT EXECUTED a0001388: 1afffff6 bne a0001368 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) a000138c: e5d63001 ldrb r3, [r6, #1] <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; a0001390: e2866001 add r6, r6, #1 <== NOT EXECUTED if ( *rhs == '\"' ) a0001394: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED rhs++; a0001398: 05f63001 ldrbeq r3, [r6, #1]! <== NOT EXECUTED for ( d=value ; *rhs ; ) a000139c: e3530000 cmp r3, #0 <== NOT EXECUTED a00013a0: 01a02004 moveq r2, r4 <== NOT EXECUTED a00013a4: 0a000004 beq a00013bc <== NOT EXECUTED a00013a8: e1a02004 mov r2, r4 <== NOT EXECUTED *d++ = *rhs++; a00013ac: e4c23001 strb r3, [r2], #1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) a00013b0: e5f63001 ldrb r3, [r6, #1]! <== NOT EXECUTED a00013b4: e3530000 cmp r3, #0 <== NOT EXECUTED a00013b8: 1afffffb bne a00013ac <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) a00013bc: e5523001 ldrb r3, [r2, #-1] <== NOT EXECUTED d--; *d = '\0'; return value; } a00013c0: e1a00004 mov r0, r4 <== NOT EXECUTED rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) *d++ = *rhs++; if ( *(d-1) == '\"' ) a00013c4: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a00013c8: 02422001 subeq r2, r2, #1 <== NOT EXECUTED d--; *d = '\0'; a00013cc: e3a03000 mov r3, #0 <== NOT EXECUTED a00013d0: e5c23000 strb r3, [r2] <== NOT EXECUTED return value; } a00013d4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a000cd68 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { a000cd68: e92d4010 push {r4, lr} <== NOT EXECUTED a000cd6c: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) a000cd70: e59f0018 ldr r0, [pc, #24] ; a000cd90 <== NOT EXECUTED a000cd74: eb000006 bl a000cd94 <== NOT EXECUTED a000cd78: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000cd7c: 0a000001 beq a000cd88 <== NOT EXECUTED { errno = rc; a000cd80: eb000258 bl a000d6e8 <__errno> <== NOT EXECUTED a000cd84: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } a000cd88: e3e00000 mvn r0, #0 <== NOT EXECUTED a000cd8c: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000cd90: a0019b38 .word 0xa0019b38 a000647c : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { a000647c: e92d000e push {r1, r2, r3} <== NOT EXECUTED a0006480: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0006484: e24dd004 sub sp, sp, #4 <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); a0006488: e28d300c add r3, sp, #12 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); a000648c: e1a02003 mov r2, r3 <== NOT EXECUTED a0006490: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); a0006494: e58d3000 str r3, [sp] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); a0006498: ebffff79 bl a0006284 <== NOT EXECUTED va_end(arglist); return chars_written; } a000649c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00064a0: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED a00064a4: e28dd00c add sp, sp, #12 <== NOT EXECUTED a00064a8: e12fff1e bx lr <== NOT EXECUTED a00012ac : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { a00012ac: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Verify Input parameters. */ if ( !pathname ) a00012b0: e2505000 subs r5, r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { a00012b4: e1a08001 mov r8, r1 a00012b8: e1a07002 mov r7, r2 a00012bc: e1a0c003 mov ip, r3 a00012c0: e59d9024 ldr r9, [sp, #36] ; 0x24 /* * Verify Input parameters. */ if ( !pathname ) a00012c4: 0a000024 beq a000135c rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) a00012c8: e3530000 cmp r3, #0 a00012cc: 0a00001d beq a0001348 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); a00012d0: e5d53000 ldrb r3, [r5] a00012d4: e353002f cmp r3, #47 ; 0x2f a00012d8: 1353005c cmpne r3, #92 ; 0x5c a00012dc: 13a06000 movne r6, #0 a00012e0: 03a06001 moveq r6, #1 a00012e4: 1a000010 bne a000132c a00012e8: e59f307c ldr r3, [pc, #124] ; a000136c a00012ec: e3a06001 mov r6, #1 a00012f0: e1a0a006 mov sl, r6 a00012f4: e5934000 ldr r4, [r3] a00012f8: e2844018 add r4, r4, #24 a00012fc: e1a0b00c mov fp, ip a0001300: e8b4000f ldm r4!, {r0, r1, r2, r3} a0001304: e8ab000f stmia fp!, {r0, r1, r2, r3} a0001308: e5942000 ldr r2, [r4] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], a000130c: e0850006 add r0, r5, r6 a0001310: e06a1008 rsb r1, sl, r8 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); a0001314: e58b2000 str r2, [fp] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], a0001318: e1a0300c mov r3, ip a000131c: e1a02007 mov r2, r7 a0001320: e58d9024 str r9, [sp, #36] ; 0x24 pathnamelen - i, flags, pathloc, follow_link ); } a0001324: e8bd4ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, lr} rtems_filesystem_get_start_loc( pathname, &i, pathloc ); /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], a0001328: eaffffa5 b a00011c4 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); a000132c: e3530000 cmp r3, #0 a0001330: 0affffec beq a00012e8 a0001334: e59f3030 ldr r3, [pc, #48] ; a000136c a0001338: e1a0a006 mov sl, r6 a000133c: e5934000 ldr r4, [r3] a0001340: e2844004 add r4, r4, #4 a0001344: eaffffec b a00012fc if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ a0001348: eb0030e6 bl a000d6e8 <__errno> <== NOT EXECUTED a000134c: e3a03005 mov r3, #5 <== NOT EXECUTED a0001350: e5803000 str r3, [r0] <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } a0001354: e3e00000 mvn r0, #0 a0001358: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); a000135c: eb0030e1 bl a000d6e8 <__errno> a0001360: e3a0300e mov r3, #14 a0001364: e5803000 str r3, [r0] a0001368: eafffff9 b a0001354 a000136c: a0018fe8 .word 0xa0018fe8 a00011c4 : /* * Verify Input parameters. */ if ( !pathname ) a00011c4: e3500000 cmp r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { a00011c8: e92d4030 push {r4, r5, lr} a00011cc: e1a05002 mov r5, r2 a00011d0: e1a04003 mov r4, r3 /* * Verify Input parameters. */ if ( !pathname ) a00011d4: 0a00002a beq a0001284 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) a00011d8: e3530000 cmp r3, #0 a00011dc: 0a00002d beq a0001298 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) a00011e0: e593c00c ldr ip, [r3, #12] a00011e4: e59cc000 ldr ip, [ip] a00011e8: e35c0000 cmp ip, #0 a00011ec: 0a00001f beq a0001270 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); a00011f0: e12fff3c blx ip /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { a00011f4: e59d200c ldr r2, [sp, #12] a00011f8: e2703001 rsbs r3, r0, #1 a00011fc: 33a03000 movcc r3, #0 a0001200: e3520000 cmp r2, #0 a0001204: 03a03000 moveq r3, #0 a0001208: e3530000 cmp r3, #0 a000120c: 0a000011 beq a0001258 if ( !pathloc->ops->node_type_h ){ a0001210: e594200c ldr r2, [r4, #12] a0001214: e5923010 ldr r3, [r2, #16] a0001218: e3530000 cmp r3, #0 a000121c: 0a00000e beq a000125c rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); a0001220: e1a00004 mov r0, r4 a0001224: e12fff33 blx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || a0001228: e2400003 sub r0, r0, #3 a000122c: e3500001 cmp r0, #1 a0001230: 9a000001 bls a000123c a0001234: e3a00000 mov r0, #0 a0001238: e8bd8030 pop {r4, r5, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ a000123c: e594200c ldr r2, [r4, #12] a0001240: e5923034 ldr r3, [r2, #52] ; 0x34 a0001244: e3530000 cmp r3, #0 a0001248: 0a000003 beq a000125c * 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 ); a000124c: e1a00004 mov r0, r4 a0001250: e1a01005 mov r1, r5 a0001254: e12fff33 blx r3 } } return result; } a0001258: 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 ); a000125c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0001260: e3530000 cmp r3, #0 <== NOT EXECUTED a0001264: 0a000001 beq a0001270 <== NOT EXECUTED a0001268: e1a00004 mov r0, r4 <== NOT EXECUTED a000126c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0001270: eb00311c bl a000d6e8 <__errno> <== NOT EXECUTED a0001274: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0001278: e5803000 str r3, [r0] <== NOT EXECUTED a000127c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0001280: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); a0001284: eb003117 bl a000d6e8 <__errno> <== NOT EXECUTED a0001288: e3a0300e mov r3, #14 <== NOT EXECUTED a000128c: e5803000 str r3, [r0] <== NOT EXECUTED a0001290: e3e00000 mvn r0, #0 <== NOT EXECUTED a0001294: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ a0001298: eb003112 bl a000d6e8 <__errno> <== NOT EXECUTED a000129c: e3a03005 mov r3, #5 <== NOT EXECUTED a00012a0: e5803000 str r3, [r0] <== NOT EXECUTED a00012a4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00012a8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0000fdc : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { a0000fdc: e92d40f0 push {r4, r5, r6, r7, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; a0000fe0: e59f6108 ldr r6, [pc, #264] ; a00010f0 a0000fe4: e3a02012 mov r2, #18 * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { a0000fe8: e24dd01c sub sp, sp, #28 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; a0000fec: e5963000 ldr r3, [r6] a0000ff0: e583202c str r2, [r3, #44] ; 0x2c init_fs_mount_table(); a0000ff4: eb0001ac bl a00016ac /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) a0000ff8: e59f30f4 ldr r3, [pc, #244] ; a00010f4 a0000ffc: e5933000 ldr r3, [r3] a0001000: e3530000 cmp r3, #0 a0001004: 0a000033 beq a00010d8 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; a0001008: e59f30e8 ldr r3, [pc, #232] ; a00010f8 status = mount( a000100c: e28d0018 add r0, sp, #24 */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; a0001010: e593c000 ldr ip, [r3] status = mount( a0001014: e89c100e ldm ip, {r1, r2, r3, ip} a0001018: e58dc000 str ip, [sp] a000101c: eb0001a9 bl a00016c8 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) a0001020: e3700001 cmn r0, #1 a0001024: 0a00002f beq a00010e8 rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; a0001028: 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; a000102c: 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; a0001030: e3a05000 mov r5, #0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; a0001034: e287c018 add ip, r7, #24 a0001038: e28ee01c add lr, lr, #28 a000103c: e8be000f ldm lr!, {r0, r1, r2, r3} a0001040: e8ac000f stmia ip!, {r0, r1, r2, r3} a0001044: e59e3000 ldr r3, [lr] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0001048: e28d4004 add r4, sp, #4 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; a000104c: e1c753b0 strh r5, [r7, #48] ; 0x30 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; a0001050: e58c3000 str r3, [ip] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0001054: e3a01001 mov r1, #1 a0001058: e1a03004 mov r3, r4 a000105c: e1a02005 mov r2, r5 a0001060: e59f0094 ldr r0, [pc, #148] ; a00010fc a0001064: e58d5000 str r5, [sp] a0001068: eb00008f bl a00012ac rtems_filesystem_root = loc; a000106c: e596c000 ldr ip, [r6] a0001070: e1a07004 mov r7, r4 a0001074: e8b7000f ldm r7!, {r0, r1, r2, r3} a0001078: e28cc018 add ip, ip, #24 a000107c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0001080: e5973000 ldr r3, [r7] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0001084: e1a02005 mov r2, r5 a0001088: e3a01001 mov r1, #1 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; a000108c: e58c3000 str r3, [ip] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0001090: e59f0064 ldr r0, [pc, #100] ; a00010fc a0001094: e1a03004 mov r3, r4 a0001098: e58d5000 str r5, [sp] a000109c: eb000082 bl a00012ac rtems_filesystem_current = loc; a00010a0: e8b4000f ldm r4!, {r0, r1, r2, r3} a00010a4: e596c000 ldr ip, [r6] a00010a8: e28cc004 add ip, ip, #4 a00010ac: e8ac000f stmia ip!, {r0, r1, r2, r3} a00010b0: 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); a00010b4: e3a01f7f mov r1, #508 ; 0x1fc a00010b8: e2811003 add r1, r1, #3 /* 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; a00010bc: 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); a00010c0: e59f0038 ldr r0, [pc, #56] ; a0001100 a00010c4: eb000125 bl a0001560 if ( status != 0 ) a00010c8: e1500005 cmp r0, r5 a00010cc: 1a000003 bne a00010e0 * 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. */ } a00010d0: e28dd01c add sp, sp, #28 a00010d4: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); a00010d8: e59f0024 ldr r0, [pc, #36] ; a0001104 <== NOT EXECUTED a00010dc: eb000eed bl a0004c98 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); a00010e0: e59f0020 ldr r0, [pc, #32] ; a0001108 <== NOT EXECUTED a00010e4: eb000eeb bl a0004c98 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); a00010e8: e59f001c ldr r0, [pc, #28] ; a000110c <== NOT EXECUTED a00010ec: eb000ee9 bl a0004c98 <== NOT EXECUTED a00010f0: a0018fe8 .word 0xa0018fe8 a00010f4: a00195a0 .word 0xa00195a0 a00010f8: a0018e18 .word 0xa0018e18 a00010fc: a001a020 .word 0xa001a020 a0001100: a001a028 .word 0xa001a028 a0001104: abcd0001 .word 0xabcd0001 a0001108: abcd0003 .word 0xabcd0003 a000110c: abcd0002 .word 0xabcd0002 a0008da0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ a0008da0: e5903000 ldr r3, [r0] <== NOT EXECUTED a0008da4: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } a0008da8: e1530000 cmp r3, r0 <== NOT EXECUTED a0008dac: 13a00000 movne r0, #0 <== NOT EXECUTED a0008db0: 03a00001 moveq r0, #1 <== NOT EXECUTED a0008db4: e12fff1e bx lr <== NOT EXECUTED a0001110 : { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) a0001110: e5d02000 ldrb r2, [r0] int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { a0001114: e1a03000 mov r3, r0 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) a0001118: e3510000 cmp r1, #0 a000111c: 13520000 cmpne r2, #0 a0001120: 0a00000c beq a0001158 a0001124: e352002f cmp r2, #47 ; 0x2f a0001128: 1352005c cmpne r2, #92 ; 0x5c a000112c: 1a000009 bne a0001158 a0001130: e3a00000 mov r0, #0 { pathname++; pathnamelen--; stripped++; a0001134: e2800001 add r0, r0, #1 { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) a0001138: e7d32000 ldrb r2, [r3, r0] a000113c: e1510000 cmp r1, r0 a0001140: 13520000 cmpne r2, #0 a0001144: 012fff1e bxeq lr a0001148: e352002f cmp r2, #47 ; 0x2f a000114c: 1352005c cmpne r2, #92 ; 0x5c a0001150: 0afffff7 beq a0001134 a0001154: e12fff1e bx lr a0001158: e3a00000 mov r0, #0 <== NOT EXECUTED pathname++; pathnamelen--; stripped++; } return stripped; } a000115c: e12fff1e bx lr <== NOT EXECUTED a0000e9c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { a0000e9c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a0000ea0: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0000ea4: e1a06001 mov r6, r1 <== NOT EXECUTED a0000ea8: 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 ); a0000eac: eb0035fe bl a000e6ac <== NOT EXECUTED a0000eb0: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0000eb4: e1a01000 mov r1, r0 <== NOT EXECUTED a0000eb8: e3a02000 mov r2, #0 <== NOT EXECUTED a0000ebc: e1a03004 mov r3, r4 <== NOT EXECUTED a0000ec0: e3a0c001 mov ip, #1 <== NOT EXECUTED a0000ec4: e1a00005 mov r0, r5 <== NOT EXECUTED a0000ec8: e58dc000 str ip, [sp] <== NOT EXECUTED a0000ecc: eb0000f6 bl a00012ac <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { a0000ed0: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); a0000ed4: e1a07000 mov r7, r0 <== NOT EXECUTED the_jnode = loc.node_access; a0000ed8: e59d8004 ldr r8, [sp, #4] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { a0000edc: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED a0000ee0: e3530000 cmp r3, #0 <== NOT EXECUTED a0000ee4: 0a000011 beq a0000f30 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); a0000ee8: e1a00004 mov r0, r4 <== NOT EXECUTED a0000eec: e12fff33 blx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { a0000ef0: e3570000 cmp r7, #0 <== NOT EXECUTED a0000ef4: 03500002 cmpeq r0, #2 <== NOT EXECUTED a0000ef8: 03a07000 moveq r7, #0 <== NOT EXECUTED a0000efc: 13a07001 movne r7, #1 <== NOT EXECUTED a0000f00: 0a000014 beq a0000f58 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0000f04: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0000f08: e3530000 cmp r3, #0 <== NOT EXECUTED a0000f0c: 0a000023 beq a0000fa0 <== NOT EXECUTED a0000f10: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0000f14: e3530000 cmp r3, #0 <== NOT EXECUTED a0000f18: 0a000020 beq a0000fa0 <== NOT EXECUTED a0000f1c: e1a00004 mov r0, r4 <== NOT EXECUTED a0000f20: e12fff33 blx r3 <== NOT EXECUTED a0000f24: e3a0000d mov r0, #13 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } a0000f28: e28dd018 add sp, sp, #24 <== NOT EXECUTED a0000f2c: 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 ); a0000f30: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0000f34: e3530000 cmp r3, #0 <== NOT EXECUTED a0000f38: 0a000001 beq a0000f44 <== NOT EXECUTED a0000f3c: e1a00004 mov r0, r4 <== NOT EXECUTED a0000f40: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0000f44: eb0031e7 bl a000d6e8 <__errno> <== NOT EXECUTED a0000f48: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0000f4c: e5803000 str r3, [r0] <== NOT EXECUTED a0000f50: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000f54: eafffff3 b a0000f28 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; a0000f58: e5865000 str r5, [r6] <== NOT EXECUTED device_info->device_name_length = strlen( name ); a0000f5c: e1a00005 mov r0, r5 <== NOT EXECUTED a0000f60: eb0035d1 bl a000e6ac <== NOT EXECUTED a0000f64: e5860004 str r0, [r6, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; a0000f68: e5982050 ldr r2, [r8, #80] ; 0x50 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); a0000f6c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; a0000f70: e5862008 str r2, [r6, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; a0000f74: e5982054 ldr r2, [r8, #84] ; 0x54 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0000f78: 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; a0000f7c: e586200c str r2, [r6, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0000f80: 0a000008 beq a0000fa8 <== NOT EXECUTED a0000f84: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0000f88: e3530000 cmp r3, #0 <== NOT EXECUTED a0000f8c: 0a000005 beq a0000fa8 <== NOT EXECUTED a0000f90: e1a00004 mov r0, r4 <== NOT EXECUTED a0000f94: e12fff33 blx r3 <== NOT EXECUTED a0000f98: e1a00007 mov r0, r7 <== NOT EXECUTED a0000f9c: eaffffe1 b a0000f28 <== NOT EXECUTED a0000fa0: e3a0000d mov r0, #13 <== NOT EXECUTED a0000fa4: eaffffdf b a0000f28 <== NOT EXECUTED a0000fa8: e3a00000 mov r0, #0 <== NOT EXECUTED a0000fac: eaffffdd b a0000f28 <== NOT EXECUTED a0006958 : 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 ) { a0006958: e92d4010 push {r4, lr} a000695c: e1a04000 mov r4, r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) a0006960: e59f0148 ldr r0, [pc, #328] ; a0006ab0 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; a0006964: e59f3148 ldr r3, [pc, #328] ; a0006ab4 if ( rtems_interrupt_is_in_progress() ) a0006968: e5900000 ldr r0, [r0] a000696c: e3500000 cmp r0, #0 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; a0006970: e5930000 ldr r0, [r3] if ( rtems_interrupt_is_in_progress() ) a0006974: 1a000032 bne a0006a44 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) a0006978: e3520000 cmp r2, #0 a000697c: 0a000040 beq a0006a84 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) a0006980: e3510000 cmp r1, #0 if ( registered_major == NULL ) return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; a0006984: e5820000 str r0, [r2] if ( driver_table == NULL ) a0006988: 0a00003d beq a0006a84 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000698c: e591c000 ldr ip, [r1] a0006990: e35c0000 cmp ip, #0 a0006994: 0a000037 beq a0006a78 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) a0006998: e1500004 cmp r0, r4 a000699c: 9a000026 bls a0006a3c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a00069a0: e59f0110 ldr r0, [pc, #272] ; a0006ab8 a00069a4: e590c000 ldr ip, [r0] a00069a8: e28cc001 add ip, ip, #1 a00069ac: e580c000 str ip, [r0] return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { a00069b0: e3540000 cmp r4, #0 a00069b4: 1a000024 bne a0006a4c static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; a00069b8: e593c000 ldr ip, [r3] rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { a00069bc: e35c0000 cmp ip, #0 a00069c0: 0a000031 beq a0006a8c a00069c4: e59f30f0 ldr r3, [pc, #240] ; a0006abc a00069c8: e593e000 ldr lr, [r3] a00069cc: e1a0300e mov r3, lr a00069d0: ea000003 b a00069e4 a00069d4: e2844001 add r4, r4, #1 a00069d8: e15c0004 cmp ip, r4 a00069dc: e2833018 add r3, r3, #24 a00069e0: 9a000005 bls a00069fc static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a00069e4: e5930000 ldr r0, [r3] a00069e8: e3500000 cmp r0, #0 a00069ec: 1afffff8 bne a00069d4 a00069f0: e5930004 ldr r0, [r3, #4] a00069f4: e3500000 cmp r0, #0 a00069f8: 1afffff5 bne a00069d4 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) a00069fc: e15c0004 cmp ip, r4 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; a0006a00: e5824000 str r4, [r2] if ( m != n ) a0006a04: 0a000021 beq a0006a90 a0006a08: e3a03018 mov r3, #24 a0006a0c: e02ce493 mla ip, r3, r4, lr } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; a0006a10: e1a0e001 mov lr, r1 a0006a14: e8be000f ldm lr!, {r0, r1, r2, r3} a0006a18: e8ac000f stmia ip!, {r0, r1, r2, r3} a0006a1c: e89e0003 ldm lr, {r0, r1} a0006a20: e88c0003 stm ip, {r0, r1} _Thread_Enable_dispatch(); a0006a24: eb0006ae bl a00084e4 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); a0006a28: e3a01000 mov r1, #0 a0006a2c: e1a00004 mov r0, r4 a0006a30: e1a02001 mov r2, r1 } a0006a34: e8bd4010 pop {r4, lr} _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); a0006a38: ea0023e5 b a000f9d4 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) a0006a3c: e3a0000a mov r0, #10 a0006a40: e8bd8010 pop {r4, pc} rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) a0006a44: e3a00012 mov r0, #18 a0006a48: e8bd8010 pop {r4, pc} _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; a0006a4c: e3a00018 mov r0, #24 a0006a50: e0030490 mul r3, r0, r4 a0006a54: e59f0060 ldr r0, [pc, #96] ; a0006abc a0006a58: e590c000 ldr ip, [r0] static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a0006a5c: e79c0003 ldr r0, [ip, r3] _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; a0006a60: e08cc003 add ip, ip, r3 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a0006a64: e3500000 cmp r0, #0 a0006a68: 0a00000b beq a0006a9c 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(); a0006a6c: eb00069c bl a00084e4 <_Thread_Enable_dispatch> a0006a70: e3a0000c mov r0, #12 return RTEMS_RESOURCE_IN_USE; a0006a74: 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; a0006a78: e591c004 ldr ip, [r1, #4] a0006a7c: e35c0000 cmp ip, #0 a0006a80: 1affffc4 bne a0006998 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); a0006a84: e3a00009 mov r0, #9 } a0006a88: e8bd8010 pop {r4, pc} if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; a0006a8c: 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(); a0006a90: eb000693 bl a00084e4 <_Thread_Enable_dispatch> a0006a94: e3a00005 mov r0, #5 return sc; a0006a98: 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; a0006a9c: e59c3004 ldr r3, [ip, #4] a0006aa0: e3530000 cmp r3, #0 a0006aa4: 1afffff0 bne a0006a6c if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; a0006aa8: e5824000 str r4, [r2] a0006aac: eaffffd7 b a0006a10 a0006ab0: a00209dc .word 0xa00209dc a0006ab4: a0021248 .word 0xa0021248 a0006ab8: a002094c .word 0xa002094c a0006abc: a002124c .word 0xa002124c a0001394 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { a0001394: e92d4010 push {r4, lr} rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) a0001398: e59f40b4 ldr r4, [pc, #180] ; a0001454 * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { a000139c: e24dd004 sub sp, sp, #4 rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) a00013a0: e5940000 ldr r0, [r4] a00013a4: e3500000 cmp r0, #0 a00013a8: 0a000016 beq a0001408 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, a00013ac: e3a01040 mov r1, #64 ; 0x40 a00013b0: eb001ebf bl a0008eb4 a00013b4: e59f309c ldr r3, [pc, #156] ; a0001458 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) a00013b8: 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, a00013bc: e1a02000 mov r2, r0 a00013c0: e5830000 str r0, [r3] sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) a00013c4: 0a000020 beq a000144c 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++) a00013c8: 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; a00013cc: e59f3088 ldr r3, [pc, #136] ; a000145c for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) a00013d0: 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; a00013d4: e5830000 str r0, [r3] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) a00013d8: 9a000008 bls a0001400 a00013dc: e2803040 add r3, r0, #64 ; 0x40 a00013e0: e3a02001 mov r2, #1 iop->data1 = iop + 1; a00013e4: 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++) a00013e8: e1520001 cmp r2, r1 iop->data1 = iop + 1; a00013ec: e503300c str r3, [r3, #-12] a00013f0: 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++) a00013f4: 1afffffa bne a00013e4 a00013f8: e2422001 sub r2, r2, #1 a00013fc: e0802302 add r2, r0, r2, lsl #6 iop->data1 = iop + 1; iop->data1 = NULL; a0001400: e3a03000 mov r3, #0 a0001404: e5823034 str r3, [r2, #52] ; 0x34 /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( a0001408: e59fc050 ldr ip, [pc, #80] ; a0001460 a000140c: e59f0050 ldr r0, [pc, #80] ; a0001464 a0001410: e3a01001 mov r1, #1 a0001414: e3a02054 mov r2, #84 ; 0x54 a0001418: e3a03000 mov r3, #0 a000141c: e58dc000 str ip, [sp] a0001420: eb000be0 bl a00043a8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) a0001424: e3500000 cmp r0, #0 a0001428: 1a000006 bne a0001448 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) a000142c: e59f3034 ldr r3, [pc, #52] ; a0001468 a0001430: e5933000 ldr r3, [r3] a0001434: e3530000 cmp r3, #0 a0001438: 0a000000 beq a0001440 (* rtems_fs_init_helper)(); a000143c: e12fff33 blx r3 } a0001440: e28dd004 add sp, sp, #4 a0001444: 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 ); a0001448: eb000e12 bl a0004c98 <== 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); a000144c: e280001a add r0, r0, #26 <== NOT EXECUTED a0001450: eb000e10 bl a0004c98 <== NOT EXECUTED a0001454: a0018e10 .word 0xa0018e10 a0001458: a001a82c .word 0xa001a82c a000145c: a001a830 .word 0xa001a830 a0001460: a001a834 .word 0xa001a834 a0001464: 4c42494f .word 0x4c42494f a0001468: a0018e0c .word 0xa0018e0c a0026afc : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { a0026afc: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); a0026b00: e3a00000 mov r0, #0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { a0026b04: 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); a0026b08: e1a01000 mov r1, r0 a0026b0c: e28d2018 add r2, sp, #24 a0026b10: eb0006a5 bl a00285ac if (sc != RTEMS_SUCCESSFUL) return sc; a0026b14: e2508000 subs r8, r0, #0 a0026b18: 1a00002e bne a0026bd8 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { a0026b1c: e59f60fc ldr r6, [pc, #252] ; a0026c20 a0026b20: e59f30fc ldr r3, [pc, #252] ; a0026c24 a0026b24: e5964000 ldr r4, [r6] a0026b28: e1540003 cmp r4, r3 a0026b2c: 0a00002c beq a0026be4 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ a0026b30: e59f10ec ldr r1, [pc, #236] ; a0026c24 a0026b34: e3a02048 mov r2, #72 ; 0x48 a0026b38: e1a00004 mov r0, r4 a0026b3c: eb006bc2 bl a0041a4c rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a0026b40: e59f30e0 ldr r3, [pc, #224] ; a0026c28 } 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*/ a0026b44: e1a0c004 mov ip, 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); a0026b48: e3a05000 mov r5, #0 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a0026b4c: 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*/ a0026b50: e59d3018 ldr r3, [sp, #24] * 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); a0026b54: 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; a0026b58: 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*/ a0026b5c: e48c3018 str r3, [ip], #24 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a0026b60: e8be000f ldm lr!, {r0, r1, r2, r3} a0026b64: e8ac000f stmia ip!, {r0, r1, r2, r3} a0026b68: 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); a0026b6c: e3a01001 mov r1, #1 a0026b70: e1a02005 mov r2, r5 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a0026b74: 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); a0026b78: e59f00ac ldr r0, [pc, #172] ; a0026c2c a0026b7c: e1a03004 mov r3, r4 a0026b80: e58d5000 str r5, [sp] a0026b84: ebff7a5e bl a0005504 rtems_filesystem_root = loc; a0026b88: e596c000 ldr ip, [r6] a0026b8c: e1a07004 mov r7, r4 a0026b90: e8b7000f ldm r7!, {r0, r1, r2, r3} a0026b94: e28cc018 add ip, ip, #24 a0026b98: e8ac000f stmia ip!, {r0, r1, r2, r3} a0026b9c: e5973000 ldr r3, [r7] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0026ba0: e3a01001 mov r1, #1 a0026ba4: e1a02005 mov r2, r5 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; a0026ba8: e58c3000 str r3, [ip] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0026bac: e59f0078 ldr r0, [pc, #120] ; a0026c2c a0026bb0: e1a03004 mov r3, r4 a0026bb4: e58d5000 str r5, [sp] a0026bb8: ebff7a51 bl a0005504 rtems_filesystem_current = loc; a0026bbc: e8b4000f ldm r4!, {r0, r1, r2, r3} a0026bc0: e596c000 ldr ip, [r6] a0026bc4: e1a08005 mov r8, r5 a0026bc8: e28cc004 add ip, ip, #4 a0026bcc: e8ac000f stmia ip!, {r0, r1, r2, r3} a0026bd0: e5973000 ldr r3, [r7] a0026bd4: e58c3000 str r3, [ip] return RTEMS_SUCCESSFUL; } a0026bd8: e1a00008 mov r0, r8 a0026bdc: e28dd01c add sp, sp, #28 a0026be0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); a0026be4: e3a00048 mov r0, #72 ; 0x48 a0026be8: ebff7c1d bl a0005c64 if (!tmp) a0026bec: e2504000 subs r4, r0, #0 a0026bf0: 03a0801a moveq r8, #26 a0026bf4: 0afffff7 beq a0026bd8 #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); a0026bf8: e1a00008 mov r0, r8 a0026bfc: e1a01006 mov r1, r6 a0026c00: e59f2028 ldr r2, [pc, #40] ; a0026c30 a0026c04: eb00076f bl a00289c8 if (sc != RTEMS_SUCCESSFUL) { a0026c08: e2508000 subs r8, r0, #0 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; a0026c0c: 05864000 streq r4, [r6] #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); if (sc != RTEMS_SUCCESSFUL) { a0026c10: 0affffc6 beq a0026b30 /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); a0026c14: e1a00004 mov r0, r4 <== NOT EXECUTED a0026c18: ebff7a6a bl a00055c8 <== NOT EXECUTED return sc; a0026c1c: eaffffed b a0026bd8 <== NOT EXECUTED a0026c20: a0058c2c .word 0xa0058c2c a0026c24: a00676c8 .word 0xa00676c8 a0026c28: a00676b0 .word 0xa00676b0 a0026c2c: a005d6d8 .word 0xa005d6d8 a0026c30: a00269e4 .word 0xa00269e4 a0026a4c : * 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) { a0026a4c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a0026a50: e1a05000 mov r5, r0 <== NOT EXECUTED a0026a54: 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); a0026a58: e3a00000 mov r0, #0 <== NOT EXECUTED a0026a5c: e1a01000 mov r1, r0 <== NOT EXECUTED a0026a60: e1a0200d mov r2, sp <== NOT EXECUTED a0026a64: eb0006d0 bl a00285ac <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; a0026a68: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0026a6c: 1a00000d bne a0026aa8 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { a0026a70: e59f4078 ldr r4, [pc, #120] ; a0026af0 <== NOT EXECUTED a0026a74: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0026a78: e5946000 ldr r6, [r4] <== NOT EXECUTED a0026a7c: e5962000 ldr r2, [r6] <== NOT EXECUTED a0026a80: e1520003 cmp r2, r3 <== NOT EXECUTED a0026a84: 0a00000a beq a0026ab4 <== 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, a0026a88: e1a00005 mov r0, r5 <== NOT EXECUTED a0026a8c: e59f105c ldr r1, [pc, #92] ; a0026af0 <== NOT EXECUTED a0026a90: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0026a94: eb00081e bl a0028b14 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) a0026a98: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0026a9c: 0a00000b beq a0026ad0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; a0026aa0: e59f204c ldr r2, [pc, #76] ; a0026af4 <== NOT EXECUTED a0026aa4: e5842000 str r2, [r4] <== NOT EXECUTED return sc; } a0026aa8: e1a00003 mov r0, r3 <== NOT EXECUTED a0026aac: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0026ab0: 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); a0026ab4: e1a01004 mov r1, r4 <== NOT EXECUTED a0026ab8: eb0007ef bl a0028a7c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; a0026abc: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0026ac0: 1afffff8 bne a0026aa8 <== NOT EXECUTED free_user_env(tmp); a0026ac4: e1a00006 mov r0, r6 <== NOT EXECUTED a0026ac8: ebffffc5 bl a00269e4 <== NOT EXECUTED a0026acc: eaffffed b a0026a88 <== 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); a0026ad0: e59f1018 ldr r1, [pc, #24] ; a0026af0 <== NOT EXECUTED a0026ad4: e59f201c ldr r2, [pc, #28] ; a0026af8 <== NOT EXECUTED a0026ad8: eb0007ba bl a00289c8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) a0026adc: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0026ae0: 1affffee bne a0026aa0 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; a0026ae4: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a0026ae8: e5842000 str r2, [r4] <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; a0026aec: eaffffed b a0026aa8 <== NOT EXECUTED a0026af0: a0058c2c .word 0xa0058c2c a0026af4: a00676c8 .word 0xa00676c8 a0026af8: a00269e4 .word 0xa00269e4 a0005d68 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { a0005d68: e92d4800 push {fp, lr} <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { a0005d6c: e59f3040 ldr r3, [pc, #64] ; a0005db4 <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { a0005d70: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0005d74: e1a01000 mov r1, r0 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { a0005d78: e1a0200d mov r2, sp <== NOT EXECUTED a0005d7c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0005d80: eb0016d1 bl a000b8cc <_Protected_heap_Get_block_size> <== NOT EXECUTED a0005d84: e3500000 cmp r0, #0 <== NOT EXECUTED a0005d88: 0a000007 beq a0005dac <== NOT EXECUTED MSBUMP(lifetime_freed, size); a0005d8c: e59f3024 ldr r3, [pc, #36] ; a0005db8 <== NOT EXECUTED a0005d90: e59d0000 ldr r0, [sp] <== NOT EXECUTED a0005d94: e283c024 add ip, r3, #36 ; 0x24 <== NOT EXECUTED a0005d98: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a0005d9c: e09b1000 adds r1, fp, r0 <== NOT EXECUTED a0005da0: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED a0005da4: e5831024 str r1, [r3, #36] ; 0x24 <== NOT EXECUTED a0005da8: e5832028 str r2, [r3, #40] ; 0x28 <== NOT EXECUTED } } a0005dac: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0005db0: e8bd8800 pop {fp, pc} <== NOT EXECUTED a0005db4: a0058920 .word 0xa0058920 a0005db8: a0067684 .word 0xa0067684 a0005dbc : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { a0005dbc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) a0005dc0: e2501000 subs r1, r0, #0 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { a0005dc4: 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 ) a0005dc8: 0a000013 beq a0005e1c <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); a0005dcc: e59f3050 ldr r3, [pc, #80] ; a0005e24 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; a0005dd0: e28d2004 add r2, sp, #4 <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); a0005dd4: e5930000 ldr r0, [r3] <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; a0005dd8: e3a03000 mov r3, #0 <== NOT EXECUTED a0005ddc: 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); a0005de0: e1a0200d mov r2, sp <== NOT EXECUTED a0005de4: eb0016b8 bl a000b8cc <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); a0005de8: e59f3038 ldr r3, [pc, #56] ; a0005e28 <== NOT EXECUTED a0005dec: e59d6000 ldr r6, [sp] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); a0005df0: 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); a0005df4: e283501c add r5, r3, #28 <== NOT EXECUTED a0005df8: e8950030 ldm r5, {r4, r5} <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) a0005dfc: e593c018 ldr ip, [r3, #24] <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); a0005e00: e0941006 adds r1, r4, r6 <== NOT EXECUTED a0005e04: e2a52000 adc r2, r5, #0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); a0005e08: e0600001 rsb r0, r0, r1 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); a0005e0c: e583101c str r1, [r3, #28] <== NOT EXECUTED a0005e10: e5832020 str r2, [r3, #32] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) a0005e14: e150000c cmp r0, ip <== NOT EXECUTED s->max_depth = current_depth; a0005e18: 85830018 strhi r0, [r3, #24] <== NOT EXECUTED } a0005e1c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0005e20: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0005e24: a0058920 .word 0xa0058920 a0005e28: a0067684 .word 0xa0067684 a0005e2c : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); a0005e2c: e59f1038 ldr r1, [pc, #56] ; a0005e6c <== NOT EXECUTED a0005e30: e3a02000 mov r2, #0 <== NOT EXECUTED a0005e34: e1a03001 mov r3, r1 <== NOT EXECUTED a0005e38: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e3c: e2833004 add r3, r3, #4 <== NOT EXECUTED a0005e40: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e44: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e48: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e4c: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e50: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e54: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e58: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e5c: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0005e60: e5832000 str r2, [r3] <== NOT EXECUTED a0005e64: e5812004 str r2, [r1, #4] <== NOT EXECUTED } a0005e68: e12fff1e bx lr <== NOT EXECUTED a0005e6c: a0067684 .word 0xa0067684 a000e734 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { a000e734: e92d4070 push {r4, r5, r6, lr} void *return_this; /* * Parameter error checks */ if ( !pointer ) a000e738: e2504000 subs r4, r0, #0 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { a000e73c: e1a05001 mov r5, r1 a000e740: e1a06002 mov r6, r2 void *return_this; /* * Parameter error checks */ if ( !pointer ) a000e744: 0a00001b beq a000e7b8 return EINVAL; *pointer = NULL; a000e748: e3a03000 mov r3, #0 a000e74c: e5843000 str r3, [r4] /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && a000e750: e59f3070 ldr r3, [pc, #112] ; a000e7c8 a000e754: e5933000 ldr r3, [r3] a000e758: e3530003 cmp r3, #3 a000e75c: 0a000012 beq a000e7ac /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); a000e760: ebffd12b bl a0002c14 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); a000e764: e59f3060 ldr r3, [pc, #96] ; a000e7cc a000e768: e1a02005 mov r2, r5 a000e76c: e1a01006 mov r1, r6 a000e770: e5930000 ldr r0, [r3] a000e774: e3a03000 mov r3, #0 a000e778: ebffe589 bl a0007da4 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) a000e77c: e2505000 subs r5, r0, #0 a000e780: 0a00000e beq a000e7c0 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) a000e784: e59f3044 ldr r3, [pc, #68] ; a000e7d0 a000e788: e5933000 ldr r3, [r3] a000e78c: e3530000 cmp r3, #0 a000e790: 0a000002 beq a000e7a0 (*rtems_malloc_statistics_helpers->at_malloc)(pointer); a000e794: e1a00004 mov r0, r4 <== NOT EXECUTED a000e798: e1a0e00f mov lr, pc <== NOT EXECUTED a000e79c: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; a000e7a0: e5845000 str r5, [r4] a000e7a4: e3a00000 mov r0, #0 return 0; a000e7a8: e8bd8070 pop {r4, r5, r6, pc} *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && a000e7ac: ebffd101 bl a0002bb8 a000e7b0: e3500000 cmp r0, #0 a000e7b4: 1affffe9 bne a000e760 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; a000e7b8: e3a00016 mov r0, #22 } a000e7bc: e8bd8070 pop {r4, r5, r6, pc} return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) a000e7c0: e3a0000c mov r0, #12 a000e7c4: e8bd8070 pop {r4, r5, r6, pc} a000e7c8: a0020af0 .word 0xa0020af0 a000e7cc: a001e9ac .word 0xa001e9ac a000e7d0: a00204c8 .word 0xa00204c8 a0006448 : void rtems_panic( const char *printf_format, ... ) { a0006448: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED a000644c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0006450: e24dd004 sub sp, sp, #4 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); a0006454: e28d300c add r3, sp, #12 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); a0006458: e1a02003 mov r2, r3 <== NOT EXECUTED a000645c: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a0006460: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); a0006464: e58d3000 str r3, [sp] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); a0006468: ebffff85 bl a0006284 <== NOT EXECUTED va_end(arglist); } a000646c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0006470: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED a0006474: e28dd010 add sp, sp, #16 <== NOT EXECUTED a0006478: e12fff1e bx lr <== NOT EXECUTED a000b29c : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { if (!rtems_pipe_configured) a000b29c: e59f3058 ldr r3, [pc, #88] ; a000b2fc /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { a000b2a0: e52de004 push {lr} ; (str lr, [sp, #-4]!) if (!rtems_pipe_configured) a000b2a4: e5d33000 ldrb r3, [r3] /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { a000b2a8: e24dd004 sub sp, sp, #4 if (!rtems_pipe_configured) a000b2ac: e3530000 cmp r3, #0 a000b2b0: 0a000003 beq a000b2c4 return; if (rtems_pipe_semaphore) a000b2b4: e59fc044 ldr ip, [pc, #68] ; a000b300 <== NOT EXECUTED a000b2b8: e59c3000 ldr r3, [ip] <== NOT EXECUTED a000b2bc: e3530000 cmp r3, #0 <== NOT EXECUTED a000b2c0: 0a000001 beq a000b2cc <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } a000b2c4: e28dd004 add sp, sp, #4 a000b2c8: e8bd8000 pop {pc} if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( a000b2cc: e59f0030 ldr r0, [pc, #48] ; a000b304 <== NOT EXECUTED a000b2d0: e3a01001 mov r1, #1 <== NOT EXECUTED a000b2d4: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED a000b2d8: e58dc000 str ip, [sp] <== NOT EXECUTED a000b2dc: ebffe431 bl a00043a8 <== 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) a000b2e0: e3500000 cmp r0, #0 <== NOT EXECUTED a000b2e4: 1a000003 bne a000b2f8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); a000b2e8: ebffe326 bl a0003f88 <== NOT EXECUTED rtems_pipe_no = now; a000b2ec: e59f3014 ldr r3, [pc, #20] ; a000b308 <== NOT EXECUTED a000b2f0: e1c300b0 strh r0, [r3] <== NOT EXECUTED a000b2f4: eafffff2 b a000b2c4 <== 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); a000b2f8: ebffe666 bl a0004c98 <== NOT EXECUTED a000b2fc: a001a5c4 .word 0xa001a5c4 a000b300: a001a7ac .word 0xa001a7ac a000b304: 50495045 .word 0x50495045 a000b308: a001a7b2 .word 0xa001a7b2 a0003bb8 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { a0003bb8: e92d4830 push {r4, r5, fp, lr} Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; a0003bbc: e59f407c ldr r4, [pc, #124] ; a0003c40 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { a0003bc0: e28db00c add fp, sp, #12 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; a0003bc4: e5943000 ldr r3, [r4] ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { a0003bc8: e59300c8 ldr r0, [r3, #200] ; 0xc8 a0003bcc: e15b0000 cmp fp, r0 a0003bd0: 33a05000 movcc r5, #0 a0003bd4: 3a000004 bcc a0003bec } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) a0003bd8: e59350c4 ldr r5, [r3, #196] ; 0xc4 a0003bdc: e0805005 add r5, r0, r5 a0003be0: e15b0005 cmp fp, r5 a0003be4: 83a05000 movhi r5, #0 a0003be8: 93a05001 movls r5, #1 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { a0003bec: e59f3050 ldr r3, [pc, #80] ; a0003c44 a0003bf0: e5933000 ldr r3, [r3] a0003bf4: e3530000 cmp r3, #0 a0003bf8: 03a01001 moveq r1, #1 a0003bfc: 0a000005 beq a0003c18 pattern_ok = (!memcmp( a0003c00: e59f1040 ldr r1, [pc, #64] ; a0003c48 a0003c04: e2800008 add r0, r0, #8 a0003c08: e3a02010 mov r2, #16 a0003c0c: eb00f764 bl a00419a4 a0003c10: e2701001 rsbs r1, r0, #1 a0003c14: 33a01000 movcc r1, #0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) a0003c18: e3550000 cmp r5, #0 a0003c1c: 0a000001 beq a0003c28 a0003c20: e3510000 cmp r1, #0 a0003c24: 1a000003 bne a0003c38 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); a0003c28: e5940000 ldr r0, [r4] <== NOT EXECUTED a0003c2c: ebffffb4 bl a0003b04 <== NOT EXECUTED a0003c30: e3a00001 mov r0, #1 <== NOT EXECUTED return true; } a0003c34: e8bd8830 pop {r4, r5, fp, pc} <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) a0003c38: e3a00000 mov r0, #0 a0003c3c: e8bd8830 pop {r4, r5, fp, pc} a0003c40: a00678a0 .word 0xa00678a0 a0003c44: a0064b7c .word 0xa0064b7c a0003c48: a0067654 .word 0xa0067654 a0003af4 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); a0003af4: e59f1004 ldr r1, [pc, #4] ; a0003b00 <== NOT EXECUTED a0003af8: e3a00000 mov r0, #0 <== NOT EXECUTED a0003afc: eaffffe5 b a0003a98 <== NOT EXECUTED a0003b00: a0006814 .word 0xa0006814 a0003a98 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { a0003a98: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED print_context = context; a0003a9c: e59f4040 ldr r4, [pc, #64] ; a0003ae4 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { a0003aa0: e1a05001 mov r5, r1 <== NOT EXECUTED a0003aa4: e1a06000 mov r6, r0 <== NOT EXECUTED print_context = context; print_handler = print; a0003aa8: 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; a0003aac: e5840008 str r0, [r4, #8] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); a0003ab0: e59f1030 ldr r1, [pc, #48] ; a0003ae8 <== NOT EXECUTED a0003ab4: e12fff35 blx r5 <== NOT EXECUTED (*print)( context, a0003ab8: e59f102c ldr r1, [pc, #44] ; a0003aec <== NOT EXECUTED a0003abc: e1a00006 mov r0, r6 <== NOT EXECUTED a0003ac0: e12fff35 blx r5 <== NOT EXECUTED " ID NAME LOW HIGH CURRENT AVAILABLE USED\n" ); /* iterate over all threads and dump the usage */ rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage ); a0003ac4: e59f0024 ldr r0, [pc, #36] ; a0003af0 <== NOT EXECUTED a0003ac8: eb001d30 bl a000af90 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); a0003acc: e3e00000 mvn r0, #0 <== NOT EXECUTED a0003ad0: ebffffa1 bl a000395c <== NOT EXECUTED print_context = NULL; a0003ad4: e3a03000 mov r3, #0 <== NOT EXECUTED print_handler = NULL; a0003ad8: 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; a0003adc: e5843008 str r3, [r4, #8] <== NOT EXECUTED print_handler = NULL; } a0003ae0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0003ae4: a0064b7c .word 0xa0064b7c a0003ae8: a005d4e8 .word 0xa005d4e8 a0003aec: a005d500 .word 0xa005d500 a0003af0: a000395c .word 0xa000395c a0003c4c : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { a0003c4c: 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; a0003c50: e59030c8 ldr r3, [r0, #200] ; 0xc8 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { a0003c54: e28db008 add fp, sp, #8 a0003c58: e1a04000 mov r4, r0 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { a0003c5c: e15b0003 cmp fp, r3 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; a0003c60: e2830008 add r0, r3, #8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { a0003c64: 3a000003 bcc a0003c78 void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; a0003c68: e59420c4 ldr r2, [r4, #196] ; 0xc4 a0003c6c: e0833002 add r3, r3, r2 a0003c70: e15b0003 cmp fp, r3 a0003c74: 9a000007 bls a0003c98 /* * 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, a0003c78: e59f1034 ldr r1, [pc, #52] ; a0003cb4 <== NOT EXECUTED a0003c7c: e3a02010 mov r2, #16 <== NOT EXECUTED a0003c80: eb00f747 bl a00419a4 <== NOT EXECUTED a0003c84: e2701001 rsbs r1, r0, #1 <== NOT EXECUTED a0003c88: 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 ); a0003c8c: e1a00004 mov r0, r4 } } a0003c90: 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 ); a0003c94: eaffff9a b a0003b04 /* * 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, a0003c98: e59f1014 ldr r1, [pc, #20] ; a0003cb4 a0003c9c: e3a02010 mov r2, #16 a0003ca0: eb00f73f bl a00419a4 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { a0003ca4: e3500000 cmp r0, #0 a0003ca8: 13a01000 movne r1, #0 a0003cac: 1afffff6 bne a0003c8c a0003cb0: e8bd8810 pop {r4, fp, pc} a0003cb4: a0067654 .word 0xa0067654 a000ae80 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000ae80: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000ae84: e2514000 subs r4, r1, #0 <== NOT EXECUTED #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000ae88: e1a07000 mov r7, r0 <== NOT EXECUTED a000ae8c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000ae90: e1a08002 mov r8, r2 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000ae94: 03a00009 moveq r0, #9 <== NOT EXECUTED a000ae98: 0a00001a beq a000af08 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; a000ae9c: eb000dd2 bl a000e5ec <__errno> <== NOT EXECUTED a000aea0: e3a03000 mov r3, #0 <== NOT EXECUTED a000aea4: e5803000 str r3, [r0] <== NOT EXECUTED *n = 0; a000aea8: e3a02000 mov r2, #0 <== NOT EXECUTED a000aeac: e3a03000 mov r3, #0 <== NOT EXECUTED a000aeb0: e884000c stm r4, {r2, r3} <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000aeb4: e1a00007 mov r0, r7 <== NOT EXECUTED a000aeb8: e1a0100d mov r1, sp <== NOT EXECUTED a000aebc: eb001941 bl a00113c8 <== 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 ) a000aec0: e3580000 cmp r8, #0 <== NOT EXECUTED *endptr = end; a000aec4: 159d3000 ldrne r3, [sp] <== NOT EXECUTED a000aec8: 059d3000 ldreq r3, [sp] <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000aecc: e1a05000 mov r5, r0 <== NOT EXECUTED result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; a000aed0: 15883000 strne r3, [r8] <== NOT EXECUTED /* nothing was converted */ if ( end == s ) a000aed4: e1530007 cmp r3, r7 <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000aed8: 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 ) a000aedc: 03a0000b moveq r0, #11 <== NOT EXECUTED a000aee0: 0a000008 beq a000af08 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) a000aee4: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000aee8: e1a00005 mov r0, r5 <== NOT EXECUTED a000aeec: e2422601 sub r2, r2, #1048576 ; 0x100000 <== NOT EXECUTED a000aef0: e3e03000 mvn r3, #0 <== NOT EXECUTED a000aef4: ebffdfa3 bl a0002d88 <__gedf2> <== NOT EXECUTED a000aef8: e3500000 cmp r0, #0 <== NOT EXECUTED a000aefc: ca000003 bgt a000af10 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; a000af00: e8840060 stm r4, {r5, r6} <== NOT EXECUTED a000af04: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a000af08: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000af0c: 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)) a000af10: eb000db5 bl a000e5ec <__errno> <== NOT EXECUTED a000af14: e5903000 ldr r3, [r0] <== NOT EXECUTED a000af18: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000af1c: 03a0000a moveq r0, #10 <== NOT EXECUTED a000af20: 1afffff6 bne a000af00 <== NOT EXECUTED a000af24: eafffff7 b a000af08 <== NOT EXECUTED a000af28 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000af28: e92d40f0 push {r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000af2c: e2515000 subs r5, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000af30: e1a04000 mov r4, r0 a000af34: e24dd004 sub sp, sp, #4 a000af38: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000af3c: 03a00009 moveq r0, #9 a000af40: 0a000017 beq a000afa4 return RTEMS_INVALID_ADDRESS; errno = 0; a000af44: eb000da8 bl a000e5ec <__errno> a000af48: e3a03000 mov r3, #0 a000af4c: e5803000 str r3, [r0] *n = 0; a000af50: e3a03000 mov r3, #0 a000af54: e5853000 str r3, [r5] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000af58: e1a00004 mov r0, r4 a000af5c: e1a0100d mov r1, sp a000af60: eb001905 bl a001137c #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 ) a000af64: e3560000 cmp r6, #0 *endptr = end; a000af68: 159d3000 ldrne r3, [sp] a000af6c: 059d3000 ldreq r3, [sp] errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000af70: e1a07000 mov r7, r0 result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; a000af74: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) a000af78: e1530004 cmp r3, r4 a000af7c: 03a0000b moveq r0, #11 a000af80: 0a000007 beq a000afa4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) a000af84: e3e01102 mvn r1, #-2147483648 ; 0x80000000 a000af88: e1a00007 mov r0, r7 a000af8c: e2411502 sub r1, r1, #8388608 ; 0x800000 a000af90: ebffdfc7 bl a0002eb4 <__gesf2> a000af94: e3500000 cmp r0, #0 a000af98: ca000003 bgt a000afac /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; a000af9c: e5857000 str r7, [r5] a000afa0: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } a000afa4: e28dd004 add sp, sp, #4 a000afa8: 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)) a000afac: eb000d8e bl a000e5ec <__errno> <== NOT EXECUTED a000afb0: e5903000 ldr r3, [r0] <== NOT EXECUTED a000afb4: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000afb8: 03a0000a moveq r0, #10 <== NOT EXECUTED a000afbc: 1afffff6 bne a000af9c <== NOT EXECUTED a000afc0: eafffff7 b a000afa4 <== NOT EXECUTED a001c78c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a001c78c: e92d40f0 push {r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a001c790: e2515000 subs r5, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a001c794: e1a04000 mov r4, r0 a001c798: e24dd004 sub sp, sp, #4 a001c79c: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a001c7a0: 03a00009 moveq r0, #9 a001c7a4: 0a000013 beq a001c7f8 return RTEMS_INVALID_ADDRESS; errno = 0; a001c7a8: eb008876 bl a003e988 <__errno> a001c7ac: e3a03000 mov r3, #0 a001c7b0: e5803000 str r3, [r0] *n = 0; a001c7b4: 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 ); a001c7b8: e1a00004 mov r0, r4 a001c7bc: e1a0100d mov r1, sp a001c7c0: e3a02010 mov r2, #16 a001c7c4: eb00a816 bl a0046824 #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 ) a001c7c8: e3560000 cmp r6, #0 *endptr = end; a001c7cc: 159d3000 ldrne r3, [sp] a001c7d0: 059d3000 ldreq r3, [sp] *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); a001c7d4: e1a07000 mov r7, r0 result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; a001c7d8: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) a001c7dc: e1530004 cmp r3, r4 a001c7e0: 03a0000b moveq r0, #11 a001c7e4: 0a000003 beq a001c7f8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) a001c7e8: e3770001 cmn r7, #1 a001c7ec: 0a000003 beq a001c800 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; a001c7f0: e5857000 str r7, [r5] a001c7f4: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } a001c7f8: e28dd004 add sp, sp, #4 a001c7fc: 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)) a001c800: eb008860 bl a003e988 <__errno> <== NOT EXECUTED a001c804: e5903000 ldr r3, [r0] <== NOT EXECUTED a001c808: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a001c80c: 03a0000a moveq r0, #10 <== NOT EXECUTED a001c810: 1afffff6 bne a001c7f0 <== NOT EXECUTED a001c814: eafffff7 b a001c7f8 <== NOT EXECUTED a0003550 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003550: e3500009 cmp r0, #9 a0003554: 012fff1e bxeq lr a0003558: da000013 ble a00035ac a000355c: e350000e cmp r0, #14 <== NOT EXECUTED a0003560: 012fff1e bxeq lr <== NOT EXECUTED a0003564: da00001b ble a00035d8 <== NOT EXECUTED a0003568: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED a000356c: e2833002 add r3, r3, #2 <== NOT EXECUTED a0003570: 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; a0003574: 03a00011 moveq r0, #17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003578: 012fff1e bxeq lr <== NOT EXECUTED a000357c: da000028 ble a0003624 <== NOT EXECUTED a0003580: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED a0003584: e2833003 add r3, r3, #3 <== NOT EXECUTED a0003588: 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; a000358c: 03a00012 moveq r0, #18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003590: 012fff1e bxeq lr <== NOT EXECUTED a0003594: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED a0003598: e2833004 add r3, r3, #4 <== NOT EXECUTED a000359c: e1500003 cmp r0, r3 <== NOT EXECUTED a00035a0: 1a00001d bne a000361c <== 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; a00035a4: e3a00013 mov r0, #19 <== NOT EXECUTED case B460800: baud_index = 19; break; a00035a8: e12fff1e bx lr <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a00035ac: e3500004 cmp r0, #4 a00035b0: 012fff1e bxeq lr a00035b4: ca000010 bgt a00035fc a00035b8: e3500001 cmp r0, #1 a00035bc: 012fff1e bxeq lr a00035c0: da00001f ble a0003644 a00035c4: e3500002 cmp r0, #2 <== NOT EXECUTED a00035c8: 012fff1e bxeq lr <== NOT EXECUTED a00035cc: e3500003 cmp r0, #3 <== NOT EXECUTED a00035d0: 1a000011 bne a000361c <== NOT EXECUTED a00035d4: e12fff1e bx lr <== NOT EXECUTED a00035d8: e350000b cmp r0, #11 <== NOT EXECUTED a00035dc: 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; a00035e0: b3a0000a movlt r0, #10 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a00035e4: b12fff1e bxlt lr <== NOT EXECUTED a00035e8: e350000c cmp r0, #12 <== NOT EXECUTED a00035ec: 012fff1e bxeq lr <== NOT EXECUTED a00035f0: e350000d cmp r0, #13 <== NOT EXECUTED a00035f4: 1a000008 bne a000361c <== NOT EXECUTED a00035f8: e12fff1e bx lr <== NOT EXECUTED a00035fc: e3500006 cmp r0, #6 <== NOT EXECUTED a0003600: 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; a0003604: b3a00005 movlt r0, #5 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003608: b12fff1e bxlt lr <== NOT EXECUTED a000360c: e3500007 cmp r0, #7 <== NOT EXECUTED a0003610: 012fff1e bxeq lr <== NOT EXECUTED a0003614: e3500008 cmp r0, #8 <== NOT EXECUTED a0003618: 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; a000361c: e3e00000 mvn r0, #0 default: baud_index = -1; break; } return baud_index; } a0003620: e12fff1e bx lr rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003624: e350000f cmp r0, #15 <== NOT EXECUTED a0003628: 012fff1e bxeq lr <== NOT EXECUTED a000362c: e3a03a01 mov r3, #4096 ; 0x1000 <== NOT EXECUTED a0003630: e2833001 add r3, r3, #1 <== NOT EXECUTED a0003634: e1500003 cmp r0, r3 <== NOT EXECUTED a0003638: 1afffff7 bne a000361c <== 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; a000363c: e3a00010 mov r0, #16 <== NOT EXECUTED case B57600: baud_index = 16; break; a0003640: e12fff1e bx lr <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003644: e3500000 cmp r0, #0 a0003648: 012fff1e bxeq lr a000364c: eafffff2 b a000361c a0001f4c : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; a0001f4c: e59f3008 ldr r3, [pc, #8] ; a0001f5c <== NOT EXECUTED a0001f50: 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; } a0001f54: e3a00000 mov r0, #0 <== NOT EXECUTED a0001f58: e12fff1e bx lr <== NOT EXECUTED a0001f5c: a0018fd4 .word 0xa0018fd4 a00034a8 : } } rtems_status_code rtems_termios_close (void *arg) { a00034a8: 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); a00034ac: e59f51ac ldr r5, [pc, #428] ; a0003660 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a00034b0: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a00034b4: e3a01000 mov r1, #0 } } rtems_status_code rtems_termios_close (void *arg) { a00034b8: 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); a00034bc: e1a02001 mov r2, r1 a00034c0: 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; a00034c4: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a00034c8: eb000451 bl a0004614 if (sc != RTEMS_SUCCESSFUL) a00034cc: e3500000 cmp r0, #0 a00034d0: 1a00005e bne a0003650 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { a00034d4: e5943008 ldr r3, [r4, #8] a00034d8: e2433001 sub r3, r3, #1 a00034dc: e3530000 cmp r3, #0 a00034e0: e5843008 str r3, [r4, #8] a00034e4: 1a00002e bne a00035a4 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { a00034e8: e59420cc ldr r2, [r4, #204] ; 0xcc a00034ec: e59f3170 ldr r3, [pc, #368] ; a0003664 a00034f0: e0833282 add r3, r3, r2, lsl #5 a00034f4: e5931004 ldr r1, [r3, #4] a00034f8: e3510000 cmp r1, #0 a00034fc: 0a00003f beq a0003600 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); a0003500: e1a00004 mov r0, r4 <== NOT EXECUTED a0003504: e12fff31 blx r1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts a0003508: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a000350c: e3530002 cmp r3, #2 <== NOT EXECUTED a0003510: 0a000044 beq a0003628 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) a0003514: e594309c ldr r3, [r4, #156] ; 0x9c a0003518: e3530000 cmp r3, #0 a000351c: 0a000003 beq a0003530 (*tty->device.lastClose)(tty->major, tty->minor, arg); a0003520: e1a02006 mov r2, r6 a0003524: e594000c ldr r0, [r4, #12] a0003528: e5941010 ldr r1, [r4, #16] a000352c: e12fff33 blx r3 if (tty->forw == NULL) { a0003530: e5943000 ldr r3, [r4] a0003534: e3530000 cmp r3, #0 a0003538: 0a000020 beq a00035c0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; a000353c: e5942004 ldr r2, [r4, #4] a0003540: e5832004 str r2, [r3, #4] } if (tty->back == NULL) { a0003544: e5942004 ldr r2, [r4, #4] a0003548: e3520000 cmp r2, #0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; a000354c: 15823000 strne r3, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { a0003550: 0a000025 beq a00035ec } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); a0003554: e5940014 ldr r0, [r4, #20] a0003558: eb000404 bl a0004570 rtems_semaphore_delete (tty->osem); a000355c: e5940018 ldr r0, [r4, #24] a0003560: eb000402 bl a0004570 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); a0003564: e594008c ldr r0, [r4, #140] ; 0x8c a0003568: eb000400 bl a0004570 if ((tty->device.pollRead == NULL) || a000356c: e59430a0 ldr r3, [r4, #160] ; 0xa0 a0003570: e3530000 cmp r3, #0 a0003574: 0a00000e beq a00035b4 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) a0003578: e59430b4 ldr r3, [r4, #180] ; 0xb4 a000357c: e3530002 cmp r3, #2 a0003580: 0a00000b beq a00035b4 rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); a0003584: e5940058 ldr r0, [r4, #88] ; 0x58 a0003588: eb001684 bl a0008fa0 free (tty->rawOutBuf.theBuf); a000358c: e594007c ldr r0, [r4, #124] ; 0x7c a0003590: eb001682 bl a0008fa0 free (tty->cbuf); a0003594: e594001c ldr r0, [r4, #28] a0003598: eb001680 bl a0008fa0 free (tty); a000359c: e1a00004 mov r0, r4 a00035a0: eb00167e bl a0008fa0 } rtems_semaphore_release (rtems_termios_ttyMutex); a00035a4: e5950000 ldr r0, [r5] a00035a8: eb000461 bl a0004734 return RTEMS_SUCCESSFUL; } a00035ac: e3a00000 mov r0, #0 a00035b0: 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); a00035b4: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED a00035b8: eb0003ec bl a0004570 <== NOT EXECUTED a00035bc: eafffff0 b a0003584 <== 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; a00035c0: e5942004 ldr r2, [r4, #4] a00035c4: e59f109c ldr r1, [pc, #156] ; a0003668 if ( rtems_termios_ttyTail != NULL ) { a00035c8: 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; a00035cc: e5812000 str r2, [r1] if ( rtems_termios_ttyTail != NULL ) { a00035d0: 0a00001f beq a0003654 rtems_termios_ttyTail->forw = NULL; a00035d4: e5823000 str r3, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { a00035d8: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a00035dc: e5943000 ldr r3, [r4] <== NOT EXECUTED a00035e0: e3520000 cmp r2, #0 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; a00035e4: 15823000 strne r3, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { a00035e8: 1affffd9 bne a0003554 <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; a00035ec: e59f1078 ldr r1, [pc, #120] ; a000366c if ( rtems_termios_ttyHead != NULL ) { a00035f0: e3530000 cmp r3, #0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; a00035f4: e5813000 str r3, [r1] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; a00035f8: 15832004 strne r2, [r3, #4] a00035fc: eaffffd4 b a0003554 } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0003600: e5940018 ldr r0, [r4, #24] a0003604: e1a02001 mov r2, r1 a0003608: eb000401 bl a0004614 if (sc != RTEMS_SUCCESSFUL) { a000360c: e3500000 cmp r0, #0 a0003610: 1a00000e bne a0003650 rtems_fatal_error_occurred (sc); } drainOutput (tty); a0003614: e1a00004 mov r0, r4 a0003618: ebfffdb2 bl a0002ce8 } if (tty->device.outputUsesInterrupts a000361c: e59430b4 ldr r3, [r4, #180] ; 0xb4 a0003620: e3530002 cmp r3, #2 a0003624: 1affffba bne a0003514 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( a0003628: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED a000362c: e3a01001 mov r1, #1 <== NOT EXECUTED a0003630: eb0002d1 bl a000417c <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) a0003634: e3500000 cmp r0, #0 <== NOT EXECUTED a0003638: 1a000004 bne a0003650 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( a000363c: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED a0003640: e3a01001 mov r1, #1 <== NOT EXECUTED a0003644: eb0002cc bl a000417c <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) a0003648: e3500000 cmp r0, #0 <== NOT EXECUTED a000364c: 0affffb0 beq a0003514 <== NOT EXECUTED rtems_fatal_error_occurred (sc); a0003650: eb000590 bl a0004c98 <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; a0003654: e59f3010 ldr r3, [pc, #16] ; a000366c a0003658: e5832000 str r2, [r3] a000365c: eaffffbc b a0003554 a0003660: a001a870 .word 0xa001a870 a0003664: a001a6a0 .word 0xa001a6a0 a0003668: a001a874 .word 0xa001a874 a000366c: a001a878 .word 0xa001a878 a0002178 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; a0002178: e590c090 ldr ip, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a000217c: e59020b4 ldr r2, [r0, #180] ; 0xb4 <== NOT EXECUTED * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { a0002180: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; a0002184: e08c1001 add r1, ip, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0002188: e3520002 cmp r2, #2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; a000218c: e5801090 str r1, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0002190: 0a00000b beq a00021c4 <== 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 ) { a0002194: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED a0002198: e3530005 cmp r3, #5 <== NOT EXECUTED a000219c: 0a000001 beq a00021a8 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } a00021a0: 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); a00021a4: eaffff70 b a0001f6c <== NOT EXECUTED } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { a00021a8: e59f302c ldr r3, [pc, #44] ; a00021dc <== NOT EXECUTED a00021ac: e59330b4 ldr r3, [r3, #180] ; 0xb4 <== NOT EXECUTED a00021b0: e3530000 cmp r3, #0 <== NOT EXECUTED a00021b4: 0a000000 beq a00021bc <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); a00021b8: e12fff33 blx r3 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } a00021bc: e3a00000 mov r0, #0 <== NOT EXECUTED a00021c0: 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, a00021c4: e59000c8 ldr r0, [r0, #200] ; 0xc8 <== NOT EXECUTED a00021c8: e1a01002 mov r1, r2 <== NOT EXECUTED a00021cc: eb0007ea bl a000417c <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) a00021d0: e3500000 cmp r0, #0 <== NOT EXECUTED a00021d4: 0afffff8 beq a00021bc <== NOT EXECUTED rtems_fatal_error_occurred (sc); a00021d8: eb000aae bl a0004c98 <== NOT EXECUTED a00021dc: a001a6a0 .word 0xa001a6a0 a00021e0 : * 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) { a00021e0: 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) { a00021e4: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED a00021e8: e59f82dc ldr r8, [pc, #732] ; a00024cc <== 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) { a00021ec: e24dd00c sub sp, sp, #12 <== NOT EXECUTED a00021f0: e1a04000 mov r4, r0 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { a00021f4: e0883283 add r3, r8, r3, lsl #5 <== NOT EXECUTED a00021f8: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { a00021fc: e1a05001 mov r5, r1 <== NOT EXECUTED a0002200: 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) { a0002204: e3560000 cmp r6, #0 <== NOT EXECUTED a0002208: 0a00001c beq a0002280 <== NOT EXECUTED while (len--) { a000220c: e3520000 cmp r2, #0 <== NOT EXECUTED a0002210: 0a00000a beq a0002240 <== NOT EXECUTED a0002214: e3a0a000 mov sl, #0 <== NOT EXECUTED a0002218: ea000002 b a0002228 <== NOT EXECUTED a000221c: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED a0002220: e0883283 add r3, r8, r3, lsl #5 <== NOT EXECUTED a0002224: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); a0002228: e7d5000a ldrb r0, [r5, sl] <== NOT EXECUTED a000222c: e1a01004 mov r1, r4 <== NOT EXECUTED a0002230: e28aa001 add sl, sl, #1 <== NOT EXECUTED a0002234: e12fff36 blx 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--) { a0002238: e157000a cmp r7, sl <== NOT EXECUTED a000223c: 1afffff6 bne a000221c <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { a0002240: e59490e4 ldr r9, [r4, #228] ; 0xe4 <== NOT EXECUTED a0002244: e3590000 cmp r9, #0 <== NOT EXECUTED a0002248: 1a00000a bne a0002278 <== NOT EXECUTED a000224c: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED a0002250: e3530000 cmp r3, #0 <== NOT EXECUTED a0002254: 0a000007 beq a0002278 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); a0002258: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a000225c: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED a0002260: e12fff33 blx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; a0002264: e3a03001 mov r3, #1 <== NOT EXECUTED a0002268: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } a000226c: e1a00009 mov r0, r9 <== NOT EXECUTED a0002270: e28dd00c add sp, sp, #12 <== NOT EXECUTED a0002274: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; a0002278: e3a09000 mov r9, #0 <== NOT EXECUTED a000227c: eafffffa b a000226c <== 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, a0002280: e280304a add r3, r0, #74 ; 0x4a <== NOT EXECUTED a0002284: 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); a0002288: e2803030 add r3, r0, #48 ; 0x30 <== NOT EXECUTED a000228c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0002290: e1a0b006 mov fp, r6 <== NOT EXECUTED a0002294: e58d6000 str r6, [sp] <== NOT EXECUTED a0002298: ea000034 b a0002370 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; a000229c: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED a00022a0: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a00022a4: e2800001 add r0, r0, #1 <== NOT EXECUTED a00022a8: eb0052c5 bl a0016dc4 <__umodsi3> <== NOT EXECUTED a00022ac: e1a08000 mov r8, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00022b0: e10f9000 mrs r9, CPSR <== NOT EXECUTED a00022b4: e3893080 orr r3, r9, #128 ; 0x80 <== NOT EXECUTED a00022b8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) a00022bc: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a00022c0: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED a00022c4: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a00022c8: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a00022cc: e0800008 add r0, r0, r8 <== NOT EXECUTED a00022d0: eb0052bb bl a0016dc4 <__umodsi3> <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && a00022d4: e59430c0 ldr r3, [r4, #192] ; 0xc0 <== NOT EXECUTED a00022d8: e1500003 cmp r0, r3 <== NOT EXECUTED a00022dc: 9a00000f bls a0002320 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { a00022e0: 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) a00022e4: e3130001 tst r3, #1 <== NOT EXECUTED a00022e8: 1a00000c bne a0002320 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; a00022ec: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) a00022f0: e3a03b01 mov r3, #1024 ; 0x400 <== NOT EXECUTED a00022f4: e2833002 add r3, r3, #2 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; a00022f8: e3822001 orr r2, r2, #1 <== NOT EXECUTED a00022fc: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) a0002300: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002304: e0023003 and r3, r2, r3 <== NOT EXECUTED a0002308: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED a000230c: 0a000056 beq a000246c <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) a0002310: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002314: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED a0002318: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED a000231c: 0a000061 beq a00024a8 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002320: e129f009 msr CPSR_fc, r9 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { a0002324: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a0002328: e1530008 cmp r3, r8 <== NOT EXECUTED a000232c: 0a00002c beq a00023e4 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; a0002330: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0002334: 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 )) { a0002338: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; a000233c: 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 )) { a0002340: e3530000 cmp r3, #0 <== NOT EXECUTED a0002344: 1a000007 bne a0002368 <== NOT EXECUTED a0002348: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED a000234c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002350: 0a000004 beq a0002368 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); a0002354: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a0002358: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED a000235c: e12fff33 blx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; a0002360: e3a03001 mov r3, #1 <== NOT EXECUTED a0002364: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a0002368: e2866001 add r6, r6, #1 <== NOT EXECUTED a000236c: e2477001 sub r7, r7, #1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { a0002370: e3570000 cmp r7, #0 <== NOT EXECUTED a0002374: 0a00002d beq a0002430 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { a0002378: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; a000237c: 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) { a0002380: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0002384: 0a000005 beq a00023a0 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { a0002388: e5d4304a ldrb r3, [r4, #74] ; 0x4a <== NOT EXECUTED a000238c: e153000a cmp r3, sl <== NOT EXECUTED a0002390: 0a000017 beq a00023f4 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { a0002394: e5d43049 ldrb r3, [r4, #73] ; 0x49 <== NOT EXECUTED a0002398: e153000a cmp r3, sl <== NOT EXECUTED a000239c: 0a00001e beq a000241c <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { a00023a0: e35b0000 cmp fp, #0 <== NOT EXECUTED a00023a4: 0affffbc beq a000229c <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { a00023a8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00023ac: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED a00023b0: e3530020 cmp r3, #32 <== NOT EXECUTED a00023b4: 1affffeb bne a0002368 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00023b8: e10f8000 mrs r8, CPSR <== NOT EXECUTED a00023bc: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED a00023c0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; a00023c4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a00023c8: 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; a00023cc: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a00023d0: 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; a00023d4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a00023d8: 1a00001b bne a000244c <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a00023dc: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED a00023e0: eaffffe0 b a0002368 <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; a00023e4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00023e8: e2833001 add r3, r3, #1 <== NOT EXECUTED a00023ec: e58d3000 str r3, [sp] <== NOT EXECUTED a00023f0: eaffffdc b a0002368 <== 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]) { a00023f4: e5d42049 ldrb r2, [r4, #73] ; 0x49 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; a00023f8: e3a0b001 mov fp, #1 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { a00023fc: e1520003 cmp r2, r3 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; a0002400: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; a0002404: 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; a0002408: 02233010 eoreq r3, r3, #16 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; a000240c: 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; a0002410: 058430b8 streq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; a0002414: 158430b8 strne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002418: eaffffe2 b a00023a8 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; a000241c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; a0002420: e3a0b001 mov fp, #1 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; a0002424: e3c33010 bic r3, r3, #16 <== NOT EXECUTED a0002428: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a000242c: eaffffdd b a00023a8 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; a0002430: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED a0002434: e59d9000 ldr r9, [sp] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); a0002438: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; a000243c: e0833009 add r3, r3, r9 <== NOT EXECUTED a0002440: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); a0002444: eb0008ba bl a0004734 <== NOT EXECUTED return dropped; a0002448: eaffff87 b a000226c <== 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); a000244c: 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, a0002450: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0002454: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002458: e3a02001 mov r2, #1 <== NOT EXECUTED a000245c: e0811003 add r1, r1, r3 <== NOT EXECUTED a0002460: e1a0e00f mov lr, pc <== NOT EXECUTED a0002464: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a0002468: eaffffdb b a00023dc <== 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) || a000246c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002470: e3130020 tst r3, #32 <== NOT EXECUTED a0002474: 1a000002 bne a0002484 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { a0002478: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a000247c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002480: 1affffa6 bne a0002320 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; a0002484: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, a0002488: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000248c: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; a0002490: e3833002 orr r3, r3, #2 <== NOT EXECUTED a0002494: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, a0002498: e3a02001 mov r2, #1 <== NOT EXECUTED a000249c: e1a0e00f mov lr, pc <== NOT EXECUTED a00024a0: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a00024a4: eaffff9d b a0002320 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; a00024a8: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { a00024ac: 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; a00024b0: e3822004 orr r2, r2, #4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { a00024b4: e3530000 cmp r3, #0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; a00024b8: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { a00024bc: 0affff97 beq a0002320 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); a00024c0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00024c4: e12fff33 blx r3 <== NOT EXECUTED a00024c8: eaffff94 b a0002320 <== NOT EXECUTED a00024cc: a001a6a0 .word 0xa001a6a0 a0001f04 : rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { a0001f04: e59fc038 ldr ip, [pc, #56] ; a0001f44 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { a0001f08: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { a0001f0c: e59c3000 ldr r3, [ip] struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { a0001f10: e24dd004 sub sp, sp, #4 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { a0001f14: e3530000 cmp r3, #0 a0001f18: 0a000001 beq a0001f24 RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } a0001f1c: e28dd004 add sp, sp, #4 a0001f20: e8bd8000 pop {pc} /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( a0001f24: e59f001c ldr r0, [pc, #28] ; a0001f48 a0001f28: e3a01001 mov r1, #1 a0001f2c: e3a02054 mov r2, #84 ; 0x54 a0001f30: e58dc000 str ip, [sp] a0001f34: eb00091b bl a00043a8 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) a0001f38: e3500000 cmp r0, #0 a0001f3c: 0afffff6 beq a0001f1c rtems_fatal_error_occurred (sc); a0001f40: eb000b54 bl a0004c98 <== NOT EXECUTED a0001f44: a001a870 .word 0xa001a870 a0001f48: 54526d69 .word 0x54526d69 a00030f0 : rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a00030f0: e5903000 ldr r3, [r0] } } rtems_status_code rtems_termios_ioctl (void *arg) { a00030f4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a00030f8: e5935034 ldr r5, [r3, #52] ; 0x34 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; a00030fc: e3a01000 mov r1, #0 a0003100: e580100c str r1, [r0, #12] } } rtems_status_code rtems_termios_ioctl (void *arg) { a0003104: 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); a0003108: e1a02001 mov r2, r1 a000310c: 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; a0003110: e5947008 ldr r7, [r4, #8] rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0003114: eb00053e bl a0004614 if (sc != RTEMS_SUCCESSFUL) { a0003118: e2506000 subs r6, r0, #0 a000311c: 1a00000e bne a000315c args->ioctl_return = sc; return sc; } switch (args->command) { a0003120: e5943004 ldr r3, [r4, #4] a0003124: e3530004 cmp r3, #4 a0003128: 0a000006 beq a0003148 a000312c: 8a00000d bhi a0003168 a0003130: e3530002 cmp r3, #2 a0003134: 0a00001d beq a00031b0 a0003138: 9a000082 bls a0003348 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); a000313c: e1a00005 mov r0, r5 a0003140: ebfffee8 bl a0002ce8 break; a0003144: ea000002 b a0003154 case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; a0003148: e897000c ldm r7, {r2, r3} <== NOT EXECUTED a000314c: e58520dc str r2, [r5, #220] ; 0xdc <== NOT EXECUTED a0003150: 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); a0003154: e5950018 ldr r0, [r5, #24] a0003158: eb000575 bl a0004734 args->ioctl_return = sc; a000315c: e584600c str r6, [r4, #12] return sc; } a0003160: e1a00006 mov r0, r6 a0003164: 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) { a0003168: e59f2328 ldr r2, [pc, #808] ; a0003498 <== NOT EXECUTED a000316c: e1530002 cmp r3, r2 <== NOT EXECUTED a0003170: 0a000068 beq a0003318 <== NOT EXECUTED a0003174: 8a00007f bhi a0003378 <== NOT EXECUTED a0003178: e3530005 cmp r3, #5 <== NOT EXECUTED a000317c: 0a00009c beq a00033f4 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { a0003180: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED a0003184: e59f3310 ldr r3, [pc, #784] ; a000349c <== NOT EXECUTED a0003188: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a000318c: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0003190: e3530000 cmp r3, #0 <== NOT EXECUTED a0003194: 03a0600a moveq r6, #10 <== NOT EXECUTED a0003198: 0affffed beq a0003154 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); a000319c: e1a00005 mov r0, r5 <== NOT EXECUTED a00031a0: e1a01004 mov r1, r4 <== NOT EXECUTED a00031a4: e12fff33 blx r3 <== NOT EXECUTED a00031a8: e1a06000 mov r6, r0 <== NOT EXECUTED a00031ac: eaffffe8 b a0003154 <== 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; a00031b0: e594e008 ldr lr, [r4, #8] a00031b4: e2857030 add r7, r5, #48 ; 0x30 a00031b8: e1a0c007 mov ip, r7 a00031bc: e8be000f ldm lr!, {r0, r1, r2, r3} a00031c0: e8ac000f stmia ip!, {r0, r1, r2, r3} a00031c4: e8be000f ldm lr!, {r0, r1, r2, r3} a00031c8: 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) && a00031cc: e59580b8 ldr r8, [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; a00031d0: 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) && a00031d4: e3180c02 tst r8, #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; a00031d8: 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) && a00031dc: 0a000012 beq a000322c a00031e0: e5953030 ldr r3, [r5, #48] ; 0x30 a00031e4: e3130b01 tst r3, #1024 ; 0x400 a00031e8: 1a00000f bne a000322c !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); a00031ec: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a00031f0: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED a00031f4: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { a00031f8: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a00031fc: e3130020 tst r3, #32 <== NOT EXECUTED a0003200: 0a000009 beq a000322c <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0003204: e10f8000 mrs r8, CPSR <== NOT EXECUTED a0003208: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED a000320c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; a0003210: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0003214: 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; a0003218: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a000321c: 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; a0003220: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0003224: 1a000093 bne a0003478 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0003228: 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) && a000322c: e59530b8 ldr r3, [r5, #184] ; 0xb8 a0003230: e3130b01 tst r3, #1024 ; 0x400 a0003234: 0a000008 beq a000325c a0003238: e5953030 ldr r3, [r5, #48] ; 0x30 <== NOT EXECUTED a000323c: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED a0003240: 1a000005 bne a000325c <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); a0003244: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a0003248: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED a000324c: 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); a0003250: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a0003254: e3c33002 bic r3, r3, #2 <== NOT EXECUTED a0003258: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && a000325c: e59530b8 ldr r3, [r5, #184] ; 0xb8 a0003260: e3130c01 tst r3, #256 ; 0x100 a0003264: 05952038 ldreq r2, [r5, #56] ; 0x38 a0003268: 0a000011 beq a00032b4 a000326c: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED a0003270: e3520000 cmp r2, #0 <== NOT EXECUTED a0003274: ba000073 blt a0003448 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); a0003278: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a000327c: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a0003280: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && a0003284: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a0003288: e3130004 tst r3, #4 <== NOT EXECUTED a000328c: 0a000005 beq a00032a8 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { a0003290: 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) && a0003294: e3530000 cmp r3, #0 <== NOT EXECUTED a0003298: 0a000002 beq a00032a8 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); a000329c: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED a00032a0: e12fff33 blx r3 <== NOT EXECUTED a00032a4: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); a00032a8: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a00032ac: e3c33004 bic r3, r3, #4 <== NOT EXECUTED a00032b0: 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) { a00032b4: e3520000 cmp r2, #0 a00032b8: ba000062 blt a0003448 tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { a00032bc: e5953030 ldr r3, [r5, #48] ; 0x30 tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { a00032c0: e595803c ldr r8, [r5, #60] ; 0x3c /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { a00032c4: e3130a01 tst r3, #4096 ; 0x1000 tty->flow_ctrl |= FL_MDXOF; a00032c8: 159520b8 ldrne r2, [r5, #184] ; 0xb8 a00032cc: 13822b01 orrne r2, r2, #1024 ; 0x400 a00032d0: 158520b8 strne r2, [r5, #184] ; 0xb8 } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { a00032d4: e3130b01 tst r3, #1024 ; 0x400 tty->flow_ctrl |= FL_MDXON; a00032d8: 159530b8 ldrne r3, [r5, #184] ; 0xb8 a00032dc: 13833c02 orrne r3, r3, #512 ; 0x200 a00032e0: 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) { a00032e4: e2188002 ands r8, r8, #2 a00032e8: 0a000045 beq a0003404 tty->rawInBufSemaphoreOptions = RTEMS_WAIT; a00032ec: e3a03000 mov r3, #0 tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; a00032f0: 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; a00032f4: e585306c str r3, [r5, #108] ; 0x6c tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; a00032f8: e5853070 str r3, [r5, #112] ; 0x70 else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) a00032fc: e59530a8 ldr r3, [r5, #168] ; 0xa8 a0003300: e3530000 cmp r3, #0 a0003304: 0affff92 beq a0003154 (*tty->device.setAttributes)(tty->minor, &tty->termios); a0003308: e1a01007 mov r1, r7 a000330c: e5950010 ldr r0, [r5, #16] a0003310: e12fff33 blx r3 a0003314: eaffff8e b a0003154 *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; a0003318: e5952060 ldr r2, [r5, #96] ; 0x60 <== NOT EXECUTED a000331c: e595305c ldr r3, [r5, #92] ; 0x5c <== NOT EXECUTED if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; a0003320: e5950020 ldr r0, [r5, #32] <== NOT EXECUTED a0003324: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) a0003328: e0523003 subs r3, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; a000332c: 45952064 ldrmi r2, [r5, #100] ; 0x64 <== NOT EXECUTED a0003330: 40833002 addmi r3, r3, r2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; a0003334: e5952024 ldr r2, [r5, #36] ; 0x24 <== NOT EXECUTED a0003338: e0622000 rsb r2, r2, r0 <== NOT EXECUTED a000333c: e0823003 add r3, r2, r3 <== NOT EXECUTED a0003340: e5813000 str r3, [r1] <== NOT EXECUTED a0003344: eaffff82 b a0003154 <== 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) { a0003348: e3530001 cmp r3, #1 a000334c: 1affff8b bne a0003180 sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; a0003350: e5947008 ldr r7, [r4, #8] a0003354: e285c030 add ip, r5, #48 ; 0x30 a0003358: e8bc000f ldm ip!, {r0, r1, r2, r3} a000335c: e1a0e007 mov lr, r7 a0003360: e8ae000f stmia lr!, {r0, r1, r2, r3} a0003364: e8bc000f ldm ip!, {r0, r1, r2, r3} a0003368: e8ae000f stmia lr!, {r0, r1, r2, r3} a000336c: e59c3000 ldr r3, [ip] a0003370: e58e3000 str r3, [lr] break; a0003374: eaffff76 b a0003154 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { a0003378: e59f2120 ldr r2, [pc, #288] ; a00034a0 <== NOT EXECUTED a000337c: e1530002 cmp r3, r2 <== NOT EXECUTED a0003380: 0a000017 beq a00033e4 <== NOT EXECUTED a0003384: e2822105 add r2, r2, #1073741825 ; 0x40000001 <== NOT EXECUTED a0003388: e1530002 cmp r3, r2 <== NOT EXECUTED a000338c: 1affff7b bne a0003180 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { a0003390: e59f7104 ldr r7, [pc, #260] ; a000349c <== NOT EXECUTED a0003394: e59530cc ldr r3, [r5, #204] ; 0xcc <== NOT EXECUTED a0003398: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED a000339c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00033a0: e3530000 cmp r3, #0 <== NOT EXECUTED a00033a4: 0a000002 beq a00033b4 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); a00033a8: e1a00005 mov r0, r5 <== NOT EXECUTED a00033ac: e12fff33 blx r3 <== NOT EXECUTED a00033b0: e1a06000 mov r6, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); a00033b4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ a00033b8: e3a02000 mov r2, #0 <== NOT EXECUTED a00033bc: e58520d0 str r2, [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); a00033c0: 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) { a00033c4: e7973282 ldr r3, [r7, r2, lsl #5] <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); a00033c8: 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) { a00033cc: e3530000 cmp r3, #0 <== NOT EXECUTED a00033d0: 0affff5f beq a0003154 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); a00033d4: e1a00005 mov r0, r5 <== NOT EXECUTED a00033d8: e12fff33 blx r3 <== NOT EXECUTED a00033dc: e1a06000 mov r6, r0 <== NOT EXECUTED a00033e0: eaffff5b b a0003154 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; a00033e4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a00033e8: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED a00033ec: e5832000 str r2, [r3] <== NOT EXECUTED break; a00033f0: eaffff57 b a0003154 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; a00033f4: e897000c ldm r7, {r2, r3} <== NOT EXECUTED a00033f8: e58520d4 str r2, [r5, #212] ; 0xd4 <== NOT EXECUTED a00033fc: e58530d8 str r3, [r5, #216] ; 0xd8 <== NOT EXECUTED break; a0003400: eaffff53 b a0003154 <== 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; a0003404: e5d5a046 ldrb sl, [r5, #70] ; 0x46 <== NOT EXECUTED a0003408: eb0002d6 bl a0003f68 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * a000340c: e59f1090 ldr r1, [pc, #144] ; a00034a4 <== NOT EXECUTED a0003410: e000009a mul r0, sl, r0 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { a0003414: 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] * a0003418: e083c091 umull ip, r3, r1, r0 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { a000341c: 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] * a0003420: e1a031a3 lsr r3, r3, #3 <== NOT EXECUTED a0003424: e5853054 str r3, [r5, #84] ; 0x54 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { a0003428: 0a00000a beq a0003458 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) a000342c: e5d52047 ldrb r2, [r5, #71] ; 0x47 <== NOT EXECUTED else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; a0003430: e5853070 str r3, [r5, #112] ; 0x70 <== 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; a0003434: e585806c str r8, [r5, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; a0003438: e3520000 cmp r2, #0 <== NOT EXECUTED a000343c: 13a03000 movne r3, #0 <== NOT EXECUTED a0003440: e5853074 str r3, [r5, #116] ; 0x74 <== NOT EXECUTED a0003444: eaffffac b a00032fc <== 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; a0003448: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a000344c: e3833c01 orr r3, r3, #256 ; 0x100 <== NOT EXECUTED a0003450: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a0003454: eaffff98 b a00032bc <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { a0003458: e5d53047 ldrb r3, [r5, #71] ; 0x47 <== NOT EXECUTED a000345c: 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; a0003460: 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; a0003464: 15852074 strne r2, [r5, #116] ; 0x74 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; a0003468: 1585206c strne r2, [r5, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; a000346c: 15852070 strne r2, [r5, #112] ; 0x70 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; a0003470: 0585306c streq r3, [r5, #108] ; 0x6c <== NOT EXECUTED a0003474: eaffffa0 b a00032fc <== 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); a0003478: 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, a000347c: e595107c ldr r1, [r5, #124] ; 0x7c <== NOT EXECUTED a0003480: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED a0003484: e3a02001 mov r2, #1 <== NOT EXECUTED a0003488: e0811003 add r1, r1, r3 <== NOT EXECUTED a000348c: e1a0e00f mov lr, pc <== NOT EXECUTED a0003490: e595f0a4 ldr pc, [r5, #164] ; 0xa4 <== NOT EXECUTED a0003494: eaffff63 b a0003228 <== NOT EXECUTED a0003498: 4004667f .word 0x4004667f a000349c: a001a6a0 .word 0xa001a6a0 a00034a0: 4004741a .word 0x4004741a a00034a4: cccccccd .word 0xcccccccd a0003670 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a0003670: 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, a0003674: e59f7498 ldr r7, [pc, #1176] ; a0003b14 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a0003678: e1a06001 mov r6, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, a000367c: e3a01000 mov r1, #0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a0003680: e24dd014 sub sp, sp, #20 a0003684: e1a05000 mov r5, r0 a0003688: e1a08002 mov r8, r2 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, a000368c: e5970000 ldr r0, [r7] a0003690: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a0003694: e1a09003 mov r9, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, a0003698: eb0003dd bl a0004614 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) a000369c: e250a000 subs sl, r0, #0 a00036a0: 1a000020 bne a0003728 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { a00036a4: e59fb46c ldr fp, [pc, #1132] ; a0003b18 a00036a8: e59b4000 ldr r4, [fp] a00036ac: e3540000 cmp r4, #0 a00036b0: 1a000003 bne a00036c4 a00036b4: ea00002b b a0003768 a00036b8: e5944000 ldr r4, [r4] a00036bc: e3540000 cmp r4, #0 a00036c0: 0a000028 beq a0003768 if ((tty->major == major) && (tty->minor == minor)) a00036c4: e594300c ldr r3, [r4, #12] a00036c8: e1530005 cmp r3, r5 a00036cc: 1afffff9 bne a00036b8 a00036d0: e5943010 ldr r3, [r4, #16] a00036d4: e1530006 cmp r3, r6 a00036d8: 1afffff6 bne a00036b8 if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { a00036dc: e5943008 ldr r3, [r4, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; a00036e0: e5982000 ldr r2, [r8] if (!tty->refcount++) { a00036e4: e3530000 cmp r3, #0 a00036e8: e2833001 add r3, r3, #1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; a00036ec: e5824034 str r4, [r2, #52] ; 0x34 if (!tty->refcount++) { a00036f0: e5843008 str r3, [r4, #8] a00036f4: 1a000009 bne a0003720 if (tty->device.firstOpen) a00036f8: e5943098 ldr r3, [r4, #152] ; 0x98 a00036fc: e3530000 cmp r3, #0 a0003700: 0a000003 beq a0003714 (*tty->device.firstOpen)(major, minor, arg); a0003704: e1a00005 mov r0, r5 a0003708: e1a01006 mov r1, r6 a000370c: e1a02008 mov r2, r8 a0003710: e12fff33 blx r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0003714: e59430b4 ldr r3, [r4, #180] ; 0xb4 a0003718: e3530002 cmp r3, #2 a000371c: 0a000004 beq a0003734 (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); a0003720: e5970000 ldr r0, [r7] a0003724: eb000402 bl a0004734 return RTEMS_SUCCESSFUL; } a0003728: e1a0000a mov r0, sl a000372c: e28dd014 add sp, sp, #20 a0003730: 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, a0003734: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED a0003738: e59f13dc ldr r1, [pc, #988] ; a0003b1c <== NOT EXECUTED a000373c: e1a02004 mov r2, r4 <== NOT EXECUTED a0003740: eb0004cc bl a0004a78 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) a0003744: e3500000 cmp r0, #0 <== NOT EXECUTED a0003748: 1a0000d4 bne a0003aa0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, a000374c: e1a02004 mov r2, r4 <== NOT EXECUTED a0003750: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED a0003754: e59f13c4 ldr r1, [pc, #964] ; a0003b20 <== NOT EXECUTED a0003758: eb0004c6 bl a0004a78 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) a000375c: e3500000 cmp r0, #0 <== NOT EXECUTED a0003760: 0affffee beq a0003720 <== NOT EXECUTED a0003764: ea0000cd b a0003aa0 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); a0003768: e3a00001 mov r0, #1 a000376c: e3a010e8 mov r1, #232 ; 0xe8 a0003770: eb0015cf bl a0008eb4 if (tty == NULL) { a0003774: e3500000 cmp r0, #0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); a0003778: e58d000c str r0, [sp, #12] a000377c: e1a04000 mov r4, r0 if (tty == NULL) { a0003780: 0a0000b1 beq a0003a4c return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; a0003784: e59f0398 ldr r0, [pc, #920] ; a0003b24 a0003788: e59d100c ldr r1, [sp, #12] a000378c: e5903004 ldr r3, [r0, #4] a0003790: e5813064 str r3, [r1, #100] ; 0x64 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); a0003794: e5910064 ldr r0, [r1, #100] ; 0x64 a0003798: eb00175f bl a000951c a000379c: e59d200c ldr r2, [sp, #12] if (tty->rawInBuf.theBuf == NULL) { a00037a0: e3500000 cmp r0, #0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); a00037a4: e5820058 str r0, [r2, #88] ; 0x58 if (tty->rawInBuf.theBuf == NULL) { a00037a8: 0a0000ab beq a0003a5c return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; a00037ac: e59fc370 ldr ip, [pc, #880] ; a0003b24 a00037b0: e59de00c ldr lr, [sp, #12] a00037b4: e59c3008 ldr r3, [ip, #8] a00037b8: e58e3088 str r3, [lr, #136] ; 0x88 tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); a00037bc: e59e0088 ldr r0, [lr, #136] ; 0x88 a00037c0: eb001755 bl a000951c a00037c4: e59d100c ldr r1, [sp, #12] if (tty->rawOutBuf.theBuf == NULL) { a00037c8: e3500000 cmp r0, #0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); a00037cc: e581007c str r0, [r1, #124] ; 0x7c if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); a00037d0: 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) { a00037d4: 0a000099 beq a0003a40 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); a00037d8: e59f2344 ldr r2, [pc, #836] ; a0003b24 a00037dc: e5920000 ldr r0, [r2] a00037e0: eb00174d bl a000951c a00037e4: e59d300c ldr r3, [sp, #12] if (tty->cbuf == NULL) { a00037e8: e3500000 cmp r0, #0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); a00037ec: e583001c str r0, [r3, #28] if (tty->cbuf == NULL) { a00037f0: 0a00008e beq a0003a30 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; a00037f4: e59dc00c ldr ip, [sp, #12] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; a00037f8: e59b2000 ldr r2, [fp] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; a00037fc: e3a03000 mov r3, #0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; a0003800: e58c3004 str r3, [ip, #4] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; a0003804: e58c30d4 str r3, [ip, #212] ; 0xd4 tty->tty_snd.sw_arg = NULL; a0003808: e58c30d8 str r3, [ip, #216] ; 0xd8 tty->tty_rcv.sw_pfn = NULL; a000380c: e58c30dc str r3, [ip, #220] ; 0xdc tty->tty_rcv.sw_arg = NULL; a0003810: e58c30e0 str r3, [ip, #224] ; 0xe0 tty->tty_rcvwakeup = 0; a0003814: e58c30e4 str r3, [ip, #228] ; 0xe4 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) a0003818: e1520003 cmp r2, r3 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) a000381c: e59f3304 ldr r3, [pc, #772] ; a0003b28 * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; a0003820: 1582c004 strne ip, [r2, #4] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; a0003824: e58c2000 str r2, [ip] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) a0003828: e5932000 ldr r2, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a000382c: e59f12f0 ldr r1, [pc, #752] ; a0003b24 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; a0003830: e59de00c ldr lr, [sp, #12] if (rtems_termios_ttyTail == NULL) a0003834: e3520000 cmp r2, #0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a0003838: e59d200c ldr r2, [sp, #12] a000383c: e5d1000c ldrb r0, [r1, #12] 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; a0003840: 0583e000 streq lr, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a0003844: e282c014 add ip, r2, #20 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; a0003848: e58be000 str lr, [fp] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a000384c: 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; a0003850: e59dc00c ldr ip, [sp, #12] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a0003854: e3800315 orr r0, r0, #1409286144 ; 0x54000000 a0003858: e3800852 orr r0, r0, #5373952 ; 0x520000 a000385c: e3a03000 mov r3, #0 a0003860: e3a01001 mov r1, #1 a0003864: e3800c69 orr r0, r0, #26880 ; 0x6900 a0003868: 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; a000386c: e58c6010 str r6, [ip, #16] tty->major = major; a0003870: e58c500c str r5, [ip, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a0003874: eb0002cb bl a00043a8 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) a0003878: e2503000 subs r3, r0, #0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a000387c: e59fb2a0 ldr fp, [pc, #672] ; a0003b24 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) a0003880: 1a000086 bne a0003aa0 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( a0003884: e5db000c ldrb r0, [fp, #12] a0003888: e59de00c ldr lr, [sp, #12] a000388c: e3a01001 mov r1, #1 a0003890: e3800315 orr r0, r0, #1409286144 ; 0x54000000 a0003894: e3800852 orr r0, r0, #5373952 ; 0x520000 a0003898: e28ec018 add ip, lr, #24 a000389c: e3800c6f orr r0, r0, #28416 ; 0x6f00 a00038a0: e3a02054 mov r2, #84 ; 0x54 a00038a4: e58dc000 str ip, [sp] a00038a8: eb0002be bl a00043a8 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) a00038ac: e2501000 subs r1, r0, #0 a00038b0: 1a00007a bne a0003aa0 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( a00038b4: e5db000c ldrb r0, [fp, #12] a00038b8: e59d200c ldr r2, [sp, #12] a00038bc: e1a03001 mov r3, r1 a00038c0: e3800315 orr r0, r0, #1409286144 ; 0x54000000 a00038c4: e3800852 orr r0, r0, #5373952 ; 0x520000 a00038c8: e282c08c add ip, r2, #140 ; 0x8c a00038cc: e3800b1e orr r0, r0, #30720 ; 0x7800 a00038d0: e3a02020 mov r2, #32 a00038d4: e58dc000 str ip, [sp] a00038d8: eb0002b2 bl a00043a8 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) a00038dc: e2503000 subs r3, r0, #0 a00038e0: e58d3010 str r3, [sp, #16] a00038e4: 1a00006d bne a0003aa0 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; a00038e8: e59dc00c ldr ip, [sp, #12] a00038ec: e28ce098 add lr, ip, #152 ; 0x98 a00038f0: e1a0c009 mov ip, r9 a00038f4: e8bc000f ldm ip!, {r0, r1, r2, r3} a00038f8: e8ae000f stmia lr!, {r0, r1, r2, r3} a00038fc: e89c000f ldm ip, {r0, r1, r2, r3} a0003900: e88e000f stm lr, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0003904: e59de00c ldr lr, [sp, #12] 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; a0003908: e59d0010 ldr r0, [sp, #16] tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a000390c: e59e30b4 ldr r3, [lr, #180] ; 0xb4 RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; a0003910: e58e0094 str r0, [lr, #148] ; 0x94 tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0003914: e3530002 cmp r3, #2 a0003918: 0a000061 beq a0003aa4 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || a000391c: e59d200c ldr r2, [sp, #12] a0003920: e59230a0 ldr r3, [r2, #160] ; 0xa0 a0003924: e3530000 cmp r3, #0 a0003928: 0a00004e beq a0003a68 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ a000392c: e59230b4 ldr r3, [r2, #180] ; 0xb4 a0003930: e3530002 cmp r3, #2 a0003934: 0a00004b beq a0003a68 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; a0003938: e59dc00c ldr ip, [sp, #12] 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'; a000393c: e3a03000 mov r3, #0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') a0003940: e59f01dc ldr r0, [pc, #476] ; a0003b24 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; a0003944: e58c30b8 str r3, [ip, #184] ; 0xb8 /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; a0003948: e59c9064 ldr r9, [ip, #100] ; 0x64 tty->highwater = tty->rawInBuf.Size * 3/4; a000394c: e59cb064 ldr fp, [ip, #100] ; 0x64 /* * Bump name characer */ if (c++ == 'z') a0003950: e5d0e00c ldrb lr, [r0, #12] /* 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; a0003954: e1a090a9 lsr r9, r9, #1 a0003958: e58d9008 str r9, [sp, #8] tty->highwater = tty->rawInBuf.Size * 3/4; a000395c: e08bb08b add fp, fp, fp, lsl #1 a0003960: e59d900c ldr r9, [sp, #12] a0003964: e1a0b12b lsr fp, fp, #2 /* * Bump name characer */ if (c++ == 'z') a0003968: e35e007a cmp lr, #122 ; 0x7a tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; a000396c: e589b0c0 str fp, [r9, #192] ; 0xc0 /* * Bump name characer */ if (c++ == 'z') a0003970: e59f91ac ldr r9, [pc, #428] ; a0003b24 a0003974: e28ee001 add lr, lr, #1 * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; a0003978: e3a02c82 mov r2, #33280 ; 0x8200 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') a000397c: e5c9e00c strb lr, [r9, #12] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; a0003980: e59de00c ldr lr, [sp, #12] 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; a0003984: e282203b add r2, r2, #59 ; 0x3b /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; a0003988: e3a00b06 mov r0, #6144 ; 0x1800 tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; a000398c: e58e203c str r2, [lr, #60] ; 0x3c tty->termios.c_cc[VINTR] = '\003'; a0003990: e3a02003 mov r2, #3 a0003994: e5ce2041 strb r2, [lr, #65] ; 0x41 tty->termios.c_cc[VQUIT] = '\034'; a0003998: e3a0201c mov r2, #28 a000399c: e5ce2042 strb r2, [lr, #66] ; 0x42 tty->termios.c_cc[VERASE] = '\177'; a00039a0: e3a0207f mov r2, #127 ; 0x7f a00039a4: e5ce2043 strb r2, [lr, #67] ; 0x43 tty->termios.c_cc[VKILL] = '\025'; a00039a8: e3a02015 mov r2, #21 a00039ac: e5ce2044 strb r2, [lr, #68] ; 0x44 tty->termios.c_cc[VEOF] = '\004'; a00039b0: e3a02004 mov r2, #4 a00039b4: e5ce2045 strb r2, [lr, #69] ; 0x45 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; a00039b8: e3a02011 mov r2, #17 a00039bc: e5ce2049 strb r2, [lr, #73] ; 0x49 tty->termios.c_cc[VSTOP] = '\023'; a00039c0: e3a02013 mov r2, #19 a00039c4: e5ce204a strb r2, [lr, #74] ; 0x4a tty->termios.c_cc[VSUSP] = '\032'; a00039c8: e3a0201a mov r2, #26 a00039cc: e5ce204b strb r2, [lr, #75] ; 0x4b tty->termios.c_cc[VREPRINT] = '\022'; a00039d0: e3a02012 mov r2, #18 a00039d4: e5ce204d strb r2, [lr, #77] ; 0x4d tty->termios.c_cc[VDISCARD] = '\017'; a00039d8: e3a0200f mov r2, #15 a00039dc: e5ce204e strb r2, [lr, #78] ; 0x4e tty->termios.c_cc[VWERASE] = '\027'; a00039e0: e3a02017 mov r2, #23 a00039e4: e5ce204f strb r2, [lr, #79] ; 0x4f tty->termios.c_cc[VLNEXT] = '\026'; a00039e8: e3a02016 mov r2, #22 a00039ec: e5ce2050 strb r2, [lr, #80] ; 0x50 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; a00039f0: e2800005 add r0, r0, #5 a00039f4: e58e0034 str r0, [lr, #52] ; 0x34 /* 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; a00039f8: e59d0008 ldr r0, [sp, #8] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; a00039fc: e3a0cc25 mov ip, #9472 ; 0x2500 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; a0003a00: 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'; a0003a04: e5ce304c strb r3, [lr, #76] ; 0x4c tty->termios.c_cc[VEOL2] = '\000'; a0003a08: e5ce3051 strb r3, [lr, #81] ; 0x51 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; a0003a0c: e28cc002 add ip, ip, #2 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; a0003a10: e281100d add r1, r1, #13 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; a0003a14: 0282204b addeq r2, r2, #75 ; 0x4b a0003a18: 01a03009 moveq r3, r9 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; a0003a1c: e58ec030 str ip, [lr, #48] ; 0x30 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; a0003a20: 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; a0003a24: e58e00bc str r0, [lr, #188] ; 0xbc tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; a0003a28: 05c3200c strbeq r2, [r3, #12] a0003a2c: eaffff2a b a00036dc /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); a0003a30: e593007c ldr r0, [r3, #124] ; 0x7c <== NOT EXECUTED a0003a34: eb001559 bl a0008fa0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); a0003a38: e59d900c ldr r9, [sp, #12] <== NOT EXECUTED a0003a3c: e5990058 ldr r0, [r9, #88] ; 0x58 <== NOT EXECUTED a0003a40: eb001556 bl a0008fa0 <== NOT EXECUTED free(tty); a0003a44: e59d000c ldr r0, [sp, #12] <== NOT EXECUTED a0003a48: eb001554 bl a0008fa0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); a0003a4c: e5970000 ldr r0, [r7] <== NOT EXECUTED a0003a50: eb000337 bl a0004734 <== NOT EXECUTED a0003a54: e3a0a01a mov sl, #26 <== NOT EXECUTED return RTEMS_NO_MEMORY; a0003a58: eaffff32 b a0003728 <== 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); a0003a5c: e1a00002 mov r0, r2 <== NOT EXECUTED a0003a60: eb00154e bl a0008fa0 <== NOT EXECUTED a0003a64: eafffff8 b a0003a4c <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( a0003a68: e59f30b4 ldr r3, [pc, #180] ; a0003b24 <== NOT EXECUTED a0003a6c: e59d900c ldr r9, [sp, #12] <== NOT EXECUTED a0003a70: e3a01000 mov r1, #0 <== NOT EXECUTED a0003a74: e5d3000c ldrb r0, [r3, #12] <== NOT EXECUTED a0003a78: e289c068 add ip, r9, #104 ; 0x68 <== NOT EXECUTED a0003a7c: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED a0003a80: e3800315 orr r0, r0, #1409286144 ; 0x54000000 <== NOT EXECUTED a0003a84: e3800852 orr r0, r0, #5373952 ; 0x520000 <== NOT EXECUTED a0003a88: e3800c72 orr r0, r0, #29184 ; 0x7200 <== NOT EXECUTED a0003a8c: e1a03001 mov r3, r1 <== NOT EXECUTED a0003a90: e58dc000 str ip, [sp] <== NOT EXECUTED a0003a94: eb000243 bl a00043a8 <== 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) a0003a98: e3500000 cmp r0, #0 <== NOT EXECUTED a0003a9c: 0affffa5 beq a0003938 <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); a0003aa0: eb00047c bl a0004c98 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( a0003aa4: e5db000c ldrb r0, [fp, #12] <== NOT EXECUTED a0003aa8: e59d9010 ldr r9, [sp, #16] <== NOT EXECUTED a0003aac: e28ec0c8 add ip, lr, #200 ; 0xc8 <== NOT EXECUTED a0003ab0: e3800315 orr r0, r0, #1409286144 ; 0x54000000 <== NOT EXECUTED a0003ab4: e380071e orr r0, r0, #7864320 ; 0x780000 <== NOT EXECUTED a0003ab8: e3a0100a mov r1, #10 <== NOT EXECUTED a0003abc: e3800b15 orr r0, r0, #21504 ; 0x5400 <== NOT EXECUTED a0003ac0: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a0003ac4: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED a0003ac8: e88d1200 stm sp, {r9, ip} <== NOT EXECUTED a0003acc: eb000342 bl a00047dc <== 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) a0003ad0: e250e000 subs lr, r0, #0 <== NOT EXECUTED a0003ad4: 1afffff1 bne a0003aa0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( a0003ad8: e5db000c ldrb r0, [fp, #12] <== NOT EXECUTED a0003adc: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED a0003ae0: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a0003ae4: e3800452 orr r0, r0, #1375731712 ; 0x52000000 <== NOT EXECUTED a0003ae8: e380071e orr r0, r0, #7864320 ; 0x780000 <== NOT EXECUTED a0003aec: e281c0c4 add ip, r1, #196 ; 0xc4 <== NOT EXECUTED a0003af0: e3800b15 orr r0, r0, #21504 ; 0x5400 <== NOT EXECUTED a0003af4: e3a01009 mov r1, #9 <== NOT EXECUTED a0003af8: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED a0003afc: e58de000 str lr, [sp] <== NOT EXECUTED a0003b00: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a0003b04: eb000334 bl a00047dc <== 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) a0003b08: e3500000 cmp r0, #0 <== NOT EXECUTED a0003b0c: 0affff82 beq a000391c <== NOT EXECUTED a0003b10: eaffffe2 b a0003aa0 <== NOT EXECUTED a0003b14: a001a870 .word 0xa001a870 a0003b18: a001a878 .word 0xa001a878 a0003b1c: a0003b9c .word 0xa0003b9c a0003b20: a0003b2c .word 0xa0003b2c a0003b24: a0018fd4 .word 0xa0018fd4 a0003b28: a001a874 .word 0xa001a874 a00024d0 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { a00024d0: e59230b4 ldr r3, [r2, #180] ; 0xb4 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { a00024d4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { a00024d8: e3530000 cmp r3, #0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { a00024dc: e1a04002 mov r4, r2 a00024e0: e1a0b000 mov fp, r0 a00024e4: 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) { a00024e8: 0a000039 beq a00025d4 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { a00024ec: 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; a00024f0: e5928080 ldr r8, [r2, #128] ; 0x80 <== NOT EXECUTED while (len) { a00024f4: 0a00002d beq a00025b0 <== NOT EXECUTED a00024f8: 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; a00024fc: 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; a0002500: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED a0002504: e2880001 add r0, r8, #1 <== NOT EXECUTED a0002508: eb00522d bl a0016dc4 <__umodsi3> <== NOT EXECUTED a000250c: e1a08000 mov r8, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002510: e10f5000 mrs r5, CPSR <== NOT EXECUTED a0002514: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a0002518: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { a000251c: e5946084 ldr r6, [r4, #132] ; 0x84 <== NOT EXECUTED a0002520: e1560000 cmp r6, r0 <== NOT EXECUTED a0002524: 1a00000d bne a0002560 <== NOT EXECUTED tty->rawOutBufState = rob_wait; a0002528: e5847094 str r7, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a000252c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, a0002530: e3a01000 mov r1, #0 <== NOT EXECUTED a0002534: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0002538: e1a02001 mov r2, r1 <== NOT EXECUTED a000253c: eb000834 bl a0004614 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) a0002540: e3500000 cmp r0, #0 <== NOT EXECUTED a0002544: 1a000028 bne a00025ec <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002548: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000254c: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a0002550: 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) { a0002554: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a0002558: e1530006 cmp r3, r6 <== NOT EXECUTED a000255c: 0afffff1 beq a0002528 <== 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++; a0002560: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED a0002564: e7db100a ldrb r1, [fp, sl] <== NOT EXECUTED a0002568: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED a000256c: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { a0002570: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; a0002574: e5848080 str r8, [r4, #128] ; 0x80 <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { a0002578: e3530000 cmp r3, #0 <== NOT EXECUTED a000257c: 1a000007 bne a00025a0 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { a0002580: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002584: e3130010 tst r3, #16 <== NOT EXECUTED a0002588: 0a000009 beq a00025b4 <== 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; a000258c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002590: e3833020 orr r3, r3, #32 <== NOT EXECUTED a0002594: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } tty->rawOutBufState = rob_busy; a0002598: e3a03001 mov r3, #1 <== NOT EXECUTED a000259c: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a00025a0: 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) { a00025a4: e2599001 subs r9, r9, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; a00025a8: 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) { a00025ac: 1affffd3 bne a0002500 <== NOT EXECUTED a00025b0: 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); a00025b4: 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, a00025b8: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a00025bc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00025c0: e3a02001 mov r2, #1 <== NOT EXECUTED a00025c4: e0811003 add r1, r1, r3 <== NOT EXECUTED a00025c8: e1a0e00f mov lr, pc <== NOT EXECUTED a00025cc: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a00025d0: eafffff0 b a0002598 <== 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); a00025d4: e1a01000 mov r1, r0 a00025d8: e1a02009 mov r2, r9 a00025dc: e5940010 ldr r0, [r4, #16] a00025e0: e1a0e00f mov lr, pc a00025e4: e594f0a4 ldr pc, [r4, #164] ; 0xa4 return; a00025e8: 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); a00025ec: eb0009a9 bl a0004c98 <== NOT EXECUTED a0002d64 : rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0002d64: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { a0002d68: 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; a0002d6c: e5934034 ldr r4, [r3, #52] ; 0x34 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; a0002d70: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002d74: e3a01000 mov r1, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { a0002d78: e24dd008 sub sp, sp, #8 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; a0002d7c: e5907010 ldr r7, [r0, #16] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { a0002d80: e1a0a000 mov sl, r0 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002d84: e1a02001 mov r2, r1 <== NOT EXECUTED a0002d88: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; a0002d8c: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002d90: eb00061f bl a0004614 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) a0002d94: e250b000 subs fp, r0, #0 <== NOT EXECUTED a0002d98: 1a00000d bne a0002dd4 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { a0002d9c: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a0002da0: e59f3340 ldr r3, [pc, #832] ; a00030e8 <== NOT EXECUTED a0002da4: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0002da8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0002dac: e3530000 cmp r3, #0 <== NOT EXECUTED a0002db0: 0a00000a beq a0002de0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); a0002db4: e1a0100a mov r1, sl <== NOT EXECUTED a0002db8: e1a00004 mov r0, r4 <== NOT EXECUTED a0002dbc: e12fff33 blx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; a0002dc0: 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); a0002dc4: e1a0b000 mov fp, r0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; a0002dc8: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED rtems_semaphore_release (tty->isem); a0002dcc: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0002dd0: eb000657 bl a0004734 <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } a0002dd4: e1a0000b mov r0, fp <== NOT EXECUTED a0002dd8: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0002ddc: 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) { a0002de0: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED a0002de4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0002de8: e1520003 cmp r2, r3 <== NOT EXECUTED a0002dec: 0a00001a beq a0002e5c <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { a0002df0: e3570000 cmp r7, #0 <== NOT EXECUTED a0002df4: 0a000010 beq a0002e3c <== NOT EXECUTED a0002df8: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a0002dfc: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002e00: e1530002 cmp r3, r2 <== NOT EXECUTED a0002e04: aa00000c bge a0002e3c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; a0002e08: e59d2000 ldr r2, [sp] <== NOT EXECUTED a0002e0c: e0631002 rsb r1, r3, r2 <== NOT EXECUTED a0002e10: ea000002 b a0002e20 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { a0002e14: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002e18: e1520003 cmp r2, r3 <== NOT EXECUTED a0002e1c: da000006 ble a0002e3c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; a0002e20: e594201c ldr r2, [r4, #28] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { a0002e24: e2577001 subs r7, r7, #1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; a0002e28: e7d22003 ldrb r2, [r2, r3] <== NOT EXECUTED a0002e2c: e7c12003 strb r2, [r1, r3] <== NOT EXECUTED a0002e30: e2833001 add r3, r3, #1 <== NOT EXECUTED a0002e34: 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)) { a0002e38: 1afffff5 bne a0002e14 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; a0002e3c: e59a3010 ldr r3, [sl, #16] <== NOT EXECUTED tty->tty_rcvwakeup = 0; a0002e40: e3a02000 mov r2, #0 <== NOT EXECUTED a0002e44: e58420e4 str r2, [r4, #228] ; 0xe4 <== NOT EXECUTED } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; a0002e48: e0677003 rsb r7, r7, r3 <== NOT EXECUTED a0002e4c: e58a7018 str r7, [sl, #24] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); a0002e50: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0002e54: eb000636 bl a0004734 <== NOT EXECUTED return sc; a0002e58: eaffffdd b a0002dd4 <== 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) a0002e5c: 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; a0002e60: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; a0002e64: e584b020 str fp, [r4, #32] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL a0002e68: 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; a0002e6c: 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; a0002e70: e584b024 str fp, [r4, #36] ; 0x24 <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL a0002e74: 0a000002 beq a0002e84 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) a0002e78: e59420b4 ldr r2, [r4, #180] ; 0xb4 <== NOT EXECUTED a0002e7c: e3520000 cmp r2, #0 <== NOT EXECUTED a0002e80: 0a00005d beq a0002ffc <== 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; a0002e84: e5945074 ldr r5, [r4, #116] ; 0x74 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && a0002e88: e59f625c ldr r6, [pc, #604] ; a00030ec <== 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)) a0002e8c: e3a09c02 mov r9, #512 ; 0x200 <== 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, a0002e90: 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)) a0002e94: 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, a0002e98: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a0002e9c: e3a08001 mov r8, #1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && a0002ea0: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED a0002ea4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0002ea8: e1520003 cmp r2, r3 <== NOT EXECUTED a0002eac: 0a000035 beq a0002f88 <== NOT EXECUTED a0002eb0: e5963000 ldr r3, [r6] <== NOT EXECUTED a0002eb4: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002eb8: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0002ebc: e1520003 cmp r2, r3 <== NOT EXECUTED a0002ec0: aa000030 bge a0002f88 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; a0002ec4: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED a0002ec8: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a0002ecc: e2800001 add r0, r0, #1 <== NOT EXECUTED a0002ed0: eb004fbb bl a0016dc4 <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; a0002ed4: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0002ed8: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; a0002edc: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) a0002ee0: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0002ee4: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED a0002ee8: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a0002eec: e0823003 add r3, r2, r3 <== NOT EXECUTED a0002ef0: e0600003 rsb r0, r0, r3 <== NOT EXECUTED a0002ef4: eb004fb2 bl a0016dc4 <__umodsi3> <== NOT EXECUTED a0002ef8: e59430bc ldr r3, [r4, #188] ; 0xbc <== NOT EXECUTED a0002efc: e1500003 cmp r0, r3 <== NOT EXECUTED a0002f00: 2a000013 bcs a0002f54 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; a0002f04: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) a0002f08: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED a0002f0c: e2833002 add r3, r3, #2 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; a0002f10: e3c22001 bic r2, r2, #1 <== NOT EXECUTED a0002f14: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) a0002f18: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002f1c: e0023003 and r3, r2, r3 <== NOT EXECUTED a0002f20: e1530009 cmp r3, r9 <== NOT EXECUTED a0002f24: 0a000028 beq a0002fcc <== 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) { a0002f28: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002f2c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0002f30: 0a000007 beq a0002f54 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; a0002f34: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { a0002f38: 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; a0002f3c: e3c22004 bic r2, r2, #4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { a0002f40: 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; a0002f44: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { a0002f48: 0a000001 beq a0002f54 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); a0002f4c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002f50: e12fff33 blx r3 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { a0002f54: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0002f58: e3130002 tst r3, #2 <== NOT EXECUTED a0002f5c: 0a000012 beq a0002fac <== NOT EXECUTED if (siproc (c, tty)) a0002f60: e1a00005 mov r0, r5 <== NOT EXECUTED a0002f64: e1a01004 mov r1, r4 <== NOT EXECUTED a0002f68: ebffff13 bl a0002bbc <== NOT EXECUTED a0002f6c: e3500000 cmp r0, #0 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) a0002f70: 13a08000 movne r8, #0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && a0002f74: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED a0002f78: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; a0002f7c: e5945070 ldr r5, [r4, #112] ; 0x70 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && a0002f80: e1520003 cmp r2, r3 <== NOT EXECUTED a0002f84: 1affffc9 bne a0002eb0 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { a0002f88: e3580000 cmp r8, #0 <== NOT EXECUTED a0002f8c: 0affff97 beq a0002df0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, a0002f90: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED a0002f94: e594106c ldr r1, [r4, #108] ; 0x6c <== NOT EXECUTED a0002f98: e1a02005 mov r2, r5 <== NOT EXECUTED a0002f9c: eb00059c bl a0004614 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) a0002fa0: e3500000 cmp r0, #0 <== NOT EXECUTED a0002fa4: 0affffbd beq a0002ea0 <== NOT EXECUTED a0002fa8: eaffff90 b a0002df0 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); a0002fac: e1a00005 mov r0, r5 <== NOT EXECUTED a0002fb0: e1a01004 mov r1, r4 <== NOT EXECUTED a0002fb4: ebffff00 bl a0002bbc <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) a0002fb8: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a0002fbc: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002fc0: e1520003 cmp r2, r3 <== NOT EXECUTED a0002fc4: a3a08000 movge r8, #0 <== NOT EXECUTED a0002fc8: eaffffe9 b a0002f74 <== 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)) a0002fcc: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a0002fd0: e3530000 cmp r3, #0 <== NOT EXECUTED a0002fd4: 0a000002 beq a0002fe4 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { a0002fd8: 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)) a0002fdc: e3130020 tst r3, #32 <== NOT EXECUTED a0002fe0: 0affffd0 beq a0002f28 <== 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, a0002fe4: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002fe8: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED a0002fec: e3a02001 mov r2, #1 <== NOT EXECUTED a0002ff0: e1a0e00f mov lr, pc <== NOT EXECUTED a0002ff4: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a0002ff8: eaffffd5 b a0002f54 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { a0002ffc: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED a0003000: e3120002 tst r2, #2 <== NOT EXECUTED a0003004: 0a00000a beq a0003034 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); a0003008: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000300c: e12fff33 blx r3 <== NOT EXECUTED if (n < 0) { a0003010: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) a0003014: e1a01004 mov r1, r4 <== NOT EXECUTED a0003018: 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) { a000301c: ba00002d blt a00030d8 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) a0003020: ebfffee5 bl a0002bbc <== NOT EXECUTED a0003024: e3500000 cmp r0, #0 <== NOT EXECUTED a0003028: 1affff70 bne a0002df0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { a000302c: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a0003030: eafffff4 b a0003008 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); a0003034: eb0003d3 bl a0003f88 <== NOT EXECUTED a0003038: e1a05000 mov r5, r0 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); a000303c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0003040: e1a0e00f mov lr, pc <== NOT EXECUTED a0003044: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { a0003048: e3500000 cmp r0, #0 <== NOT EXECUTED a000304c: ba00000c blt a0003084 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); a0003050: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a0003054: e1a01004 mov r1, r4 <== NOT EXECUTED a0003058: ebfffed7 bl a0002bbc <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) a000305c: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a0003060: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0003064: e1520003 cmp r2, r3 <== NOT EXECUTED a0003068: aaffff60 bge a0002df0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) a000306c: e3530000 cmp r3, #0 <== NOT EXECUTED a0003070: 0afffff1 beq a000303c <== NOT EXECUTED a0003074: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a0003078: e3530000 cmp r3, #0 <== NOT EXECUTED a000307c: 0affffee beq a000303c <== NOT EXECUTED a0003080: eaffffeb b a0003034 <== 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]) { a0003084: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a0003088: e3530000 cmp r3, #0 <== NOT EXECUTED a000308c: 0a000008 beq a00030b4 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { a0003090: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a0003094: e3530000 cmp r3, #0 <== NOT EXECUTED a0003098: 0a000002 beq a00030a8 <== NOT EXECUTED a000309c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a00030a0: e3530000 cmp r3, #0 <== NOT EXECUTED a00030a4: 1a000005 bne a00030c0 <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); a00030a8: e3a00001 mov r0, #1 <== NOT EXECUTED a00030ac: eb00068b bl a0004ae0 <== NOT EXECUTED a00030b0: eaffffe1 b a000303c <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) a00030b4: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a00030b8: e3530000 cmp r3, #0 <== NOT EXECUTED a00030bc: 0affff4b beq a0002df0 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); a00030c0: eb0003b0 bl a0003f88 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { a00030c4: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a00030c8: e0650000 rsb r0, r5, r0 <== NOT EXECUTED a00030cc: e1500003 cmp r0, r3 <== NOT EXECUTED a00030d0: 9afffff4 bls a00030a8 <== NOT EXECUTED a00030d4: eaffff45 b a0002df0 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); a00030d8: e3a00001 mov r0, #1 <== NOT EXECUTED a00030dc: eb00067f bl a0004ae0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { a00030e0: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a00030e4: eaffffc7 b a0003008 <== NOT EXECUTED a00030e8: a001a6a0 .word 0xa001a6a0 a00030ec: a0018fd4 .word 0xa0018fd4 a0001f6c : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) a0001f6c: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED a0001f70: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a0001f74: e2822001 add r2, r2, #1 <== NOT EXECUTED a0001f78: e3c33fff bic r3, r3, #1020 ; 0x3fc <== NOT EXECUTED a0001f7c: e1a03a83 lsl r3, r3, #21 <== 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) { a0001f80: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) a0001f84: e1a03aa3 lsr r3, r3, #21 <== NOT EXECUTED a0001f88: 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) { a0001f8c: 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)) a0001f90: 0a000045 beq a00020ac <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) a0001f94: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED a0001f98: e2033003 and r3, r3, #3 <== NOT EXECUTED a0001f9c: e3530002 cmp r3, #2 <== NOT EXECUTED a0001fa0: 0a000053 beq a00020f4 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { a0001fa4: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED a0001fa8: e5903084 ldr r3, [r0, #132] ; 0x84 <== NOT EXECUTED a0001fac: e1520003 cmp r2, r3 <== NOT EXECUTED a0001fb0: 0a00002a beq a0002060 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0001fb4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0001fb8: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0001fbc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; a0001fc0: e3a02000 mov r2, #0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; a0001fc4: e5900090 ldr r0, [r0, #144] ; 0x90 <== NOT EXECUTED tty->t_dqlen = 0; a0001fc8: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0001fcc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; a0001fd0: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a0001fd4: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED a0001fd8: e0800003 add r0, r0, r3 <== NOT EXECUTED a0001fdc: eb005378 bl a0016dc4 <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { a0001fe0: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; a0001fe4: e1a05000 mov r5, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; a0001fe8: e5840084 str r0, [r4, #132] ; 0x84 <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { a0001fec: e3530002 cmp r3, #2 <== NOT EXECUTED a0001ff0: 0a00002a beq a00020a0 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { a0001ff4: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED a0001ff8: e1530005 cmp r3, r5 <== NOT EXECUTED a0001ffc: 0a00001d beq a0002078 <== 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)) a0002000: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002004: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED a0002008: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED a000200c: 0a00004a beq a000213c <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) a0002010: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, a0002014: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0002018: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) a000201c: e1550003 cmp r5, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; a0002020: 85946088 ldrhi r6, [r4, #136] ; 0x88 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; a0002024: 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)) { a0002028: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; a000202c: 80656006 rsbhi r6, r5, r6 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; a0002030: 90656006 rsbls r6, r5, r6 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { a0002034: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED a0002038: 13a06001 movne r6, #1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ a000203c: e3a03001 mov r3, #1 <== NOT EXECUTED a0002040: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED (*tty->device.write)(tty->minor, a0002044: e0811005 add r1, r1, r5 <== NOT EXECUTED a0002048: e1a02006 mov r2, r6 <== NOT EXECUTED a000204c: e1a0e00f mov lr, pc <== NOT EXECUTED a0002050: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ a0002054: e5845084 str r5, [r4, #132] ; 0x84 <== NOT EXECUTED } return nToSend; } a0002058: e1a00006 mov r0, r6 <== NOT EXECUTED a000205c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { a0002060: e5903094 ldr r3, [r0, #148] ; 0x94 <== NOT EXECUTED a0002064: e3530002 cmp r3, #2 <== NOT EXECUTED a0002068: 0a00003e beq a0002168 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); a000206c: e3a06000 mov r6, #0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } a0002070: e1a00006 mov r0, r6 <== NOT EXECUTED a0002074: 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) { a0002078: e59430d4 ldr r3, [r4, #212] ; 0xd4 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; a000207c: e3a06000 mov r6, #0 <== NOT EXECUTED a0002080: 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) { a0002084: e1530006 cmp r3, r6 <== NOT EXECUTED a0002088: 01a06003 moveq r6, r3 <== NOT EXECUTED a000208c: 0afffff0 beq a0002054 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); a0002090: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a0002094: e59410d8 ldr r1, [r4, #216] ; 0xd8 <== NOT EXECUTED a0002098: e12fff33 blx r3 <== NOT EXECUTED a000209c: eaffffec b a0002054 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); a00020a0: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a00020a4: eb0009a2 bl a0004734 <== NOT EXECUTED a00020a8: eaffffd1 b a0001ff4 <== 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, a00020ac: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED a00020b0: e3a02001 mov r2, #1 <== NOT EXECUTED a00020b4: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a00020b8: e1a0e00f mov lr, pc <== NOT EXECUTED a00020bc: 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 ( a00020c0: e10f3000 mrs r3, CPSR <== NOT EXECUTED a00020c4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a00020c8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; a00020cc: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; a00020d0: 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--; a00020d4: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; a00020d8: e3811002 orr r1, r1, #2 <== NOT EXECUTED a00020dc: 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--; a00020e0: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a00020e4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00020e8: e3a06001 mov r6, #1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } a00020ec: e1a00006 mov r0, r6 <== NOT EXECUTED a00020f0: 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, a00020f4: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED a00020f8: e3a02001 mov r2, #1 <== NOT EXECUTED a00020fc: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a0002100: e1a0e00f mov lr, pc <== NOT EXECUTED a0002104: 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 ( a0002108: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000210c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0002110: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; a0002114: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; a0002118: 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--; a000211c: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; a0002120: e3c11002 bic r1, r1, #2 <== NOT EXECUTED a0002124: 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--; a0002128: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a000212c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0002130: e3a06001 mov r6, #1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } a0002134: e1a00006 mov r0, r6 <== NOT EXECUTED a0002138: 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 ( a000213c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0002140: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0002144: 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; a0002148: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ a000214c: e3a01001 mov r1, #1 <== NOT EXECUTED a0002150: e5841094 str r1, [r4, #148] ; 0x94 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; a0002154: e3822020 orr r2, r2, #32 <== NOT EXECUTED a0002158: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a000215c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0002160: e3a06000 mov r6, #0 <== NOT EXECUTED a0002164: eaffffba b a0002054 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); a0002168: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED a000216c: eb000970 bl a0004734 <== NOT EXECUTED a0002170: e3a06000 mov r6, #0 <== NOT EXECUTED a0002174: eaffffbd b a0002070 <== NOT EXECUTED a0003b9c : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { a0003b9c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a0003ba0: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0003ba4: e1a04000 mov r4, r0 <== NOT EXECUTED a0003ba8: e28d7007 add r7, sp, #7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | a0003bac: e3a06000 mov r6, #0 <== NOT EXECUTED a0003bb0: e1a0300d mov r3, sp <== NOT EXECUTED a0003bb4: e3a01002 mov r1, #2 <== NOT EXECUTED a0003bb8: e3a02000 mov r2, #0 <== NOT EXECUTED a0003bbc: e3a00003 mov r0, #3 <== NOT EXECUTED a0003bc0: eb000110 bl a0004008 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { a0003bc4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0003bc8: e3130001 tst r3, #1 <== NOT EXECUTED a0003bcc: 1a000012 bne a0003c1c <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); a0003bd0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0003bd4: e1a0e00f mov lr, pc <== NOT EXECUTED a0003bd8: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (c != EOF) { a0003bdc: e3700001 cmn r0, #1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); a0003be0: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { a0003be4: 0afffff1 beq a0003bb0 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( a0003be8: e1a01007 mov r1, r7 <== NOT EXECUTED a0003bec: e3a02001 mov r2, #1 <== NOT EXECUTED a0003bf0: 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; a0003bf4: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( a0003bf8: ebfff978 bl a00021e0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | a0003bfc: e1a0300d mov r3, sp <== NOT EXECUTED a0003c00: e3a01002 mov r1, #2 <== NOT EXECUTED a0003c04: e3a02000 mov r2, #0 <== NOT EXECUTED a0003c08: e3a00003 mov r0, #3 <== NOT EXECUTED a0003c0c: eb0000fd bl a0004008 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { a0003c10: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0003c14: e3130001 tst r3, #1 <== NOT EXECUTED a0003c18: 0affffec beq a0003bd0 <== NOT EXECUTED tty->rxTaskId = 0; a0003c1c: e58460c4 str r6, [r4, #196] ; 0xc4 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); a0003c20: e1a00006 mov r0, r6 <== NOT EXECUTED a0003c24: eb00033a bl a0004914 <== NOT EXECUTED a0003c28: eaffffe0 b a0003bb0 <== NOT EXECUTED a0001f60 : 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); a0001f60: e59000c4 ldr r0, [r0, #196] ; 0xc4 <== NOT EXECUTED a0001f64: e3a01002 mov r1, #2 <== NOT EXECUTED a0001f68: ea000883 b a000417c <== NOT EXECUTED a0003b2c : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { a0003b2c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a0003b30: e59f6060 ldr r6, [pc, #96] ; a0003b98 <== NOT EXECUTED a0003b34: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0003b38: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | a0003b3c: e3a07000 mov r7, #0 <== NOT EXECUTED a0003b40: e1a0300d mov r3, sp <== NOT EXECUTED a0003b44: e3a01002 mov r1, #2 <== NOT EXECUTED a0003b48: e3a02000 mov r2, #0 <== NOT EXECUTED a0003b4c: e3a00003 mov r0, #3 <== NOT EXECUTED a0003b50: eb00012c bl a0004008 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { a0003b54: e59d3000 ldr r3, [sp] <== NOT EXECUTED else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { rtems_termios_linesw[tty->t_line].l_start(tty); a0003b58: 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) { a0003b5c: e3130001 tst r3, #1 <== NOT EXECUTED a0003b60: 1a000008 bne a0003b88 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { a0003b64: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED a0003b68: e0863283 add r3, r6, r3, lsl #5 <== NOT EXECUTED a0003b6c: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a0003b70: e3530000 cmp r3, #0 <== NOT EXECUTED a0003b74: 0a000000 beq a0003b7c <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); a0003b78: e12fff33 blx r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); a0003b7c: e1a00004 mov r0, r4 <== NOT EXECUTED a0003b80: ebfff8f9 bl a0001f6c <== NOT EXECUTED a0003b84: eaffffed b a0003b40 <== 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; a0003b88: e58470c8 str r7, [r4, #200] ; 0xc8 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); a0003b8c: e1a00007 mov r0, r7 <== NOT EXECUTED a0003b90: eb00035f bl a0004914 <== NOT EXECUTED a0003b94: eaffffe9 b a0003b40 <== NOT EXECUTED a0003b98: a001a6a0 .word 0xa001a6a0 a0002c1c : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0002c1c: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { a0002c20: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0002c24: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002c28: e3a01000 mov r1, #0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { a0002c2c: 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); a0002c30: e1a02001 mov r2, r1 a0002c34: e5940018 ldr r0, [r4, #24] a0002c38: eb000675 bl a0004614 if (sc != RTEMS_SUCCESSFUL) a0002c3c: e2506000 subs r6, r0, #0 a0002c40: 1a00000b bne a0002c74 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { a0002c44: e59420cc ldr r2, [r4, #204] ; 0xcc a0002c48: e59f3094 ldr r3, [pc, #148] ; a0002ce4 a0002c4c: e0833282 add r3, r3, r2, lsl #5 a0002c50: e593300c ldr r3, [r3, #12] a0002c54: e3530000 cmp r3, #0 a0002c58: 0a000007 beq a0002c7c sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); a0002c5c: e1a01005 mov r1, r5 <== NOT EXECUTED a0002c60: e1a00004 mov r0, r4 <== NOT EXECUTED a0002c64: e12fff33 blx r3 <== NOT EXECUTED a0002c68: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); a0002c6c: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0002c70: eb0006af bl a0004734 <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } a0002c74: e1a00006 mov r0, r6 <== NOT EXECUTED a0002c78: 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) { a0002c7c: e5943034 ldr r3, [r4, #52] ; 0x34 a0002c80: e3130001 tst r3, #1 a0002c84: 0a000011 beq a0002cd0 uint32_t count = args->count; a0002c88: e5958010 ldr r8, [r5, #16] char *buffer = args->buffer; a0002c8c: e595a00c ldr sl, [r5, #12] while (count--) a0002c90: e3580000 cmp r8, #0 a0002c94: 01a03006 moveq r3, r6 a0002c98: 0a000007 beq a0002cbc a0002c9c: e1a07006 mov r7, r6 oproc (*buffer++, tty); a0002ca0: e7da0007 ldrb r0, [sl, r7] a0002ca4: e1a01004 mov r1, r4 a0002ca8: e2877001 add r7, r7, #1 a0002cac: ebfffe4f bl a00025f0 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) a0002cb0: e1580007 cmp r8, r7 a0002cb4: 1afffff9 bne a0002ca0 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; a0002cb8: e5953010 ldr r3, [r5, #16] a0002cbc: e5853018 str r3, [r5, #24] } rtems_semaphore_release (tty->osem); a0002cc0: e5940018 ldr r0, [r4, #24] a0002cc4: eb00069a bl a0004734 return sc; } a0002cc8: e1a00006 mov r0, r6 a0002ccc: 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); a0002cd0: e595000c ldr r0, [r5, #12] <== NOT EXECUTED a0002cd4: e5951010 ldr r1, [r5, #16] <== NOT EXECUTED a0002cd8: e1a02004 mov r2, r4 <== NOT EXECUTED a0002cdc: ebfffdfb bl a00024d0 <== NOT EXECUTED a0002ce0: eafffff4 b a0002cb8 <== NOT EXECUTED a0002ce4: a001a6a0 .word 0xa001a6a0 a0006284 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { a0006284: 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) a0006288: 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 ) { a000628c: e1a04000 mov r4, r0 <== NOT EXECUTED a0006290: e1a09001 mov r9, r1 <== NOT EXECUTED a0006294: e1a07002 mov r7, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) a0006298: 0a00000c beq a00062d0 <== NOT EXECUTED { if (rtems_panic_in_progress++) a000629c: e59f2180 ldr r2, [pc, #384] ; a0006424 <== NOT EXECUTED a00062a0: e5923000 ldr r3, [r2] <== NOT EXECUTED a00062a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00062a8: e2833001 add r3, r3, #1 <== NOT EXECUTED a00062ac: e5823000 str r3, [r2] <== NOT EXECUTED a00062b0: 0a000004 beq a00062c8 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a00062b4: e59f316c ldr r3, [pc, #364] ; a0006428 <== NOT EXECUTED a00062b8: e5931000 ldr r1, [r3] <== NOT EXECUTED a00062bc: e2811001 add r1, r1, #1 <== NOT EXECUTED a00062c0: e5831000 str r1, [r3] <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); a00062c4: e5923000 ldr r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) a00062c8: e3530002 cmp r3, #2 <== NOT EXECUTED a00062cc: ca00002f bgt a0006390 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ a00062d0: e59f5154 ldr r5, [pc, #340] ; a000642c <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; a00062d4: e3c4a207 bic sl, r4, #1879048192 ; 0x70000000 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ a00062d8: e5953000 ldr r3, [r5] <== NOT EXECUTED a00062dc: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a00062e0: eb00392e bl a00147a0 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ a00062e4: e2146101 ands r6, r4, #1073741824 ; 0x40000000 <== NOT EXECUTED a00062e8: 1a00002e bne a00063a8 <== 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); a00062ec: e5953000 ldr r3, [r5] <== NOT EXECUTED a00062f0: e1a02007 mov r2, r7 <== NOT EXECUTED a00062f4: e1a01009 mov r1, r9 <== NOT EXECUTED a00062f8: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a00062fc: eb005148 bl a001a824 <== NOT EXECUTED if (status) a0006300: 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); a0006304: e1a07000 mov r7, r0 <== NOT EXECUTED if (status) a0006308: 1a000030 bne a00063d0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) a000630c: e3560000 cmp r6, #0 <== NOT EXECUTED a0006310: 0a00000b beq a0006344 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) a0006314: da000004 ble a000632c <== NOT EXECUTED a0006318: e1a00006 mov r0, r6 <== NOT EXECUTED a000631c: eb003cf0 bl a00156e4 <== NOT EXECUTED a0006320: e5d03000 ldrb r3, [r0] <== NOT EXECUTED a0006324: e3530000 cmp r3, #0 <== NOT EXECUTED a0006328: 1a000033 bne a00063fc <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); a000632c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006330: e59f10f8 ldr r1, [pc, #248] ; a0006430 <== NOT EXECUTED a0006334: e1a02006 mov r2, r6 <== NOT EXECUTED a0006338: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000633c: eb0039d5 bl a0014a98 <== NOT EXECUTED a0006340: e0877000 add r7, r7, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); a0006344: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006348: e59f10e4 ldr r1, [pc, #228] ; a0006434 <== NOT EXECUTED a000634c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a0006350: eb0039d0 bl a0014a98 <== NOT EXECUTED (void) fflush(stderr); a0006354: 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"); a0006358: e1a0a000 mov sl, r0 <== NOT EXECUTED (void) fflush(stderr); a000635c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a0006360: eb00390e bl a00147a0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) a0006364: e3140203 tst r4, #805306368 ; 0x30000000 <== NOT EXECUTED a0006368: 0a000006 beq a0006388 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) a000636c: e3580000 cmp r8, #0 <== NOT EXECUTED a0006370: 0a000008 beq a0006398 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); a0006374: e3a00000 mov r0, #0 <== NOT EXECUTED a0006378: e59f10b8 ldr r1, [pc, #184] ; a0006438 <== NOT EXECUTED a000637c: eb00003e bl a000647c <== NOT EXECUTED _exit(local_errno); a0006380: e1a00006 mov r0, r6 <== NOT EXECUTED a0006384: eb00031f bl a0007008 <_exit> <== 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"); a0006388: e08a0007 add r0, sl, r7 <== NOT EXECUTED a000638c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); abort(); a0006390: e3a00000 mov r0, #0 <== NOT EXECUTED } } return chars_written; } a0006394: 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"); a0006398: e59f109c ldr r1, [pc, #156] ; a000643c <== NOT EXECUTED a000639c: e1a00008 mov r0, r8 <== NOT EXECUTED a00063a0: eb000035 bl a000647c <== NOT EXECUTED abort(); a00063a4: eb003801 bl a00143b0 <== 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; a00063a8: eb003809 bl a00143d4 <__errno> <== 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); a00063ac: e5953000 ldr r3, [r5] <== 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; a00063b0: e5906000 ldr r6, [r0] <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); a00063b4: e1a02007 mov r2, r7 <== NOT EXECUTED a00063b8: e1a01009 mov r1, r9 <== NOT EXECUTED a00063bc: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a00063c0: eb005117 bl a001a824 <== NOT EXECUTED if (status) a00063c4: 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); a00063c8: e1a07000 mov r7, r0 <== NOT EXECUTED if (status) a00063cc: 0affffce beq a000630c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); a00063d0: e59f3054 ldr r3, [pc, #84] ; a000642c <== NOT EXECUTED a00063d4: e1a0000a mov r0, sl <== NOT EXECUTED a00063d8: e5933000 ldr r3, [r3] <== NOT EXECUTED a00063dc: e593a00c ldr sl, [r3, #12] <== NOT EXECUTED a00063e0: ebffffa3 bl a0006274 <== NOT EXECUTED a00063e4: e59f1054 ldr r1, [pc, #84] ; a0006440 <== NOT EXECUTED a00063e8: e1a02000 mov r2, r0 <== NOT EXECUTED a00063ec: e1a0000a mov r0, sl <== NOT EXECUTED a00063f0: eb0039a8 bl a0014a98 <== NOT EXECUTED a00063f4: e0877000 add r7, r7, r0 <== NOT EXECUTED a00063f8: eaffffc3 b a000630c <== NOT EXECUTED if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); a00063fc: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006400: e1a00006 mov r0, r6 <== NOT EXECUTED a0006404: e593a00c ldr sl, [r3, #12] <== NOT EXECUTED a0006408: eb003cb5 bl a00156e4 <== NOT EXECUTED a000640c: e59f1030 ldr r1, [pc, #48] ; a0006444 <== NOT EXECUTED a0006410: e1a02000 mov r2, r0 <== NOT EXECUTED a0006414: e1a0000a mov r0, sl <== NOT EXECUTED a0006418: eb00399e bl a0014a98 <== NOT EXECUTED a000641c: 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)) a0006420: eaffffc7 b a0006344 <== NOT EXECUTED a0006424: a0025f84 .word 0xa0025f84 a0006428: a002610c .word 0xa002610c a000642c: a00230fc .word 0xa00230fc a0006430: a0024c00 .word 0xa0024c00 a0006434: a0024b78 .word 0xa0024b78 a0006438: a0024c18 .word 0xa0024c18 a000643c: a0024c30 .word 0xa0024c30 a0006440: a0024be0 .word 0xa0024be0 a0006444: a0024bf0 .word 0xa0024bf0 a0025928 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { a0025928: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a002592c: e59fb0f0 ldr fp, [pc, #240] ; a0025a24 limit++; continue; } sign = 1; } if (!isdigit(c)) a0025930: e59fa0f0 ldr sl, [pc, #240] ; a0025a28 return 0; d = c - '0'; if ((i > (limit / 10)) a0025934: e59f90f0 ldr r9, [pc, #240] ; a0025a2c /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { a0025938: e24dd004 sub sp, sp, #4 a002593c: e3a06000 mov r6, #0 a0025940: e1a04000 mov r4, r0 a0025944: e58d1000 str r1, [sp] a0025948: e3e07102 mvn r7, #-2147483648 ; 0x80000000 a002594c: e1a05006 mov r5, r6 return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; a0025950: e3a0800a mov r8, #10 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a0025954: e5943004 ldr r3, [r4, #4] a0025958: e2433001 sub r3, r3, #1 a002595c: e3530000 cmp r3, #0 a0025960: e5843004 str r3, [r4, #4] a0025964: ba00001b blt a00259d8 a0025968: e5943000 ldr r3, [r4] a002596c: e4d30001 ldrb r0, [r3], #1 if (c == ':') a0025970: e350003a cmp r0, #58 ; 0x3a unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a0025974: e5843000 str r3, [r4] if (c == ':') a0025978: 0a00001b beq a00259ec break; if (sign == 0) { a002597c: e3560000 cmp r6, #0 a0025980: 1a000004 bne a0025998 if (c == '-') { a0025984: e350002d cmp r0, #45 ; 0x2d sign = -1; limit++; a0025988: 02877001 addeq r7, r7, #1 a002598c: 03e06000 mvneq r6, #0 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { a0025990: 0affffef beq a0025954 sign = -1; limit++; continue; a0025994: e3a06001 mov r6, #1 } sign = 1; } if (!isdigit(c)) a0025998: e59a3000 ldr r3, [sl] a002599c: e0833000 add r3, r3, r0 a00259a0: e5d33001 ldrb r3, [r3, #1] a00259a4: e3130004 tst r3, #4 a00259a8: 0a00001a beq a0025a18 return 0; d = c - '0'; if ((i > (limit / 10)) a00259ac: e0832799 umull r2, r3, r9, r7 a00259b0: e15501a3 cmp r5, r3, lsr #3 a00259b4: 8a000017 bhi a0025a18 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; a00259b8: e2400030 sub r0, r0, #48 ; 0x30 if ((i > (limit / 10)) a00259bc: 0a000011 beq a0025a08 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a00259c0: e5943004 ldr r3, [r4, #4] return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; a00259c4: e0250598 mla r5, r8, r5, r0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a00259c8: e2433001 sub r3, r3, #1 a00259cc: e3530000 cmp r3, #0 a00259d0: e5843004 str r3, [r4, #4] a00259d4: aaffffe3 bge a0025968 a00259d8: e59b0000 ldr r0, [fp] <== NOT EXECUTED a00259dc: e1a01004 mov r1, r4 <== NOT EXECUTED a00259e0: eb0078e7 bl a0043d84 <__srget_r> <== NOT EXECUTED if (c == ':') a00259e4: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED a00259e8: 1affffe3 bne a002597c <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) a00259ec: e3560000 cmp r6, #0 a00259f0: 0a000008 beq a0025a18 return 0; *val = i * sign; a00259f4: e0030695 mul r3, r5, r6 a00259f8: e59d2000 ldr r2, [sp] a00259fc: e3a00001 mov r0, #1 a0025a00: e5823000 str r3, [r2] return 1; a0025a04: ea000004 b a0025a1c sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) a0025a08: e0030598 mul r3, r8, r5 <== NOT EXECUTED a0025a0c: e0633007 rsb r3, r3, r7 <== NOT EXECUTED a0025a10: e1500003 cmp r0, r3 <== NOT EXECUTED a0025a14: 9affffe9 bls a00259c0 <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; a0025a18: e3a00000 mov r0, #0 <== NOT EXECUTED } a0025a1c: e28dd004 add sp, sp, #4 a0025a20: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} a0025a24: a0059454 .word 0xa0059454 a0025a28: a0059448 .word 0xa0059448 a0025a2c: cccccccd .word 0xcccccccd a0025a30 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { a0025a30: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0025a34: e1a05002 mov r5, r2 int c; *name = *bufp; a0025a38: 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) { a0025a3c: e59d7018 ldr r7, [sp, #24] int c; *name = *bufp; for (;;) { c = getc(fp); a0025a40: e59f60c8 ldr r6, [pc, #200] ; a0025b10 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; a0025a44: e5812000 str r2, [r1] /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { a0025a48: e1a04000 mov r4, r0 a0025a4c: e1a08003 mov r8, r3 a0025a50: ea000013 b a0025aa4 int c; *name = *bufp; for (;;) { c = getc(fp); a0025a54: e5943000 ldr r3, [r4] a0025a58: e4d30001 ldrb r0, [r3], #1 if (c == ':') { a0025a5c: e350003a cmp r0, #58 ; 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); a0025a60: e5843000 str r3, [r4] if (c == ':') { a0025a64: 0a000018 beq a0025acc if (nlFlag) return 0; break; } if (c == '\n') { a0025a68: e350000a cmp r0, #10 a0025a6c: 0a000023 beq a0025b00 if (!nlFlag) return 0; break; } if (c == EOF) a0025a70: e3700001 cmn r0, #1 a0025a74: 0a000023 beq a0025b08 return 0; if (*nleft < 2) a0025a78: e5983000 ldr r3, [r8] a0025a7c: e3530001 cmp r3, #1 a0025a80: 9a000020 bls a0025b08 return 0; **bufp = c; a0025a84: e5953000 ldr r3, [r5] a0025a88: e5c30000 strb r0, [r3] ++(*bufp); a0025a8c: e5952000 ldr r2, [r5] --(*nleft); a0025a90: e5983000 ldr r3, [r8] if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); a0025a94: e2822001 add r2, r2, #1 --(*nleft); a0025a98: e2433001 sub r3, r3, #1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); a0025a9c: e5852000 str r2, [r5] --(*nleft); a0025aa0: e5883000 str r3, [r8] { int c; *name = *bufp; for (;;) { c = getc(fp); a0025aa4: e5943004 ldr r3, [r4, #4] a0025aa8: e2433001 sub r3, r3, #1 a0025aac: e3530000 cmp r3, #0 a0025ab0: e5843004 str r3, [r4, #4] a0025ab4: aaffffe6 bge a0025a54 a0025ab8: e5960000 ldr r0, [r6] a0025abc: e1a01004 mov r1, r4 a0025ac0: eb0078af bl a0043d84 <__srget_r> if (c == ':') { a0025ac4: e350003a cmp r0, #58 ; 0x3a a0025ac8: 1affffe6 bne a0025a68 if (nlFlag) a0025acc: e3570000 cmp r7, #0 a0025ad0: 1a00000c bne a0025b08 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; a0025ad4: e5953000 ldr r3, [r5] a0025ad8: e3a02000 mov r2, #0 ++(*bufp); --(*nleft); a0025adc: e3a00001 mov r0, #1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; a0025ae0: e5c32000 strb r2, [r3] ++(*bufp); a0025ae4: e5952000 ldr r2, [r5] --(*nleft); a0025ae8: e5983000 ldr r3, [r8] **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); a0025aec: e0822000 add r2, r2, r0 --(*nleft); a0025af0: e2433001 sub r3, r3, #1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); a0025af4: e5852000 str r2, [r5] --(*nleft); a0025af8: e5883000 str r3, [r8] return 1; a0025afc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) a0025b00: e3570000 cmp r7, #0 a0025b04: 1afffff2 bne a0025ad4 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; a0025b08: e3a00000 mov r0, #0 <== NOT EXECUTED } a0025b0c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a0025b10: a0059454 .word 0xa0059454 a0025b14 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { a0025b14: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0025b18: e24dd014 sub sp, sp, #20 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0025b1c: e28d5008 add r5, sp, #8 a0025b20: e28d4004 add r4, sp, #4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { a0025b24: e58d2008 str r2, [sp, #8] a0025b28: e58d3004 str r3, [sp, #4] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0025b2c: e3a06000 mov r6, #0 a0025b30: e1a02005 mov r2, r5 a0025b34: e1a03004 mov r3, r4 a0025b38: e58d6000 str r6, [sp] FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { a0025b3c: e1a07000 mov r7, r0 a0025b40: e1a08001 mov r8, r1 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0025b44: ebffffb9 bl a0025a30 a0025b48: e1500006 cmp r0, r6 a0025b4c: 1a000002 bne a0025b5c *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; a0025b50: e3a00000 mov r0, #0 <== NOT EXECUTED } a0025b54: e28dd014 add sp, sp, #20 a0025b58: 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) a0025b5c: e1a00007 mov r0, r7 a0025b60: e2881004 add r1, r8, #4 a0025b64: e1a02005 mov r2, r5 a0025b68: e1a03004 mov r3, r4 a0025b6c: e58d6000 str r6, [sp] a0025b70: ebffffae bl a0025a30 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0025b74: e1500006 cmp r0, r6 a0025b78: 0afffff4 beq a0025b50 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) a0025b7c: e1a00007 mov r0, r7 a0025b80: e28d1010 add r1, sp, #16 a0025b84: ebffff67 bl a0025928 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0025b88: e1500006 cmp r0, r6 a0025b8c: 0affffef beq a0025b50 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) a0025b90: e1a03004 mov r3, r4 a0025b94: e1a00007 mov r0, r7 a0025b98: e1a02005 mov r2, r5 a0025b9c: e3a04001 mov r4, #1 a0025ba0: e28d100c add r1, sp, #12 a0025ba4: e58d4000 str r4, [sp] a0025ba8: ebffffa0 bl a0025a30 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0025bac: e1500006 cmp r0, r6 a0025bb0: 0affffe6 beq a0025b50 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; a0025bb4: e1dd31b0 ldrh r3, [sp, #16] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025bb8: 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; a0025bbc: e1c830b8 strh r3, [r8, #8] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025bc0: e5d13000 ldrb r3, [r1] a0025bc4: e1530006 cmp r3, r6 a0025bc8: 03a04017 moveq r4, #23 a0025bcc: 0a000007 beq a0025bf0 a0025bd0: e1a02001 mov r2, r1 if(*cp == ',') a0025bd4: e353002c cmp r3, #44 ; 0x2c grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025bd8: e5f23001 ldrb r3, [r2, #1]! if(*cp == ',') memcount++; a0025bdc: 02844001 addeq r4, r4, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025be0: e3530000 cmp r3, #0 a0025be4: 1afffffa bne a0025bd4 a0025be8: e1a04104 lsl r4, r4, #2 a0025bec: e2844013 add r4, r4, #19 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) a0025bf0: e59d3004 ldr r3, [sp, #4] a0025bf4: e1530004 cmp r3, r4 a0025bf8: 3affffd4 bcc a0025b50 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); a0025bfc: e59d3008 ldr r3, [sp, #8] a0025c00: e283300f add r3, r3, #15 a0025c04: e3c3300f bic r3, r3, #15 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; a0025c08: e5831000 str r1, [r3] for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025c0c: e59d200c ldr r2, [sp, #12] /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); a0025c10: e588300c str r3, [r8, #12] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025c14: e5d23000 ldrb r3, [r2] a0025c18: e3530000 cmp r3, #0 a0025c1c: 03a01004 moveq r1, #4 a0025c20: 0a00000b beq a0025c54 a0025c24: e2822001 add r2, r2, #1 a0025c28: e3a01001 mov r1, #1 if(*cp == ',') { *cp = '\0'; a0025c2c: e3a00000 mov r0, #0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { a0025c30: e353002c cmp r3, #44 ; 0x2c *cp = '\0'; a0025c34: 05420001 strbeq r0, [r2, #-1] grp->gr_mem[memcount++] = cp + 1; a0025c38: 0598300c ldreq r3, [r8, #12] a0025c3c: 07832101 streq r2, [r3, r1, lsl #2] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025c40: e4d23001 ldrb r3, [r2], #1 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; a0025c44: 02811001 addeq r1, r1, #1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0025c48: e3530000 cmp r3, #0 a0025c4c: 1afffff7 bne a0025c30 a0025c50: e1a01101 lsl r1, r1, #2 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; a0025c54: e598300c ldr r3, [r8, #12] a0025c58: e3a02000 mov r2, #0 a0025c5c: e3a00001 mov r0, #1 a0025c60: e7832001 str r2, [r3, r1] return 1; a0025c64: eaffffba b a0025b54 a0025ca8 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { a0025ca8: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0025cac: e24dd014 sub sp, sp, #20 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025cb0: e28d5008 add r5, sp, #8 a0025cb4: e28d4004 add r4, sp, #4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { a0025cb8: e58d2008 str r2, [sp, #8] a0025cbc: e58d3004 str r3, [sp, #4] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025cc0: e3a06000 mov r6, #0 a0025cc4: e1a02005 mov r2, r5 a0025cc8: e1a03004 mov r3, r4 a0025ccc: e58d6000 str r6, [sp] FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { a0025cd0: e1a07000 mov r7, r0 a0025cd4: e1a08001 mov r8, r1 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025cd8: ebffff54 bl a0025a30 a0025cdc: e1500006 cmp r0, r6 a0025ce0: 1a000002 bne a0025cf0 || !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; a0025ce4: e3a00000 mov r0, #0 <== NOT EXECUTED } a0025ce8: e28dd014 add sp, sp, #20 a0025cec: 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) a0025cf0: e1a00007 mov r0, r7 a0025cf4: e2881004 add r1, r8, #4 a0025cf8: e1a02005 mov r2, r5 a0025cfc: e1a03004 mov r3, r4 a0025d00: e58d6000 str r6, [sp] a0025d04: ebffff49 bl a0025a30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025d08: e1500006 cmp r0, r6 a0025d0c: 0afffff4 beq a0025ce4 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) a0025d10: e1a00007 mov r0, r7 a0025d14: e28d1010 add r1, sp, #16 a0025d18: ebffff02 bl a0025928 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025d1c: e1500006 cmp r0, r6 a0025d20: 0affffef beq a0025ce4 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) a0025d24: e1a00007 mov r0, r7 a0025d28: e28d100c add r1, sp, #12 a0025d2c: ebfffefd bl a0025928 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025d30: e1500006 cmp r0, r6 a0025d34: 0affffea beq a0025ce4 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) a0025d38: e1a00007 mov r0, r7 a0025d3c: e288100c add r1, r8, #12 a0025d40: e1a02005 mov r2, r5 a0025d44: e1a03004 mov r3, r4 a0025d48: e58d6000 str r6, [sp] a0025d4c: ebffff37 bl a0025a30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025d50: e1500006 cmp r0, r6 a0025d54: 0affffe2 beq a0025ce4 || !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) a0025d58: e1a00007 mov r0, r7 a0025d5c: e2881010 add r1, r8, #16 a0025d60: e1a02005 mov r2, r5 a0025d64: e1a03004 mov r3, r4 a0025d68: e58d6000 str r6, [sp] a0025d6c: ebffff2f bl a0025a30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025d70: e1500006 cmp r0, r6 a0025d74: 0affffda beq a0025ce4 || !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) a0025d78: e1a00007 mov r0, r7 a0025d7c: e2881014 add r1, r8, #20 a0025d80: e1a02005 mov r2, r5 a0025d84: e1a03004 mov r3, r4 a0025d88: e58d6000 str r6, [sp] a0025d8c: ebffff27 bl a0025a30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025d90: e1500006 cmp r0, r6 a0025d94: 0affffd2 beq a0025ce4 || !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)) a0025d98: e1a03004 mov r3, r4 a0025d9c: e1a00007 mov r0, r7 a0025da0: e1a02005 mov r2, r5 a0025da4: e3a04001 mov r4, #1 a0025da8: e2881018 add r1, r8, #24 a0025dac: e58d4000 str r4, [sp] a0025db0: ebffff1e bl a0025a30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0025db4: e1500006 cmp r0, r6 a0025db8: 0affffc9 beq a0025ce4 || !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; a0025dbc: e1dd30bc ldrh r3, [sp, #12] a0025dc0: e1a00004 mov r0, r4 a0025dc4: 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; a0025dc8: e1dd31b0 ldrh r3, [sp, #16] a0025dcc: e1c830b8 strh r3, [r8, #8] pwd->pw_gid = pwgid; return 1; a0025dd0: eaffffc4 b a0025ce8 a0005054 : int sched_get_priority_min( int policy ) { switch ( policy ) { a0005054: e3500004 cmp r0, #4 #include int sched_get_priority_min( int policy ) { a0005058: e52de004 push {lr} ; (str lr, [sp, #-4]!) switch ( policy ) { a000505c: 9a000004 bls a0005074 case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); a0005060: eb002550 bl a000e5a8 <__errno> a0005064: e3a03016 mov r3, #22 a0005068: e5803000 str r3, [r0] a000506c: e3e00000 mvn r0, #0 } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } a0005070: e49df004 pop {pc} ; (ldr pc, [sp], #4) int sched_get_priority_min( int policy ) { switch ( policy ) { a0005074: e3a03001 mov r3, #1 a0005078: e1a00013 lsl r0, r3, r0 a000507c: e3100017 tst r0, #23 a0005080: 11a00003 movne r0, r3 a0005084: 149df004 popne {pc} ; (ldrne pc, [sp], #4) case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); a0005088: eb002546 bl a000e5a8 <__errno> <== NOT EXECUTED a000508c: e3a03016 mov r3, #22 <== NOT EXECUTED a0005090: e5803000 str r3, [r0] <== NOT EXECUTED a0005094: e3e00000 mvn r0, #0 <== NOT EXECUTED } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } a0005098: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a00075c8 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { a00075c8: e92d4010 push {r4, lr} a00075cc: e24dd004 sub sp, sp, #4 a00075d0: 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 ); a00075d4: e1a00001 mov r0, r1 a00075d8: e1a0100d mov r1, sp a00075dc: eb001643 bl a000cef0 <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) a00075e0: e3500003 cmp r0, #3 a00075e4: 0a000005 beq a0007600 do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); a00075e8: e1a00004 mov r0, r4 <== NOT EXECUTED a00075ec: e3a01000 mov r1, #0 <== NOT EXECUTED a00075f0: e59d2000 ldr r2, [sp] <== NOT EXECUTED a00075f4: eb0018ff bl a000d9f8 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED break; } } return lock_status; } a00075f8: e28dd004 add sp, sp, #4 a00075fc: 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 ); a0007600: e1a00004 mov r0, r4 a0007604: e3a01001 mov r1, #1 a0007608: e59d2000 ldr r2, [sp] a000760c: eb0018f9 bl a000d9f8 <_POSIX_Semaphore_Wait_support> a0007610: eafffff8 b a00075f8 a00258d0 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; a00258d0: e59f300c ldr r3, [pc, #12] ; a00258e4 <== NOT EXECUTED a00258d4: e5933000 ldr r3, [r3] <== NOT EXECUTED a00258d8: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED return 0; } a00258dc: e3a00000 mov r0, #0 <== NOT EXECUTED a00258e0: e12fff1e bx lr <== NOT EXECUTED a00258e4: a0058c2c .word 0xa0058c2c a0025ef8 : return NULL; return &grent; } void setgrent(void) { a0025ef8: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) a0025efc: e59f4024 ldr r4, [pc, #36] ; a0025f28 <== NOT EXECUTED return &grent; } void setgrent(void) { init_etc_passwd_group(); a0025f00: ebffffc3 bl a0025e14 <== NOT EXECUTED if (group_fp != NULL) a0025f04: e5940000 ldr r0, [r4] <== NOT EXECUTED a0025f08: e3500000 cmp r0, #0 <== NOT EXECUTED a0025f0c: 0a000000 beq a0025f14 <== NOT EXECUTED fclose(group_fp); a0025f10: eb0062e9 bl a003eabc <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); a0025f14: e59f0010 ldr r0, [pc, #16] ; a0025f2c <== NOT EXECUTED a0025f18: e59f1010 ldr r1, [pc, #16] ; a0025f30 <== NOT EXECUTED a0025f1c: eb006509 bl a003f348 <== NOT EXECUTED a0025f20: e5840000 str r0, [r4] <== NOT EXECUTED } a0025f24: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0025f28: a0067384 .word 0xa0067384 a0025f2c: a005cf60 .word 0xa005cf60 a0025f30: a005f868 .word 0xa005f868 a00260f4 : return NULL; return &pwent; } void setpwent(void) { a00260f4: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) a00260f8: e59f4024 ldr r4, [pc, #36] ; a0026124 <== NOT EXECUTED return &pwent; } void setpwent(void) { init_etc_passwd_group(); a00260fc: ebffff44 bl a0025e14 <== NOT EXECUTED if (passwd_fp != NULL) a0026100: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED a0026104: e3500000 cmp r0, #0 <== NOT EXECUTED a0026108: 0a000000 beq a0026110 <== NOT EXECUTED fclose(passwd_fp); a002610c: eb00626a bl a003eabc <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); a0026110: e59f0010 ldr r0, [pc, #16] ; a0026128 <== NOT EXECUTED a0026114: e59f1010 ldr r1, [pc, #16] ; a002612c <== NOT EXECUTED a0026118: eb00648a bl a003f348 <== NOT EXECUTED a002611c: e5840004 str r0, [r4, #4] <== NOT EXECUTED } a0026120: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0026124: a0067384 .word 0xa0067384 a0026128: a005cea8 .word 0xa005cea8 a002612c: a005f868 .word 0xa005f868 a0005720 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; a0005720: e59f300c ldr r3, [pc, #12] ; a0005734 <== NOT EXECUTED a0005724: e5933000 ldr r3, [r3] <== NOT EXECUTED a0005728: e1c303b2 strh r0, [r3, #50] ; 0x32 <== NOT EXECUTED return 0; } a000572c: e3a00000 mov r0, #0 <== NOT EXECUTED a0005730: e12fff1e bx lr <== NOT EXECUTED a0005734: a0058c2c .word 0xa0058c2c a0004f58 : struct sigaction *oact ) { ISR_Level level; if ( oact ) a0004f58: e3520000 cmp r2, #0 int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) { a0004f5c: e92d4070 push {r4, r5, r6, lr} a0004f60: e1a04000 mov r4, r0 a0004f64: e1a05001 mov r5, r1 ISR_Level level; if ( oact ) a0004f68: 0a00000a beq a0004f98 *oact = _POSIX_signals_Vectors[ sig ]; a0004f6c: e3a0300c mov r3, #12 a0004f70: e0010093 mul r1, r3, r0 a0004f74: e59f00e8 ldr r0, [pc, #232] ; a0005064 a0004f78: e1a03002 mov r3, r2 a0004f7c: e790c001 ldr ip, [r0, r1] a0004f80: e0801001 add r1, r0, r1 a0004f84: e483c004 str ip, [r3], #4 a0004f88: e5910004 ldr r0, [r1, #4] a0004f8c: e5820004 str r0, [r2, #4] a0004f90: e5912008 ldr r2, [r1, #8] a0004f94: e5832004 str r2, [r3, #4] if ( !sig ) a0004f98: e3540000 cmp r4, #0 a0004f9c: 0a00002b beq a0005050 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) a0004fa0: e2443001 sub r3, r4, #1 a0004fa4: e353001f cmp r3, #31 a0004fa8: 8a000028 bhi a0005050 * * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) a0004fac: e3540009 cmp r4, #9 a0004fb0: 0a000026 beq a0005050 /* * Evaluate the new action structure and set the global signal vector * appropriately. */ if ( act ) { a0004fb4: e3550000 cmp r5, #0 a0004fb8: 0a000022 beq a0005048 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0004fbc: e10f6000 mrs r6, CPSR a0004fc0: e3863080 orr r3, r6, #128 ; 0x80 a0004fc4: e129f003 msr CPSR_fc, r3 * Unless the user is installing the default signal actions, then * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); if ( act->sa_handler == SIG_DFL ) { a0004fc8: e5953008 ldr r3, [r5, #8] a0004fcc: e3530000 cmp r3, #0 a0004fd0: 0a00000f beq a0005014 _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; } else { _POSIX_signals_Clear_process_signals( sig ); a0004fd4: e1a00004 mov r0, r4 a0004fd8: eb00172a bl a000ac88 <_POSIX_signals_Clear_process_signals> _POSIX_signals_Vectors[ sig ] = *act; a0004fdc: e1a03005 mov r3, r5 a0004fe0: e3a0100c mov r1, #12 a0004fe4: e4930004 ldr r0, [r3], #4 a0004fe8: e0020491 mul r2, r1, r4 a0004fec: e59f1070 ldr r1, [pc, #112] ; a0005064 a0004ff0: e7810002 str r0, [r1, r2] a0004ff4: e5950004 ldr r0, [r5, #4] a0004ff8: e0812002 add r2, r1, r2 a0004ffc: e5820004 str r0, [r2, #4] a0005000: e5933004 ldr r3, [r3, #4] a0005004: e5823008 str r3, [r2, #8] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0005008: e129f006 msr CPSR_fc, r6 a000500c: e3a00000 mov r0, #0 * + If we are now ignoring a signal that was previously pending, * we clear the pending signal indicator. */ return 0; } a0005010: e8bd8070 pop {r4, r5, r6, pc} * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); if ( act->sa_handler == SIG_DFL ) { _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; a0005014: e3a0200c mov r2, #12 a0005018: e0030492 mul r3, r2, r4 a000501c: e59f0044 ldr r0, [pc, #68] ; a0005068 a0005020: e59f103c ldr r1, [pc, #60] ; a0005064 a0005024: e0802003 add r2, r0, r3 a0005028: e7904003 ldr r4, [r0, r3] a000502c: e9921001 ldmib r2, {r0, ip} a0005030: e0812003 add r2, r1, r3 a0005034: e7814003 str r4, [r1, r3] a0005038: e9821001 stmib r2, {r0, ip} a000503c: e129f006 msr CPSR_fc, r6 a0005040: e3a00000 mov r0, #0 * + If we are now ignoring a signal that was previously pending, * we clear the pending signal indicator. */ return 0; } a0005044: e8bd8070 pop {r4, r5, r6, pc} /* * Evaluate the new action structure and set the global signal vector * appropriately. */ if ( act ) { a0005048: e1a00005 mov r0, r5 <== NOT EXECUTED a000504c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) rtems_set_errno_and_return_minus_one( EINVAL ); a0005050: eb0025d7 bl a000e7b4 <__errno> a0005054: e3a03016 mov r3, #22 a0005058: e5803000 str r3, [r0] a000505c: e3e00000 mvn r0, #0 a0005060: e8bd8070 pop {r4, r5, r6, pc} a0005064: a001d3b8 .word 0xa001d3b8 a0005068: a001bbd8 .word 0xa001bbd8 a0002bbc : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { a0002bbc: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED a0002bc0: e3a03ee7 mov r3, #3696 ; 0xe70 <== NOT EXECUTED a0002bc4: e2833008 add r3, r3, #8 <== NOT EXECUTED a0002bc8: e0023003 and r3, r2, r3 <== NOT EXECUTED a0002bcc: e3530000 cmp r3, #0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { a0002bd0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0002bd4: e1a04001 mov r4, r1 <== NOT EXECUTED a0002bd8: 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)) { a0002bdc: 1a000002 bne a0002bec <== 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); a0002be0: e1a00005 mov r0, r5 <== NOT EXECUTED } return i; } a0002be4: 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); a0002be8: eaffff80 b a00029f0 <== 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); a0002bec: e3a01000 mov r1, #0 <== NOT EXECUTED a0002bf0: e1a02001 mov r2, r1 <== NOT EXECUTED a0002bf4: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0002bf8: eb000685 bl a0004614 <== NOT EXECUTED i = iproc (c, tty); a0002bfc: e1a01004 mov r1, r4 <== NOT EXECUTED a0002c00: e1a00005 mov r0, r5 <== NOT EXECUTED a0002c04: ebffff79 bl a00029f0 <== NOT EXECUTED a0002c08: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); a0002c0c: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0002c10: eb0006c7 bl a0004734 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } a0002c14: e1a00005 mov r0, r5 <== NOT EXECUTED a0002c18: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0006cfc : int _STAT_NAME( const char *path, struct stat *buf ) { a0006cfc: e92d4070 push {r4, r5, r6, lr} /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a0006d00: e2515000 subs r5, r1, #0 int _STAT_NAME( const char *path, struct stat *buf ) { a0006d04: e24dd018 sub sp, sp, #24 a0006d08: e1a06000 mov r6, r0 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a0006d0c: 0a00002f beq a0006dd0 rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), a0006d10: eb00f9a7 bl a00453b4 a0006d14: e28d4004 add r4, sp, #4 a0006d18: e1a01000 mov r1, r0 a0006d1c: e3a0c001 mov ip, #1 a0006d20: e1a00006 mov r0, r6 a0006d24: e3a02000 mov r2, #0 a0006d28: e1a03004 mov r3, r4 a0006d2c: e58dc000 str ip, [sp] a0006d30: ebfff9f3 bl a0005504 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) a0006d34: e2501000 subs r1, r0, #0 a0006d38: 1a000022 bne a0006dc8 return -1; if ( !loc.handlers->fstat_h ){ a0006d3c: e59d300c ldr r3, [sp, #12] a0006d40: e5933018 ldr r3, [r3, #24] a0006d44: e3530000 cmp r3, #0 a0006d48: 0a000013 beq a0006d9c /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); a0006d4c: e3a02048 mov r2, #72 ; 0x48 a0006d50: e1a00005 mov r0, r5 a0006d54: eb00ebc3 bl a0041c68 status = (*loc.handlers->fstat_h)( &loc, buf ); a0006d58: e1a01005 mov r1, r5 a0006d5c: e59d300c ldr r3, [sp, #12] a0006d60: e1a00004 mov r0, r4 a0006d64: e1a0e00f mov lr, pc a0006d68: e593f018 ldr pc, [r3, #24] rtems_filesystem_freenode( &loc ); a0006d6c: e59d3010 ldr r3, [sp, #16] * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); a0006d70: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0006d74: e3530000 cmp r3, #0 a0006d78: 0a000004 beq a0006d90 a0006d7c: e593301c ldr r3, [r3, #28] a0006d80: e3530000 cmp r3, #0 a0006d84: 0a000001 beq a0006d90 a0006d88: e1a00004 mov r0, r4 a0006d8c: e12fff33 blx r3 return status; } a0006d90: e1a00005 mov r0, r5 a0006d94: e28dd018 add sp, sp, #24 a0006d98: 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 ); a0006d9c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0006da0: e3530000 cmp r3, #0 <== NOT EXECUTED a0006da4: 0a000004 beq a0006dbc <== NOT EXECUTED a0006da8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0006dac: e3530000 cmp r3, #0 <== NOT EXECUTED a0006db0: 0a000001 beq a0006dbc <== NOT EXECUTED a0006db4: e1a00004 mov r0, r4 <== NOT EXECUTED a0006db8: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0006dbc: eb00def1 bl a003e988 <__errno> <== NOT EXECUTED a0006dc0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0006dc4: e5803000 str r3, [r0] <== NOT EXECUTED a0006dc8: e3e05000 mvn r5, #0 a0006dcc: eaffffef b a0006d90 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); a0006dd0: eb00deec bl a003e988 <__errno> a0006dd4: e3a0300e mov r3, #14 a0006dd8: e5803000 str r3, [r0] a0006ddc: e3e05000 mvn r5, #0 a0006de0: eaffffea b a0006d90 a0026e20 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { a0026e20: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a0026e24: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0026e28: e1a04001 mov r4, r1 <== NOT EXECUTED a0026e2c: 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 ) ) a0026e30: eb00795f bl a00453b4 <== NOT EXECUTED a0026e34: e28d5004 add r5, sp, #4 <== NOT EXECUTED a0026e38: e1a01000 mov r1, r0 <== NOT EXECUTED a0026e3c: e3a0c001 mov ip, #1 <== NOT EXECUTED a0026e40: e1a00006 mov r0, r6 <== NOT EXECUTED a0026e44: e3a02000 mov r2, #0 <== NOT EXECUTED a0026e48: e1a03005 mov r3, r5 <== NOT EXECUTED a0026e4c: e58dc000 str ip, [sp] <== NOT EXECUTED a0026e50: ebff79ab bl a0005504 <== NOT EXECUTED a0026e54: e3500000 cmp r0, #0 <== NOT EXECUTED a0026e58: 1a000028 bne a0026f00 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; a0026e5c: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; a0026e60: e5932028 ldr r2, [r3, #40] ; 0x28 <== NOT EXECUTED a0026e64: e5922044 ldr r2, [r2, #68] ; 0x44 <== NOT EXECUTED a0026e68: e3520000 cmp r2, #0 <== NOT EXECUTED a0026e6c: 0a000020 beq a0026ef4 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); a0026e70: e1a02004 mov r2, r4 <== NOT EXECUTED a0026e74: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e78: e2822004 add r2, r2, #4 <== NOT EXECUTED a0026e7c: e5840004 str r0, [r4, #4] <== NOT EXECUTED a0026e80: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e84: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e88: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e8c: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e90: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e94: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e98: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026e9c: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026ea0: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026ea4: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026ea8: e4820004 str r0, [r2], #4 <== NOT EXECUTED a0026eac: e5820000 str r0, [r2] <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); a0026eb0: e1a01004 mov r1, r4 <== NOT EXECUTED a0026eb4: e283001c add r0, r3, #28 <== NOT EXECUTED a0026eb8: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a0026ebc: e1a0e00f mov lr, pc <== NOT EXECUTED a0026ec0: e593f044 ldr pc, [r3, #68] ; 0x44 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0026ec4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); a0026ec8: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0026ecc: e3530000 cmp r3, #0 <== NOT EXECUTED a0026ed0: 0a000004 beq a0026ee8 <== NOT EXECUTED a0026ed4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0026ed8: e3530000 cmp r3, #0 <== NOT EXECUTED a0026edc: 0a000001 beq a0026ee8 <== NOT EXECUTED a0026ee0: e1a00005 mov r0, r5 <== NOT EXECUTED a0026ee4: e12fff33 blx r3 <== NOT EXECUTED return result; } a0026ee8: e1a00004 mov r0, r4 <== NOT EXECUTED a0026eec: e28dd018 add sp, sp, #24 <== NOT EXECUTED a0026ef0: 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 ); a0026ef4: eb005ea3 bl a003e988 <__errno> <== NOT EXECUTED a0026ef8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0026efc: e5803000 str r3, [r0] <== NOT EXECUTED a0026f00: e3e04000 mvn r4, #0 <== NOT EXECUTED a0026f04: eafffff7 b a0026ee8 <== NOT EXECUTED a0026f08 : int symlink( const char *actualpath, const char *sympath ) { a0026f08: 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 ); a0026f0c: e5d13000 ldrb r3, [r1] int symlink( const char *actualpath, const char *sympath ) { a0026f10: e24dd018 sub sp, sp, #24 a0026f14: 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 ); a0026f18: e353002f cmp r3, #47 ; 0x2f a0026f1c: 1353005c cmpne r3, #92 ; 0x5c int symlink( const char *actualpath, const char *sympath ) { a0026f20: 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 ); a0026f24: 13a06000 movne r6, #0 a0026f28: 03a06001 moveq r6, #1 a0026f2c: 0a000001 beq a0026f38 a0026f30: e3530000 cmp r3, #0 a0026f34: 1a000027 bne a0026fd8 a0026f38: e59f30d4 ldr r3, [pc, #212] ; a0027014 a0026f3c: e1a0400d mov r4, sp a0026f40: e3a06001 mov r6, #1 a0026f44: e593c000 ldr ip, [r3] a0026f48: e28cc018 add ip, ip, #24 a0026f4c: e1a07004 mov r7, r4 a0026f50: e8bc000f ldm ip!, {r0, r1, r2, r3} a0026f54: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->evalformake_h ) { a0026f58: e59d300c ldr r3, [sp, #12] rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); a0026f5c: e59c2000 ldr r2, [ip] if ( !loc.ops->evalformake_h ) { a0026f60: 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 ); a0026f64: e5872000 str r2, [r7] if ( !loc.ops->evalformake_h ) { a0026f68: e3530000 cmp r3, #0 a0026f6c: 0a000023 beq a0027000 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); a0026f70: e08e0006 add r0, lr, r6 a0026f74: e1a0100d mov r1, sp a0026f78: e28d2014 add r2, sp, #20 a0026f7c: e12fff33 blx r3 if ( result != 0 ) a0026f80: e3500000 cmp r0, #0 a0026f84: 1a000020 bne a002700c return -1; if ( !loc.ops->symlink_h ) { a0026f88: e59d200c ldr r2, [sp, #12] a0026f8c: e5923038 ldr r3, [r2, #56] ; 0x38 a0026f90: e3530000 cmp r3, #0 a0026f94: 0a000014 beq a0026fec rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); a0026f98: e1a01005 mov r1, r5 a0026f9c: e1a0000d mov r0, sp a0026fa0: e59d2014 ldr r2, [sp, #20] a0026fa4: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0026fa8: e59d300c ldr r3, [sp, #12] if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); a0026fac: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0026fb0: e3530000 cmp r3, #0 a0026fb4: 0a000004 beq a0026fcc a0026fb8: e593301c ldr r3, [r3, #28] a0026fbc: e3530000 cmp r3, #0 a0026fc0: 0a000001 beq a0026fcc a0026fc4: e1a0000d mov r0, sp a0026fc8: e12fff33 blx r3 return result; } a0026fcc: e1a00005 mov r0, r5 a0026fd0: e28dd018 add sp, sp, #24 a0026fd4: 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 ); a0026fd8: e59f3034 ldr r3, [pc, #52] ; a0027014 a0026fdc: e1a0400d mov r4, sp a0026fe0: e593c000 ldr ip, [r3] a0026fe4: e28cc004 add ip, ip, #4 a0026fe8: eaffffd7 b a0026f4c result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); a0026fec: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0026ff0: e3530000 cmp r3, #0 <== NOT EXECUTED a0026ff4: 0a000001 beq a0027000 <== NOT EXECUTED a0026ff8: e1a0000d mov r0, sp <== NOT EXECUTED a0026ffc: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0027000: eb005e60 bl a003e988 <__errno> <== NOT EXECUTED a0027004: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0027008: e5803000 str r3, [r0] <== NOT EXECUTED a002700c: e3e05000 mvn r5, #0 a0027010: eaffffed b a0026fcc a0027014: a0058c2c .word 0xa0058c2c a001186c : int fd, int opt, struct termios *tp ) { switch (opt) { a001186c: e3510000 cmp r1, #0 int tcsetattr( int fd, int opt, struct termios *tp ) { a0011870: e92d4030 push {r4, r5, lr} a0011874: e1a04002 mov r4, r2 a0011878: e1a05000 mov r5, r0 switch (opt) { a001187c: 0a00000b beq a00118b0 a0011880: e3510001 cmp r1, #1 <== NOT EXECUTED a0011884: 0a000004 beq a001189c <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); a0011888: eb001568 bl a0016e30 <__errno> <== NOT EXECUTED a001188c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0011890: e5803000 str r3, [r0] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } a0011894: e3e00000 mvn r0, #0 <== NOT EXECUTED a0011898: 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) a001189c: e3a01003 mov r1, #3 <== NOT EXECUTED a00118a0: e3a02000 mov r2, #0 <== NOT EXECUTED a00118a4: eb000f3f bl a00155a8 <== NOT EXECUTED a00118a8: e3500000 cmp r0, #0 <== NOT EXECUTED a00118ac: bafffff8 blt a0011894 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); a00118b0: e1a00005 mov r0, r5 a00118b4: e1a02004 mov r2, r4 a00118b8: e3a01002 mov r1, #2 } } a00118bc: e8bd4030 pop {r4, r5, lr} return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); a00118c0: ea000f38 b a00155a8 a000cdb8 : #include int unlink( const char *path ) { a000cdb8: e92d40f0 push {r4, r5, r6, r7, lr} a000cdbc: e24dd02c sub sp, sp, #44 ; 0x2c a000cdc0: e1a05000 mov r5, r0 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); a000cdc4: ebffd0e5 bl a0001160 if ( parentpathlen == 0 ) a000cdc8: e2507000 subs r7, r0, #0 a000cdcc: 1a000075 bne a000cfa8 rtems_filesystem_get_start_loc( path, &i, &parentloc ); a000cdd0: e5d53000 ldrb r3, [r5] a000cdd4: e353002f cmp r3, #47 ; 0x2f a000cdd8: 1353005c cmpne r3, #92 ; 0x5c a000cddc: 1a000047 bne a000cf00 a000cde0: e59f324c ldr r3, [pc, #588] ; a000d034 a000cde4: e28d4018 add r4, sp, #24 a000cde8: e3a06000 mov r6, #0 a000cdec: e593c000 ldr ip, [r3] a000cdf0: e28cc018 add ip, ip, #24 a000cdf4: e1a0e004 mov lr, r4 a000cdf8: e8bc000f ldm ip!, {r0, r1, r2, r3} a000cdfc: e8ae000f stmia lr!, {r0, r1, r2, r3} a000ce00: e59c2000 ldr r2, [ip] a000ce04: e58e2000 str r2, [lr] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a000ce08: e28dc004 add ip, sp, #4 a000ce0c: e1a0e004 mov lr, r4 a000ce10: e8be000f ldm lr!, {r0, r1, r2, r3} a000ce14: e8ac000f stmia ip!, {r0, r1, r2, r3} a000ce18: e59e3000 ldr r3, [lr] name = path + parentpathlen; a000ce1c: e0855007 add r5, r5, r7 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a000ce20: e1a00005 mov r0, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a000ce24: e58c3000 str r3, [ip] name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a000ce28: eb00061f bl a000e6ac a000ce2c: e1a01000 mov r1, r0 a000ce30: e1a00005 mov r0, r5 a000ce34: ebffd0b5 bl a0001110 a000ce38: e0857000 add r7, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a000ce3c: e1a00007 mov r0, r7 a000ce40: eb000619 bl a000e6ac a000ce44: e28d5004 add r5, sp, #4 a000ce48: e3a0c000 mov ip, #0 a000ce4c: e1a01000 mov r1, r0 a000ce50: e1a0200c mov r2, ip a000ce54: e1a00007 mov r0, r7 a000ce58: e1a03005 mov r3, r5 a000ce5c: e58dc000 str ip, [sp] a000ce60: ebffd0d7 bl a00011c4 0, &loc, false ); if ( result != 0 ) { a000ce64: e3500000 cmp r0, #0 a000ce68: 1a00002c bne a000cf20 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { a000ce6c: e59d2010 ldr r2, [sp, #16] a000ce70: e5923010 ldr r3, [r2, #16] a000ce74: e3530000 cmp r3, #0 a000ce78: 0a000036 beq a000cf58 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 ) { a000ce7c: e1a00005 mov r0, r5 a000ce80: e12fff33 blx r3 a000ce84: e3500001 cmp r0, #1 a000ce88: 0a000052 beq a000cfd8 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { a000ce8c: e59d2010 ldr r2, [sp, #16] a000ce90: e592300c ldr r3, [r2, #12] a000ce94: e3530000 cmp r3, #0 a000ce98: 0a00002e beq a000cf58 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); a000ce9c: e1a00004 mov r0, r4 a000cea0: e1a01005 mov r1, r5 a000cea4: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a000cea8: e59d3010 ldr r3, [sp, #16] if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); a000ceac: e1a07000 mov r7, r0 rtems_filesystem_freenode( &loc ); a000ceb0: e3530000 cmp r3, #0 a000ceb4: 0a000004 beq a000cecc a000ceb8: e593301c ldr r3, [r3, #28] a000cebc: e3530000 cmp r3, #0 a000cec0: 0a000001 beq a000cecc a000cec4: e1a00005 mov r0, r5 a000cec8: e12fff33 blx r3 if ( free_parentloc ) a000cecc: e3560000 cmp r6, #0 a000ced0: 0a000007 beq a000cef4 rtems_filesystem_freenode( &parentloc ); a000ced4: e59d3024 ldr r3, [sp, #36] ; 0x24 a000ced8: e3530000 cmp r3, #0 a000cedc: 0a000004 beq a000cef4 a000cee0: e593301c ldr r3, [r3, #28] a000cee4: e3530000 cmp r3, #0 a000cee8: 0a000001 beq a000cef4 a000ceec: e1a00004 mov r0, r4 a000cef0: e12fff33 blx r3 return result; } a000cef4: e1a00007 mov r0, r7 a000cef8: e28dd02c add sp, sp, #44 ; 0x2c a000cefc: e8bd80f0 pop {r4, r5, r6, r7, pc} */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); a000cf00: e3530000 cmp r3, #0 <== NOT EXECUTED a000cf04: 0affffb5 beq a000cde0 <== NOT EXECUTED a000cf08: e59f3124 ldr r3, [pc, #292] ; a000d034 <== NOT EXECUTED a000cf0c: e28d4018 add r4, sp, #24 <== NOT EXECUTED a000cf10: e1a06007 mov r6, r7 <== NOT EXECUTED a000cf14: e593c000 ldr ip, [r3] <== NOT EXECUTED a000cf18: e28cc004 add ip, ip, #4 <== NOT EXECUTED a000cf1c: eaffffb4 b a000cdf4 <== 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 ) a000cf20: e3560000 cmp r6, #0 a000cf24: 1a000001 bne a000cf30 result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); a000cf28: e3e07000 mvn r7, #0 <== NOT EXECUTED a000cf2c: eafffff0 b a000cef4 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); a000cf30: e59d3024 ldr r3, [sp, #36] ; 0x24 a000cf34: e3530000 cmp r3, #0 a000cf38: 0afffffa beq a000cf28 a000cf3c: e593301c ldr r3, [r3, #28] a000cf40: e3530000 cmp r3, #0 a000cf44: 0afffff7 beq a000cf28 a000cf48: e1a00004 mov r0, r4 a000cf4c: e12fff33 blx r3 a000cf50: e3e07000 mvn r7, #0 a000cf54: eaffffe6 b a000cef4 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); a000cf58: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a000cf5c: e3530000 cmp r3, #0 <== NOT EXECUTED a000cf60: 0a000001 beq a000cf6c <== NOT EXECUTED a000cf64: e1a00005 mov r0, r5 <== NOT EXECUTED a000cf68: e12fff33 blx r3 <== NOT EXECUTED if ( free_parentloc ) a000cf6c: e3560000 cmp r6, #0 <== NOT EXECUTED a000cf70: 0a000007 beq a000cf94 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); a000cf74: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000cf78: e3530000 cmp r3, #0 <== NOT EXECUTED a000cf7c: 0a000004 beq a000cf94 <== NOT EXECUTED a000cf80: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000cf84: e3530000 cmp r3, #0 <== NOT EXECUTED a000cf88: 0a000001 beq a000cf94 <== NOT EXECUTED a000cf8c: e1a00004 mov r0, r4 <== NOT EXECUTED a000cf90: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a000cf94: eb0001d3 bl a000d6e8 <__errno> <== NOT EXECUTED a000cf98: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000cf9c: e5803000 str r3, [r0] <== NOT EXECUTED a000cfa0: e3e07000 mvn r7, #0 <== NOT EXECUTED a000cfa4: eaffffd2 b a000cef4 <== 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, a000cfa8: e28d4018 add r4, sp, #24 a000cfac: e3a0c000 mov ip, #0 a000cfb0: e1a00005 mov r0, r5 a000cfb4: e1a01007 mov r1, r7 a000cfb8: e3a02002 mov r2, #2 a000cfbc: e1a03004 mov r3, r4 a000cfc0: e58dc000 str ip, [sp] a000cfc4: ebffd0b8 bl a00012ac RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) a000cfc8: e3500000 cmp r0, #0 a000cfcc: 1affffd5 bne a000cf28 a000cfd0: e3a06001 mov r6, #1 a000cfd4: eaffff8b b a000ce08 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 ); a000cfd8: e59d3010 ldr r3, [sp, #16] a000cfdc: e3530000 cmp r3, #0 a000cfe0: 0a000004 beq a000cff8 a000cfe4: e593301c ldr r3, [r3, #28] a000cfe8: e3530000 cmp r3, #0 a000cfec: 0a000001 beq a000cff8 a000cff0: e1a00005 mov r0, r5 a000cff4: e12fff33 blx r3 if ( free_parentloc ) a000cff8: e3560000 cmp r6, #0 a000cffc: 0a000007 beq a000d020 rtems_filesystem_freenode( &parentloc ); a000d000: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000d004: e3530000 cmp r3, #0 <== NOT EXECUTED a000d008: 0a000004 beq a000d020 <== NOT EXECUTED a000d00c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000d010: e3530000 cmp r3, #0 <== NOT EXECUTED a000d014: 0a000001 beq a000d020 <== NOT EXECUTED a000d018: e1a00004 mov r0, r4 <== NOT EXECUTED a000d01c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); a000d020: eb0001b0 bl a000d6e8 <__errno> a000d024: e3a03015 mov r3, #21 a000d028: e5803000 str r3, [r0] a000d02c: e3e07000 mvn r7, #0 a000d030: eaffffaf b a000cef4 a000d034: a0018fe8 .word 0xa0018fe8 a0008e08 : */ int unmount( const char *path ) { a0008e08: e92d4030 push {r4, r5, lr} a0008e0c: e24dd018 sub sp, sp, #24 a0008e10: 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 ) ) a0008e14: eb00f166 bl a00453b4 a0008e18: e28d4004 add r4, sp, #4 a0008e1c: e1a01000 mov r1, r0 a0008e20: e3a0c001 mov ip, #1 a0008e24: e1a00005 mov r0, r5 a0008e28: e3a02000 mov r2, #0 a0008e2c: e1a03004 mov r3, r4 a0008e30: e58dc000 str ip, [sp] a0008e34: ebfff1b2 bl a0005504 a0008e38: e3500000 cmp r0, #0 a0008e3c: 1a000032 bne a0008f0c return -1; mt_entry = loc.mt_entry; a0008e40: e59d5014 ldr r5, [sp, #20] fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; a0008e44: e59d3004 ldr r3, [sp, #4] a0008e48: e595201c ldr r2, [r5, #28] a0008e4c: e1520003 cmp r2, r3 a0008e50: 1a000049 bne a0008f7c /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); a0008e54: e59d3010 ldr r3, [sp, #16] a0008e58: e3530000 cmp r3, #0 a0008e5c: 0a000004 beq a0008e74 a0008e60: e593301c ldr r3, [r3, #28] a0008e64: e3530000 cmp r3, #0 a0008e68: 0a000001 beq a0008e74 a0008e6c: e1a00004 mov r0, r4 a0008e70: e12fff33 blx r3 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; a0008e74: e5953014 ldr r3, [r5, #20] a0008e78: e5933028 ldr r3, [r3, #40] ; 0x28 a0008e7c: e3530000 cmp r3, #0 a0008e80: 0a000052 beq a0008fd0 fs_root_loc = &mt_entry->mt_fs_root; a0008e84: e5953028 ldr r3, [r5, #40] ; 0x28 a0008e88: e593302c ldr r3, [r3, #44] ; 0x2c a0008e8c: e3530000 cmp r3, #0 a0008e90: 0a00004e beq a0008fd0 * 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 ) a0008e94: e59f3148 ldr r3, [pc, #328] ; a0008fe4 a0008e98: e5933000 ldr r3, [r3] a0008e9c: e5933014 ldr r3, [r3, #20] a0008ea0: e1530005 cmp r3, r5 a0008ea4: 0a00001b beq a0008f18 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; a0008ea8: e59f1138 ldr r1, [pc, #312] ; a0008fe8 a0008eac: e4913004 ldr r3, [r1], #4 a0008eb0: e1530001 cmp r3, r1 a0008eb4: 0a00000a beq a0008ee4 !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 ) { a0008eb8: e595002c ldr r0, [r5, #44] ; 0x2c a0008ebc: e5932018 ldr r2, [r3, #24] a0008ec0: e1520000 cmp r2, r0 a0008ec4: 1a000003 bne a0008ed8 a0008ec8: ea000012 b a0008f18 <== NOT EXECUTED a0008ecc: e5932018 ldr r2, [r3, #24] a0008ed0: e1500002 cmp r0, r2 a0008ed4: 0a00000f beq a0008f18 * 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 ) { a0008ed8: 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; a0008edc: e1530001 cmp r3, r1 a0008ee0: 1afffff9 bne a0008ecc * 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 ) a0008ee4: e1a00005 mov r0, r5 a0008ee8: ebfff27e bl a00058e8 a0008eec: e3500001 cmp r0, #1 a0008ef0: 0a000008 beq a0008f18 * 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 ) a0008ef4: e5953014 ldr r3, [r5, #20] a0008ef8: e1a00005 mov r0, r5 a0008efc: e1a0e00f mov lr, pc a0008f00: e593f028 ldr pc, [r3, #40] ; 0x28 a0008f04: e2504000 subs r4, r0, #0 a0008f08: 0a000007 beq a0008f2c */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; a0008f0c: e3e00000 mvn r0, #0 } a0008f10: e28dd018 add sp, sp, #24 a0008f14: 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 ); a0008f18: eb00d69a bl a003e988 <__errno> a0008f1c: e3a03010 mov r3, #16 a0008f20: e5803000 str r3, [r0] a0008f24: e3e00000 mvn r0, #0 a0008f28: eafffff8 b a0008f10 * 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){ a0008f2c: e5953028 ldr r3, [r5, #40] ; 0x28 a0008f30: e1a00005 mov r0, r5 a0008f34: e1a0e00f mov lr, pc a0008f38: e593f02c ldr pc, [r3, #44] ; 0x2c a0008f3c: e3500000 cmp r0, #0 a0008f40: 1a00001a bne a0008fb0 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a0008f44: e1a00005 mov r0, r5 a0008f48: eb0005b4 bl a000a620 <_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 ); a0008f4c: e5953014 ldr r3, [r5, #20] a0008f50: e3530000 cmp r3, #0 a0008f54: 0a000004 beq a0008f6c a0008f58: e593301c ldr r3, [r3, #28] a0008f5c: e3530000 cmp r3, #0 a0008f60: 0a000001 beq a0008f6c a0008f64: e2850008 add r0, r5, #8 a0008f68: e12fff33 blx r3 free( mt_entry ); a0008f6c: e1a00005 mov r0, r5 a0008f70: ebfff194 bl a00055c8 a0008f74: e3a00000 mov r0, #0 return 0; a0008f78: eaffffe4 b a0008f10 /* * 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 ); a0008f7c: e59d3010 ldr r3, [sp, #16] a0008f80: e3530000 cmp r3, #0 a0008f84: 0a000004 beq a0008f9c a0008f88: e593301c ldr r3, [r3, #28] a0008f8c: e3530000 cmp r3, #0 a0008f90: 0a000001 beq a0008f9c a0008f94: e1a00004 mov r0, r4 a0008f98: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( EACCES ); a0008f9c: eb00d679 bl a003e988 <__errno> a0008fa0: e3a0300d mov r3, #13 a0008fa4: e5803000 str r3, [r0] a0008fa8: e3e00000 mvn r0, #0 a0008fac: eaffffd7 b a0008f10 * 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 ) a0008fb0: e1a00005 mov r0, r5 <== NOT EXECUTED a0008fb4: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a0008fb8: e1a0e00f mov lr, pc <== NOT EXECUTED a0008fbc: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED a0008fc0: e3500000 cmp r0, #0 <== NOT EXECUTED a0008fc4: 0affffd0 beq a0008f0c <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); a0008fc8: e1a00004 mov r0, r4 <== NOT EXECUTED a0008fcc: eb0004c0 bl a000a2d4 <== 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 ); a0008fd0: eb00d66c bl a003e988 <__errno> <== NOT EXECUTED a0008fd4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0008fd8: e5803000 str r3, [r0] <== NOT EXECUTED a0008fdc: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008fe0: eaffffca b a0008f10 <== NOT EXECUTED a0008fe4: a0058c2c .word 0xa0058c2c a0008fe8: a00676b0 .word 0xa00676b0 a00270a4 : int utime( const char *path, const struct utimbuf *times ) { a00270a4: e92d4070 push {r4, r5, r6, lr} a00270a8: e24dd018 sub sp, sp, #24 a00270ac: e1a05001 mov r5, r1 a00270b0: 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 ) ) a00270b4: eb0078be bl a00453b4 a00270b8: e28d4004 add r4, sp, #4 a00270bc: e1a01000 mov r1, r0 a00270c0: e3a0c001 mov ip, #1 a00270c4: e1a00006 mov r0, r6 a00270c8: e3a02000 mov r2, #0 a00270cc: e1a03004 mov r3, r4 a00270d0: e58dc000 str ip, [sp] a00270d4: ebff790a bl a0005504 a00270d8: e3500000 cmp r0, #0 a00270dc: 1a00001a bne a002714c return -1; if ( !temp_loc.ops->utime_h ){ a00270e0: e59d2010 ldr r2, [sp, #16] a00270e4: e5923030 ldr r3, [r2, #48] ; 0x30 a00270e8: e3530000 cmp r3, #0 a00270ec: 0a00000e beq a002712c 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 ); a00270f0: e8950006 ldm r5, {r1, r2} a00270f4: e1a00004 mov r0, r4 a00270f8: e12fff33 blx r3 rtems_filesystem_freenode( &temp_loc ); a00270fc: e59d3010 ldr r3, [sp, #16] if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); a0027100: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); a0027104: e3530000 cmp r3, #0 a0027108: 0a000004 beq a0027120 a002710c: e593301c ldr r3, [r3, #28] a0027110: e3530000 cmp r3, #0 a0027114: 0a000001 beq a0027120 a0027118: e1a00004 mov r0, r4 a002711c: e12fff33 blx r3 return result; } a0027120: e1a00005 mov r0, r5 a0027124: e28dd018 add sp, sp, #24 a0027128: 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 ); a002712c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0027130: e3530000 cmp r3, #0 <== NOT EXECUTED a0027134: 0a000001 beq a0027140 <== NOT EXECUTED a0027138: e1a00004 mov r0, r4 <== NOT EXECUTED a002713c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0027140: eb005e10 bl a003e988 <__errno> <== NOT EXECUTED a0027144: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0027148: e5803000 str r3, [r0] <== NOT EXECUTED a002714c: e3e05000 mvn r5, #0 a0027150: eafffff2 b a0027120 a001887c : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a001887c: e59f30c0 ldr r3, [pc, #192] ; a0018944 ssize_t write( int fd, const void *buffer, size_t count ) { a0018880: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0018884: e593c000 ldr ip, [r3] ssize_t write( int fd, const void *buffer, size_t count ) { a0018888: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a001888c: e150000c cmp r0, ip a0018890: 2a00001c bcs a0018908 iop = rtems_libio_iop( fd ); a0018894: e59fc0ac ldr ip, [pc, #172] ; a0018948 a0018898: e59c4000 ldr r4, [ip] a001889c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); a00188a0: e5940014 ldr r0, [r4, #20] a00188a4: e3100c01 tst r0, #256 ; 0x100 a00188a8: 0a000016 beq a0018908 rtems_libio_check_buffer( buffer ); a00188ac: e3510000 cmp r1, #0 a00188b0: 0a000019 beq a001891c rtems_libio_check_count( count ); a00188b4: e3520000 cmp r2, #0 a00188b8: 0a000010 beq a0018900 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a00188bc: e3100004 tst r0, #4 a00188c0: 0a000015 beq a001891c /* * Now process the write() request. */ if ( !iop->handlers->write_h ) a00188c4: e594303c ldr r3, [r4, #60] ; 0x3c a00188c8: e593300c ldr r3, [r3, #12] a00188cc: e3530000 cmp r3, #0 a00188d0: 0a000016 beq a0018930 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); a00188d4: e1a00004 mov r0, r4 a00188d8: e12fff33 blx r3 if ( rc > 0 ) a00188dc: e3500000 cmp r0, #0 a00188e0: da000005 ble a00188fc iop->offset += rc; a00188e4: e284600c add r6, r4, #12 a00188e8: e8960060 ldm r6, {r5, r6} a00188ec: e0952000 adds r2, r5, r0 a00188f0: e0a63fc0 adc r3, r6, r0, asr #31 a00188f4: e584200c str r2, [r4, #12] a00188f8: e5843010 str r3, [r4, #16] return rc; } a00188fc: e8bd8070 pop {r4, r5, r6, pc} rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); a0018900: e1a00002 mov r0, r2 a0018904: e8bd8070 pop {r4, r5, r6, pc} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); a0018908: ebffd376 bl a000d6e8 <__errno> <== NOT EXECUTED a001890c: e3a03009 mov r3, #9 <== NOT EXECUTED a0018910: e5803000 str r3, [r0] <== NOT EXECUTED a0018914: e3e00000 mvn r0, #0 <== NOT EXECUTED a0018918: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a001891c: ebffd371 bl a000d6e8 <__errno> <== NOT EXECUTED a0018920: e3a03016 mov r3, #22 <== NOT EXECUTED a0018924: e5803000 str r3, [r0] <== NOT EXECUTED a0018928: e3e00000 mvn r0, #0 <== NOT EXECUTED a001892c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a0018930: ebffd36c bl a000d6e8 <__errno> <== NOT EXECUTED a0018934: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0018938: e5803000 str r3, [r0] <== NOT EXECUTED a001893c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0018940: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0018944: a0018e10 .word 0xa0018e10 a0018948: a001a82c .word 0xa001a82c a0005954 : int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); a0005954: e59f317c ldr r3, [pc, #380] ; a0005ad8 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { a0005958: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); a000595c: e5933000 ldr r3, [r3] ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { a0005960: e1a05002 mov r5, r2 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); a0005964: e1500003 cmp r0, r3 a0005968: 2a00004e bcs a0005aa8 iop = rtems_libio_iop( fd ); a000596c: e59f3168 ldr r3, [pc, #360] ; a0005adc a0005970: e5937000 ldr r7, [r3] a0005974: e0877300 add r7, r7, r0, lsl #6 rtems_libio_check_is_open( iop ); a0005978: e5973014 ldr r3, [r7, #20] a000597c: e3130c01 tst r3, #256 ; 0x100 a0005980: 0a000048 beq a0005aa8 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a0005984: e3130004 tst r3, #4 a0005988: 0a000040 beq a0005a90 /* * Argument validation on IO vector */ if ( !iov ) a000598c: e3510000 cmp r1, #0 a0005990: 0a00003e beq a0005a90 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) a0005994: e3520000 cmp r2, #0 a0005998: da00003c ble a0005a90 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) a000599c: e3520b01 cmp r2, #1024 ; 0x400 a00059a0: ca00003a bgt a0005a90 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) a00059a4: e597303c ldr r3, [r7, #60] ; 0x3c a00059a8: e593300c ldr r3, [r3, #12] a00059ac: e3530000 cmp r3, #0 a00059b0: 0a000043 beq a0005ac4 rtems_set_errno_and_return_minus_one( ENOTSUP ); a00059b4: e1a04001 mov r4, r1 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) a00059b8: 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 ); a00059bc: e3a01000 mov r1, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) a00059c0: 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 ); a00059c4: e1a02004 mov r2, r4 a00059c8: e3a06001 mov r6, #1 a00059cc: e1a08001 mov r8, r1 a00059d0: ea000000 b a00059d8 * 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++ ) { a00059d4: e1a08003 mov r8, r3 if ( !iov[v].iov_base ) a00059d8: e5923000 ldr r3, [r2] * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { a00059dc: e2811001 add r1, r1, #1 if ( !iov[v].iov_base ) a00059e0: e3530000 cmp r3, #0 a00059e4: 0a000029 beq a0005a90 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 ) a00059e8: e5920004 ldr r0, [r2, #4] * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { a00059ec: e2822008 add r2, r2, #8 if ( iov[v].iov_len ) all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; a00059f0: 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 ) a00059f4: e3500000 cmp r0, #0 a00059f8: 13a06000 movne r6, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) a00059fc: e1580003 cmp r8, r3 a0005a00: d153000c cmple r3, ip a0005a04: d3a08000 movle r8, #0 a0005a08: c3a08001 movgt r8, #1 a0005a0c: ca00001f bgt a0005a90 * 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++ ) { a0005a10: e1550001 cmp r5, r1 a0005a14: caffffee bgt a00059d4 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { a0005a18: e3560000 cmp r6, #0 <== NOT EXECUTED a0005a1c: 1a00001f bne a0005aa0 <== NOT EXECUTED a0005a20: e1a08006 mov r8, r6 <== NOT EXECUTED a0005a24: ea000002 b a0005a34 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0005a28: e1550006 cmp r5, r6 <== NOT EXECUTED a0005a2c: e2844008 add r4, r4, #8 <== NOT EXECUTED a0005a30: da00001a ble a0005aa0 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) a0005a34: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0005a38: e2866001 add r6, r6, #1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) a0005a3c: e3520000 cmp r2, #0 <== NOT EXECUTED a0005a40: 0afffff8 beq a0005a28 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); a0005a44: e5941000 ldr r1, [r4] <== NOT EXECUTED a0005a48: e597303c ldr r3, [r7, #60] ; 0x3c <== NOT EXECUTED a0005a4c: e1a00007 mov r0, r7 <== NOT EXECUTED a0005a50: e1a0e00f mov lr, pc <== NOT EXECUTED a0005a54: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED if ( bytes < 0 ) a0005a58: e3500000 cmp r0, #0 <== NOT EXECUTED a0005a5c: ba000016 blt a0005abc <== NOT EXECUTED return -1; if ( bytes > 0 ) { a0005a60: 0a000006 beq a0005a80 <== NOT EXECUTED iop->offset += bytes; a0005a64: e287c00c add ip, r7, #12 <== NOT EXECUTED a0005a68: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a0005a6c: e09b2000 adds r2, fp, r0 <== NOT EXECUTED a0005a70: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED a0005a74: e587200c str r2, [r7, #12] <== NOT EXECUTED a0005a78: e5873010 str r3, [r7, #16] <== NOT EXECUTED total += bytes; a0005a7c: e0888000 add r8, r8, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) a0005a80: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0005a84: e1500003 cmp r0, r3 <== NOT EXECUTED a0005a88: 0affffe6 beq a0005a28 <== NOT EXECUTED a0005a8c: ea000003 b a0005aa0 <== 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 ); a0005a90: eb002904 bl a000fea8 <__errno> a0005a94: e3a03016 mov r3, #22 a0005a98: e5803000 str r3, [r0] a0005a9c: e3e08000 mvn r8, #0 if (bytes != iov[ v ].iov_len) break; } return total; } a0005aa0: e1a00008 mov r0, r8 a0005aa4: 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 ); a0005aa8: eb0028fe bl a000fea8 <__errno> a0005aac: e3a03009 mov r3, #9 a0005ab0: e5803000 str r3, [r0] a0005ab4: e3e08000 mvn r8, #0 a0005ab8: eafffff8 b a0005aa0 if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) a0005abc: e3e08000 mvn r8, #0 <== NOT EXECUTED a0005ac0: eafffff6 b a0005aa0 <== 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 ); a0005ac4: eb0028f7 bl a000fea8 <__errno> <== NOT EXECUTED a0005ac8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0005acc: e5803000 str r3, [r0] <== NOT EXECUTED a0005ad0: e3e08000 mvn r8, #0 <== NOT EXECUTED a0005ad4: eafffff1 b a0005aa0 <== NOT EXECUTED a0005ad8: a001ce30 .word 0xa001ce30 a0005adc: a001fd20 .word 0xa001fd20