000480c8 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 480c8: 7206 moveq #6,%d1 #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 480ca: 4e56 0000 linkw %fp,#0 480ce: 206e 0008 moveal %fp@(8),%a0 480d2: 2f0a movel %a2,%sp@- IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 480d4: 2450 moveal %a0@,%a2 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 480d6: 2268 0010 moveal %a0@(16),%a1 switch( node->type ) { 480da: 202a 0048 movel %a2@(72),%d0 480de: 5380 subql #1,%d0 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 480e0: 2269 0034 moveal %a1@(52),%a1 switch( node->type ) { 480e4: b280 cmpl %d0,%d1 480e6: 6546 bcss 4812e 480e8: 303b 0a08 movew %pc@(480f2 ,%d0:l:2),%d0 480ec: 48c0 extl %d0 480ee: 4efb 0802 jmp %pc@(480f2 ,%d0:l) 480f2: 000e 016 <== NOT EXECUTED 480f4: 0016 026 <== NOT EXECUTED 480f6: 001e 036 <== NOT EXECUTED 480f8: 001e 036 <== NOT EXECUTED 480fa: 002a 052 <== NOT EXECUTED 480fc: 002a 052 <== NOT EXECUTED 480fe: 0032 062 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 48100: 2169 0008 0008 movel %a1@(8),%a0@(8) break; 48106: 6026 bras 4812e case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 48108: 203c 0005 a86a movel #370794,%d0 4810e: 601a bras 4812a break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 48110: 223c 0005 a8a2 movel #370850,%d1 48116: 2141 0008 movel %d1,%a0@(8) break; 4811a: 6012 bras 4812e case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 4811c: 2169 0004 0008 movel %a1@(4),%a0@(8) break; 48122: 600a bras 4812e case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 48124: 203c 0005 a7c6 movel #370630,%d0 4812a: 2140 0008 movel %d0,%a0@(8) break; } return 0; } 4812e: 245f moveal %sp@+,%a2 48130: 4280 clrl %d0 48132: 4e5e unlk %fp 48134: 4e75 rts 0004c778 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4c778: 4e56 ffe8 linkw %fp,#-24 4c77c: 206e 0008 moveal %fp@(8),%a0 4c780: 48d7 041c moveml %d2-%d4/%a2,%sp@ IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 4c784: 2450 moveal %a0@,%a2 */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4c786: 4284 clrl %d4 int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4c788: 362e 000e movew %fp@(14),%d3 4c78c: 342e 0012 movew %fp@(18),%d2 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 4c790: 4eb9 0004 d7d4 jsr 4d7d4 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4c796: 4281 clrl %d1 4c798: 3800 movew %d0,%d4 4c79a: 322a 0038 movew %a2@(56),%d1 4c79e: b284 cmpl %d4,%d1 4c7a0: 6714 beqs 4c7b6 4c7a2: 4a40 tstw %d0 <== NOT EXECUTED 4c7a4: 6710 beqs 4c7b6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 4c7a6: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 4c7ac: 7201 moveq #1,%d1 <== NOT EXECUTED 4c7ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c7b0: 70ff moveq #-1,%d0 <== NOT EXECUTED 4c7b2: 2081 movel %d1,%a0@ <== NOT EXECUTED 4c7b4: 601e bras 4c7d4 <== NOT EXECUTED #endif jnode->st_uid = owner; 4c7b6: 3543 0038 movew %d3,%a2@(56) jnode->st_gid = group; 4c7ba: 3542 003a movew %d2,%a2@(58) IMFS_update_ctime( jnode ); 4c7be: 42a7 clrl %sp@- 4c7c0: 486e fff8 pea %fp@(-8) 4c7c4: 4eb9 0004 3564 jsr 43564 4c7ca: 256e fff8 0044 movel %fp@(-8),%a2@(68) return 0; 4c7d0: 508f addql #8,%sp #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 4c7d2: 4280 clrl %d0 return 0; } 4c7d4: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4c7da: 4e5e unlk %fp 4c7dc: 4e75 rts ... 0004b660 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4b660: 4e56 fff0 linkw %fp,#-16 4b664: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ 4b668: 266e 0008 moveal %fp@(8),%a3 4b66c: 242e 000c movel %fp@(12),%d2 4b670: 246e 0018 moveal %fp@(24),%a2 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 4b674: 4a8b tstl %a3 4b676: 6606 bnes 4b67e 4b678: 99cc subal %a4,%a4 <== NOT EXECUTED 4b67a: 6000 00e6 braw 4b762 <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 4b67e: 2079 0005 b794 moveal 5b794 ,%a0 4b684: 2028 002c movel %a0@(44),%d0 4b688: 4680 notl %d0 4b68a: c0ae 0014 andl %fp@(20),%d0 4b68e: 2f00 movel %d0,%sp@- 4b690: 2f2e 0010 movel %fp@(16),%sp@- 4b694: 2f02 movel %d2,%sp@- 4b696: 4eb9 0004 b5a8 jsr 4b5a8 if ( !node ) 4b69c: 4fef 000c lea %sp@(12),%sp return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 4b6a0: 2840 moveal %d0,%a4 if ( !node ) 4b6a2: 4a80 tstl %d0 4b6a4: 6700 00bc beqw 4b762 return NULL; /* * Set the type specific information */ switch (type) { 4b6a8: 5382 subql #1,%d2 4b6aa: 7006 moveq #6,%d0 4b6ac: b082 cmpl %d2,%d0 4b6ae: 6570 bcss 4b720 4b6b0: 303b 2a08 movew %pc@(4b6ba ,%d2:l:2),%d0 4b6b4: 48c0 extl %d0 4b6b6: 4efb 0802 jmp %pc@(4b6ba ,%d0:l) 4b6ba: 000e 016 <== NOT EXECUTED 4b6bc: 002a 052 <== NOT EXECUTED 4b6be: 0024 044 <== NOT EXECUTED 4b6c0: 0024 044 <== NOT EXECUTED 4b6c2: 0046 0106 <== NOT EXECUTED 4b6c4: 0036 066 <== NOT EXECUTED 4b6c6: 0060 0140 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4b6c8: 41ec 0050 lea %a4@(80),%a0 4b6cc: 2948 004c movel %a0,%a4@(76) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4b6d0: 41ec 004c lea %a4@(76),%a0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 4b6d4: 42ac 0050 clrl %a4@(80) the_chain->last = _Chain_Head(the_chain); 4b6d8: 2948 0054 movel %a0,%a4@(84) 4b6dc: 605e bras 4b73c 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; 4b6de: 2952 004c movel %a2@,%a4@(76) break; 4b6e2: 6058 bras 4b73c case IMFS_DEVICE: node->info.device.major = info->device.major; 4b6e4: 2952 004c movel %a2@,%a4@(76) node->info.device.minor = info->device.minor; 4b6e8: 296a 0004 0050 movel %a2@(4),%a4@(80) break; 4b6ee: 604c bras 4b73c case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; 4b6f0: 42ac 0054 clrl %a4@(84) <== NOT EXECUTED node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 4b6f4: 4280 clrl %d0 <== NOT EXECUTED 4b6f6: 4281 clrl %d1 <== NOT EXECUTED 4b6f8: 2940 004c movel %d0,%a4@(76) <== NOT EXECUTED 4b6fc: 2941 0050 movel %d1,%a4@(80) <== NOT EXECUTED node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; 4b700: 42ac 0054 clrl %a4@(84) case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 4b704: 4280 clrl %d0 4b706: 4281 clrl %d1 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; 4b708: 42ac 0058 clrl %a4@(88) case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 4b70c: 2940 004c movel %d0,%a4@(76) 4b710: 2941 0050 movel %d1,%a4@(80) node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 4b714: 42ac 005c clrl %a4@(92) break; 4b718: 6022 bras 4b73c case IMFS_FIFO: node->info.fifo.pipe = NULL; 4b71a: 42ac 004c clrl %a4@(76) break; 4b71e: 601c bras 4b73c default: assert(0); 4b720: 4879 0005 ac14 pea 5ac14 <== NOT EXECUTED 4b726: 4879 0005 ac5f pea 5ac5f <__FUNCTION__.5834> <== NOT EXECUTED 4b72c: 4878 005c pea 5c <== NOT EXECUTED 4b730: 4879 0005 ac16 pea 5ac16 <== NOT EXECUTED 4b736: 4eb9 0004 8da4 jsr 48da4 <__assert_func> <== NOT EXECUTED /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; 4b73c: 206b 0010 moveal %a3@(16),%a0 4b740: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4b744: 2010 movel %a0@,%d0 4b746: 5280 addql #1,%d0 4b748: 2080 movel %d0,%a0@ } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4b74a: 2053 moveal %a3@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4b74c: 2940 0034 movel %d0,%a4@(52) * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; 4b750: 2948 0008 movel %a0,%a4@(8) RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 4b754: 2f0c movel %a4,%sp@- 4b756: 4868 004c pea %a0@(76) 4b75a: 4eb9 0004 58d0 jsr 458d0 <_Chain_Append> node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 4b760: 508f addql #8,%sp } 4b762: 200c movel %a4,%d0 4b764: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 4b76a: 4e5e unlk %fp 4b76c: 4e75 rts ... 0004358e : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 4358e: 4e56 ffe0 linkw %fp,#-32 43592: 206e 0008 moveal %fp@(8),%a0 43596: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 4359a: 242e 000c movel %fp@(12),%d2 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 4359e: 4a88 tstl %a0 435a0: 6612 bnes 435b4 435a2: 4879 0005 fc46 pea 5fc46 <== NOT EXECUTED 435a8: 4879 0005 fd14 pea 5fd14 <__FUNCTION__.6585> <== NOT EXECUTED 435ae: 4878 0084 pea 84 <== NOT EXECUTED 435b2: 6014 bras 435c8 <== NOT EXECUTED assert( level >= 0 ); 435b4: 4a82 tstl %d2 435b6: 6c1c bges 435d4 435b8: 4879 0005 fc54 pea 5fc54 <== NOT EXECUTED 435be: 4879 0005 fd14 pea 5fd14 <__FUNCTION__.6585> <== NOT EXECUTED 435c4: 4878 0086 pea 86 <== NOT EXECUTED 435c8: 4879 0005 fb9a pea 5fb9a <== NOT EXECUTED 435ce: 4eb9 0004 3cd8 jsr 43cd8 <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 435d4: 7001 moveq #1,%d0 435d6: b0a8 0048 cmpl %a0@(72),%d0 435da: 6712 beqs 435ee 435dc: 4879 0005 fc5f pea 5fc5f <== NOT EXECUTED 435e2: 4879 0005 fd14 pea 5fd14 <__FUNCTION__.6585> <== NOT EXECUTED 435e8: 4878 0088 pea 88 <== NOT EXECUTED 435ec: 60da bras 435c8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 435ee: 2a08 movel %a0,%d5 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 ); 435f0: 2802 movel %d2,%d4 435f2: 0685 0000 0050 addil #80,%d5 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 435f8: 4bf9 0005 0dd0 lea 50dd0 ,%a5 IMFS_print_jnode( the_jnode ); 435fe: 49f9 0004 3412 lea 43412 ,%a4 if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 43604: 5284 addql #1,%d4 43606: 47f9 0004 358e lea 4358e ,%a3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 4360c: 2468 004c moveal %a0@(76),%a2 43610: 6034 bras 43646 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 43612: 4283 clrl %d3 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 43614: 2079 0006 17b0 moveal 617b0 <_impure_ptr>,%a0 !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++ ) 4361a: 5283 addql #1,%d3 fprintf(stdout, "...." ); 4361c: 2f28 0008 movel %a0@(8),%sp@- 43620: 4879 0005 fc85 pea 5fc85 43626: 4e95 jsr %a5@ !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++ ) 43628: 508f addql #8,%sp 4362a: b483 cmpl %d3,%d2 4362c: 6ce6 bges 43614 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 4362e: 2f0a movel %a2,%sp@- 43630: 4e94 jsr %a4@ if ( the_jnode->type == IMFS_DIRECTORY ) 43632: 588f addql #4,%sp 43634: 7001 moveq #1,%d0 43636: b0aa 0048 cmpl %a2@(72),%d0 4363a: 6608 bnes 43644 IMFS_dump_directory( the_jnode, level + 1 ); 4363c: 2f04 movel %d4,%sp@- 4363e: 2f0a movel %a2,%sp@- 43640: 4e93 jsr %a3@ 43642: 508f addql #8,%sp 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 ) { 43644: 2452 moveal %a2@,%a2 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 43646: ba8a cmpl %a2,%d5 43648: 66c8 bnes 43612 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 4364a: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 43650: 4e5e unlk %fp 43652: 4e75 rts 000482b6 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 482b6: 4e56 ff9c linkw %fp,#-100 482ba: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 482be: 246e 0014 moveal %fp@(20),%a2 * 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 ); 482c2: 2a0e movel %fp,%d5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 482c4: 4282 clrl %d2 * 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 ); 482c6: 0685 ffff ffc7 addil #-57,%d5 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 482cc: 2e3c 0004 8980 movel #297344,%d7 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 482d2: 2a6e 0008 moveal %fp@(8),%a5 482d6: 286e 000c moveal %fp@(12),%a4 482da: 282e 0010 movel %fp@(16),%d4 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 482de: 2652 moveal %a2@,%a3 * 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 ); 482e0: 486e fffc pea %fp@(-4) 482e4: 2f05 movel %d5,%sp@- 482e6: 2f0c movel %a4,%sp@- 482e8: 4875 2800 pea %a5@(00000000,%d2:l) 482ec: 4eb9 0004 8a10 jsr 48a10 pathnamelen -= len; 482f2: 2c2e fffc movel %fp@(-4),%d6 * 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 ); 482f6: 2600 movel %d0,%d3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 482f8: 4fef 0010 lea %sp@(16),%sp 482fc: 4a92 tstl %a2@ 482fe: 6700 00dc beqw 483dc rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 48302: 4a80 tstl %d0 48304: 671c beqs 48322 if ( node->type == IMFS_DIRECTORY ) 48306: 7001 moveq #1,%d0 48308: b0ab 0048 cmpl %a3@(72),%d0 4830c: 6614 bnes 48322 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 4830e: 4878 0001 pea 1 48312: 2f0a movel %a2,%sp@- 48314: 4eb9 0004 8136 jsr 48136 4831a: 508f addql #8,%sp 4831c: 4a80 tstl %d0 4831e: 6700 0162 beqw 48482 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 48322: 2652 moveal %a2@,%a3 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 48324: d486 addl %d6,%d2 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 48326: 99c6 subal %d6,%a4 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 48328: 7003 moveq #3,%d0 4832a: b083 cmpl %d3,%d0 4832c: 6742 beqs 48370 4832e: 7204 moveq #4,%d1 48330: b283 cmpl %d3,%d1 48332: 6700 00c0 beqw 483f4 48336: 103c 0002 moveb #2,%d0 4833a: b083 cmpl %d3,%d0 4833c: 6600 00c8 bnew 48406 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 48340: 2079 0005 b794 moveal 5b794 ,%a0 48346: b7e8 0018 cmpal %a0@(24),%a3 4834a: 6794 beqs 482e0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 4834c: 206a 0010 moveal %a2@(16),%a0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 48350: b7e8 001c cmpal %a0@(28),%a3 48354: 6614 bnes 4836a */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 48356: 4878 0014 pea 14 4835a: 260e movel %fp,%d3 4835c: 4868 0008 pea %a0@(8) 48360: 0683 ffff ffe8 addil #-24,%d3 48366: 6000 00ca braw 48432 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 4836a: 266b 0008 moveal %a3@(8),%a3 4836e: 6068 bras 483d8 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 48370: 202b 0048 movel %a3@(72),%d0 48374: 7203 moveq #3,%d1 48376: b280 cmpl %d0,%d1 48378: 6614 bnes 4838e IMFS_evaluate_hard_link( pathloc, 0 ); 4837a: 42a7 clrl %sp@- 4837c: 2f0a movel %a2,%sp@- 4837e: 4eb9 0004 8194 jsr 48194 node = pathloc->node_access; 48384: 2652 moveal %a2@,%a3 if ( !node ) 48386: 508f addql #8,%sp 48388: 4a8b tstl %a3 4838a: 661e bnes 483aa 4838c: 6024 bras 483b2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 4838e: 7204 moveq #4,%d1 48390: b280 cmpl %d0,%d1 48392: 6616 bnes 483aa result = IMFS_evaluate_sym_link( pathloc, 0 ); 48394: 42a7 clrl %sp@- 48396: 2f0a movel %a2,%sp@- 48398: 4eb9 0004 81ee jsr 481ee node = pathloc->node_access; 4839e: 2652 moveal %a2@,%a3 if ( result == -1 ) 483a0: 508f addql #8,%sp 483a2: 72ff moveq #-1,%d1 483a4: b280 cmpl %d0,%d1 483a6: 6700 00ea beqw 48492 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 483aa: 7001 moveq #1,%d0 483ac: b0ab 0048 cmpl %a3@(72),%d0 483b0: 6712 beqs 483c4 rtems_set_errno_and_return_minus_one( ENOTDIR ); 483b2: 4eb9 0004 cc6c jsr 4cc6c <__errno> 483b8: 7e14 moveq #20,%d7 483ba: 76ff moveq #-1,%d3 483bc: 2040 moveal %d0,%a0 483be: 2087 movel %d7,%a0@ 483c0: 6000 00d2 braw 48494 /* * 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 ) { 483c4: 206b 0058 moveal %a3@(88),%a0 483c8: 4a88 tstl %a0 483ca: 6656 bnes 48422 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 483cc: 2f05 movel %d5,%sp@- 483ce: 2047 moveal %d7,%a0 483d0: 2f0b movel %a3,%sp@- 483d2: 4e90 jsr %a0@ if ( !node ) 483d4: 508f addql #8,%sp /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 483d6: 2640 moveal %d0,%a3 if ( !node ) 483d8: 4a8b tstl %a3 483da: 6612 bnes 483ee rtems_set_errno_and_return_minus_one( ENOENT ); 483dc: 4eb9 0004 cc6c jsr 4cc6c <__errno> 483e2: 7c02 moveq #2,%d6 483e4: 76ff moveq #-1,%d3 483e6: 2040 moveal %d0,%a0 483e8: 2086 movel %d6,%a0@ 483ea: 6000 00a8 braw 48494 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 483ee: 248b movel %a3,%a2@ break; 483f0: 6000 feee braw 482e0 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 483f4: 4eb9 0004 cc6c jsr 4cc6c <__errno> 483fa: 7a5b moveq #91,%d5 483fc: 76ff moveq #-1,%d3 483fe: 2040 moveal %d0,%a0 48400: 2085 movel %d5,%a0@ 48402: 6000 0090 braw 48494 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 48406: 4a83 tstl %d3 48408: 6708 beqs 48412 4840a: 7004 moveq #4,%d0 4840c: b083 cmpl %d3,%d0 4840e: 6600 fed0 bnew 482e0 * 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 ) { 48412: 7201 moveq #1,%d1 48414: b2ab 0048 cmpl %a3@(72),%d1 48418: 664e bnes 48468 if ( node->info.directory.mt_fs != NULL ) { 4841a: 206b 0058 moveal %a3@(88),%a0 4841e: 4a88 tstl %a0 48420: 6746 beqs 48468 newloc = node->info.directory.mt_fs->mt_fs_root; 48422: 4878 0014 pea 14 48426: 260e movel %fp,%d3 48428: 0683 ffff ffe8 addil #-24,%d3 4842e: 4868 001c pea %a0@(28) 48432: 2f03 movel %d3,%sp@- 48434: 47f9 0004 d48c lea 4d48c ,%a3 4843a: 4e93 jsr %a3@ *pathloc = newloc; 4843c: 4878 0014 pea 14 48440: 2f03 movel %d3,%sp@- 48442: 2f0a movel %a2,%sp@- 48444: 4e93 jsr %a3@ return (*pathloc->ops->evalpath_h)( &pathname[i-len], 48446: 206e fffc moveal %fp@(-4),%a0 4844a: 9488 subl %a0,%d2 4844c: 2f0a movel %a2,%sp@- 4844e: 226a 000c moveal %a2@(12),%a1 48452: 2f04 movel %d4,%sp@- 48454: 4874 8800 pea %a4@(00000000,%a0:l) 48458: 4875 2800 pea %a5@(00000000,%d2:l) 4845c: 2051 moveal %a1@,%a0 4845e: 4e90 jsr %a0@ 48460: 4fef 0028 lea %sp@(40),%sp 48464: 2600 movel %d0,%d3 48466: 602c bras 48494 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 48468: 2f0a movel %a2,%sp@- 4846a: 4eb9 0004 80c8 jsr 480c8 48470: 2600 movel %d0,%d3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 48472: 2e84 movel %d4,%sp@ 48474: 2f0a movel %a2,%sp@- 48476: 4eb9 0004 8136 jsr 48136 4847c: 508f addql #8,%sp 4847e: 4a80 tstl %d0 48480: 6612 bnes 48494 rtems_set_errno_and_return_minus_one( EACCES ); 48482: 4eb9 0004 cc6c jsr 4cc6c <__errno> 48488: 780d moveq #13,%d4 4848a: 76ff moveq #-1,%d3 4848c: 2040 moveal %d0,%a0 4848e: 2084 movel %d4,%a0@ 48490: 6002 bras 48494 48492: 2600 movel %d0,%d3 <== NOT EXECUTED return result; } 48494: 2003 movel %d3,%d0 48496: 4cee 3cfc ff9c moveml %fp@(-100),%d2-%d7/%a2-%a5 4849c: 4e5e unlk %fp 4849e: 4e75 rts 00048194 : /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 48194: 7003 moveq #3,%d0 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 48196: 4e56 0000 linkw %fp,#0 4819a: 2f0a movel %a2,%sp@- 4819c: 246e 0008 moveal %fp@(8),%a2 IMFS_jnode_t *jnode = node->node_access; 481a0: 2052 moveal %a2@,%a0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 481a2: b0a8 0048 cmpl %a0@(72),%d0 481a6: 670c beqs 481b4 rtems_fatal_error_occurred (0xABCD0000); 481a8: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 481ae: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 481b4: 24a8 004c movel %a0@(76),%a2@ IMFS_Set_handlers( node ); 481b8: 2f0a movel %a2,%sp@- 481ba: 4eb9 0004 80c8 jsr 480c8 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 481c0: 2f2e 000c movel %fp@(12),%sp@- 481c4: 2f0a movel %a2,%sp@- 481c6: 4eb9 0004 8136 jsr 48136 481cc: 4fef 000c lea %sp@(12),%sp 481d0: 4a80 tstl %d0 481d2: 6704 beqs 481d8 481d4: 4280 clrl %d0 481d6: 600e bras 481e6 rtems_set_errno_and_return_minus_one( EACCES ); 481d8: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 481de: 720d moveq #13,%d1 <== NOT EXECUTED 481e0: 2040 moveal %d0,%a0 <== NOT EXECUTED 481e2: 70ff moveq #-1,%d0 <== NOT EXECUTED 481e4: 2081 movel %d1,%a0@ <== NOT EXECUTED return result; } 481e6: 246e fffc moveal %fp@(-4),%a2 481ea: 4e5e unlk %fp 481ec: 4e75 rts 000481ee : /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 481ee: 7004 moveq #4,%d0 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 481f0: 4e56 fff0 linkw %fp,#-16 481f4: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 481f8: 246e 0008 moveal %fp@(8),%a2 481fc: 242e 000c movel %fp@(12),%d2 IMFS_jnode_t *jnode = node->node_access; 48200: 2652 moveal %a2@,%a3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 48202: b0ab 0048 cmpl %a3@(72),%d0 48206: 6708 beqs 48210 rtems_fatal_error_occurred (0xABCD0000); 48208: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 4820e: 600c bras 4821c <== NOT EXECUTED if ( !jnode->Parent ) 48210: 202b 0008 movel %a3@(8),%d0 48214: 660c bnes 48222 rtems_fatal_error_occurred( 0xBAD00000 ); 48216: 2f3c bad0 0000 movel #-1160773632,%sp@- <== NOT EXECUTED 4821c: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 48222: 2480 movel %d0,%a2@ rtems_filesystem_get_sym_start_loc( 48224: 206b 004c moveal %a3@(76),%a0 48228: 762f moveq #47,%d3 4822a: 1010 moveb %a0@,%d0 4822c: 1200 moveb %d0,%d1 4822e: 49c1 extbl %d1 48230: b681 cmpl %d1,%d3 48232: 6710 beqs 48244 48234: 163c 005c moveb #92,%d3 48238: b681 cmpl %d1,%d3 4823a: 6708 beqs 48244 4823c: 4a00 tstb %d0 4823e: 6704 beqs 48244 48240: 4280 clrl %d0 48242: 601e bras 48262 48244: 4878 0014 pea 14 48248: 2079 0005 b794 moveal 5b794 ,%a0 4824e: 41e8 0018 lea %a0@(24),%a0 48252: 2f08 movel %a0,%sp@- 48254: 2f0a movel %a2,%sp@- 48256: 4eb9 0004 d48c jsr 4d48c 4825c: 4fef 000c lea %sp@(12),%sp 48260: 7001 moveq #1,%d0 * 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] ), 48262: 266b 004c moveal %a3@(76),%a3 48266: d7c0 addal %d0,%a3 48268: 2f0b movel %a3,%sp@- 4826a: 4eb9 0004 e038 jsr 4e038 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 48270: 2e8a movel %a2,%sp@ 48272: 2f02 movel %d2,%sp@- 48274: 2f00 movel %d0,%sp@- 48276: 2f0b movel %a3,%sp@- 48278: 4eb9 0004 82b6 jsr 482b6 4827e: 2640 moveal %d0,%a3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 48280: 2f0a movel %a2,%sp@- 48282: 4eb9 0004 80c8 jsr 480c8 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 48288: 2f02 movel %d2,%sp@- 4828a: 2f0a movel %a2,%sp@- 4828c: 4eb9 0004 8136 jsr 48136 48292: 4fef 001c lea %sp@(28),%sp 48296: 4a80 tstl %d0 48298: 6610 bnes 482aa rtems_set_errno_and_return_minus_one( EACCES ); 4829a: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 482a0: 740d moveq #13,%d2 <== NOT EXECUTED 482a2: 2040 moveal %d0,%a0 <== NOT EXECUTED 482a4: 367c ffff moveaw #-1,%a3 <== NOT EXECUTED 482a8: 2082 movel %d2,%a0@ <== NOT EXECUTED return result; } 482aa: 200b movel %a3,%d0 482ac: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 482b2: 4e5e unlk %fp 482b4: 4e75 rts 0004b770 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4b770: 4e56 fff8 linkw %fp,#-8 4b774: 206e 0008 moveal %fp@(8),%a0 4b778: 2f0a movel %a2,%sp@- IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 4b77a: 2450 moveal %a0@,%a2 int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4b77c: 2f02 movel %d2,%sp@- * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4b77e: 4282 clrl %d2 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 4b780: 4eb9 0004 90bc jsr 490bc if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4b786: 4281 clrl %d1 4b788: 3400 movew %d0,%d2 4b78a: 322a 0038 movew %a2@(56),%d1 4b78e: b282 cmpl %d2,%d1 4b790: 6714 beqs 4b7a6 4b792: 4a40 tstw %d0 <== NOT EXECUTED 4b794: 6710 beqs 4b7a6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 4b796: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4b79c: 7201 moveq #1,%d1 <== NOT EXECUTED 4b79e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b7a0: 70ff moveq #-1,%d0 <== NOT EXECUTED 4b7a2: 2081 movel %d1,%a0@ <== NOT EXECUTED 4b7a4: 6030 bras 4b7d6 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 4b7a6: 202a 002e movel %a2@(46),%d0 4b7aa: 222e 000c movel %fp@(12),%d1 4b7ae: 0280 ffff f000 andil #-4096,%d0 4b7b4: 0281 0000 0fff andil #4095,%d1 4b7ba: 8280 orl %d0,%d1 4b7bc: 2541 002e movel %d1,%a2@(46) IMFS_update_ctime( jnode ); 4b7c0: 42a7 clrl %sp@- 4b7c2: 486e fff8 pea %fp@(-8) 4b7c6: 4eb9 0004 90d0 jsr 490d0 4b7cc: 256e fff8 0044 movel %fp@(-8),%a2@(68) return 0; 4b7d2: 508f addql #8,%sp */ 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); IMFS_update_ctime( jnode ); 4b7d4: 4280 clrl %d0 return 0; } 4b7d6: 242e fff0 movel %fp@(-16),%d2 4b7da: 246e fff4 moveal %fp@(-12),%a2 4b7de: 4e5e unlk %fp 4b7e0: 4e75 rts ... 000488da : } int IMFS_fifo_close( rtems_libio_t *iop ) { 488da: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 488de: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 488e2: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 488e6: 246b 0038 moveal %a3@(56),%a2 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 488ea: 2f0b movel %a3,%sp@- <== NOT EXECUTED 488ec: 486a 004c pea %a2@(76) <== NOT EXECUTED 488f0: 4eb9 0004 b158 jsr 4b158 <== NOT EXECUTED if (! err) { 488f6: 508f addql #8,%sp <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 488f8: 2400 movel %d0,%d2 <== NOT EXECUTED if (! err) { 488fa: 662a bnes 48926 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 488fc: 203c ffff feff movel #-257,%d0 <== 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) 48902: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 48904: c1ab 0014 andl %d0,%a3@(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) 48908: 4eb9 0004 91a2 jsr 491a2 <== NOT EXECUTED 4890e: 588f addql #4,%sp <== NOT EXECUTED 48910: 4a80 tstl %d0 <== NOT EXECUTED 48912: 6624 bnes 48938 <== NOT EXECUTED 48914: 4a6a 0032 tstw %a2@(50) <== NOT EXECUTED 48918: 661e bnes 48938 <== NOT EXECUTED free(jnode); 4891a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4891c: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED 48922: 588f addql #4,%sp <== NOT EXECUTED 48924: 6012 bras 48938 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 48926: 4a80 tstl %d0 <== NOT EXECUTED 48928: 6c0e bges 48938 <== NOT EXECUTED 4892a: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 48930: 4482 negl %d2 <== NOT EXECUTED 48932: 2040 moveal %d0,%a0 <== NOT EXECUTED 48934: 2082 movel %d2,%a0@ <== NOT EXECUTED 48936: 74ff moveq #-1,%d2 <== NOT EXECUTED } 48938: 2002 movel %d2,%d0 <== NOT EXECUTED 4893a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48940: 4e5e unlk %fp <== NOT EXECUTED 48942: 4e75 rts 000487a2 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 487a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 487a6: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 487aa: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 487ae: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 487b2: 2f02 movel %d2,%sp@- <== NOT EXECUTED int err; if (command == FIONBIO) { 487b4: 0c80 8004 667e cmpil #-2147195266,%d0 <== NOT EXECUTED 487ba: 6620 bnes 487dc <== NOT EXECUTED if (buffer == NULL) 487bc: 4a89 tstl %a1 <== NOT EXECUTED 487be: 6604 bnes 487c4 <== NOT EXECUTED 487c0: 74f2 moveq #-14,%d2 <== NOT EXECUTED 487c2: 6034 bras 487f8 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 487c4: 4a91 tstl %a1@ <== NOT EXECUTED 487c6: 670a beqs 487d2 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 487c8: 7001 moveq #1,%d0 <== NOT EXECUTED 487ca: 4282 clrl %d2 <== NOT EXECUTED 487cc: 81a8 0014 orl %d0,%a0@(20) <== NOT EXECUTED 487d0: 6034 bras 48806 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 487d2: 70fe moveq #-2,%d0 <== NOT EXECUTED 487d4: 4282 clrl %d2 <== NOT EXECUTED 487d6: c1a8 0014 andl %d0,%a0@(20) <== NOT EXECUTED 487da: 602a bras 48806 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 487dc: 2f08 movel %a0,%sp@- <== NOT EXECUTED 487de: 2068 0038 moveal %a0@(56),%a0 <== NOT EXECUTED 487e2: 2f09 movel %a1,%sp@- <== NOT EXECUTED 487e4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 487e6: 2f28 004c movel %a0@(76),%sp@- <== NOT EXECUTED 487ea: 4eb9 0004 adba jsr 4adba <== NOT EXECUTED IMFS_FIFO_RETURN(err); 487f0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 487f4: 2400 movel %d0,%d2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 487f6: 6c0e bges 48806 <== NOT EXECUTED 487f8: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 487fe: 4482 negl %d2 <== NOT EXECUTED 48800: 2040 moveal %d0,%a0 <== NOT EXECUTED 48802: 2082 movel %d2,%a0@ <== NOT EXECUTED 48804: 74ff moveq #-1,%d2 <== NOT EXECUTED } 48806: 2002 movel %d2,%d0 <== NOT EXECUTED 48808: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4880c: 4e5e unlk %fp <== NOT EXECUTED 4880e: 4e75 rts 0004874c : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 4874c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48750: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 48754: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 48758: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4875a: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 4875e: 2068 0038 moveal %a0@(56),%a0 <== NOT EXECUTED 48762: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 48766: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4876a: 2f28 004c movel %a0@(76),%sp@- <== NOT EXECUTED 4876e: 4eb9 0004 ad60 jsr 4ad60 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 48774: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED rtems_libio_t *iop, rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 48778: 2800 movel %d0,%d4 <== NOT EXECUTED 4877a: 2600 movel %d0,%d3 <== NOT EXECUTED 4877c: 5bc2 smi %d2 <== NOT EXECUTED 4877e: 49c2 extbl %d2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 48780: 4a82 tstl %d2 <== NOT EXECUTED 48782: 6a10 bpls 48794 <== NOT EXECUTED 48784: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4878a: 4484 negl %d4 <== NOT EXECUTED 4878c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4878e: 74ff moveq #-1,%d2 <== NOT EXECUTED 48790: 76ff moveq #-1,%d3 <== NOT EXECUTED 48792: 2084 movel %d4,%a0@ <== NOT EXECUTED } 48794: 2203 movel %d3,%d1 <== NOT EXECUTED 48796: 2002 movel %d2,%d0 <== NOT EXECUTED 48798: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4879e: 4e5e unlk %fp <== NOT EXECUTED 487a0: 4e75 rts 00048878 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 48878: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 4887c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 48880: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48882: 2f02 movel %d2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 48884: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48886: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4888a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED rtems_libio_t *iop, void *buffer, size_t count ) { IMFS_jnode_t *jnode = iop->file_info; 4888e: 2468 0038 moveal %a0@(56),%a2 <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 48892: 2f2a 004c movel %a2@(76),%sp@- <== NOT EXECUTED 48896: 4eb9 0004 ae1a jsr 4ae1a <== NOT EXECUTED if (err > 0) 4889c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED size_t count ) { IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 488a0: 2400 movel %d0,%d2 <== NOT EXECUTED if (err > 0) 488a2: 6f16 bles 488ba <== NOT EXECUTED IMFS_update_atime(jnode); 488a4: 42a7 clrl %sp@- <== NOT EXECUTED 488a6: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 488aa: 4eb9 0004 90d0 jsr 490d0 <== NOT EXECUTED 488b0: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED 488b6: 508f addql #8,%sp <== NOT EXECUTED 488b8: 6012 bras 488cc <== NOT EXECUTED IMFS_FIFO_RETURN(err); 488ba: 4a80 tstl %d0 <== NOT EXECUTED 488bc: 670e beqs 488cc <== NOT EXECUTED 488be: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 488c4: 4482 negl %d2 <== NOT EXECUTED 488c6: 2040 moveal %d0,%a0 <== NOT EXECUTED 488c8: 2082 movel %d2,%a0@ <== NOT EXECUTED 488ca: 74ff moveq #-1,%d2 <== NOT EXECUTED } 488cc: 2002 movel %d2,%d0 <== NOT EXECUTED 488ce: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 488d2: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 488d6: 4e5e unlk %fp <== NOT EXECUTED 488d8: 4e75 rts 00048810 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 48810: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 48814: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 48818: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4881a: 2f02 movel %d2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 4881c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4881e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 48822: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED rtems_libio_t *iop, const void *buffer, size_t count ) { IMFS_jnode_t *jnode = iop->file_info; 48826: 2468 0038 moveal %a0@(56),%a2 <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 4882a: 2f2a 004c movel %a2@(76),%sp@- <== NOT EXECUTED 4882e: 4eb9 0004 af82 jsr 4af82 <== NOT EXECUTED if (err > 0) { 48834: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED size_t count ) { IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 48838: 2400 movel %d0,%d2 <== NOT EXECUTED if (err > 0) { 4883a: 6f1c bles 48858 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 4883c: 42a7 clrl %sp@- <== NOT EXECUTED 4883e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 48842: 4eb9 0004 90d0 jsr 490d0 <== NOT EXECUTED 48848: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 4884c: 508f addql #8,%sp <== NOT EXECUTED 4884e: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED 48852: 2540 0040 movel %d0,%a2@(64) <== NOT EXECUTED 48856: 6012 bras 4886a <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 48858: 4a80 tstl %d0 <== NOT EXECUTED 4885a: 670e beqs 4886a <== NOT EXECUTED 4885c: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 48862: 4482 negl %d2 <== NOT EXECUTED 48864: 2040 moveal %d0,%a0 <== NOT EXECUTED 48866: 2082 movel %d2,%a0@ <== NOT EXECUTED 48868: 74ff moveq #-1,%d2 <== NOT EXECUTED } 4886a: 2002 movel %d2,%d0 <== NOT EXECUTED 4886c: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 48870: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 48874: 4e5e unlk %fp <== NOT EXECUTED 48876: 4e75 rts 00048980 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 48980: 4e56 fff0 linkw %fp,#-16 48984: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ 48988: 246e 0008 moveal %fp@(8),%a2 4898c: 242e 000c movel %fp@(12),%d2 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 48990: 4a8a tstl %a2 48992: 661c bnes 489b0 48994: 4879 0005 b029 pea 5b029 <_global_impure_ptr+0x1b1> <== NOT EXECUTED 4899a: 4879 0005 a84f pea 5a84f <__FUNCTION__.5379> <== NOT EXECUTED 489a0: 4878 002a pea 2a <== NOT EXECUTED 489a4: 4879 0005 a7fe pea 5a7fe <== NOT EXECUTED 489aa: 4eb9 0004 8da4 jsr 48da4 <__assert_func> <== NOT EXECUTED if ( !name ) 489b0: 4a82 tstl %d2 489b2: 674e beqs 48a02 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 489b4: 4879 0005 a84a pea 5a84a 489ba: 49f9 0004 db74 lea 4db74 ,%a4 489c0: 2f02 movel %d2,%sp@- 489c2: 4e94 jsr %a4@ 489c4: 508f addql #8,%sp 489c6: 4a80 tstl %d0 489c8: 673a beqs 48a04 return directory; if ( !strcmp( name, dotdotname ) ) 489ca: 4879 0005 a84c pea 5a84c 489d0: 2f02 movel %d2,%sp@- 489d2: 4e94 jsr %a4@ 489d4: 508f addql #8,%sp 489d6: 4a80 tstl %d0 489d8: 6606 bnes 489e0 return directory->Parent; 489da: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED 489de: 6024 bras 48a04 <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 489e0: 266a 004c moveal %a2@(76),%a3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 489e4: 45ea 0050 lea %a2@(80),%a2 489e8: 6014 bras 489fe !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 ) ) 489ea: 486b 000c pea %a3@(12) 489ee: 2f02 movel %d2,%sp@- 489f0: 4e94 jsr %a4@ 489f2: 508f addql #8,%sp 489f4: 4a80 tstl %d0 489f6: 6604 bnes 489fc 489f8: 244b moveal %a3,%a2 489fa: 6008 bras 48a04 the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 489fc: 2653 moveal %a3@,%a3 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 489fe: b5cb cmpal %a3,%a2 48a00: 66e8 bnes 489ea 48a02: 95ca subal %a2,%a2 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 48a04: 200a movel %a2,%d0 48a06: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 48a0c: 4e5e unlk %fp 48a0e: 4e75 rts 0004d26c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4d26c: 4e56 ffd8 linkw %fp,#-40 * 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; 4d270: 200e movel %fp,%d0 4d272: 0680 ffff ffec addil #-20,%d0 ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4d278: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; 4d27c: 4878 0014 pea 14 temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 4d280: 2400 movel %d0,%d2 4d282: 4bf9 0004 c9a8 lea 4c9a8 ,%a5 if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( NULL, &loc ); 4d288: 49f9 0004 2d74 lea 42d74 ,%a4 ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4d28e: 266e 0008 moveal %fp@(8),%a3 * 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; 4d292: 486b 001c pea %a3@(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; 4d296: 246b 001c moveal %a3@(28),%a2 loc = temp_mt_entry->mt_fs_root; 4d29a: 2f00 movel %d0,%sp@- 4d29c: 4eb9 0005 1e9c jsr 51e9c /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 4d2a2: 4fef 000c lea %sp@(12),%sp 4d2a6: 42ab 001c clrl %a3@(28) do { next = jnode->Parent; 4d2aa: 266a 0008 moveal %a2@(8),%a3 loc.node_access = (void *)jnode; 4d2ae: 2d4a ffec movel %a2,%fp@(-20) IMFS_Set_handlers( &loc ); 4d2b2: 2f02 movel %d2,%sp@- 4d2b4: 4e95 jsr %a5@ if ( jnode->type != IMFS_DIRECTORY ) { 4d2b6: 588f addql #4,%sp */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4d2b8: 200a movel %a2,%d0 4d2ba: 0680 0000 0050 addil #80,%d0 4d2c0: 7201 moveq #1,%d1 4d2c2: b2aa 0048 cmpl %a2@(72),%d1 4d2c6: 6606 bnes 4d2ce 4d2c8: b0aa 004c cmpl %a2@(76),%d0 4d2cc: 660e bnes 4d2dc result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 4d2ce: 2f02 movel %d2,%sp@- 4d2d0: 42a7 clrl %sp@- 4d2d2: 4e94 jsr %a4@ if (result != 0) 4d2d4: 508f addql #8,%sp 4d2d6: 4a80 tstl %d0 4d2d8: 6626 bnes 4d300 4d2da: 244b moveal %a3,%a2 return -1; jnode = next; } if ( jnode != NULL ) { 4d2dc: 4a8a tstl %a2 4d2de: 6724 beqs 4d304 if ( jnode->type == IMFS_DIRECTORY ) { 4d2e0: 7001 moveq #1,%d0 4d2e2: b0aa 0048 cmpl %a2@(72),%d0 4d2e6: 66c2 bnes 4d2aa 4d2e8: 200a movel %a2,%d0 4d2ea: 0680 0000 0050 addil #80,%d0 4d2f0: b0aa 004c cmpl %a2@(76),%d0 4d2f4: 67b4 beqs 4d2aa if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); 4d2f6: 246a 004c moveal %a2@(76),%a2 } } } while (jnode != NULL); 4d2fa: 4a8a tstl %a2 4d2fc: 66ac bnes 4d2aa 4d2fe: 6004 bras 4d304 <== NOT EXECUTED 4d300: 70ff moveq #-1,%d0 <== NOT EXECUTED 4d302: 6002 bras 4d306 <== NOT EXECUTED 4d304: 4280 clrl %d0 return 0; } 4d306: 4cee 3c04 ffd8 moveml %fp@(-40),%d2/%a2-%a5 4d30c: 4e5e unlk %fp 4d30e: 4e75 rts 00048a10 : register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 48a10: 4280 clrl %d0 const char *path, int pathlen, char *token, int *token_len ) { 48a12: 4e56 fff0 linkw %fp,#-16 48a16: 226e 0008 moveal %fp@(8),%a1 48a1a: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 48a1e: 206e 000c moveal %fp@(12),%a0 48a22: 246e 0010 moveal %fp@(16),%a2 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 48a26: 1211 moveb %a1@,%d1 while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 48a28: 6016 bras 48a40 token[i] = c; 48a2a: 1581 0800 moveb %d1,%a2@(00000000,%d0:l) if ( i == IMFS_NAME_MAX ) 48a2e: 7220 moveq #32,%d1 48a30: b280 cmpl %d0,%d1 48a32: 6606 bnes 48a3a 48a34: 7404 moveq #4,%d2 48a36: 6000 0084 braw 48abc return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 48a3a: 5280 addql #1,%d0 48a3c: 1231 0800 moveb %a1@(00000000,%d0:l),%d1 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 48a40: 762f moveq #47,%d3 48a42: 1401 moveb %d1,%d2 48a44: 49c2 extbl %d2 48a46: b682 cmpl %d2,%d3 48a48: 6710 beqs 48a5a 48a4a: 163c 005c moveb #92,%d3 48a4e: b682 cmpl %d2,%d3 48a50: 6708 beqs 48a5a 48a52: 4a01 tstb %d1 48a54: 6704 beqs 48a5a 48a56: b1c0 cmpal %d0,%a0 48a58: 6ed0 bgts 48a2a /* * Copy a seperator into token. */ if ( i == 0 ) { 48a5a: 4a80 tstl %d0 48a5c: 6610 bnes 48a6e token[i] = c; 48a5e: 1481 moveb %d1,%a2@ if ( (token[i] != '\0') && pathlen ) { 48a60: 6720 beqs 48a82 48a62: 4a88 tstl %a0 48a64: 671c beqs 48a82 48a66: 7401 moveq #1,%d2 48a68: 103c 0001 moveb #1,%d0 48a6c: 6016 bras 48a84 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 48a6e: 4a32 08ff tstb %a2@(ffffffff,%d0:l) 48a72: 6604 bnes 48a78 48a74: 7403 moveq #3,%d2 <== NOT EXECUTED 48a76: 600c bras 48a84 <== NOT EXECUTED token[i] = '\0'; 48a78: 7403 moveq #3,%d2 48a7a: 4201 clrb %d1 48a7c: 1581 0800 moveb %d1,%a2@(00000000,%d0:l) 48a80: 6002 bras 48a84 48a82: 4282 clrl %d2 /* * Set token_len to the number of characters copied. */ *token_len = i; 48a84: 206e 0014 moveal %fp@(20),%a0 /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 48a88: 7603 moveq #3,%d3 /* * Set token_len to the number of characters copied. */ *token_len = i; 48a8a: 2080 movel %d0,%a0@ /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 48a8c: b682 cmpl %d2,%d3 48a8e: 662c bnes 48abc if ( strcmp( token, "..") == 0 ) 48a90: 4879 0005 a866 pea 5a866 <__FUNCTION__.5379+0x17> 48a96: 47f9 0004 db74 lea 4db74 ,%a3 48a9c: 2f0a movel %a2,%sp@- 48a9e: 4e93 jsr %a3@ 48aa0: 508f addql #8,%sp 48aa2: 4a80 tstl %d0 48aa4: 6604 bnes 48aaa 48aa6: 7402 moveq #2,%d2 48aa8: 6012 bras 48abc type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 48aaa: 4879 0005 a867 pea 5a867 <__FUNCTION__.5379+0x18> 48ab0: 2f0a movel %a2,%sp@- 48ab2: 4e93 jsr %a3@ 48ab4: 508f addql #8,%sp 48ab6: 4a80 tstl %d0 48ab8: 6602 bnes 48abc 48aba: 7401 moveq #1,%d2 type = IMFS_CURRENT_DIR; } return type; } 48abc: 2002 movel %d2,%d0 48abe: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 48ac4: 4e5e unlk %fp 48ac6: 4e75 rts 00048ac8 : IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 48ac8: 4281 clrl %d1 48aca: 7010 moveq #16,%d0 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 ) { 48acc: 4e56 fff4 linkw %fp,#-12 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 48ad0: 2079 0005 b688 moveal 5b688 ,%a0 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 ) { 48ad6: 48d7 040c moveml %d2-%d3/%a2,%sp@ 48ada: 246e 0008 moveal %fp@(8),%a2 48ade: 242e 0014 movel %fp@(20),%d2 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 48ae2: 5281 addql #1,%d1 48ae4: b1c0 cmpal %d0,%a0 48ae6: 670e beqs 48af6 48ae8: 7606 moveq #6,%d3 48aea: d080 addl %d0,%d0 48aec: b681 cmpl %d1,%d3 48aee: 66f2 bnes 48ae2 48af0: 203c 0000 0080 movel #128,%d0 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 48af6: 23c0 0005 c68c movel %d0,5c68c /* * 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(); 48afc: 4eb9 0004 b626 jsr 4b626 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; 48b02: 4878 0030 pea 30 48b06: 4879 0005 abe4 pea 5abe4 48b0c: 486a 0038 pea %a2@(56) * * 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; 48b10: 256e 000c 0028 movel %fp@(12),%a2@(40) /* * 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(); 48b16: 2540 001c movel %d0,%a2@(28) temp_mt_entry->mt_fs_root.handlers = directory_handlers; 48b1a: 2542 0024 movel %d2,%a2@(36) temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 48b1e: 4eb9 0004 d48c jsr 4d48c /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 48b24: 4878 000c pea c 48b28: 4878 0001 pea 1 48b2c: 4eb9 0004 8e68 jsr 48e68 if ( !fs_info ) { 48b32: 4fef 0014 lea %sp@(20),%sp 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 ) ); 48b36: 2040 moveal %d0,%a0 if ( !fs_info ) { 48b38: 4a80 tstl %d0 48b3a: 661c bnes 48b58 free(temp_mt_entry->mt_fs_root.node_access); 48b3c: 2f2a 001c movel %a2@(28),%sp@- <== NOT EXECUTED 48b40: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 48b46: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 48b4c: 588f addql #4,%sp <== NOT EXECUTED 48b4e: 720c moveq #12,%d1 <== NOT EXECUTED 48b50: 2040 moveal %d0,%a0 <== NOT EXECUTED 48b52: 70ff moveq #-1,%d0 <== NOT EXECUTED 48b54: 2081 movel %d1,%a0@ <== NOT EXECUTED 48b56: 6024 bras 48b7c <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 48b58: 7001 moveq #1,%d0 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; 48b5a: 226a 001c moveal %a2@(28),%a1 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 48b5e: 2080 movel %d0,%a0@ 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; 48b60: 7001 moveq #1,%d0 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 48b62: 216e 0010 0004 movel %fp@(16),%a0@(4) fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 48b68: 2340 0034 movel %d0,%a1@(52) * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 48b6c: 2142 0008 movel %d2,%a0@(8) 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; 48b70: 2548 0034 movel %a0,%a2@(52) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 48b74: 4eb9 0004 ad6a jsr 4ad6a 48b7a: 4280 clrl %d0 return 0; } 48b7c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 48b82: 4e5e unlk %fp 48b84: 4e75 rts ... 00042a54 : /* * 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 ) 42a54: 4280 clrl %d0 42a56: 7207 moveq #7,%d1 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 42a58: 4e56 ffbc linkw %fp,#-68 42a5c: 206e 0008 moveal %fp@(8),%a0 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 42a60: 2050 moveal %a0@,%a0 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 42a62: 2f03 movel %d3,%sp@- 42a64: 262e 0010 movel %fp@(16),%d3 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 42a68: 2d48 ffe0 movel %a0,%fp@(-32) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 42a6c: 3028 0032 movew %a0@(50),%d0 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 42a70: 2f02 movel %d2,%sp@- /* * 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 ) 42a72: b280 cmpl %d0,%d1 42a74: 6410 bccs 42a86 rtems_set_errno_and_return_minus_one( EMLINK ); 42a76: 4eb9 0005 167c jsr 5167c <__errno> 42a7c: 741f moveq #31,%d2 42a7e: 72ff moveq #-1,%d1 42a80: 2040 moveal %d0,%a0 42a82: 2082 movel %d2,%a0@ 42a84: 607c bras 42b02 /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 42a86: 2f03 movel %d3,%sp@- 42a88: 240e movel %fp,%d2 42a8a: 0682 ffff ffbf addil #-65,%d2 42a90: 4eb9 0005 29f8 jsr 529f8 42a96: 588f addql #4,%sp 42a98: 486e fffc pea %fp@(-4) 42a9c: 2f02 movel %d2,%sp@- 42a9e: 2f00 movel %d0,%sp@- 42aa0: 2f03 movel %d3,%sp@- 42aa2: 4eb9 0004 d3a0 jsr 4d3a0 * 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( 42aa8: 486e ffe0 pea %fp@(-32) 42aac: 2f3c 0000 a1ff movel #41471,%sp@- 42ab2: 2f02 movel %d2,%sp@- 42ab4: 4878 0003 pea 3 42ab8: 2f2e 000c movel %fp@(12),%sp@- 42abc: 4eb9 0004 c898 jsr 4c898 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 42ac2: 4fef 0024 lea %sp@(36),%sp 42ac6: 4a80 tstl %d0 42ac8: 6610 bnes 42ada rtems_set_errno_and_return_minus_one( ENOMEM ); 42aca: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42ad0: 72ff moveq #-1,%d1 <== NOT EXECUTED 42ad2: 2040 moveal %d0,%a0 <== NOT EXECUTED 42ad4: 700c moveq #12,%d0 <== NOT EXECUTED 42ad6: 2080 movel %d0,%a0@ <== NOT EXECUTED 42ad8: 6028 bras 42b02 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 42ada: 206e ffe0 moveal %fp@(-32),%a0 42ade: 3028 0032 movew %a0@(50),%d0 42ae2: 5280 addql #1,%d0 42ae4: 3140 0032 movew %d0,%a0@(50) IMFS_update_ctime( info.hard_link.link_node ); 42ae8: 42a7 clrl %sp@- 42aea: 486e fff4 pea %fp@(-12) 42aee: 4eb9 0004 3564 jsr 43564 42af4: 206e ffe0 moveal %fp@(-32),%a0 return 0; 42af8: 508f addql #8,%sp /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); 42afa: 4281 clrl %d1 42afc: 216e fff4 0044 movel %fp@(-12),%a0@(68) return 0; } 42b02: 242e ffb4 movel %fp@(-76),%d2 42b06: 2001 movel %d1,%d0 42b08: 262e ffb8 movel %fp@(-72),%d3 42b0c: 4e5e unlk %fp 42b0e: 4e75 rts 0004fb20 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 4fb20: 4e56 0000 linkw %fp,#0 4fb24: 206e 0008 moveal %fp@(8),%a0 4fb28: 2f0a movel %a2,%sp@- block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 4fb2a: 4a88 tstl %a0 4fb2c: 6612 bnes 4fb40 4fb2e: 4879 0005 fd7e pea 5fd7e <== NOT EXECUTED 4fb34: 4879 0005 ff10 pea 5ff10 <__FUNCTION__.6005> <== NOT EXECUTED 4fb3a: 4878 0169 pea 169 <== NOT EXECUTED 4fb3e: 6018 bras 4fb58 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4fb40: 7005 moveq #5,%d0 4fb42: b0a8 0048 cmpl %a0@(72),%d0 4fb46: 671c beqs 4fb64 4fb48: 4879 0005 fdce pea 5fdce <== NOT EXECUTED 4fb4e: 4879 0005 ff10 pea 5ff10 <__FUNCTION__.6005> <== NOT EXECUTED 4fb54: 4878 016d pea 16d <== NOT EXECUTED 4fb58: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4fb5e: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); 4fb64: 4878 0001 pea 1 4fb68: 2f2e 000c movel %fp@(12),%sp@- 4fb6c: 2f08 movel %a0,%sp@- 4fb6e: 4eb9 0004 f6e4 jsr 4f6e4 if ( *block_entry_ptr ) 4fb74: 4fef 000c lea %sp@(12),%sp 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 ); 4fb78: 2440 moveal %d0,%a2 if ( *block_entry_ptr ) 4fb7a: 4a92 tstl %a2@ 4fb7c: 6612 bnes 4fb90 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 4fb7e: 4eb9 0004 f6c0 jsr 4f6c0 if ( !memory ) 4fb84: 4a80 tstl %d0 4fb86: 6606 bnes 4fb8e 4fb88: 103c 0001 moveb #1,%d0 <== NOT EXECUTED 4fb8c: 6004 bras 4fb92 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 4fb8e: 2480 movel %d0,%a2@ 4fb90: 4280 clrl %d0 return 0; } 4fb92: 246e fffc moveal %fp@(-4),%a2 4fb96: 4e5e unlk %fp 4fb98: 4e75 rts 0004fb9a : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 4fb9a: 4e56 ffd8 linkw %fp,#-40 4fb9e: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4fba2: 246e 0008 moveal %fp@(8),%a2 4fba6: 242e 000c movel %fp@(12),%d2 4fbaa: 262e 0010 movel %fp@(16),%d3 /* * Perform internal consistency checks */ assert( the_jnode ); 4fbae: 4a8a tstl %a2 4fbb0: 6612 bnes 4fbc4 4fbb2: 4879 0005 fd7e pea 5fd7e <== NOT EXECUTED 4fbb8: 4879 0005 ff26 pea 5ff26 <__FUNCTION__.5956> <== NOT EXECUTED 4fbbe: 4878 0131 pea 131 <== NOT EXECUTED 4fbc2: 6018 bras 4fbdc <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4fbc4: 7005 moveq #5,%d0 4fbc6: b0aa 0048 cmpl %a2@(72),%d0 4fbca: 671c beqs 4fbe8 4fbcc: 4879 0005 fdce pea 5fdce <== NOT EXECUTED 4fbd2: 4879 0005 ff26 pea 5ff26 <__FUNCTION__.5956> <== NOT EXECUTED 4fbd8: 4878 0135 pea 135 <== NOT EXECUTED 4fbdc: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4fbe2: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 4fbe8: 2c39 0006 1874 movel 61874 ,%d6 4fbee: 2206 movel %d6,%d1 4fbf0: e489 lsrl #2,%d1 4fbf2: 2001 movel %d1,%d0 4fbf4: 5280 addql #1,%d0 4fbf6: 4c01 0800 mulsl %d1,%d0 4fbfa: 4284 clrl %d4 4fbfc: 5280 addql #1,%d0 4fbfe: 4c01 0800 mulsl %d1,%d0 4fc02: 5380 subql #1,%d0 4fc04: 4c06 0800 mulsl %d6,%d0 4fc08: 2a00 movel %d0,%d5 4fc0a: 2002 movel %d2,%d0 4fc0c: 2203 movel %d3,%d1 4fc0e: 9285 subl %d5,%d1 4fc10: 9184 subxl %d4,%d0 4fc12: 6d12 blts 4fc26 rtems_set_errno_and_return_minus_one( EINVAL ); 4fc14: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 4fc1a: 7416 moveq #22,%d2 <== NOT EXECUTED 4fc1c: 72ff moveq #-1,%d1 <== NOT EXECUTED 4fc1e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fc20: 2082 movel %d2,%a0@ <== NOT EXECUTED 4fc22: 6000 0092 braw 4fcb6 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 4fc26: 282a 004c movel %a2@(76),%d4 4fc2a: 2a2a 0050 movel %a2@(80),%d5 4fc2e: 2002 movel %d2,%d0 4fc30: 2203 movel %d3,%d1 4fc32: 9285 subl %d5,%d1 4fc34: 9184 subxl %d4,%d0 4fc36: 6e04 bgts 4fc3c 4fc38: 4281 clrl %d1 4fc3a: 607a bras 4fcb6 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fc3c: 47f9 0005 d248 lea 5d248 <__divdi3>,%a3 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { 4fc42: 4bf9 0004 fb20 lea 4fb20 ,%a5 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fc48: 2e06 movel %d6,%d7 4fc4a: 5bc6 smi %d6 4fc4c: 49c6 extbl %d6 4fc4e: 2f07 movel %d7,%sp@- 4fc50: 2f06 movel %d6,%sp@- 4fc52: 2f03 movel %d3,%sp@- 4fc54: 2f02 movel %d2,%sp@- 4fc56: 4e93 jsr %a3@ 4fc58: 4fef 0010 lea %sp@(16),%sp 4fc5c: 2841 moveal %d1,%a4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fc5e: 2f07 movel %d7,%sp@- 4fc60: 2f06 movel %d6,%sp@- 4fc62: 2f05 movel %d5,%sp@- 4fc64: 2f04 movel %d4,%sp@- 4fc66: 4e93 jsr %a3@ 4fc68: 4fef 0010 lea %sp@(16),%sp 4fc6c: 2c01 movel %d1,%d6 4fc6e: 2801 movel %d1,%d4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 4fc70: 6036 bras 4fca8 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 4fc72: 2f04 movel %d4,%sp@- 4fc74: 2f0a movel %a2,%sp@- 4fc76: 4e95 jsr %a5@ 4fc78: 508f addql #8,%sp 4fc7a: 4a80 tstl %d0 4fc7c: 6728 beqs 4fca6 4fc7e: 600c bras 4fc8c <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 4fc80: 2f04 movel %d4,%sp@- <== 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-- ) { 4fc82: 5384 subql #1,%d4 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 4fc84: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4fc86: 4e93 jsr %a3@ <== 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-- ) { 4fc88: 508f addql #8,%sp <== NOT EXECUTED 4fc8a: 6006 bras 4fc92 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 4fc8c: 47f9 0004 f8e4 lea 4f8e4 ,%a3 <== 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-- ) { 4fc92: bc84 cmpl %d4,%d6 <== NOT EXECUTED 4fc94: 63ea blss 4fc80 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 4fc96: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 4fc9c: 72ff moveq #-1,%d1 <== NOT EXECUTED 4fc9e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fca0: 701c moveq #28,%d0 <== NOT EXECUTED 4fca2: 2080 movel %d0,%a0@ <== NOT EXECUTED 4fca4: 6010 bras 4fcb6 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 4fca6: 5284 addql #1,%d4 4fca8: b9c4 cmpal %d4,%a4 4fcaa: 64c6 bccs 4fc72 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 4fcac: 4281 clrl %d1 4fcae: 2542 004c movel %d2,%a2@(76) 4fcb2: 2543 0050 movel %d3,%a2@(80) return 0; } 4fcb6: 2001 movel %d1,%d0 4fcb8: 4cee 3cfc ffd8 moveml %fp@(-40),%d2-%d7/%a2-%a5 4fcbe: 4e5e unlk %fp 4fcc0: 4e75 rts 0004f6e4 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 4f6e4: 4e56 fff0 linkw %fp,#-16 4f6e8: 206e 0010 moveal %fp@(16),%a0 4f6ec: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4f6f0: 246e 0008 moveal %fp@(8),%a2 4f6f4: 242e 000c movel %fp@(12),%d2 /* * Perform internal consistency checks */ assert( the_jnode ); 4f6f8: 4a8a tstl %a2 4f6fa: 6612 bnes 4f70e 4f6fc: 4879 0005 fd7e pea 5fd7e <== NOT EXECUTED 4f702: 4879 0005 fe81 pea 5fe81 <__FUNCTION__.6315> <== NOT EXECUTED 4f708: 4878 0388 pea 388 <== NOT EXECUTED 4f70c: 6018 bras 4f726 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 4f70e: 7005 moveq #5,%d0 4f710: b0aa 0048 cmpl %a2@(72),%d0 4f714: 671c beqs 4f732 4f716: 4879 0005 fdce pea 5fdce <== NOT EXECUTED 4f71c: 4879 0005 fe81 pea 5fe81 <__FUNCTION__.6315> <== NOT EXECUTED 4f722: 4878 038c pea 38c <== NOT EXECUTED 4f726: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4f72c: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 4f732: 2239 0006 1874 movel 61874 ,%d1 4f738: e489 lsrl #2,%d1 4f73a: 2001 movel %d1,%d0 4f73c: 5380 subql #1,%d0 4f73e: b082 cmpl %d2,%d0 4f740: 6536 bcss 4f778 #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 4f742: 226a 0054 moveal %a2@(84),%a1 if ( malloc_it ) { 4f746: 4a88 tstl %a0 4f748: 6720 beqs 4f76a if ( !p ) { 4f74a: 4a89 tstl %a1 4f74c: 6610 bnes 4f75e p = memfile_alloc_block(); 4f74e: 4eb9 0004 f6c0 jsr 4f6c0 if ( !p ) 4f754: 4a80 tstl %d0 4f756: 6700 0118 beqw 4f870 return 0; info->indirect = p; 4f75a: 2540 0054 movel %d0,%a2@(84) } return &info->indirect[ my_block ]; 4f75e: 206a 0054 moveal %a2@(84),%a0 4f762: e58a lsll #2,%d2 4f764: d1c2 addal %d2,%a0 4f766: 6000 010a braw 4f872 } if ( !p ) 4f76a: 4a89 tstl %a1 4f76c: 6700 0102 beqw 4f870 return 0; return &info->indirect[ my_block ]; 4f770: 41f1 2c00 lea %a1@(00000000,%d2:l:4),%a0 4f774: 6000 00fc braw 4f872 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 4f778: 2001 movel %d1,%d0 <== NOT EXECUTED 4f77a: 5280 addql #1,%d0 <== NOT EXECUTED 4f77c: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 4f780: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f782: 5389 subql #1,%a1 <== NOT EXECUTED 4f784: b3c2 cmpal %d2,%a1 <== NOT EXECUTED 4f786: 6562 bcss 4f7ea <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 4f788: 9481 subl %d1,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 4f78a: 202a 0058 movel %a2@(88),%d0 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 4f78e: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 4f792: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { 4f796: 4a88 tstl %a0 <== NOT EXECUTED 4f798: 6736 beqs 4f7d0 <== NOT EXECUTED if ( !p ) { 4f79a: 4a80 tstl %d0 <== NOT EXECUTED 4f79c: 6610 bnes 4f7ae <== NOT EXECUTED p = memfile_alloc_block(); 4f79e: 4eb9 0004 f6c0 jsr 4f6c0 <== NOT EXECUTED if ( !p ) 4f7a4: 4a80 tstl %d0 <== NOT EXECUTED 4f7a6: 6700 00c8 beqw 4f870 <== NOT EXECUTED return 0; info->doubly_indirect = p; 4f7aa: 2540 0058 movel %d0,%a2@(88) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 4f7ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f7b0: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 4f7b4: 2012 movel %a2@,%d0 <== NOT EXECUTED if ( !p1 ) { 4f7b6: 660e bnes 4f7c6 <== NOT EXECUTED p1 = memfile_alloc_block(); 4f7b8: 4eb9 0004 f6c0 jsr 4f6c0 <== NOT EXECUTED if ( !p1 ) 4f7be: 4a80 tstl %d0 <== NOT EXECUTED 4f7c0: 6700 00ae beqw 4f870 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 4f7c4: 2480 movel %d0,%a2@ <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 4f7c6: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f7c8: 41f1 3c00 lea %a1@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 4f7cc: 6000 00a4 braw 4f872 <== NOT EXECUTED } if ( !p ) 4f7d0: 4a80 tstl %d0 <== NOT EXECUTED 4f7d2: 6700 009c beqw 4f870 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 4f7d6: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f7d8: 2071 2c00 moveal %a1@(00000000,%d2:l:4),%a0 <== NOT EXECUTED if ( !p ) 4f7dc: 4a88 tstl %a0 <== NOT EXECUTED 4f7de: 6700 0090 beqw 4f870 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly, singly, p, &p[singly] ); fflush(stdout); #endif return (block_p *)&p[ singly ]; 4f7e2: 41f0 3c00 lea %a0@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 4f7e6: 6000 008a braw 4f872 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 4f7ea: 2600 movel %d0,%d3 <== NOT EXECUTED 4f7ec: 5283 addql #1,%d3 <== NOT EXECUTED 4f7ee: 4c01 3800 mulsl %d1,%d3 <== NOT EXECUTED 4f7f2: 5383 subql #1,%d3 <== NOT EXECUTED 4f7f4: b682 cmpl %d2,%d3 <== NOT EXECUTED 4f7f6: 6578 bcss 4f870 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 4f7f8: 9480 subl %d0,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 4f7fa: 4c41 2004 remul %d1,%d4,%d2 <== NOT EXECUTED 4f7fe: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; 4f802: 202a 005c movel %a2@(92),%d0 <== 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; 4f806: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 4f80a: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { 4f80e: 4a88 tstl %a0 <== NOT EXECUTED 4f810: 6746 beqs 4f858 <== NOT EXECUTED if ( !p ) { 4f812: 4a80 tstl %d0 <== NOT EXECUTED 4f814: 660e bnes 4f824 <== NOT EXECUTED p = memfile_alloc_block(); 4f816: 4eb9 0004 f6c0 jsr 4f6c0 <== NOT EXECUTED if ( !p ) 4f81c: 4a80 tstl %d0 <== NOT EXECUTED 4f81e: 6750 beqs 4f870 <== NOT EXECUTED return 0; info->triply_indirect = p; 4f820: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 4f824: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f826: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 4f82a: 2012 movel %a2@,%d0 <== NOT EXECUTED if ( !p1 ) { 4f82c: 660c bnes 4f83a <== NOT EXECUTED p1 = memfile_alloc_block(); 4f82e: 4eb9 0004 f6c0 jsr 4f6c0 <== NOT EXECUTED if ( !p1 ) 4f834: 4a80 tstl %d0 <== NOT EXECUTED 4f836: 6738 beqs 4f870 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 4f838: 2480 movel %d0,%a2@ <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 4f83a: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f83c: 45f1 3c00 lea %a1@(00000000,%d3:l:4),%a2 <== NOT EXECUTED 4f840: 2012 movel %a2@,%d0 <== NOT EXECUTED if ( !p2 ) { 4f842: 660c bnes 4f850 <== NOT EXECUTED p2 = memfile_alloc_block(); 4f844: 4eb9 0004 f6c0 jsr 4f6c0 <== NOT EXECUTED if ( !p2 ) 4f84a: 4a80 tstl %d0 <== NOT EXECUTED 4f84c: 6722 beqs 4f870 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 4f84e: 2480 movel %d0,%a2@ <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 4f850: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f852: 41f1 4c00 lea %a1@(00000000,%d4:l:4),%a0 <== NOT EXECUTED 4f856: 601a bras 4f872 <== NOT EXECUTED } if ( !p ) 4f858: 4a80 tstl %d0 <== NOT EXECUTED 4f85a: 6714 beqs 4f870 <== 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 ]; 4f85c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f85e: 2270 2c00 moveal %a0@(00000000,%d2:l:4),%a1 <== NOT EXECUTED if ( !p1 ) 4f862: 4a89 tstl %a1 <== NOT EXECUTED 4f864: 670a beqs 4f870 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 4f866: 2071 3c00 moveal %a1@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 4f86a: e58c lsll #2,%d4 <== NOT EXECUTED 4f86c: d1c4 addal %d4,%a0 <== NOT EXECUTED 4f86e: 6002 bras 4f872 <== NOT EXECUTED 4f870: 91c8 subal %a0,%a0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 4f872: 2008 movel %a0,%d0 4f874: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 4f87a: 4e5e unlk %fp 4f87c: 4e75 rts 000500a6 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 500a6: 4e56 ffc0 linkw %fp,#-64 500aa: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 500ae: 246e 0008 moveal %fp@(8),%a2 500b2: 2a2e 0014 movel %fp@(20),%d5 500b6: 2a6e 0018 moveal %fp@(24),%a5 500ba: 262e 000c movel %fp@(12),%d3 500be: 282e 0010 movel %fp@(16),%d4 /* * Perform internal consistency checks */ assert( the_jnode ); 500c2: 4a8a tstl %a2 500c4: 6612 bnes 500d8 500c6: 4879 0005 fd7e pea 5fd7e <== NOT EXECUTED 500cc: 4879 0005 feb3 pea 5feb3 <__FUNCTION__.6142> <== NOT EXECUTED 500d2: 4878 024c pea 24c <== NOT EXECUTED 500d6: 601e bras 500f6 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 500d8: 202a 0048 movel %a2@(72),%d0 500dc: 2200 movel %d0,%d1 500de: 5b81 subql #5,%d1 500e0: 7401 moveq #1,%d2 500e2: b481 cmpl %d1,%d2 500e4: 641c bccs 50102 500e6: 4879 0005 fe31 pea 5fe31 <== NOT EXECUTED 500ec: 4879 0005 feb3 pea 5feb3 <__FUNCTION__.6142> <== NOT EXECUTED 500f2: 4878 0251 pea 251 <== NOT EXECUTED 500f6: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 500fc: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 50102: 4a85 tstl %d5 50104: 6612 bnes 50118 50106: 4879 0005 fe7c pea 5fe7c <== NOT EXECUTED 5010c: 4879 0005 feb3 pea 5feb3 <__FUNCTION__.6142> <== NOT EXECUTED 50112: 4878 025a pea 25a <== NOT EXECUTED 50116: 60de bras 500f6 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 50118: 4a8d tstl %a5 5011a: 6612 bnes 5012e rtems_set_errno_and_return_minus_one( EINVAL ); 5011c: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 50122: 7e16 moveq #22,%d7 <== NOT EXECUTED 50124: 7cff moveq #-1,%d6 <== NOT EXECUTED 50126: 2040 moveal %d0,%a0 <== NOT EXECUTED 50128: 2087 movel %d7,%a0@ <== NOT EXECUTED 5012a: 6000 01c4 braw 502f0 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 5012e: 7206 moveq #6,%d1 50130: b280 cmpl %d0,%d1 50132: 6658 bnes 5018c unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 50134: 284d moveal %a5,%a4 <== NOT EXECUTED 50136: 97cb subal %a3,%a3 <== NOT EXECUTED 50138: 2c2a 004c movel %a2@(76),%d6 <== NOT EXECUTED 5013c: 2e2a 0050 movel %a2@(80),%d7 <== NOT EXECUTED 50140: 200b movel %a3,%d0 <== NOT EXECUTED 50142: 220c movel %a4,%d1 <== NOT EXECUTED 50144: 2d46 ffe8 movel %d6,%fp@(-24) <== NOT EXECUTED 50148: 2d47 ffec movel %d7,%fp@(-20) <== NOT EXECUTED 5014c: 9e84 subl %d4,%d7 <== NOT EXECUTED 5014e: 9d83 subxl %d3,%d6 <== 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; 50150: 206a 0054 moveal %a2@(84),%a0 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 50154: 9287 subl %d7,%d1 <== NOT EXECUTED 50156: 9186 subxl %d6,%d0 <== NOT EXECUTED 50158: 6e04 bgts 5015e <== NOT EXECUTED 5015a: 2c0d movel %a5,%d6 <== NOT EXECUTED 5015c: 6006 bras 50164 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 5015e: 2c2e ffec movel %fp@(-20),%d6 <== NOT EXECUTED 50162: 9c84 subl %d4,%d6 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 50164: 2f06 movel %d6,%sp@- <== NOT EXECUTED 50166: 4870 4800 pea %a0@(00000000,%d4:l) <== NOT EXECUTED 5016a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 5016c: 4eb9 0005 1e9c jsr 51e9c <== NOT EXECUTED IMFS_update_atime( the_jnode ); 50172: 42a7 clrl %sp@- <== NOT EXECUTED 50174: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 50178: 4eb9 0004 3564 jsr 43564 <== NOT EXECUTED 5017e: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED return my_length; 50184: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 50188: 6000 0166 braw 502f0 <== NOT EXECUTED * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) 5018c: 200d movel %a5,%d0 5018e: d084 addl %d4,%d0 50190: 2240 moveal %d0,%a1 50192: 91c8 subal %a0,%a0 50194: 202a 004c movel %a2@(76),%d0 50198: 222a 0050 movel %a2@(80),%d1 5019c: 2c08 movel %a0,%d6 5019e: 2e09 movel %a1,%d7 501a0: 9e81 subl %d1,%d7 501a2: 9d80 subxl %d0,%d6 501a4: 6e04 bgts 501aa 501a6: 240d movel %a5,%d2 <== NOT EXECUTED 501a8: 6006 bras 501b0 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 501aa: 2e01 movel %d1,%d7 501ac: 9e84 subl %d4,%d7 501ae: 2407 movel %d7,%d2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 501b0: 2e39 0006 1874 movel 61874 ,%d7 501b6: 2207 movel %d7,%d1 501b8: 5bc0 smi %d0 501ba: 49c0 extbl %d0 501bc: 2640 moveal %d0,%a3 501be: 2841 moveal %d1,%a4 501c0: 2f0c movel %a4,%sp@- 501c2: 2f00 movel %d0,%sp@- 501c4: 2f04 movel %d4,%sp@- 501c6: 2f03 movel %d3,%sp@- 501c8: 4eb9 0005 d600 jsr 5d600 <__moddi3> 501ce: 4fef 0010 lea %sp@(16),%sp 501d2: 2c01 movel %d1,%d6 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 501d4: 2f0c movel %a4,%sp@- 501d6: 2f0b movel %a3,%sp@- 501d8: 2f04 movel %d4,%sp@- 501da: 2f03 movel %d3,%sp@- 501dc: 4eb9 0005 d248 jsr 5d248 <__divdi3> 501e2: 4fef 0010 lea %sp@(16),%sp 501e6: 2601 movel %d1,%d3 if ( start_offset ) { 501e8: 4a86 tstl %d6 501ea: 6606 bnes 501f2 501ec: 2805 movel %d5,%d4 501ee: 99cc subal %a4,%a4 501f0: 604e bras 50240 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 ); 501f2: 42a7 clrl %sp@- 501f4: 2f01 movel %d1,%sp@- 501f6: 2f0a movel %a2,%sp@- 501f8: 4eb9 0004 f6e4 jsr 4f6e4 assert( block_ptr ); 501fe: 4fef 000c lea %sp@(12),%sp 50202: 4a80 tstl %d0 50204: 6614 bnes 5021a 50206: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 5020c: 4879 0005 feb3 pea 5feb3 <__FUNCTION__.6142> <== NOT EXECUTED 50212: 4878 0296 pea 296 <== NOT EXECUTED 50216: 6000 fede braw 500f6 <== NOT EXECUTED */ 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; 5021a: 9e86 subl %d6,%d7 5021c: 2842 moveal %d2,%a4 5021e: be82 cmpl %d2,%d7 50220: 6402 bccs 50224 50222: 2847 moveal %d7,%a4 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 ); 50224: 2f0c movel %a4,%sp@- 50226: 2040 moveal %d0,%a0 50228: dc90 addl %a0@,%d6 dest += to_copy; 5022a: 2805 movel %d5,%d4 block++; 5022c: 5283 addql #1,%d3 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; 5022e: d88c addl %a4,%d4 block++; my_length -= to_copy; 50230: 948c subl %a4,%d2 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 ); 50232: 2f06 movel %d6,%sp@- 50234: 2f05 movel %d5,%sp@- 50236: 4eb9 0005 1e9c jsr 51e9c dest += to_copy; block++; my_length -= to_copy; 5023c: 4fef 000c lea %sp@(12),%sp /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 50240: 2e39 0006 1874 movel 61874 ,%d7 50246: 4285 clrl %d5 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 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 ); 50248: 4bf9 0005 1e9c lea 51e9c ,%a5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 5024e: 603c bras 5028c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 50250: 42a7 clrl %sp@- 50252: da87 addl %d7,%d5 50254: 2f03 movel %d3,%sp@- 50256: 2f0a movel %a2,%sp@- 50258: 4eb9 0004 f6e4 jsr 4f6e4 assert( block_ptr ); 5025e: 4fef 000c lea %sp@(12),%sp 50262: 4a80 tstl %d0 50264: 6614 bnes 5027a 50266: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 5026c: 4879 0005 feb3 pea 5feb3 <__FUNCTION__.6142> <== NOT EXECUTED 50272: 4878 02a7 pea 2a7 <== NOT EXECUTED 50276: 6000 fe7e braw 500f6 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 5027a: 2040 moveal %d0,%a0 dest += to_copy; block++; 5027c: 5283 addql #1,%d3 my_length -= to_copy; 5027e: 9487 subl %d7,%d2 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 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 ); 50280: 2f07 movel %d7,%sp@- 50282: 2f10 movel %a0@,%sp@- 50284: 2f0b movel %a3,%sp@- 50286: 4e95 jsr %a5@ dest += to_copy; block++; my_length -= to_copy; 50288: 4fef 000c lea %sp@(12),%sp 5028c: 2c05 movel %d5,%d6 * are between the offset and the end of the file will result in * reading the data between offset and the end of the file (truncated * read). */ MEMFILE_STATIC ssize_t IMFS_memfile_read( 5028e: 2644 moveal %d4,%a3 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 50290: dc8c addl %a4,%d6 * are between the offset and the end of the file will result in * reading the data between offset and the end of the file (truncated * read). */ MEMFILE_STATIC ssize_t IMFS_memfile_read( 50292: d7c5 addal %d5,%a3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 50294: b4b9 0006 1874 cmpl 61874 ,%d2 5029a: 64b4 bccs 50250 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 5029c: 4a82 tstl %d2 5029e: 673c beqs 502dc block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 502a0: 42a7 clrl %sp@- 502a2: 2f03 movel %d3,%sp@- 502a4: 2f0a movel %a2,%sp@- 502a6: 4eb9 0004 f6e4 jsr 4f6e4 assert( block_ptr ); 502ac: 4fef 000c lea %sp@(12),%sp 502b0: 4a80 tstl %d0 502b2: 6614 bnes 502c8 502b4: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 502ba: 4879 0005 feb3 pea 5feb3 <__FUNCTION__.6142> <== NOT EXECUTED 502c0: 4878 02b9 pea 2b9 <== NOT EXECUTED 502c4: 6000 fe30 braw 500f6 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 502c8: 2040 moveal %d0,%a0 copied += my_length; 502ca: dc82 addl %d2,%d6 if ( 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)[ 0 ], my_length ); 502cc: 2f02 movel %d2,%sp@- 502ce: 2f10 movel %a0@,%sp@- 502d0: 2f0b movel %a3,%sp@- 502d2: 4eb9 0005 1e9c jsr 51e9c copied += my_length; 502d8: 4fef 000c lea %sp@(12),%sp } IMFS_update_atime( the_jnode ); 502dc: 42a7 clrl %sp@- 502de: 486e fff8 pea %fp@(-8) 502e2: 4eb9 0004 3564 jsr 43564 502e8: 256e fff8 003c movel %fp@(-8),%a2@(60) return copied; 502ee: 508f addql #8,%sp } 502f0: 2006 movel %d6,%d0 502f2: 4cee 3cfc ffc0 moveml %fp@(-64),%d2-%d7/%a2-%a5 502f8: 4e5e unlk %fp 502fa: 4e75 rts 0004f930 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 4f930: 4e56 ffe4 linkw %fp,#-28 4f934: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 4f938: 246e 0008 moveal %fp@(8),%a2 /* * Perform internal consistency checks */ assert( the_jnode ); 4f93c: 4a8a tstl %a2 4f93e: 6612 bnes 4f952 4f940: 4879 0005 fd7e pea 5fd7e <== NOT EXECUTED 4f946: 4879 0005 fec5 pea 5fec5 <__FUNCTION__.6067> <== NOT EXECUTED 4f94c: 4878 01ee pea 1ee <== NOT EXECUTED 4f950: 6018 bras 4f96a <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4f952: 7005 moveq #5,%d0 4f954: b0aa 0048 cmpl %a2@(72),%d0 4f958: 671c beqs 4f976 4f95a: 4879 0005 fdce pea 5fdce <== NOT EXECUTED 4f960: 4879 0005 fec5 pea 5fec5 <__FUNCTION__.6067> <== NOT EXECUTED 4f966: 4878 01f2 pea 1f2 <== NOT EXECUTED 4f96a: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4f970: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; 4f976: 2439 0006 1874 movel 61874 ,%d2 4f97c: e48a lsrl #2,%d2 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f97e: 4aaa 0054 tstl %a2@(84) 4f982: 670e beqs 4f992 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 4f984: 2f02 movel %d2,%sp@- 4f986: 486a 0054 pea %a2@(84) 4f98a: 4eb9 0004 f87e jsr 4f87e 4f990: 508f addql #8,%sp * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f992: 4aaa 0058 tstl %a2@(88) 4f996: 673e beqs 4f9d6 4f998: 4283 clrl %d3 <== NOT EXECUTED if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { memfile_free_blocks_in_table( 4f99a: 47f9 0004 f87e lea 4f87e ,%a3 <== NOT EXECUTED 4f9a0: 601a bras 4f9bc <== NOT EXECUTED } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { 4f9a2: 2003 movel %d3,%d0 <== NOT EXECUTED 4f9a4: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED 4f9a8: e588 lsll #2,%d0 <== NOT EXECUTED 4f9aa: 4ab0 0800 tstl %a0@(00000000,%d0:l) <== NOT EXECUTED 4f9ae: 670a beqs 4f9ba <== NOT EXECUTED memfile_free_blocks_in_table( 4f9b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f9b2: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 4f9b6: 4e93 jsr %a3@ <== NOT EXECUTED 4f9b8: 508f addql #8,%sp <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i,%d0 <== NOT EXECUTED 4f9c2: e488 lsrl #2,%d0 <== NOT EXECUTED 4f9c4: b083 cmpl %d3,%d0 <== NOT EXECUTED 4f9c6: 62da bhis 4f9a2 <== 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 ); 4f9c8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f9ca: 486a 0058 pea %a2@(88) <== NOT EXECUTED 4f9ce: 4eb9 0004 f87e jsr 4f87e <== NOT EXECUTED 4f9d4: 508f addql #8,%sp <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f9d6: 4aaa 005c tstl %a2@(92) 4f9da: 6762 beqs 4fa3e 4f9dc: 4283 clrl %d3 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j,%a4 <== NOT EXECUTED 4f9e4: 603e bras 4fa24 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f9e6: 2a03 movel %d3,%d5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 4f9e8: 206a 005c moveal %a2@(92),%a0 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f9ec: e58d lsll #2,%d5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 4f9ee: 2670 5800 moveal %a0@(00000000,%d5:l),%a3 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 4f9f2: 4a8b tstl %a3 <== NOT EXECUTED 4f9f4: 673a beqs 4fa30 <== NOT EXECUTED 4f9f6: 4284 clrl %d4 <== NOT EXECUTED 4f9f8: 6010 bras 4fa0a <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 4f9fe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4fa00: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4fa02: 4e94 jsr %a4@ <== NOT EXECUTED 4fa04: 508f addql #8,%sp <== 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,%d0 <== NOT EXECUTED 4fa10: e488 lsrl #2,%d0 <== NOT EXECUTED 4fa12: b084 cmpl %d4,%d0 <== NOT EXECUTED 4fa14: 62e4 bhis 4f9fa <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 4fa16: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4fa18: daaa 005c addl %a2@(92),%d5 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; idoubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i,%d0 <== NOT EXECUTED 4fa2a: e488 lsrl #2,%d0 <== NOT EXECUTED 4fa2c: b083 cmpl %d3,%d0 <== NOT EXECUTED 4fa2e: 62b6 bhis 4f9e6 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 4fa30: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4fa32: 486a 005c pea %a2@(92) <== NOT EXECUTED 4fa36: 4eb9 0004 f87e jsr 4f87e <== NOT EXECUTED 4fa3c: 508f addql #8,%sp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 4fa3e: 4280 clrl %d0 4fa40: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 4fa46: 4e5e unlk %fp 4fa48: 4e75 rts 0004f8e4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 4f8e4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4f8e8: 42a7 clrl %sp@- <== NOT EXECUTED 4f8ea: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4f8ee: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4f8f2: 4eb9 0004 f6e4 jsr 4f6e4 <== NOT EXECUTED assert( block_ptr ); 4f8f8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4f8fc: 4a80 tstl %d0 <== NOT EXECUTED 4f8fe: 661c bnes 4f91c <== NOT EXECUTED 4f900: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 4f906: 4879 0005 fef6 pea 5fef6 <__FUNCTION__.6031> <== NOT EXECUTED 4f90c: 4878 0196 pea 196 <== NOT EXECUTED 4f910: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4f916: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 4f91c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f91e: 2210 movel %a0@,%d1 <== NOT EXECUTED *block_ptr = 0; 4f920: 4290 clrl %a0@ <== NOT EXECUTED memfile_free_block( ptr ); 4f922: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4f924: 4eb9 0004 f6a6 jsr 4f6a6 <== NOT EXECUTED } return 1; } 4f92a: 7001 moveq #1,%d0 <== NOT EXECUTED 4f92c: 4e5e unlk %fp <== NOT EXECUTED 4f92e: 4e75 rts 0004fdb6 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 4fdb6: 4e56 ffd0 linkw %fp,#-48 4fdba: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4fdbe: 246e 0008 moveal %fp@(8),%a2 4fdc2: 262e 0014 movel %fp@(20),%d3 4fdc6: 242e 0018 movel %fp@(24),%d2 /* * Perform internal consistency checks */ assert( the_jnode ); 4fdca: 4a8a tstl %a2 4fdcc: 6612 bnes 4fde0 4fdce: 4879 0005 fd7e pea 5fd7e <== NOT EXECUTED 4fdd4: 4879 0005 fea0 pea 5fea0 <__FUNCTION__.6234> <== NOT EXECUTED 4fdda: 4878 02e3 pea 2e3 <== NOT EXECUTED 4fdde: 6018 bras 4fdf8 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4fde0: 7805 moveq #5,%d4 4fde2: b8aa 0048 cmpl %a2@(72),%d4 4fde6: 671c beqs 4fe04 4fde8: 4879 0005 fdce pea 5fdce <== NOT EXECUTED 4fdee: 4879 0005 fea0 pea 5fea0 <__FUNCTION__.6234> <== NOT EXECUTED 4fdf4: 4878 02e7 pea 2e7 <== NOT EXECUTED 4fdf8: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4fdfe: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 4fe04: 4a83 tstl %d3 4fe06: 6612 bnes 4fe1a 4fe08: 4879 0005 f4d3 pea 5f4d3 <== NOT EXECUTED 4fe0e: 4879 0005 fea0 pea 5fea0 <__FUNCTION__.6234> <== NOT EXECUTED 4fe14: 4878 02ef pea 2ef <== NOT EXECUTED 4fe18: 60de bras 4fdf8 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 4fe1a: 4a82 tstl %d2 4fe1c: 6612 bnes 4fe30 rtems_set_errno_and_return_minus_one( EINVAL ); 4fe1e: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 4fe24: 7a16 moveq #22,%d5 <== NOT EXECUTED 4fe26: 7eff moveq #-1,%d7 <== NOT EXECUTED 4fe28: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fe2a: 2085 movel %d5,%a0@ <== NOT EXECUTED 4fe2c: 6000 0186 braw 4ffb4 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 4fe30: 206e 0010 moveal %fp@(16),%a0 4fe34: d1c2 addal %d2,%a0 4fe36: 2208 movel %a0,%d1 4fe38: 4280 clrl %d0 4fe3a: 282a 004c movel %a2@(76),%d4 4fe3e: 2a2a 0050 movel %a2@(80),%d5 4fe42: 9a81 subl %d1,%d5 4fe44: 9980 subxl %d0,%d4 4fe46: 6c26 bges 4fe6e status = IMFS_memfile_extend( the_jnode, last_byte ); 4fe48: 2f08 movel %a0,%sp@- 4fe4a: 2f00 movel %d0,%sp@- 4fe4c: 2f0a movel %a2,%sp@- 4fe4e: 4eb9 0004 fb9a jsr 4fb9a if ( status ) 4fe54: 4fef 000c lea %sp@(12),%sp 4fe58: 4a80 tstl %d0 4fe5a: 6712 beqs 4fe6e rtems_set_errno_and_return_minus_one( ENOSPC ); 4fe5c: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 4fe62: 781c moveq #28,%d4 <== NOT EXECUTED 4fe64: 7eff moveq #-1,%d7 <== NOT EXECUTED 4fe66: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fe68: 2084 movel %d4,%a0@ <== NOT EXECUTED 4fe6a: 6000 0148 braw 4ffb4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 4fe6e: 2e39 0006 1874 movel 61874 ,%d7 4fe74: 2207 movel %d7,%d1 4fe76: 5bc0 smi %d0 4fe78: 49c0 extbl %d0 4fe7a: 2640 moveal %d0,%a3 4fe7c: 2841 moveal %d1,%a4 4fe7e: 2f0c movel %a4,%sp@- 4fe80: 2f00 movel %d0,%sp@- 4fe82: 2f2e 0010 movel %fp@(16),%sp@- 4fe86: 2f2e 000c movel %fp@(12),%sp@- 4fe8a: 4eb9 0005 d600 jsr 5d600 <__moddi3> 4fe90: 4fef 0010 lea %sp@(16),%sp 4fe94: 2801 movel %d1,%d4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fe96: 2f0c movel %a4,%sp@- 4fe98: 2f0b movel %a3,%sp@- 4fe9a: 2f2e 0010 movel %fp@(16),%sp@- 4fe9e: 2f2e 000c movel %fp@(12),%sp@- 4fea2: 4eb9 0005 d248 jsr 5d248 <__divdi3> 4fea8: 4fef 0010 lea %sp@(16),%sp 4feac: 2a01 movel %d1,%d5 if ( start_offset ) { 4feae: 4a84 tstl %d4 4feb0: 6606 bnes 4feb8 4feb2: 2643 moveal %d3,%a3 4feb4: 4287 clrl %d7 4feb6: 604c bras 4ff04 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 ); 4feb8: 42a7 clrl %sp@- 4feba: 2f01 movel %d1,%sp@- 4febc: 2f0a movel %a2,%sp@- 4febe: 4eb9 0004 f6e4 jsr 4f6e4 assert( block_ptr ); 4fec4: 4fef 000c lea %sp@(12),%sp 4fec8: 4a80 tstl %d0 4feca: 6614 bnes 4fee0 4fecc: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 4fed2: 4879 0005 fea0 pea 5fea0 <__FUNCTION__.6234> <== NOT EXECUTED 4fed8: 4878 031c pea 31c <== NOT EXECUTED 4fedc: 6000 ff1a braw 4fdf8 <== NOT EXECUTED */ 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; 4fee0: 9e84 subl %d4,%d7 4fee2: b487 cmpl %d7,%d2 4fee4: 6402 bccs 4fee8 4fee6: 2e02 movel %d2,%d7 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 ); 4fee8: 2f07 movel %d7,%sp@- 4feea: 2040 moveal %d0,%a0 src += to_copy; 4feec: 2643 moveal %d3,%a3 4feee: d7c7 addal %d7,%a3 block++; 4fef0: 5285 addql #1,%d5 my_length -= to_copy; 4fef2: 9487 subl %d7,%d2 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 ); 4fef4: 2f03 movel %d3,%sp@- 4fef6: d890 addl %a0@,%d4 4fef8: 2f04 movel %d4,%sp@- 4fefa: 4eb9 0005 1e9c jsr 51e9c src += to_copy; block++; my_length -= to_copy; copied += to_copy; 4ff00: 4fef 000c lea %sp@(12),%sp /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 4ff04: 2639 0006 1874 movel 61874 ,%d3 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4ff0a: 4bf9 0004 f6e4 lea 4f6e4 ,%a5 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 ); 4ff10: 49f9 0005 1e9c lea 51e9c ,%a4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 4ff16: 603a bras 4ff52 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4ff18: 42a7 clrl %sp@- 4ff1a: 2f05 movel %d5,%sp@- 4ff1c: 2f0a movel %a2,%sp@- 4ff1e: 4e95 jsr %a5@ assert( block_ptr ); 4ff20: 4fef 000c lea %sp@(12),%sp 4ff24: 4a80 tstl %d0 4ff26: 6614 bnes 4ff3c 4ff28: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 4ff2e: 4879 0005 fea0 pea 5fea0 <__FUNCTION__.6234> <== NOT EXECUTED 4ff34: 4878 0330 pea 330 <== NOT EXECUTED 4ff38: 6000 febe braw 4fdf8 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 4ff3c: 2f03 movel %d3,%sp@- 4ff3e: 2240 moveal %d0,%a1 src += to_copy; block++; 4ff40: 5285 addql #1,%d5 my_length -= to_copy; 4ff42: 9483 subl %d3,%d2 * * 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( 4ff44: de83 addl %d3,%d7 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 ); 4ff46: 2f0b movel %a3,%sp@- 4ff48: 2f11 movel %a1@,%sp@- src += to_copy; 4ff4a: d7c3 addal %d3,%a3 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 ); 4ff4c: 4e94 jsr %a4@ * * 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( 4ff4e: 4fef 000c lea %sp@(12),%sp /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 4ff52: b4b9 0006 1874 cmpl 61874 ,%d2 4ff58: 64be bccs 4ff18 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 4ff5a: 4a82 tstl %d2 4ff5c: 673c beqs 4ff9a block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4ff5e: 42a7 clrl %sp@- 4ff60: 2f05 movel %d5,%sp@- 4ff62: 2f0a movel %a2,%sp@- 4ff64: 4eb9 0004 f6e4 jsr 4f6e4 assert( block_ptr ); 4ff6a: 4fef 000c lea %sp@(12),%sp 4ff6e: 4a80 tstl %d0 4ff70: 6614 bnes 4ff86 4ff72: 4879 0005 fdfe pea 5fdfe <== NOT EXECUTED 4ff78: 4879 0005 fea0 pea 5fea0 <__FUNCTION__.6234> <== NOT EXECUTED 4ff7e: 4878 0346 pea 346 <== NOT EXECUTED 4ff82: 6000 fe74 braw 4fdf8 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); 4ff86: 2f02 movel %d2,%sp@- 4ff88: 2040 moveal %d0,%a0 my_length = 0; copied += to_copy; 4ff8a: de82 addl %d2,%d7 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 ); 4ff8c: 2f0b movel %a3,%sp@- 4ff8e: 2f10 movel %a0@,%sp@- 4ff90: 4eb9 0005 1e9c jsr 51e9c my_length = 0; copied += to_copy; 4ff96: 4fef 000c lea %sp@(12),%sp } IMFS_mtime_ctime_update( the_jnode ); 4ff9a: 42a7 clrl %sp@- 4ff9c: 486e fff8 pea %fp@(-8) 4ffa0: 4eb9 0004 3564 jsr 43564 4ffa6: 202e fff8 movel %fp@(-8),%d0 return copied; 4ffaa: 508f addql #8,%sp memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 4ffac: 2540 0044 movel %d0,%a2@(68) 4ffb0: 2540 0040 movel %d0,%a2@(64) return copied; } 4ffb4: 2007 movel %d7,%d0 4ffb6: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 4ffbc: 4e5e unlk %fp 4ffbe: 4e75 rts 00048b88 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48b88: 4e56 ffb4 linkw %fp,#-76 48b8c: 48d7 003c moveml %d2-%d5,%sp@ 48b90: 262e 0008 movel %fp@(8),%d3 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 ); 48b94: 2f03 movel %d3,%sp@- const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48b96: 242e 000c movel %fp@(12),%d2 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 ); 48b9a: 4eb9 0004 e038 jsr 4e038 48ba0: 588f addql #4,%sp 48ba2: 486e fffc pea %fp@(-4) 48ba6: 486e ffc7 pea %fp@(-57) const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48baa: 2a2e 0010 movel %fp@(16),%d5 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 ); 48bae: 2f00 movel %d0,%sp@- const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48bb0: 282e 0014 movel %fp@(20),%d4 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 ); 48bb4: 2f03 movel %d3,%sp@- 48bb6: 4eb9 0004 8a10 jsr 48a10 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 48bbc: 4fef 0010 lea %sp@(16),%sp 48bc0: 2002 movel %d2,%d0 48bc2: 0280 0000 f000 andil #61440,%d0 48bc8: 0c80 0000 4000 cmpil #16384,%d0 48bce: 6748 beqs 48c18 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 48bd0: 0c80 0000 8000 cmpil #32768,%d0 48bd6: 6606 bnes 48bde 48bd8: 303c 0005 movew #5,%d0 48bdc: 603c bras 48c1a type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 48bde: 0c80 0000 6000 cmpil #24576,%d0 48be4: 6708 beqs 48bee 48be6: 0c80 0000 2000 cmpil #8192,%d0 48bec: 660c bnes 48bfa type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 48bee: 2d45 ffe8 movel %d5,%fp@(-24) 48bf2: 7002 moveq #2,%d0 48bf4: 2d44 ffec movel %d4,%fp@(-20) */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 48bf8: 6020 bras 48c1a type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 48bfa: 0c80 0000 1000 cmpil #4096,%d0 48c00: 6606 bnes 48c08 48c02: 303c 0007 movew #7,%d0 48c06: 6012 bras 48c1a type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 48c08: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 48c0e: 7416 moveq #22,%d2 <== NOT EXECUTED 48c10: 72ff moveq #-1,%d1 <== NOT EXECUTED 48c12: 2040 moveal %d0,%a0 <== NOT EXECUTED 48c14: 2082 movel %d2,%a0@ <== NOT EXECUTED 48c16: 6032 bras 48c4a <== NOT EXECUTED 48c18: 7001 moveq #1,%d0 * 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( 48c1a: 486e ffe8 pea %fp@(-24) 48c1e: 2f02 movel %d2,%sp@- 48c20: 486e ffc7 pea %fp@(-57) 48c24: 2f00 movel %d0,%sp@- 48c26: 2f2e 0018 movel %fp@(24),%sp@- 48c2a: 4eb9 0004 b660 jsr 4b660 new_name, mode, &info ); if ( !new_node ) 48c30: 4fef 0014 lea %sp@(20),%sp 48c34: 4a80 tstl %d0 48c36: 6704 beqs 48c3c 48c38: 4281 clrl %d1 48c3a: 600e bras 48c4a rtems_set_errno_and_return_minus_one( ENOMEM ); 48c3c: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 48c42: 72ff moveq #-1,%d1 <== NOT EXECUTED 48c44: 2040 moveal %d0,%a0 <== NOT EXECUTED 48c46: 700c moveq #12,%d0 <== NOT EXECUTED 48c48: 2080 movel %d0,%a0@ <== NOT EXECUTED return 0; } 48c4a: 2001 movel %d1,%d0 48c4c: 4cee 003c ffb4 moveml %fp@(-76),%d2-%d5 48c52: 4e5e unlk %fp 48c54: 4e75 rts ... 00042be0 : /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42be0: 7001 moveq #1,%d0 #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 42be2: 4e56 0000 linkw %fp,#0 42be6: 226e 0008 moveal %fp@(8),%a1 IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 42bea: 2069 0008 moveal %a1@(8),%a0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42bee: b0a8 0048 cmpl %a0@(72),%d0 42bf2: 6710 beqs 42c04 rtems_set_errno_and_return_minus_one( ENOTDIR ); 42bf4: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42bfa: 7214 moveq #20,%d1 <== NOT EXECUTED 42bfc: 2040 moveal %d0,%a0 <== NOT EXECUTED 42bfe: 70ff moveq #-1,%d0 <== NOT EXECUTED 42c00: 2081 movel %d1,%a0@ <== NOT EXECUTED 42c02: 6006 bras 42c0a <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 42c04: 2149 0058 movel %a1,%a0@(88) 42c08: 4280 clrl %d0 return 0; } 42c0a: 4e5e unlk %fp 42c0c: 4e75 rts ... 00043412 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 43412: 4e56 0000 linkw %fp,#0 43416: 2f0a movel %a2,%sp@- 43418: 246e 0008 moveal %fp@(8),%a2 4341c: 2f02 movel %d2,%sp@- assert( the_jnode ); 4341e: 4a8a tstl %a2 43420: 6614 bnes 43436 43422: 4879 0005 fb90 pea 5fb90 <== NOT EXECUTED 43428: 4879 0005 fd28 pea 5fd28 <__FUNCTION__.6554> <== NOT EXECUTED 4342e: 4878 0038 pea 38 <== NOT EXECUTED 43432: 6000 00c6 braw 434fa <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); 43436: 2079 0006 17b0 moveal 617b0 <_impure_ptr>,%a0 switch( the_jnode->type ) { 4343c: 7406 moveq #6,%d2 IMFS_jnode_t *the_jnode ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); 4343e: 2f28 0008 movel %a0@(8),%sp@- 43442: 486a 000c pea %a2@(12) 43446: 4eb9 0005 0dd0 jsr 50dd0 switch( the_jnode->type ) { 4344c: 202a 0048 movel %a2@(72),%d0 43450: 2200 movel %d0,%d1 43452: 508f addql #8,%sp 43454: 5381 subql #1,%d1 43456: b481 cmpl %d1,%d2 43458: 6500 00f0 bcsw 4354a 4345c: 2079 0006 17b0 moveal 617b0 <_impure_ptr>,%a0 43462: 303b 1a08 movew %pc@(4346c ,%d1:l:2),%d0 43466: 48c0 extl %d0 43468: 4efb 0802 jmp %pc@(4346c ,%d0:l) 4346c: 000e 016 <== NOT EXECUTED 4346e: 0022 042 <== NOT EXECUTED 43470: 006e 0156 <== NOT EXECUTED 43472: 009a 0052 0032 oril #5374002,%d2 <== NOT EXECUTED 43478: 00bc 2f28 0008 oril #791150600,%d4 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); 4347e: 4878 002f pea 2f 43482: 4eb9 0005 0ca4 jsr 50ca4 break; 43488: 508f addql #8,%sp 4348a: 6000 00e8 braw 43574 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 4348e: 2f2a 0050 movel %a2@(80),%sp@- 43492: 2f2a 004c movel %a2@(76),%sp@- 43496: 4879 0005 fbe3 pea 5fbe3 4349c: 600e bras 434ac the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 4349e: 2f2a 0054 movel %a2@(84),%sp@- <== NOT EXECUTED 434a2: 2f2a 0050 movel %a2@(80),%sp@- <== NOT EXECUTED 434a6: 4879 0005 fbf6 pea 5fbf6 <== NOT EXECUTED 434ac: 2f28 0008 movel %a0@(8),%sp@- 434b0: 4eb9 0005 0c64 jsr 50c64 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 434b6: 4fef 0010 lea %sp@(16),%sp 434ba: 6000 00b8 braw 43574 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 434be: 2f2a 0050 movel %a2@(80),%sp@- 434c2: 4879 0005 fc05 pea 5fc05 434c8: 2f28 0008 movel %a0@(8),%sp@- 434cc: 4eb9 0005 0c64 jsr 50c64 (uint32_t)the_jnode->info.file.size ); #endif break; 434d2: 4fef 000c lea %sp@(12),%sp 434d6: 6000 009c braw 43574 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 434da: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 434de: 4879 0005 fc11 pea 5fc11 <== NOT EXECUTED 434e4: 4eb9 0005 0dd0 jsr 50dd0 <== NOT EXECUTED assert(0); 434ea: 4879 0005 f2f9 pea 5f2f9 <== NOT EXECUTED 434f0: 4879 0005 fd28 pea 5fd28 <__FUNCTION__.6554> <== NOT EXECUTED 434f6: 4878 005d pea 5d <== NOT EXECUTED 434fa: 4879 0005 fb9a pea 5fb9a <== NOT EXECUTED 43500: 4eb9 0004 3cd8 jsr 43cd8 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 43506: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4350a: 4879 0005 fc11 pea 5fc11 <== NOT EXECUTED 43510: 4eb9 0005 0dd0 jsr 50dd0 <== NOT EXECUTED assert(0); 43516: 4879 0005 f2f9 pea 5f2f9 <== NOT EXECUTED 4351c: 4879 0005 fd28 pea 5fd28 <__FUNCTION__.6554> <== NOT EXECUTED 43522: 4878 0062 pea 62 <== NOT EXECUTED 43526: 60d2 bras 434fa <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 43528: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4352c: 4879 0005 fc25 pea 5fc25 <== NOT EXECUTED 43532: 4eb9 0005 0dd0 jsr 50dd0 <== NOT EXECUTED assert(0); 43538: 4879 0005 f2f9 pea 5f2f9 <== NOT EXECUTED 4353e: 4879 0005 fd28 pea 5fd28 <__FUNCTION__.6554> <== NOT EXECUTED 43544: 4878 0067 pea 67 <== NOT EXECUTED 43548: 60b0 bras 434fa <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 4354a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4354c: 4879 0005 fc38 pea 5fc38 <== NOT EXECUTED 43552: 2079 0006 17b0 moveal 617b0 <_impure_ptr>,%a0 <== NOT EXECUTED 43558: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4355c: 4eb9 0005 0c64 jsr 50c64 <== NOT EXECUTED assert(0); 43562: 4879 0005 f2f9 pea 5f2f9 <== NOT EXECUTED 43568: 4879 0005 fd28 pea 5fd28 <__FUNCTION__.6554> <== NOT EXECUTED 4356e: 4878 006c pea 6c <== NOT EXECUTED 43572: 6086 bras 434fa <== NOT EXECUTED break; } puts(""); } 43574: 242e fff8 movel %fp@(-8),%d2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43578: 203c 0006 0302 movel #393986,%d0 } 4357e: 246e fffc moveal %fp@(-4),%a2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43582: 2d40 0008 movel %d0,%fp@(8) } 43586: 4e5e unlk %fp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43588: 4ef9 0005 260c jmp 5260c 00042c24 : IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 42c24: 7004 moveq #4,%d0 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 42c26: 4e56 0000 linkw %fp,#0 42c2a: 206e 0008 moveal %fp@(8),%a0 42c2e: 2f0a movel %a2,%sp@- IMFS_jnode_t *node; int i; node = loc->node_access; 42c30: 2050 moveal %a0@,%a0 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 42c32: 2f02 movel %d2,%sp@- 42c34: 226e 000c moveal %fp@(12),%a1 42c38: 242e 0010 movel %fp@(16),%d2 IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 42c3c: b0a8 0048 cmpl %a0@(72),%d0 42c40: 6604 bnes 42c46 42c42: 4200 clrb %d0 42c44: 6016 bras 42c5c rtems_set_errno_and_return_minus_one( EINVAL ); 42c46: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42c4c: 7216 moveq #22,%d1 <== NOT EXECUTED 42c4e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42c50: 70ff moveq #-1,%d0 <== NOT EXECUTED 42c52: 2081 movel %d1,%a0@ <== NOT EXECUTED 42c54: 6014 bras 42c6a <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 42c56: 1381 0800 moveb %d1,%a1@(00000000,%d0:l) 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++ ) 42c5a: 5280 addql #1,%d0 42c5c: b480 cmpl %d0,%d2 42c5e: 630a blss 42c6a 42c60: 2468 004c moveal %a0@(76),%a2 42c64: 1232 0800 moveb %a2@(00000000,%d0:l),%d1 42c68: 66ec bnes 42c56 buf[i] = node->info.sym_link.name[i]; return i; } 42c6a: 242e fff8 movel %fp@(-8),%d2 42c6e: 246e fffc moveal %fp@(-4),%a2 42c72: 4e5e unlk %fp 42c74: 4e75 rts ... 00042c78 : 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 */ ) { 42c78: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 42c7c: 206e 000c moveal %fp@(12),%a0 <== 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 */ ) { 42c80: 2f0a movel %a2,%sp@- <== 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 ); 42c82: 4878 0020 pea 20 <== NOT EXECUTED 42c86: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED ) { IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 42c8a: 2450 moveal %a0@,%a2 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 42c8c: 486a 000c pea %a2@(12) <== NOT EXECUTED 42c90: 4eb9 0005 2a10 jsr 52a10 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 42c96: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42c9a: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 42c9e: 670a beqs 42caa <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 42ca0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42ca2: 4eb9 0004 7140 jsr 47140 <_Chain_Extract> <== NOT EXECUTED 42ca8: 588f addql #4,%sp <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 42caa: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 42cae: 2050 moveal %a0@,%a0 <== NOT EXECUTED the_jnode->Parent = new_parent; 42cb0: 2548 0008 movel %a0,%a2@(8) <== 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 ); 42cb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42cb6: 4868 004c pea %a0@(76) <== NOT EXECUTED 42cba: 4eb9 0004 7108 jsr 47108 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 42cc0: 42a7 clrl %sp@- <== NOT EXECUTED 42cc2: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 42cc6: 4eb9 0004 3564 jsr 43564 <== NOT EXECUTED 42ccc: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED return 0; } 42cd2: 4280 clrl %d0 <== NOT EXECUTED 42cd4: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 42cd8: 4e5e unlk %fp <== NOT EXECUTED 42cda: 4e75 rts 00048c6c : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 48c6c: 4e56 fff8 linkw %fp,#-8 48c70: 2f0b movel %a3,%sp@- 48c72: 266e 000c moveal %fp@(12),%a3 48c76: 2f0a movel %a2,%sp@- IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 48c78: 2453 moveal %a3@,%a2 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 48c7a: 4aaa 0008 tstl %a2@(8) 48c7e: 670e beqs 48c8e */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 48c80: 2f0a movel %a2,%sp@- 48c82: 4eb9 0004 a140 jsr 4a140 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 48c88: 588f addql #4,%sp 48c8a: 42aa 0008 clrl %a2@(8) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 48c8e: 302a 0032 movew %a2@(50),%d0 48c92: 5380 subql #1,%d0 48c94: 3540 0032 movew %d0,%a2@(50) IMFS_update_ctime( the_jnode ); 48c98: 42a7 clrl %sp@- 48c9a: 486e fff8 pea %fp@(-8) 48c9e: 4eb9 0004 90d0 jsr 490d0 48ca4: 256e fff8 0044 movel %fp@(-8),%a2@(68) /* * The file cannot be open and the link must be less than 1 to free. */ if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) { 48caa: 2f0a movel %a2,%sp@- 48cac: 4eb9 0004 91a2 jsr 491a2 48cb2: 4fef 000c lea %sp@(12),%sp 48cb6: 4a80 tstl %d0 48cb8: 663a bnes 48cf4 48cba: 4a6a 0032 tstw %a2@(50) 48cbe: 6634 bnes 48cf4 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 48cc0: 2079 0005 b794 moveal 5b794 ,%a0 48cc6: 2653 moveal %a3@,%a3 48cc8: b7e8 0004 cmpal %a0@(4),%a3 48ccc: 6604 bnes 48cd2 rtems_filesystem_current.node_access = NULL; 48cce: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 48cd2: 7004 moveq #4,%d0 48cd4: b0aa 0048 cmpl %a2@(72),%d0 48cd8: 6610 bnes 48cea if ( the_jnode->info.sym_link.name ) 48cda: 202a 004c movel %a2@(76),%d0 48cde: 670a beqs 48cea free( (void*) the_jnode->info.sym_link.name ); 48ce0: 2f00 movel %d0,%sp@- 48ce2: 4eb9 0004 8f48 jsr 48f48 48ce8: 588f addql #4,%sp } free( the_jnode ); 48cea: 2f0a movel %a2,%sp@- 48cec: 4eb9 0004 8f48 jsr 48f48 48cf2: 588f addql #4,%sp } return 0; } 48cf4: 246e fff0 moveal %fp@(-16),%a2 48cf8: 4280 clrl %d0 48cfa: 266e fff4 moveal %fp@(-12),%a3 48cfe: 4e5e unlk %fp 48d00: 4e75 rts ... 00048d04 : IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 48d04: 7205 moveq #5,%d1 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 48d06: 4e56 0000 linkw %fp,#0 48d0a: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 48d0e: 2250 moveal %a0@,%a1 switch ( the_jnode->type ) { 48d10: 2029 0048 movel %a1@(72),%d0 48d14: 5580 subql #2,%d0 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 48d16: 206e 000c moveal %fp@(12),%a0 IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 48d1a: b280 cmpl %d0,%d1 48d1c: 653e bcss 48d5c 48d1e: 303b 0a08 movew %pc@(48d28 ,%d0:l:2),%d0 48d22: 48c0 extl %d0 48d24: 4efb 0802 jmp %pc@(48d28 ,%d0:l) 48d28: 000c 014 <== NOT EXECUTED 48d2a: 0034 064 <== NOT EXECUTED 48d2c: 0026 046 <== NOT EXECUTED 48d2e: 001c 034 <== NOT EXECUTED 48d30: 001c 034 <== NOT EXECUTED 48d32: 0026 046 <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 48d34: 2029 0050 movel %a1@(80),%d0 48d38: 2169 004c 0016 movel %a1@(76),%a0@(22) 48d3e: 2140 001a movel %d0,%a0@(26) break; 48d42: 602a bras 48d6e case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 48d44: 2029 004c movel %a1@(76),%d0 48d48: 2229 0050 movel %a1@(80),%d1 48d4c: 6004 bras 48d52 case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 48d4e: 4280 clrl %d0 <== NOT EXECUTED 48d50: 4281 clrl %d1 <== NOT EXECUTED 48d52: 2140 001e movel %d0,%a0@(30) 48d56: 2141 0022 movel %d1,%a0@(34) break; 48d5a: 6012 bras 48d6e default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 48d5c: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 48d62: 2040 moveal %d0,%a0 <== NOT EXECUTED 48d64: 70ff moveq #-1,%d0 <== NOT EXECUTED 48d66: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 48d6c: 6032 bras 48da0 <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 48d6e: 4280 clrl %d0 break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 48d70: 2169 0034 0008 movel %a1@(52),%a0@(8) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 48d76: 2169 003c 0026 movel %a1@(60),%a0@(38) buf->st_mtime = the_jnode->stat_mtime; 48d7c: 2169 0040 002e movel %a1@(64),%a0@(46) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 48d82: 2169 002e 000c movel %a1@(46),%a0@(12) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 48d88: 2169 0044 0036 movel %a1@(68),%a0@(54) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 48d8e: 3169 0032 0010 movew %a1@(50),%a0@(16) buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 48d94: 3169 0038 0012 movew %a1@(56),%a0@(18) buf->st_gid = the_jnode->st_gid; 48d9a: 3169 003a 0014 movew %a1@(58),%a0@(20) buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 48da0: 4e5e unlk %fp 48da2: 4e75 rts 00042cdc : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 42cdc: 4e56 ffc4 linkw %fp,#-60 42ce0: 2f03 movel %d3,%sp@- 42ce2: 262e 0010 movel %fp@(16),%d3 42ce6: 2f02 movel %d2,%sp@- int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 42ce8: 240e movel %fp,%d2 42cea: 0682 ffff ffc7 addil #-57,%d2 42cf0: 2f03 movel %d3,%sp@- 42cf2: 4eb9 0005 29f8 jsr 529f8 42cf8: 588f addql #4,%sp 42cfa: 486e fffc pea %fp@(-4) 42cfe: 2f02 movel %d2,%sp@- 42d00: 2f00 movel %d0,%sp@- 42d02: 2f03 movel %d3,%sp@- 42d04: 4eb9 0004 d3a0 jsr 4d3a0 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 42d0a: 2f2e 000c movel %fp@(12),%sp@- 42d0e: 4eb9 0005 2568 jsr 52568 if (info.sym_link.name == NULL) { 42d14: 4fef 0014 lea %sp@(20),%sp IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 42d18: 2d40 ffe8 movel %d0,%fp@(-24) if (info.sym_link.name == NULL) { 42d1c: 6608 bnes 42d26 rtems_set_errno_and_return_minus_one(ENOMEM); 42d1e: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42d24: 6038 bras 42d5e <== NOT EXECUTED * 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( 42d26: 486e ffe8 pea %fp@(-24) 42d2a: 2f3c 0000 a1ff movel #41471,%sp@- 42d30: 2f02 movel %d2,%sp@- 42d32: 4878 0004 pea 4 42d36: 2f2e 0008 movel %fp@(8),%sp@- 42d3a: 4eb9 0004 c898 jsr 4c898 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 42d40: 4fef 0014 lea %sp@(20),%sp 42d44: 4a80 tstl %d0 42d46: 6704 beqs 42d4c 42d48: 4281 clrl %d1 42d4a: 601a bras 42d66 free(info.sym_link.name); 42d4c: 2f2e ffe8 movel %fp@(-24),%sp@- <== NOT EXECUTED 42d50: 4eb9 0004 34dc jsr 434dc <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 42d56: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42d5c: 588f addql #4,%sp <== NOT EXECUTED 42d5e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42d60: 700c moveq #12,%d0 <== NOT EXECUTED 42d62: 72ff moveq #-1,%d1 <== NOT EXECUTED 42d64: 2080 movel %d0,%a0@ <== NOT EXECUTED } return 0; } 42d66: 242e ffbc movel %fp@(-68),%d2 42d6a: 2001 movel %d1,%d0 42d6c: 262e ffc0 movel %fp@(-64),%d3 42d70: 4e5e unlk %fp 42d72: 4e75 rts 00042d74 : /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 42d74: 7003 moveq #3,%d0 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 42d76: 4e56 ffd0 linkw %fp,#-48 42d7a: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 42d7e: 246e 000c moveal %fp@(12),%a2 42d82: 262e 0008 movel %fp@(8),%d3 IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 42d86: 2652 moveal %a2@,%a3 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 42d88: b0ab 0048 cmpl %a3@(72),%d0 42d8c: 6600 0086 bnew 42e14 if ( !node->info.hard_link.link_node ) 42d90: 282b 004c movel %a3@(76),%d4 42d94: 6610 bnes 42da6 rtems_set_errno_and_return_minus_one( EINVAL ); 42d96: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42d9c: 7216 moveq #22,%d1 <== NOT EXECUTED 42d9e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42da0: 70ff moveq #-1,%d0 <== NOT EXECUTED 42da2: 2081 movel %d1,%a0@ <== NOT EXECUTED 42da4: 607e bras 42e24 <== NOT EXECUTED the_link = *loc; 42da6: 4878 0014 pea 14 42daa: 240e movel %fp,%d2 42dac: 0682 ffff ffe4 addil #-28,%d2 42db2: 2f0a movel %a2,%sp@- 42db4: 2f02 movel %d2,%sp@- 42db6: 4eb9 0005 1e9c jsr 51e9c the_link.node_access = node->info.hard_link.link_node; 42dbc: 2d44 ffe4 movel %d4,%fp@(-28) /* * 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) 42dc0: 7801 moveq #1,%d4 if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 42dc2: 2f02 movel %d2,%sp@- 42dc4: 4eb9 0004 c9a8 jsr 4c9a8 /* * 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) 42dca: 206b 004c moveal %a3@(76),%a0 42dce: 4281 clrl %d1 42dd0: 4fef 0010 lea %sp@(16),%sp 42dd4: 3028 0032 movew %a0@(50),%d0 42dd8: 3200 movew %d0,%d1 42dda: b881 cmpl %d1,%d4 42ddc: 6618 bnes 42df6 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 42dde: 2f02 movel %d2,%sp@- 42de0: 206e ffec moveal %fp@(-20),%a0 42de4: 2f03 movel %d3,%sp@- 42de6: 2068 0034 moveal %a0@(52),%a0 42dea: 4e90 jsr %a0@ if ( result != 0 ) 42dec: 508f addql #8,%sp 42dee: 4a80 tstl %d0 42df0: 6722 beqs 42e14 42df2: 70ff moveq #-1,%d0 42df4: 602e bras 42e24 return -1; } else { node->info.hard_link.link_node->st_nlink --; 42df6: 5380 subql #1,%d0 42df8: 3140 0032 movew %d0,%a0@(50) IMFS_update_ctime( node->info.hard_link.link_node ); 42dfc: 42a7 clrl %sp@- 42dfe: 486e fff8 pea %fp@(-8) 42e02: 4eb9 0004 3564 jsr 43564 42e08: 206b 004c moveal %a3@(76),%a0 42e0c: 508f addql #8,%sp 42e0e: 216e fff8 0044 movel %fp@(-8),%a0@(68) /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 42e14: 2f0a movel %a2,%sp@- 42e16: 206a 0008 moveal %a2@(8),%a0 42e1a: 2f03 movel %d3,%sp@- 42e1c: 2068 0034 moveal %a0@(52),%a0 42e20: 4e90 jsr %a0@ return result; 42e22: 508f addql #8,%sp } 42e24: 4cee 0c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a3 42e2a: 4e5e unlk %fp 42e2c: 4e75 rts ... 00042e30 : /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42e30: 7001 moveq #1,%d0 #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 42e32: 4e56 0000 linkw %fp,#0 42e36: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 42e3a: 2068 0008 moveal %a0@(8),%a0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42e3e: b0a8 0048 cmpl %a0@(72),%d0 42e42: 6710 beqs 42e54 rtems_set_errno_and_return_minus_one( ENOTDIR ); 42e44: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42e4a: 72ff moveq #-1,%d1 <== NOT EXECUTED 42e4c: 2040 moveal %d0,%a0 <== NOT EXECUTED 42e4e: 7014 moveq #20,%d0 <== NOT EXECUTED 42e50: 2080 movel %d0,%a0@ <== NOT EXECUTED 42e52: 601c bras 42e70 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 42e54: 4aa8 0058 tstl %a0@(88) 42e58: 6610 bnes 42e6a rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 42e5a: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 42e60: 72ff moveq #-1,%d1 <== NOT EXECUTED 42e62: 2040 moveal %d0,%a0 <== NOT EXECUTED 42e64: 7016 moveq #22,%d0 <== NOT EXECUTED 42e66: 2080 movel %d0,%a0@ <== NOT EXECUTED 42e68: 6006 bras 42e70 <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; 42e6a: 42a8 0058 clrl %a0@(88) 42e6e: 4281 clrl %d1 return 0; } 42e70: 2001 movel %d1,%d0 42e72: 4e5e unlk %fp 42e74: 4e75 rts ... 00042394 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 42394: 4e56 0000 linkw %fp,#0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 42398: 2079 0005 bd16 moveal 5bd16 ,%a0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 4239e: 2f03 movel %d3,%sp@- 423a0: 262e 0008 movel %fp@(8),%d3 423a4: 2f02 movel %d2,%sp@- 423a6: 242e 000c movel %fp@(12),%d2 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 423aa: 4a88 tstl %a0 423ac: 6704 beqs 423b2 (*rtems_malloc_statistics_helpers->initialize)(); 423ae: 2050 moveal %a0@,%a0 <== NOT EXECUTED 423b0: 4e90 jsr %a0@ <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 423b2: 4eb9 0004 93da jsr 493da /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 423b8: 2079 0005 bd1a moveal 5bd1a ,%a0 423be: 4a88 tstl %a0 423c0: 6712 beqs 423d4 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 423c2: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 423c6: d483 addl %d3,%d2 <== NOT EXECUTED /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 423c8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 423ca: 2050 moveal %a0@,%a0 <== NOT EXECUTED 423cc: 4e90 jsr %a0@ <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 423ce: 508f addql #8,%sp <== NOT EXECUTED 423d0: 9480 subl %d0,%d2 <== NOT EXECUTED 423d2: 2600 movel %d0,%d3 <== 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 ( 423d4: 4a39 0005 bd15 tstb 5bd15 423da: 6618 bnes 423f4 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 423dc: 4a39 0005 b75c tstb 5b75c 423e2: 6710 beqs 423f4 ) { memset( heap_begin, 0, heap_size ); 423e4: 2f02 movel %d2,%sp@- 423e6: 42a7 clrl %sp@- 423e8: 2f03 movel %d3,%sp@- 423ea: 4eb9 0004 d4fc jsr 4d4fc 423f0: 4fef 000c lea %sp@(12),%sp * 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 ) { 423f4: 4a39 0005 bd15 tstb 5bd15 423fa: 6626 bnes 42422 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 423fc: 4878 0004 pea 4 42400: 2f02 movel %d2,%sp@- 42402: 2f03 movel %d3,%sp@- 42404: 2f39 0005 b690 movel 5b690 ,%sp@- 4240a: 4eb9 0004 5d00 jsr 45d00 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 42410: 4fef 0010 lea %sp@(16),%sp 42414: 4a80 tstl %d0 42416: 660a bnes 42422 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 42418: 4878 001a pea 1a <== NOT EXECUTED 4241c: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 42422: 2f39 0005 b690 movel 5b690 ,%sp@- 42428: 2439 0005 cd90 movel 5cd90 ,%d2 4242e: 4eb9 0004 6788 jsr 46788 <_Protected_heap_Get_size> printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 42434: 262e fffc movel %fp@(-4),%d3 if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 42438: d082 addl %d2,%d0 4243a: 588f addql #4,%sp printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 4243c: 242e fff8 movel %fp@(-8),%d2 42440: 4e5e unlk %fp if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 42442: 23c0 0005 cd90 movel %d0,5cd90 printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 42448: 4e75 rts ... 00044ba6 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 44ba6: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 44baa: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 44bae: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 44bb2: 4a8a tstl %a2 <== NOT EXECUTED 44bb4: 6700 0100 beqw 44cb6 <== NOT EXECUTED return; if ( !print_handler ) 44bb8: 2879 0009 8e08 moveal 98e08 ,%a4 <== NOT EXECUTED 44bbe: 4a8c tstl %a4 <== NOT EXECUTED 44bc0: 6700 00f4 beqw 44cb6 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 44bc4: 70ff moveq #-1,%d0 <== NOT EXECUTED 44bc6: b08a cmpl %a2,%d0 <== NOT EXECUTED 44bc8: 6616 bnes 44be0 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 44bca: 4ab9 0009 bd54 tstl 9bd54 <== NOT EXECUTED 44bd0: 6700 00e4 beqw 44cb6 <== NOT EXECUTED 44bd4: 47f9 0009 bd50 lea 9bd50 ,%a3 <== NOT EXECUTED 44bda: 4284 clrl %d4 <== NOT EXECUTED 44bdc: 95ca subal %a2,%a2 <== NOT EXECUTED 44bde: 6008 bras 44be8 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 44be0: 282a 00fe movel %a2@(254),%d4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 44be4: 47ea 00be lea %a2@(190),%a3 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); 44be8: 2613 movel %a3@,%d3 <== NOT EXECUTED 44bea: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 44bf0: 242b 0004 movel %a3@(4),%d2 <== NOT EXECUTED 44bf4: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); 44bfa: 2f03 movel %d3,%sp@- <== NOT EXECUTED 44bfc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44bfe: 4eb9 0004 4b76 jsr 44b76 <== NOT EXECUTED if ( high_water_mark ) 44c04: 508f addql #8,%sp <== NOT EXECUTED 44c06: 4a80 tstl %d0 <== NOT EXECUTED 44c08: 6604 bnes 44c0e <== NOT EXECUTED 44c0a: 4282 clrl %d2 <== NOT EXECUTED 44c0c: 6004 bras 44c12 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 44c0e: d483 addl %d3,%d2 <== NOT EXECUTED 44c10: 9480 subl %d0,%d2 <== NOT EXECUTED else used = 0; if ( the_thread ) { 44c12: 4a8a tstl %a2 <== NOT EXECUTED 44c14: 672c beqs 44c42 <== NOT EXECUTED (*print_handler)( 44c16: 486e fffb pea %fp@(-5) <== NOT EXECUTED 44c1a: 4878 0005 pea 5 <== NOT EXECUTED 44c1e: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 44c22: 4eb9 0004 a0cc jsr 4a0cc <== NOT EXECUTED 44c28: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44c2a: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 44c2e: 4879 0008 e72f pea 8e72f <== NOT EXECUTED 44c34: 2f39 0009 8e04 movel 98e04 ,%sp@- <== NOT EXECUTED 44c3a: 4e94 jsr %a4@ <== NOT EXECUTED 44c3c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 44c40: 6016 bras 44c58 <== 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 ); 44c42: 4878 ffff pea ffffffff <== NOT EXECUTED 44c46: 4879 0008 e73c pea 8e73c <== NOT EXECUTED 44c4c: 2f39 0009 8e04 movel 98e04 ,%sp@- <== NOT EXECUTED 44c52: 4e94 jsr %a4@ <== NOT EXECUTED 44c54: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } (*print_handler)( 44c58: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED 44c5c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 44c5e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 44c60: 2013 movel %a3@,%d0 <== NOT EXECUTED 44c62: 5380 subql #1,%d0 <== NOT EXECUTED 44c64: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 44c68: 2f08 movel %a0,%sp@- <== NOT EXECUTED 44c6a: 4879 0008 e74a pea 8e74a <== NOT EXECUTED 44c70: 2f39 0009 8e04 movel 98e04 ,%sp@- <== NOT EXECUTED 44c76: 2079 0009 8e08 moveal 98e08 ,%a0 <== NOT EXECUTED 44c7c: 4e90 jsr %a0@ <== NOT EXECUTED 44c7e: 2079 0009 8e08 moveal 98e08 ,%a0 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 44c84: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 44c88: 4ab9 0009 8e00 tstl 98e00 <== NOT EXECUTED 44c8e: 6612 bnes 44ca2 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 44c90: 4879 0008 e768 pea 8e768 <== NOT EXECUTED 44c96: 2f39 0009 8e04 movel 98e04 ,%sp@- <== NOT EXECUTED 44c9c: 4e90 jsr %a0@ <== NOT EXECUTED 44c9e: 508f addql #8,%sp <== NOT EXECUTED 44ca0: 6014 bras 44cb6 <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 44ca2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44ca4: 4879 0008 e775 pea 8e775 <== NOT EXECUTED 44caa: 2f39 0009 8e04 movel 98e04 ,%sp@- <== NOT EXECUTED 44cb0: 4e90 jsr %a0@ <== NOT EXECUTED 44cb2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } } 44cb6: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 44cbc: 4e5e unlk %fp <== NOT EXECUTED 44cbe: 4e75 rts 00044b76 : * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 44b76: 70fc moveq #-4,%d0 <== NOT EXECUTED */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 44b78: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 44b7c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 44b80: 41e8 0010 lea %a0@(16),%a0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 44b84: c0ae 000c andl %fp@(12),%d0 <== NOT EXECUTED 44b88: d088 addl %a0,%d0 <== NOT EXECUTED 44b8a: 6010 bras 44b9c <== NOT EXECUTED if (*base != U32_PATTERN) 44b8c: 223c a5a5 a5a5 movel #-1515870811,%d1 <== NOT EXECUTED 44b92: b290 cmpl %a0@,%d1 <== NOT EXECUTED 44b94: 6704 beqs 44b9a <== NOT EXECUTED return (void *) base; 44b96: 2008 movel %a0,%d0 <== NOT EXECUTED 44b98: 6008 bras 44ba2 <== 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++) 44b9a: 5888 addql #4,%a0 <== NOT EXECUTED 44b9c: b088 cmpl %a0,%d0 <== NOT EXECUTED 44b9e: 62ec bhis 44b8c <== NOT EXECUTED 44ba0: 4280 clrl %d0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 44ba2: 4e5e unlk %fp <== NOT EXECUTED 44ba4: 4e75 rts 00044d3a : * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { 44d3a: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 44d3e: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); 44d42: 4879 0008 e7dc pea 8e7dc <== NOT EXECUTED 44d48: 45f9 0004 7638 lea 47638 ,%a2 <== NOT EXECUTED * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { 44d4e: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 44d52: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 44d56: 286b 00c2 moveal %a3@(194),%a4 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 44d5a: 4e92 jsr %a2@ <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 44d5c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 44d5e: 4879 0008 e7ec pea 8e7ec <== NOT EXECUTED 44d64: 4e92 jsr %a2@ <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 44d66: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 44d6a: 4879 0008 e809 pea 8e809 <== NOT EXECUTED 44d70: 4e92 jsr %a2@ <== NOT EXECUTED printk( 44d72: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED 44d76: 4879 0008 e81b pea 8e81b <== NOT EXECUTED 44d7c: 4e92 jsr %a2@ <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 44d7e: 486e ffe0 pea %fp@(-32) <== NOT EXECUTED 44d82: 4878 0020 pea 20 <== NOT EXECUTED 44d86: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 44d8a: 4eb9 0004 a0cc jsr 4a0cc <== NOT EXECUTED 44d90: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED 44d94: 2e80 movel %d0,%sp@ <== NOT EXECUTED 44d96: 4879 0008 e82f pea 8e82f <== NOT EXECUTED 44d9c: 4e92 jsr %a2@ <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 44d9e: 202b 00be movel %a3@(190),%d0 <== NOT EXECUTED 44da2: 206b 00c2 moveal %a3@(194),%a0 <== NOT EXECUTED 44da6: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 44daa: 2f08 movel %a0,%sp@- <== NOT EXECUTED 44dac: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44dae: 4879 0008 e845 pea 8e845 <== NOT EXECUTED 44db4: 4e92 jsr %a2@ <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { 44db6: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 44dba: 4a02 tstb %d2 <== NOT EXECUTED 44dbc: 6618 bnes 44dd6 <== NOT EXECUTED printk( 44dbe: 486c 0018 pea %a4@(24) <== NOT EXECUTED 44dc2: 486c 0008 pea %a4@(8) <== NOT EXECUTED 44dc6: 4878 0010 pea 10 <== NOT EXECUTED 44dca: 4879 0008 e876 pea 8e876 <== NOT EXECUTED 44dd0: 4e92 jsr %a2@ <== NOT EXECUTED 44dd2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 44dd6: 4878 0081 pea 81 <== NOT EXECUTED 44dda: 4eb9 0004 a950 jsr 4a950 <== NOT EXECUTED 00051920 <_CORE_message_queue_Broadcast>: Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { 51920: 4e56 ffe0 linkw %fp,#-32 51924: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 51928: 246e 0008 moveal %fp@(8),%a2 5192c: 2a2e 000c movel %fp@(12),%d5 51930: 262e 0010 movel %fp@(16),%d3 51934: 286e 001c moveal %fp@(28),%a4 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 51938: b6aa 004c cmpl %a2@(76),%d3 5193c: 6304 blss 51942 <_CORE_message_queue_Broadcast+0x22> 5193e: 7001 moveq #1,%d0 <== NOT EXECUTED 51940: 6042 bras 51984 <_CORE_message_queue_Broadcast+0x64> <== NOT EXECUTED * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { 51942: 4aaa 0048 tstl %a2@(72) 51946: 6610 bnes 51958 <_CORE_message_queue_Broadcast+0x38> * 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))) { 51948: 4282 clrl %d2 5194a: 283c 0005 3c24 movel #343076,%d4 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 51950: 4bf9 0005 9e70 lea 59e70 ,%a5 51956: 601a bras 51972 <_CORE_message_queue_Broadcast+0x52> * 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 ) { *count = 0; 51958: 4294 clrl %a4@ 5195a: 6026 bras 51982 <_CORE_message_queue_Broadcast+0x62> 5195c: 2f03 movel %d3,%sp@- */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 5195e: 5282 addql #1,%d2 51960: 2f05 movel %d5,%sp@- 51962: 2f2b 002c movel %a3@(44),%sp@- 51966: 4e95 jsr %a5@ buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 51968: 206b 0028 moveal %a3@(40),%a0 5196c: 4fef 000c lea %sp@(12),%sp 51970: 2083 movel %d3,%a0@ * 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))) { 51972: 2f0a movel %a2,%sp@- 51974: 2044 moveal %d4,%a0 51976: 4e90 jsr %a0@ /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 51978: 588f addql #4,%sp _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 5197a: 2640 moveal %d0,%a3 /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 5197c: 4a80 tstl %d0 5197e: 66dc bnes 5195c <_CORE_message_queue_Broadcast+0x3c> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 51980: 2882 movel %d2,%a4@ 51982: 4280 clrl %d0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 51984: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 5198a: 4e5e unlk %fp 5198c: 4e75 rts ... 00045c14 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) { 45c14: 4e56 0000 linkw %fp,#0 45c18: 2f0a movel %a2,%sp@- 45c1a: 246e 0008 moveal %fp@(8),%a2 ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { 45c1e: 2f0a movel %a2,%sp@- 45c20: 4eb9 0004 702c jsr 4702c <_Thread_queue_Dequeue> 45c26: 588f addql #4,%sp 45c28: 4a80 tstl %d0 45c2a: 6704 beqs 45c30 <_CORE_semaphore_Surrender+0x1c> 45c2c: 4280 clrl %d0 45c2e: 6024 bras 45c54 <_CORE_semaphore_Surrender+0x40> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); 45c30: 203c 0000 0700 movel #1792,%d0 45c36: 40c1 movew %sr,%d1 45c38: 8081 orl %d1,%d0 45c3a: 46c0 movew %d0,%sr if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 45c3c: 202a 0048 movel %a2@(72),%d0 45c40: b0aa 0040 cmpl %a2@(64),%d0 45c44: 6504 bcss 45c4a <_CORE_semaphore_Surrender+0x36> 45c46: 7004 moveq #4,%d0 <== NOT EXECUTED 45c48: 6008 bras 45c52 <_CORE_semaphore_Surrender+0x3e> <== NOT EXECUTED the_semaphore->count += 1; 45c4a: 5280 addql #1,%d0 45c4c: 2540 0048 movel %d0,%a2@(72) 45c50: 4280 clrl %d0 else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 45c52: 46c1 movew %d1,%sr } return status; } 45c54: 246e fffc moveal %fp@(-4),%a2 45c58: 4e5e unlk %fp 45c5a: 4e75 rts 00045fd8 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 45fd8: 4e56 0000 linkw %fp,#0 45fdc: 222e 000c movel %fp@(12),%d1 45fe0: 2f03 movel %d3,%sp@- _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 45fe2: 4283 clrl %d3 45fe4: 1601 moveb %d1,%d3 void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 45fe6: 2f02 movel %d2,%sp@- 45fe8: 242e 0010 movel %fp@(16),%d2 _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 45fec: 2f02 movel %d2,%sp@- void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 45fee: 202e 0008 movel %fp@(8),%d0 _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 45ff2: 2f03 movel %d3,%sp@- _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 45ff4: 263c 0000 0700 movel #1792,%d3 _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 45ffa: 2f00 movel %d0,%sp@- Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; 45ffc: 13c1 0005 cf8e moveb %d1,5cf8e <_Internal_errors_What_happened+0x4> bool is_internal, Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; 46002: 23c0 0005 cf8a movel %d0,5cf8a <_Internal_errors_What_happened> _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; 46008: 23c2 0005 cf90 movel %d2,5cf90 <_Internal_errors_What_happened+0x6> _User_extensions_Fatal( the_source, is_internal, the_error ); 4600e: 4eb9 0004 7b02 jsr 47b02 <_User_extensions_Fatal> _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 46014: 40c0 movew %sr,%d0 46016: 8083 orl %d3,%d0 46018: 46c0 movew %d0,%sr 4601a: 2002 movel %d2,%d0 <== NOT EXECUTED 4601c: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED 46022: 4ac8 halt <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 46024: 7005 moveq #5,%d0 46026: 4fef 000c lea %sp@(12),%sp 4602a: 23c0 0005 d06c movel %d0,5d06c <_System_state_Current> 46030: 60fe bras 46030 <_Internal_error_Occurred+0x58> ... 0004609c <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 4609c: 4e56 fff0 linkw %fp,#-16 460a0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 460a4: 246e 0008 moveal %fp@(8),%a2 * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) 460a8: 4aaa 0014 tstl %a2@(20) 460ac: 6604 bnes 460b2 <_Objects_Allocate+0x16> 460ae: 4280 clrl %d0 <== NOT EXECUTED 460b0: 605e bras 46110 <_Objects_Allocate+0x74> <== NOT EXECUTED /* * OK. The manager should be initialized and configured to have objects. * With any luck, it is safe to attempt to allocate an object. */ the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 460b2: 240a movel %a2,%d2 460b4: 0682 0000 001c addil #28,%d2 460ba: 47f9 0004 a168 lea 4a168 <_Chain_Get>,%a3 460c0: 2f02 movel %d2,%sp@- 460c2: 4e93 jsr %a3@ if ( information->auto_extend ) { 460c4: 588f addql #4,%sp 460c6: 4a2a 0010 tstb %a2@(16) 460ca: 6744 beqs 46110 <_Objects_Allocate+0x74> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 460cc: 4a80 tstl %d0 460ce: 6612 bnes 460e2 <_Objects_Allocate+0x46> _Objects_Extend_information( information ); 460d0: 2f0a movel %a2,%sp@- 460d2: 4eb9 0004 6148 jsr 46148 <_Objects_Extend_information> the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 460d8: 2f02 movel %d2,%sp@- 460da: 4e93 jsr %a3@ } if ( the_object ) { 460dc: 508f addql #8,%sp 460de: 4a80 tstl %d0 460e0: 672e beqs 46110 <_Objects_Allocate+0x74> uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 460e2: 2040 moveal %d0,%a0 460e4: 4281 clrl %d1 460e6: 4283 clrl %d3 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 460e8: 4282 clrl %d2 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 460ea: 362a 0008 movew %a2@(8),%d3 460ee: 3228 000a movew %a0@(10),%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 460f2: 342a 0012 movew %a2@(18),%d2 information->inactive--; 460f6: 306a 0028 moveaw %a2@(40),%a0 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 460fa: 9283 subl %d3,%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 460fc: 4c42 1001 remul %d2,%d1,%d1 information->inactive--; 46100: 5388 subql #1,%a0 block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 46102: e589 lsll #2,%d1 information->inactive--; 46104: 3548 0028 movew %a0,%a2@(40) block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 46108: 206a 002a moveal %a2@(42),%a0 4610c: d1c1 addal %d1,%a0 4610e: 5390 subql #1,%a0@ information->inactive--; } } return the_object; } 46110: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 46116: 4e5e unlk %fp 46118: 4e75 rts ... 00046a44 <_Objects_Set_name>: { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a44: 4280 clrl %d0 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 46a46: 4e56 ffe0 linkw %fp,#-32 46a4a: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 46a4e: 2a6e 0008 moveal %fp@(8),%a5 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a52: 302d 0034 movew %a5@(52),%d0 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 46a56: 246e 0010 moveal %fp@(16),%a2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a5a: 2f00 movel %d0,%sp@- bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 46a5c: 286e 000c moveal %fp@(12),%a4 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a60: 2f0a movel %a2,%sp@- 46a62: 4eb9 0004 e798 jsr 4e798 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 46a68: 508f addql #8,%sp { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a6a: 2640 moveal %d0,%a3 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 46a6c: 4a2d 0032 tstb %a5@(50) 46a70: 6748 beqs 46aba <_Objects_Set_name+0x76> char *d; d = _Workspace_Allocate( length + 1 ); 46a72: 486b 0001 pea %a3@(1) 46a76: 4eb9 0004 82c8 jsr 482c8 <_Workspace_Allocate> if ( !d ) 46a7c: 588f addql #4,%sp #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); 46a7e: 2a40 moveal %d0,%a5 if ( !d ) 46a80: 4a80 tstl %d0 46a82: 6604 bnes 46a88 <_Objects_Set_name+0x44> 46a84: 4200 clrb %d0 <== NOT EXECUTED 46a86: 6076 bras 46afe <_Objects_Set_name+0xba> <== NOT EXECUTED return false; if ( the_object->name.name_p ) { 46a88: 202c 000c movel %a4@(12),%d0 46a8c: 670e beqs 46a9c <_Objects_Set_name+0x58> _Workspace_Free( (void *)the_object->name.name_p ); 46a8e: 2f00 movel %d0,%sp@- 46a90: 4eb9 0004 82e4 jsr 482e4 <_Workspace_Free> the_object->name.name_p = NULL; 46a96: 588f addql #4,%sp 46a98: 42ac 000c clrl %a4@(12) } strncpy( d, name, length ); 46a9c: 2f0b movel %a3,%sp@- 46a9e: 2f0a movel %a2,%sp@- 46aa0: 2f0d movel %a5,%sp@- 46aa2: 4eb9 0004 e710 jsr 4e710 d[length] = '\0'; the_object->name.name_p = d; 46aa8: 4fef 000c lea %sp@(12),%sp _Workspace_Free( (void *)the_object->name.name_p ); the_object->name.name_p = NULL; } strncpy( d, name, length ); d[length] = '\0'; 46aac: 4200 clrb %d0 46aae: 1b80 b800 moveb %d0,%a5@(00000000,%a3:l) the_object->name.name_p = d; 46ab2: 7001 moveq #1,%d0 46ab4: 294d 000c movel %a5,%a4@(12) 46ab8: 6044 bras 46afe <_Objects_Set_name+0xba> } else #endif { the_object->name.name_u32 = _Objects_Build_name( 46aba: 7201 moveq #1,%d1 46abc: 1012 moveb %a2@,%d0 46abe: b28b cmpl %a3,%d1 46ac0: 6446 bccs 46b08 <_Objects_Set_name+0xc4> 46ac2: 7602 moveq #2,%d3 46ac4: 142a 0001 moveb %a2@(1),%d2 46ac8: 49c2 extbl %d2 46aca: 4842 swap %d2 46acc: 4242 clrw %d2 46ace: b68b cmpl %a3,%d3 46ad0: 643a bccs 46b0c <_Objects_Set_name+0xc8> 46ad2: 7a03 moveq #3,%d5 46ad4: 122a 0002 moveb %a2@(2),%d1 46ad8: 49c1 extbl %d1 46ada: e189 lsll #8,%d1 46adc: ba8b cmpl %a3,%d5 46ade: 6506 bcss 46ae6 <_Objects_Set_name+0xa2> 46ae0: 163c 0020 moveb #32,%d3 46ae4: 6006 bras 46aec <_Objects_Set_name+0xa8> 46ae6: 162a 0003 moveb %a2@(3),%d3 46aea: 49c3 extbl %d3 46aec: 2800 movel %d0,%d4 46aee: 7a18 moveq #24,%d5 46af0: ebac lsll %d5,%d4 46af2: 7001 moveq #1,%d0 46af4: 8484 orl %d4,%d2 46af6: 8481 orl %d1,%d2 46af8: 8483 orl %d3,%d2 46afa: 2942 000c movel %d2,%a4@(12) ); } return true; } 46afe: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 46b04: 4e5e unlk %fp 46b06: 4e75 rts d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 46b08: 7420 moveq #32,%d2 46b0a: 4842 swap %d2 46b0c: 223c 0000 2000 movel #8192,%d1 46b12: 7620 moveq #32,%d3 46b14: 60d6 bras 46aec <_Objects_Set_name+0xa8> ... 00049268 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { 49268: 4e56 ffe4 linkw %fp,#-28 4926c: 48d7 043c moveml %d2-%d5/%a2,%sp@ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd ( mqd_t id, Objects_Locations *location ) { return (POSIX_Message_queue_Control_fd *) _Objects_Get( 49270: 486e fffc pea %fp@(-4) 49274: 242e 0008 movel %fp@(8),%d2 49278: 2f02 movel %d2,%sp@- 4927a: 4879 0006 501c pea 6501c <_POSIX_Message_queue_Information_fds> 49280: 246e 0014 moveal %fp@(20),%a2 49284: 262e 0018 movel %fp@(24),%d3 49288: 4eb9 0004 bf64 jsr 4bf64 <_Objects_Get> Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 4928e: 4fef 000c lea %sp@(12),%sp 49292: 4aae fffc tstl %fp@(-4) 49296: 6600 00c4 bnew 4935c <_POSIX_Message_queue_Receive_support+0xf4> case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { 4929a: 2040 moveal %d0,%a0 4929c: 7803 moveq #3,%d4 4929e: 7a01 moveq #1,%d5 492a0: 2228 0014 movel %a0@(20),%d1 492a4: c881 andl %d1,%d4 492a6: ba84 cmpl %d4,%d5 492a8: 660a bnes 492b4 <_POSIX_Message_queue_Receive_support+0x4c> _Thread_Enable_dispatch(); 492aa: 4eb9 0004 c7b6 jsr 4c7b6 <_Thread_Enable_dispatch> 492b0: 6000 00aa braw 4935c <_POSIX_Message_queue_Receive_support+0xf4> rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; 492b4: 2240 moveal %d0,%a1 492b6: 2069 0010 moveal %a1@(16),%a0 if ( msg_len < the_mq->Message_queue.maximum_message_size ) { 492ba: 2028 0066 movel %a0@(102),%d0 492be: b0ae 0010 cmpl %fp@(16),%d0 492c2: 6318 blss 492dc <_POSIX_Message_queue_Receive_support+0x74> _Thread_Enable_dispatch(); 492c4: 4eb9 0004 c7b6 jsr 4c7b6 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EMSGSIZE ); 492ca: 747a moveq #122,%d2 492cc: 4eb9 0005 2884 jsr 52884 <__errno> 492d2: 72ff moveq #-1,%d1 492d4: 2040 moveal %d0,%a0 492d6: 2082 movel %d2,%a0@ 492d8: 6000 0090 braw 4936a <_POSIX_Message_queue_Receive_support+0x102> length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 492dc: 4a03 tstb %d3 492de: 6604 bnes 492e4 <_POSIX_Message_queue_Receive_support+0x7c> 492e0: 4200 clrb %d0 <== NOT EXECUTED 492e2: 600c bras 492f0 <_POSIX_Message_queue_Receive_support+0x88> <== NOT EXECUTED do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; 492e4: 2001 movel %d1,%d0 492e6: 760e moveq #14,%d3 492e8: 7a01 moveq #1,%d5 492ea: e6a8 lsrl %d3,%d0 492ec: bb80 eorl %d5,%d0 492ee: c085 andl %d5,%d0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 492f0: 2f2e 001c movel %fp@(28),%sp@- 492f4: 7201 moveq #1,%d1 /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 492f6: 76ff moveq #-1,%d3 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 492f8: c280 andl %d0,%d1 /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 492fa: 2d43 fff8 movel %d3,%fp@(-8) do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 492fe: 2f01 movel %d1,%sp@- 49300: 486e fff8 pea %fp@(-8) 49304: 2f2e 000c movel %fp@(12),%sp@- 49308: 2f02 movel %d2,%sp@- 4930a: 4868 001a pea %a0@(26) 4930e: 4eb9 0004 b0ac jsr 4b0ac <_CORE_message_queue_Seize> &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); 49314: 4eb9 0004 c7b6 jsr 4c7b6 <_Thread_Enable_dispatch> *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); 4931a: 2079 0006 4c9a moveal 64c9a <_Thread_Executing>,%a0 do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = 49320: 24a8 0024 movel %a0@(36),%a2@ 49324: 6c06 bges 4932c <_POSIX_Message_queue_Receive_support+0xc4> 49326: 2a12 movel %a2@,%d5 49328: 4485 negl %d5 4932a: 2485 movel %d5,%a2@ _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) 4932c: 4fef 0018 lea %sp@(24),%sp 49330: 4aa8 0034 tstl %a0@(52) 49334: 6606 bnes 4933c <_POSIX_Message_queue_Receive_support+0xd4> return length_out; 49336: 222e fff8 movel %fp@(-8),%d1 4933a: 602e bras 4936a <_POSIX_Message_queue_Receive_support+0x102> rtems_set_errno_and_return_minus_one( 4933c: 4eb9 0005 2884 jsr 52884 <__errno> 49342: 2079 0006 4c9a moveal 64c9a <_Thread_Executing>,%a0 49348: 2440 moveal %d0,%a2 4934a: 2f28 0034 movel %a0@(52),%sp@- 4934e: 4eb9 0004 9594 jsr 49594 <_POSIX_Message_queue_Translate_core_message_queue_return_code> 49354: 588f addql #4,%sp 49356: 72ff moveq #-1,%d1 49358: 2480 movel %d0,%a2@ 4935a: 600e bras 4936a <_POSIX_Message_queue_Receive_support+0x102> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 4935c: 4eb9 0005 2884 jsr 52884 <__errno> 49362: 72ff moveq #-1,%d1 49364: 2040 moveal %d0,%a0 49366: 7009 moveq #9,%d0 49368: 2080 movel %d0,%a0@ } 4936a: 2001 movel %d1,%d0 4936c: 4cee 043c ffe4 moveml %fp@(-28),%d2-%d5/%a2 49372: 4e5e unlk %fp 49374: 4e75 rts ... 00044e64 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { 44e64: 4e56 0000 linkw %fp,#0 44e68: 2f0a movel %a2,%sp@- 44e6a: 246e 000c moveal %fp@(12),%a2 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 44e6e: 52aa 0066 addql #1,%a2@(102) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 44e72: 4aaa 0052 tstl %a2@(82) 44e76: 6606 bnes 44e7e <_POSIX_Timer_TSR+0x1a> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 44e78: 4aaa 0056 tstl %a2@(86) 44e7c: 6732 beqs 44eb0 <_POSIX_Timer_TSR+0x4c> activated = _POSIX_Timer_Insert_helper( 44e7e: 2f0a movel %a2,%sp@- 44e80: 4879 0004 4e64 pea 44e64 <_POSIX_Timer_TSR> 44e86: 2f2a 0008 movel %a2@(8),%sp@- 44e8a: 2f2a 0062 movel %a2@(98),%sp@- 44e8e: 486a 0010 pea %a2@(16) 44e92: 4eb9 0004 a3c4 jsr 4a3c4 <_POSIX_Timer_Insert_helper> ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 44e98: 4fef 0014 lea %sp@(20),%sp 44e9c: 4a00 tstb %d0 44e9e: 672a beqs 44eca <_POSIX_Timer_TSR+0x66> return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 44ea0: 486a 006a pea %a2@(106) 44ea4: 4eb9 0004 633c jsr 4633c <_TOD_Get> /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 44eaa: 588f addql #4,%sp /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; 44eac: 7003 moveq #3,%d0 44eae: 6002 bras 44eb2 <_POSIX_Timer_TSR+0x4e> } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; 44eb0: 7004 moveq #4,%d0 <== NOT EXECUTED 44eb2: 1540 003c moveb %d0,%a2@(60) /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { 44eb6: 2f2a 0042 movel %a2@(66),%sp@- 44eba: 2f2a 0038 movel %a2@(56),%sp@- 44ebe: 4eb9 0004 9fa4 jsr 49fa4 } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 44ec4: 508f addql #8,%sp 44ec6: 42aa 0066 clrl %a2@(102) } 44eca: 246e fffc moveal %fp@(-4),%a2 44ece: 4e5e unlk %fp 44ed0: 4e75 rts ... 00047b9c <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 47b9c: 7001 moveq #1,%d0 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 47b9e: 4e56 0000 linkw %fp,#0 47ba2: 2f0a movel %a2,%sp@- 47ba4: 246e 0008 moveal %fp@(8),%a2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 47ba8: c0aa 0010 andl %a2@(16),%d0 47bac: 4a00 tstb %d0 47bae: 6704 beqs 47bb4 <_Thread_Restart+0x18> 47bb0: 4200 clrb %d0 47bb2: 6064 bras 47c18 <_Thread_Restart+0x7c> _Thread_Set_transient( the_thread ); 47bb4: 2f0a movel %a2,%sp@- 47bb6: 4eb9 0004 7d78 jsr 47d78 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 47bbc: 2f2e 0010 movel %fp@(16),%sp@- 47bc0: 2f2e 000c movel %fp@(12),%sp@- 47bc4: 2f0a movel %a2,%sp@- 47bc6: 4eb9 0004 b23c jsr 4b23c <_Thread_Reset> _Thread_Load_environment( the_thread ); 47bcc: 2f0a movel %a2,%sp@- 47bce: 4eb9 0004 aed8 jsr 4aed8 <_Thread_Load_environment> _Thread_Ready( the_thread ); 47bd4: 2f0a movel %a2,%sp@- 47bd6: 4eb9 0004 b17c jsr 4b17c <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 47bdc: 2f0a movel %a2,%sp@- 47bde: 4eb9 0004 8360 jsr 48360 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 47be4: 4fef 001c lea %sp@(28),%sp 47be8: b5f9 0005 da06 cmpal 5da06 <_Thread_Executing>,%a2 47bee: 6626 bnes 47c16 <_Thread_Restart+0x7a> */ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) 47bf0: 4aaa 0102 tstl %a2@(258) 47bf4: 670c beqs 47c02 <_Thread_Restart+0x66> _Context_Restore_fp( &_Thread_Executing->fp_context ); 47bf6: 486a 0102 pea %a2@(258) 47bfa: 4eb9 0004 8850 jsr 48850 <_CPU_Context_restore_fp> 47c00: 588f addql #4,%sp #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 47c02: 2079 0005 da06 moveal 5da06 <_Thread_Executing>,%a0 47c08: 41e8 00ce lea %a0@(206),%a0 47c0c: 2f08 movel %a0,%sp@- 47c0e: 4eb9 0004 870e jsr 4870e <_CPU_Context_Restart_self> 47c14: 588f addql #4,%sp <== NOT EXECUTED 47c16: 7001 moveq #1,%d0 return true; } return false; } 47c18: 246e fffc moveal %fp@(-4),%a2 47c1c: 4e5e unlk %fp 47c1e: 4e75 rts 00047204 <_Thread_queue_Enqueue_priority>: Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 47204: 4e56 ffe4 linkw %fp,#-28 47208: 206e 000c moveal %fp@(12),%a0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4720c: 43e8 003c lea %a0@(60),%a1 Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 47210: 2028 0014 movel %a0@(20),%d0 Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 47214: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ _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 ]; 47218: 2400 movel %d0,%d2 4721a: ec8a lsrl #6,%d2 4721c: 2202 movel %d2,%d1 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 4721e: 283c 0000 0700 movel #1792,%d4 _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 ]; 47224: e989 lsll #4,%d1 47226: e58a lsll #2,%d2 Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 47228: 246e 0008 moveal %fp@(8),%a2 _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 ]; 4722c: 9282 subl %d2,%d1 4722e: 47f2 1800 lea %a2@(00000000,%d1:l),%a3 47232: 2149 0038 movel %a1,%a0@(56) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 47236: 43e8 0038 lea %a0@(56),%a1 block_state = the_thread_queue->state; 4723a: 2a2a 0038 movel %a2@(56),%d5 4723e: 2149 0040 movel %a1,%a0@(64) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 47242: 42a8 003c clrl %a0@(60) if ( _Thread_queue_Is_reverse_search( priority ) ) 47246: 0800 0005 btst #5,%d0 4724a: 6660 bnes 472ac <_Thread_queue_Enqueue_priority+0xa8> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4724c: 2c0b movel %a3,%d6 4724e: 5886 addql #4,%d6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 47250: 2404 movel %d4,%d2 47252: 40c1 movew %sr,%d1 47254: 8481 orl %d1,%d2 47256: 46c2 movew %d2,%sr search_thread = (Thread_Control *) header->first; 47258: 2253 moveal %a3@,%a1 4725a: 76ff moveq #-1,%d3 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 4725c: 601e bras 4727c <_Thread_queue_Enqueue_priority+0x78> search_priority = search_thread->current_priority; 4725e: 2629 0014 movel %a1@(20),%d3 if ( priority <= search_priority ) 47262: b680 cmpl %d0,%d3 47264: 641a bccs 47280 <_Thread_queue_Enqueue_priority+0x7c> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 47266: 2404 movel %d4,%d2 47268: 46c1 movew %d1,%sr 4726a: 8481 orl %d1,%d2 4726c: 46c2 movew %d2,%sr if ( !_States_Are_set( search_thread->current_state, block_state) ) { 4726e: 2405 movel %d5,%d2 47270: c4a9 0010 andl %a1@(16),%d2 47274: 6604 bnes 4727a <_Thread_queue_Enqueue_priority+0x76> _ISR_Enable( level ); 47276: 46c1 movew %d1,%sr <== NOT EXECUTED goto restart_forward_search; 47278: 60d6 bras 47250 <_Thread_queue_Enqueue_priority+0x4c> <== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; 4727a: 2251 moveal %a1@,%a1 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 ) ) { 4727c: bc89 cmpl %a1,%d6 4727e: 66de bnes 4725e <_Thread_queue_Enqueue_priority+0x5a> 47280: 2401 movel %d1,%d2 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 47282: 7801 moveq #1,%d4 47284: b8aa 0030 cmpl %a2@(48),%d4 47288: 6600 00a4 bnew 4732e <_Thread_queue_Enqueue_priority+0x12a> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4728c: 42aa 0030 clrl %a2@(48) if ( priority == search_priority ) 47290: b680 cmpl %d0,%d3 47292: 677e beqs 47312 <_Thread_queue_Enqueue_priority+0x10e> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 47294: 2669 0004 moveal %a1@(4),%a3 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 47298: 2089 movel %a1,%a0@ the_node->previous = previous_node; 4729a: 214b 0004 movel %a3,%a0@(4) previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 4729e: 214a 0044 movel %a2,%a0@(68) previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 472a2: 2688 movel %a0,%a3@ search_node->previous = the_node; 472a4: 2348 0004 movel %a0,%a1@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 472a8: 46c1 movew %d1,%sr 472aa: 6062 bras 4730e <_Thread_queue_Enqueue_priority+0x10a> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 472ac: 4283 clrl %d3 472ae: 1639 0005 b732 moveb 5b732 ,%d3 _ISR_Disable( level ); 472b4: 2404 movel %d4,%d2 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 472b6: 5283 addql #1,%d3 _ISR_Disable( level ); 472b8: 40c1 movew %sr,%d1 472ba: 8481 orl %d1,%d2 472bc: 46c2 movew %d2,%sr search_thread = (Thread_Control *) header->last; 472be: 226b 0008 moveal %a3@(8),%a1 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 472c2: 6020 bras 472e4 <_Thread_queue_Enqueue_priority+0xe0> search_priority = search_thread->current_priority; 472c4: 2629 0014 movel %a1@(20),%d3 if ( priority >= search_priority ) 472c8: b680 cmpl %d0,%d3 472ca: 631c blss 472e8 <_Thread_queue_Enqueue_priority+0xe4> break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 472cc: 2404 movel %d4,%d2 472ce: 46c1 movew %d1,%sr 472d0: 8481 orl %d1,%d2 472d2: 46c2 movew %d2,%sr if ( !_States_Are_set( search_thread->current_state, block_state) ) { 472d4: 2405 movel %d5,%d2 472d6: c4a9 0010 andl %a1@(16),%d2 472da: 6604 bnes 472e0 <_Thread_queue_Enqueue_priority+0xdc> _ISR_Enable( level ); 472dc: 46c1 movew %d1,%sr goto restart_reverse_search; 472de: 60cc bras 472ac <_Thread_queue_Enqueue_priority+0xa8> } search_thread = (Thread_Control *) 472e0: 2269 0004 moveal %a1@(4),%a1 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 ) ) { 472e4: b7c9 cmpal %a1,%a3 472e6: 66dc bnes 472c4 <_Thread_queue_Enqueue_priority+0xc0> 472e8: 2401 movel %d1,%d2 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 472ea: 7801 moveq #1,%d4 472ec: b8aa 0030 cmpl %a2@(48),%d4 472f0: 663c bnes 4732e <_Thread_queue_Enqueue_priority+0x12a> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 472f2: 42aa 0030 clrl %a2@(48) if ( priority == search_priority ) 472f6: b680 cmpl %d0,%d3 472f8: 6718 beqs 47312 <_Thread_queue_Enqueue_priority+0x10e> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 472fa: 2651 moveal %a1@,%a3 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 472fc: 2149 0004 movel %a1,%a0@(4) search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 47300: 208b movel %a3,%a0@ the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 47302: 214a 0044 movel %a2,%a0@(68) 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; 47306: 2288 movel %a0,%a1@ next_node->previous = the_node; 47308: 2748 0004 movel %a0,%a3@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4730c: 46c1 movew %d1,%sr 4730e: 7001 moveq #1,%d0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 47310: 6026 bras 47338 <_Thread_queue_Enqueue_priority+0x134> 47312: 43e9 003c lea %a1@(60),%a1 equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; 47316: 2669 0004 moveal %a1@(4),%a3 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 4731a: 2089 movel %a1,%a0@ the_node->previous = previous_node; 4731c: 214b 0004 movel %a3,%a0@(4) previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 47320: 214a 0044 movel %a2,%a0@(68) previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 47324: 2688 movel %a0,%a3@ search_node->previous = the_node; 47326: 2348 0004 movel %a0,%a1@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4732a: 46c2 movew %d2,%sr 4732c: 60e0 bras 4730e <_Thread_queue_Enqueue_priority+0x10a> * 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; 4732e: 206e 0010 moveal %fp@(16),%a0 return the_thread_queue->sync_state; 47332: 202a 0030 movel %a2@(48),%d0 * 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; 47336: 2082 movel %d2,%a0@ return the_thread_queue->sync_state; } 47338: 4cd7 0c7c moveml %sp@,%d2-%d6/%a2-%a3 4733c: 4e5e unlk %fp 4733e: 4e75 rts 00050edc <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 50edc: 4e56 ffb4 linkw %fp,#-76 50ee0: 200e movel %fp,%d0 50ee2: 0680 ffff fff4 addil #-12,%d0 50ee8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 50eec: 246e 0008 moveal %fp@(8),%a2 50ef0: 240e movel %fp,%d2 50ef2: 2a0e movel %fp,%d5 50ef4: 260e movel %fp,%d3 50ef6: 0682 ffff ffe8 addil #-24,%d2 50efc: 5185 subql #8,%d5 50efe: 0683 ffff ffec addil #-20,%d3 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 50f04: 41ea 0008 lea %a2@(8),%a0 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 50f08: 4bea 0040 lea %a2@(64),%a5 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 50f0c: 2e0a movel %a2,%d7 /* * 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 ); 50f0e: 280a movel %a2,%d4 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 50f10: 0687 0000 0030 addil #48,%d7 /* * 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 ); 50f16: 0684 0000 0068 addil #104,%d4 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 50f1c: 49f9 0005 4a8c lea 54a8c <_Watchdog_Adjust_to_chain>,%a4 ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 50f22: 47f9 0005 4b1c lea 54b1c <_Watchdog_Insert>,%a3 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 50f28: 2d48 ffe4 movel %a0,%fp@(-28) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 50f2c: 2d45 fff4 movel %d5,%fp@(-12) the_chain->permanent_null = NULL; 50f30: 42ae fff8 clrl %fp@(-8) the_chain->last = _Chain_Head(the_chain); 50f34: 2d40 fffc movel %d0,%fp@(-4) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 50f38: 2d43 ffe8 movel %d3,%fp@(-24) the_chain->permanent_null = NULL; 50f3c: 42ae ffec clrl %fp@(-20) the_chain->last = _Chain_Head(the_chain); 50f40: 2d42 fff0 movel %d2,%fp@(-16) 50f44: 2d4d ffe0 movel %a5,%fp@(-32) { /* * 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; 50f48: 41ee fff4 lea %fp@(-12),%a0 * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 50f4c: 3a7c 0700 moveaw #1792,%a5 { /* * 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; 50f50: 2548 0078 movel %a0,%a2@(120) static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 50f54: 2039 0007 500c movel 7500c <_Watchdog_Ticks_since_boot>,%d0 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 50f5a: 222a 003c movel %a2@(60),%d1 watchdogs->last_snapshot = snapshot; 50f5e: 2540 003c movel %d0,%a2@(60) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 50f62: 486e ffe8 pea %fp@(-24) 50f66: 9081 subl %d1,%d0 50f68: 2f00 movel %d0,%sp@- 50f6a: 2f07 movel %d7,%sp@- 50f6c: 4e94 jsr %a4@ static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 50f6e: 2039 0007 4f5a movel 74f5a <_TOD_Now>,%d0 /* * 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 ) { 50f74: 4fef 000c lea %sp@(12),%sp Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 50f78: 222a 0074 movel %a2@(116),%d1 /* * 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 ) { 50f7c: b280 cmpl %d0,%d1 50f7e: 6414 bccs 50f94 <_Timer_server_Body+0xb8> /* * 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 ); 50f80: 486e ffe8 pea %fp@(-24) 50f84: 2c00 movel %d0,%d6 50f86: 9c81 subl %d1,%d6 50f88: 2f06 movel %d6,%sp@- 50f8a: 2d40 ffdc movel %d0,%fp@(-36) 50f8e: 2f04 movel %d4,%sp@- 50f90: 4e94 jsr %a4@ 50f92: 6018 bras 50fac <_Timer_server_Body+0xd0> } else if ( snapshot < last_snapshot ) { 50f94: b280 cmpl %d0,%d1 50f96: 631c blss 50fb4 <_Timer_server_Body+0xd8> /* * 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 ); 50f98: 9280 subl %d0,%d1 50f9a: 2f01 movel %d1,%sp@- 50f9c: 4878 0001 pea 1 50fa0: 2d40 ffdc movel %d0,%fp@(-36) 50fa4: 2f04 movel %d4,%sp@- 50fa6: 4eb9 0005 4a0c jsr 54a0c <_Watchdog_Adjust> 50fac: 202e ffdc movel %fp@(-36),%d0 50fb0: 4fef 000c lea %sp@(12),%sp } watchdogs->last_snapshot = snapshot; 50fb4: 2540 0074 movel %d0,%a2@(116) } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 50fb8: 202a 0078 movel %a2@(120),%d0 50fbc: 2f00 movel %d0,%sp@- 50fbe: 4eb9 0005 18ac jsr 518ac <_Chain_Get> if ( timer == NULL ) { 50fc4: 588f addql #4,%sp } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 50fc6: 2040 moveal %d0,%a0 if ( timer == NULL ) { 50fc8: 4a80 tstl %d0 50fca: 6724 beqs 50ff0 <_Timer_server_Body+0x114> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 50fcc: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 50fd0: 7201 moveq #1,%d1 <== NOT EXECUTED 50fd2: b280 cmpl %d0,%d1 <== NOT EXECUTED 50fd4: 6608 bnes 50fde <_Timer_server_Body+0x102> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 50fd6: 4868 0010 pea %a0@(16) <== NOT EXECUTED 50fda: 2f07 movel %d7,%sp@- <== NOT EXECUTED 50fdc: 600c bras 50fea <_Timer_server_Body+0x10e> <== NOT EXECUTED } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 50fde: 7c03 moveq #3,%d6 <== NOT EXECUTED 50fe0: bc80 cmpl %d0,%d6 <== NOT EXECUTED 50fe2: 66d4 bnes 50fb8 <_Timer_server_Body+0xdc> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 50fe4: 4868 0010 pea %a0@(16) <== NOT EXECUTED 50fe8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 50fea: 4e93 jsr %a3@ <== NOT EXECUTED 50fec: 508f addql #8,%sp <== NOT EXECUTED 50fee: 60c8 bras 50fb8 <_Timer_server_Body+0xdc> <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 50ff0: 200d movel %a5,%d0 50ff2: 40c1 movew %sr,%d1 50ff4: 8081 orl %d1,%d0 50ff6: 46c0 movew %d0,%sr if ( _Chain_Is_empty( insert_chain ) ) { 50ff8: baae fff4 cmpl %fp@(-12),%d5 50ffc: 6612 bnes 51010 <_Timer_server_Body+0x134> ts->insert_chain = NULL; 50ffe: 42aa 0078 clrl %a2@(120) _ISR_Enable( level ); 51002: 46c1 movew %d1,%sr /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 51004: 3a7c 0700 moveaw #1792,%a5 _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 ) ) { 51008: b6ae ffe8 cmpl %fp@(-24),%d3 5100c: 6608 bnes 51016 <_Timer_server_Body+0x13a> 5100e: 6042 bras 51052 <_Timer_server_Body+0x176> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 51010: 46c1 movew %d1,%sr <== NOT EXECUTED 51012: 6000 ff40 braw 50f54 <_Timer_server_Body+0x78> <== NOT EXECUTED /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 51016: 220d movel %a5,%d1 51018: 40c0 movew %sr,%d0 5101a: 8280 orl %d0,%d1 5101c: 46c1 movew %d1,%sr */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5101e: 206e ffe8 moveal %fp@(-24),%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 51022: b688 cmpl %a0,%d3 51024: 6726 beqs 5104c <_Timer_server_Body+0x170> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 51026: 2250 moveal %a0@,%a1 the_chain->first = new_first; 51028: 2d49 ffe8 movel %a1,%fp@(-24) new_first->previous = _Chain_Head(the_chain); 5102c: 2342 0004 movel %d2,%a1@(4) watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 51030: 4a88 tstl %a0 51032: 6718 beqs 5104c <_Timer_server_Body+0x170> watchdog->state = WATCHDOG_INACTIVE; 51034: 42a8 0008 clrl %a0@(8) _ISR_Enable( level ); 51038: 46c0 movew %d0,%sr /* * 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 ); 5103a: 2f28 0024 movel %a0@(36),%sp@- 5103e: 2f28 0020 movel %a0@(32),%sp@- 51042: 2068 001c moveal %a0@(28),%a0 51046: 4e90 jsr %a0@ } 51048: 508f addql #8,%sp 5104a: 60ca bras 51016 <_Timer_server_Body+0x13a> watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 5104c: 46c0 movew %d0,%sr 5104e: 6000 fef8 braw 50f48 <_Timer_server_Body+0x6c> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 51052: 4200 clrb %d0 51054: 1540 007c moveb %d0,%a2@(124) 51058: 2039 0007 4ec8 movel 74ec8 <_Thread_Dispatch_disable_level>,%d0 5105e: 5280 addql #1,%d0 51060: 23c0 0007 4ec8 movel %d0,74ec8 <_Thread_Dispatch_disable_level> /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 51066: 4878 0008 pea 8 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 5106a: 4bf9 0005 4c38 lea 54c38 <_Watchdog_Remove>,%a5 /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 51070: 2f12 movel %a2@,%sp@- 51072: 4eb9 0005 4224 jsr 54224 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 51078: 2f0a movel %a2,%sp@- 5107a: 4eba fd9c jsr %pc@(50e18 <_Timer_server_Reset_interval_system_watchdog>) _Timer_server_Reset_tod_system_watchdog( ts ); 5107e: 2f0a movel %a2,%sp@- 51080: 4eba fdf6 jsr %pc@(50e78 <_Timer_server_Reset_tod_system_watchdog>) _Thread_Enable_dispatch(); 51084: 4eb9 0005 38aa jsr 538aa <_Thread_Enable_dispatch> ts->active = true; 5108a: 7201 moveq #1,%d1 5108c: 1541 007c moveb %d1,%a2@(124) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 51090: 2f2e ffe4 movel %fp@(-28),%sp@- 51094: 4e95 jsr %a5@ static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 51096: 2f2e ffe0 movel %fp@(-32),%sp@- 5109a: 4e95 jsr %a5@ 5109c: 4fef 0018 lea %sp@(24),%sp 510a0: 6000 fea6 braw 50f48 <_Timer_server_Body+0x6c> 000510a4 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 510a4: 4e56 fff0 linkw %fp,#-16 510a8: 206e 000c moveal %fp@(12),%a0 510ac: 48d7 041c moveml %d2-%d4/%a2,%sp@ 510b0: 246e 0008 moveal %fp@(8),%a2 if ( ts->insert_chain == NULL ) { 510b4: 202a 0078 movel %a2@(120),%d0 510b8: 6600 00f8 bnew 511b2 <_Timer_server_Schedule_operation_method+0x10e> 510bc: 2039 0007 4ec8 movel 74ec8 <_Thread_Dispatch_disable_level>,%d0 510c2: 5280 addql #1,%d0 510c4: 23c0 0007 4ec8 movel %d0,74ec8 <_Thread_Dispatch_disable_level> * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 510ca: 2028 0038 movel %a0@(56),%d0 510ce: 7201 moveq #1,%d1 510d0: b280 cmpl %d0,%d1 510d2: 6660 bnes 51134 <_Timer_server_Schedule_operation_method+0x90> /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 510d4: 203c 0000 0700 movel #1792,%d0 510da: 40c3 movew %sr,%d3 510dc: 8083 orl %d3,%d0 510de: 46c0 movew %d0,%sr snapshot = _Watchdog_Ticks_since_boot; 510e0: 2039 0007 500c movel 7500c <_Watchdog_Ticks_since_boot>,%d0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 510e6: 220a movel %a2,%d1 510e8: 0681 0000 0034 addil #52,%d1 last_snapshot = ts->Interval_watchdogs.last_snapshot; 510ee: 242a 003c movel %a2@(60),%d2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 510f2: 226a 0030 moveal %a2@(48),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 510f6: b289 cmpl %a1,%d1 510f8: 6716 beqs 51110 <_Timer_server_Schedule_operation_method+0x6c> first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; 510fa: 2800 movel %d0,%d4 510fc: 9882 subl %d2,%d4 delta_interval = first_watchdog->delta_interval; 510fe: 2229 0010 movel %a1@(16),%d1 if (delta_interval > delta) { 51102: b881 cmpl %d1,%d4 51104: 6504 bcss 5110a <_Timer_server_Schedule_operation_method+0x66> 51106: 4281 clrl %d1 51108: 6002 bras 5110c <_Timer_server_Schedule_operation_method+0x68> delta_interval -= delta; 5110a: 9284 subl %d4,%d1 } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 5110c: 2341 0010 movel %d1,%a1@(16) } ts->Interval_watchdogs.last_snapshot = snapshot; 51110: 2540 003c movel %d0,%a2@(60) _ISR_Enable( level ); 51114: 46c3 movew %d3,%sr _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 51116: 4868 0010 pea %a0@(16) 5111a: 486a 0030 pea %a2@(48) 5111e: 4eb9 0005 4b1c jsr 54b1c <_Watchdog_Insert> if ( !ts->active ) { 51124: 508f addql #8,%sp 51126: 102a 007c moveb %a2@(124),%d0 5112a: 6678 bnes 511a4 <_Timer_server_Schedule_operation_method+0x100> _Timer_server_Reset_interval_system_watchdog( ts ); 5112c: 2f0a movel %a2,%sp@- 5112e: 4eba fce8 jsr %pc@(50e18 <_Timer_server_Reset_interval_system_watchdog>) 51132: 606e bras 511a2 <_Timer_server_Schedule_operation_method+0xfe> } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 51134: 7203 moveq #3,%d1 51136: b280 cmpl %d0,%d1 51138: 666a bnes 511a4 <_Timer_server_Schedule_operation_method+0x100> /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 5113a: 203c 0000 0700 movel #1792,%d0 51140: 40c3 movew %sr,%d3 51142: 8083 orl %d3,%d0 51144: 46c0 movew %d0,%sr 51146: 200a movel %a2,%d0 51148: 0680 0000 006c addil #108,%d0 snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 5114e: 2239 0007 4f5a movel 74f5a <_TOD_Now>,%d1 last_snapshot = ts->TOD_watchdogs.last_snapshot; 51154: 242a 0074 movel %a2@(116),%d2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 51158: 226a 0068 moveal %a2@(104),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5115c: b089 cmpl %a1,%d0 5115e: 6720 beqs 51180 <_Timer_server_Schedule_operation_method+0xdc> if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; 51160: 2029 0010 movel %a1@(16),%d0 if ( snapshot > last_snapshot ) { 51164: b481 cmpl %d1,%d2 51166: 6410 bccs 51178 <_Timer_server_Schedule_operation_method+0xd4> /* * We advanced in time. */ delta = snapshot - last_snapshot; 51168: 2801 movel %d1,%d4 5116a: 9882 subl %d2,%d4 if (delta_interval > delta) { 5116c: b880 cmpl %d0,%d4 5116e: 6504 bcss 51174 <_Timer_server_Schedule_operation_method+0xd0> 51170: 4280 clrl %d0 <== NOT EXECUTED 51172: 6008 bras 5117c <_Timer_server_Schedule_operation_method+0xd8> <== NOT EXECUTED delta_interval -= delta; 51174: 9084 subl %d4,%d0 51176: 6004 bras 5117c <_Timer_server_Schedule_operation_method+0xd8> } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 51178: d082 addl %d2,%d0 delta_interval += delta; 5117a: 9081 subl %d1,%d0 } first_watchdog->delta_interval = delta_interval; 5117c: 2340 0010 movel %d0,%a1@(16) } ts->TOD_watchdogs.last_snapshot = snapshot; 51180: 2541 0074 movel %d1,%a2@(116) _ISR_Enable( level ); 51184: 46c3 movew %d3,%sr _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 51186: 4868 0010 pea %a0@(16) 5118a: 486a 0068 pea %a2@(104) 5118e: 4eb9 0005 4b1c jsr 54b1c <_Watchdog_Insert> if ( !ts->active ) { 51194: 508f addql #8,%sp 51196: 102a 007c moveb %a2@(124),%d0 5119a: 6608 bnes 511a4 <_Timer_server_Schedule_operation_method+0x100> _Timer_server_Reset_tod_system_watchdog( ts ); 5119c: 2f0a movel %a2,%sp@- 5119e: 4eba fcd8 jsr %pc@(50e78 <_Timer_server_Reset_tod_system_watchdog>) 511a2: 588f addql #4,%sp * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); } } 511a4: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 511aa: 4e5e unlk %fp if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 511ac: 4ef9 0005 38aa jmp 538aa <_Thread_Enable_dispatch> * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 511b2: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 511b6: 2d48 000c movel %a0,%fp@(12) <== NOT EXECUTED } } 511ba: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 511c0: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } 511c4: 4e5e unlk %fp <== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 511c6: 4ef9 0005 1874 jmp 51874 <_Chain_Append> <== NOT EXECUTED 00042828 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 42828: 4e56 0000 linkw %fp,#0 4282c: 4eb9 0005 9b98 jsr 59b98 <_fini> * We need to do the exit processing on the global reentrancy structure. * This has already been done on the per task reentrancy structure * associated with this task. */ libc_wrapup(); 42832: 4eb9 0004 27c4 jsr 427c4 rtems_shutdown_executive(status); 42838: 2f2e 0008 movel %fp@(8),%sp@- 4283c: 4eb9 0004 5560 jsr 45560 42842: 588f addql #4,%sp <== NOT EXECUTED 42844: 60fe bras 42844 <_exit+0x1c> <== NOT EXECUTED ... 00070cf2 <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) { 70cf2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 70cf6: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 70cfa: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return fcntl( fd, cmd, arg ); 70cfe: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 70d04: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 70d08: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 70d0c: 4e5e unlk %fp <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 70d0e: 4ef9 0007 0b84 jmp 70b84 <== NOT EXECUTED 0004b8c2 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 4b8c2: 7001 moveq #1,%d0 <== NOT EXECUTED #include pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { 4b8c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpid(); } 4b8c8: 4e5e unlk %fp <== NOT EXECUTED 4b8ca: 4e75 rts 0004912c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 4912c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return gettimeofday( tp, tzp ); } 49130: 4e5e unlk %fp <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 49132: 4ef9 0004 90d0 jmp 490d0 <== NOT EXECUTED 000616ce <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { 616ce: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 616d2: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return link( existing, new ); 616d6: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 616dc: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 616e0: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 616e2: 4ef9 0006 14e4 jmp 614e4 <== NOT EXECUTED 000618ca <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 618ca: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 618ce: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 618d2: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 618d8: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 618dc: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 618de: 4ef9 0006 1804 jmp 61804 <== NOT EXECUTED 00059734 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { 59734: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59738: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return realloc( ptr, size ); 5973c: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 59742: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 59746: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 59748: 4ef9 0005 9790 jmp 59790 <== NOT EXECUTED ... 0008d208 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 8d208: 4e56 ffa4 linkw %fp,#-92 <== NOT EXECUTED 8d20c: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 8d210: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 8d214: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 8d218: 2f0a movel %a2,%sp@- <== NOT EXECUTED 8d21a: 4eb9 0004 6460 jsr 46460 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 8d220: 588f addql #4,%sp <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 8d222: 2600 movel %d0,%d3 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 8d224: 664a bnes 8d270 <_rename_r+0x68> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 8d226: 742f moveq #47,%d2 <== NOT EXECUTED 8d228: 1012 moveb %a2@,%d0 <== NOT EXECUTED 8d22a: 1200 moveb %d0,%d1 <== NOT EXECUTED 8d22c: 49c1 extbl %d1 <== NOT EXECUTED 8d22e: b481 cmpl %d1,%d2 <== NOT EXECUTED 8d230: 670c beqs 8d23e <_rename_r+0x36> <== NOT EXECUTED 8d232: 143c 005c moveb #92,%d2 <== NOT EXECUTED 8d236: b481 cmpl %d1,%d2 <== NOT EXECUTED 8d238: 6704 beqs 8d23e <_rename_r+0x36> <== NOT EXECUTED 8d23a: 4a00 tstb %d0 <== NOT EXECUTED 8d23c: 6612 bnes 8d250 <_rename_r+0x48> <== NOT EXECUTED 8d23e: 4878 0014 pea 14 <== NOT EXECUTED 8d242: 2079 0009 73bc moveal 973bc ,%a0 <== NOT EXECUTED 8d248: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 8d24c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 8d24e: 600e bras 8d25e <_rename_r+0x56> <== NOT EXECUTED 8d250: 4878 0014 pea 14 <== NOT EXECUTED 8d254: 2039 0009 73bc movel 973bc ,%d0 <== NOT EXECUTED 8d25a: 5880 addql #4,%d0 <== NOT EXECUTED 8d25c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d25e: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d262: 4202 clrb %d2 <== NOT EXECUTED 8d264: 4eb9 0007 9228 jsr 79228 <== NOT EXECUTED 8d26a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 8d26e: 6024 bras 8d294 <_rename_r+0x8c> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 8d270: 42a7 clrl %sp@- <== NOT EXECUTED 8d272: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d276: 4878 0002 pea 2 <== NOT EXECUTED 8d27a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d27c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 8d27e: 4eb9 0004 6576 jsr 46576 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 8d284: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 8d288: 4a80 tstl %d0 <== NOT EXECUTED 8d28a: 6706 beqs 8d292 <_rename_r+0x8a> <== NOT EXECUTED 8d28c: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d28e: 6000 0286 braw 8d516 <_rename_r+0x30e> <== NOT EXECUTED 8d292: 7401 moveq #1,%d2 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 8d294: 4878 0014 pea 14 <== NOT EXECUTED 8d298: 2a0e movel %fp,%d5 <== NOT EXECUTED 8d29a: 0685 ffff ffd4 addil #-44,%d5 <== NOT EXECUTED 8d2a0: 280e movel %fp,%d4 <== NOT EXECUTED 8d2a2: 0684 ffff ffe8 addil #-24,%d4 <== NOT EXECUTED 8d2a8: 49f9 0007 9228 lea 79228 ,%a4 <== NOT EXECUTED name = old + old_parent_pathlen; 8d2ae: d68a addl %a2,%d3 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 8d2b0: 45f9 0007 c298 lea 7c298 ,%a2 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 8d2b6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 8d2b8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d2ba: 4e94 jsr %a4@ <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 8d2bc: 2f03 movel %d3,%sp@- <== 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; 8d2be: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 8d2c2: 4e92 jsr %a2@ <== NOT EXECUTED 8d2c4: 2e80 movel %d0,%sp@ <== NOT EXECUTED 8d2c6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 8d2c8: 4eb9 0004 6428 jsr 46428 <== NOT EXECUTED 8d2ce: d680 addl %d0,%d3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 8d2d0: 2f03 movel %d3,%sp@- <== 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 ) ); 8d2d2: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 8d2d6: 4e92 jsr %a2@ <== NOT EXECUTED 8d2d8: 4297 clrl %sp@ <== NOT EXECUTED 8d2da: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d2dc: 42a7 clrl %sp@- <== NOT EXECUTED 8d2de: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d2e0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 8d2e2: 4eb9 0004 64a6 jsr 464a6 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 8d2e8: 4fef 0028 lea %sp@(40),%sp <== NOT EXECUTED old_loc = old_parent_loc; name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 8d2ec: 2800 movel %d0,%d4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 8d2ee: 672a beqs 8d31a <_rename_r+0x112> <== NOT EXECUTED if ( free_old_parentloc ) 8d2f0: 4a02 tstb %d2 <== NOT EXECUTED 8d2f2: 6716 beqs 8d30a <_rename_r+0x102> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d2f4: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d2f8: 4a88 tstl %a0 <== NOT EXECUTED 8d2fa: 670e beqs 8d30a <_rename_r+0x102> <== NOT EXECUTED 8d2fc: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d300: 4a88 tstl %a0 <== NOT EXECUTED 8d302: 6706 beqs 8d30a <_rename_r+0x102> <== NOT EXECUTED 8d304: 2f05 movel %d5,%sp@- <== NOT EXECUTED 8d306: 4e90 jsr %a0@ <== NOT EXECUTED 8d308: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 8d30a: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 8d310: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d312: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d314: 2084 movel %d4,%a0@ <== NOT EXECUTED 8d316: 6000 01fe braw 8d516 <_rename_r+0x30e> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 8d31a: 762f moveq #47,%d3 <== NOT EXECUTED 8d31c: 1013 moveb %a3@,%d0 <== NOT EXECUTED 8d31e: 1200 moveb %d0,%d1 <== NOT EXECUTED 8d320: 49c1 extbl %d1 <== NOT EXECUTED 8d322: b681 cmpl %d1,%d3 <== NOT EXECUTED 8d324: 670c beqs 8d332 <_rename_r+0x12a> <== NOT EXECUTED 8d326: 163c 005c moveb #92,%d3 <== NOT EXECUTED 8d32a: b681 cmpl %d1,%d3 <== NOT EXECUTED 8d32c: 6704 beqs 8d332 <_rename_r+0x12a> <== NOT EXECUTED 8d32e: 4a00 tstb %d0 <== NOT EXECUTED 8d330: 6622 bnes 8d354 <_rename_r+0x14c> <== NOT EXECUTED 8d332: 4878 0014 pea 14 <== NOT EXECUTED 8d336: 2079 0009 73bc moveal 973bc ,%a0 <== NOT EXECUTED 8d33c: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 8d340: 2f08 movel %a0,%sp@- <== NOT EXECUTED 8d342: 486e ffc0 pea %fp@(-64) <== NOT EXECUTED 8d346: 4eb9 0007 9228 jsr 79228 <== NOT EXECUTED 8d34c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 8d350: 7001 moveq #1,%d0 <== NOT EXECUTED 8d352: 601a bras 8d36e <_rename_r+0x166> <== NOT EXECUTED 8d354: 4878 0014 pea 14 <== NOT EXECUTED 8d358: 2039 0009 73bc movel 973bc ,%d0 <== NOT EXECUTED 8d35e: 5880 addql #4,%d0 <== NOT EXECUTED 8d360: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d362: 486e ffc0 pea %fp@(-64) <== NOT EXECUTED 8d366: 4e94 jsr %a4@ <== NOT EXECUTED 8d368: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 8d36c: 4280 clrl %d0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 8d36e: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 8d372: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 8d376: 4a88 tstl %a0 <== NOT EXECUTED 8d378: 6700 00f6 beqw 8d470 <_rename_r+0x268> <== 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 ); 8d37c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 8d380: 280e movel %fp,%d4 <== NOT EXECUTED 8d382: 0684 ffff ffc0 addil #-64,%d4 <== NOT EXECUTED 8d388: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d38a: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 8d38e: 4e90 jsr %a0@ <== NOT EXECUTED if ( result != 0 ) { 8d390: 4fef 000c lea %sp@(12),%sp <== 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 ); 8d394: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( result != 0 ) { 8d396: 4a80 tstl %d0 <== NOT EXECUTED 8d398: 675a beqs 8d3f4 <_rename_r+0x1ec> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d39a: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 8d39e: 4a88 tstl %a0 <== NOT EXECUTED 8d3a0: 670e beqs 8d3b0 <_rename_r+0x1a8> <== NOT EXECUTED 8d3a2: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d3a6: 4a88 tstl %a0 <== NOT EXECUTED 8d3a8: 6706 beqs 8d3b0 <_rename_r+0x1a8> <== NOT EXECUTED 8d3aa: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d3ac: 4e90 jsr %a0@ <== NOT EXECUTED 8d3ae: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d3b0: 4a02 tstb %d2 <== NOT EXECUTED 8d3b2: 6718 beqs 8d3cc <_rename_r+0x1c4> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d3b4: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d3b8: 4a88 tstl %a0 <== NOT EXECUTED 8d3ba: 6710 beqs 8d3cc <_rename_r+0x1c4> <== NOT EXECUTED 8d3bc: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d3c0: 4a88 tstl %a0 <== NOT EXECUTED 8d3c2: 6708 beqs 8d3cc <_rename_r+0x1c4> <== NOT EXECUTED 8d3c4: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d3c8: 4e90 jsr %a0@ <== NOT EXECUTED 8d3ca: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d3cc: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d3d0: 4a88 tstl %a0 <== NOT EXECUTED 8d3d2: 6710 beqs 8d3e4 <_rename_r+0x1dc> <== NOT EXECUTED 8d3d4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d3d8: 4a88 tstl %a0 <== NOT EXECUTED 8d3da: 6708 beqs 8d3e4 <_rename_r+0x1dc> <== NOT EXECUTED 8d3dc: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d3e0: 4e90 jsr %a0@ <== NOT EXECUTED 8d3e2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 8d3e4: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 8d3ea: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d3ec: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d3ee: 208a movel %a2,%a0@ <== NOT EXECUTED 8d3f0: 6000 0124 braw 8d516 <_rename_r+0x30e> <== NOT EXECUTED 8d3f4: 206e ffcc moveal %fp@(-52),%a0 <== 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 ) { 8d3f8: 202e ffd0 movel %fp@(-48),%d0 <== NOT EXECUTED 8d3fc: b0ae ffe4 cmpl %fp@(-28),%d0 <== NOT EXECUTED 8d400: 6758 beqs 8d45a <_rename_r+0x252> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d402: 4a88 tstl %a0 <== NOT EXECUTED 8d404: 670e beqs 8d414 <_rename_r+0x20c> <== NOT EXECUTED 8d406: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d40a: 4a88 tstl %a0 <== NOT EXECUTED 8d40c: 6706 beqs 8d414 <_rename_r+0x20c> <== NOT EXECUTED 8d40e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d410: 4e90 jsr %a0@ <== NOT EXECUTED 8d412: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d414: 4a02 tstb %d2 <== NOT EXECUTED 8d416: 6718 beqs 8d430 <_rename_r+0x228> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d418: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d41c: 4a88 tstl %a0 <== NOT EXECUTED 8d41e: 6710 beqs 8d430 <_rename_r+0x228> <== NOT EXECUTED 8d420: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d424: 4a88 tstl %a0 <== NOT EXECUTED 8d426: 6708 beqs 8d430 <_rename_r+0x228> <== NOT EXECUTED 8d428: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d42c: 4e90 jsr %a0@ <== NOT EXECUTED 8d42e: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d430: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d434: 4a88 tstl %a0 <== NOT EXECUTED 8d436: 6710 beqs 8d448 <_rename_r+0x240> <== NOT EXECUTED 8d438: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d43c: 4a88 tstl %a0 <== NOT EXECUTED 8d43e: 6708 beqs 8d448 <_rename_r+0x240> <== NOT EXECUTED 8d440: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d444: 4e90 jsr %a0@ <== NOT EXECUTED 8d446: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 8d448: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 8d44e: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d450: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d452: 7012 moveq #18,%d0 <== NOT EXECUTED 8d454: 2080 movel %d0,%a0@ <== NOT EXECUTED 8d456: 6000 00be braw 8d516 <_rename_r+0x30e> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 8d45a: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED 8d45e: 4a89 tstl %a1 <== NOT EXECUTED 8d460: 6654 bnes 8d4b6 <_rename_r+0x2ae> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d462: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d466: 4a88 tstl %a0 <== NOT EXECUTED 8d468: 6706 beqs 8d470 <_rename_r+0x268> <== NOT EXECUTED 8d46a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d46c: 4e90 jsr %a0@ <== NOT EXECUTED 8d46e: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d470: 4a02 tstb %d2 <== NOT EXECUTED 8d472: 6718 beqs 8d48c <_rename_r+0x284> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d474: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d478: 4a88 tstl %a0 <== NOT EXECUTED 8d47a: 6710 beqs 8d48c <_rename_r+0x284> <== NOT EXECUTED 8d47c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d480: 4a88 tstl %a0 <== NOT EXECUTED 8d482: 6708 beqs 8d48c <_rename_r+0x284> <== NOT EXECUTED 8d484: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d488: 4e90 jsr %a0@ <== NOT EXECUTED 8d48a: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d48c: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d490: 4a88 tstl %a0 <== NOT EXECUTED 8d492: 6710 beqs 8d4a4 <_rename_r+0x29c> <== NOT EXECUTED 8d494: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d498: 4a88 tstl %a0 <== NOT EXECUTED 8d49a: 6708 beqs 8d4a4 <_rename_r+0x29c> <== NOT EXECUTED 8d49c: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d4a0: 4e90 jsr %a0@ <== NOT EXECUTED 8d4a2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 8d4a4: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 8d4aa: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d4ac: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d4ae: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 8d4b4: 6060 bras 8d516 <_rename_r+0x30e> <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 8d4b6: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 8d4ba: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d4bc: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d4c0: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d4c4: 4e91 jsr %a1@ <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d4c6: 206e ffcc moveal %fp@(-52),%a0 <== 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 ); 8d4ca: 2600 movel %d0,%d3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d4cc: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 8d4d0: 4a88 tstl %a0 <== NOT EXECUTED 8d4d2: 670e beqs 8d4e2 <_rename_r+0x2da> <== NOT EXECUTED 8d4d4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d4d8: 4a88 tstl %a0 <== NOT EXECUTED 8d4da: 6706 beqs 8d4e2 <_rename_r+0x2da> <== NOT EXECUTED 8d4dc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d4de: 4e90 jsr %a0@ <== NOT EXECUTED 8d4e0: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d4e2: 4a02 tstb %d2 <== NOT EXECUTED 8d4e4: 6718 beqs 8d4fe <_rename_r+0x2f6> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d4e6: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d4ea: 4a88 tstl %a0 <== NOT EXECUTED 8d4ec: 6710 beqs 8d4fe <_rename_r+0x2f6> <== NOT EXECUTED 8d4ee: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d4f2: 4a88 tstl %a0 <== NOT EXECUTED 8d4f4: 6708 beqs 8d4fe <_rename_r+0x2f6> <== NOT EXECUTED 8d4f6: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d4fa: 4e90 jsr %a0@ <== NOT EXECUTED 8d4fc: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d4fe: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d502: 4a88 tstl %a0 <== NOT EXECUTED 8d504: 6710 beqs 8d516 <_rename_r+0x30e> <== NOT EXECUTED 8d506: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d50a: 4a88 tstl %a0 <== NOT EXECUTED 8d50c: 6708 beqs 8d516 <_rename_r+0x30e> <== NOT EXECUTED 8d50e: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d512: 4e90 jsr %a0@ <== NOT EXECUTED 8d514: 588f addql #4,%sp <== NOT EXECUTED return result; } 8d516: 2003 movel %d3,%d0 <== NOT EXECUTED 8d518: 4cee 1c3c ffa4 moveml %fp@(-92),%d2-%d5/%a2-%a4 <== NOT EXECUTED 8d51e: 4e5e unlk %fp <== NOT EXECUTED 8d520: 4e75 rts <== NOT EXECUTED ... 00047ad8 <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 47ad8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47adc: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 47ae0: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 47ae6: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 47aea: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 47aec: 4ef9 0004 7a10 jmp 47a10 <== NOT EXECUTED ... 0004c786 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { 4c786: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return unlink( path ); 4c78a: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 4c790: 4e5e unlk %fp <== NOT EXECUTED int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 4c792: 4ef9 0004 c59c jmp 4c59c <== NOT EXECUTED 00060674 : #include int chdir( const char *pathname ) { 60674: 4e56 ffec linkw %fp,#-20 60678: 2f03 movel %d3,%sp@- 6067a: 262e 0008 movel %fp@(8),%d3 6067e: 2f02 movel %d2,%sp@- /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 60680: 240e movel %fp,%d2 60682: 0682 ffff ffec addil #-20,%d2 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 60688: 2f03 movel %d3,%sp@- 6068a: 4eb9 0007 c298 jsr 7c298 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 60690: 7201 moveq #1,%d1 60692: 2e81 movel %d1,%sp@ 60694: 2f02 movel %d2,%sp@- 60696: 4878 0001 pea 1 6069a: 2f00 movel %d0,%sp@- 6069c: 2f03 movel %d3,%sp@- 6069e: 4eb9 0004 6576 jsr 46576 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 606a4: 4fef 0014 lea %sp@(20),%sp 606a8: 4a80 tstl %d0 606aa: 6706 beqs 606b2 606ac: 72ff moveq #-1,%d1 606ae: 6000 009c braw 6074c /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 606b2: 226e fff8 moveal %fp@(-8),%a1 606b6: 2069 0010 moveal %a1@(16),%a0 606ba: 4a88 tstl %a0 606bc: 6620 bnes 606de rtems_filesystem_freenode( &loc ); 606be: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 606c2: 4a88 tstl %a0 <== NOT EXECUTED 606c4: 6706 beqs 606cc <== NOT EXECUTED 606c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 606c8: 4e90 jsr %a0@ <== NOT EXECUTED 606ca: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 606cc: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 606d2: 72ff moveq #-1,%d1 <== NOT EXECUTED 606d4: 2040 moveal %d0,%a0 <== NOT EXECUTED 606d6: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 606dc: 606e bras 6074c <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 606de: 2f02 movel %d2,%sp@- 606e0: 4e90 jsr %a0@ 606e2: 588f addql #4,%sp 606e4: 7201 moveq #1,%d1 606e6: b280 cmpl %d0,%d1 606e8: 6726 beqs 60710 rtems_filesystem_freenode( &loc ); 606ea: 206e fff8 moveal %fp@(-8),%a0 606ee: 4a88 tstl %a0 606f0: 670e beqs 60700 606f2: 2068 001c moveal %a0@(28),%a0 606f6: 4a88 tstl %a0 606f8: 6706 beqs 60700 606fa: 2f02 movel %d2,%sp@- 606fc: 4e90 jsr %a0@ 606fe: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); 60700: 4eb9 0007 61f0 jsr 761f0 <__errno> 60706: 72ff moveq #-1,%d1 60708: 2040 moveal %d0,%a0 6070a: 7014 moveq #20,%d0 6070c: 2080 movel %d0,%a0@ 6070e: 603c bras 6074c } rtems_filesystem_freenode( &rtems_filesystem_current ); 60710: 2279 0009 73bc moveal 973bc ,%a1 60716: 2069 0010 moveal %a1@(16),%a0 6071a: 4a88 tstl %a0 6071c: 6710 beqs 6072e 6071e: 2068 001c moveal %a0@(28),%a0 60722: 4a88 tstl %a0 60724: 6708 beqs 6072e 60726: 4869 0004 pea %a1@(4) 6072a: 4e90 jsr %a0@ 6072c: 588f addql #4,%sp rtems_filesystem_current = loc; 6072e: 4878 0014 pea 14 60732: 486e ffec pea %fp@(-20) 60736: 2039 0009 73bc movel 973bc ,%d0 6073c: 5880 addql #4,%d0 6073e: 2f00 movel %d0,%sp@- 60740: 4eb9 0007 9228 jsr 79228 return 0; 60746: 4fef 000c lea %sp@(12),%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; 6074a: 4281 clrl %d1 return 0; } 6074c: 242e ffe4 movel %fp@(-28),%d2 60750: 2001 movel %d1,%d0 60752: 262e ffe8 movel %fp@(-24),%d3 60756: 4e5e unlk %fp 60758: 4e75 rts ... 000460f4 : int chmod( const char *path, mode_t mode ) { 460f4: 4e56 ffec linkw %fp,#-20 460f8: 2f03 movel %d3,%sp@- 460fa: 262e 0008 movel %fp@(8),%d3 460fe: 2f02 movel %d2,%sp@- int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); 46100: 240e movel %fp,%d2 46102: 0682 ffff ffec addil #-20,%d2 46108: 2f03 movel %d3,%sp@- 4610a: 4eb9 0007 c298 jsr 7c298 46110: 7201 moveq #1,%d1 46112: 2e81 movel %d1,%sp@ 46114: 2f02 movel %d2,%sp@- 46116: 42a7 clrl %sp@- 46118: 2f00 movel %d0,%sp@- 4611a: 2f03 movel %d3,%sp@- 4611c: 4eb9 0004 6576 jsr 46576 if ( status != 0 ) 46122: 4fef 0014 lea %sp@(20),%sp 46126: 4a80 tstl %d0 46128: 6706 beqs 46130 4612a: 76ff moveq #-1,%d3 4612c: 6000 0082 braw 461b0 return -1; if ( !loc.handlers ){ 46130: 206e fff4 moveal %fp@(-12),%a0 46134: 4a88 tstl %a0 46136: 6626 bnes 4615e rtems_filesystem_freenode( &loc ); 46138: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4613c: 4a88 tstl %a0 <== NOT EXECUTED 4613e: 670e beqs 4614e <== NOT EXECUTED 46140: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 46144: 4a88 tstl %a0 <== NOT EXECUTED 46146: 6706 beqs 4614e <== NOT EXECUTED 46148: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4614a: 4e90 jsr %a0@ <== NOT EXECUTED 4614c: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 4614e: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 46154: 76ff moveq #-1,%d3 <== NOT EXECUTED 46156: 2040 moveal %d0,%a0 <== NOT EXECUTED 46158: 7009 moveq #9,%d0 <== NOT EXECUTED 4615a: 2080 movel %d0,%a0@ <== NOT EXECUTED 4615c: 6052 bras 461b0 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 4615e: 2068 001c moveal %a0@(28),%a0 46162: 4a88 tstl %a0 46164: 6628 bnes 4618e rtems_filesystem_freenode( &loc ); 46166: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4616a: 4a88 tstl %a0 <== NOT EXECUTED 4616c: 670e beqs 4617c <== NOT EXECUTED 4616e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 46172: 4a88 tstl %a0 <== NOT EXECUTED 46174: 6706 beqs 4617c <== NOT EXECUTED 46176: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46178: 4e90 jsr %a0@ <== NOT EXECUTED 4617a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4617c: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 46182: 76ff moveq #-1,%d3 <== NOT EXECUTED 46184: 2040 moveal %d0,%a0 <== NOT EXECUTED 46186: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4618c: 6022 bras 461b0 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); 4618e: 2f2e 000c movel %fp@(12),%sp@- 46192: 2f02 movel %d2,%sp@- 46194: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 46196: 206e fff8 moveal %fp@(-8),%a0 if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 4619a: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 4619c: 508f addql #8,%sp 4619e: 4a88 tstl %a0 461a0: 670e beqs 461b0 461a2: 2068 001c moveal %a0@(28),%a0 461a6: 4a88 tstl %a0 461a8: 6706 beqs 461b0 461aa: 2f02 movel %d2,%sp@- 461ac: 4e90 jsr %a0@ 461ae: 588f addql #4,%sp return result; } 461b0: 2003 movel %d3,%d0 461b2: 242e ffe4 movel %fp@(-28),%d2 461b6: 262e ffe8 movel %fp@(-24),%d3 461ba: 4e5e unlk %fp 461bc: 4e75 rts ... 0006075c : int chown( const char *path, uid_t owner, gid_t group ) { 6075c: 4e56 ffdc linkw %fp,#-36 60760: 48d7 003c moveml %d2-%d5,%sp@ 60764: 262e 0008 movel %fp@(8),%d3 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 60768: 240e movel %fp,%d2 6076a: 0682 ffff ffec addil #-20,%d2 60770: 2f03 movel %d3,%sp@- int chown( const char *path, uid_t owner, gid_t group ) { 60772: 382e 000e movew %fp@(14),%d4 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 60776: 4eb9 0007 c298 jsr 7c298 6077c: 7201 moveq #1,%d1 6077e: 2e81 movel %d1,%sp@ int chown( const char *path, uid_t owner, gid_t group ) { 60780: 3a2e 0012 movew %fp@(18),%d5 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 60784: 2f02 movel %d2,%sp@- 60786: 42a7 clrl %sp@- 60788: 2f00 movel %d0,%sp@- 6078a: 2f03 movel %d3,%sp@- 6078c: 4eb9 0004 6576 jsr 46576 60792: 4fef 0014 lea %sp@(20),%sp 60796: 4a80 tstl %d0 60798: 6704 beqs 6079e 6079a: 76ff moveq #-1,%d3 6079c: 6054 bras 607f2 return -1; if ( !loc.ops->chown_h ) { 6079e: 226e fff8 moveal %fp@(-8),%a1 607a2: 2069 0018 moveal %a1@(24),%a0 607a6: 4a88 tstl %a0 607a8: 6620 bnes 607ca rtems_filesystem_freenode( &loc ); 607aa: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 607ae: 4a88 tstl %a0 <== NOT EXECUTED 607b0: 6706 beqs 607b8 <== NOT EXECUTED 607b2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 607b4: 4e90 jsr %a0@ <== NOT EXECUTED 607b6: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 607b8: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 607be: 76ff moveq #-1,%d3 <== NOT EXECUTED 607c0: 2040 moveal %d0,%a0 <== NOT EXECUTED 607c2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 607c8: 6028 bras 607f2 <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); 607ca: 3f05 movew %d5,%sp@- 607cc: 4267 clrw %sp@- 607ce: 3f04 movew %d4,%sp@- 607d0: 4267 clrw %sp@- 607d2: 2f02 movel %d2,%sp@- 607d4: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 607d6: 206e fff8 moveal %fp@(-8),%a0 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 ); 607da: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 607dc: 4fef 000c lea %sp@(12),%sp 607e0: 4a88 tstl %a0 607e2: 670e beqs 607f2 607e4: 2068 001c moveal %a0@(28),%a0 607e8: 4a88 tstl %a0 607ea: 6706 beqs 607f2 607ec: 2f02 movel %d2,%sp@- 607ee: 4e90 jsr %a0@ 607f0: 588f addql #4,%sp return result; } 607f2: 2003 movel %d3,%d0 607f4: 4cee 003c ffdc moveml %fp@(-36),%d2-%d5 607fa: 4e5e unlk %fp 607fc: 4e75 rts ... 00060800 : #include int chroot( const char *pathname ) { 60800: 4e56 ffec linkw %fp,#-20 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) { 60804: 203c 0009 bdb8 movel #638392,%d0 #include int chroot( const char *pathname ) { 6080a: 2f0b movel %a3,%sp@- 6080c: 2f0a movel %a2,%sp@- 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) { 6080e: b0b9 0009 73bc cmpl 973bc ,%d0 60814: 6628 bnes 6083e rtems_libio_set_private_env(); /* try to set a new private env*/ 60816: 4eb9 0006 1b22 jsr 61b22 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 6081c: 41f9 0009 bdb8 lea 9bdb8 ,%a0 60822: b1f9 0009 73bc cmpal 973bc ,%a0 60828: 6614 bnes 6083e rtems_set_errno_and_return_minus_one( ENOTSUP ); 6082a: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 60830: 72ff moveq #-1,%d1 <== NOT EXECUTED 60832: 2040 moveal %d0,%a0 <== NOT EXECUTED 60834: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 6083a: 6000 0084 braw 608c0 <== NOT EXECUTED } result = chdir(pathname); 6083e: 2f2e 0008 movel %fp@(8),%sp@- 60842: 4eb9 0006 0674 jsr 60674 if (result) { 60848: 588f addql #4,%sp 6084a: 4a80 tstl %d0 6084c: 6620 bnes 6086e rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 6084e: 42a7 clrl %sp@- 60850: 486e ffec pea %fp@(-20) 60854: 42a7 clrl %sp@- 60856: 4878 0001 pea 1 6085a: 4879 0009 0187 pea 90187 60860: 4eb9 0004 6576 jsr 46576 60866: 4fef 0014 lea %sp@(20),%sp 6086a: 4a80 tstl %d0 6086c: 6714 beqs 60882 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 6086e: 45f9 0007 61f0 lea 761f0 <__errno>,%a2 <== NOT EXECUTED 60874: 4e92 jsr %a2@ <== NOT EXECUTED 60876: 2640 moveal %d0,%a3 <== NOT EXECUTED 60878: 4e92 jsr %a2@ <== NOT EXECUTED 6087a: 72ff moveq #-1,%d1 <== NOT EXECUTED 6087c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6087e: 2690 movel %a0@,%a3@ <== NOT EXECUTED 60880: 603e bras 608c0 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 60882: 2279 0009 73bc moveal 973bc ,%a1 60888: 2069 0024 moveal %a1@(36),%a0 6088c: 4a88 tstl %a0 6088e: 6710 beqs 608a0 60890: 2068 001c moveal %a0@(28),%a0 60894: 4a88 tstl %a0 60896: 6708 beqs 608a0 60898: 4869 0018 pea %a1@(24) 6089c: 4e90 jsr %a0@ 6089e: 588f addql #4,%sp rtems_filesystem_root = loc; 608a0: 4878 0014 pea 14 608a4: 486e ffec pea %fp@(-20) 608a8: 2079 0009 73bc moveal 973bc ,%a0 608ae: 41e8 0018 lea %a0@(24),%a0 608b2: 2f08 movel %a0,%sp@- 608b4: 4eb9 0007 9228 jsr 79228 return 0; 608ba: 4fef 000c lea %sp@(12),%sp 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 ); } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; 608be: 4281 clrl %d1 return 0; } 608c0: 246e ffe4 moveal %fp@(-28),%a2 608c4: 2001 movel %d1,%d0 608c6: 266e ffe8 moveal %fp@(-24),%a3 608ca: 4e5e unlk %fp 608cc: 4e75 rts ... 00048eb4 : #include int close( int fd ) { 48eb4: 4e56 0000 linkw %fp,#0 48eb8: 202e 0008 movel %fp@(8),%d0 48ebc: 2f0a movel %a2,%sp@- 48ebe: 2f02 movel %d2,%sp@- rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 48ec0: b0b9 0005 b684 cmpl 5b684 ,%d0 48ec6: 6416 bccs 48ede iop = rtems_libio_iop(fd); 48ec8: 2479 0005 cd84 moveal 5cd84 ,%a2 48ece: ed88 lsll #6,%d0 48ed0: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 48ed2: 202a 0014 movel %a2@(20),%d0 48ed6: 0280 0000 0100 andil #256,%d0 48edc: 6610 bnes 48eee 48ede: 4eb9 0004 cc6c jsr 4cc6c <__errno> 48ee4: 74ff moveq #-1,%d2 48ee6: 2040 moveal %d0,%a0 48ee8: 7009 moveq #9,%d0 48eea: 2080 movel %d0,%a0@ 48eec: 603a bras 48f28 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 48eee: 206a 003c moveal %a2@(60),%a0 48ef2: 2068 0004 moveal %a0@(4),%a0 48ef6: 4a88 tstl %a0 48ef8: 6604 bnes 48efe 48efa: 4282 clrl %d2 <== NOT EXECUTED 48efc: 6008 bras 48f06 <== NOT EXECUTED rc = (*iop->handlers->close_h)( iop ); 48efe: 2f0a movel %a2,%sp@- 48f00: 4e90 jsr %a0@ 48f02: 588f addql #4,%sp 48f04: 2400 movel %d0,%d2 rtems_filesystem_freenode( &iop->pathinfo ); 48f06: 206a 0024 moveal %a2@(36),%a0 48f0a: 4a88 tstl %a0 48f0c: 6710 beqs 48f1e 48f0e: 2068 001c moveal %a0@(28),%a0 48f12: 4a88 tstl %a0 48f14: 6708 beqs 48f1e 48f16: 486a 0018 pea %a2@(24) 48f1a: 4e90 jsr %a0@ 48f1c: 588f addql #4,%sp rtems_libio_free( iop ); 48f1e: 2f0a movel %a2,%sp@- 48f20: 4eb9 0004 927e jsr 4927e return rc; 48f26: 588f addql #4,%sp } 48f28: 2002 movel %d2,%d0 48f2a: 242e fff8 movel %fp@(-8),%d2 48f2e: 246e fffc moveal %fp@(-4),%a2 48f32: 4e5e unlk %fp 48f34: 4e75 rts 00048400 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 48400: 4e56 fff4 linkw %fp,#-12 48404: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 48408: 486e fff4 pea %fp@(-12) { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 4840c: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = 0; 48410: 42ae fff8 clrl %fp@(-8) args.mode = 0; 48414: 42ae fffc clrl %fp@(-4) status = rtems_io_close( 48418: 2f29 000c movel %a1@(12),%sp@- 4841c: 2f29 0008 movel %a1@(8),%sp@- rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 48420: 2d48 fff4 movel %a0,%fp@(-12) args.flags = 0; args.mode = 0; status = rtems_io_close( 48424: 4eb9 0004 97a0 jsr 497a0 np->major, np->minor, (void *) &args ); if ( status ) { 4842a: 4fef 000c lea %sp@(12),%sp 4842e: 4a80 tstl %d0 48430: 670a beqs 4843c return rtems_deviceio_errno(status); 48432: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48434: 4eb9 0004 84f0 jsr 484f0 <== NOT EXECUTED 4843a: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 4843c: 4e5e unlk %fp 4843e: 4e75 rts 00048452 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 48452: 4e56 ffe4 linkw %fp,#-28 48456: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 4845a: 246e 0014 moveal %fp@(20),%a2 4845e: 282e 0008 movel %fp@(8),%d4 48462: 262e 000c movel %fp@(12),%d3 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; 48466: 2652 moveal %a2@,%a3 if (!device_name_table) 48468: 4a8b tstl %a3 4846a: 670a beqs 48476 4846c: 4282 clrl %d2 for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 4846e: 4bf9 0004 c14c lea 4c14c ,%a5 48474: 6058 bras 484ce } /* 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 ); 48476: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 4847c: 740e moveq #14,%d2 <== NOT EXECUTED 4847e: 72ff moveq #-1,%d1 <== NOT EXECUTED 48480: 2040 moveal %d0,%a0 <== NOT EXECUTED 48482: 2082 movel %d2,%a0@ <== NOT EXECUTED 48484: 605e bras 484e4 <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 48486: 2853 moveal %a3@,%a4 48488: 4a8c tstl %a4 4848a: 673c beqs 484c8 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 4848c: 2f03 movel %d3,%sp@- 4848e: 2f0c movel %a4,%sp@- 48490: 2f04 movel %d4,%sp@- 48492: 4e95 jsr %a5@ 48494: 4fef 000c lea %sp@(12),%sp 48498: 4a80 tstl %d0 4849a: 662c bnes 484c8 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 4849c: 4a34 3800 tstb %a4@(00000000,%d3:l) 484a0: 6626 bnes 484c8 /* 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; 484a2: 2079 0005 9640 moveal 59640 ,%a0 484a8: 4281 clrl %d1 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; 484aa: 203c 0005 95f4 movel #366068,%d0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 484b0: 2568 0028 0010 movel %a0@(40),%a2@(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; 484b6: 41f9 0005 95ac lea 595ac ,%a0 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; 484bc: 2540 0008 movel %d0,%a2@(8) pathloc->ops = &devFS_ops; 484c0: 2548 000c movel %a0,%a2@(12) if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 484c4: 248b movel %a3,%a2@ pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 484c6: 601c bras 484e4 /* 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++) { 484c8: 5282 addql #1,%d2 484ca: 47eb 0014 lea %a3@(20),%a3 484ce: b4b9 0005 94c8 cmpl 594c8 ,%d2 484d4: 65b0 bcss 48486 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 484d6: 4eb9 0004 ae44 jsr 4ae44 <__errno> 484dc: 72ff moveq #-1,%d1 484de: 2040 moveal %d0,%a0 484e0: 7002 moveq #2,%d0 484e2: 2080 movel %d0,%a0@ } 484e4: 2001 movel %d1,%d0 484e6: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 484ec: 4e5e unlk %fp 484ee: 4e75 rts 00041c80 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 41c80: 4e56 0000 linkw %fp,#0 rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 41c84: 2039 0005 94c8 movel 594c8 ,%d0 41c8a: 2200 movel %d0,%d1 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 41c8c: 2f0a movel %a2,%sp@- 41c8e: 246e 0008 moveal %fp@(8),%a2 rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 41c92: e989 lsll #4,%d1 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 41c94: 2f02 movel %d2,%sp@- rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 41c96: 2041 moveal %d1,%a0 41c98: 4870 0c00 pea %a0@(00000000,%d0:l:4) 41c9c: 4eb9 0004 81ec jsr 481ec <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 41ca2: 588f addql #4,%sp ) { rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 41ca4: 2400 movel %d0,%d2 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 41ca6: 6610 bnes 41cb8 rtems_set_errno_and_return_minus_one( ENOMEM ); 41ca8: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 41cae: 720c moveq #12,%d1 <== NOT EXECUTED 41cb0: 2040 moveal %d0,%a0 <== NOT EXECUTED 41cb2: 70ff moveq #-1,%d0 <== NOT EXECUTED 41cb4: 2081 movel %d1,%a0@ <== NOT EXECUTED 41cb6: 6038 bras 41cf0 <== NOT EXECUTED memset( 41cb8: 2039 0005 94c8 movel 594c8 ,%d0 41cbe: 2200 movel %d0,%d1 41cc0: e989 lsll #4,%d1 41cc2: 2041 moveal %d1,%a0 41cc4: 4870 0c00 pea %a0@(00000000,%d0:l:4) 41cc8: 42a7 clrl %sp@- 41cca: 2f02 movel %d2,%sp@- 41ccc: 4eb9 0004 b694 jsr 4b694 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; return 0; 41cd2: 4fef 000c lea %sp@(12),%sp 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; 41cd6: 203c 0005 95f4 movel #366068,%d0 temp_mt_entry->mt_fs_root.ops = &devFS_ops; 41cdc: 41f9 0005 95ac lea 595ac ,%a0 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; 41ce2: 2540 0024 movel %d0,%a2@(36) 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; 41ce6: 4280 clrl %d0 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; 41ce8: 2548 0028 movel %a0,%a2@(40) /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; 41cec: 2542 001c movel %d2,%a2@(28) return 0; } 41cf0: 242e fff8 movel %fp@(-8),%d2 41cf4: 246e fffc moveal %fp@(-4),%a2 41cf8: 4e5e unlk %fp 41cfa: 4e75 rts 00041e30 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 41e30: 4e56 fff0 linkw %fp,#-16 41e34: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.command = command; args.buffer = buffer; status = rtems_io_control( 41e38: 486e fff0 pea %fp@(-16) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.command = command; 41e3c: 2d6e 000c fff4 movel %fp@(12),%fp@(-12) { rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 41e42: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.command = command; args.buffer = buffer; status = rtems_io_control( 41e46: 2f29 000c movel %a1@(12),%sp@- np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.command = command; args.buffer = buffer; 41e4a: 2d6e 0010 fff8 movel %fp@(16),%fp@(-8) status = rtems_io_control( 41e50: 2f29 0008 movel %a1@(8),%sp@- rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 41e54: 2d48 fff0 movel %a0,%fp@(-16) args.command = command; args.buffer = buffer; status = rtems_io_control( 41e58: 4eb9 0004 583c jsr 4583c np->major, np->minor, (void *) &args ); if ( status ) 41e5e: 4fef 000c lea %sp@(12),%sp 41e62: 4a80 tstl %d0 41e64: 670c beqs 41e72 return rtems_deviceio_errno(status); 41e66: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41e68: 4eb9 0004 84f0 jsr 484f0 <== NOT EXECUTED 41e6e: 588f addql #4,%sp <== NOT EXECUTED 41e70: 6004 bras 41e76 <== NOT EXECUTED return args.ioctl_return; 41e72: 202e fffc movel %fp@(-4),%d0 } 41e76: 4e5e unlk %fp 41e78: 4e75 rts ... 00041cfc : * 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') && 41cfc: 7264 moveq #100,%d1 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 41cfe: 4e56 ffdc linkw %fp,#-36 41d02: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@ 41d06: 246e 0008 moveal %fp@(8),%a2 * 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') && 41d0a: 1012 moveb %a2@,%d0 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 41d0c: 282e 000c movel %fp@(12),%d4 * 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') && 41d10: 49c0 extbl %d0 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 41d12: 2c2e 0010 movel %fp@(16),%d6 41d16: 2a2e 0014 movel %fp@(20),%d5 * 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') && 41d1a: b280 cmpl %d0,%d1 41d1c: 6628 bnes 41d46 41d1e: 123c 0065 moveb #101,%d1 41d22: 102a 0001 moveb %a2@(1),%d0 41d26: 49c0 extbl %d0 41d28: b280 cmpl %d0,%d1 41d2a: 661a bnes 41d46 (path[2] == 'v') && (path[3] == '\0')) 41d2c: 123c 0076 moveb #118,%d1 41d30: 102a 0002 moveb %a2@(2),%d0 41d34: 49c0 extbl %d0 41d36: b280 cmpl %d0,%d1 41d38: 660c bnes 41d46 41d3a: 4a2a 0003 tstb %a2@(3) 41d3e: 6606 bnes 41d46 41d40: 4201 clrb %d1 41d42: 6000 00d2 braw 41e16 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 41d46: 2004 movel %d4,%d0 41d48: 0280 0000 f000 andil #61440,%d0 41d4e: 0c80 0000 6000 cmpil #24576,%d0 41d54: 671a beqs 41d70 41d56: 0c80 0000 2000 cmpil #8192,%d0 41d5c: 6712 beqs 41d70 rtems_set_errno_and_return_minus_one( EINVAL ); 41d5e: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 41d64: 7816 moveq #22,%d4 <== NOT EXECUTED 41d66: 72ff moveq #-1,%d1 <== NOT EXECUTED 41d68: 2040 moveal %d0,%a0 <== NOT EXECUTED 41d6a: 2084 movel %d4,%a0@ <== NOT EXECUTED 41d6c: 6000 00a8 braw 41e16 <== NOT EXECUTED else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 41d70: 206e 0018 moveal %fp@(24),%a0 41d74: 2650 moveal %a0@,%a3 if (!device_name_table) 41d76: 4a8b tstl %a3 41d78: 670e beqs 41d88 41d7a: 284b moveal %a3,%a4 41d7c: 74ff moveq #-1,%d2 41d7e: 4283 clrl %d3 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) 41d80: 4bf9 0004 bc70 lea 4bc70 ,%a5 41d86: 6038 bras 41dc0 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 ); 41d88: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 41d8e: 760e moveq #14,%d3 <== NOT EXECUTED 41d90: 72ff moveq #-1,%d1 <== NOT EXECUTED 41d92: 2240 moveal %d0,%a1 <== NOT EXECUTED 41d94: 2283 movel %d3,%a1@ <== NOT EXECUTED 41d96: 607e bras 41e16 <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) 41d98: 2014 movel %a4@,%d0 41d9a: 671c beqs 41db8 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 41d9c: 2f00 movel %d0,%sp@- 41d9e: 2f0a movel %a2,%sp@- 41da0: 4e95 jsr %a5@ 41da2: 508f addql #8,%sp 41da4: 4a80 tstl %d0 41da6: 6612 bnes 41dba rtems_set_errno_and_return_minus_one( EEXIST ); 41da8: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 41dae: 7411 moveq #17,%d2 <== NOT EXECUTED 41db0: 72ff moveq #-1,%d1 <== NOT EXECUTED 41db2: 2040 moveal %d0,%a0 <== NOT EXECUTED 41db4: 2082 movel %d2,%a0@ <== NOT EXECUTED 41db6: 605e bras 41e16 <== NOT EXECUTED 41db8: 2403 movel %d3,%d2 /* 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++){ 41dba: 5283 addql #1,%d3 41dbc: 49ec 0014 lea %a4@(20),%a4 41dc0: b6b9 0005 94c8 cmpl 594c8 ,%d3 41dc6: 65d0 bcss 41d98 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 41dc8: 70ff moveq #-1,%d0 41dca: b082 cmpl %d2,%d0 41dcc: 6610 bnes 41dde rtems_set_errno_and_return_minus_one( ENOMEM ); 41dce: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 41dd4: 72ff moveq #-1,%d1 <== NOT EXECUTED 41dd6: 2040 moveal %d0,%a0 <== NOT EXECUTED 41dd8: 700c moveq #12,%d0 <== NOT EXECUTED 41dda: 2080 movel %d0,%a0@ <== NOT EXECUTED 41ddc: 6038 bras 41e16 <== NOT EXECUTED _ISR_Disable(level); 41dde: 203c 0000 0700 movel #1792,%d0 41de4: 40c3 movew %sr,%d3 41de6: 8083 orl %d3,%d0 41de8: 46c0 movew %d0,%sr device_name_table[slot].device_name = (char *)path; 41dea: 2002 movel %d2,%d0 41dec: e988 lsll #4,%d0 41dee: 2240 moveal %d0,%a1 41df0: 41f1 2c00 lea %a1@(00000000,%d2:l:4),%a0 41df4: d7c8 addal %a0,%a3 41df6: 268a movel %a2,%a3@ device_name_table[slot].device_name_length = strlen(path); 41df8: 2f0a movel %a2,%sp@- 41dfa: 4eb9 0004 c134 jsr 4c134 41e00: 588f addql #4,%sp device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 41e02: 2744 0010 movel %d4,%a3@(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); 41e06: 2740 0004 movel %d0,%a3@(4) device_name_table[slot].major = major; 41e0a: 2746 0008 movel %d6,%a3@(8) device_name_table[slot].minor = minor; 41e0e: 2745 000c movel %d5,%a3@(12) device_name_table[slot].mode = mode; _ISR_Enable(level); 41e12: 46c3 movew %d3,%sr 41e14: 4281 clrl %d1 return 0; } 41e16: 2001 movel %d1,%d0 41e18: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 41e1e: 4e5e unlk %fp 41e20: 4e75 rts ... 00041e7c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 41e7c: 4e56 fff4 linkw %fp,#-12 41e80: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 41e84: 486e fff4 pea %fp@(-12) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; 41e88: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 41e8e: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = iop->flags; args.mode = mode; 41e92: 2d6e 0014 fffc movel %fp@(20),%fp@(-4) status = rtems_io_open( 41e98: 2f29 000c movel %a1@(12),%sp@- 41e9c: 2f29 0008 movel %a1@(8),%sp@- rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 41ea0: 2d48 fff4 movel %a0,%fp@(-12) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 41ea4: 4eb9 0004 595c jsr 4595c np->major, np->minor, (void *) &args ); if ( status ) 41eaa: 4fef 000c lea %sp@(12),%sp 41eae: 4a80 tstl %d0 41eb0: 670a beqs 41ebc return rtems_deviceio_errno(status); 41eb2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41eb4: 4eb9 0004 84f0 jsr 484f0 <== NOT EXECUTED 41eba: 588f addql #4,%sp <== NOT EXECUTED return 0; } 41ebc: 4e5e unlk %fp 41ebe: 4e75 rts 00041ec0 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 41ec0: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 41ec4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 41ec8: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 41ecc: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) <== 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; 41ed2: 2268 0038 moveal %a0@(56),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; 41ed6: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 41edc: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 41ee2: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_read( 41ee6: 2f29 000c movel %a1@(12),%sp@- <== NOT EXECUTED 41eea: 2f29 0008 movel %a1@(8),%sp@- <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 41eee: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 41ef2: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 41ef6: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED args.offset = iop->offset; 41efa: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED 41efe: 2d41 ffec movel %d1,%fp@(-20) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 41f02: 4eb9 0004 59b4 jsr 459b4 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 41f08: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 41f0c: 4a80 tstl %d0 <== NOT EXECUTED 41f0e: 670c beqs 41f1c <== NOT EXECUTED return rtems_deviceio_errno(status); 41f10: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41f12: 4eb9 0004 84f0 jsr 484f0 <== NOT EXECUTED 41f18: 588f addql #4,%sp <== NOT EXECUTED 41f1a: 6004 bras 41f20 <== NOT EXECUTED return (ssize_t) args.bytes_moved; 41f1c: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 41f20: 4e5e unlk %fp <== NOT EXECUTED 41f22: 4e75 rts 00041f24 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 41f24: 4e56 0000 linkw %fp,#0 41f28: 206e 0008 moveal %fp@(8),%a0 41f2c: 226e 000c moveal %fp@(12),%a1 rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 41f30: 2050 moveal %a0@,%a0 if (!the_dev) 41f32: 4a88 tstl %a0 41f34: 6610 bnes 41f46 rtems_set_errno_and_return_minus_one( EFAULT ); 41f36: 4eb9 0004 ae44 jsr 4ae44 <__errno> <== NOT EXECUTED 41f3c: 720e moveq #14,%d1 <== NOT EXECUTED 41f3e: 2040 moveal %d0,%a0 <== NOT EXECUTED 41f40: 70ff moveq #-1,%d0 <== NOT EXECUTED 41f42: 2081 movel %d1,%a0@ <== NOT EXECUTED 41f44: 6016 bras 41f5c <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 41f46: 2228 000c movel %a0@(12),%d1 buf->st_mode = the_dev->mode; 41f4a: 4280 clrl %d0 41f4c: 2368 0010 000c movel %a0@(16),%a1@(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 ); 41f52: 2368 0008 0016 movel %a0@(8),%a1@(22) 41f58: 2341 001a movel %d1,%a1@(26) buf->st_mode = the_dev->mode; return 0; } 41f5c: 4e5e unlk %fp 41f5e: 4e75 rts 00041f60 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 41f60: 4e56 ffe4 linkw %fp,#-28 41f64: 206e 0008 moveal %fp@(8),%a0 args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 41f68: 486e ffe4 pea %fp@(-28) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 41f6c: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 41f72: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; 41f76: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 41f7c: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 41f82: 42ae fffc clrl %fp@(-4) status = rtems_io_write( 41f86: 2f29 000c movel %a1@(12),%sp@- 41f8a: 2f29 0008 movel %a1@(8),%sp@- rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 41f8e: 2028 000c movel %a0@(12),%d0 41f92: 2228 0010 movel %a0@(16),%d1 rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 41f96: 2d48 ffe4 movel %a0,%fp@(-28) args.offset = iop->offset; 41f9a: 2d40 ffe8 movel %d0,%fp@(-24) 41f9e: 2d41 ffec movel %d1,%fp@(-20) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 41fa2: 4eb9 0004 5a0c jsr 45a0c np->major, np->minor, (void *) &args ); if ( status ) 41fa8: 4fef 000c lea %sp@(12),%sp 41fac: 4a80 tstl %d0 41fae: 670c beqs 41fbc return rtems_deviceio_errno(status); 41fb0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41fb2: 4eb9 0004 84f0 jsr 484f0 <== NOT EXECUTED 41fb8: 588f addql #4,%sp <== NOT EXECUTED 41fba: 6004 bras 41fc0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; 41fbc: 202e fffc movel %fp@(-4),%d0 } 41fc0: 4e5e unlk %fp 41fc2: 4e75 rts 0004acdc : */ int device_close( rtems_libio_t *iop ) { 4acdc: 4e56 fff4 linkw %fp,#-12 4ace0: 226e 0008 moveal %fp@(8),%a1 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 4ace4: 486e fff4 pea %fp@(-12) { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4ace8: 2069 0038 moveal %a1@(56),%a0 args.iop = iop; 4acec: 2d49 fff4 movel %a1,%fp@(-12) args.flags = 0; 4acf0: 42ae fff8 clrl %fp@(-8) args.mode = 0; 4acf4: 42ae fffc clrl %fp@(-4) status = rtems_io_close( 4acf8: 2f28 0050 movel %a0@(80),%sp@- 4acfc: 2f28 004c movel %a0@(76),%sp@- 4ad00: 4eb9 0004 bfa4 jsr 4bfa4 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 4ad06: 4fef 000c lea %sp@(12),%sp 4ad0a: 4a80 tstl %d0 4ad0c: 670a beqs 4ad18 return rtems_deviceio_errno(status); 4ad0e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ad10: 4eb9 0004 c528 jsr 4c528 <== NOT EXECUTED 4ad16: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 4ad18: 4e5e unlk %fp 4ad1a: 4e75 rts 0004abca : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4abca: 4e56 fff0 linkw %fp,#-16 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; 4abce: 2d6e 0010 fff8 movel %fp@(16),%fp@(-8) the_jnode = iop->file_info; status = rtems_io_control( 4abd4: 486e fff0 pea %fp@(-16) int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4abd8: 226e 0008 moveal %fp@(8),%a1 rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; 4abdc: 2d6e 000c fff4 movel %fp@(12),%fp@(-12) args.buffer = buffer; the_jnode = iop->file_info; 4abe2: 2069 0038 moveal %a1@(56),%a0 { rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; 4abe6: 2d49 fff0 movel %a1,%fp@(-16) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4abea: 2f28 0050 movel %a0@(80),%sp@- 4abee: 2f28 004c movel %a0@(76),%sp@- 4abf2: 4eb9 0004 bffc jsr 4bffc the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4abf8: 4fef 000c lea %sp@(12),%sp 4abfc: 4a80 tstl %d0 4abfe: 670c beqs 4ac0c return rtems_deviceio_errno(status); 4ac00: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ac02: 4eb9 0004 c528 jsr 4c528 <== NOT EXECUTED 4ac08: 588f addql #4,%sp <== NOT EXECUTED 4ac0a: 6004 bras 4ac10 <== NOT EXECUTED return args.ioctl_return; 4ac0c: 202e fffc movel %fp@(-4),%d0 } 4ac10: 4e5e unlk %fp 4ac12: 4e75 rts 0004ad1c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4ad1c: 4e56 fff4 linkw %fp,#-12 4ad20: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4ad24: 486e fff4 pea %fp@(-12) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; 4ad28: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4ad2e: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = iop->flags; args.mode = mode; 4ad32: 2d6e 0014 fffc movel %fp@(20),%fp@(-4) rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4ad38: 2d48 fff4 movel %a0,%fp@(-12) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4ad3c: 2f29 0050 movel %a1@(80),%sp@- 4ad40: 2f29 004c movel %a1@(76),%sp@- 4ad44: 4eb9 0004 c054 jsr 4c054 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4ad4a: 4fef 000c lea %sp@(12),%sp 4ad4e: 4a80 tstl %d0 4ad50: 670a beqs 4ad5c return rtems_deviceio_errno(status); 4ad52: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ad54: 4eb9 0004 c528 jsr 4c528 <== NOT EXECUTED 4ad5a: 588f addql #4,%sp <== NOT EXECUTED return 0; } 4ad5c: 4e5e unlk %fp 4ad5e: 4e75 rts 0004ac78 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4ac78: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4ac7c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 4ac80: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 4ac84: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 4ac8a: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED args.count = count; 4ac90: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4ac96: 2268 0038 moveal %a0@(56),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4ac9a: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 4ac9e: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4aca2: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED args.offset = iop->offset; 4aca6: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED 4acaa: 2d41 ffec movel %d1,%fp@(-20) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4acae: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_read( 4acb2: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4acb6: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4acba: 4eb9 0004 c0ac jsr 4c0ac <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4acc0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4acc4: 4a80 tstl %d0 <== NOT EXECUTED 4acc6: 670c beqs 4acd4 <== NOT EXECUTED return rtems_deviceio_errno(status); 4acc8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4acca: 4eb9 0004 c528 jsr 4c528 <== NOT EXECUTED 4acd0: 588f addql #4,%sp <== NOT EXECUTED 4acd2: 6004 bras 4acd8 <== NOT EXECUTED return (ssize_t) args.bytes_moved; 4acd4: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4acd8: 4e5e unlk %fp <== NOT EXECUTED 4acda: 4e75 rts 0004ac14 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 4ac14: 4e56 ffe4 linkw %fp,#-28 4ac18: 206e 0008 moveal %fp@(8),%a0 args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 4ac1c: 486e ffe4 pea %fp@(-28) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 4ac20: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 4ac26: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) args.count = count; 4ac2c: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4ac32: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.offset = iop->offset; 4ac36: 2028 000c movel %a0@(12),%d0 4ac3a: 2228 0010 movel %a0@(16),%d1 rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4ac3e: 2d48 ffe4 movel %a0,%fp@(-28) args.offset = iop->offset; 4ac42: 2d40 ffe8 movel %d0,%fp@(-24) 4ac46: 2d41 ffec movel %d1,%fp@(-20) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4ac4a: 42ae fffc clrl %fp@(-4) status = rtems_io_write( 4ac4e: 2f29 0050 movel %a1@(80),%sp@- 4ac52: 2f29 004c movel %a1@(76),%sp@- 4ac56: 4eb9 0004 c104 jsr 4c104 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4ac5c: 4fef 000c lea %sp@(12),%sp 4ac60: 4a80 tstl %d0 4ac62: 670c beqs 4ac70 return rtems_deviceio_errno(status); 4ac64: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ac66: 4eb9 0004 c528 jsr 4c528 <== NOT EXECUTED 4ac6c: 588f addql #4,%sp <== NOT EXECUTED 4ac6e: 6004 bras 4ac74 <== NOT EXECUTED return (ssize_t) args.bytes_moved; 4ac70: 202e fffc movel %fp@(-4),%d0 } 4ac74: 4e5e unlk %fp 4ac76: 4e75 rts 00043a3a : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 43a3a: 4e56 fff4 linkw %fp,#-12 43a3e: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 43a42: 246e 0008 moveal %fp@(8),%a2 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 43a46: 4aaa 00b4 tstl %a2@(180) 43a4a: 674e beqs 43a9a rtems_interrupt_disable (level); 43a4c: 243c 0000 0700 movel #1792,%d2 43a52: 2202 movel %d2,%d1 43a54: 40c0 movew %sr,%d0 43a56: 8280 orl %d0,%d1 43a58: 46c1 movew %d1,%sr while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 43a5a: 47f9 0004 4f30 lea 44f30 ,%a3 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) { 43a60: 602a bras 43a8c tty->rawOutBufState = rob_wait; 43a62: 7202 moveq #2,%d1 43a64: 2541 0094 movel %d1,%a2@(148) rtems_interrupt_enable (level); 43a68: 46c0 movew %d0,%sr sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 43a6a: 42a7 clrl %sp@- 43a6c: 42a7 clrl %sp@- 43a6e: 2f2a 008c movel %a2@(140),%sp@- 43a72: 4e93 jsr %a3@ RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 43a74: 4fef 000c lea %sp@(12),%sp 43a78: 4a80 tstl %d0 43a7a: 6708 beqs 43a84 rtems_fatal_error_occurred (sc); 43a7c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43a7e: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED rtems_interrupt_disable (level); 43a84: 2202 movel %d2,%d1 43a86: 40c0 movew %sr,%d0 43a88: 8280 orl %d0,%d1 43a8a: 46c1 movew %d1,%sr 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) { 43a8c: 206a 0084 moveal %a2@(132),%a0 43a90: 222a 0080 movel %a2@(128),%d1 43a94: b288 cmpl %a0,%d1 43a96: 66ca bnes 43a62 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 43a98: 46c0 movew %d0,%sr } } 43a9a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 43aa0: 4e5e unlk %fp 43aa2: 4e75 rts 00042d1c : int dup2( int fildes, int fildes2 ) { 42d1c: 4e56 ffa8 linkw %fp,#-88 42d20: 48d7 041c moveml %d2-%d4/%a2,%sp@ /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 42d24: 280e movel %fp,%d4 42d26: 0684 ffff ffba addil #-70,%d4 42d2c: 45f9 0004 34c8 lea 434c8 ,%a2 42d32: 2f04 movel %d4,%sp@- int dup2( int fildes, int fildes2 ) { 42d34: 242e 0008 movel %fp@(8),%d2 42d38: 262e 000c movel %fp@(12),%d3 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 42d3c: 2f02 movel %d2,%sp@- 42d3e: 4e92 jsr %a2@ if ( status == -1 ) 42d40: 508f addql #8,%sp 42d42: 72ff moveq #-1,%d1 42d44: b280 cmpl %d0,%d1 42d46: 6720 beqs 42d68 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 42d48: 2f04 movel %d4,%sp@- 42d4a: 2f03 movel %d3,%sp@- 42d4c: 4e92 jsr %a2@ if ( status == -1 ) 42d4e: 508f addql #8,%sp 42d50: 72ff moveq #-1,%d1 42d52: b280 cmpl %d0,%d1 42d54: 6712 beqs 42d68 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 42d56: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42d58: 42a7 clrl %sp@- <== NOT EXECUTED 42d5a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42d5c: 4eb9 0004 3178 jsr 43178 <== NOT EXECUTED 42d62: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42d66: 6002 bras 42d6a <== NOT EXECUTED 42d68: 70ff moveq #-1,%d0 } 42d6a: 4cee 041c ffa8 moveml %fp@(-88),%d2-%d4/%a2 42d70: 4e5e unlk %fp 42d72: 4e75 rts 000435a0 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 435a0: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 435a4: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 435a8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 435ac: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 435b0: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 435b4: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 435ba: 1202 moveb %d2,%d1 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 435bc: 4a80 tstl %d0 <== NOT EXECUTED 435be: 674c beqs 4360c <== NOT EXECUTED 435c0: 4280 clrl %d0 <== NOT EXECUTED 435c2: 1002 moveb %d2,%d0 <== NOT EXECUTED 435c4: 2079 0005 b85c moveal 5b85c <__ctype_ptr__>,%a0 <== NOT EXECUTED 435ca: 1630 0801 moveb %a0@(00000001,%d0:l),%d3 <== NOT EXECUTED 435ce: 49c3 extbl %d3 <== NOT EXECUTED 435d0: 0803 0005 btst #5,%d3 <== NOT EXECUTED 435d4: 6736 beqs 4360c <== NOT EXECUTED 435d6: 7609 moveq #9,%d3 <== NOT EXECUTED 435d8: b680 cmpl %d0,%d3 <== NOT EXECUTED 435da: 6730 beqs 4360c <== NOT EXECUTED 435dc: 163c 000a moveb #10,%d3 <== NOT EXECUTED 435e0: b680 cmpl %d0,%d3 <== NOT EXECUTED 435e2: 6728 beqs 4360c <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 435e4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 435e6: 4878 0002 pea 2 <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 435ea: 7040 moveq #64,%d0 <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 435ec: 486e fffe pea %fp@(-2) <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 435f0: b182 eorl %d0,%d2 <== 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] = '^'; 435f2: 765e moveq #94,%d3 <== NOT EXECUTED echobuf[1] = c ^ 0x40; 435f4: 1d42 ffff moveb %d2,%fp@(-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] = '^'; 435f8: 1d43 fffe moveb %d3,%fp@(-2) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 435fc: 4eb9 0004 335e jsr 4335e <== 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')) { 43602: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; 43606: 54aa 0028 addql #2,%a2@(40) <== 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')) { 4360a: 6010 bras 4361c <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 4360c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4360e: 0281 0000 00ff andil #255,%d1 <== NOT EXECUTED 43614: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43616: 4eba fe40 jsr %pc@(43458 ) <== NOT EXECUTED 4361a: 508f addql #8,%sp <== NOT EXECUTED } } 4361c: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED 43622: 4e5e unlk %fp <== NOT EXECUTED 43624: 4e75 rts 00060c5c : fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { 60c5c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp != NULL) 60c60: 2039 0009 b4ee movel 9b4ee ,%d0 <== NOT EXECUTED 60c66: 670a beqs 60c72 <== NOT EXECUTED fclose(group_fp); 60c68: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60c6a: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED 60c70: 588f addql #4,%sp <== NOT EXECUTED } 60c72: 4e5e unlk %fp <== NOT EXECUTED 60c74: 4e75 rts 00060c76 : fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 60c76: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp != NULL) 60c7a: 2039 0009 b406 movel 9b406 ,%d0 <== NOT EXECUTED 60c80: 670a beqs 60c8c <== NOT EXECUTED fclose(passwd_fp); 60c82: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60c84: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED 60c8a: 588f addql #4,%sp <== NOT EXECUTED } 60c8c: 4e5e unlk %fp <== NOT EXECUTED 60c8e: 4e75 rts 00043626 : * 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) { 43626: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4362a: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 4362e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 43632: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED if (tty->ccount == 0) 43636: 4aaa 0020 tstl %a2@(32) <== NOT EXECUTED 4363a: 6700 0178 beqw 437b4 <== NOT EXECUTED return; if (lineFlag) { 4363e: 4a83 tstl %d3 <== NOT EXECUTED 43640: 6700 0162 beqw 437a4 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 43644: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED 43648: 44c0 movew %d0,%ccr <== NOT EXECUTED 4364a: 6b08 bmis 43654 <== NOT EXECUTED tty->ccount = 0; 4364c: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED return; 43650: 6000 0162 braw 437b4 <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { 43654: 0800 0004 btst #4,%d0 <== NOT EXECUTED 43658: 6600 014a bnew 437a4 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 4365c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4365e: 4280 clrl %d0 <== NOT EXECUTED 43660: 102a 0044 moveb %a2@(68),%d0 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; 43664: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 43668: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4366a: 4eba ff34 jsr %pc@(435a0 ) <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 4366e: 508f addql #8,%sp <== NOT EXECUTED 43670: 7020 moveq #32,%d0 <== NOT EXECUTED 43672: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 43676: 6700 013c beqw 437b4 <== NOT EXECUTED echo ('\n', tty); 4367a: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 4367e: 700a moveq #10,%d0 <== NOT EXECUTED 43680: 602c bras 436ae <== NOT EXECUTED return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 43682: 5388 subql #1,%a0 <== NOT EXECUTED 43684: 226a 001c moveal %a2@(28),%a1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 43688: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 4368c: 2548 0020 movel %a0,%a2@(32) <== NOT EXECUTED 43690: 1431 8800 moveb %a1@(00000000,%a0:l),%d2 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 43694: 44c0 movew %d0,%ccr <== NOT EXECUTED 43696: 6a00 0106 bplw 4379e <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 4369a: 4a83 tstl %d3 <== NOT EXECUTED 4369c: 6620 bnes 436be <== NOT EXECUTED 4369e: 0800 0004 btst #4,%d0 <== NOT EXECUTED 436a2: 661a bnes 436be <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 436a4: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 436a8: 4280 clrl %d0 <== NOT EXECUTED 436aa: 102a 0043 moveb %a2@(67),%d0 <== NOT EXECUTED 436ae: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } if (!lineFlag) break; } } 436b2: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 436b8: 4e5e unlk %fp <== 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); 436ba: 6000 fee4 braw 435a0 <== NOT EXECUTED 436be: 2279 0005 b85c moveal 5b85c <__ctype_ptr__>,%a1 <== NOT EXECUTED } else if (c == '\t') { 436c4: 7209 moveq #9,%d1 <== NOT EXECUTED 436c6: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED 436cc: b282 cmpl %d2,%d1 <== NOT EXECUTED 436ce: 6660 bnes 43730 <== NOT EXECUTED int col = tty->read_start_column; 436d0: 242a 002c movel %a2@(44),%d2 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 436d4: 4201 clrb %d1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 436d6: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 436dc: 602e bras 4370c <== NOT EXECUTED c = tty->cbuf[i++]; 436de: 286a 001c moveal %a2@(28),%a4 <== NOT EXECUTED if (c == '\t') { 436e2: 4284 clrl %d4 <== NOT EXECUTED 436e4: 1834 1800 moveb %a4@(00000000,%d1:l),%d4 <== NOT EXECUTED 436e8: 7a09 moveq #9,%d5 <== NOT EXECUTED 436ea: ba84 cmpl %d4,%d5 <== NOT EXECUTED 436ec: 6606 bnes 436f4 <== NOT EXECUTED col = (col | 7) + 1; 436ee: 7807 moveq #7,%d4 <== NOT EXECUTED 436f0: 8484 orl %d4,%d2 <== NOT EXECUTED 436f2: 6014 bras 43708 <== NOT EXECUTED } else if (iscntrl (c)) { 436f4: 1831 4801 moveb %a1@(00000001,%d4:l),%d4 <== NOT EXECUTED 436f8: 49c4 extbl %d4 <== NOT EXECUTED 436fa: 0804 0005 btst #5,%d4 <== NOT EXECUTED 436fe: 6708 beqs 43708 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 43700: 4a80 tstl %d0 <== NOT EXECUTED 43702: 6706 beqs 4370a <== NOT EXECUTED col += 2; 43704: 5482 addql #2,%d2 <== NOT EXECUTED 43706: 6002 bras 4370a <== NOT EXECUTED } else { col++; 43708: 5282 addql #1,%d2 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 4370a: 5281 addql #1,%d1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 4370c: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 4370e: 66ce bnes 436de <== NOT EXECUTED 43710: 6016 bras 43728 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 43712: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43714: 4878 0001 pea 1 <== NOT EXECUTED 43718: 4879 0005 a5cd pea 5a5cd <== NOT EXECUTED 4371e: 4e93 jsr %a3@ <== NOT EXECUTED tty->column--; 43720: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43724: 53aa 0028 subql #1,%a2@(40) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43728: b4aa 0028 cmpl %a2@(40),%d2 <== NOT EXECUTED 4372c: 6de4 blts 43712 <== NOT EXECUTED 4372e: 606e bras 4379e <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 43730: 5282 addql #1,%d2 <== NOT EXECUTED 43732: 1231 2800 moveb %a1@(00000000,%d2:l),%d1 <== NOT EXECUTED 43736: 49c1 extbl %d1 <== NOT EXECUTED 43738: 0801 0005 btst #5,%d1 <== NOT EXECUTED 4373c: 6724 beqs 43762 <== NOT EXECUTED 4373e: 0800 0009 btst #9,%d0 <== NOT EXECUTED 43742: 671e beqs 43762 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 43744: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43746: 4878 0003 pea 3 <== NOT EXECUTED 4374a: 4879 0005 a5cb pea 5a5cb <== NOT EXECUTED 43750: 4e93 jsr %a3@ <== NOT EXECUTED if (tty->column) 43752: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43756: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4375a: 6706 beqs 43762 <== NOT EXECUTED tty->column--; 4375c: 5380 subql #1,%d0 <== NOT EXECUTED 4375e: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 43762: 2079 0005 b85c moveal 5b85c <__ctype_ptr__>,%a0 <== NOT EXECUTED 43768: 1030 2800 moveb %a0@(00000000,%d2:l),%d0 <== NOT EXECUTED 4376c: 49c0 extbl %d0 <== NOT EXECUTED 4376e: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43772: 670c beqs 43780 <== NOT EXECUTED 43774: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED 43778: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED 4377e: 671e beqs 4379e <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 43780: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43782: 4878 0003 pea 3 <== NOT EXECUTED 43786: 4879 0005 a5cb pea 5a5cb <== NOT EXECUTED 4378c: 4e93 jsr %a3@ <== NOT EXECUTED if (tty->column) 4378e: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43792: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43796: 6706 beqs 4379e <== NOT EXECUTED tty->column--; 43798: 5380 subql #1,%d0 <== NOT EXECUTED 4379a: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } } } if (!lineFlag) 4379e: 4a83 tstl %d3 <== NOT EXECUTED 437a0: 6608 bnes 437aa <== NOT EXECUTED 437a2: 6010 bras 437b4 <== 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); 437a4: 47f9 0004 335e lea 4335e ,%a3 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 437aa: 206a 0020 moveal %a2@(32),%a0 <== NOT EXECUTED 437ae: 4a88 tstl %a0 <== NOT EXECUTED 437b0: 6600 fed0 bnew 43682 <== NOT EXECUTED } } if (!lineFlag) break; } } 437b4: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 437ba: 4e5e unlk %fp <== NOT EXECUTED 437bc: 4e75 rts 00070a44 : #include int fchdir( int fd ) { 70a44: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 70a48: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 70a4c: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 70a50: b8b9 0009 70b4 cmpl 970b4 ,%d4 <== NOT EXECUTED 70a56: 6414 bccs 70a6c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 70a58: 2079 0009 bd5c moveal 9bd5c ,%a0 <== NOT EXECUTED 70a5e: ed8c lsll #6,%d4 <== NOT EXECUTED 70a60: d1c4 addal %d4,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 70a62: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED 70a66: 0800 0008 btst #8,%d0 <== NOT EXECUTED 70a6a: 6612 bnes 70a7e <== NOT EXECUTED 70a6c: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 70a72: 7609 moveq #9,%d3 <== NOT EXECUTED 70a74: 72ff moveq #-1,%d1 <== NOT EXECUTED 70a76: 2040 moveal %d0,%a0 <== NOT EXECUTED 70a78: 2083 movel %d3,%a0@ <== NOT EXECUTED 70a7a: 6000 00fc braw 70b78 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 70a7e: 0800 0001 btst #1,%d0 <== NOT EXECUTED 70a82: 6612 bnes 70a96 <== NOT EXECUTED 70a84: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 70a8a: 7416 moveq #22,%d2 <== NOT EXECUTED 70a8c: 72ff moveq #-1,%d1 <== NOT EXECUTED 70a8e: 2040 moveal %d0,%a0 <== NOT EXECUTED 70a90: 2082 movel %d2,%a0@ <== NOT EXECUTED 70a92: 6000 00e4 braw 70b78 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 70a96: 2268 0024 moveal %a0@(36),%a1 <== NOT EXECUTED 70a9a: 4a89 tstl %a1 <== NOT EXECUTED 70a9c: 6708 beqs 70aa6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 70a9e: 2269 0010 moveal %a1@(16),%a1 <== NOT EXECUTED 70aa2: 4a89 tstl %a1 <== NOT EXECUTED 70aa4: 6614 bnes 70aba <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 70aa6: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 70aac: 72ff moveq #-1,%d1 <== NOT EXECUTED 70aae: 2040 moveal %d0,%a0 <== NOT EXECUTED 70ab0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 70ab6: 6000 00c0 braw 70b78 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 70aba: 2808 movel %a0,%d4 <== NOT EXECUTED 70abc: 0684 0000 0018 addil #24,%d4 <== NOT EXECUTED 70ac2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 70ac4: 4e91 jsr %a1@ <== NOT EXECUTED 70ac6: 588f addql #4,%sp <== NOT EXECUTED 70ac8: 7201 moveq #1,%d1 <== NOT EXECUTED 70aca: b280 cmpl %d0,%d1 <== NOT EXECUTED 70acc: 6712 beqs 70ae0 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 70ace: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 70ad4: 72ff moveq #-1,%d1 <== NOT EXECUTED 70ad6: 2040 moveal %d0,%a0 <== NOT EXECUTED 70ad8: 7014 moveq #20,%d0 <== NOT EXECUTED 70ada: 2080 movel %d0,%a0@ <== NOT EXECUTED 70adc: 6000 009a braw 70b78 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 70ae0: 4878 0014 pea 14 <== NOT EXECUTED 70ae4: 240e movel %fp,%d2 <== NOT EXECUTED 70ae6: 0682 ffff ffd8 addil #-40,%d2 <== NOT EXECUTED 70aec: 45f9 0007 9228 lea 79228 ,%a2 <== NOT EXECUTED 70af2: 2639 0009 73bc movel 973bc ,%d3 <== NOT EXECUTED 70af8: 5883 addql #4,%d3 <== NOT EXECUTED 70afa: 2f03 movel %d3,%sp@- <== NOT EXECUTED 70afc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 70afe: 4e92 jsr %a2@ <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 70b00: 4878 0014 pea 14 <== NOT EXECUTED 70b04: 2f04 movel %d4,%sp@- <== NOT EXECUTED 70b06: 2f03 movel %d3,%sp@- <== NOT EXECUTED 70b08: 4e92 jsr %a2@ <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 70b0a: 42a7 clrl %sp@- <== NOT EXECUTED 70b0c: 486e ffec pea %fp@(-20) <== NOT EXECUTED 70b10: 42a7 clrl %sp@- <== NOT EXECUTED 70b12: 4878 0001 pea 1 <== NOT EXECUTED 70b16: 4879 0009 0187 pea 90187 <== NOT EXECUTED 70b1c: 4eb9 0004 6576 jsr 46576 <== NOT EXECUTED 70b22: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 70b26: 4a80 tstl %d0 <== NOT EXECUTED 70b28: 671a beqs 70b44 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 70b2a: 4878 0014 pea 14 <== NOT EXECUTED 70b2e: 2039 0009 73bc movel 973bc ,%d0 <== NOT EXECUTED 70b34: 5880 addql #4,%d0 <== NOT EXECUTED 70b36: 2f02 movel %d2,%sp@- <== NOT EXECUTED 70b38: 2f00 movel %d0,%sp@- <== NOT EXECUTED 70b3a: 4e92 jsr %a2@ <== NOT EXECUTED return -1; 70b3c: 4fef 000c lea %sp@(12),%sp <== 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; 70b40: 72ff moveq #-1,%d1 <== NOT EXECUTED return -1; 70b42: 6034 bras 70b78 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 70b44: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 70b48: 4a88 tstl %a0 <== NOT EXECUTED 70b4a: 670e beqs 70b5a <== NOT EXECUTED 70b4c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 70b50: 4a88 tstl %a0 <== NOT EXECUTED 70b52: 6706 beqs 70b5a <== NOT EXECUTED 70b54: 2f02 movel %d2,%sp@- <== NOT EXECUTED 70b56: 4e90 jsr %a0@ <== NOT EXECUTED 70b58: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_current = loc; 70b5a: 4878 0014 pea 14 <== NOT EXECUTED 70b5e: 486e ffec pea %fp@(-20) <== NOT EXECUTED 70b62: 2239 0009 73bc movel 973bc ,%d1 <== NOT EXECUTED 70b68: 5881 addql #4,%d1 <== NOT EXECUTED 70b6a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 70b6c: 4eb9 0007 9228 jsr 79228 <== NOT EXECUTED return 0; 70b72: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; 70b76: 4281 clrl %d1 <== NOT EXECUTED return 0; } 70b78: 2001 movel %d1,%d0 <== NOT EXECUTED 70b7a: 4cee 041c ffc8 moveml %fp@(-56),%d2-%d4/%a2 <== NOT EXECUTED 70b80: 4e5e unlk %fp <== NOT EXECUTED 70b82: 4e75 rts 000608d0 : int fchmod( int fd, mode_t mode ) { 608d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 608d4: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 608d8: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 608dc: b0b9 0009 70b4 cmpl 970b4 ,%d0 <== NOT EXECUTED 608e2: 6414 bccs 608f8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 608e4: 2079 0009 bd5c moveal 9bd5c ,%a0 <== NOT EXECUTED 608ea: ed88 lsll #6,%d0 <== NOT EXECUTED 608ec: d1c0 addal %d0,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 608ee: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED 608f2: 0800 0008 btst #8,%d0 <== NOT EXECUTED 608f6: 660e bnes 60906 <== NOT EXECUTED 608f8: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 608fe: 7209 moveq #9,%d1 <== NOT EXECUTED 60900: 2040 moveal %d0,%a0 <== NOT EXECUTED 60902: 2081 movel %d1,%a0@ <== NOT EXECUTED 60904: 6044 bras 6094a <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 60906: 44c0 movew %d0,%ccr <== NOT EXECUTED 60908: 670e beqs 60918 <== NOT EXECUTED 6090a: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 60910: 2040 moveal %d0,%a0 <== NOT EXECUTED 60912: 7016 moveq #22,%d0 <== NOT EXECUTED 60914: 2080 movel %d0,%a0@ <== NOT EXECUTED 60916: 6032 bras 6094a <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 60918: 2268 003c moveal %a0@(60),%a1 <== NOT EXECUTED 6091c: 4aa9 001c tstl %a1@(28) <== NOT EXECUTED 60920: 6610 bnes 60932 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 60922: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 60928: 2040 moveal %d0,%a0 <== NOT EXECUTED 6092a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 60930: 6018 bras 6094a <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 60932: 2268 0020 moveal %a0@(32),%a1 <== NOT EXECUTED 60936: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 6093a: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 6093e: 2269 001c moveal %a1@(28),%a1 <== NOT EXECUTED 60942: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 60946: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 60948: 4ed1 jmp %a1@ <== NOT EXECUTED } 6094a: 70ff moveq #-1,%d0 <== NOT EXECUTED 6094c: 4e5e unlk %fp <== NOT EXECUTED 6094e: 4e75 rts 00060950 : int fchown( int fd, uid_t owner, gid_t group ) { 60950: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 60954: 302e 000e movew %fp@(14),%d0 <== NOT EXECUTED 60958: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6095a: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 6095e: 322e 0012 movew %fp@(18),%d1 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 60962: b4b9 0009 70b4 cmpl 970b4 ,%d2 <== NOT EXECUTED 60968: 6414 bccs 6097e <== NOT EXECUTED iop = rtems_libio_iop( fd ); 6096a: 2079 0009 bd5c moveal 9bd5c ,%a0 <== NOT EXECUTED 60970: ed8a lsll #6,%d2 <== NOT EXECUTED 60972: d1c2 addal %d2,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 60974: 2428 0014 movel %a0@(20),%d2 <== NOT EXECUTED 60978: 0802 0008 btst #8,%d2 <== NOT EXECUTED 6097c: 660e bnes 6098c <== NOT EXECUTED 6097e: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 60984: 7209 moveq #9,%d1 <== NOT EXECUTED 60986: 2040 moveal %d0,%a0 <== NOT EXECUTED 60988: 2081 movel %d1,%a0@ <== NOT EXECUTED 6098a: 6052 bras 609de <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 6098c: 44c2 movew %d2,%ccr <== NOT EXECUTED 6098e: 670e beqs 6099e <== NOT EXECUTED 60990: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 60996: 2040 moveal %d0,%a0 <== NOT EXECUTED 60998: 7016 moveq #22,%d0 <== NOT EXECUTED 6099a: 2080 movel %d0,%a0@ <== NOT EXECUTED 6099c: 6040 bras 609de <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 6099e: 2268 0024 moveal %a0@(36),%a1 <== NOT EXECUTED 609a2: 2269 0018 moveal %a1@(24),%a1 <== NOT EXECUTED 609a6: 4a89 tstl %a1 <== NOT EXECUTED 609a8: 6610 bnes 609ba <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 609aa: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 609b0: 2040 moveal %d0,%a0 <== NOT EXECUTED 609b2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 609b8: 6024 bras 609de <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 609ba: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 609be: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 609c4: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED } 609ca: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 609ce: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED 609d2: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED 609d6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } 609da: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 609dc: 4ed1 jmp %a1@ <== NOT EXECUTED } 609de: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 609e2: 70ff moveq #-1,%d0 <== NOT EXECUTED 609e4: 4e5e unlk %fp <== NOT EXECUTED 609e6: 4e75 rts 00070b84 : int fcntl( int fd, int cmd, ... ) { 70b84: 4e56 fff0 linkw %fp,#-16 70b88: 202e 0008 movel %fp@(8),%d0 #include #include /* sigh. for the mode bits for open/creat */ extern int open _PARAMS ((const char *, int, ...)); extern int creat _PARAMS ((const char *, mode_t)); extern int fcntl _PARAMS ((int, int, ...)); 70b8c: 41ee 0010 lea %fp@(16),%a0 70b90: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 70b94: 262e 000c movel %fp@(12),%d3 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 70b98: 2279 0009 70b4 moveal 970b4 ,%a1 70b9e: b3c0 cmpal %d0,%a1 70ba0: 6316 blss 70bb8 iop = rtems_libio_iop( fd ); 70ba2: 2239 0009 bd5c movel 9bd5c ,%d1 70ba8: 2441 moveal %d1,%a2 70baa: ed88 lsll #6,%d0 70bac: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 70bae: 202a 0014 movel %a2@(20),%d0 70bb2: 0800 0008 btst #8,%d0 70bb6: 6612 bnes 70bca 70bb8: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 70bbe: 74ff moveq #-1,%d2 <== NOT EXECUTED 70bc0: 7209 moveq #9,%d1 <== NOT EXECUTED 70bc2: 2040 moveal %d0,%a0 <== NOT EXECUTED 70bc4: 2081 movel %d1,%a0@ <== NOT EXECUTED 70bc6: 6000 011e braw 70ce6 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 70bca: 7409 moveq #9,%d2 70bcc: b483 cmpl %d3,%d2 70bce: 6500 00de bcsw 70cae 70bd2: 343b 3a08 movew %pc@(70bdc ,%d3:l:2),%d2 70bd6: 48c2 extl %d2 70bd8: 4efb 2802 jmp %pc@(70bdc ,%d2:l) 70bdc: 0014 024 <== NOT EXECUTED 70bde: 006e 0156 <== NOT EXECUTED 70be0: 007a 0172 <== NOT EXECUTED 70be2: 0092 00a0 00c0 oril #10485952,%d2 <== NOT EXECUTED 70be8: 00c0 bitrev %d0 <== NOT EXECUTED 70bea: 00c0 bitrev %d0 <== NOT EXECUTED 70bec: 00c0 bitrev %d0 <== NOT EXECUTED 70bee: 00c0 bitrev %d0 <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 70bf0: 2410 movel %a0@,%d2 if ( fd2 ) 70bf2: 6710 beqs 70c04 diop = rtems_libio_iop( fd2 ); 70bf4: b3c2 cmpal %d2,%a1 <== NOT EXECUTED 70bf6: 6204 bhis 70bfc <== NOT EXECUTED 70bf8: 97cb subal %a3,%a3 <== NOT EXECUTED 70bfa: 601a bras 70c16 <== NOT EXECUTED 70bfc: 2641 moveal %d1,%a3 <== NOT EXECUTED 70bfe: ed8a lsll #6,%d2 <== NOT EXECUTED 70c00: d7c2 addal %d2,%a3 <== NOT EXECUTED 70c02: 6012 bras 70c16 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 70c04: 4eb9 0004 6988 jsr 46988 70c0a: 2640 moveal %d0,%a3 if ( diop == 0 ) { 70c0c: 4a80 tstl %d0 70c0e: 6606 bnes 70c16 70c10: 74ff moveq #-1,%d2 <== NOT EXECUTED 70c12: 6000 00d2 braw 70ce6 <== NOT EXECUTED diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 70c16: 240b movel %a3,%d2 ret = -1; break; } } diop->handlers = iop->handlers; 70c18: 276a 003c 003c movel %a2@(60),%a3@(60) diop->file_info = iop->file_info; 70c1e: 276a 0038 0038 movel %a2@(56),%a3@(56) diop->flags = iop->flags; 70c24: 276a 0014 0014 movel %a2@(20),%a3@(20) diop->pathinfo = iop->pathinfo; 70c2a: 4878 0014 pea 14 70c2e: 486a 0018 pea %a2@(24) 70c32: 486b 0018 pea %a3@(24) 70c36: 4eb9 0007 9228 jsr 79228 ret = (int) (diop - rtems_libio_iops); 70c3c: 4fef 000c lea %sp@(12),%sp 70c40: 94b9 0009 bd5c subl 9bd5c ,%d2 70c46: ec82 asrl #6,%d2 70c48: 6074 bras 70cbe break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 70c4a: 2400 movel %d0,%d2 70c4c: 720b moveq #11,%d1 70c4e: e2aa lsrl %d1,%d2 70c50: 7001 moveq #1,%d0 70c52: c480 andl %d0,%d2 70c54: 606c bras 70cc2 * 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 ) ) 70c56: 4a90 tstl %a0@ 70c58: 6708 beqs 70c62 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 70c5a: 4282 clrl %d2 70c5c: 08c0 000b bset #11,%d0 70c60: 6006 bras 70c68 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 70c62: 4282 clrl %d2 <== NOT EXECUTED 70c64: 0880 000b bclr #11,%d0 <== NOT EXECUTED 70c68: 2540 0014 movel %d0,%a2@(20) 70c6c: 6054 bras 70cc2 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 70c6e: 2f00 movel %d0,%sp@- 70c70: 4eb9 0004 6800 jsr 46800 70c76: 588f addql #4,%sp 70c78: 2400 movel %d0,%d2 70c7a: 6042 bras 70cbe break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 70c7c: 2f10 movel %a0@,%sp@- /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 70c7e: 4282 clrl %d2 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 ) ); 70c80: 4eb9 0004 6a28 jsr 46a28 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 70c86: 222a 0014 movel %a2@(20),%d1 70c8a: 588f addql #4,%sp 70c8c: 0280 0000 0201 andil #513,%d0 70c92: 0281 ffff fdfe andil #-514,%d1 70c98: 8081 orl %d1,%d0 70c9a: 60cc bras 70c68 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 70c9c: 4eb9 0007 61f0 jsr 761f0 <__errno> 70ca2: 74ff moveq #-1,%d2 70ca4: 2040 moveal %d0,%a0 70ca6: 20bc 0000 0086 movel #134,%a0@ 70cac: 6038 bras 70ce6 ret = -1; break; default: errno = EINVAL; 70cae: 4eb9 0007 61f0 jsr 761f0 <__errno> 70cb4: 74ff moveq #-1,%d2 70cb6: 2040 moveal %d0,%a0 70cb8: 7016 moveq #22,%d0 70cba: 2080 movel %d0,%a0@ 70cbc: 6028 bras 70ce6 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 70cbe: 4a82 tstl %d2 70cc0: 6d24 blts 70ce6 if (iop->handlers->fcntl_h) { 70cc2: 206a 003c moveal %a2@(60),%a0 70cc6: 2068 0030 moveal %a0@(48),%a0 70cca: 4a88 tstl %a0 70ccc: 6718 beqs 70ce6 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 70cce: 2f0a movel %a2,%sp@- 70cd0: 2f03 movel %d3,%sp@- 70cd2: 4e90 jsr %a0@ if (err) { 70cd4: 508f addql #8,%sp * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); 70cd6: 2600 movel %d0,%d3 if (err) { 70cd8: 670c beqs 70ce6 errno = err; 70cda: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 70ce0: 74ff moveq #-1,%d2 <== NOT EXECUTED 70ce2: 2040 moveal %d0,%a0 <== NOT EXECUTED 70ce4: 2083 movel %d3,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 70ce6: 2002 movel %d2,%d0 70ce8: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 70cee: 4e5e unlk %fp 70cf0: 4e75 rts 0004b220 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b220: 4e56 ffd8 linkw %fp,#-40 4b224: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4b228: 42a7 clrl %sp@- */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b22a: 286e 0008 moveal %fp@(8),%a4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4b22e: 42a7 clrl %sp@- 4b230: 2f39 0005 c690 movel 5c690 ,%sp@- */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b236: 2a6e 000c moveal %fp@(12),%a5 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4b23a: 4eb9 0004 4f30 jsr 44f30 4b240: 4fef 000c lea %sp@(12),%sp 4b244: 4a80 tstl %d0 4b246: 6706 beqs 4b24e 4b248: 74fc moveq #-4,%d2 4b24a: 6000 034e braw 4b59a RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 4b24e: 2454 moveal %a4@,%a2 <== NOT EXECUTED if (pipe == NULL) { 4b250: 4a8a tstl %a2 <== NOT EXECUTED 4b252: 6600 016c bnew 4b3c0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 4b256: 4878 0034 pea 34 <== NOT EXECUTED 4b25a: 243c 0004 944c movel #300108,%d2 <== NOT EXECUTED 4b260: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b262: 4e90 jsr %a0@ <== NOT EXECUTED if (pipe == NULL) 4b264: 588f addql #4,%sp <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 4b266: 2640 moveal %d0,%a3 <== NOT EXECUTED 4b268: 2440 moveal %d0,%a2 <== NOT EXECUTED if (pipe == NULL) 4b26a: 4a80 tstl %d0 <== NOT EXECUTED 4b26c: 6606 bnes 4b274 <== NOT EXECUTED 4b26e: 74f4 moveq #-12,%d2 <== NOT EXECUTED 4b270: 6000 017e braw 4b3f0 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 4b274: 4878 0034 pea 34 <== NOT EXECUTED 4b278: 42a7 clrl %sp@- <== NOT EXECUTED 4b27a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b27c: 4eb9 0004 d4fc jsr 4d4fc <== NOT EXECUTED pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); 4b282: 4878 0200 pea 200 <== NOT EXECUTED pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 4b286: 203c 0000 0200 movel #512,%d0 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4b28c: 2042 moveal %d2,%a0 <== NOT EXECUTED pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 4b28e: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4b292: 4e90 jsr %a0@ <== NOT EXECUTED if (! pipe->Buffer) 4b294: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); 4b298: 2680 movel %d0,%a3@ <== NOT EXECUTED if (! pipe->Buffer) 4b29a: 6606 bnes 4b2a2 <== NOT EXECUTED 4b29c: 74f4 moveq #-12,%d2 <== NOT EXECUTED 4b29e: 6000 0116 braw 4b3b6 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 4b2a2: 486b 002c pea %a3@(44) <== NOT EXECUTED 4b2a6: 243c 0004 bc98 movel #310424,%d2 <== NOT EXECUTED 4b2ac: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b2ae: 1039 0005 b820 moveb 5b820 ,%d0 <== NOT EXECUTED 4b2b4: 42a7 clrl %sp@- <== NOT EXECUTED 4b2b6: 49c0 extbl %d0 <== NOT EXECUTED 4b2b8: 42a7 clrl %sp@- <== NOT EXECUTED 4b2ba: 0080 5049 7200 oril #1346990592,%d0 <== NOT EXECUTED 4b2c0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b2c2: 4e90 jsr %a0@ <== NOT EXECUTED 4b2c4: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b2c8: 4a80 tstl %d0 <== NOT EXECUTED 4b2ca: 6600 00de bnew 4b3aa <== 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( 4b2ce: 486b 0030 pea %a3@(48) <== NOT EXECUTED 4b2d2: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b2d4: 1039 0005 b820 moveb 5b820 ,%d0 <== NOT EXECUTED 4b2da: 42a7 clrl %sp@- <== NOT EXECUTED 4b2dc: 49c0 extbl %d0 <== NOT EXECUTED 4b2de: 42a7 clrl %sp@- <== NOT EXECUTED 4b2e0: 0080 5049 7700 oril #1346991872,%d0 <== NOT EXECUTED 4b2e6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b2e8: 4e90 jsr %a0@ <== NOT EXECUTED 4b2ea: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b2ee: 4a80 tstl %d0 <== NOT EXECUTED 4b2f0: 6600 00ac bnew 4b39e <== 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( 4b2f4: 486b 0028 pea %a3@(40) <== NOT EXECUTED 4b2f8: 1039 0005 b820 moveb 5b820 ,%d0 <== NOT EXECUTED 4b2fe: 42a7 clrl %sp@- <== NOT EXECUTED 4b300: 4878 0010 pea 10 <== NOT EXECUTED 4b304: 49c0 extbl %d0 <== NOT EXECUTED 4b306: 4878 0001 pea 1 <== NOT EXECUTED 4b30a: 0080 5049 7300 oril #1346990848,%d0 <== NOT EXECUTED 4b310: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b312: 4eb9 0004 4cf8 jsr 44cf8 <== NOT EXECUTED 4b318: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4b31c: 4a80 tstl %d0 <== NOT EXECUTED 4b31e: 6672 bnes 4b392 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 4b320: 260e movel %fp,%d3 <== NOT EXECUTED 4b322: 5183 subql #8,%d3 <== NOT EXECUTED 4b324: 243c 0004 64e8 movel #287976,%d2 <== NOT EXECUTED 4b32a: 2042 moveal %d2,%a0 <== NOT EXECUTED { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4b32c: 47f9 0004 6ce2 lea 46ce2 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED 4b332: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b334: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b338: 4879 0005 d778 pea 5d778 <_Barrier_Information> <== NOT EXECUTED 4b33e: 4e90 jsr %a0@ <== 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 4b340: 223c 1000 0000 movel #268435456,%d1 <== NOT EXECUTED 4b346: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b348: 83a8 004c orl %d1,%a0@(76) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4b34c: 4e93 jsr %a3@ <== NOT EXECUTED 4b34e: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b350: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b352: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b356: 4879 0005 d778 pea 5d778 <_Barrier_Information> <== NOT EXECUTED 4b35c: 4e90 jsr %a0@ <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 4b35e: 223c 1000 0000 movel #268435456,%d1 <== NOT EXECUTED 4b364: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b366: 83a8 004c orl %d1,%a0@(76) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4b36a: 4e93 jsr %a3@ <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 4b36c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4b370: 1039 0005 b820 moveb 5b820 ,%d0 <== NOT EXECUTED 4b376: 49c0 extbl %d0 <== NOT EXECUTED 4b378: 2200 movel %d0,%d1 <== NOT EXECUTED 4b37a: 5281 addql #1,%d1 <== NOT EXECUTED 4b37c: 13c1 0005 b820 moveb %d1,5b820 <== NOT EXECUTED 4b382: 727a moveq #122,%d1 <== NOT EXECUTED 4b384: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b386: 6638 bnes 4b3c0 <== NOT EXECUTED c = 'a'; 4b388: 7661 moveq #97,%d3 <== NOT EXECUTED 4b38a: 13c3 0005 b820 moveb %d3,5b820 <== NOT EXECUTED 4b390: 602e bras 4b3c0 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 4b392: 2f2b 0030 movel %a3@(48),%sp@- <== NOT EXECUTED 4b396: 4eb9 0004 bd4c jsr 4bd4c <== NOT EXECUTED 4b39c: 588f addql #4,%sp <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 4b39e: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED 4b3a2: 4eb9 0004 bd4c jsr 4bd4c <== NOT EXECUTED 4b3a8: 588f addql #4,%sp <== NOT EXECUTED err_rbar: free(pipe->Buffer); 4b3aa: 2f13 movel %a3@,%sp@- <== NOT EXECUTED 4b3ac: 74fc moveq #-4,%d2 <== NOT EXECUTED 4b3ae: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED 4b3b4: 588f addql #4,%sp <== NOT EXECUTED err_buf: free(pipe); 4b3b6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4b3b8: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED 4b3be: 602a bras 4b3ea <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4b3c0: 42a7 clrl %sp@- <== NOT EXECUTED 4b3c2: 42a7 clrl %sp@- <== NOT EXECUTED 4b3c4: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b3c8: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4b3ce: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b3d2: 4a80 tstl %d0 <== NOT EXECUTED 4b3d4: 6704 beqs 4b3da <== NOT EXECUTED 4b3d6: 74fc moveq #-4,%d2 <== NOT EXECUTED 4b3d8: 6002 bras 4b3dc <== NOT EXECUTED 4b3da: 4282 clrl %d2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4b3dc: 4a94 tstl %a4@ <== NOT EXECUTED 4b3de: 6610 bnes 4b3f0 <== NOT EXECUTED if (err) 4b3e0: 4a82 tstl %d2 <== NOT EXECUTED 4b3e2: 670a beqs 4b3ee <== NOT EXECUTED pipe_free(pipe); 4b3e4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b3e6: 4eba fd28 jsr %pc@(4b110 ) <== NOT EXECUTED 4b3ea: 588f addql #4,%sp <== NOT EXECUTED 4b3ec: 6002 bras 4b3f0 <== NOT EXECUTED else *pipep = pipe; 4b3ee: 288a movel %a2,%a4@ <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); 4b3f0: 2f39 0005 c690 movel 5c690 ,%sp@- <== NOT EXECUTED 4b3f6: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4b3fc: 588f addql #4,%sp <== NOT EXECUTED 4b3fe: 4a82 tstl %d2 <== NOT EXECUTED 4b400: 6600 0198 bnew 4b59a <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4b404: 222d 0014 movel %a5@(20),%d1 <== NOT EXECUTED 4b408: 7006 moveq #6,%d0 <== NOT EXECUTED 4b40a: 7604 moveq #4,%d3 <== NOT EXECUTED 4b40c: c081 andl %d1,%d0 <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 4b40e: 2454 moveal %a4@,%a2 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 4b410: b680 cmpl %d0,%d3 <== NOT EXECUTED 4b412: 6700 009a beqw 4b4ae <== NOT EXECUTED 4b416: 7206 moveq #6,%d1 <== NOT EXECUTED 4b418: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b41a: 6700 011a beqw 4b536 <== NOT EXECUTED 4b41e: 163c 0002 moveb #2,%d3 <== NOT EXECUTED 4b422: b680 cmpl %d0,%d3 <== NOT EXECUTED 4b424: 6600 0158 bnew 4b57e <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4b428: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4b42c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b42e: 5288 addql #1,%a0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4b430: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED if (pipe->Readers ++ == 0) 4b434: 2548 0010 movel %a0,%a2@(16) <== NOT EXECUTED 4b438: 4a80 tstl %d0 <== NOT EXECUTED 4b43a: 6610 bnes 4b44c <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4b43c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b440: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b444: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4b44a: 508f addql #8,%sp <== NOT EXECUTED if (pipe->Writers == 0) { 4b44c: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4b450: 6600 012c bnew 4b57e <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 4b454: 7001 moveq #1,%d0 <== NOT EXECUTED 4b456: c0ad 0014 andl %a5@(20),%d0 <== NOT EXECUTED 4b45a: 6600 0122 bnew 4b57e <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 4b45e: 2a2a 0024 movel %a2@(36),%d5 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 4b462: 47f9 0004 4f30 lea 44f30 ,%a3 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4b468: 283c 0004 5034 movel #282676,%d4 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4b46e: 263c 0004 be1c movel #310812,%d3 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4b474: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b478: 2044 moveal %d4,%a0 <== NOT EXECUTED 4b47a: 4e90 jsr %a0@ <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4b47c: 2043 moveal %d3,%a0 <== NOT EXECUTED 4b47e: 42a7 clrl %sp@- <== NOT EXECUTED 4b480: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b484: 4e90 jsr %a0@ <== NOT EXECUTED 4b486: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b48a: 4a80 tstl %d0 <== NOT EXECUTED 4b48c: 6600 00fe bnew 4b58c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4b490: 42a7 clrl %sp@- <== NOT EXECUTED 4b492: 42a7 clrl %sp@- <== NOT EXECUTED 4b494: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b498: 4e93 jsr %a3@ <== NOT EXECUTED 4b49a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b49e: 4a80 tstl %d0 <== NOT EXECUTED 4b4a0: 6600 00ea bnew 4b58c <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 4b4a4: baaa 0024 cmpl %a2@(36),%d5 <== NOT EXECUTED 4b4a8: 67ca beqs 4b474 <== NOT EXECUTED 4b4aa: 6000 00d2 braw 4b57e <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 4b4ae: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b4b2: 660c bnes 4b4c0 <== NOT EXECUTED 4b4b4: 0801 0000 btst #0,%d1 <== NOT EXECUTED 4b4b8: 6706 beqs 4b4c0 <== NOT EXECUTED 4b4ba: 74fa moveq #-6,%d2 <== NOT EXECUTED 4b4bc: 6000 00d0 braw 4b58e <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4b4c0: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 4b4c4: 2200 movel %d0,%d1 <== NOT EXECUTED 4b4c6: 5281 addql #1,%d1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4b4c8: 52aa 0024 addql #1,%a2@(36) <== NOT EXECUTED if (pipe->Writers ++ == 0) 4b4cc: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED 4b4d0: 4a80 tstl %d0 <== NOT EXECUTED 4b4d2: 6610 bnes 4b4e4 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b4d4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b4d8: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b4dc: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4b4e2: 508f addql #8,%sp <== NOT EXECUTED if (pipe->Readers == 0) { 4b4e4: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b4e8: 6600 0094 bnew 4b57e <== NOT EXECUTED prevCounter = pipe->readerCounter; 4b4ec: 2a2a 0020 movel %a2@(32),%d5 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 4b4f0: 47f9 0004 4f30 lea 44f30 ,%a3 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 4b4f6: 283c 0004 5034 movel #282676,%d4 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4b4fc: 263c 0004 be1c movel #310812,%d3 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 4b502: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b506: 2044 moveal %d4,%a0 <== NOT EXECUTED 4b508: 4e90 jsr %a0@ <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4b50a: 2043 moveal %d3,%a0 <== NOT EXECUTED 4b50c: 42a7 clrl %sp@- <== NOT EXECUTED 4b50e: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b512: 4e90 jsr %a0@ <== NOT EXECUTED 4b514: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b518: 4a80 tstl %d0 <== NOT EXECUTED 4b51a: 6670 bnes 4b58c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4b51c: 42a7 clrl %sp@- <== NOT EXECUTED 4b51e: 42a7 clrl %sp@- <== NOT EXECUTED 4b520: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b524: 4e93 jsr %a3@ <== NOT EXECUTED 4b526: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b52a: 4a80 tstl %d0 <== NOT EXECUTED 4b52c: 665e bnes 4b58c <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 4b52e: baaa 0020 cmpl %a2@(32),%d5 <== NOT EXECUTED 4b532: 67ce beqs 4b502 <== NOT EXECUTED 4b534: 6048 bras 4b57e <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4b536: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4b53a: 2200 movel %d0,%d1 <== NOT EXECUTED 4b53c: 5281 addql #1,%d1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4b53e: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED if (pipe->Readers ++ == 0) 4b542: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED 4b546: 4a80 tstl %d0 <== NOT EXECUTED 4b548: 6610 bnes 4b55a <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4b54a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b54e: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b552: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4b558: 508f addql #8,%sp <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4b55a: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 4b55e: 2600 movel %d0,%d3 <== NOT EXECUTED 4b560: 5283 addql #1,%d3 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 4b562: 52aa 0024 addql #1,%a2@(36) <== NOT EXECUTED if (pipe->Writers ++ == 0) 4b566: 2543 0014 movel %d3,%a2@(20) <== NOT EXECUTED 4b56a: 4a80 tstl %d0 <== NOT EXECUTED 4b56c: 6610 bnes 4b57e <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b56e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b572: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b576: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4b57c: 508f addql #8,%sp <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 4b57e: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b582: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return 0; 4b588: 588f addql #4,%sp <== NOT EXECUTED 4b58a: 600e bras 4b59a <== NOT EXECUTED 4b58c: 74fc moveq #-4,%d2 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 4b58e: 2f0d movel %a5,%sp@- <== NOT EXECUTED 4b590: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4b592: 4eb9 0004 b158 jsr 4b158 <== NOT EXECUTED return err; 4b598: 508f addql #8,%sp <== NOT EXECUTED } 4b59a: 2002 movel %d2,%d0 4b59c: 4cee 3c3c ffd8 moveml %fp@(-40),%d2-%d5/%a2-%a5 4b5a2: 4e5e unlk %fp 4b5a4: 4e75 rts ... 00049674 : bool file_systems_below_this_mountpoint( const char *path __attribute__((unused)), rtems_filesystem_location_info_t *fs_root_loc, rtems_filesystem_mount_table_entry_t *fs_to_unmount __attribute__((unused)) ) { 49674: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49678: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4967c: 2079 0009 bda0 moveal 9bda0 ,%a0 <== NOT EXECUTED 49682: 6010 bras 49694 <== 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 ) { 49684: 2029 0010 movel %a1@(16),%d0 <== NOT EXECUTED 49688: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 4968c: 6604 bnes 49692 <== NOT EXECUTED 4968e: 7001 moveq #1,%d0 <== NOT EXECUTED 49690: 600c bras 4969e <== 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 ) { 49692: 2050 moveal %a0@,%a0 <== NOT EXECUTED 49694: b1fc 0009 bda4 cmpal #638372,%a0 <== NOT EXECUTED 4969a: 66e8 bnes 49684 <== NOT EXECUTED 4969c: 4200 clrb %d0 <== NOT EXECUTED return true; } } return false; } 4969e: 4e5e unlk %fp <== NOT EXECUTED 496a0: 4e75 rts 00043378 : long fpathconf( int fd, int name ) { 43378: 4e56 0000 linkw %fp,#0 4337c: 222e 0008 movel %fp@(8),%d1 43380: 202e 000c movel %fp@(12),%d0 long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 43384: b2b9 0005 f044 cmpl 5f044 ,%d1 4338a: 6414 bccs 433a0 iop = rtems_libio_iop(fd); 4338c: 2079 0006 0748 moveal 60748 ,%a0 43392: ed89 lsll #6,%d1 43394: d1c1 addal %d1,%a0 rtems_libio_check_is_open(iop); 43396: 2228 0014 movel %a0@(20),%d1 4339a: 0801 0008 btst #8,%d1 4339e: 6612 bnes 433b2 433a0: 4eb9 0004 f044 jsr 4f044 <__errno> 433a6: 72ff moveq #-1,%d1 433a8: 2040 moveal %d0,%a0 433aa: 7009 moveq #9,%d0 433ac: 2080 movel %d0,%a0@ 433ae: 6000 008a braw 4343a rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 433b2: 0801 0001 btst #1,%d1 433b6: 6774 beqs 4342c /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 433b8: 2068 0028 moveal %a0@(40),%a0 switch ( name ) { 433bc: 720b moveq #11,%d1 433be: b280 cmpl %d0,%d1 433c0: 656a bcss 4342c 433c2: 303b 0a08 movew %pc@(433cc ,%d0:l:2),%d0 433c6: 48c0 extl %d0 433c8: 4efb 0802 jmp %pc@(433cc ,%d0:l) 433cc: 0018 030 <== NOT EXECUTED 433ce: 001e 036 <== NOT EXECUTED 433d0: 0024 044 <== NOT EXECUTED 433d2: 002a 052 <== NOT EXECUTED 433d4: 0030 060 <== NOT EXECUTED 433d6: 0036 066 <== NOT EXECUTED 433d8: 003c 074 <== NOT EXECUTED 433da: 0042 0102 <== NOT EXECUTED 433dc: 0048 0110 <== NOT EXECUTED 433de: 004e 0116 <== NOT EXECUTED 433e0: 0054 0124 <== NOT EXECUTED 433e2: 005a 0132 <== NOT EXECUTED case _PC_LINK_MAX: return_value = the_limits->link_max; 433e4: 2228 0038 movel %a0@(56),%d1 break; 433e8: 6050 bras 4343a case _PC_MAX_CANON: return_value = the_limits->max_canon; 433ea: 2228 003c movel %a0@(60),%d1 break; 433ee: 604a bras 4343a case _PC_MAX_INPUT: return_value = the_limits->max_input; 433f0: 2228 0040 movel %a0@(64),%d1 break; 433f4: 6044 bras 4343a case _PC_NAME_MAX: return_value = the_limits->name_max; 433f6: 2228 0044 movel %a0@(68),%d1 break; 433fa: 603e bras 4343a case _PC_PATH_MAX: return_value = the_limits->path_max; 433fc: 2228 0048 movel %a0@(72),%d1 break; 43400: 6038 bras 4343a case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 43402: 2228 004c movel %a0@(76),%d1 break; 43406: 6032 bras 4343a case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 43408: 2228 0054 movel %a0@(84),%d1 break; 4340c: 602c bras 4343a case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 4340e: 2228 0058 movel %a0@(88),%d1 break; 43412: 6026 bras 4343a case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 43414: 2228 0064 movel %a0@(100),%d1 break; 43418: 6020 bras 4343a case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 4341a: 2228 0050 movel %a0@(80),%d1 break; 4341e: 601a bras 4343a case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 43420: 2228 005c movel %a0@(92),%d1 break; 43424: 6014 bras 4343a case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 43426: 2228 0060 movel %a0@(96),%d1 break; 4342a: 600e bras 4343a default: rtems_set_errno_and_return_minus_one( EINVAL ); 4342c: 4eb9 0004 f044 jsr 4f044 <__errno> 43432: 72ff moveq #-1,%d1 43434: 2040 moveal %d0,%a0 43436: 7016 moveq #22,%d0 43438: 2080 movel %d0,%a0@ break; } return return_value; } 4343a: 2001 movel %d1,%d0 4343c: 4e5e unlk %fp 4343e: 4e75 rts 00048f48 : void free( void *ptr ) { MSBUMP(free_calls, 1); 48f48: 4e56 0000 linkw %fp,#0 48f4c: 52b9 0005 cd9c addql #1,5cd9c 48f52: 2f02 movel %d2,%sp@- 48f54: 242e 0008 movel %fp@(8),%d2 if ( !ptr ) 48f58: 676c beqs 48fc6 /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 48f5a: 7003 moveq #3,%d0 48f5c: b0b9 0005 d06c cmpl 5d06c <_System_state_Current>,%d0 48f62: 661a bnes 48f7e 48f64: 4eb9 0004 93bc jsr 493bc 48f6a: 4a00 tstb %d0 48f6c: 6610 bnes 48f7e !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 48f6e: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 48f72: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 48f76: 4e5e unlk %fp <== 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); 48f78: 4ef9 0004 93fa jmp 493fa <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 48f7e: 2079 0005 bd16 moveal 5bd16 ,%a0 48f84: 4a88 tstl %a0 48f86: 670a beqs 48f92 (*rtems_malloc_statistics_helpers->at_free)(ptr); 48f88: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48f8a: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED 48f8e: 4e90 jsr %a0@ <== NOT EXECUTED 48f90: 588f addql #4,%sp <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 48f92: 2f02 movel %d2,%sp@- 48f94: 2f39 0005 b690 movel 5b690 ,%sp@- 48f9a: 4eb9 0004 a6d0 jsr 4a6d0 <_Protected_heap_Free> 48fa0: 508f addql #8,%sp 48fa2: 4a00 tstb %d0 48fa4: 6620 bnes 48fc6 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end 48fa6: 2079 0005 b690 moveal 5b690 ,%a0 <== 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", 48fac: 2f28 001c movel %a0@(28),%sp@- <== NOT EXECUTED 48fb0: 2f28 0018 movel %a0@(24),%sp@- <== NOT EXECUTED 48fb4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48fb6: 4879 0005 a920 pea 5a920 <== NOT EXECUTED 48fbc: 4eb9 0004 2d30 jsr 42d30 <== NOT EXECUTED 48fc2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 48fc6: 242e fffc movel %fp@(-4),%d2 48fca: 4e5e unlk %fp 48fcc: 4e75 rts ... 00061a2c : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 61a2c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61a30: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61a32: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 61a36: b5fc 0009 bdb8 cmpal #638392,%a2 <== NOT EXECUTED 61a3c: 6740 beqs 61a7e <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 61a3e: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED 61a42: 4a88 tstl %a0 <== NOT EXECUTED 61a44: 6710 beqs 61a56 <== NOT EXECUTED 61a46: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61a4a: 4a88 tstl %a0 <== NOT EXECUTED 61a4c: 6708 beqs 61a56 <== NOT EXECUTED 61a4e: 486a 0004 pea %a2@(4) <== NOT EXECUTED 61a52: 4e90 jsr %a0@ <== NOT EXECUTED 61a54: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 61a56: 206a 0024 moveal %a2@(36),%a0 <== NOT EXECUTED 61a5a: 4a88 tstl %a0 <== NOT EXECUTED 61a5c: 6710 beqs 61a6e <== NOT EXECUTED 61a5e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61a62: 4a88 tstl %a0 <== NOT EXECUTED 61a64: 6708 beqs 61a6e <== NOT EXECUTED 61a66: 486a 0018 pea %a2@(24) <== NOT EXECUTED 61a6a: 4e90 jsr %a0@ <== NOT EXECUTED 61a6c: 588f addql #4,%sp <== NOT EXECUTED free(env); 61a6e: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 61a72: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 61a76: 4e5e unlk %fp <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 61a78: 4ef9 0004 6640 jmp 46640 <== NOT EXECUTED } } 61a7e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 61a82: 4e5e unlk %fp <== NOT EXECUTED 61a84: 4e75 rts 0005945c : int fstat( int fd, struct stat *sbuf ) { 5945c: 4e56 0000 linkw %fp,#0 59460: 202e 0008 movel %fp@(8),%d0 59464: 2f0a movel %a2,%sp@- 59466: 2f02 movel %d2,%sp@- 59468: 242e 000c movel %fp@(12),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 5946c: 660e bnes 5947c rtems_set_errno_and_return_minus_one( EFAULT ); 5946e: 4eb9 0004 cc6c jsr 4cc6c <__errno> 59474: 720e moveq #14,%d1 59476: 2040 moveal %d0,%a0 59478: 2081 movel %d1,%a0@ 5947a: 607c bras 594f8 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 5947c: b0b9 0005 b684 cmpl 5b684 ,%d0 59482: 641e bccs 594a2 59484: 2479 0005 cd84 moveal 5cd84 ,%a2 5948a: ed88 lsll #6,%d0 5948c: d5c0 addal %d0,%a2 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 5948e: 202a 0014 movel %a2@(20),%d0 59492: 0280 0000 0100 andil #256,%d0 59498: 6708 beqs 594a2 if ( !iop->handlers ) 5949a: 206a 003c moveal %a2@(60),%a0 5949e: 4a88 tstl %a0 594a0: 660e bnes 594b0 rtems_set_errno_and_return_minus_one( EBADF ); 594a2: 4eb9 0004 cc6c jsr 4cc6c <__errno> 594a8: 2040 moveal %d0,%a0 594aa: 7009 moveq #9,%d0 594ac: 2080 movel %d0,%a0@ 594ae: 6048 bras 594f8 if ( !iop->handlers->fstat_h ) 594b0: 4aa8 0018 tstl %a0@(24) 594b4: 6610 bnes 594c6 rtems_set_errno_and_return_minus_one( ENOTSUP ); 594b6: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 594bc: 2040 moveal %d0,%a0 <== NOT EXECUTED 594be: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 594c4: 6032 bras 594f8 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 594c6: 4878 0046 pea 46 594ca: 42a7 clrl %sp@- 594cc: 2f02 movel %d2,%sp@- 594ce: 4eb9 0004 d4fc jsr 4d4fc return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 594d4: 206a 003c moveal %a2@(60),%a0 594d8: 45ea 0018 lea %a2@(24),%a2 594dc: 4fef 000c lea %sp@(12),%sp 594e0: 2d42 000c movel %d2,%fp@(12) } 594e4: 242e fff8 movel %fp@(-8),%d2 * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 594e8: 2d4a 0008 movel %a2,%fp@(8) } 594ec: 246e fffc moveal %fp@(-4),%a2 594f0: 4e5e unlk %fp * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 594f2: 2268 0018 moveal %a0@(24),%a1 594f6: 4ed1 jmp %a1@ } 594f8: 242e fff8 movel %fp@(-8),%d2 594fc: 70ff moveq #-1,%d0 594fe: 246e fffc moveal %fp@(-4),%a2 59502: 4e5e unlk %fp 59504: 4e75 rts 00060aac : #include int fsync( int fd ) { 60aac: 4e56 0000 linkw %fp,#0 60ab0: 202e 0008 movel %fp@(8),%d0 rtems_libio_t *iop; rtems_libio_check_fd( fd ); 60ab4: b0b9 0009 70b4 cmpl 970b4 ,%d0 60aba: 642e bccs 60aea iop = rtems_libio_iop( fd ); 60abc: 2079 0009 bd5c moveal 9bd5c ,%a0 60ac2: ed88 lsll #6,%d0 60ac4: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 60ac6: 2028 0014 movel %a0@(20),%d0 60aca: 0800 0008 btst #8,%d0 60ace: 671a beqs 60aea rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 60ad0: 44c0 movew %d0,%ccr 60ad2: 670e beqs 60ae2 60ad4: 4eb9 0007 61f0 jsr 761f0 <__errno> 60ada: 7216 moveq #22,%d1 60adc: 2040 moveal %d0,%a0 60ade: 2081 movel %d1,%a0@ 60ae0: 6036 bras 60b18 /* * Now process the fsync(). */ if ( !iop->handlers ) 60ae2: 2268 003c moveal %a0@(60),%a1 60ae6: 4a89 tstl %a1 60ae8: 660e bnes 60af8 rtems_set_errno_and_return_minus_one( EBADF ); 60aea: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 60af0: 2040 moveal %d0,%a0 <== NOT EXECUTED 60af2: 7009 moveq #9,%d0 <== NOT EXECUTED 60af4: 2080 movel %d0,%a0@ <== NOT EXECUTED 60af6: 6020 bras 60b18 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 60af8: 2269 0028 moveal %a1@(40),%a1 60afc: 4a89 tstl %a1 60afe: 6610 bnes 60b10 rtems_set_errno_and_return_minus_one( ENOTSUP ); 60b00: 4eb9 0007 61f0 jsr 761f0 <__errno> 60b06: 2040 moveal %d0,%a0 60b08: 20bc 0000 0086 movel #134,%a0@ 60b0e: 6008 bras 60b18 return (*iop->handlers->fsync_h)( iop ); 60b10: 2d48 0008 movel %a0,%fp@(8) } 60b14: 4e5e unlk %fp rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 60b16: 4ed1 jmp %a1@ } 60b18: 70ff moveq #-1,%d0 60b1a: 4e5e unlk %fp 60b1c: 4e75 rts ... 00048fd0 : int ftruncate( int fd, off_t length ) { 48fd0: 4e56 ffec linkw %fp,#-20 48fd4: 202e 0008 movel %fp@(8),%d0 48fd8: 2f0a movel %a2,%sp@- 48fda: 2f02 movel %d2,%sp@- rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 48fdc: b0b9 0005 b684 cmpl 5b684 ,%d0 48fe2: 6416 bccs 48ffa iop = rtems_libio_iop( fd ); 48fe4: 2479 0005 cd84 moveal 5cd84 ,%a2 48fea: ed88 lsll #6,%d0 48fec: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 48fee: 202a 0014 movel %a2@(20),%d0 48ff2: 0280 0000 0100 andil #256,%d0 48ff8: 6612 bnes 4900c 48ffa: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 49000: 72ff moveq #-1,%d1 <== NOT EXECUTED 49002: 2040 moveal %d0,%a0 <== NOT EXECUTED 49004: 7009 moveq #9,%d0 <== NOT EXECUTED 49006: 2080 movel %d0,%a0@ <== NOT EXECUTED 49008: 6000 008e braw 49098 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4900c: 4878 0014 pea 14 49010: 240e movel %fp,%d2 49012: 486a 0018 pea %a2@(24) 49016: 0682 ffff ffec addil #-20,%d2 4901c: 2f02 movel %d2,%sp@- 4901e: 4eb9 0004 d48c jsr 4d48c if ( !loc.ops->node_type_h ) 49024: 206e fff8 moveal %fp@(-8),%a0 49028: 4fef 000c lea %sp@(12),%sp 4902c: 2068 0010 moveal %a0@(16),%a0 49030: 4a88 tstl %a0 49032: 6740 beqs 49074 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 49034: 2f02 movel %d2,%sp@- 49036: 4e90 jsr %a0@ 49038: 588f addql #4,%sp 4903a: 7201 moveq #1,%d1 4903c: b280 cmpl %d0,%d1 4903e: 6610 bnes 49050 rtems_set_errno_and_return_minus_one( EISDIR ); 49040: 4eb9 0004 cc6c jsr 4cc6c <__errno> 49046: 7415 moveq #21,%d2 49048: 72ff moveq #-1,%d1 4904a: 2040 moveal %d0,%a0 4904c: 2082 movel %d2,%a0@ 4904e: 6048 bras 49098 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 49050: 7004 moveq #4,%d0 49052: c0aa 0014 andl %a2@(20),%d0 49056: 6610 bnes 49068 49058: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4905e: 72ff moveq #-1,%d1 <== NOT EXECUTED 49060: 2040 moveal %d0,%a0 <== NOT EXECUTED 49062: 7016 moveq #22,%d0 <== NOT EXECUTED 49064: 2080 movel %d0,%a0@ <== NOT EXECUTED 49066: 6030 bras 49098 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 49068: 206a 003c moveal %a2@(60),%a0 4906c: 2068 0020 moveal %a0@(32),%a0 49070: 4a88 tstl %a0 49072: 6612 bnes 49086 rtems_set_errno_and_return_minus_one( ENOTSUP ); 49074: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4907a: 72ff moveq #-1,%d1 <== NOT EXECUTED 4907c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4907e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 49084: 6012 bras 49098 <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); 49086: 2f2e 0010 movel %fp@(16),%sp@- 4908a: 2f2e 000c movel %fp@(12),%sp@- 4908e: 2f0a movel %a2,%sp@- 49090: 4e90 jsr %a0@ 49092: 4fef 000c lea %sp@(12),%sp 49096: 2200 movel %d0,%d1 } 49098: 242e ffe4 movel %fp@(-28),%d2 4909c: 2001 movel %d1,%d0 4909e: 246e ffe8 moveal %fp@(-24),%a2 490a2: 4e5e unlk %fp 490a4: 4e75 rts ... 0008d120 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 8d120: 4e56 ffec linkw %fp,#-20 8d124: 202e 0008 movel %fp@(8),%d0 8d128: 2f0a movel %a2,%sp@- 8d12a: 2f02 movel %d2,%sp@- /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 8d12c: b0b9 0009 70b4 cmpl 970b4 ,%d0 8d132: 6504 bcss 8d138 8d134: 95ca subal %a2,%a2 <== NOT EXECUTED 8d136: 600a bras 8d142 <== NOT EXECUTED 8d138: 2479 0009 bd5c moveal 9bd5c ,%a2 8d13e: ed88 lsll #6,%d0 8d140: d5c0 addal %d0,%a2 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 8d142: 4878 0014 pea 14 8d146: 240e movel %fp,%d2 8d148: 486a 0018 pea %a2@(24) 8d14c: 0682 ffff ffec addil #-20,%d2 8d152: 2f02 movel %d2,%sp@- 8d154: 4eb9 0007 9228 jsr 79228 if ( !loc.ops->node_type_h ) 8d15a: 206e fff8 moveal %fp@(-8),%a0 8d15e: 4fef 000c lea %sp@(12),%sp 8d162: 2068 0010 moveal %a0@(16),%a0 8d166: 4a88 tstl %a0 8d168: 6728 beqs 8d192 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 8d16a: 2f02 movel %d2,%sp@- 8d16c: 4e90 jsr %a0@ 8d16e: 588f addql #4,%sp 8d170: 7201 moveq #1,%d1 8d172: b280 cmpl %d0,%d1 8d174: 6710 beqs 8d186 rtems_set_errno_and_return_minus_one( ENOTDIR ); 8d176: 4eb9 0007 61f0 jsr 761f0 <__errno> 8d17c: 72ff moveq #-1,%d1 8d17e: 2040 moveal %d0,%a0 8d180: 7014 moveq #20,%d0 8d182: 2080 movel %d0,%a0@ 8d184: 6030 bras 8d1b6 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 8d186: 206a 003c moveal %a2@(60),%a0 8d18a: 2068 0008 moveal %a0@(8),%a0 8d18e: 4a88 tstl %a0 8d190: 6612 bnes 8d1a4 rtems_set_errno_and_return_minus_one( ENOTSUP ); 8d192: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 8d198: 72ff moveq #-1,%d1 <== NOT EXECUTED 8d19a: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d19c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 8d1a2: 6012 bras 8d1b6 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 8d1a4: 2f2e 0010 movel %fp@(16),%sp@- 8d1a8: 2f2e 000c movel %fp@(12),%sp@- 8d1ac: 2f0a movel %a2,%sp@- 8d1ae: 4e90 jsr %a0@ 8d1b0: 4fef 000c lea %sp@(12),%sp 8d1b4: 2200 movel %d0,%d1 } 8d1b6: 242e ffe4 movel %fp@(-28),%d2 8d1ba: 2001 movel %d1,%d0 8d1bc: 246e ffe8 moveal %fp@(-24),%a2 8d1c0: 4e5e unlk %fp 8d1c2: 4e75 rts 00060c20 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 60c20: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 60c24: 2079 0009 73bc moveal 973bc ,%a0 <== NOT EXECUTED return _POSIX_types_Gid; } 60c2a: 4e5e unlk %fp <== NOT EXECUTED 60c2c: 3028 0034 movew %a0@(52),%d0 <== NOT EXECUTED 60c30: 4e75 rts 0006114a : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 6114a: 4e56 ffe0 linkw %fp,#-32 6114e: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 61152: 262e 0008 movel %fp@(8),%d3 61156: 282e 000c movel %fp@(12),%d4 6115a: 246e 0010 moveal %fp@(16),%a2 6115e: 2a2e 0014 movel %fp@(20),%d5 61162: 2c2e 0018 movel %fp@(24),%d6 FILE *fp; int match; init_etc_passwd_group(); 61166: 4eb9 0006 1030 jsr 61030 if ((fp = fopen("/etc/group", "r")) == NULL) { 6116c: 4879 0008 f907 pea 8f907 61172: 4879 0008 e015 pea 8e015 <_rodata_start+0x845> 61178: 4eb9 0007 6b94 jsr 76b94 6117e: 508f addql #8,%sp 61180: 2400 movel %d0,%d2 61182: 6610 bnes 61194 errno = EINVAL; 61184: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 6118a: 7216 moveq #22,%d1 <== NOT EXECUTED 6118c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6118e: 70ff moveq #-1,%d0 <== NOT EXECUTED 61190: 2081 movel %d1,%a0@ <== NOT EXECUTED return -1; 61192: 606a bras 611fe <== NOT EXECUTED } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 61194: 49fa fc3c lea %pc@(60dd2 ),%a4 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 61198: 47f9 0007 bd20 lea 7bd20 ,%a3 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 6119e: 2f06 movel %d6,%sp@- 611a0: 2f05 movel %d5,%sp@- 611a2: 2f0a movel %a2,%sp@- 611a4: 2f02 movel %d2,%sp@- 611a6: 4e94 jsr %a4@ 611a8: 4fef 0010 lea %sp@(16),%sp 611ac: 4a80 tstl %d0 611ae: 661a bnes 611ca errno = EINVAL; 611b0: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 611b6: 2040 moveal %d0,%a0 <== NOT EXECUTED 611b8: 7016 moveq #22,%d0 <== NOT EXECUTED 611ba: 2080 movel %d0,%a0@ <== NOT EXECUTED fclose(fp); 611bc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 611be: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED return -1; 611c4: 588f addql #4,%sp <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); 611c6: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; 611c8: 6034 bras 611fe <== NOT EXECUTED } if (name) { 611ca: 4a83 tstl %d3 611cc: 670e beqs 611dc match = (strcmp(grp->gr_name, name) == 0); 611ce: 2f03 movel %d3,%sp@- 611d0: 2f12 movel %a2@,%sp@- 611d2: 4e93 jsr %a3@ 611d4: 508f addql #8,%sp 611d6: 4a80 tstl %d0 611d8: 57c0 seq %d0 611da: 600a bras 611e6 } else { match = (grp->gr_gid == gid); 611dc: 4280 clrl %d0 <== NOT EXECUTED 611de: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 611e2: b880 cmpl %d0,%d4 <== NOT EXECUTED 611e4: 57c0 seq %d0 <== NOT EXECUTED 611e6: 49c0 extbl %d0 611e8: 4480 negl %d0 } if (match) { 611ea: 67b2 beqs 6119e fclose(fp); 611ec: 2f02 movel %d2,%sp@- 611ee: 4eb9 0007 632e jsr 7632e *result = grp; 611f4: 206e 001c moveal %fp@(28),%a0 return 0; 611f8: 588f addql #4,%sp else { match = (grp->gr_gid == gid); } if (match) { fclose(fp); *result = grp; 611fa: 4280 clrl %d0 611fc: 208a movel %a2,%a0@ } } fclose(fp); errno = EINVAL; return -1; } 611fe: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 61204: 4e5e unlk %fp 61206: 4e75 rts 00060ed8 : return NULL; return p; } struct group *getgrent(void) { 60ed8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp == NULL) 60edc: 2039 0009 b4ee movel 9b4ee ,%d0 <== NOT EXECUTED 60ee2: 6724 beqs 60f08 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 60ee4: 4878 00c8 pea c8 <== NOT EXECUTED 60ee8: 4879 0009 b4f2 pea 9b4f2 <== NOT EXECUTED 60eee: 4879 0009 b5ba pea 9b5ba <== NOT EXECUTED 60ef4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60ef6: 4eba feda jsr %pc@(60dd2 ) <== NOT EXECUTED 60efa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 60efe: 223c 0009 b5ba movel #636346,%d1 <== NOT EXECUTED 60f04: 4a80 tstl %d0 <== NOT EXECUTED 60f06: 6602 bnes 60f0a <== NOT EXECUTED 60f08: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &grent; } 60f0a: 2001 movel %d1,%d0 <== NOT EXECUTED 60f0c: 4e5e unlk %fp <== NOT EXECUTED 60f0e: 4e75 rts 0006122e : gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 6122e: 4280 clrl %d0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 61230: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 61234: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 61238: 486e fffc pea %fp@(-4) <== NOT EXECUTED 6123c: 4878 00c8 pea c8 <== NOT EXECUTED 61240: 4879 0009 b4f2 pea 9b4f2 <== NOT EXECUTED 61246: 4879 0009 b5ba pea 9b5ba <== NOT EXECUTED 6124c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6124e: 4eb9 0006 1208 jsr 61208 <== NOT EXECUTED 61254: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61258: 4a80 tstl %d0 <== NOT EXECUTED 6125a: 6704 beqs 61260 <== NOT EXECUTED 6125c: 4280 clrl %d0 <== NOT EXECUTED 6125e: 6004 bras 61264 <== NOT EXECUTED return NULL; return p; 61260: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 61264: 4e5e unlk %fp <== NOT EXECUTED 61266: 4e75 rts 00061208 : char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result); 61208: 4280 clrl %d0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 6120a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 6120e: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 61212: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 61216: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 6121a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 6121e: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 61222: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61224: 42a7 clrl %sp@- <== NOT EXECUTED 61226: 4eba ff22 jsr %pc@(6114a ) <== NOT EXECUTED } 6122a: 4e5e unlk %fp <== NOT EXECUTED 6122c: 4e75 rts 0006128a : struct group *getgrnam( const char *name ) { 6128a: 4e56 fffc linkw %fp,#-4 struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 6128e: 486e fffc pea %fp@(-4) 61292: 4878 00c8 pea c8 61296: 4879 0009 b4f2 pea 9b4f2 6129c: 4879 0009 b5ba pea 9b5ba 612a2: 2f2e 0008 movel %fp@(8),%sp@- 612a6: 4eb9 0006 1268 jsr 61268 612ac: 4fef 0014 lea %sp@(20),%sp 612b0: 4a80 tstl %d0 612b2: 6704 beqs 612b8 612b4: 4280 clrl %d0 <== NOT EXECUTED 612b6: 6004 bras 612bc <== NOT EXECUTED return NULL; return p; 612b8: 202e fffc movel %fp@(-4),%d0 } 612bc: 4e5e unlk %fp 612be: 4e75 rts 000612fa : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 612fa: 4e56 ffe0 linkw %fp,#-32 612fe: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 61302: 262e 0008 movel %fp@(8),%d3 61306: 282e 000c movel %fp@(12),%d4 6130a: 246e 0010 moveal %fp@(16),%a2 6130e: 2a2e 0014 movel %fp@(20),%d5 61312: 2c2e 0018 movel %fp@(24),%d6 FILE *fp; int match; init_etc_passwd_group(); 61316: 4eb9 0006 1030 jsr 61030 if ((fp = fopen("/etc/passwd", "r")) == NULL) { 6131c: 4879 0008 f907 pea 8f907 61322: 4879 0008 dfd0 pea 8dfd0 <_rodata_start+0x800> 61328: 4eb9 0007 6b94 jsr 76b94 6132e: 508f addql #8,%sp 61330: 2400 movel %d0,%d2 61332: 6610 bnes 61344 errno = EINVAL; 61334: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 6133a: 7816 moveq #22,%d4 <== NOT EXECUTED 6133c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6133e: 70ff moveq #-1,%d0 <== NOT EXECUTED 61340: 2084 movel %d4,%a0@ <== NOT EXECUTED return -1; 61342: 606a bras 613ae <== NOT EXECUTED } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 61344: 49fa fbca lea %pc@(60f10 ),%a4 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 61348: 47f9 0007 bd20 lea 7bd20 ,%a3 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 6134e: 2f06 movel %d6,%sp@- 61350: 2f05 movel %d5,%sp@- 61352: 2f0a movel %a2,%sp@- 61354: 2f02 movel %d2,%sp@- 61356: 4e94 jsr %a4@ 61358: 4fef 0010 lea %sp@(16),%sp 6135c: 4a80 tstl %d0 6135e: 661a bnes 6137a errno = EINVAL; 61360: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 61366: 7616 moveq #22,%d3 <== NOT EXECUTED 61368: 2040 moveal %d0,%a0 <== NOT EXECUTED 6136a: 2083 movel %d3,%a0@ <== NOT EXECUTED fclose(fp); 6136c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6136e: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED return -1; 61374: 588f addql #4,%sp <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); 61376: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; 61378: 6034 bras 613ae <== NOT EXECUTED } if (name) { 6137a: 4a83 tstl %d3 6137c: 670e beqs 6138c match = (strcmp(pwd->pw_name, name) == 0); 6137e: 2f03 movel %d3,%sp@- 61380: 2f12 movel %a2@,%sp@- 61382: 4e93 jsr %a3@ 61384: 508f addql #8,%sp 61386: 4a80 tstl %d0 61388: 57c0 seq %d0 6138a: 600a bras 61396 } else { match = (pwd->pw_uid == uid); 6138c: 4280 clrl %d0 <== NOT EXECUTED 6138e: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 61392: b880 cmpl %d0,%d4 <== NOT EXECUTED 61394: 57c0 seq %d0 <== NOT EXECUTED 61396: 49c0 extbl %d0 61398: 4480 negl %d0 } if (match) { 6139a: 67b2 beqs 6134e fclose(fp); 6139c: 2f02 movel %d2,%sp@- 6139e: 4eb9 0007 632e jsr 7632e *result = pwd; 613a4: 206e 001c moveal %fp@(28),%a0 return 0; 613a8: 588f addql #4,%sp else { match = (pwd->pw_uid == uid); } if (match) { fclose(fp); *result = pwd; 613aa: 4280 clrl %d0 613ac: 208a movel %a2,%a0@ } } fclose(fp); errno = EINVAL; return -1; } 613ae: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 613b4: 4e5e unlk %fp 613b6: 4e75 rts 00060ff8 : return NULL; return p; } struct passwd *getpwent(void) { 60ff8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp == NULL) 60ffc: 2039 0009 b406 movel 9b406 ,%d0 <== NOT EXECUTED 61002: 6724 beqs 61028 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 61004: 4878 00c8 pea c8 <== NOT EXECUTED 61008: 4879 0009 b40a pea 9b40a <== NOT EXECUTED 6100e: 4879 0009 b4d2 pea 9b4d2 <== NOT EXECUTED 61014: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61016: 4eba fef8 jsr %pc@(60f10 ) <== NOT EXECUTED 6101a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 6101e: 223c 0009 b4d2 movel #636114,%d1 <== NOT EXECUTED 61024: 4a80 tstl %d0 <== NOT EXECUTED 61026: 6602 bnes 6102a <== NOT EXECUTED 61028: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &pwent; } 6102a: 2001 movel %d1,%d0 <== NOT EXECUTED 6102c: 4e5e unlk %fp <== NOT EXECUTED 6102e: 4e75 rts 0006143a : struct passwd *getpwnam( const char *name ) { 6143a: 4e56 fffc linkw %fp,#-4 struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 6143e: 486e fffc pea %fp@(-4) 61442: 4878 00c8 pea c8 61446: 4879 0009 b40a pea 9b40a 6144c: 4879 0009 b4d2 pea 9b4d2 61452: 2f2e 0008 movel %fp@(8),%sp@- 61456: 4eb9 0006 1418 jsr 61418 6145c: 4fef 0014 lea %sp@(20),%sp 61460: 4a80 tstl %d0 61462: 6704 beqs 61468 61464: 4280 clrl %d0 <== NOT EXECUTED 61466: 6004 bras 6146c <== NOT EXECUTED return NULL; return p; 61468: 202e fffc movel %fp@(-4),%d0 } 6146c: 4e5e unlk %fp 6146e: 4e75 rts 000613de : uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 613de: 4280 clrl %d0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 613e0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 613e4: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 613e8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 613ec: 4878 00c8 pea c8 <== NOT EXECUTED 613f0: 4879 0009 b40a pea 9b40a <== NOT EXECUTED 613f6: 4879 0009 b4d2 pea 9b4d2 <== NOT EXECUTED 613fc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 613fe: 4eb9 0006 13b8 jsr 613b8 <== NOT EXECUTED 61404: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61408: 4a80 tstl %d0 <== NOT EXECUTED 6140a: 6704 beqs 61410 <== NOT EXECUTED 6140c: 4280 clrl %d0 <== NOT EXECUTED 6140e: 6004 bras 61414 <== NOT EXECUTED return NULL; return p; 61410: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 61414: 4e5e unlk %fp <== NOT EXECUTED 61416: 4e75 rts 000613b8 : char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 613b8: 4280 clrl %d0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 613ba: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 613be: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 613c2: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 613c6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 613ca: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 613ce: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 613d2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 613d4: 42a7 clrl %sp@- <== NOT EXECUTED 613d6: 4eba ff22 jsr %pc@(612fa ) <== NOT EXECUTED } 613da: 4e5e unlk %fp <== NOT EXECUTED 613dc: 4e75 rts 000490d0 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 490d0: 4e56 ffec linkw %fp,#-20 490d4: 48d7 040c moveml %d2-%d3/%a2,%sp@ 490d8: 246e 0008 moveal %fp@(8),%a2 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 490dc: 4a8a tstl %a2 490de: 6610 bnes 490f0 errno = EFAULT; 490e0: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 490e6: 720e moveq #14,%d1 <== NOT EXECUTED 490e8: 2040 moveal %d0,%a0 <== NOT EXECUTED 490ea: 70ff moveq #-1,%d0 <== NOT EXECUTED 490ec: 2081 movel %d1,%a0@ <== NOT EXECUTED return -1; 490ee: 6032 bras 49122 <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 490f0: 203c 0000 0700 movel #1792,%d0 490f6: 40c2 movew %sr,%d2 490f8: 8082 orl %d2,%d0 490fa: 46c0 movew %d0,%sr _TOD_Get( &now ); 490fc: 486e fff8 pea %fp@(-8) 49100: 4eb9 0004 a2d0 jsr 4a2d0 <_TOD_Get> _ISR_Enable(level); 49106: 46c2 movew %d2,%sr useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 49108: 263c 0000 03e8 movel #1000,%d3 * Timezone information ignored by the OS proper. Per email * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; 4910e: 588f addql #4,%sp 49110: 4280 clrl %d0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 49112: 222e fffc movel %fp@(-4),%d1 useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 49116: 4c43 1801 remsl %d3,%d1,%d1 4911a: 2541 0004 movel %d1,%a2@(4) _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 4911e: 24ae fff8 movel %fp@(-8),%a2@ } 49122: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 49128: 4e5e unlk %fp 4912a: 4e75 rts 0004674c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 4674c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46750: 2079 0009 73bc moveal 973bc ,%a0 <== NOT EXECUTED return _POSIX_types_Uid; } 46756: 4e5e unlk %fp <== NOT EXECUTED 46758: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED 4675c: 4e75 rts 00050634 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 50634: 7001 moveq #1,%d0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 50636: 4e56 0000 linkw %fp,#0 5063a: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 5063e: 2268 0038 moveal %a0@(56),%a1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 50642: 2f02 movel %d2,%sp@- IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 50644: b0a9 0048 cmpl %a1@(72),%d0 50648: 6704 beqs 5064e 5064a: 70ff moveq #-1,%d0 <== NOT EXECUTED 5064c: 600e bras 5065c <== NOT EXECUTED if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 5064e: 4280 clrl %d0 50650: 4281 clrl %d1 50652: 4282 clrl %d2 50654: 2141 000c movel %d1,%a0@(12) 50658: 2142 0010 movel %d2,%a0@(16) return 0; } 5065c: 241f movel %sp@+,%d2 5065e: 4e5e unlk %fp 50660: 4e75 rts 00050788 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 50788: 4e56 fff8 linkw %fp,#-8 5078c: 2f0b movel %a3,%sp@- 5078e: 266e 000c moveal %fp@(12),%a3 50792: 2f0a movel %a2,%sp@- IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 50794: 2453 moveal %a3@,%a2 50796: 200a movel %a2,%d0 50798: 0680 0000 0050 addil #80,%d0 5079e: b0aa 004c cmpl %a2@(76),%d0 507a2: 6712 beqs 507b6 /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) rtems_set_errno_and_return_minus_one( ENOTEMPTY ); 507a4: 4eb9 0005 167c jsr 5167c <__errno> 507aa: 72ff moveq #-1,%d1 507ac: 2040 moveal %d0,%a0 507ae: 705a moveq #90,%d0 507b0: 2080 movel %d0,%a0@ 507b2: 6000 0086 braw 5083a /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 507b6: 206b 0010 moveal %a3@(16),%a0 507ba: b5e8 001c cmpal %a0@(28),%a2 507be: 6706 beqs 507c6 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 507c0: 4aaa 0058 tstl %a2@(88) 507c4: 6710 beqs 507d6 rtems_set_errno_and_return_minus_one( EBUSY ); 507c6: 4eb9 0005 167c jsr 5167c <__errno> 507cc: 72ff moveq #-1,%d1 507ce: 2040 moveal %d0,%a0 507d0: 7010 moveq #16,%d0 507d2: 2080 movel %d0,%a0@ 507d4: 6064 bras 5083a /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 507d6: 4aaa 0008 tstl %a2@(8) 507da: 670e beqs 507ea 507dc: 2f0a movel %a2,%sp@- 507de: 4eb9 0004 7140 jsr 47140 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 507e4: 588f addql #4,%sp 507e6: 42aa 0008 clrl %a2@(8) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 507ea: 302a 0032 movew %a2@(50),%d0 507ee: 5380 subql #1,%d0 507f0: 3540 0032 movew %d0,%a2@(50) IMFS_update_ctime( the_jnode ); 507f4: 42a7 clrl %sp@- 507f6: 486e fff8 pea %fp@(-8) 507fa: 4eb9 0004 3564 jsr 43564 50800: 256e fff8 0044 movel %fp@(-8),%a2@(68) /* * The file cannot be open and the link must be less than 1 to free. */ if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) { 50806: 2f0a movel %a2,%sp@- 50808: 4eb9 0004 d84a jsr 4d84a 5080e: 4fef 000c lea %sp@(12),%sp 50812: 4a80 tstl %d0 50814: 6622 bnes 50838 50816: 4a6a 0032 tstw %a2@(50) 5081a: 661c bnes 50838 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 5081c: 2079 0006 0a3c moveal 60a3c ,%a0 50822: 2653 moveal %a3@,%a3 50824: b7e8 0004 cmpal %a0@(4),%a3 50828: 6604 bnes 5082e rtems_filesystem_current.node_access = NULL; 5082a: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 5082e: 2f0a movel %a2,%sp@- 50830: 4eb9 0004 34dc jsr 434dc 50836: 588f addql #4,%sp 50838: 4281 clrl %d1 } return 0; } 5083a: 246e fff0 moveal %fp@(-16),%a2 5083e: 2001 movel %d1,%d0 50840: 266e fff4 moveal %fp@(-12),%a3 50844: 4e5e unlk %fp 50846: 4e75 rts 00061030 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 61030: 4e56 0000 linkw %fp,#0 61034: 2f0a movel %a2,%sp@- 61036: 2f02 movel %d2,%sp@- FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 61038: 4a39 0009 b404 tstb 9b404 6103e: 6600 00c4 bnew 61104 return; etc_passwd_initted = 1; mkdir("/etc", 0777); 61042: 4878 01ff pea 1ff /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 61046: 45f9 0007 6b94 lea 76b94 ,%a2 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); 6104c: 4879 0008 deb6 pea 8deb6 <_rodata_start+0x6e6> FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 61052: 7001 moveq #1,%d0 61054: 13c0 0009 b404 moveb %d0,9b404 mkdir("/etc", 0777); 6105a: 4eb9 0004 6d54 jsr 46d54 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 61060: 4879 0008 f907 pea 8f907 61066: 4879 0008 dfd0 pea 8dfd0 <_rodata_start+0x800> 6106c: 4e92 jsr %a2@ 6106e: 4fef 0010 lea %sp@(16),%sp 61072: 4a80 tstl %d0 61074: 670c beqs 61082 fclose(fp); 61076: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61078: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED 6107e: 588f addql #4,%sp <== NOT EXECUTED 61080: 602e bras 610b0 <== NOT EXECUTED } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 61082: 4879 0008 f578 pea 8f578 61088: 4879 0008 dfd0 pea 8dfd0 <_rodata_start+0x800> 6108e: 4e92 jsr %a2@ 61090: 508f addql #8,%sp 61092: 2400 movel %d0,%d2 61094: 671a beqs 610b0 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 61096: 2f00 movel %d0,%sp@- 61098: 4879 0009 26e0 pea 926e0 6109e: 4eb9 0007 6d1c jsr 76d1c "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 610a4: 2f02 movel %d2,%sp@- 610a6: 4eb9 0007 632e jsr 7632e 610ac: 4fef 000c lea %sp@(12),%sp } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 610b0: 4879 0008 f907 pea 8f907 610b6: 45f9 0007 6b94 lea 76b94 ,%a2 610bc: 4879 0008 e015 pea 8e015 <_rodata_start+0x845> 610c2: 4e92 jsr %a2@ 610c4: 508f addql #8,%sp 610c6: 4a80 tstl %d0 610c8: 670c beqs 610d6 fclose(fp); 610ca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 610cc: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED 610d2: 588f addql #4,%sp <== NOT EXECUTED 610d4: 602e bras 61104 <== NOT EXECUTED } else if ((fp = fopen("/etc/group", "w")) != NULL) { 610d6: 4879 0008 f578 pea 8f578 610dc: 4879 0008 e015 pea 8e015 <_rodata_start+0x845> 610e2: 4e92 jsr %a2@ 610e4: 508f addql #8,%sp 610e6: 2400 movel %d0,%d2 610e8: 671a beqs 61104 fprintf( fp, "root:x:0:root\n" 610ea: 2f00 movel %d0,%sp@- 610ec: 4879 0009 2747 pea 92747 610f2: 4eb9 0007 6d1c jsr 76d1c "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 610f8: 2f02 movel %d2,%sp@- 610fa: 4eb9 0007 632e jsr 7632e 61100: 4fef 000c lea %sp@(12),%sp } } 61104: 242e fff8 movel %fp@(-8),%d2 61108: 246e fffc moveal %fp@(-4),%a2 6110c: 4e5e unlk %fp 6110e: 4e75 rts 000455e4 : int ioctl( int fd, ioctl_command_t command, ... ) { 455e4: 4e56 0000 linkw %fp,#0 455e8: 202e 0008 movel %fp@(8),%d0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 455ec: b0b9 0006 0b94 cmpl 60b94 ,%d0 455f2: 6422 bccs 45616 iop = rtems_libio_iop( fd ); 455f4: 2079 0006 2364 moveal 62364 ,%a0 455fa: ed88 lsll #6,%d0 455fc: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 455fe: 2028 0014 movel %a0@(20),%d0 45602: 0280 0000 0100 andil #256,%d0 45608: 670c beqs 45616 va_start(ap, command); buffer = va_arg(ap, void *); 4560a: 202e 0010 movel %fp@(16),%d0 /* * Now process the ioctl(). */ if ( !iop->handlers ) 4560e: 2268 003c moveal %a0@(60),%a1 45612: 4a89 tstl %a1 45614: 6610 bnes 45626 rtems_set_errno_and_return_minus_one( EBADF ); 45616: 4eb9 0005 1884 jsr 51884 <__errno> 4561c: 72ff moveq #-1,%d1 4561e: 2040 moveal %d0,%a0 45620: 7009 moveq #9,%d0 45622: 2080 movel %d0,%a0@ 45624: 602a bras 45650 if ( !iop->handlers->ioctl_h ) 45626: 2269 0010 moveal %a1@(16),%a1 4562a: 4a89 tstl %a1 4562c: 6612 bnes 45640 rtems_set_errno_and_return_minus_one( ENOTSUP ); 4562e: 4eb9 0005 1884 jsr 51884 <__errno> <== NOT EXECUTED 45634: 72ff moveq #-1,%d1 <== NOT EXECUTED 45636: 2040 moveal %d0,%a0 <== NOT EXECUTED 45638: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4563e: 6010 bras 45650 <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 45640: 2f00 movel %d0,%sp@- 45642: 2f2e 000c movel %fp@(12),%sp@- 45646: 2f08 movel %a0,%sp@- 45648: 4e91 jsr %a1@ return rc; 4564a: 4fef 000c lea %sp@(12),%sp rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 4564e: 2200 movel %d0,%d1 return rc; } 45650: 2001 movel %d1,%d0 45652: 4e5e unlk %fp 45654: 4e75 rts ... 000437be : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 437be: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 437c2: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 437c6: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 437ca: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 437ce: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 437d2: 1401 moveb %d1,%d2 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 437d4: 0800 0005 btst #5,%d0 <== NOT EXECUTED 437d8: 6704 beqs 437de <== NOT EXECUTED c &= 0x7f; 437da: 747f moveq #127,%d2 <== NOT EXECUTED 437dc: c481 andl %d1,%d2 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 437de: 0800 0009 btst #9,%d0 <== NOT EXECUTED 437e2: 6724 beqs 43808 <== NOT EXECUTED c = tolower (c); 437e4: 2079 0005 b85c moveal 5b85c <__ctype_ptr__>,%a0 <== NOT EXECUTED 437ea: 7603 moveq #3,%d3 <== NOT EXECUTED 437ec: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED 437f2: 1230 2801 moveb %a0@(00000001,%d2:l),%d1 <== NOT EXECUTED 437f6: 49c1 extbl %d1 <== NOT EXECUTED 437f8: c283 andl %d3,%d1 <== NOT EXECUTED 437fa: 163c 0001 moveb #1,%d3 <== NOT EXECUTED 437fe: b681 cmpl %d1,%d3 <== NOT EXECUTED 43800: 6606 bnes 43808 <== NOT EXECUTED 43802: 0682 0000 0020 addil #32,%d2 <== NOT EXECUTED if (c == '\r') { 43808: 4281 clrl %d1 <== NOT EXECUTED 4380a: 1202 moveb %d2,%d1 <== NOT EXECUTED 4380c: 760d moveq #13,%d3 <== NOT EXECUTED 4380e: b681 cmpl %d1,%d3 <== NOT EXECUTED 43810: 6610 bnes 43822 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 43812: 4a00 tstb %d0 <== NOT EXECUTED 43814: 6d00 00f8 bltw 4390e <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 43818: 0800 0008 btst #8,%d0 <== NOT EXECUTED 4381c: 671a beqs 43838 <== NOT EXECUTED 4381e: 740a moveq #10,%d2 <== NOT EXECUTED 43820: 6016 bras 43838 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 43822: 760a moveq #10,%d3 <== NOT EXECUTED 43824: b681 cmpl %d1,%d3 <== NOT EXECUTED 43826: 660a bnes 43832 <== NOT EXECUTED 43828: 0800 0006 btst #6,%d0 <== NOT EXECUTED 4382c: 670a beqs 43838 <== NOT EXECUTED 4382e: 740d moveq #13,%d2 <== NOT EXECUTED 43830: 6006 bras 43838 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 43832: 4a02 tstb %d2 <== NOT EXECUTED 43834: 6700 009e beqw 438d4 <== NOT EXECUTED 43838: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED 4383c: 0801 0001 btst #1,%d1 <== NOT EXECUTED 43840: 6700 0092 beqw 438d4 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 43844: 4283 clrl %d3 <== NOT EXECUTED 43846: 162a 0043 moveb %a2@(67),%d3 <== NOT EXECUTED 4384a: 4280 clrl %d0 <== NOT EXECUTED 4384c: 1002 moveb %d2,%d0 <== NOT EXECUTED 4384e: b680 cmpl %d0,%d3 <== NOT EXECUTED 43850: 6604 bnes 43856 <== NOT EXECUTED erase (tty, 0); 43852: 42a7 clrl %sp@- <== NOT EXECUTED 43854: 600e bras 43864 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VKILL]) { 43856: 4283 clrl %d3 <== NOT EXECUTED 43858: 162a 0044 moveb %a2@(68),%d3 <== NOT EXECUTED 4385c: b680 cmpl %d0,%d3 <== NOT EXECUTED 4385e: 6610 bnes 43870 <== NOT EXECUTED erase (tty, 1); 43860: 4878 0001 pea 1 <== NOT EXECUTED 43864: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43866: 4eba fdbe jsr %pc@(43626 ) <== NOT EXECUTED return 0; 4386a: 508f addql #8,%sp <== NOT EXECUTED 4386c: 6000 00a0 braw 4390e <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { 43870: 4283 clrl %d3 <== NOT EXECUTED 43872: 162a 0045 moveb %a2@(69),%d3 <== NOT EXECUTED 43876: b680 cmpl %d0,%d3 <== NOT EXECUTED 43878: 6606 bnes 43880 <== NOT EXECUTED 4387a: 7001 moveq #1,%d0 <== NOT EXECUTED 4387c: 6000 0092 braw 43910 <== NOT EXECUTED return 1; } else if (c == '\n') { 43880: 760a moveq #10,%d3 <== NOT EXECUTED 43882: b680 cmpl %d0,%d3 <== NOT EXECUTED 43884: 6620 bnes 438a6 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 43886: 7048 moveq #72,%d0 <== NOT EXECUTED 43888: c280 andl %d0,%d1 <== NOT EXECUTED 4388a: 670c beqs 43898 <== NOT EXECUTED echo (c, tty); 4388c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4388e: 4878 000a pea a <== NOT EXECUTED 43892: 4eba fd0c jsr %pc@(435a0 ) <== NOT EXECUTED 43896: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 43898: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 4389c: 7001 moveq #1,%d0 <== NOT EXECUTED 4389e: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 438a2: 740a moveq #10,%d2 <== NOT EXECUTED 438a4: 605c bras 43902 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 438a6: 4283 clrl %d3 <== NOT EXECUTED 438a8: 162a 004c moveb %a2@(76),%d3 <== NOT EXECUTED 438ac: b680 cmpl %d0,%d3 <== NOT EXECUTED 438ae: 670a beqs 438ba <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 438b0: 4283 clrl %d3 <== NOT EXECUTED 438b2: 162a 0051 moveb %a2@(81),%d3 <== NOT EXECUTED 438b6: b680 cmpl %d0,%d3 <== NOT EXECUTED 438b8: 661a bnes 438d4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 438ba: 44c1 movew %d1,%ccr <== NOT EXECUTED 438bc: 6a0e bpls 438cc <== NOT EXECUTED echo (c, tty); 438be: 2f0a movel %a2,%sp@- <== NOT EXECUTED 438c0: 4280 clrl %d0 <== NOT EXECUTED 438c2: 1002 moveb %d2,%d0 <== NOT EXECUTED 438c4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 438c6: 4eba fcd8 jsr %pc@(435a0 ) <== NOT EXECUTED 438ca: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 438cc: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 438d0: 7001 moveq #1,%d0 <== NOT EXECUTED 438d2: 602a bras 438fe <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 438d4: 2039 0005 b784 movel 5b784 ,%d0 <== NOT EXECUTED 438da: 5380 subql #1,%d0 <== NOT EXECUTED 438dc: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 438e0: 6f2c bles 4390e <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 438e2: 7008 moveq #8,%d0 <== NOT EXECUTED 438e4: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 438e8: 670e beqs 438f8 <== NOT EXECUTED echo (c, tty); 438ea: 2f0a movel %a2,%sp@- <== NOT EXECUTED 438ec: 4280 clrl %d0 <== NOT EXECUTED 438ee: 1002 moveb %d2,%d0 <== NOT EXECUTED 438f0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 438f2: 4eba fcac jsr %pc@(435a0 ) <== NOT EXECUTED 438f6: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 438f8: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 438fc: 4280 clrl %d0 <== NOT EXECUTED 438fe: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 43902: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 43906: 5281 addql #1,%d1 <== NOT EXECUTED 43908: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED 4390c: 6002 bras 43910 <== NOT EXECUTED 4390e: 4280 clrl %d0 <== NOT EXECUTED } return 0; } 43910: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 43916: 4e5e unlk %fp <== NOT EXECUTED 43918: 4e75 rts 000614e4 : int link( const char *existing, const char *new ) { 614e4: 4e56 ffc8 linkw %fp,#-56 614e8: 48d7 040c moveml %d2-%d3/%a2,%sp@ 614ec: 242e 0008 movel %fp@(8),%d2 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 614f0: 2f02 movel %d2,%sp@- int link( const char *existing, const char *new ) { 614f2: 246e 000c moveal %fp@(12),%a2 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 614f6: 4eb9 0007 c298 jsr 7c298 614fc: 7201 moveq #1,%d1 614fe: 2e81 movel %d1,%sp@ 61500: 486e ffe8 pea %fp@(-24) 61504: 42a7 clrl %sp@- 61506: 2f00 movel %d0,%sp@- 61508: 2f02 movel %d2,%sp@- 6150a: 4eb9 0004 6576 jsr 46576 0, &existing_loc, true ); if ( result != 0 ) 61510: 4fef 0014 lea %sp@(20),%sp 61514: 4a80 tstl %d0 61516: 6706 beqs 6151e 61518: 74ff moveq #-1,%d2 6151a: 6000 01a6 braw 616c2 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 6151e: 742f moveq #47,%d2 61520: 1012 moveb %a2@,%d0 61522: 1200 moveb %d0,%d1 61524: 49c1 extbl %d1 61526: b481 cmpl %d1,%d2 61528: 670c beqs 61536 6152a: 143c 005c moveb #92,%d2 6152e: b481 cmpl %d1,%d2 61530: 6704 beqs 61536 61532: 4a00 tstb %d0 61534: 6622 bnes 61558 61536: 4878 0014 pea 14 6153a: 2079 0009 73bc moveal 973bc ,%a0 61540: 41e8 0018 lea %a0@(24),%a0 61544: 2f08 movel %a0,%sp@- 61546: 486e ffd4 pea %fp@(-44) 6154a: 4eb9 0007 9228 jsr 79228 61550: 4fef 000c lea %sp@(12),%sp 61554: 7001 moveq #1,%d0 61556: 601e bras 61576 61558: 4878 0014 pea 14 6155c: 2039 0009 73bc movel 973bc ,%d0 61562: 5880 addql #4,%d0 61564: 2f00 movel %d0,%sp@- 61566: 486e ffd4 pea %fp@(-44) 6156a: 4eb9 0007 9228 jsr 79228 61570: 4fef 000c lea %sp@(12),%sp 61574: 4280 clrl %d0 if ( !parent_loc.ops->evalformake_h ) { 61576: 206e ffe0 moveal %fp@(-32),%a0 6157a: 2068 0004 moveal %a0@(4),%a0 6157e: 4a88 tstl %a0 61580: 661c bnes 6159e rtems_filesystem_freenode( &existing_loc ); 61582: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61586: 4a88 tstl %a0 <== NOT EXECUTED 61588: 6700 00e0 beqw 6166a <== NOT EXECUTED 6158c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61590: 4a88 tstl %a0 <== NOT EXECUTED 61592: 6700 00d6 beqw 6166a <== NOT EXECUTED 61596: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 6159a: 6000 00ca braw 61666 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 6159e: 486e fffc pea %fp@(-4) 615a2: 240e movel %fp,%d2 615a4: 0682 ffff ffd4 addil #-44,%d2 615aa: 2f02 movel %d2,%sp@- 615ac: 4872 0800 pea %a2@(00000000,%d0:l) 615b0: 4e90 jsr %a0@ if ( result != 0 ) { 615b2: 4fef 000c lea %sp@(12),%sp if ( !parent_loc.ops->evalformake_h ) { 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 ); 615b6: 2600 movel %d0,%d3 if ( result != 0 ) { 615b8: 6728 beqs 615e2 rtems_filesystem_freenode( &existing_loc ); 615ba: 206e fff4 moveal %fp@(-12),%a0 615be: 4a88 tstl %a0 615c0: 6710 beqs 615d2 615c2: 2068 001c moveal %a0@(28),%a0 615c6: 4a88 tstl %a0 615c8: 6708 beqs 615d2 615ca: 486e ffe8 pea %fp@(-24) 615ce: 4e90 jsr %a0@ 615d0: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( result ); 615d2: 4eb9 0007 61f0 jsr 761f0 <__errno> 615d8: 74ff moveq #-1,%d2 615da: 2040 moveal %d0,%a0 615dc: 2083 movel %d3,%a0@ 615de: 6000 00e2 braw 616c2 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 615e2: 202e fff8 movel %fp@(-8),%d0 615e6: b0ae ffe4 cmpl %fp@(-28),%d0 615ea: 6742 beqs 6162e rtems_filesystem_freenode( &existing_loc ); 615ec: 206e fff4 moveal %fp@(-12),%a0 615f0: 4a88 tstl %a0 615f2: 6710 beqs 61604 615f4: 2068 001c moveal %a0@(28),%a0 615f8: 4a88 tstl %a0 615fa: 6708 beqs 61604 615fc: 486e ffe8 pea %fp@(-24) 61600: 4e90 jsr %a0@ 61602: 588f addql #4,%sp rtems_filesystem_freenode( &parent_loc ); 61604: 206e ffe0 moveal %fp@(-32),%a0 61608: 4a88 tstl %a0 6160a: 6710 beqs 6161c 6160c: 2068 001c moveal %a0@(28),%a0 61610: 4a88 tstl %a0 61612: 6708 beqs 6161c 61614: 486e ffd4 pea %fp@(-44) 61618: 4e90 jsr %a0@ 6161a: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EXDEV ); 6161c: 4eb9 0007 61f0 jsr 761f0 <__errno> 61622: 74ff moveq #-1,%d2 61624: 2040 moveal %d0,%a0 61626: 7012 moveq #18,%d0 61628: 2080 movel %d0,%a0@ 6162a: 6000 0096 braw 616c2 } if ( !parent_loc.ops->link_h ) { 6162e: 206e ffe0 moveal %fp@(-32),%a0 61632: 2068 0008 moveal %a0@(8),%a0 61636: 4a88 tstl %a0 61638: 6642 bnes 6167c rtems_filesystem_freenode( &existing_loc ); 6163a: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 6163e: 4a88 tstl %a0 <== NOT EXECUTED 61640: 6710 beqs 61652 <== NOT EXECUTED 61642: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61646: 4a88 tstl %a0 <== NOT EXECUTED 61648: 6708 beqs 61652 <== NOT EXECUTED 6164a: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 6164e: 4e90 jsr %a0@ <== NOT EXECUTED 61650: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 61652: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 61656: 4a88 tstl %a0 <== NOT EXECUTED 61658: 6710 beqs 6166a <== NOT EXECUTED 6165a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6165e: 4a88 tstl %a0 <== NOT EXECUTED 61660: 6708 beqs 6166a <== NOT EXECUTED 61662: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 61666: 4e90 jsr %a0@ <== NOT EXECUTED 61668: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 6166a: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 61670: 74ff moveq #-1,%d2 <== NOT EXECUTED 61672: 2040 moveal %d0,%a0 <== NOT EXECUTED 61674: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 6167a: 6046 bras 616c2 <== NOT EXECUTED } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 6167c: 2f2e fffc movel %fp@(-4),%sp@- 61680: 260e movel %fp,%d3 61682: 0683 ffff ffe8 addil #-24,%d3 61688: 2f02 movel %d2,%sp@- 6168a: 2f03 movel %d3,%sp@- 6168c: 4e90 jsr %a0@ rtems_filesystem_freenode( &existing_loc ); 6168e: 206e fff4 moveal %fp@(-12),%a0 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 ); 61692: 2400 movel %d0,%d2 rtems_filesystem_freenode( &existing_loc ); 61694: 4fef 000c lea %sp@(12),%sp 61698: 4a88 tstl %a0 6169a: 670e beqs 616aa 6169c: 2068 001c moveal %a0@(28),%a0 616a0: 4a88 tstl %a0 616a2: 6706 beqs 616aa 616a4: 2f03 movel %d3,%sp@- 616a6: 4e90 jsr %a0@ 616a8: 588f addql #4,%sp rtems_filesystem_freenode( &parent_loc ); 616aa: 206e ffe0 moveal %fp@(-32),%a0 616ae: 4a88 tstl %a0 616b0: 6710 beqs 616c2 616b2: 2068 001c moveal %a0@(28),%a0 616b6: 4a88 tstl %a0 616b8: 6708 beqs 616c2 616ba: 486e ffd4 pea %fp@(-44) 616be: 4e90 jsr %a0@ 616c0: 588f addql #4,%sp return result; } 616c2: 2002 movel %d2,%d0 616c4: 4cee 040c ffc8 moveml %fp@(-56),%d2-%d3/%a2 616ca: 4e5e unlk %fp 616cc: 4e75 rts 00059534 : off_t lseek( int fd, off_t offset, int whence ) { 59534: 4e56 ffec linkw %fp,#-20 59538: 206e 0014 moveal %fp@(20),%a0 5953c: 48d7 043c moveml %d2-%d5/%a2,%sp@ 59540: 242e 0008 movel %fp@(8),%d2 59544: 202e 000c movel %fp@(12),%d0 59548: 222e 0010 movel %fp@(16),%d1 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 5954c: b4b9 0005 b684 cmpl 5b684 ,%d2 59552: 6416 bccs 5956a iop = rtems_libio_iop( fd ); 59554: 2479 0005 cd84 moveal 5cd84 ,%a2 5955a: ed8a lsll #6,%d2 5955c: d5c2 addal %d2,%a2 rtems_libio_check_is_open(iop); 5955e: 242a 0014 movel %a2@(20),%d2 59562: 0282 0000 0100 andil #256,%d2 59568: 660e bnes 59578 5956a: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 59570: 7209 moveq #9,%d1 <== NOT EXECUTED 59572: 2040 moveal %d0,%a0 <== NOT EXECUTED 59574: 2081 movel %d1,%a0@ <== NOT EXECUTED 59576: 6068 bras 595e0 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 59578: 226a 003c moveal %a2@(60),%a1 5957c: 4aa9 0014 tstl %a1@(20) 59580: 6610 bnes 59592 rtems_set_errno_and_return_minus_one( ENOTSUP ); 59582: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 59588: 2040 moveal %d0,%a0 <== NOT EXECUTED 5958a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 59590: 604e bras 595e0 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 59592: 7801 moveq #1,%d4 /* * Now process the lseek(). */ old_offset = iop->offset; 59594: 242a 000c movel %a2@(12),%d2 59598: 262a 0010 movel %a2@(16),%d3 switch ( whence ) { 5959c: b888 cmpl %a0,%d4 5959e: 6714 beqs 595b4 595a0: 7a02 moveq #2,%d5 595a2: ba88 cmpl %a0,%d5 595a4: 6718 beqs 595be 595a6: 4a88 tstl %a0 595a8: 662a bnes 595d4 case SEEK_SET: iop->offset = offset; 595aa: 2540 000c movel %d0,%a2@(12) 595ae: 2541 0010 movel %d1,%a2@(16) break; 595b2: 6032 bras 595e6 case SEEK_CUR: iop->offset += offset; 595b4: 2800 movel %d0,%d4 595b6: 2a01 movel %d1,%d5 595b8: da83 addl %d3,%d5 595ba: d982 addxl %d2,%d4 595bc: 600c bras 595ca break; case SEEK_END: iop->offset = iop->size + offset; 595be: 282a 0004 movel %a2@(4),%d4 595c2: 2a2a 0008 movel %a2@(8),%d5 595c6: da81 addl %d1,%d5 595c8: d980 addxl %d0,%d4 595ca: 2544 000c movel %d4,%a2@(12) 595ce: 2545 0010 movel %d5,%a2@(16) break; 595d2: 6012 bras 595e6 default: rtems_set_errno_and_return_minus_one( EINVAL ); 595d4: 4eb9 0004 cc6c jsr 4cc6c <__errno> 595da: 2040 moveal %d0,%a0 595dc: 7016 moveq #22,%d0 595de: 2080 movel %d0,%a0@ 595e0: 78ff moveq #-1,%d4 595e2: 7aff moveq #-1,%d5 595e4: 602c bras 59612 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 595e6: 226a 003c moveal %a2@(60),%a1 595ea: 2f08 movel %a0,%sp@- 595ec: 2f01 movel %d1,%sp@- 595ee: 2f00 movel %d0,%sp@- 595f0: 2f0a movel %a2,%sp@- 595f2: 2069 0014 moveal %a1@(20),%a0 595f6: 4e90 jsr %a0@ if ( status == (off_t) -1 ) 595f8: 4fef 0010 lea %sp@(16),%sp /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 595fc: 2800 movel %d0,%d4 595fe: 2a01 movel %d1,%d5 if ( status == (off_t) -1 ) 59600: 70ff moveq #-1,%d0 59602: 72ff moveq #-1,%d1 59604: 9285 subl %d5,%d1 59606: 9184 subxl %d4,%d0 59608: 6608 bnes 59612 iop->offset = old_offset; 5960a: 2542 000c movel %d2,%a2@(12) 5960e: 2543 0010 movel %d3,%a2@(16) /* * So if the operation failed, we have to restore iop->offset. */ return status; } 59612: 2205 movel %d5,%d1 59614: 2004 movel %d4,%d0 59616: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 5961c: 4e5e unlk %fp 5961e: 4e75 rts 00061804 : int _STAT_NAME( const char *path, struct stat *buf ) { 61804: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 61808: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 6180c: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 61810: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 61814: 6612 bnes 61828 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 61816: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 6181c: 74ff moveq #-1,%d2 <== NOT EXECUTED 6181e: 2040 moveal %d0,%a0 <== NOT EXECUTED 61820: 700e moveq #14,%d0 <== NOT EXECUTED 61822: 2080 movel %d0,%a0@ <== NOT EXECUTED 61824: 6000 0098 braw 618be <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 61828: 2f04 movel %d4,%sp@- <== NOT EXECUTED 6182a: 260e movel %fp,%d3 <== NOT EXECUTED 6182c: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED 61832: 4eb9 0007 c298 jsr 7c298 <== NOT EXECUTED 61838: 4297 clrl %sp@ <== NOT EXECUTED 6183a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6183c: 42a7 clrl %sp@- <== NOT EXECUTED 6183e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61840: 2f04 movel %d4,%sp@- <== NOT EXECUTED 61842: 4eb9 0004 6576 jsr 46576 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 61848: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 6184c: 4a80 tstl %d0 <== NOT EXECUTED 6184e: 6704 beqs 61854 <== NOT EXECUTED 61850: 74ff moveq #-1,%d2 <== NOT EXECUTED 61852: 606a bras 618be <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 61854: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61858: 4aa8 0018 tstl %a0@(24) <== NOT EXECUTED 6185c: 6628 bnes 61886 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 6185e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61862: 4a88 tstl %a0 <== NOT EXECUTED 61864: 670e beqs 61874 <== NOT EXECUTED 61866: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6186a: 4a88 tstl %a0 <== NOT EXECUTED 6186c: 6706 beqs 61874 <== NOT EXECUTED 6186e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61870: 4e90 jsr %a0@ <== NOT EXECUTED 61872: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61874: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 6187a: 74ff moveq #-1,%d2 <== NOT EXECUTED 6187c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6187e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61884: 6038 bras 618be <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 61886: 4878 0046 pea 46 <== NOT EXECUTED 6188a: 42a7 clrl %sp@- <== NOT EXECUTED 6188c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6188e: 4eb9 0007 9394 jsr 79394 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 61894: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61898: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6189a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6189c: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 618a0: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 618a2: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 618a6: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 618a8: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 618ac: 4a88 tstl %a0 <== NOT EXECUTED 618ae: 670e beqs 618be <== NOT EXECUTED 618b0: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 618b4: 4a88 tstl %a0 <== NOT EXECUTED 618b6: 6706 beqs 618be <== NOT EXECUTED 618b8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 618ba: 4e90 jsr %a0@ <== NOT EXECUTED 618bc: 588f addql #4,%sp <== NOT EXECUTED return status; } 618be: 2002 movel %d2,%d0 <== NOT EXECUTED 618c0: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 618c6: 4e5e unlk %fp <== NOT EXECUTED 618c8: 4e75 rts 0004944c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 4944c: 4e56 fff4 linkw %fp,#-12 49450: 52b9 0005 cd94 addql #1,5cd94 49456: 48d7 001c moveml %d2-%d4,%sp@ 4945a: 262e 0008 movel %fp@(8),%d3 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4945e: 4eb9 0004 9414 jsr 49414 /* * Validate the parameters */ if ( !size ) 49464: 4a83 tstl %d3 49466: 6700 0088 beqw 494f0 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4946a: 7003 moveq #3,%d0 4946c: b0b9 0005 d06c cmpl 5d06c <_System_state_Current>,%d0 49472: 660a bnes 4947e 49474: 4eb9 0004 93bc jsr 493bc 4947a: 4a00 tstb %d0 4947c: 6772 beqs 494f0 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 4947e: 42a7 clrl %sp@- 49480: 42a7 clrl %sp@- 49482: 2f03 movel %d3,%sp@- 49484: 2f39 0005 b690 movel 5b690 ,%sp@- 4948a: 4eb9 0004 a690 jsr 4a690 <_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 ) { 49490: 4fef 0010 lea %sp@(16),%sp 49494: 2400 movel %d0,%d2 49496: 6626 bnes 494be if (rtems_malloc_sbrk_helpers) 49498: 2079 0005 bd1a moveal 5bd1a ,%a0 4949e: 4a88 tstl %a0 494a0: 670e beqs 494b0 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 494a2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 494a4: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 494a8: 4e90 jsr %a0@ <== NOT EXECUTED if ( !return_this ) { 494aa: 588f addql #4,%sp <== NOT EXECUTED return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 494ac: 2800 movel %d0,%d4 <== NOT EXECUTED if ( !return_this ) { 494ae: 6610 bnes 494c0 <== NOT EXECUTED errno = ENOMEM; 494b0: 4eb9 0004 cc6c jsr 4cc6c <__errno> 494b6: 2040 moveal %d0,%a0 494b8: 700c moveq #12,%d0 494ba: 2080 movel %d0,%a0@ return (void *) 0; 494bc: 6034 bras 494f2 494be: 2800 movel %d0,%d4 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 494c0: 2079 0005 bd1e moveal 5bd1e ,%a0 494c6: 4a88 tstl %a0 494c8: 670a beqs 494d4 (*rtems_malloc_dirty_helper)( return_this, size ); 494ca: 2f03 movel %d3,%sp@- <== NOT EXECUTED 494cc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 494ce: 2050 moveal %a0@,%a0 <== NOT EXECUTED 494d0: 4e90 jsr %a0@ <== NOT EXECUTED 494d2: 508f addql #8,%sp <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 494d4: 2079 0005 bd16 moveal 5bd16 ,%a0 494da: 4a88 tstl %a0 494dc: 6604 bnes 494e2 494de: 2404 movel %d4,%d2 494e0: 6010 bras 494f2 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 494e2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 494e4: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 494e8: 2404 movel %d4,%d2 <== NOT EXECUTED 494ea: 4e90 jsr %a0@ <== NOT EXECUTED 494ec: 588f addql #4,%sp <== NOT EXECUTED 494ee: 6002 bras 494f2 <== NOT EXECUTED 494f0: 4282 clrl %d2 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 494f2: 2002 movel %d2,%d0 494f4: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 494fa: 4e5e unlk %fp 494fc: 4e75 rts ... 000493fa : } void malloc_deferred_free( void *pointer ) { 493fa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 493fe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 49402: 4879 0005 d386 pea 5d386 <== NOT EXECUTED 49408: 4eb9 0004 58d0 jsr 458d0 <_Chain_Append> <== NOT EXECUTED 4940e: 508f addql #8,%sp <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } 49410: 4e5e unlk %fp <== NOT EXECUTED 49412: 4e75 rts 00049414 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 49414: 4e56 0000 linkw %fp,#0 49418: 2f0b movel %a3,%sp@- */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 4941a: 47f9 0004 a168 lea 4a168 <_Chain_Get>,%a3 49420: 2f0a movel %a2,%sp@- /* * If some free's have been deferred, then do them now. */ while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL) free(to_be_freed); 49422: 45f9 0004 8f48 lea 48f48 ,%a2 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) 49428: 6006 bras 49430 free(to_be_freed); 4942a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4942c: 4e92 jsr %a2@ <== NOT EXECUTED 4942e: 588f addql #4,%sp <== NOT EXECUTED 49430: 4879 0005 d386 pea 5d386 49436: 4e93 jsr %a3@ 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) 49438: 588f addql #4,%sp 4943a: 4a80 tstl %d0 4943c: 66ec bnes 4942a free(to_be_freed); } 4943e: 246e fff8 moveal %fp@(-8),%a2 49442: 266e fffc moveal %fp@(-4),%a3 49446: 4e5e unlk %fp 49448: 4e75 rts ... 000493bc : #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { 493bc: 4e56 0000 linkw %fp,#0 if ( _Thread_Dispatch_disable_level > 0 ) 493c0: 2039 0005 cee4 movel 5cee4 <_Thread_Dispatch_disable_level>,%d0 493c6: 6704 beqs 493cc 493c8: 4200 clrb %d0 <== NOT EXECUTED 493ca: 600a bras 493d6 <== NOT EXECUTED return false; if ( _ISR_Nest_level > 0 ) 493cc: 2039 0005 cf7e movel 5cf7e <_ISR_Nest_level>,%d0 #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 493d2: 57c0 seq %d0 493d4: 4480 negl %d0 if ( _ISR_Nest_level > 0 ) return false; return true; } 493d6: 4e5e unlk %fp 493d8: 4e75 rts 0004fa4a : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 4fa4a: 4e56 0000 linkw %fp,#0 4fa4e: 2f0a movel %a2,%sp@- 4fa50: 246e 0008 moveal %fp@(8),%a2 /* * The file cannot be open and the link must be less than 1 to free. */ if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) { 4fa54: 2f0a movel %a2,%sp@- 4fa56: 4eb9 0004 d84a jsr 4d84a 4fa5c: 588f addql #4,%sp 4fa5e: 4a80 tstl %d0 4fa60: 6632 bnes 4fa94 4fa62: 4a6a 0032 tstw %a2@(50) 4fa66: 662c bnes 4fa94 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 4fa68: 2079 0006 0a3c moveal 60a3c ,%a0 4fa6e: b5e8 0004 cmpal %a0@(4),%a2 4fa72: 6604 bnes 4fa78 rtems_filesystem_current.node_access = NULL; 4fa74: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 4fa78: 7006 moveq #6,%d0 4fa7a: b0aa 0048 cmpl %a2@(72),%d0 4fa7e: 670a beqs 4fa8a IMFS_memfile_remove( the_jnode ); 4fa80: 2f0a movel %a2,%sp@- 4fa82: 4eb9 0004 f930 jsr 4f930 4fa88: 588f addql #4,%sp free( the_jnode ); 4fa8a: 2f0a movel %a2,%sp@- 4fa8c: 4eb9 0004 34dc jsr 434dc 4fa92: 588f addql #4,%sp } return 0; } 4fa94: 246e fffc moveal %fp@(-4),%a2 4fa98: 4280 clrl %d0 4fa9a: 4e5e unlk %fp 4fa9c: 4e75 rts 0004f87e : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 4f87e: 4e56 ffec linkw %fp,#-20 4f882: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 4f886: 246e 0008 moveal %fp@(8),%a2 4f88a: 262e 000c movel %fp@(12),%d3 /* * Perform internal consistency checks */ assert( block_table ); 4f88e: 4a8a tstl %a2 4f890: 661c bnes 4f8ae 4f892: 4879 0005 fdf2 pea 5fdf2 <== NOT EXECUTED 4f898: 4879 0005 fed9 pea 5fed9 <__FUNCTION__.6044> <== NOT EXECUTED 4f89e: 4878 01b3 pea 1b3 <== NOT EXECUTED 4f8a2: 4879 0005 fd88 pea 5fd88 <== NOT EXECUTED 4f8a8: 4eb9 0004 d590 jsr 4d590 <__assert_func> <== NOT EXECUTED 4f8ae: 2652 moveal %a2@,%a3 4f8b0: 4282 clrl %d2 b = *block_table; for ( i=0 ; i,%a4 * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i if ( b[i] ) { 4f8ba: 2013 movel %a3@,%d0 4f8bc: 6708 beqs 4f8c6 memfile_free_block( b[i] ); 4f8be: 2f00 movel %d0,%sp@- 4f8c0: 4e94 jsr %a4@ b[i] = 0; 4f8c2: 588f addql #4,%sp 4f8c4: 4293 clrl %a3@ * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 4f8ce: 2f12 movel %a2@,%sp@- 4f8d0: 4eb9 0004 f6a6 jsr 4f6a6 *block_table = 0; 4f8d6: 588f addql #4,%sp 4f8d8: 4292 clrl %a2@ } 4f8da: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 4f8e0: 4e5e unlk %fp 4f8e2: 4e75 rts 0004fcc2 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 4fcc2: 4e56 ffec linkw %fp,#-20 4fcc6: 206e 0008 moveal %fp@(8),%a0 4fcca: 48d7 040c moveml %d2-%d3/%a2,%sp@ IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4fcce: 2468 0038 moveal %a0@(56),%a2 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 4fcd2: 202e 000c movel %fp@(12),%d0 4fcd6: 222e 0010 movel %fp@(16),%d1 * 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 ) 4fcda: 242a 004c movel %a2@(76),%d2 4fcde: 262a 0050 movel %a2@(80),%d3 4fce2: 9681 subl %d1,%d3 4fce4: 9580 subxl %d0,%d2 4fce6: 6c12 bges 4fcfa return IMFS_memfile_extend( the_jnode, length ); 4fce8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4fcea: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4fcec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4fcee: 4eb9 0004 fb9a jsr 4fb9a <== NOT EXECUTED 4fcf4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4fcf8: 6026 bras 4fd20 <== NOT EXECUTED * The in-memory files do not currently reclaim memory until the file is * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length; 4fcfa: 2540 004c movel %d0,%a2@(76) 4fcfe: 2541 0050 movel %d1,%a2@(80) iop->size = the_jnode->info.file.size; 4fd02: 2140 0004 movel %d0,%a0@(4) 4fd06: 2141 0008 movel %d1,%a0@(8) IMFS_update_atime( the_jnode ); 4fd0a: 42a7 clrl %sp@- 4fd0c: 486e fff8 pea %fp@(-8) 4fd10: 4eb9 0004 3564 jsr 43564 4fd16: 256e fff8 003c movel %fp@(-8),%a2@(60) return 0; 4fd1c: 508f addql #8,%sp */ the_jnode->info.file.size = length; iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); 4fd1e: 4280 clrl %d0 return 0; } 4fd20: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 4fd26: 4e5e unlk %fp 4fd28: 4e75 rts 0004fd2a : { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 4fd2a: 7006 moveq #6,%d0 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 4fd2c: 4e56 fff0 linkw %fp,#-16 4fd30: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4fd34: 246e 0008 moveal %fp@(8),%a2 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4fd38: 266a 0038 moveal %a2@(56),%a3 if (the_jnode->type == IMFS_LINEAR_FILE) { 4fd3c: b0ab 0048 cmpl %a3@(72),%d0 4fd40: 6620 bnes 4fd62 if (iop->offset > the_jnode->info.linearfile.size) 4fd42: 202b 004c movel %a3@(76),%d0 <== NOT EXECUTED 4fd46: 222b 0050 movel %a3@(80),%d1 <== NOT EXECUTED 4fd4a: 242a 000c movel %a2@(12),%d2 <== NOT EXECUTED 4fd4e: 262a 0010 movel %a2@(16),%d3 <== NOT EXECUTED 4fd52: 9681 subl %d1,%d3 <== NOT EXECUTED 4fd54: 9580 subxl %d0,%d2 <== NOT EXECUTED 4fd56: 6f48 bles 4fda0 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 4fd58: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED 4fd5c: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED 4fd60: 603e bras 4fda0 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 4fd62: 2f2a 0010 movel %a2@(16),%sp@- 4fd66: 2f2a 000c movel %a2@(12),%sp@- 4fd6a: 2f0b movel %a3,%sp@- 4fd6c: 4eb9 0004 fb9a jsr 4fb9a 4fd72: 4fef 000c lea %sp@(12),%sp 4fd76: 4a80 tstl %d0 4fd78: 6716 beqs 4fd90 rtems_set_errno_and_return_minus_one( ENOSPC ); 4fd7a: 4eb9 0005 167c jsr 5167c <__errno> <== NOT EXECUTED 4fd80: 761c moveq #28,%d3 <== NOT EXECUTED 4fd82: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fd84: 2083 movel %d3,%a0@ <== NOT EXECUTED 4fd86: 307c ffff moveaw #-1,%a0 <== NOT EXECUTED 4fd8a: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED 4fd8e: 6018 bras 4fda8 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 4fd90: 202b 004c movel %a3@(76),%d0 4fd94: 222b 0050 movel %a3@(80),%d1 4fd98: 2540 0004 movel %d0,%a2@(4) 4fd9c: 2541 0008 movel %d1,%a2@(8) } return iop->offset; 4fda0: 206a 000c moveal %a2@(12),%a0 4fda4: 226a 0010 moveal %a2@(16),%a1 } 4fda8: 2209 movel %a1,%d1 4fdaa: 2008 movel %a0,%d0 4fdac: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 4fdb2: 4e5e unlk %fp 4fdb4: 4e75 rts 00050002 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 50002: 4e56 fff0 linkw %fp,#-16 50006: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 5000a: 266e 0008 moveal %fp@(8),%a3 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 5000e: 202b 0014 movel %a3@(20),%d0 50012: 0280 0000 0204 andil #516,%d0 uint32_t mode ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 50018: 246b 0038 moveal %a3@(56),%a2 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 5001c: 6750 beqs 5006e && (the_jnode->type == IMFS_LINEAR_FILE)) { 5001e: 7006 moveq #6,%d0 50020: b0aa 0048 cmpl %a2@(72),%d0 50024: 6648 bnes 5006e uint32_t count = the_jnode->info.linearfile.size; 50026: 202a 0050 movel %a2@(80),%d0 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 5002a: 4282 clrl %d2 <== NOT EXECUTED 5002c: 4283 clrl %d3 <== 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; 5002e: 222a 0054 movel %a2@(84),%d1 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 50032: 2542 004c movel %d2,%a2@(76) <== NOT EXECUTED 50036: 2543 0050 movel %d3,%a2@(80) <== 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; 5003a: 7605 moveq #5,%d3 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 5003c: 42aa 0054 clrl %a2@(84) <== 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; 50040: 2543 0048 movel %d3,%a2@(72) <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 50044: 42aa 0058 clrl %a2@(88) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 50048: 42aa 005c clrl %a2@(92) <== NOT EXECUTED if ((count != 0) 5004c: 4a80 tstl %d0 <== NOT EXECUTED 5004e: 671e beqs 5006e <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 50050: 2f00 movel %d0,%sp@- <== NOT EXECUTED 50052: 2f01 movel %d1,%sp@- <== NOT EXECUTED 50054: 42a7 clrl %sp@- <== NOT EXECUTED 50056: 42a7 clrl %sp@- <== NOT EXECUTED 50058: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5005a: 4eb9 0004 fdb6 jsr 4fdb6 <== 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) 50060: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 50064: 72ff moveq #-1,%d1 <== NOT EXECUTED 50066: b280 cmpl %d0,%d1 <== NOT EXECUTED 50068: 6604 bnes 5006e <== NOT EXECUTED 5006a: 70ff moveq #-1,%d0 <== NOT EXECUTED 5006c: 602e bras 5009c <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 5006e: 202b 0014 movel %a3@(20),%d0 50072: 0280 0000 0200 andil #512,%d0 50078: 6710 beqs 5008a iop->offset = the_jnode->info.file.size; 5007a: 242a 004c movel %a2@(76),%d2 5007e: 262a 0050 movel %a2@(80),%d3 50082: 2742 000c movel %d2,%a3@(12) 50086: 2743 0010 movel %d3,%a3@(16) iop->size = the_jnode->info.file.size; 5008a: 4280 clrl %d0 5008c: 222a 004c movel %a2@(76),%d1 50090: 242a 0050 movel %a2@(80),%d2 50094: 2741 0004 movel %d1,%a3@(4) 50098: 2742 0008 movel %d2,%a3@(8) return 0; } 5009c: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 500a2: 4e5e unlk %fp 500a4: 4e75 rts 0004246c : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 4246c: 4e56 ffdc linkw %fp,#-36 42470: 48d7 040c moveml %d2-%d3/%a2,%sp@ 42474: 242e 000c movel %fp@(12),%d2 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) ) ) 42478: 2002 movel %d2,%d0 4247a: 0280 0000 f000 andil #61440,%d0 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 42480: 246e 0008 moveal %fp@(8),%a2 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) ) ) 42484: 6612 bnes 42498 rtems_set_errno_and_return_minus_one( EINVAL ); 42486: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4248c: 74ff moveq #-1,%d2 <== NOT EXECUTED 4248e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42490: 7016 moveq #22,%d0 <== NOT EXECUTED 42492: 2080 movel %d0,%a0@ <== NOT EXECUTED 42494: 6000 00e0 braw 42576 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 42498: 762f moveq #47,%d3 4249a: 1012 moveb %a2@,%d0 4249c: 1200 moveb %d0,%d1 4249e: 49c1 extbl %d1 424a0: b681 cmpl %d1,%d3 424a2: 670c beqs 424b0 424a4: 163c 005c moveb #92,%d3 424a8: b681 cmpl %d1,%d3 424aa: 6704 beqs 424b0 424ac: 4a00 tstb %d0 424ae: 6622 bnes 424d2 424b0: 4878 0014 pea 14 424b4: 2079 0005 b794 moveal 5b794 ,%a0 424ba: 41e8 0018 lea %a0@(24),%a0 424be: 2f08 movel %a0,%sp@- 424c0: 486e ffe8 pea %fp@(-24) 424c4: 4eb9 0004 d48c jsr 4d48c 424ca: 4fef 000c lea %sp@(12),%sp 424ce: 7001 moveq #1,%d0 424d0: 601e bras 424f0 424d2: 4878 0014 pea 14 424d6: 2039 0005 b794 movel 5b794 ,%d0 424dc: 5880 addql #4,%d0 424de: 2f00 movel %d0,%sp@- 424e0: 486e ffe8 pea %fp@(-24) 424e4: 4eb9 0004 d48c jsr 4d48c 424ea: 4fef 000c lea %sp@(12),%sp 424ee: 4280 clrl %d0 if ( !temp_loc.ops->evalformake_h ) { 424f0: 206e fff4 moveal %fp@(-12),%a0 424f4: 2068 0004 moveal %a0@(4),%a0 424f8: 4a88 tstl %a0 424fa: 673a beqs 42536 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 424fc: 486e fffc pea %fp@(-4) 42500: 260e movel %fp,%d3 42502: 0683 ffff ffe8 addil #-24,%d3 42508: 2f03 movel %d3,%sp@- 4250a: 4872 0800 pea %a2@(00000000,%d0:l) 4250e: 4e90 jsr %a0@ &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 42510: 4fef 000c lea %sp@(12),%sp 42514: 4a80 tstl %d0 42516: 6704 beqs 4251c 42518: 74ff moveq #-1,%d2 4251a: 605a bras 42576 return -1; if ( !temp_loc.ops->mknod_h ) { 4251c: 226e fff4 moveal %fp@(-12),%a1 42520: 2069 0014 moveal %a1@(20),%a0 42524: 4a88 tstl %a0 42526: 6620 bnes 42548 rtems_filesystem_freenode( &temp_loc ); 42528: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 4252c: 4a88 tstl %a0 <== NOT EXECUTED 4252e: 6706 beqs 42536 <== NOT EXECUTED 42530: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42532: 4e90 jsr %a0@ <== NOT EXECUTED 42534: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 42536: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4253c: 74ff moveq #-1,%d2 <== NOT EXECUTED 4253e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42540: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 42546: 602e bras 42576 <== NOT EXECUTED } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 42548: 2f03 movel %d3,%sp@- 4254a: 2f2e 0014 movel %fp@(20),%sp@- 4254e: 2f2e 0010 movel %fp@(16),%sp@- 42552: 2f02 movel %d2,%sp@- 42554: 2f2e fffc movel %fp@(-4),%sp@- 42558: 4e90 jsr %a0@ rtems_filesystem_freenode( &temp_loc ); 4255a: 206e fff4 moveal %fp@(-12),%a0 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 ); 4255e: 2400 movel %d0,%d2 rtems_filesystem_freenode( &temp_loc ); 42560: 4fef 0014 lea %sp@(20),%sp 42564: 4a88 tstl %a0 42566: 670e beqs 42576 42568: 2068 001c moveal %a0@(28),%a0 4256c: 4a88 tstl %a0 4256e: 6706 beqs 42576 42570: 2f03 movel %d3,%sp@- 42572: 4e90 jsr %a0@ 42574: 588f addql #4,%sp return result; } 42576: 2002 movel %d2,%d0 42578: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 4257e: 4e5e unlk %fp 42580: 4e75 rts ... 000425a6 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 425a6: 4e56 ffd0 linkw %fp,#-48 425aa: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 425ae: 2a6e 0008 moveal %fp@(8),%a5 425b2: 286e 000c moveal %fp@(12),%a4 425b6: 282e 0010 movel %fp@(16),%d4 425ba: 266e 0014 moveal %fp@(20),%a3 425be: 242e 0018 movel %fp@(24),%d2 /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 425c2: 4a8c tstl %a4 425c4: 6706 beqs 425cc /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 425c6: 7001 moveq #1,%d0 425c8: b084 cmpl %d4,%d0 425ca: 6412 bccs 425de options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 425cc: 4eb9 0004 cc6c jsr 4cc6c <__errno> 425d2: 7416 moveq #22,%d2 425d4: 72ff moveq #-1,%d1 425d6: 2040 moveal %d0,%a0 425d8: 2082 movel %d2,%a0@ return -1; 425da: 6000 01b4 braw 42790 } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 425de: 4aac 0024 tstl %a4@(36) 425e2: 660e bnes 425f2 errno = ENOTSUP; 425e4: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 425ea: 97cb subal %a3,%a3 <== NOT EXECUTED 425ec: 4283 clrl %d3 <== NOT EXECUTED 425ee: 6000 00a8 braw 42698 <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 425f2: 4a8b tstl %a3 425f4: 6604 bnes 425fa 425f6: 706c moveq #108,%d0 425f8: 6010 bras 4260a size += strlen( device ) + 1; 425fa: 2f0b movel %a3,%sp@- <== NOT EXECUTED 425fc: 4eb9 0004 e038 jsr 4e038 <== NOT EXECUTED 42602: 588f addql #4,%sp <== NOT EXECUTED 42604: 0680 0000 006d addil #109,%d0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 4260a: 2f00 movel %d0,%sp@- 4260c: 4eb9 0004 944c jsr 4944c if ( !temp_mt_entry ) { 42612: 588f addql #4,%sp */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 42614: 2440 moveal %d0,%a2 42616: 2600 movel %d0,%d3 if ( !temp_mt_entry ) { 42618: 6612 bnes 4262c errno = ENOMEM; 4261a: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 42620: 72ff moveq #-1,%d1 <== NOT EXECUTED 42622: 2040 moveal %d0,%a0 <== NOT EXECUTED 42624: 700c moveq #12,%d0 <== NOT EXECUTED 42626: 2080 movel %d0,%a0@ <== NOT EXECUTED return -1; 42628: 6000 0166 braw 42790 <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 4262c: 2544 0030 movel %d4,%a2@(48) if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 42630: 2540 002c movel %d0,%a2@(44) temp_mt_entry->options = options; if ( device ) { 42634: 4a8b tstl %a3 42636: 6718 beqs 42650 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 42638: 2f0b movel %a3,%sp@- <== NOT EXECUTED temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 4263a: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 42640: 2f00 movel %d0,%sp@- <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 42642: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 42646: 4eb9 0004 dbec jsr 4dbec <== NOT EXECUTED 4264c: 508f addql #8,%sp <== NOT EXECUTED 4264e: 6004 bras 42654 <== NOT EXECUTED } else temp_mt_entry->dev = 0; 42650: 42aa 0068 clrl %a2@(104) /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 42654: 4a82 tstl %d2 42656: 6700 00b6 beqw 4270e if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 4265a: 2f02 movel %d2,%sp@- * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 4265c: 7801 moveq #1,%d4 4265e: 47ee ffec lea %fp@(-20),%a3 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 42662: 4eb9 0004 e038 jsr 4e038 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 42668: 2e84 movel %d4,%sp@ 4266a: 2f0b movel %a3,%sp@- 4266c: 4878 0007 pea 7 42670: 2f00 movel %d0,%sp@- 42672: 2f02 movel %d2,%sp@- 42674: 4eb9 0004 223e jsr 4223e 4267a: 4fef 0014 lea %sp@(20),%sp 4267e: 72ff moveq #-1,%d1 42680: b280 cmpl %d0,%d1 42682: 6700 00e4 beqw 42768 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 42686: 206e fff8 moveal %fp@(-8),%a0 4268a: 2068 0010 moveal %a0@(16),%a0 4268e: 4a88 tstl %a0 42690: 6612 bnes 426a4 errno = ENOTSUP; 42692: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 42698: 2040 moveal %d0,%a0 <== NOT EXECUTED 4269a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED goto cleanup_and_bail; 426a0: 6000 00c8 braw 4276a <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 426a4: 2f0b movel %a3,%sp@- 426a6: 4e90 jsr %a0@ 426a8: 588f addql #4,%sp 426aa: 7201 moveq #1,%d1 426ac: b280 cmpl %d0,%d1 426ae: 6710 beqs 426c0 errno = ENOTDIR; 426b0: 4eb9 0004 cc6c jsr 4cc6c <__errno> 426b6: 7214 moveq #20,%d1 426b8: 2040 moveal %d0,%a0 426ba: 2081 movel %d1,%a0@ goto cleanup_and_bail; 426bc: 6000 00ac braw 4276a /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 426c0: 2079 0005 cdbc moveal 5cdbc ,%a0 !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 ) 426c6: 202e ffec movel %fp@(-20),%d0 426ca: 6008 bras 426d4 426cc: b0a8 001c cmpl %a0@(28),%d0 426d0: 670e beqs 426e0 * 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 ) { 426d2: 2050 moveal %a0@,%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 426d4: b1fc 0005 cdc0 cmpal #380352,%a0 426da: 66f0 bnes 426cc 426dc: 6000 00be braw 4279c /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 426e0: 4eb9 0004 cc6c jsr 4cc6c <__errno> 426e6: 47ee ffec lea %fp@(-20),%a3 426ea: 2040 moveal %d0,%a0 426ec: 7010 moveq #16,%d0 426ee: 2080 movel %d0,%a0@ goto cleanup_and_bail; 426f0: 6078 bras 4276a * 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; 426f2: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 426f8: 47ee ffec lea %fp@(-20),%a3 <== NOT EXECUTED 426fc: 609a bras 42698 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 426fe: 2f0a movel %a2,%sp@- 42700: 47ee ffec lea %fp@(-20),%a3 42704: 4e90 jsr %a0@ 42706: 588f addql #4,%sp 42708: 4a80 tstl %d0 4270a: 6720 beqs 4272c 4270c: 605c bras 4276a <== 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; 4270e: 42aa 001c clrl %a2@(28) temp_mt_entry->mt_fs_root.ops = NULL; temp_mt_entry->mt_point_node.node_access = NULL; 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; 42712: 97cb subal %a3,%a3 * 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; temp_mt_entry->mt_fs_root.handlers = NULL; 42714: 42aa 0024 clrl %a2@(36) temp_mt_entry->mt_fs_root.ops = NULL; 42718: 42aa 0028 clrl %a2@(40) temp_mt_entry->mt_point_node.node_access = NULL; 4271c: 42aa 0008 clrl %a2@(8) temp_mt_entry->mt_point_node.handlers = NULL; 42720: 42aa 0010 clrl %a2@(16) temp_mt_entry->mt_point_node.ops = NULL; 42724: 42aa 0014 clrl %a2@(20) temp_mt_entry->mt_point_node.mt_entry = NULL; 42728: 42aa 0018 clrl %a2@(24) } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 4272c: 2f0a movel %a2,%sp@- 4272e: 206c 0024 moveal %a4@(36),%a0 42732: 4e90 jsr %a0@ 42734: 588f addql #4,%sp 42736: 4a80 tstl %d0 42738: 6714 beqs 4274e /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 4273a: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4273e: 2068 0028 moveal %a0@(40),%a0 <== NOT EXECUTED 42742: 4a88 tstl %a0 <== NOT EXECUTED 42744: 6724 beqs 4276a <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 42746: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42748: 4e90 jsr %a0@ <== NOT EXECUTED 4274a: 588f addql #4,%sp <== NOT EXECUTED 4274c: 601c bras 4276a <== 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 ); 4274e: 2f0a movel %a2,%sp@- 42750: 4879 0005 cdbc pea 5cdbc 42756: 4eb9 0004 58d0 jsr 458d0 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 4275c: 508f addql #8,%sp 4275e: 4a8d tstl %a5 42760: 6702 beqs 42764 *mt_entry = temp_mt_entry; 42762: 2a8a movel %a2,%a5@ 42764: 4281 clrl %d1 42766: 6028 bras 42790 42768: 97cb subal %a3,%a3 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4276a: 2f03 movel %d3,%sp@- 4276c: 4eb9 0004 8f48 jsr 48f48 if ( loc_to_free ) 42772: 588f addql #4,%sp 42774: 4a8b tstl %a3 42776: 6716 beqs 4278e rtems_filesystem_freenode( loc_to_free ); 42778: 206b 000c moveal %a3@(12),%a0 4277c: 4a88 tstl %a0 4277e: 670e beqs 4278e 42780: 2068 001c moveal %a0@(28),%a0 42784: 4a88 tstl %a0 42786: 6706 beqs 4278e 42788: 2f0b movel %a3,%sp@- 4278a: 4e90 jsr %a0@ 4278c: 588f addql #4,%sp 4278e: 72ff moveq #-1,%d1 return -1; } 42790: 2001 movel %d1,%d0 42792: 4cee 3c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a5 42798: 4e5e unlk %fp 4279a: 4e75 rts * 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; 4279c: 226e fff8 moveal %fp@(-8),%a1 * 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; 427a0: 256e fff4 0010 movel %fp@(-12),%a2@(16) temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 427a6: 256e fffc 0018 movel %fp@(-4),%a2@(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 ){ 427ac: 2069 0020 moveal %a1@(32),%a0 * 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; 427b0: 2540 0008 movel %d0,%a2@(8) temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 427b4: 2549 0014 movel %a1,%a2@(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 ){ 427b8: 4a88 tstl %a0 427ba: 6600 ff42 bnew 426fe 427be: 6000 ff32 braw 426f2 <== NOT EXECUTED ... 000428ae : */ int newlib_free_buffers( FILE *fp ) { 428ae: 4e56 0000 linkw %fp,#0 428b2: 2f0a movel %a2,%sp@- 428b4: 246e 0008 moveal %fp@(8),%a2 switch ( fileno(fp) ) { 428b8: 2f0a movel %a2,%sp@- 428ba: 4eb9 0004 d000 jsr 4d000 428c0: 588f addql #4,%sp 428c2: 7202 moveq #2,%d1 428c4: b280 cmpl %d0,%d1 428c6: 652a bcss 428f2 case 0: case 1: case 2: if (fp->_flags & __SMBF) { 428c8: 302a 000c movew %a2@(12),%d0 428cc: 48c0 extl %d0 428ce: 4a00 tstb %d0 428d0: 6c2a bges 428fc free( fp->_bf._base ); 428d2: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 428d6: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; 428dc: 588f addql #4,%sp <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 428de: 302a 000c movew %a2@(12),%d0 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 428e2: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 428e6: 0880 0007 bclr #7,%d0 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 428ea: 4292 clrl %a2@ <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 428ec: 3540 000c movew %d0,%a2@(12) <== NOT EXECUTED 428f0: 600a bras 428fc <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 428f2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 428f4: 4eb9 0004 cdaa jsr 4cdaa <== NOT EXECUTED 428fa: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 428fc: 246e fffc moveal %fp@(-4),%a2 42900: 4280 clrl %d0 42902: 4e5e unlk %fp 42904: 4e75 rts 00042764 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 42764: 4e56 0000 linkw %fp,#0 42768: 2f02 movel %d2,%sp@- 4276a: 242e 0008 movel %fp@(8),%d2 rtems_device_driver status; if ( !initialized ) { 4276e: 4a39 0005 d7cc tstb 5d7cc 42774: 662e bnes 427a4 initialized = 1; status = rtems_io_register_name( 42776: 42a7 clrl %sp@- ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 42778: 7001 moveq #1,%d0 status = rtems_io_register_name( 4277a: 2f02 movel %d2,%sp@- 4277c: 4879 0005 b324 pea 5b324 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 42782: 13c0 0005 d7cc moveb %d0,5d7cc status = rtems_io_register_name( 42788: 4eb9 0004 2884 jsr 42884 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 4278e: 4fef 000c lea %sp@(12),%sp 42792: 4a80 tstl %d0 42794: 6708 beqs 4279e rtems_fatal_error_occurred(status); 42796: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42798: 4eb9 0004 6014 jsr 46014 <== NOT EXECUTED NULL_major = major; 4279e: 23c2 0005 dfec movel %d2,5dfec } return RTEMS_SUCCESSFUL; } 427a4: 242e fffc movel %fp@(-4),%d2 427a8: 4280 clrl %d0 427aa: 4e5e unlk %fp 427ac: 4e75 rts ... 00042742 : rtems_device_driver null_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp ) { 42742: 4e56 0000 linkw %fp,#0 42746: 206e 0010 moveal %fp@(16),%a0 rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 4274a: 4a88 tstl %a0 4274c: 6706 beqs 42754 rw_args->bytes_moved = rw_args->count; 4274e: 2168 0010 0018 movel %a0@(16),%a0@(24) <== NOT EXECUTED return NULL_SUCCESSFUL; } 42754: 4280 clrl %d0 42756: 4e5e unlk %fp 42758: 4e75 rts 00042b10 : int open( const char *pathname, int flags, ... ) { 42b10: 4e56 ffc8 linkw %fp,#-56 42b14: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@ 42b18: 242e 000c movel %fp@(12),%d2 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 42b1c: 2002 movel %d2,%d0 42b1e: 5280 addql #1,%d0 int open( const char *pathname, int flags, ... ) { 42b20: 262e 0008 movel %fp@(8),%d3 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 42b24: 0800 0000 btst #0,%d0 42b28: 6604 bnes 42b2e 42b2a: 4284 clrl %d4 42b2c: 6002 bras 42b30 42b2e: 7804 moveq #4,%d4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 42b30: 0800 0001 btst #1,%d0 42b34: 6704 beqs 42b3a eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 42b36: 7002 moveq #2,%d0 42b38: 8880 orl %d0,%d4 va_start(ap, flags); mode = va_arg( ap, int ); 42b3a: 2a2e 0010 movel %fp@(16),%d5 * 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(); 42b3e: 4eb9 0004 92dc jsr 492dc 42b44: 2440 moveal %d0,%a2 if ( iop == 0 ) { 42b46: 4a80 tstl %d0 42b48: 6606 bnes 42b50 42b4a: 7417 moveq #23,%d2 42b4c: 6000 0190 braw 42cde /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 42b50: 2f03 movel %d3,%sp@- 42b52: 2c3c 0004 e038 movel #319544,%d6 42b58: 2046 moveal %d6,%a0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 42b5a: 47ee ffec lea %fp@(-20),%a3 42b5e: 4bf9 0004 223e lea 4223e ,%a5 pathname, strlen( pathname ), eval_flags, &loc, true ); 42b64: 4e90 jsr %a0@ /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 42b66: 7201 moveq #1,%d1 42b68: 2e81 movel %d1,%sp@ 42b6a: 2f0b movel %a3,%sp@- 42b6c: 2f04 movel %d4,%sp@- 42b6e: 2f00 movel %d0,%sp@- 42b70: 2f03 movel %d3,%sp@- 42b72: 4e95 jsr %a5@ pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 42b74: 4fef 0014 lea %sp@(20),%sp 42b78: 72ff moveq #-1,%d1 42b7a: b280 cmpl %d0,%d1 42b7c: 6666 bnes 42be4 if ( errno != ENOENT ) { 42b7e: 49f9 0004 cc6c lea 4cc6c <__errno>,%a4 42b84: 4e94 jsr %a4@ 42b86: 7202 moveq #2,%d1 42b88: 2040 moveal %d0,%a0 42b8a: b290 cmpl %a0@,%d1 42b8c: 662a bnes 42bb8 rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 42b8e: 0802 0009 btst #9,%d2 42b92: 6608 bnes 42b9c 42b94: 97cb subal %a3,%a3 42b96: 7402 moveq #2,%d2 42b98: 6000 011c braw 42cb6 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 42b9c: 42a7 clrl %sp@- 42b9e: 2005 movel %d5,%d0 42ba0: 42a7 clrl %sp@- 42ba2: 08c0 000f bset #15,%d0 42ba6: 2f00 movel %d0,%sp@- 42ba8: 2f03 movel %d3,%sp@- 42baa: 4eb9 0004 246c jsr 4246c if ( rc ) { 42bb0: 4fef 0010 lea %sp@(16),%sp 42bb4: 4a80 tstl %d0 42bb6: 6708 beqs 42bc0 rc = errno; 42bb8: 4e94 jsr %a4@ 42bba: 97cb subal %a3,%a3 42bbc: 6000 009c braw 42c5a 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 ); 42bc0: 2f03 movel %d3,%sp@- 42bc2: 2046 moveal %d6,%a0 42bc4: 4e90 jsr %a0@ 42bc6: 7201 moveq #1,%d1 42bc8: 2e81 movel %d1,%sp@ 42bca: 2f0b movel %a3,%sp@- 42bcc: 42a7 clrl %sp@- 42bce: 2f00 movel %d0,%sp@- 42bd0: 2f03 movel %d3,%sp@- 42bd2: 4e95 jsr %a5@ if ( status != 0 ) { /* The file did not exist */ 42bd4: 4fef 0014 lea %sp@(20),%sp 42bd8: 4a80 tstl %d0 42bda: 671e beqs 42bfa 42bdc: 97cb subal %a3,%a3 <== NOT EXECUTED 42bde: 740d moveq #13,%d2 <== NOT EXECUTED 42be0: 6000 00d4 braw 42cb6 <== NOT EXECUTED rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 42be4: 2002 movel %d2,%d0 42be6: 0280 0000 0a00 andil #2560,%d0 42bec: 0c80 0000 0a00 cmpil #2560,%d0 42bf2: 6606 bnes 42bfa 42bf4: 7411 moveq #17,%d2 42bf6: 6000 00be braw 42cb6 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 42bfa: 282a 0014 movel %a2@(20),%d4 iop->pathinfo = loc; 42bfe: 47ee ffec lea %fp@(-20),%a3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 42c02: 256e fff4 003c movel %fp@(-12),%a2@(60) iop->file_info = loc.node_access; 42c08: 256e ffec 0038 movel %fp@(-20),%a2@(56) iop->flags |= rtems_libio_fcntl_flags( flags ); 42c0e: 2f02 movel %d2,%sp@- 42c10: 4eb9 0004 937c jsr 4937c 42c16: 8084 orl %d4,%d0 42c18: 2540 0014 movel %d0,%a2@(20) iop->pathinfo = loc; 42c1c: 4878 0014 pea 14 42c20: 2f0b movel %a3,%sp@- 42c22: 486a 0018 pea %a2@(24) 42c26: 4eb9 0004 d48c jsr 4d48c if ( !iop->handlers || !iop->handlers->open_h ) { 42c2c: 206a 003c moveal %a2@(60),%a0 42c30: 4fef 0010 lea %sp@(16),%sp 42c34: 4a88 tstl %a0 42c36: 6700 00c8 beqw 42d00 42c3a: 2050 moveal %a0@,%a0 42c3c: 4a88 tstl %a0 42c3e: 6700 00c0 beqw 42d00 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 42c42: 2f05 movel %d5,%sp@- 42c44: 2f02 movel %d2,%sp@- 42c46: 2f03 movel %d3,%sp@- 42c48: 2f0a movel %a2,%sp@- 42c4a: 4e90 jsr %a0@ if ( rc ) { 42c4c: 4fef 0010 lea %sp@(16),%sp 42c50: 4a80 tstl %d0 42c52: 670c beqs 42c60 rc = errno; 42c54: 4eb9 0004 cc6c jsr 4cc6c <__errno> 42c5a: 2040 moveal %d0,%a0 42c5c: 2410 movel %a0@,%d2 goto done; 42c5e: 6052 bras 42cb2 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 42c60: 0802 000a btst #10,%d2 42c64: 6700 0086 beqw 42cec rc = ftruncate( iop - rtems_libio_iops, 0 ); 42c68: 42a7 clrl %sp@- 42c6a: 200a movel %a2,%d0 42c6c: 90b9 0005 cd84 subl 5cd84 ,%d0 42c72: ec80 asrl #6,%d0 42c74: 42a7 clrl %sp@- 42c76: 2f00 movel %d0,%sp@- 42c78: 4eb9 0004 8fd0 jsr 48fd0 if ( rc ) { 42c7e: 4fef 000c lea %sp@(12),%sp /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 42c82: 2400 movel %d0,%d2 if ( rc ) { 42c84: 6766 beqs 42cec if(errno) rc = errno; 42c86: 47f9 0004 cc6c lea 4cc6c <__errno>,%a3 <== NOT EXECUTED 42c8c: 4e93 jsr %a3@ <== NOT EXECUTED 42c8e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42c90: 4a90 tstl %a0@ <== NOT EXECUTED 42c92: 6706 beqs 42c9a <== NOT EXECUTED 42c94: 4e93 jsr %a3@ <== NOT EXECUTED 42c96: 2040 moveal %d0,%a0 <== NOT EXECUTED 42c98: 2410 movel %a0@,%d2 <== NOT EXECUTED close( iop - rtems_libio_iops ); 42c9a: 200a movel %a2,%d0 <== NOT EXECUTED 42c9c: 90b9 0005 cd84 subl 5cd84 ,%d0 <== NOT EXECUTED 42ca2: 97cb subal %a3,%a3 <== NOT EXECUTED 42ca4: ec80 asrl #6,%d0 <== NOT EXECUTED 42ca6: 95ca subal %a2,%a2 <== NOT EXECUTED 42ca8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42caa: 4eb9 0004 8eb4 jsr 48eb4 <== NOT EXECUTED 42cb0: 588f addql #4,%sp <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 42cb2: 4a82 tstl %d2 42cb4: 6736 beqs 42cec if ( iop ) 42cb6: 4a8a tstl %a2 42cb8: 670a beqs 42cc4 rtems_libio_free( iop ); 42cba: 2f0a movel %a2,%sp@- 42cbc: 4eb9 0004 927e jsr 4927e 42cc2: 588f addql #4,%sp if ( loc_to_free ) 42cc4: 4a8b tstl %a3 42cc6: 6716 beqs 42cde rtems_filesystem_freenode( loc_to_free ); 42cc8: 206b 000c moveal %a3@(12),%a0 42ccc: 4a88 tstl %a0 42cce: 670e beqs 42cde 42cd0: 2068 001c moveal %a0@(28),%a0 42cd4: 4a88 tstl %a0 42cd6: 6706 beqs 42cde 42cd8: 2f0b movel %a3,%sp@- 42cda: 4e90 jsr %a0@ 42cdc: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( rc ); 42cde: 4eb9 0004 cc6c jsr 4cc6c <__errno> 42ce4: 2040 moveal %d0,%a0 42ce6: 70ff moveq #-1,%d0 42ce8: 2082 movel %d2,%a0@ 42cea: 600a bras 42cf6 } return iop - rtems_libio_iops; 42cec: 200a movel %a2,%d0 42cee: 90b9 0005 cd84 subl 5cd84 ,%d0 42cf4: ec80 asrl #6,%d0 } 42cf6: 4cee 3c7c ffc8 moveml %fp@(-56),%d2-%d6/%a2-%a5 42cfc: 4e5e unlk %fp 42cfe: 4e75 rts if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 42d00: 47ee ffec lea %fp@(-20),%a3 <== NOT EXECUTED 42d04: 243c 0000 0086 movel #134,%d2 <== NOT EXECUTED 42d0a: 60aa bras 42cb6 <== NOT EXECUTED 00042aa0 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 42aa0: 4e56 0000 linkw %fp,#0 42aa4: 2f0a movel %a2,%sp@- int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 42aa6: 45f9 0004 2b10 lea 42b10 ,%a2 42aac: 42a7 clrl %sp@- 42aae: 42a7 clrl %sp@- 42ab0: 4879 0005 a0ac pea 5a0ac 42ab6: 4e92 jsr %a2@ 42ab8: 4fef 000c lea %sp@(12),%sp 42abc: 72ff moveq #-1,%d1 42abe: b280 cmpl %d0,%d1 42ac0: 6744 beqs 42b06 /* * 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) 42ac2: 42a7 clrl %sp@- 42ac4: 4878 0001 pea 1 42ac8: 4879 0005 a0ac pea 5a0ac 42ace: 4e92 jsr %a2@ 42ad0: 4fef 000c lea %sp@(12),%sp 42ad4: 72ff moveq #-1,%d1 42ad6: b280 cmpl %d0,%d1 42ad8: 6608 bnes 42ae2 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 42ada: 2f3c 5554 4431 movel #1431585841,%sp@- <== NOT EXECUTED 42ae0: 601e bras 42b00 <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 42ae2: 42a7 clrl %sp@- 42ae4: 4878 0001 pea 1 42ae8: 4879 0005 a0ac pea 5a0ac 42aee: 4e92 jsr %a2@ 42af0: 4fef 000c lea %sp@(12),%sp 42af4: 72ff moveq #-1,%d1 42af6: b280 cmpl %d0,%d1 42af8: 660c bnes 42b06 rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 42afa: 2f3c 5554 4432 movel #1431585842,%sp@- <== NOT EXECUTED 42b00: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED } 42b06: 246e fffc moveal %fp@(-4),%a2 42b0a: 4e5e unlk %fp 42b0c: 4e75 rts ... 00043458 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 43458: 4e56 fff0 linkw %fp,#-16 4345c: 48d7 040c moveml %d2-%d3/%a2,%sp@ 43460: 246e 000c moveal %fp@(12),%a2 43464: 242e 0008 movel %fp@(8),%d2 int i; if (tty->termios.c_oflag & OPOST) { 43468: 202a 0034 movel %a2@(52),%d0 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 4346c: 1d42 fffe moveb %d2,%fp@(-2) int i; if (tty->termios.c_oflag & OPOST) { 43470: 0800 0000 btst #0,%d0 43474: 6700 010c beqw 43582 switch (c) { 43478: 4281 clrl %d1 4347a: 1202 moveb %d2,%d1 4347c: 7609 moveq #9,%d3 4347e: b681 cmpl %d1,%d3 43480: 6776 beqs 434f8 43482: 650e bcss 43492 43484: 163c 0008 moveb #8,%d3 <== NOT EXECUTED 43488: b681 cmpl %d1,%d3 <== NOT EXECUTED 4348a: 6600 00b0 bnew 4353c <== NOT EXECUTED 4348e: 6000 009e braw 4352e <== NOT EXECUTED 43492: 760a moveq #10,%d3 43494: b681 cmpl %d1,%d3 43496: 670c beqs 434a4 43498: 163c 000d moveb #13,%d3 4349c: b681 cmpl %d1,%d3 4349e: 6600 009c bnew 4353c 434a2: 602c bras 434d0 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) 434a4: 0800 0005 btst #5,%d0 434a8: 6704 beqs 434ae tty->column = 0; 434aa: 42aa 0028 clrl %a2@(40) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { 434ae: 7004 moveq #4,%d0 434b0: c0aa 0034 andl %a2@(52),%d0 434b4: 6700 00cc beqw 43582 rtems_termios_puts ("\r", 1, tty); 434b8: 2f0a movel %a2,%sp@- 434ba: 4878 0001 pea 1 434be: 4879 0005 a5c0 pea 5a5c0 434c4: 4eb9 0004 335e jsr 4335e tty->column = 0; 434ca: 4fef 000c lea %sp@(12),%sp 434ce: 6020 bras 434f0 } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 434d0: 0800 0004 btst #4,%d0 <== NOT EXECUTED 434d4: 6708 beqs 434de <== NOT EXECUTED 434d6: 4aaa 0028 tstl %a2@(40) <== NOT EXECUTED 434da: 6700 00ba beqw 43596 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 434de: 44c0 movew %d0,%ccr <== NOT EXECUTED 434e0: 6a0e bpls 434f0 <== NOT EXECUTED c = '\n'; 434e2: 720a moveq #10,%d1 <== NOT EXECUTED 434e4: 1d41 fffe moveb %d1,%fp@(-2) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 434e8: 0800 0005 btst #5,%d0 <== NOT EXECUTED 434ec: 6700 0094 beqw 43582 <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; 434f0: 42aa 0028 clrl %a2@(40) break; 434f4: 6000 008c braw 43582 case '\t': i = 8 - (tty->column & 7); 434f8: 222a 0028 movel %a2@(40),%d1 434fc: 7407 moveq #7,%d2 434fe: 307c 0008 moveaw #8,%a0 43502: c481 andl %d1,%d2 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 43504: 0280 0000 1800 andil #6144,%d0 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 4350a: 91c2 subal %d2,%a0 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 4350c: 0c80 0000 1800 cmpil #6144,%d0 43512: 6612 bnes 43526 tty->column += i; rtems_termios_puts ( " ", i, tty); 43514: 2f0a movel %a2,%sp@- break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 43516: d288 addl %a0,%d1 43518: 2541 0028 movel %d1,%a2@(40) rtems_termios_puts ( " ", i, tty); 4351c: 2f08 movel %a0,%sp@- 4351e: 4879 0005 a5c2 pea 5a5c2 43524: 6066 bras 4358c return; } tty->column += i; 43526: d1c1 addal %d1,%a0 <== NOT EXECUTED 43528: 2548 0028 movel %a0,%a2@(40) <== NOT EXECUTED break; 4352c: 6054 bras 43582 <== NOT EXECUTED case '\b': if (tty->column > 0) 4352e: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43532: 6f4e bles 43582 <== NOT EXECUTED tty->column--; 43534: 5380 subql #1,%d0 <== NOT EXECUTED 43536: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4353a: 6046 bras 43582 <== NOT EXECUTED break; default: if (tty->termios.c_oflag & OLCUC) 4353c: 0800 0001 btst #1,%d0 43540: 6724 beqs 43566 c = toupper(c); 43542: 4280 clrl %d0 <== NOT EXECUTED 43544: 1002 moveb %d2,%d0 <== NOT EXECUTED 43546: 7403 moveq #3,%d2 <== NOT EXECUTED 43548: 7602 moveq #2,%d3 <== NOT EXECUTED 4354a: 2079 0005 b85c moveal 5b85c <__ctype_ptr__>,%a0 <== NOT EXECUTED 43550: 1230 0801 moveb %a0@(00000001,%d0:l),%d1 <== NOT EXECUTED 43554: 49c1 extbl %d1 <== NOT EXECUTED 43556: c282 andl %d2,%d1 <== NOT EXECUTED 43558: b681 cmpl %d1,%d3 <== NOT EXECUTED 4355a: 6606 bnes 43562 <== NOT EXECUTED 4355c: 0680 ffff ffe0 addil #-32,%d0 <== NOT EXECUTED 43562: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED if (!iscntrl(c)) 43566: 4280 clrl %d0 43568: 102e fffe moveb %fp@(-2),%d0 4356c: 2079 0005 b85c moveal 5b85c <__ctype_ptr__>,%a0 43572: 1030 0801 moveb %a0@(00000001,%d0:l),%d0 43576: 49c0 extbl %d0 43578: 0800 0005 btst #5,%d0 4357c: 6604 bnes 43582 tty->column++; 4357e: 52aa 0028 addql #1,%a2@(40) break; } } rtems_termios_puts (&c, 1, tty); 43582: 2f0a movel %a2,%sp@- 43584: 4878 0001 pea 1 43588: 486e fffe pea %fp@(-2) 4358c: 4eb9 0004 335e jsr 4335e 43592: 4fef 000c lea %sp@(12),%sp } 43596: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 4359c: 4e5e unlk %fp 4359e: 4e75 rts 0004c3c8 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4c3c8: 4e56 ffd0 linkw %fp,#-48 4c3cc: 48d7 040c moveml %d2-%d3/%a2,%sp@ 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) 4c3d0: 4878 0001 pea 1 4c3d4: 240e movel %fp,%d2 4c3d6: 0682 ffff ffdc addil #-36,%d2 4c3dc: 2f02 movel %d2,%sp@- 4c3de: 4878 0007 pea 7 4c3e2: 4878 0003 pea 3 4c3e6: 4879 0005 ac70 pea 5ac70 <__FUNCTION__.5834+0x11> * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4c3ec: 246e 0008 moveal %fp@(8),%a2 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) 4c3f0: 4eb9 0004 223e jsr 4223e 4c3f6: 4fef 0014 lea %sp@(20),%sp 4c3fa: 4a80 tstl %d0 4c3fc: 672a beqs 4c428 != 0) { if (errno != ENOENT) 4c3fe: 4eb9 0004 cc6c jsr 4cc6c <__errno> 4c404: 7202 moveq #2,%d1 4c406: 2040 moveal %d0,%a0 4c408: b290 cmpl %a0@,%d1 4c40a: 6600 010e bnew 4c51a return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 4c40e: 4878 03ff pea 3ff 4c412: 4879 0005 ac70 pea 5ac70 <__FUNCTION__.5834+0x11> 4c418: 4eb9 0004 244c jsr 4244c 4c41e: 508f addql #8,%sp 4c420: 4a80 tstl %d0 4c422: 671a beqs 4c43e 4c424: 6000 00f4 braw 4c51a <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); 4c428: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED 4c42c: 4a88 tstl %a0 <== NOT EXECUTED 4c42e: 670e beqs 4c43e <== NOT EXECUTED 4c430: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c434: 4a88 tstl %a0 <== NOT EXECUTED 4c436: 6706 beqs 4c43e <== NOT EXECUTED 4c438: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c43a: 4e90 jsr %a0@ <== NOT EXECUTED 4c43c: 588f addql #4,%sp <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4c43e: 4878 000a pea a 4c442: 240e movel %fp,%d2 4c444: 4879 0005 ac75 pea 5ac75 <__FUNCTION__.5834+0x16> 4c44a: 0682 ffff fff1 addil #-15,%d2 4c450: 2f02 movel %d2,%sp@- 4c452: 4eb9 0004 d48c jsr 4d48c sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4c458: 3039 0005 c698 movew 5c698 ,%d0 4c45e: 2200 movel %d0,%d1 4c460: 5281 addql #1,%d1 4c462: 3f00 movew %d0,%sp@- 4c464: 33c1 0005 c698 movew %d1,5c698 4c46a: 4267 clrw %sp@- 4c46c: 4879 0005 ac80 pea 5ac80 <__FUNCTION__.5834+0x21> 4c472: 486e fffb pea %fp@(-5) 4c476: 4eb9 0004 d964 jsr 4d964 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 4c47c: 4878 0180 pea 180 4c480: 2f02 movel %d2,%sp@- 4c482: 4eb9 0004 c57c jsr 4c57c 4c488: 4fef 0020 lea %sp@(32),%sp 4c48c: 4a80 tstl %d0 4c48e: 670a beqs 4c49a if (errno != EEXIST){ 4c490: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4c496: 6000 0082 braw 4c51a <== NOT EXECUTED return -1; sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); 4c49a: 4878 4000 pea 4000 4c49e: 2f02 movel %d2,%sp@- 4c4a0: 4eb9 0004 2b10 jsr 42b10 if (filsdes[0] < 0) { 4c4a6: 508f addql #8,%sp 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); 4c4a8: 2480 movel %d0,%a2@ if (filsdes[0] < 0) { 4c4aa: 6c0e bges 4c4ba err = errno; 4c4ac: 4eb9 0004 cc6c jsr 4cc6c <__errno> 4c4b2: 2040 moveal %d0,%a0 4c4b4: 2610 movel %a0@,%d3 /* 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); 4c4b6: 2f02 movel %d2,%sp@- 4c4b8: 604e bras 4c508 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 4c4ba: b0b9 0005 b684 cmpl 5b684 ,%d0 <== NOT EXECUTED 4c4c0: 6504 bcss 4c4c6 <== NOT EXECUTED 4c4c2: 91c8 subal %a0,%a0 <== NOT EXECUTED 4c4c4: 600a bras 4c4d0 <== NOT EXECUTED 4c4c6: 2079 0005 cd84 moveal 5cd84 ,%a0 <== NOT EXECUTED 4c4cc: ed88 lsll #6,%d0 <== NOT EXECUTED 4c4ce: d1c0 addal %d0,%a0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 4c4d0: 70fe moveq #-2,%d0 <== NOT EXECUTED 4c4d2: c1a8 0014 andl %d0,%a0@(20) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4c4d6: 4878 0001 pea 1 <== NOT EXECUTED 4c4da: 486e fff1 pea %fp@(-15) <== NOT EXECUTED 4c4de: 4eb9 0004 2b10 jsr 42b10 <== NOT EXECUTED if (filsdes[1] < 0) { 4c4e4: 508f addql #8,%sp <== 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); 4c4e6: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED if (filsdes[1] < 0) { 4c4ea: 6d04 blts 4c4f0 <== NOT EXECUTED 4c4ec: 4283 clrl %d3 <== NOT EXECUTED 4c4ee: 6014 bras 4c504 <== NOT EXECUTED err = errno; 4c4f0: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4c4f6: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c4f8: 2610 movel %a0@,%d3 <== NOT EXECUTED close(filsdes[0]); 4c4fa: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4c4fc: 4eb9 0004 8eb4 jsr 48eb4 <== NOT EXECUTED 4c502: 588f addql #4,%sp <== NOT EXECUTED } unlink(fifopath); 4c504: 486e fff1 pea %fp@(-15) <== NOT EXECUTED 4c508: 4eb9 0004 c59c jsr 4c59c 4c50e: 588f addql #4,%sp } rtems_set_errno_and_return_minus_one(err); 4c510: 4eb9 0004 cc6c jsr 4cc6c <__errno> 4c516: 2040 moveal %d0,%a0 4c518: 2083 movel %d3,%a0@ } 4c51a: 70ff moveq #-1,%d0 4c51c: 4cee 040c ffd0 moveml %fp@(-48),%d2-%d3/%a2 4c522: 4e5e unlk %fp 4c524: 4e75 rts ... 0004b110 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 4b110: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b114: 2f0b movel %a3,%sp@- <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 4b116: 47f9 0004 bd4c lea 4bd4c ,%a3 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 4b11c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b11e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 4b122: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b126: 4e93 jsr %a3@ <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 4b128: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b12c: 4e93 jsr %a3@ <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 4b12e: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b132: 4eb9 0004 4e94 jsr 44e94 <== NOT EXECUTED free(pipe->Buffer); 4b138: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4b13a: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED free(pipe); } 4b140: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED { rtems_barrier_delete(pipe->readBarrier); rtems_barrier_delete(pipe->writeBarrier); rtems_semaphore_delete(pipe->Semaphore); free(pipe->Buffer); free(pipe); 4b144: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b148: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4b14c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b150: 4e5e unlk %fp <== NOT EXECUTED { rtems_barrier_delete(pipe->readBarrier); rtems_barrier_delete(pipe->writeBarrier); rtems_semaphore_delete(pipe->Semaphore); free(pipe->Buffer); free(pipe); 4b152: 4ef9 0004 8f48 jmp 48f48 <== NOT EXECUTED 0004adba : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4adba: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (cmd == FIONREAD) { 4adbe: 203c 4004 667f movel #1074030207,%d0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4adc4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4adc6: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED 4adca: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4adcc: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if (cmd == FIONREAD) { 4add0: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 4add4: 6704 beqs 4adda <== NOT EXECUTED 4add6: 70ea moveq #-22,%d0 <== NOT EXECUTED 4add8: 6034 bras 4ae0e <== NOT EXECUTED if (buffer == NULL) 4adda: 4a8b tstl %a3 <== NOT EXECUTED 4addc: 6604 bnes 4ade2 <== NOT EXECUTED 4adde: 70f2 moveq #-14,%d0 <== NOT EXECUTED 4ade0: 602c bras 4ae0e <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 4ade2: 42a7 clrl %sp@- <== NOT EXECUTED 4ade4: 42a7 clrl %sp@- <== NOT EXECUTED 4ade6: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4adea: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4adf0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4adf4: 4a80 tstl %d0 <== NOT EXECUTED 4adf6: 6704 beqs 4adfc <== NOT EXECUTED 4adf8: 70fc moveq #-4,%d0 <== NOT EXECUTED 4adfa: 6012 bras 4ae0e <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; PIPE_UNLOCK(pipe); 4adfc: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4ae00: 26aa 000c movel %a2@(12),%a3@ <== NOT EXECUTED PIPE_UNLOCK(pipe); 4ae04: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return 0; 4ae0a: 588f addql #4,%sp <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; PIPE_UNLOCK(pipe); 4ae0c: 4280 clrl %d0 <== NOT EXECUTED return 0; } return -EINVAL; } 4ae0e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4ae12: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4ae16: 4e5e unlk %fp <== NOT EXECUTED 4ae18: 4e75 rts 0004ad60 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 4ad60: 70e3 moveq #-29,%d0 <== NOT EXECUTED pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) { 4ad62: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* Seek on pipe is not supported */ return -ESPIPE; } 4ad66: 4e5e unlk %fp <== NOT EXECUTED 4ad68: 4e75 rts 0004ae1a : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4ae1a: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 4ae1e: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4ae22: 42a7 clrl %sp@- <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4ae24: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4ae28: 47f9 0004 4f30 lea 44f30 ,%a3 <== NOT EXECUTED 4ae2e: 42a7 clrl %sp@- <== NOT EXECUTED 4ae30: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4ae34: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED 4ae38: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED 4ae3c: 2e2e 0014 movel %fp@(20),%d7 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4ae40: 4e93 jsr %a3@ <== NOT EXECUTED 4ae42: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ae46: 4a80 tstl %d0 <== NOT EXECUTED 4ae48: 6706 beqs 4ae50 <== NOT EXECUTED 4ae4a: 74fc moveq #-4,%d2 <== NOT EXECUTED 4ae4c: 6000 0128 braw 4af76 <== NOT EXECUTED 4ae50: 4282 clrl %d2 <== NOT EXECUTED goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); 4ae52: 2c3c 0004 5034 movel #282676,%d6 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4ae58: 4bf9 0004 be1c lea 4be1c ,%a5 <== NOT EXECUTED 4ae5e: 6000 00fc braw 4af5c <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) 4ae62: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4ae66: 6700 00fa beqw 4af62 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 4ae6a: 7001 moveq #1,%d0 <== NOT EXECUTED 4ae6c: 2047 moveal %d7,%a0 <== NOT EXECUTED 4ae6e: c0a8 0014 andl %a0@(20),%d0 <== NOT EXECUTED 4ae72: 6706 beqs 4ae7a <== NOT EXECUTED 4ae74: 78f5 moveq #-11,%d4 <== NOT EXECUTED 4ae76: 6000 00ec braw 4af64 <== NOT EXECUTED goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); 4ae7a: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 4ae7e: 52aa 0018 addql #1,%a2@(24) <== NOT EXECUTED PIPE_UNLOCK(pipe); 4ae82: 2246 moveal %d6,%a1 <== NOT EXECUTED 4ae84: 4e91 jsr %a1@ <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4ae86: 42a7 clrl %sp@- <== NOT EXECUTED 4ae88: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4ae8c: 4e95 jsr %a5@ <== NOT EXECUTED 4ae8e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ae92: 4a80 tstl %d0 <== NOT EXECUTED 4ae94: 6602 bnes 4ae98 <== NOT EXECUTED 4ae96: 4284 clrl %d4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4ae98: 42a7 clrl %sp@- <== NOT EXECUTED 4ae9a: 42a7 clrl %sp@- <== NOT EXECUTED 4ae9c: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4aea0: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4aea6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4aeaa: 4a80 tstl %d0 <== NOT EXECUTED 4aeac: 6706 beqs 4aeb4 <== NOT EXECUTED 4aeae: 78fc moveq #-4,%d4 <== NOT EXECUTED 4aeb0: 6000 00be braw 4af70 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 4aeb4: 53aa 0018 subql #1,%a2@(24) <== NOT EXECUTED if (ret != 0) 4aeb8: 4a84 tstl %d4 <== NOT EXECUTED 4aeba: 6600 00a8 bnew 4af64 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4aebe: 262a 000c movel %a2@(12),%d3 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 4aec2: 78fc moveq #-4,%d4 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4aec4: 4a83 tstl %d3 <== NOT EXECUTED 4aec6: 679a beqs 4ae62 <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 4aec8: 2005 movel %d5,%d0 <== NOT EXECUTED 4aeca: 9082 subl %d2,%d0 <== NOT EXECUTED 4aecc: b083 cmpl %d3,%d0 <== NOT EXECUTED 4aece: 6402 bccs 4aed2 <== NOT EXECUTED 4aed0: 2600 movel %d0,%d3 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 4aed2: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED 4aed6: 200c movel %a4,%d0 <== NOT EXECUTED 4aed8: d082 addl %d2,%d0 <== NOT EXECUTED 4aeda: 47f9 0004 d48c lea 4d48c ,%a3 <== NOT EXECUTED 4aee0: 2212 movel %a2@,%d1 <== NOT EXECUTED 4aee2: d288 addl %a0,%d1 <== NOT EXECUTED 4aee4: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED 4aee8: 93c8 subal %a0,%a1 <== NOT EXECUTED if (chunk > chunk1) { 4aeea: b3c3 cmpal %d3,%a1 <== NOT EXECUTED 4aeec: 6c28 bges 4af16 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 4aeee: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4aef0: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4aef2: 2d49 fff8 movel %a1,%fp@(-8) <== NOT EXECUTED 4aef6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aef8: 4e93 jsr %a3@ <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 4aefa: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4aefe: 2203 movel %d3,%d1 <== NOT EXECUTED 4af00: 9288 subl %a0,%d1 <== NOT EXECUTED 4af02: 2002 movel %d2,%d0 <== NOT EXECUTED 4af04: d088 addl %a0,%d0 <== NOT EXECUTED 4af06: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4af08: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4af0a: 4874 0800 pea %a4@(00000000,%d0:l) <== NOT EXECUTED 4af0e: 4e93 jsr %a3@ <== NOT EXECUTED 4af10: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4af14: 600c bras 4af22 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 4af16: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4af18: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4af1a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4af1c: 4e93 jsr %a3@ <== NOT EXECUTED 4af1e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED pipe->Start += chunk; 4af22: 2203 movel %d3,%d1 <== NOT EXECUTED 4af24: d2aa 0008 addl %a2@(8),%d1 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; 4af28: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 4af2c: 9083 subl %d3,%d0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 4af2e: 4c6a 1004 0004 remul %a2@(4),%d4,%d1 <== NOT EXECUTED pipe->Length -= chunk; 4af34: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 4af38: 2544 0008 movel %d4,%a2@(8) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 4af3c: 4a80 tstl %d0 <== NOT EXECUTED 4af3e: 6604 bnes 4af44 <== NOT EXECUTED pipe->Start = 0; 4af40: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED if (pipe->waitingWriters > 0) 4af44: 4aaa 001c tstl %a2@(28) <== NOT EXECUTED 4af48: 6710 beqs 4af5a <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4af4a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4af4e: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4af52: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4af58: 508f addql #8,%sp <== NOT EXECUTED read += chunk; 4af5a: d483 addl %d3,%d2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 4af5c: ba82 cmpl %d2,%d5 <== NOT EXECUTED 4af5e: 6200 ff5e bhiw 4aebe <== NOT EXECUTED 4af62: 4284 clrl %d4 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4af64: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4af68: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED 4af6e: 588f addql #4,%sp <== NOT EXECUTED out_nolock: if (read > 0) 4af70: 4a82 tstl %d2 <== NOT EXECUTED 4af72: 6e02 bgts 4af76 <== NOT EXECUTED 4af74: 2404 movel %d4,%d2 <== NOT EXECUTED return read; return ret; } 4af76: 2002 movel %d2,%d0 <== NOT EXECUTED 4af78: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4af7e: 4e5e unlk %fp <== NOT EXECUTED 4af80: 4e75 rts 0004b158 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b158: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4b15c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 4b160: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4b164: 42a7 clrl %sp@- <== NOT EXECUTED int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { pipe_control_t *pipe = *pipep; 4b166: 2453 moveal %a3@,%a2 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4b168: 42a7 clrl %sp@- <== NOT EXECUTED 4b16a: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b16e: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 4b174: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b178: 4a80 tstl %d0 <== NOT EXECUTED 4b17a: 6634 bnes 4b1b0 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 4b17c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4b180: 7406 moveq #6,%d2 <== NOT EXECUTED 4b182: c4a8 0014 andl %a0@(20),%d2 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 4b186: 0802 0001 btst #1,%d2 <== NOT EXECUTED 4b18a: 6704 beqs 4b190 <== NOT EXECUTED pipe->Readers --; 4b18c: 53aa 0010 subql #1,%a2@(16) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 4b190: 44c2 movew %d2,%ccr <== NOT EXECUTED 4b192: 6604 bnes 4b198 <== NOT EXECUTED pipe->Writers --; 4b194: 53aa 0014 subql #1,%a2@(20) <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 4b198: 42a7 clrl %sp@- <== NOT EXECUTED 4b19a: 42a7 clrl %sp@- <== NOT EXECUTED 4b19c: 2f39 0005 c690 movel 5c690 ,%sp@- <== NOT EXECUTED 4b1a2: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 4b1a8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b1ac: 4a80 tstl %d0 <== NOT EXECUTED 4b1ae: 6708 beqs 4b1b8 <== NOT EXECUTED rtems_fatal_error_occurred(sc); 4b1b0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b1b2: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED PIPE_UNLOCK(pipe); 4b1b8: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b1bc: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 4b1c2: 588f addql #4,%sp <== NOT EXECUTED 4b1c4: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b1c8: 6622 bnes 4b1ec <== NOT EXECUTED 4b1ca: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4b1ce: 660c bnes 4b1dc <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); 4b1d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b1d2: 4eba ff3c jsr %pc@(4b110 ) <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 4b1d6: 588f addql #4,%sp <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; 4b1d8: 4293 clrl %a3@ <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 4b1da: 602c bras 4b208 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 4b1dc: 7004 moveq #4,%d0 <== NOT EXECUTED 4b1de: b082 cmpl %d2,%d0 <== NOT EXECUTED 4b1e0: 670a beqs 4b1ec <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 4b1e2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b1e6: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b1ea: 6014 bras 4b200 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 4b1ec: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4b1f0: 6616 bnes 4b208 <== NOT EXECUTED 4b1f2: 7002 moveq #2,%d0 <== NOT EXECUTED 4b1f4: b082 cmpl %d2,%d0 <== NOT EXECUTED 4b1f6: 6710 beqs 4b208 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b1f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b1fc: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b200: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4b206: 508f addql #8,%sp <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 4b208: 2f39 0005 c690 movel 5c690 ,%sp@- <== NOT EXECUTED 4b20e: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4b214: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 4b21a: 4280 clrl %d0 <== NOT EXECUTED 4b21c: 4e5e unlk %fp <== NOT EXECUTED 4b21e: 4e75 rts 0004af82 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 4af82: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 4af86: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4af8a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4af8e: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 4af92: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 4af96: 6606 bnes 4af9e <== NOT EXECUTED 4af98: 4282 clrl %d2 <== NOT EXECUTED 4af9a: 6000 0168 braw 4b104 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 4af9e: 42a7 clrl %sp@- <== NOT EXECUTED 4afa0: 42a7 clrl %sp@- <== NOT EXECUTED 4afa2: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4afa6: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4afac: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4afb0: 4a80 tstl %d0 <== NOT EXECUTED 4afb2: 6706 beqs 4afba <== NOT EXECUTED 4afb4: 74fc moveq #-4,%d2 <== NOT EXECUTED 4afb6: 6000 014c braw 4b104 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 4afba: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4afbe: 6608 bnes 4afc8 <== NOT EXECUTED 4afc0: 76e0 moveq #-32,%d3 <== NOT EXECUTED 4afc2: 4282 clrl %d2 <== NOT EXECUTED 4afc4: 6000 0112 braw 4b0d8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 4afc8: b8aa 0004 cmpl %a2@(4),%d4 <== NOT EXECUTED 4afcc: 6304 blss 4afd2 <== NOT EXECUTED 4afce: 7c01 moveq #1,%d6 <== NOT EXECUTED 4afd0: 6002 bras 4afd4 <== NOT EXECUTED 4afd2: 2c04 movel %d4,%d6 <== NOT EXECUTED 4afd4: 4282 clrl %d2 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 4afd6: 4bf9 0004 be1c lea 4be1c ,%a5 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4afdc: 49f9 0004 4f30 lea 44f30 ,%a4 <== NOT EXECUTED 4afe2: 6000 00ec braw 4b0d0 <== 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)) { 4afe6: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 4afea: 7001 moveq #1,%d0 <== NOT EXECUTED 4afec: c0a8 0014 andl %a0@(20),%d0 <== NOT EXECUTED 4aff0: 6706 beqs 4aff8 <== NOT EXECUTED 4aff2: 76f5 moveq #-11,%d3 <== NOT EXECUTED 4aff4: 6000 00e2 braw 4b0d8 <== NOT EXECUTED goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); 4aff8: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 4affc: 52aa 001c addql #1,%a2@(28) <== NOT EXECUTED PIPE_UNLOCK(pipe); 4b000: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4b006: 42a7 clrl %sp@- <== NOT EXECUTED 4b008: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b00c: 4e95 jsr %a5@ <== NOT EXECUTED 4b00e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b012: 4a80 tstl %d0 <== NOT EXECUTED 4b014: 6602 bnes 4b018 <== NOT EXECUTED 4b016: 4283 clrl %d3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4b018: 42a7 clrl %sp@- <== NOT EXECUTED 4b01a: 42a7 clrl %sp@- <== NOT EXECUTED 4b01c: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b020: 4e94 jsr %a4@ <== NOT EXECUTED 4b022: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b026: 4a80 tstl %d0 <== NOT EXECUTED 4b028: 6706 beqs 4b030 <== NOT EXECUTED 4b02a: 76fc moveq #-4,%d3 <== NOT EXECUTED 4b02c: 6000 00d0 braw 4b0fe <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 4b030: 53aa 001c subql #1,%a2@(28) <== NOT EXECUTED if (ret != 0) 4b034: 4a83 tstl %d3 <== NOT EXECUTED 4b036: 6600 00a0 bnew 4b0d8 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 4b03a: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b03e: 6606 bnes 4b046 <== NOT EXECUTED 4b040: 76e0 moveq #-32,%d3 <== NOT EXECUTED 4b042: 6000 0094 braw 4b0d8 <== 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) { 4b046: 2a2a 0004 movel %a2@(4),%d5 <== NOT EXECUTED 4b04a: 2005 movel %d5,%d0 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 4b04c: 76fc moveq #-4,%d3 <== 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) { 4b04e: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED 4b052: 9088 subl %a0,%d0 <== NOT EXECUTED 4b054: bc80 cmpl %d0,%d6 <== NOT EXECUTED 4b056: 628e bhis 4afe6 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 4b058: 2600 movel %d0,%d3 <== NOT EXECUTED 4b05a: 2004 movel %d4,%d0 <== NOT EXECUTED 4b05c: 9082 subl %d2,%d0 <== NOT EXECUTED 4b05e: b083 cmpl %d3,%d0 <== NOT EXECUTED 4b060: 6402 bccs 4b064 <== NOT EXECUTED 4b062: 2600 movel %d0,%d3 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 4b064: d1ea 0008 addal %a2@(8),%a0 <== NOT EXECUTED 4b068: 220b movel %a3,%d1 <== NOT EXECUTED 4b06a: 2e08 movel %a0,%d7 <== NOT EXECUTED 4b06c: 2c3c 0004 d48c movel #316556,%d6 <== NOT EXECUTED 4b072: d282 addl %d2,%d1 <== NOT EXECUTED 4b074: 4c45 7000 remul %d5,%d0,%d7 <== NOT EXECUTED 4b078: 9a80 subl %d0,%d5 <== NOT EXECUTED 4b07a: d092 addl %a2@,%d0 <== NOT EXECUTED if (chunk > chunk1) { 4b07c: ba83 cmpl %d3,%d5 <== NOT EXECUTED 4b07e: 6c24 bges 4b0a4 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 4b080: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4b082: 2046 moveal %d6,%a0 <== NOT EXECUTED 4b084: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b086: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b088: 4e90 jsr %a0@ <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 4b08a: 2203 movel %d3,%d1 <== NOT EXECUTED 4b08c: 9285 subl %d5,%d1 <== NOT EXECUTED 4b08e: 2005 movel %d5,%d0 <== NOT EXECUTED 4b090: d082 addl %d2,%d0 <== NOT EXECUTED 4b092: 2046 moveal %d6,%a0 <== NOT EXECUTED 4b094: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b096: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 4b09a: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4b09c: 4e90 jsr %a0@ <== NOT EXECUTED 4b09e: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4b0a2: 600e bras 4b0b2 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4b0a4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b0a6: 2046 moveal %d6,%a0 <== NOT EXECUTED 4b0a8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b0aa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b0ac: 4e90 jsr %a0@ <== NOT EXECUTED 4b0ae: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED pipe->Length += chunk; 4b0b2: d7aa 000c addl %d3,%a2@(12) <== NOT EXECUTED if (pipe->waitingReaders > 0) 4b0b6: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 4b0ba: 6710 beqs 4b0cc <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b0bc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b0c0: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b0c4: 4eb9 0004 bdb8 jsr 4bdb8 <== NOT EXECUTED 4b0ca: 508f addql #8,%sp <== NOT EXECUTED written += chunk; 4b0cc: d483 addl %d3,%d2 <== NOT EXECUTED 4b0ce: 7c01 moveq #1,%d6 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 4b0d0: b882 cmpl %d2,%d4 <== NOT EXECUTED 4b0d2: 6200 ff72 bhiw 4b046 <== NOT EXECUTED 4b0d6: 4283 clrl %d3 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4b0d8: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b0dc: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED 4b0e2: 588f addql #4,%sp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4b0e4: 70e0 moveq #-32,%d0 <== NOT EXECUTED 4b0e6: b083 cmpl %d3,%d0 <== NOT EXECUTED 4b0e8: 6614 bnes 4b0fe <== NOT EXECUTED kill(getpid(), SIGPIPE); 4b0ea: 4eb9 0004 b8b8 jsr 4b8b8 <== NOT EXECUTED 4b0f0: 4878 000d pea d <== NOT EXECUTED 4b0f4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b0f6: 4eb9 0004 ba6c jsr 4ba6c <== NOT EXECUTED 4b0fc: 508f addql #8,%sp <== NOT EXECUTED #endif if (written > 0) 4b0fe: 4a82 tstl %d2 <== NOT EXECUTED 4b100: 6e02 bgts 4b104 <== NOT EXECUTED 4b102: 2403 movel %d3,%d2 <== NOT EXECUTED return written; return ret; } 4b104: 2002 movel %d2,%d0 <== NOT EXECUTED 4b106: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4b10c: 4e5e unlk %fp <== NOT EXECUTED 4b10e: 4e75 rts 0004bc7c : } void pthread_exit( void *value_ptr ) { 4bc7c: 4e56 0000 linkw %fp,#0 _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); 4bc80: 2f2e 0008 movel %fp@(8),%sp@- 4bc84: 2f39 0005 cf9e movel 5cf9e <_Thread_Executing>,%sp@- 4bc8a: 4eb9 0004 bc0c jsr 4bc0c <_POSIX_Thread_Exit> 4bc90: 508f addql #8,%sp <== NOT EXECUTED } 4bc92: 4e5e unlk %fp <== NOT EXECUTED 4bc94: 4e75 rts <== NOT EXECUTED ... 00045404 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 45404: 4e56 0000 linkw %fp,#0 * 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() ) 45408: 2039 0005 de5a movel 5de5a <_ISR_Nest_level>,%d0 * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 4540e: 2f02 movel %d2,%sp@- * 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() ) 45410: 4a80 tstl %d0 45412: 6646 bnes 4545a return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 45414: 2079 0005 de7a moveal 5de7a <_Thread_Executing>,%a0 4541a: 2039 0005 ddc0 movel 5ddc0 <_Thread_Dispatch_disable_level>,%d0 45420: 5280 addql #1,%d0 45422: 2068 010e moveal %a0@(270),%a0 45426: 23c0 0005 ddc0 movel %d0,5ddc0 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 4542c: 4aa8 00d4 tstl %a0@(212) 45430: 6704 beqs 45436 45432: 4202 clrb %d2 <== NOT EXECUTED 45434: 6008 bras 4543e <== NOT EXECUTED /* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate)); int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype)); void _EXFUN(pthread_testcancel, (void)); 45436: 4aa8 00dc tstl %a0@(220) 4543a: 56c2 sne %d2 4543c: 4482 negl %d2 thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); 4543e: 4eb9 0004 770e jsr 4770e <_Thread_Enable_dispatch> if ( cancel ) 45444: 4a02 tstb %d2 45446: 6712 beqs 4545a _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); 45448: 4878 ffff pea ffffffff 4544c: 2f39 0005 de7a movel 5de7a <_Thread_Executing>,%sp@- 45452: 4eb9 0004 a5a8 jsr 4a5a8 <_POSIX_Thread_Exit> 45458: 508f addql #8,%sp <== NOT EXECUTED } 4545a: 242e fffc movel %fp@(-4),%d2 4545e: 4e5e unlk %fp 45460: 4e75 rts ... 00042484 : * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) { 42484: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42488: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4248a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED const char *p = s; for (p=s ; *p ; p++ ) 4248e: 6008 bras 42498 <== NOT EXECUTED BSP_output_char(*p); 42490: 49c0 extbl %d0 <== NOT EXECUTED 42492: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42494: 4e91 jsr %a1@ <== NOT EXECUTED */ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ ) 42496: 588f addql #4,%sp <== NOT EXECUTED 42498: 2279 0005 bd90 moveal 5bd90 ,%a1 <== NOT EXECUTED 4249e: 1012 moveb %a2@,%d0 <== NOT EXECUTED 424a0: 528a addql #1,%a2 <== NOT EXECUTED 424a2: 66ec bnes 42490 <== NOT EXECUTED BSP_output_char(*p); BSP_output_char('\n'); 424a4: 700a moveq #10,%d0 <== NOT EXECUTED } 424a6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED { const char *p = s; for (p=s ; *p ; p++ ) BSP_output_char(*p); BSP_output_char('\n'); 424aa: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 424ae: 4e5e unlk %fp <== NOT EXECUTED { const char *p = s; for (p=s ; *p ; p++ ) BSP_output_char(*p); BSP_output_char('\n'); 424b0: 4ed1 jmp %a1@ <== NOT EXECUTED ... 00059664 : ssize_t read( int fd, void *buffer, size_t count ) { 59664: 4e56 fff4 linkw %fp,#-12 59668: 202e 000c movel %fp@(12),%d0 5966c: 48d7 040c moveml %d2-%d3/%a2,%sp@ 59670: 242e 0008 movel %fp@(8),%d2 59674: 222e 0010 movel %fp@(16),%d1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 59678: b4b9 0005 b684 cmpl 5b684 ,%d2 5967e: 6414 bccs 59694 iop = rtems_libio_iop( fd ); 59680: 2479 0005 cd84 moveal 5cd84 ,%a2 59686: ed8a lsll #6,%d2 59688: d5c2 addal %d2,%a2 rtems_libio_check_is_open( iop ); 5968a: 242a 0014 movel %a2@(20),%d2 5968e: 0802 0008 btst #8,%d2 59692: 6610 bnes 596a4 59694: 4eb9 0004 cc6c jsr 4cc6c <__errno> 5969a: 7409 moveq #9,%d2 5969c: 72ff moveq #-1,%d1 5969e: 2040 moveal %d0,%a0 596a0: 2082 movel %d2,%a0@ 596a2: 6060 bras 59704 rtems_libio_check_buffer( buffer ); 596a4: 4a80 tstl %d0 596a6: 670a beqs 596b2 rtems_libio_check_count( count ); 596a8: 4a81 tstl %d1 596aa: 6758 beqs 59704 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 596ac: 0802 0001 btst #1,%d2 596b0: 6610 bnes 596c2 596b2: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 596b8: 72ff moveq #-1,%d1 <== NOT EXECUTED 596ba: 2040 moveal %d0,%a0 <== NOT EXECUTED 596bc: 7016 moveq #22,%d0 <== NOT EXECUTED 596be: 2080 movel %d0,%a0@ <== NOT EXECUTED 596c0: 6042 bras 59704 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 596c2: 206a 003c moveal %a2@(60),%a0 596c6: 2068 0008 moveal %a0@(8),%a0 596ca: 4a88 tstl %a0 596cc: 6612 bnes 596e0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 596ce: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 596d4: 72ff moveq #-1,%d1 <== NOT EXECUTED 596d6: 2040 moveal %d0,%a0 <== NOT EXECUTED 596d8: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 596de: 6024 bras 59704 <== NOT EXECUTED rc = (*iop->handlers->read_h)( iop, buffer, count ); 596e0: 2f01 movel %d1,%sp@- 596e2: 2f00 movel %d0,%sp@- 596e4: 2f0a movel %a2,%sp@- 596e6: 4e90 jsr %a0@ if ( rc > 0 ) 596e8: 4fef 000c lea %sp@(12),%sp */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 596ec: 2200 movel %d0,%d1 if ( rc > 0 ) 596ee: 6f14 bles 59704 iop->offset += rc; 596f0: 2600 movel %d0,%d3 596f2: 5bc2 smi %d2 596f4: 49c2 extbl %d2 596f6: d7aa 0010 addl %d3,%a2@(16) 596fa: 202a 000c movel %a2@(12),%d0 596fe: d182 addxl %d2,%d0 59700: 2540 000c movel %d0,%a2@(12) return rc; } 59704: 2001 movel %d1,%d0 59706: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 5970c: 4e5e unlk %fp 5970e: 4e75 rts 00061c3c : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 61c3c: 4e56 ffe0 linkw %fp,#-32 61c40: 48d7 001c moveml %d2-%d4,%sp@ 61c44: 282e 0008 movel %fp@(8),%d4 61c48: 262e 000c movel %fp@(12),%d3 rtems_filesystem_location_info_t loc; int result; if (!buf) 61c4c: 6612 bnes 61c60 rtems_set_errno_and_return_minus_one( EFAULT ); 61c4e: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 61c54: 76ff moveq #-1,%d3 <== NOT EXECUTED 61c56: 720e moveq #14,%d1 <== NOT EXECUTED 61c58: 2040 moveal %d0,%a0 <== NOT EXECUTED 61c5a: 2081 movel %d1,%a0@ <== NOT EXECUTED 61c5c: 6000 00c2 braw 61d20 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 61c60: 2f04 movel %d4,%sp@- 61c62: 240e movel %fp,%d2 61c64: 0682 ffff ffec addil #-20,%d2 61c6a: 4eb9 0007 c298 jsr 7c298 61c70: 4297 clrl %sp@ 61c72: 2f02 movel %d2,%sp@- 61c74: 42a7 clrl %sp@- 61c76: 2f00 movel %d0,%sp@- 61c78: 2f04 movel %d4,%sp@- 61c7a: 4eb9 0004 6576 jsr 46576 0, &loc, false ); if ( result != 0 ) 61c80: 4fef 0014 lea %sp@(20),%sp 61c84: 4a80 tstl %d0 61c86: 6706 beqs 61c8e 61c88: 76ff moveq #-1,%d3 <== NOT EXECUTED 61c8a: 6000 0094 braw 61d20 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 61c8e: 226e fff8 moveal %fp@(-8),%a1 61c92: 2069 0010 moveal %a1@(16),%a0 61c96: 4a88 tstl %a0 61c98: 6606 bnes 61ca0 rtems_filesystem_freenode( &loc ); 61c9a: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61c9e: 603e bras 61cde <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 61ca0: 2f02 movel %d2,%sp@- 61ca2: 4e90 jsr %a0@ 61ca4: 206e fff8 moveal %fp@(-8),%a0 61ca8: 588f addql #4,%sp 61caa: 7204 moveq #4,%d1 61cac: b280 cmpl %d0,%d1 61cae: 6722 beqs 61cd2 rtems_filesystem_freenode( &loc ); 61cb0: 4a88 tstl %a0 61cb2: 670e beqs 61cc2 61cb4: 2068 001c moveal %a0@(28),%a0 61cb8: 4a88 tstl %a0 61cba: 6706 beqs 61cc2 61cbc: 2f02 movel %d2,%sp@- 61cbe: 4e90 jsr %a0@ 61cc0: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EINVAL ); 61cc2: 4eb9 0007 61f0 jsr 761f0 <__errno> 61cc8: 76ff moveq #-1,%d3 61cca: 2040 moveal %d0,%a0 61ccc: 7016 moveq #22,%d0 61cce: 2080 movel %d0,%a0@ 61cd0: 604e bras 61d20 } if ( !loc.ops->readlink_h ){ 61cd2: 2268 003c moveal %a0@(60),%a1 61cd6: 4a89 tstl %a1 61cd8: 6620 bnes 61cfa rtems_filesystem_freenode( &loc ); 61cda: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61cde: 4a88 tstl %a0 <== NOT EXECUTED 61ce0: 6706 beqs 61ce8 <== NOT EXECUTED 61ce2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61ce4: 4e90 jsr %a0@ <== NOT EXECUTED 61ce6: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61ce8: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 61cee: 76ff moveq #-1,%d3 <== NOT EXECUTED 61cf0: 2040 moveal %d0,%a0 <== NOT EXECUTED 61cf2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61cf8: 6026 bras 61d20 <== NOT EXECUTED } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 61cfa: 2f2e 0010 movel %fp@(16),%sp@- 61cfe: 2f03 movel %d3,%sp@- 61d00: 2f02 movel %d2,%sp@- 61d02: 4e91 jsr %a1@ rtems_filesystem_freenode( &loc ); 61d04: 206e fff8 moveal %fp@(-8),%a0 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 ); 61d08: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 61d0a: 4fef 000c lea %sp@(12),%sp 61d0e: 4a88 tstl %a0 61d10: 670e beqs 61d20 61d12: 2068 001c moveal %a0@(28),%a0 61d16: 4a88 tstl %a0 61d18: 6706 beqs 61d20 61d1a: 2f02 movel %d2,%sp@- 61d1c: 4e90 jsr %a0@ 61d1e: 588f addql #4,%sp return result; } 61d20: 2003 movel %d3,%d0 61d22: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 61d28: 4e5e unlk %fp 61d2a: 4e75 rts 00044054 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 44054: 4e56 ffe4 linkw %fp,#-28 44058: 202e 0008 movel %fp@(8),%d0 4405c: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 44060: 266e 000c moveal %fp@(12),%a3 44064: 262e 0010 movel %fp@(16),%d3 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 44068: b0b9 0005 eeb4 cmpl 5eeb4 ,%d0 4406e: 6414 bccs 44084 iop = rtems_libio_iop( fd ); 44070: 2479 0006 0d88 moveal 60d88 ,%a2 44076: ed88 lsll #6,%d0 44078: d5c0 addal %d0,%a2 rtems_libio_check_is_open( iop ); 4407a: 202a 0014 movel %a2@(20),%d0 4407e: 0800 0008 btst #8,%d0 44082: 6612 bnes 44096 44084: 4eb9 0004 ed28 jsr 4ed28 <__errno> <== NOT EXECUTED 4408a: 74ff moveq #-1,%d2 <== NOT EXECUTED 4408c: 7209 moveq #9,%d1 <== NOT EXECUTED 4408e: 2040 moveal %d0,%a0 <== NOT EXECUTED 44090: 2081 movel %d1,%a0@ <== NOT EXECUTED 44092: 6000 00b2 braw 44146 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 44096: 0800 0001 btst #1,%d0 4409a: 6748 beqs 440e4 /* * Argument validation on IO vector */ if ( !iov ) 4409c: 4a8b tstl %a3 4409e: 6744 beqs 440e4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 440a0: 4a83 tstl %d3 440a2: 6f40 bles 440e4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 440a4: 0c83 0000 0400 cmpil #1024,%d3 440aa: 6e38 bgts 440e4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 440ac: 206a 003c moveal %a2@(60),%a0 440b0: 4aa8 0008 tstl %a0@(8) 440b4: 6612 bnes 440c8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 440b6: 4eb9 0004 ed28 jsr 4ed28 <__errno> <== NOT EXECUTED 440bc: 74ff moveq #-1,%d2 <== NOT EXECUTED 440be: 2040 moveal %d0,%a0 <== NOT EXECUTED 440c0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 440c6: 607e bras 44146 <== NOT EXECUTED 440c8: 204b moveal %a3,%a0 440ca: 4281 clrl %d1 440cc: 4280 clrl %d0 * 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++ ) { 440ce: 5281 addql #1,%d1 ssize_t old; if ( !iov[v].iov_base ) 440d0: 4a90 tstl %a0@ 440d2: 6710 beqs 440e4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 440d4: 2428 0004 movel %a0@(4),%d2 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 440d8: 2240 moveal %d0,%a1 440da: d3c2 addal %d2,%a1 * 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++ ) { 440dc: 5088 addql #8,%a0 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 440de: 6704 beqs 440e4 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) 440e0: b089 cmpl %a1,%d0 440e2: 6f10 bles 440f4 rtems_set_errno_and_return_minus_one( EINVAL ); 440e4: 4eb9 0004 ed28 jsr 4ed28 <__errno> 440ea: 74ff moveq #-1,%d2 440ec: 2040 moveal %d0,%a0 440ee: 7016 moveq #22,%d0 440f0: 2080 movel %d0,%a0@ 440f2: 6052 bras 44146 * 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++ ) { 440f4: b681 cmpl %d1,%d3 440f6: 6f04 bles 440fc 440f8: 2009 movel %a1,%d0 440fa: 60d2 bras 440ce 440fc: 588b addql #4,%a3 440fe: 4284 clrl %d4 44100: 4282 clrl %d2 /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 44102: 206a 003c moveal %a2@(60),%a0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 44106: 5284 addql #1,%d4 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 44108: 2f13 movel %a3@,%sp@- 4410a: 2f2b fffc movel %a3@(-4),%sp@- 4410e: 2f0a movel %a2,%sp@- 44110: 2068 0008 moveal %a0@(8),%a0 44114: 4e90 jsr %a0@ if ( bytes < 0 ) 44116: 4fef 000c lea %sp@(12),%sp 4411a: 4a80 tstl %d0 4411c: 6c04 bges 44122 4411e: 74ff moveq #-1,%d2 <== NOT EXECUTED 44120: 6024 bras 44146 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 44122: 4a80 tstl %d0 44124: 6716 beqs 4413c iop->offset += bytes; total += bytes; 44126: d480 addl %d0,%d2 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 44128: 2c00 movel %d0,%d6 <== NOT EXECUTED 4412a: 5bc5 smi %d5 <== NOT EXECUTED 4412c: 49c5 extbl %d5 <== NOT EXECUTED 4412e: ddaa 0010 addl %d6,%a2@(16) <== NOT EXECUTED 44132: 222a 000c movel %a2@(12),%d1 <== NOT EXECUTED 44136: d385 addxl %d5,%d1 <== NOT EXECUTED 44138: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 4413c: b093 cmpl %a3@,%d0 4413e: 6606 bnes 44146 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 44140: 508b addql #8,%a3 <== NOT EXECUTED 44142: b684 cmpl %d4,%d3 <== NOT EXECUTED 44144: 6ebc bgts 44102 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 44146: 2002 movel %d2,%d0 44148: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 4414e: 4e5e unlk %fp 44150: 4e75 rts ... 00059790 : /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 59790: 7003 moveq #3,%d0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 59792: 4e56 fff0 linkw %fp,#-16 59796: 52b9 0005 cda0 addql #1,5cda0 5979c: 48d7 001c moveml %d2-%d4,%sp@ 597a0: 242e 0008 movel %fp@(8),%d2 597a4: 262e 000c movel %fp@(12),%d3 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 597a8: b0b9 0005 d06c cmpl 5d06c <_System_state_Current>,%d0 597ae: 6614 bnes 597c4 if (_Thread_Dispatch_disable_level > 0) 597b0: 2039 0005 cee4 movel 5cee4 <_Thread_Dispatch_disable_level>,%d0 597b6: 6600 00aa bnew 59862 return (void *) 0; if (_ISR_Nest_level > 0) 597ba: 2039 0005 cf7e movel 5cf7e <_ISR_Nest_level>,%d0 597c0: 6600 00a0 bnew 59862 } /* * Continue with realloc(). */ if ( !ptr ) 597c4: 4a82 tstl %d2 597c6: 660c bnes 597d4 return malloc( size ); 597c8: 2f03 movel %d3,%sp@- 597ca: 4eb9 0004 944c jsr 4944c 597d0: 2400 movel %d0,%d2 597d2: 600e bras 597e2 if ( !size ) { 597d4: 4a83 tstl %d3 597d6: 660e bnes 597e6 free( ptr ); 597d8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 597da: 4282 clrl %d2 <== NOT EXECUTED 597dc: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED return (void *) 0; 597e2: 588f addql #4,%sp 597e4: 607e bras 59864 } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 597e6: 486e fffc pea %fp@(-4) 597ea: 2f02 movel %d2,%sp@- 597ec: 2f39 0005 b690 movel 5b690 ,%sp@- 597f2: 4eb9 0005 991c jsr 5991c <_Protected_heap_Get_block_size> 597f8: 4fef 000c lea %sp@(12),%sp 597fc: 4a00 tstb %d0 597fe: 6610 bnes 59810 errno = EINVAL; 59800: 4eb9 0004 cc6c jsr 4cc6c <__errno> 59806: 4282 clrl %d2 59808: 2040 moveal %d0,%a0 5980a: 7016 moveq #22,%d0 5980c: 2080 movel %d0,%a0@ return (void *) 0; 5980e: 6054 bras 59864 #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 ) ) { 59810: 2f03 movel %d3,%sp@- 59812: 2f02 movel %d2,%sp@- 59814: 2f39 0005 b690 movel 5b690 ,%sp@- 5981a: 4eb9 0005 9958 jsr 59958 <_Protected_heap_Resize_block> 59820: 4fef 000c lea %sp@(12),%sp 59824: 4a00 tstb %d0 59826: 663c bnes 59864 * 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 ); 59828: 2f03 movel %d3,%sp@- 5982a: 4eb9 0004 944c jsr 4944c MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ if ( !new_area ) { 59830: 588f addql #4,%sp * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 59832: 53b9 0005 cd94 subql #1,5cd94 * 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 ); 59838: 2800 movel %d0,%d4 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ if ( !new_area ) { 5983a: 6726 beqs 59862 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 5983c: 202e fffc movel %fp@(-4),%d0 59840: b083 cmpl %d3,%d0 59842: 6402 bccs 59846 59844: 2600 movel %d0,%d3 59846: 2f03 movel %d3,%sp@- 59848: 2f02 movel %d2,%sp@- 5984a: 2f04 movel %d4,%sp@- 5984c: 4eb9 0004 d48c jsr 4d48c free( ptr ); 59852: 2f02 movel %d2,%sp@- 59854: 2404 movel %d4,%d2 59856: 4eb9 0004 8f48 jsr 48f48 return new_area; 5985c: 4fef 0010 lea %sp@(16),%sp 59860: 6002 bras 59864 59862: 4282 clrl %d2 <== NOT EXECUTED } 59864: 2002 movel %d2,%d0 59866: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 5986c: 4e5e unlk %fp 5986e: 4e75 rts 00047818 : #include int rmdir( const char *pathname ) { 47818: 4e56 ffc0 linkw %fp,#-64 4781c: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 47820: 246e 0008 moveal %fp@(8),%a2 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 47824: 2f0a movel %a2,%sp@- 47826: 4eb9 0004 6460 jsr 46460 if ( parentpathlen == 0 ) 4782c: 588f addql #4,%sp /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 4782e: 2a00 movel %d0,%d5 if ( parentpathlen == 0 ) 47830: 664a bnes 4787c rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 47832: 742f moveq #47,%d2 47834: 1012 moveb %a2@,%d0 47836: 1200 moveb %d0,%d1 47838: 49c1 extbl %d1 4783a: b481 cmpl %d1,%d2 4783c: 670c beqs 4784a 4783e: 143c 005c moveb #92,%d2 <== NOT EXECUTED 47842: b481 cmpl %d1,%d2 <== NOT EXECUTED 47844: 6704 beqs 4784a <== NOT EXECUTED 47846: 4a00 tstb %d0 <== NOT EXECUTED 47848: 6612 bnes 4785c <== NOT EXECUTED 4784a: 4878 0014 pea 14 4784e: 2079 0009 73bc moveal 973bc ,%a0 47854: 41e8 0018 lea %a0@(24),%a0 47858: 2f08 movel %a0,%sp@- 4785a: 600e bras 4786a 4785c: 4878 0014 pea 14 <== NOT EXECUTED 47860: 2039 0009 73bc movel 973bc ,%d0 <== NOT EXECUTED 47866: 5880 addql #4,%d0 <== NOT EXECUTED 47868: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4786a: 486e ffec pea %fp@(-20) 4786e: 4203 clrb %d3 47870: 4eb9 0007 9228 jsr 79228 47876: 4fef 000c lea %sp@(12),%sp 4787a: 6020 bras 4789c else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 4787c: 42a7 clrl %sp@- 4787e: 486e ffec pea %fp@(-20) 47882: 4878 0002 pea 2 47886: 2f00 movel %d0,%sp@- 47888: 2f0a movel %a2,%sp@- 4788a: 4eb9 0004 6576 jsr 46576 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 47890: 4fef 0014 lea %sp@(20),%sp 47894: 4a80 tstl %d0 47896: 6600 0168 bnew 47a00 4789a: 7601 moveq #1,%d3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4789c: 4878 0014 pea 14 478a0: 280e movel %fp,%d4 478a2: 0684 ffff ffec addil #-20,%d4 478a8: 240e movel %fp,%d2 478aa: 0682 ffff ffd8 addil #-40,%d2 name = pathname + parentpathlen; 478b0: d5c5 addal %d5,%a2 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 478b2: 47f9 0007 c298 lea 7c298 ,%a3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 478b8: 2f04 movel %d4,%sp@- 478ba: 2f02 movel %d2,%sp@- 478bc: 4eb9 0007 9228 jsr 79228 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 478c2: 2f0a movel %a2,%sp@- 478c4: 4e93 jsr %a3@ 478c6: 2e80 movel %d0,%sp@ 478c8: 2f0a movel %a2,%sp@- 478ca: 4eb9 0004 6428 jsr 46428 478d0: d5c0 addal %d0,%a2 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 478d2: 2f0a movel %a2,%sp@- 478d4: 4e93 jsr %a3@ 478d6: 4297 clrl %sp@ 478d8: 2f02 movel %d2,%sp@- 478da: 42a7 clrl %sp@- 478dc: 2f00 movel %d0,%sp@- 478de: 2f0a movel %a2,%sp@- 478e0: 4eb9 0004 64a6 jsr 464a6 0, &loc, false ); if ( result != 0 ) { 478e6: 4fef 0028 lea %sp@(40),%sp 478ea: 4a80 tstl %d0 478ec: 6722 beqs 47910 if ( free_parentloc ) 478ee: 4a03 tstb %d3 478f0: 6700 010e beqw 47a00 rtems_filesystem_freenode( &parentloc ); 478f4: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 478f8: 4a88 tstl %a0 <== NOT EXECUTED 478fa: 6700 0104 beqw 47a00 <== NOT EXECUTED 478fe: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 47902: 4a88 tstl %a0 <== NOT EXECUTED 47904: 6700 00fa beqw 47a00 <== NOT EXECUTED 47908: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4790a: 78ff moveq #-1,%d4 <== NOT EXECUTED 4790c: 6000 00ec braw 479fa <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 47910: 226e ffe4 moveal %fp@(-28),%a1 47914: 2069 0010 moveal %a1@(16),%a0 47918: 4a88 tstl %a0 4791a: 6606 bnes 47922 rtems_filesystem_freenode( &loc ); 4791c: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 47920: 6068 bras 4798a <== NOT EXECUTED 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 ){ 47922: 2f02 movel %d2,%sp@- 47924: 4e90 jsr %a0@ 47926: 588f addql #4,%sp 47928: 7201 moveq #1,%d1 4792a: b280 cmpl %d0,%d1 4792c: 6744 beqs 47972 rtems_filesystem_freenode( &loc ); 4792e: 206e ffe4 moveal %fp@(-28),%a0 47932: 4a88 tstl %a0 47934: 670e beqs 47944 47936: 2068 001c moveal %a0@(28),%a0 4793a: 4a88 tstl %a0 4793c: 6706 beqs 47944 4793e: 2f02 movel %d2,%sp@- 47940: 4e90 jsr %a0@ 47942: 588f addql #4,%sp if ( free_parentloc ) 47944: 4a03 tstb %d3 47946: 6718 beqs 47960 rtems_filesystem_freenode( &parentloc ); 47948: 206e fff8 moveal %fp@(-8),%a0 4794c: 4a88 tstl %a0 4794e: 6710 beqs 47960 47950: 2068 001c moveal %a0@(28),%a0 47954: 4a88 tstl %a0 47956: 6708 beqs 47960 47958: 486e ffec pea %fp@(-20) 4795c: 4e90 jsr %a0@ 4795e: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); 47960: 4eb9 0007 61f0 jsr 761f0 <__errno> 47966: 78ff moveq #-1,%d4 47968: 2040 moveal %d0,%a0 4796a: 7014 moveq #20,%d0 4796c: 2080 movel %d0,%a0@ 4796e: 6000 0092 braw 47a02 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 47972: 206e ffe0 moveal %fp@(-32),%a0 47976: 2068 0034 moveal %a0@(52),%a0 4797a: 4a88 tstl %a0 4797c: 6644 bnes 479c2 rtems_filesystem_freenode( &loc ); 4797e: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 47982: 4a88 tstl %a0 <== NOT EXECUTED 47984: 670e beqs 47994 <== NOT EXECUTED 47986: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4798a: 4a88 tstl %a0 <== NOT EXECUTED 4798c: 6706 beqs 47994 <== NOT EXECUTED 4798e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47990: 4e90 jsr %a0@ <== NOT EXECUTED 47992: 588f addql #4,%sp <== NOT EXECUTED if ( free_parentloc ) 47994: 4a03 tstb %d3 <== NOT EXECUTED 47996: 6718 beqs 479b0 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 47998: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4799c: 4a88 tstl %a0 <== NOT EXECUTED 4799e: 6710 beqs 479b0 <== NOT EXECUTED 479a0: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 479a4: 4a88 tstl %a0 <== NOT EXECUTED 479a6: 6708 beqs 479b0 <== NOT EXECUTED 479a8: 486e ffec pea %fp@(-20) <== NOT EXECUTED 479ac: 4e90 jsr %a0@ <== NOT EXECUTED 479ae: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 479b0: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 479b6: 78ff moveq #-1,%d4 <== NOT EXECUTED 479b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 479ba: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 479c0: 6040 bras 47a02 <== NOT EXECUTED } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 479c2: 2f02 movel %d2,%sp@- 479c4: 2f04 movel %d4,%sp@- 479c6: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 479c8: 206e ffe4 moveal %fp@(-28),%a0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 479cc: 2800 movel %d0,%d4 rtems_filesystem_freenode( &loc ); 479ce: 508f addql #8,%sp 479d0: 4a88 tstl %a0 479d2: 670e beqs 479e2 479d4: 2068 001c moveal %a0@(28),%a0 479d8: 4a88 tstl %a0 479da: 6706 beqs 479e2 479dc: 2f02 movel %d2,%sp@- 479de: 4e90 jsr %a0@ 479e0: 588f addql #4,%sp if ( free_parentloc ) 479e2: 4a03 tstb %d3 479e4: 671c beqs 47a02 rtems_filesystem_freenode( &parentloc ); 479e6: 206e fff8 moveal %fp@(-8),%a0 479ea: 4a88 tstl %a0 479ec: 6714 beqs 47a02 479ee: 2068 001c moveal %a0@(28),%a0 479f2: 4a88 tstl %a0 479f4: 670c beqs 47a02 479f6: 486e ffec pea %fp@(-20) 479fa: 4e90 jsr %a0@ 479fc: 588f addql #4,%sp 479fe: 6002 bras 47a02 47a00: 78ff moveq #-1,%d4 return result; } 47a02: 2004 movel %d4,%d0 47a04: 4cee 0c3c ffc0 moveml %fp@(-64),%d2-%d5/%a2-%a3 47a0a: 4e5e unlk %fp 47a0c: 4e75 rts ... 0004b858 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 4b858: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 4b85c: 203c 0005 b824 movel #374820,%d0 <== NOT EXECUTED 4b862: 4e5e unlk %fp <== NOT EXECUTED 4b864: 4e75 rts <== NOT EXECUTED ... 00048de0 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 48de0: 4e56 0000 linkw %fp,#0 48de4: 2f02 movel %d2,%sp@- 48de6: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 48dea: 2f02 movel %d2,%sp@- 48dec: 2f2e 0008 movel %fp@(8),%sp@- 48df0: 4eb9 0004 8e18 jsr 48e18 if (nap) 48df6: 508f addql #8,%sp 48df8: 4a80 tstl %d0 48dfa: 670c beqs 48e08 return nap->name; return rtems_assoc_name_bad(local_value); } 48dfc: 2040 moveal %d0,%a0 48dfe: 242e fffc movel %fp@(-4),%d2 48e02: 4e5e unlk %fp 48e04: 2010 movel %a0@,%d0 48e06: 4e75 rts nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 48e08: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 48e0c: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 48e10: 4e5e unlk %fp <== NOT EXECUTED nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 48e12: 4ef9 0004 b858 jmp 4b858 <== NOT EXECUTED 00048e18 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 48e18: 4e56 0000 linkw %fp,#0 48e1c: 2f0a movel %a2,%sp@- 48e1e: 246e 0008 moveal %fp@(8),%a2 48e22: 2f02 movel %d2,%sp@- 48e24: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 48e28: 2012 movel %a2@,%d0 48e2a: 6718 beqs 48e44 48e2c: 4879 0005 a916 pea 5a916 48e32: 2f00 movel %d0,%sp@- 48e34: 4eb9 0004 db74 jsr 4db74 48e3a: 508f addql #8,%sp 48e3c: 4a80 tstl %d0 48e3e: 6604 bnes 48e44 default_ap = ap++; 48e40: 200a movel %a2,%d0 <== NOT EXECUTED 48e42: 600a bras 48e4e <== NOT EXECUTED 48e44: 4280 clrl %d0 48e46: 600a bras 48e52 for ( ; ap->name; ap++) if (ap->local_value == local_value) 48e48: b4aa 0004 cmpl %a2@(4),%d2 48e4c: 670a beqs 48e58 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 48e4e: 45ea 000c lea %a2@(12),%a2 48e52: 4a92 tstl %a2@ 48e54: 66f2 bnes 48e48 48e56: 2440 moveal %d0,%a2 if (ap->local_value == local_value) return ap; return default_ap; } 48e58: 200a movel %a2,%d0 48e5a: 242e fff8 movel %fp@(-8),%d2 48e5e: 246e fffc moveal %fp@(-4),%a2 48e62: 4e5e unlk %fp 48e64: 4e75 rts ... 0004b868 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 4b868: 4e56 0000 linkw %fp,#0 4b86c: 2f0a movel %a2,%sp@- 4b86e: 246e 0008 moveal %fp@(8),%a2 4b872: 2f02 movel %d2,%sp@- 4b874: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4b878: 2012 movel %a2@,%d0 4b87a: 6718 beqs 4b894 4b87c: 4879 0005 a916 pea 5a916 4b882: 2f00 movel %d0,%sp@- 4b884: 4eb9 0004 db74 jsr 4db74 4b88a: 508f addql #8,%sp 4b88c: 4a80 tstl %d0 4b88e: 6604 bnes 4b894 default_ap = ap++; 4b890: 200a movel %a2,%d0 <== NOT EXECUTED 4b892: 600a bras 4b89e <== NOT EXECUTED 4b894: 4280 clrl %d0 4b896: 600a bras 4b8a2 for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 4b898: b4aa 0008 cmpl %a2@(8),%d2 4b89c: 670a beqs 4b8a8 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 4b89e: 45ea 000c lea %a2@(12),%a2 4b8a2: 4a92 tstl %a2@ 4b8a4: 66f2 bnes 4b898 4b8a6: 2440 moveal %d0,%a2 if (ap->remote_value == remote_value) return ap; return default_ap; } 4b8a8: 200a movel %a2,%d0 4b8aa: 242e fff8 movel %fp@(-8),%d2 4b8ae: 246e fffc moveal %fp@(-4),%a2 4b8b2: 4e5e unlk %fp 4b8b4: 4e75 rts ... 0004c558 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4c558: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4c55c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4c560: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4c564: 4eb9 0004 8e18 jsr 48e18 <== NOT EXECUTED if (nap) 4c56a: 508f addql #8,%sp <== NOT EXECUTED 4c56c: 4a80 tstl %d0 <== NOT EXECUTED 4c56e: 6706 beqs 4c576 <== NOT EXECUTED return nap->remote_value; 4c570: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c572: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED return 0; } 4c576: 4e5e unlk %fp <== NOT EXECUTED 4c578: 4e75 rts <== NOT EXECUTED ... 00042140 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 42140: 4e56 ffe8 linkw %fp,#-24 42144: 202e 0008 movel %fp@(8),%d0 42148: 48d7 047c moveml %d2-%d6/%a2,%sp@ 4214c: 246e 000c moveal %fp@(12),%a2 42150: 242e 0010 movel %fp@(16),%d2 const char *p; if ( !name ) 42154: 4a80 tstl %d0 42156: 6756 beqs 421ae return NULL; if ( !value ) 42158: 4a8a tstl %a2 4215a: 6754 beqs 421b0 return NULL; if ( !length ) 4215c: 4a82 tstl %d2 4215e: 674e beqs 421ae return NULL; value[0] = '\0'; 42160: 4212 clrb %a2@ p = rtems_bsp_cmdline_get_param_raw( name ); 42162: 2f00 movel %d0,%sp@- 42164: 4eb9 0004 21bc jsr 421bc if ( !p ) 4216a: 588f addql #4,%sp 4216c: 4a80 tstl %d0 4216e: 673e beqs 421ae int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i quotes++; 4217e: 5283 addql #1,%d3 <== NOT EXECUTED 42180: 600c bras 4218e <== NOT EXECUTED } else if ( ((quotes % 2) == 0) && *p == ' ' ) 42182: 0803 0000 btst #0,%d3 42186: 6606 bnes 4218e 42188: 7c20 moveq #32,%d6 4218a: bc85 cmpl %d5,%d6 4218c: 6722 beqs 421b0 break; value[i++] = *p++; 4218e: 1584 1800 moveb %d4,%a2@(00000000,%d1:l) value[i] = '\0'; 42192: 4204 clrb %d4 for (i=0 ; *p && i 421a8: b481 cmpl %d1,%d2 421aa: 62cc bhis 42178 421ac: 6002 bras 421b0 <== NOT EXECUTED 421ae: 95ca subal %a2,%a2 return NULL; copy_string( p, value, length ); return value; } 421b0: 200a movel %a2,%d0 421b2: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 421b8: 4e5e unlk %fp 421ba: 4e75 rts 000421e4 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 421e4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 421e8: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 421ec: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 421f0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 421f4: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 421f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 421fa: 2f04 movel %d4,%sp@- <== NOT EXECUTED 421fc: 4eb9 0004 2140 jsr 42140 <== NOT EXECUTED if ( !p ) 42202: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED { const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 42206: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !p ) 42208: 6746 beqs 42250 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; 4220a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4220c: 4eb9 0004 e420 jsr 4e420 <== NOT EXECUTED 42212: 588f addql #4,%sp <== NOT EXECUTED 42214: 2043 moveal %d3,%a0 <== NOT EXECUTED 42216: d1c0 addal %d0,%a0 <== NOT EXECUTED if ( *rhs != '=' ) 42218: 723d moveq #61,%d1 <== NOT EXECUTED 4221a: 1010 moveb %a0@,%d0 <== NOT EXECUTED 4221c: 49c0 extbl %d0 <== NOT EXECUTED 4221e: b280 cmpl %d0,%d1 <== NOT EXECUTED 42220: 662e bnes 42250 <== NOT EXECUTED return NULL; rhs++; 42222: 5288 addql #1,%a0 <== NOT EXECUTED if ( *rhs == '\"' ) 42224: 123c 0022 moveb #34,%d1 <== NOT EXECUTED 42228: 1010 moveb %a0@,%d0 <== NOT EXECUTED 4222a: 49c0 extbl %d0 <== NOT EXECUTED 4222c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4222e: 6602 bnes 42232 <== NOT EXECUTED rhs++; 42230: 5288 addql #1,%a0 <== NOT EXECUTED 42232: 2242 moveal %d2,%a1 <== NOT EXECUTED 42234: 6002 bras 42238 <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; 42236: 12c0 moveb %d0,%a1@+ <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 42238: 1010 moveb %a0@,%d0 <== NOT EXECUTED *d++ = *rhs++; 4223a: 5288 addql #1,%a0 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 4223c: 66f8 bnes 42236 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 4223e: 2049 moveal %a1,%a0 <== NOT EXECUTED 42240: 7222 moveq #34,%d1 <== NOT EXECUTED 42242: 1020 moveb %a0@-,%d0 <== NOT EXECUTED 42244: 49c0 extbl %d0 <== NOT EXECUTED 42246: b280 cmpl %d0,%d1 <== NOT EXECUTED 42248: 6602 bnes 4224c <== NOT EXECUTED 4224a: 2248 moveal %a0,%a1 <== NOT EXECUTED d--; *d = '\0'; 4224c: 4211 clrb %a1@ <== NOT EXECUTED return value; 4224e: 6002 bras 42252 <== NOT EXECUTED 42250: 4282 clrl %d2 <== NOT EXECUTED } 42252: 2002 movel %d2,%d0 <== NOT EXECUTED 42254: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4225a: 4e5e unlk %fp <== NOT EXECUTED 4225c: 4e75 rts <== NOT EXECUTED ... 0004c528 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 4c528: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c52c: 2f02 movel %d2,%sp@- <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 4c52e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4c532: 4879 0005 acf2 pea 5acf2 <== NOT EXECUTED 4c538: 4eb9 0004 c558 jsr 4c558 <== NOT EXECUTED 4c53e: 508f addql #8,%sp <== NOT EXECUTED 4c540: 2400 movel %d0,%d2 <== NOT EXECUTED 4c542: 670a beqs 4c54e <== NOT EXECUTED { errno = rc; 4c544: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4c54a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c54c: 2082 movel %d2,%a0@ <== NOT EXECUTED return -1; } return -1; } 4c54e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4c552: 70ff moveq #-1,%d0 <== NOT EXECUTED 4c554: 4e5e unlk %fp <== NOT EXECUTED 4c556: 4e75 rts 000420d8 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 420d8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); chars_written = rtems_verror(error_flag, printf_format, arglist); 420dc: 486e 0010 pea %fp@(16) <== NOT EXECUTED 420e0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 420e4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 420e8: 4eba fe4a jsr %pc@(41f34 ) <== NOT EXECUTED va_end(arglist); return chars_written; } 420ec: 4e5e unlk %fp <== NOT EXECUTED 420ee: 4e75 rts 0004223e : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 4223e: 4e56 ffe8 linkw %fp,#-24 42242: 48d7 047c moveml %d2-%d6/%a2,%sp@ 42246: 246e 0008 moveal %fp@(8),%a2 4224a: 2a2e 000c movel %fp@(12),%d5 4224e: 262e 0010 movel %fp@(16),%d3 42252: 242e 0014 movel %fp@(20),%d2 42256: 282e 0018 movel %fp@(24),%d4 /* * Verify Input parameters. */ if ( !pathname ) 4225a: 4a8a tstl %a2 4225c: 6610 bnes 4226e rtems_set_errno_and_return_minus_one( EFAULT ); 4225e: 4eb9 0004 cc6c jsr 4cc6c <__errno> 42264: 760e moveq #14,%d3 42266: 2040 moveal %d0,%a0 42268: 2083 movel %d3,%a0@ 4226a: 6000 008e braw 422fa if ( !pathloc ) 4226e: 4a82 tstl %d2 42270: 660e bnes 42280 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 42272: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 42278: 7405 moveq #5,%d2 <== NOT EXECUTED 4227a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4227c: 2082 movel %d2,%a0@ <== NOT EXECUTED 4227e: 607a bras 422fa <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 42280: 7c2f moveq #47,%d6 42282: 1012 moveb %a2@,%d0 42284: 1200 moveb %d0,%d1 42286: 49c1 extbl %d1 42288: bc81 cmpl %d1,%d6 4228a: 670c beqs 42298 4228c: 1c3c 005c moveb #92,%d6 42290: bc81 cmpl %d1,%d6 42292: 6704 beqs 42298 42294: 4a00 tstb %d0 42296: 6620 bnes 422b8 42298: 4878 0014 pea 14 4229c: 2079 0005 b794 moveal 5b794 ,%a0 422a2: 41e8 0018 lea %a0@(24),%a0 422a6: 2f08 movel %a0,%sp@- 422a8: 2f02 movel %d2,%sp@- 422aa: 4eb9 0004 d48c jsr 4d48c 422b0: 4fef 000c lea %sp@(12),%sp 422b4: 7001 moveq #1,%d0 422b6: 601c bras 422d4 422b8: 4878 0014 pea 14 422bc: 2039 0005 b794 movel 5b794 ,%d0 422c2: 5880 addql #4,%d0 422c4: 2f00 movel %d0,%sp@- 422c6: 2f02 movel %d2,%sp@- 422c8: 4eb9 0004 d48c jsr 4d48c 422ce: 4fef 000c lea %sp@(12),%sp 422d2: 4280 clrl %d0 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 422d4: d5c0 addal %d0,%a2 422d6: 9a80 subl %d0,%d5 422d8: 2d4a 0008 movel %a2,%fp@(8) 422dc: 2d45 000c movel %d5,%fp@(12) 422e0: 2d44 0018 movel %d4,%fp@(24) 422e4: 2d42 0014 movel %d2,%fp@(20) 422e8: 2d43 0010 movel %d3,%fp@(16) pathnamelen - i, flags, pathloc, follow_link ); } 422ec: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 422f2: 4e5e unlk %fp 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], 422f4: 4ef9 0004 216e jmp 4216e pathnamelen - i, flags, pathloc, follow_link ); } 422fa: 70ff moveq #-1,%d0 422fc: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 42302: 4e5e unlk %fp 42304: 4e75 rts ... 0004216e : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 4216e: 4e56 fff0 linkw %fp,#-16 42172: 202e 0008 movel %fp@(8),%d0 42176: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4217a: 222e 000c movel %fp@(12),%d1 4217e: 242e 0010 movel %fp@(16),%d2 42182: 246e 0014 moveal %fp@(20),%a2 42186: 282e 0018 movel %fp@(24),%d4 /* * Verify Input parameters. */ if ( !pathname ) 4218a: 4a80 tstl %d0 4218c: 6612 bnes 421a0 rtems_set_errno_and_return_minus_one( EFAULT ); 4218e: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 42194: 76ff moveq #-1,%d3 <== NOT EXECUTED 42196: 720e moveq #14,%d1 <== NOT EXECUTED 42198: 2040 moveal %d0,%a0 <== NOT EXECUTED 4219a: 2081 movel %d1,%a0@ <== NOT EXECUTED 4219c: 6000 0094 braw 42232 <== NOT EXECUTED if ( !pathloc ) 421a0: 4a8a tstl %a2 421a2: 6610 bnes 421b4 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 421a4: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 421aa: 76ff moveq #-1,%d3 <== NOT EXECUTED 421ac: 2040 moveal %d0,%a0 <== NOT EXECUTED 421ae: 7005 moveq #5,%d0 <== NOT EXECUTED 421b0: 2080 movel %d0,%a0@ <== NOT EXECUTED 421b2: 607e bras 42232 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 421b4: 206a 000c moveal %a2@(12),%a0 421b8: 2050 moveal %a0@,%a0 421ba: 4a88 tstl %a0 421bc: 6750 beqs 4220e rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 421be: 2f0a movel %a2,%sp@- 421c0: 2f02 movel %d2,%sp@- 421c2: 2f01 movel %d1,%sp@- 421c4: 2f00 movel %d0,%sp@- 421c6: 4e90 jsr %a0@ /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 421c8: 4fef 0010 lea %sp@(16),%sp rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 421cc: 2600 movel %d0,%d3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 421ce: 6662 bnes 42232 421d0: 4a84 tstl %d4 421d2: 675e beqs 42232 if ( !pathloc->ops->node_type_h ){ 421d4: 226a 000c moveal %a2@(12),%a1 421d8: 2069 0010 moveal %a1@(16),%a0 421dc: 4a88 tstl %a0 421de: 6606 bnes 421e6 rtems_filesystem_freenode( pathloc ); 421e0: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 421e4: 601e bras 42204 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 421e6: 2f0a movel %a2,%sp@- 421e8: 4e90 jsr %a0@ if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 421ea: 588f addql #4,%sp 421ec: 7201 moveq #1,%d1 421ee: 5780 subql #3,%d0 421f0: b280 cmpl %d0,%d1 421f2: 653e bcss 42232 ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 421f4: 206a 000c moveal %a2@(12),%a0 421f8: 2268 0034 moveal %a0@(52),%a1 421fc: 4a89 tstl %a1 421fe: 6620 bnes 42220 rtems_filesystem_freenode( pathloc ); 42200: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 42204: 4a88 tstl %a0 <== NOT EXECUTED 42206: 6706 beqs 4220e <== NOT EXECUTED 42208: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4220a: 4e90 jsr %a0@ <== NOT EXECUTED 4220c: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4220e: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 42214: 76ff moveq #-1,%d3 <== NOT EXECUTED 42216: 2040 moveal %d0,%a0 <== NOT EXECUTED 42218: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4221e: 6012 bras 42232 <== NOT EXECUTED * pathloc will be passed up (and eventually released). * Hence, the (valid) originial node that we submit to * eval_link_h() should be released by the handler. */ result = (*pathloc->ops->eval_link_h)( pathloc, flags ); 42220: 2d42 000c movel %d2,%fp@(12) 42224: 2d4a 0008 movel %a2,%fp@(8) } } return result; } 42228: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 4222e: 4e5e unlk %fp * 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 ); 42230: 4ed1 jmp %a1@ } } return result; } 42232: 2003 movel %d3,%d0 42234: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 4223a: 4e5e unlk %fp 4223c: 4e75 rts 00041e0c : /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 41e0c: 7012 moveq #18,%d0 * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 41e0e: 4e56 ffdc linkw %fp,#-36 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 41e12: 2079 0005 b794 moveal 5b794 ,%a0 41e18: 2140 002c movel %d0,%a0@(44) * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 41e1c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ */ rtems_filesystem_umask = 022; init_fs_mount_table(); 41e20: 4eb9 0004 2584 jsr 42584 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 41e26: 4ab9 0005 9dd8 tstl 59dd8 41e2c: 6608 bnes 41e36 rtems_fatal_error_occurred( 0xABCD0001 ); 41e2e: 2f3c abcd 0001 movel #-1412628479,%sp@- <== NOT EXECUTED 41e34: 602e bras 41e64 <== NOT EXECUTED mt = &rtems_filesystem_mount_table[0]; 41e36: 2079 0005 b68c moveal 5b68c ,%a0 status = mount( 41e3c: 2f28 000c movel %a0@(12),%sp@- 41e40: 2f28 0008 movel %a0@(8),%sp@- 41e44: 2f28 0004 movel %a0@(4),%sp@- 41e48: 2f10 movel %a0@,%sp@- 41e4a: 486e fffc pea %fp@(-4) 41e4e: 4eb9 0004 25a6 jsr 425a6 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 41e54: 4fef 0014 lea %sp@(20),%sp 41e58: 72ff moveq #-1,%d1 41e5a: b280 cmpl %d0,%d1 41e5c: 660c bnes 41e6a rtems_fatal_error_occurred( 0xABCD0002 ); 41e5e: 2f3c abcd 0002 movel #-1412628478,%sp@- <== NOT EXECUTED 41e64: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED rtems_filesystem_link_counts = 0; 41e6a: 2079 0005 b794 moveal 5b794 ,%a0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 41e70: 45f9 0004 d48c lea 4d48c ,%a2 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 41e76: 240e movel %fp,%d2 41e78: 0682 ffff ffe8 addil #-24,%d2 41e7e: 47f9 0004 223e lea 4223e ,%a3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 41e84: 4240 clrw %d0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 41e86: 226e fffc moveal %fp@(-4),%a1 41e8a: 43e9 001c lea %a1@(28),%a1 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 41e8e: 3140 0030 movew %d0,%a0@(48) * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 41e92: 4878 0014 pea 14 41e96: 2f09 movel %a1,%sp@- 41e98: 4868 0018 pea %a0@(24) 41e9c: 4e92 jsr %a2@ /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 41e9e: 42a7 clrl %sp@- 41ea0: 2f02 movel %d2,%sp@- 41ea2: 42a7 clrl %sp@- 41ea4: 4878 0001 pea 1 41ea8: 4879 0005 a142 pea 5a142 41eae: 4e93 jsr %a3@ rtems_filesystem_root = loc; 41eb0: 4fef 0020 lea %sp@(32),%sp 41eb4: 4878 0014 pea 14 41eb8: 2079 0005 b794 moveal 5b794 ,%a0 41ebe: 41e8 0018 lea %a0@(24),%a0 41ec2: 2f02 movel %d2,%sp@- 41ec4: 2f08 movel %a0,%sp@- 41ec6: 4e92 jsr %a2@ /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 41ec8: 42a7 clrl %sp@- 41eca: 2f02 movel %d2,%sp@- 41ecc: 42a7 clrl %sp@- 41ece: 4878 0001 pea 1 41ed2: 4879 0005 a142 pea 5a142 41ed8: 4e93 jsr %a3@ rtems_filesystem_current = loc; 41eda: 4fef 0020 lea %sp@(32),%sp 41ede: 4878 0014 pea 14 41ee2: 2279 0005 b794 moveal 5b794 ,%a1 41ee8: 5889 addql #4,%a1 41eea: 2f02 movel %d2,%sp@- 41eec: 2f09 movel %a1,%sp@- 41eee: 4e92 jsr %a2@ * * 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); 41ef0: 4878 01ff pea 1ff 41ef4: 4879 0005 a144 pea 5a144 41efa: 4eb9 0004 244c jsr 4244c if ( status != 0 ) 41f00: 4fef 0014 lea %sp@(20),%sp 41f04: 4a80 tstl %d0 41f06: 670a beqs 41f12 rtems_fatal_error_occurred( 0xABCD0003 ); 41f08: 2f3c abcd 0003 movel #-1412628477,%sp@- <== NOT EXECUTED 41f0e: 6000 ff54 braw 41e64 <== NOT EXECUTED * 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. */ } 41f12: 4cee 0c04 ffdc moveml %fp@(-36),%d2/%a2-%a3 41f18: 4e5e unlk %fp 41f1a: 4e75 rts 0004965c : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 4965c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49660: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 49664: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 49668: 4e5e unlk %fp <== NOT EXECUTED ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 4966a: 2050 moveal %a0@,%a0 <== NOT EXECUTED 4966c: b1d1 cmpal %a1@,%a0 <== NOT EXECUTED 4966e: 57c0 seq %d0 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 49670: 4480 negl %d0 <== NOT EXECUTED 49672: 4e75 rts 00041d0c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 41d0c: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 41d10: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 41d14: 262e 0008 movel %fp@(8),%d3 <== 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 ); 41d18: 49f9 0004 e038 lea 4e038 ,%a4 <== NOT EXECUTED 41d1e: 240e movel %fp,%d2 <== NOT EXECUTED 41d20: 0682 ffff ffec addil #-20,%d2 <== NOT EXECUTED 41d26: 2f03 movel %d3,%sp@- <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 41d28: 246e 000c moveal %fp@(12),%a2 <== 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 ); 41d2c: 4e94 jsr %a4@ <== NOT EXECUTED 41d2e: 7201 moveq #1,%d1 <== NOT EXECUTED 41d30: 2e81 movel %d1,%sp@ <== NOT EXECUTED 41d32: 2f02 movel %d2,%sp@- <== NOT EXECUTED 41d34: 42a7 clrl %sp@- <== NOT EXECUTED 41d36: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41d38: 2f03 movel %d3,%sp@- <== NOT EXECUTED 41d3a: 4eb9 0004 223e jsr 4223e <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 41d40: 226e fff8 moveal %fp@(-8),%a1 <== 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 ); 41d44: 2800 movel %d0,%d4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 41d46: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; 41d4a: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 41d4e: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 41d52: 4a88 tstl %a0 <== NOT EXECUTED 41d54: 6620 bnes 41d76 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 41d56: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 41d5a: 4a88 tstl %a0 <== NOT EXECUTED 41d5c: 6706 beqs 41d64 <== NOT EXECUTED 41d5e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 41d60: 4e90 jsr %a0@ <== NOT EXECUTED 41d62: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 41d64: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 41d6a: 2040 moveal %d0,%a0 <== NOT EXECUTED 41d6c: 70ff moveq #-1,%d0 <== NOT EXECUTED 41d6e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 41d74: 6060 bras 41dd6 <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 41d76: 2f02 movel %d2,%sp@- <== NOT EXECUTED 41d78: 4e90 jsr %a0@ <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 41d7a: 588f addql #4,%sp <== NOT EXECUTED 41d7c: 4a84 tstl %d4 <== NOT EXECUTED 41d7e: 6606 bnes 41d86 <== NOT EXECUTED 41d80: 7202 moveq #2,%d1 <== NOT EXECUTED 41d82: b280 cmpl %d0,%d1 <== NOT EXECUTED 41d84: 671a beqs 41da0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 41d86: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 41d8a: 4a88 tstl %a0 <== NOT EXECUTED 41d8c: 6742 beqs 41dd0 <== NOT EXECUTED 41d8e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 41d92: 4a88 tstl %a0 <== NOT EXECUTED 41d94: 673a beqs 41dd0 <== NOT EXECUTED 41d96: 486e ffec pea %fp@(-20) <== NOT EXECUTED 41d9a: 4e90 jsr %a0@ <== NOT EXECUTED 41d9c: 588f addql #4,%sp <== NOT EXECUTED 41d9e: 6030 bras 41dd0 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 41da0: 2f03 movel %d3,%sp@- <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 41da2: 2483 movel %d3,%a2@ <== NOT EXECUTED device_info->device_name_length = strlen( name ); 41da4: 4e94 jsr %a4@ <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 41da6: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 41daa: 588f addql #4,%sp <== NOT EXECUTED 41dac: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 41db0: 256b 004c 0008 movel %a3@(76),%a2@(8) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 41db6: 256b 0050 000c movel %a3@(80),%a2@(12) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 41dbc: 4a88 tstl %a0 <== NOT EXECUTED 41dbe: 6714 beqs 41dd4 <== NOT EXECUTED 41dc0: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 41dc4: 4a88 tstl %a0 <== NOT EXECUTED 41dc6: 670c beqs 41dd4 <== NOT EXECUTED 41dc8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 41dca: 4e90 jsr %a0@ <== NOT EXECUTED 41dcc: 588f addql #4,%sp <== NOT EXECUTED 41dce: 6004 bras 41dd4 <== NOT EXECUTED 41dd0: 700d moveq #13,%d0 <== NOT EXECUTED 41dd2: 6002 bras 41dd6 <== NOT EXECUTED 41dd4: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 41dd6: 4cee 1c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a4 <== NOT EXECUTED 41ddc: 4e5e unlk %fp <== NOT EXECUTED 41dde: 4e75 rts 00042308 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 42308: 4e56 0000 linkw %fp,#0 rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 4230c: 2039 0005 b684 movel 5b684 ,%d0 42312: 6742 beqs 42356 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 42314: 4878 0040 pea 40 42318: 2f00 movel %d0,%sp@- 4231a: 4eb9 0004 8e68 jsr 48e68 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 42320: 508f addql #8,%sp uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 42322: 23c0 0005 cd84 movel %d0,5cd84 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 42328: 6606 bnes 42330 rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 4232a: 4878 001a pea 1a <== NOT EXECUTED 4232e: 604c bras 4237c <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; 42330: 23c0 0005 cd88 movel %d0,5cd88 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 42336: 2040 moveal %d0,%a0 42338: 4280 clrl %d0 4233a: 2239 0005 b684 movel 5b684 ,%d1 42340: 6004 bras 42346 iop->data1 = iop + 1; 42342: 2148 fff4 movel %a0,%a0@(-12) 42346: 2248 moveal %a0,%a1 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++) 42348: 5280 addql #1,%d0 4234a: 41e8 0040 lea %a0@(64),%a0 4234e: b280 cmpl %d0,%d1 42350: 62f0 bhis 42342 iop->data1 = iop + 1; iop->data1 = NULL; 42352: 42a9 0034 clrl %a1@(52) /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 42356: 4879 0005 cd8c pea 5cd8c 4235c: 42a7 clrl %sp@- 4235e: 4878 0054 pea 54 42362: 4878 0001 pea 1 42366: 2f3c 4c42 494f movel #1279412559,%sp@- 4236c: 4eb9 0004 4cf8 jsr 44cf8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 42372: 4fef 0014 lea %sp@(20),%sp 42376: 4a80 tstl %d0 42378: 6708 beqs 42382 rtems_fatal_error_occurred( rc ); 4237a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4237c: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 42382: 2279 0005 b680 moveal 5b680 ,%a1 42388: 4a89 tstl %a1 4238a: 6704 beqs 42390 (* rtems_fs_init_helper)(); } 4238c: 4e5e unlk %fp /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) (* rtems_fs_init_helper)(); 4238e: 4ed1 jmp %a1@ } 42390: 4e5e unlk %fp <== NOT EXECUTED 42392: 4e75 rts 00061b22 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 61b22: 4e56 ffd4 linkw %fp,#-44 61b26: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 61b2a: 486e fffc pea %fp@(-4) 61b2e: 42a7 clrl %sp@- 61b30: 42a7 clrl %sp@- 61b32: 4eb9 0006 3200 jsr 63200 if (sc != RTEMS_SUCCESSFUL) return sc; 61b38: 4fef 000c lea %sp@(12),%sp rtems_status_code rtems_libio_set_private_env(void) { rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 61b3c: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) return sc; 61b3e: 6600 00f0 bnew 61c30 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 61b42: 203c 0009 bdb8 movel #638392,%d0 61b48: b0b9 0009 73bc cmpl 973bc ,%d0 61b4e: 6648 bnes 61b98 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 61b50: 4878 0048 pea 48 61b54: 4eb9 0004 6bcc jsr 46bcc if (!tmp) 61b5a: 588f addql #4,%sp 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)); 61b5c: 2600 movel %d0,%d3 if (!tmp) 61b5e: 6608 bnes 61b68 61b60: 143c 001a moveb #26,%d2 <== NOT EXECUTED 61b64: 6000 00ca braw 61c30 <== NOT EXECUTED #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); 61b68: 487a fec2 pea %pc@(61a2c ) 61b6c: 4879 0009 73bc pea 973bc 61b72: 42a7 clrl %sp@- 61b74: 4eb9 0006 3564 jsr 63564 if (sc != RTEMS_SUCCESSFUL) { 61b7a: 4fef 000c lea %sp@(12),%sp 61b7e: 4a80 tstl %d0 61b80: 6710 beqs 61b92 /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 61b82: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61b84: 2400 movel %d0,%d2 <== NOT EXECUTED 61b86: 4eb9 0004 6640 jsr 46640 <== NOT EXECUTED return sc; 61b8c: 588f addql #4,%sp <== NOT EXECUTED 61b8e: 6000 00a0 braw 61c30 <== NOT EXECUTED } rtems_current_user_env = tmp; 61b92: 23c3 0009 73bc movel %d3,973bc }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 61b98: 4878 0048 pea 48 61b9c: 45f9 0007 9228 lea 79228 ,%a2 61ba2: 4879 0009 bdb8 pea 9bdb8 * 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); 61ba8: 260e movel %fp,%d3 61baa: 0683 ffff ffe8 addil #-24,%d3 61bb0: 49f9 0004 6576 lea 46576 ,%a4 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 61bb6: 2679 0009 73bc moveal 973bc ,%a3 61bbc: 2f0b movel %a3,%sp@- 61bbe: 4e92 jsr %a2@ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 61bc0: 26ae fffc movel %fp@(-4),%a3@ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 61bc4: 4878 0014 pea 14 61bc8: 2079 0009 bda0 moveal 9bda0 ,%a0 61bce: 41e8 001c lea %a0@(28),%a0 61bd2: 2f08 movel %a0,%sp@- 61bd4: 486b 0018 pea %a3@(24) 61bd8: 4e92 jsr %a2@ * 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); 61bda: 42a7 clrl %sp@- 61bdc: 2f03 movel %d3,%sp@- 61bde: 42a7 clrl %sp@- 61be0: 4878 0001 pea 1 61be4: 4879 0009 6df2 pea 96df2 61bea: 4e94 jsr %a4@ rtems_filesystem_root = loc; 61bec: 4fef 002c lea %sp@(44),%sp 61bf0: 4878 0014 pea 14 61bf4: 2079 0009 73bc moveal 973bc ,%a0 61bfa: 41e8 0018 lea %a0@(24),%a0 61bfe: 2f03 movel %d3,%sp@- 61c00: 2f08 movel %a0,%sp@- 61c02: 4e92 jsr %a2@ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 61c04: 42a7 clrl %sp@- 61c06: 2f03 movel %d3,%sp@- 61c08: 42a7 clrl %sp@- 61c0a: 4878 0001 pea 1 61c0e: 4879 0009 6df2 pea 96df2 61c14: 4e94 jsr %a4@ rtems_filesystem_current = loc; 61c16: 4fef 0020 lea %sp@(32),%sp 61c1a: 4878 0014 pea 14 61c1e: 2039 0009 73bc movel 973bc ,%d0 61c24: 5880 addql #4,%d0 61c26: 2f03 movel %d3,%sp@- 61c28: 2f00 movel %d0,%sp@- 61c2a: 4e92 jsr %a2@ return RTEMS_SUCCESSFUL; 61c2c: 4fef 000c lea %sp@(12),%sp } 61c30: 2002 movel %d2,%d0 61c32: 4cee 1c0c ffd4 moveml %fp@(-44),%d2-%d3/%a2-%a4 61c38: 4e5e unlk %fp 61c3a: 4e75 rts 00061a86 : * 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) { 61a86: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 61a8a: 2f0a movel %a2,%sp@- <== 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); 61a8c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 61a90: 42a7 clrl %sp@- <== NOT EXECUTED 61a92: 42a7 clrl %sp@- <== NOT EXECUTED 61a94: 4eb9 0006 3200 jsr 63200 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 61a9a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 61a9e: 4a80 tstl %d0 <== NOT EXECUTED 61aa0: 6678 bnes 61b1a <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 61aa2: 2479 0009 73bc moveal 973bc ,%a2 <== NOT EXECUTED 61aa8: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 61aac: b092 cmpl %a2@,%d0 <== NOT EXECUTED 61aae: 661c bnes 61acc <== NOT EXECUTED /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 61ab0: 4879 0009 73bc pea 973bc <== NOT EXECUTED 61ab6: 42a7 clrl %sp@- <== NOT EXECUTED 61ab8: 4eb9 0006 35f8 jsr 635f8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 61abe: 508f addql #8,%sp <== NOT EXECUTED 61ac0: 4a80 tstl %d0 <== NOT EXECUTED 61ac2: 6656 bnes 61b1a <== NOT EXECUTED free_user_env(tmp); 61ac4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61ac6: 4eba ff64 jsr %pc@(61a2c ) <== NOT EXECUTED 61aca: 588f addql #4,%sp <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 61acc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 61ad0: 4879 0009 73bc pea 973bc <== NOT EXECUTED 61ad6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61ada: 4eb9 0006 366c jsr 6366c <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 61ae0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 61ae4: 4a80 tstl %d0 <== NOT EXECUTED 61ae6: 6626 bnes 61b0e <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 61ae8: 487a ff42 pea %pc@(61a2c ) <== NOT EXECUTED 61aec: 4879 0009 73bc pea 973bc <== NOT EXECUTED 61af2: 42a7 clrl %sp@- <== NOT EXECUTED 61af4: 4eb9 0006 3564 jsr 63564 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 61afa: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 61afe: 4a80 tstl %d0 <== NOT EXECUTED 61b00: 660c bnes 61b0e <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 61b02: 41ee fffc lea %fp@(-4),%a0 <== NOT EXECUTED 61b06: 23d0 0009 73bc movel %a0@,973bc <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 61b0c: 600c bras 61b1a <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 61b0e: 223c 0009 bdb8 movel #638392,%d1 <== NOT EXECUTED 61b14: 23c1 0009 73bc movel %d1,973bc <== NOT EXECUTED return sc; } 61b1a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 61b1e: 4e5e unlk %fp <== NOT EXECUTED 61b20: 4e75 rts 00049154 : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 49154: 7006 moveq #6,%d0 */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 49156: 4e56 0000 linkw %fp,#0 4915a: 222e 0008 movel %fp@(8),%d1 uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4915e: c081 andl %d1,%d0 */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 49160: 2f02 movel %d2,%sp@- uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 49162: 7406 moveq #6,%d2 49164: b480 cmpl %d0,%d2 49166: 6604 bnes 4916c 49168: 7002 moveq #2,%d0 <== NOT EXECUTED 4916a: 6012 bras 4917e <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 4916c: 0801 0001 btst #1,%d1 49170: 6704 beqs 49176 49172: 4280 clrl %d0 49174: 6008 bras 4917e 49176: 2001 movel %d1,%d0 <== NOT EXECUTED 49178: e488 lsrl #2,%d0 <== NOT EXECUTED 4917a: 7401 moveq #1,%d2 <== NOT EXECUTED 4917c: c082 andl %d2,%d0 <== NOT EXECUTED fcntl_flags |= O_RDONLY; } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) { fcntl_flags |= O_WRONLY; } if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) { 4917e: 0801 0000 btst #0,%d1 49182: 6704 beqs 49188 fcntl_flags |= O_NONBLOCK; 49184: 08c0 000e bset #14,%d0 } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 49188: 0801 0009 btst #9,%d1 4918c: 6704 beqs 49192 fcntl_flags |= O_APPEND; 4918e: 7408 moveq #8,%d2 49190: 8082 orl %d2,%d0 } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 49192: 0801 000a btst #10,%d1 49196: 6704 beqs 4919c fcntl_flags |= O_CREAT; 49198: 08c0 0009 bset #9,%d0 } return fcntl_flags; } 4919c: 241f movel %sp@+,%d2 4919e: 4e5e unlk %fp 491a0: 4e75 rts 00046c80 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 46c80: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 46c84: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46c86: 2f02 movel %d2,%sp@- <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 46c88: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46c8c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46c90: 2f39 0009 70c0 movel 970c0 ,%sp@- <== NOT EXECUTED 46c96: 4eb9 0004 bd2c jsr 4bd2c <_Protected_heap_Get_block_size> <== NOT EXECUTED 46c9c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 46ca0: 4a00 tstb %d0 <== NOT EXECUTED 46ca2: 671a beqs 46cbe <== NOT EXECUTED MSBUMP(lifetime_freed, size); 46ca4: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 46ca8: 4282 clrl %d2 <== NOT EXECUTED 46caa: d7b9 0009 bd9c addl %d3,9bd9c <== NOT EXECUTED 46cb0: 2039 0009 bd98 movel 9bd98 ,%d0 <== NOT EXECUTED 46cb6: d182 addxl %d2,%d0 <== NOT EXECUTED 46cb8: 23c0 0009 bd98 movel %d0,9bd98 <== NOT EXECUTED } } 46cbe: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46cc2: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 46cc6: 4e5e unlk %fp <== NOT EXECUTED 46cc8: 4e75 rts 00046cca : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 46cca: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 46cce: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 46cd2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46cd4: 2f02 movel %d2,%sp@- <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 46cd6: 4a80 tstl %d0 <== NOT EXECUTED 46cd8: 674e beqs 46d28 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 46cda: 204e moveal %fp,%a0 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 46cdc: 4282 clrl %d2 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 46cde: 42a0 clrl %a0@- <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 46ce0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46ce2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46ce4: 2f39 0009 70c0 movel 970c0 ,%sp@- <== NOT EXECUTED 46cea: 4eb9 0004 bd2c jsr 4bd2c <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 46cf0: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 46cf4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 46cf8: 2039 0009 bd90 movel 9bd90 ,%d0 <== NOT EXECUTED 46cfe: d6b9 0009 bd94 addl 9bd94 ,%d3 <== NOT EXECUTED 46d04: d580 addxl %d0,%d2 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 46d06: 2003 movel %d3,%d0 <== NOT EXECUTED 46d08: 90b9 0009 bd9c subl 9bd9c ,%d0 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 46d0e: 23c2 0009 bd90 movel %d2,9bd90 <== NOT EXECUTED 46d14: 23c3 0009 bd94 movel %d3,9bd94 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 46d1a: b0b9 0009 bd8c cmpl 9bd8c ,%d0 <== NOT EXECUTED 46d20: 6306 blss 46d28 <== NOT EXECUTED s->max_depth = current_depth; 46d22: 23c0 0009 bd8c movel %d0,9bd8c <== NOT EXECUTED } 46d28: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46d2c: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 46d30: 4e5e unlk %fp <== NOT EXECUTED 46d32: 4e75 rts 00046d34 : #include #include static void rtems_malloc_statistics_initialize( void ) { 46d34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 46d38: 4878 002c pea 2c <== NOT EXECUTED 46d3c: 42a7 clrl %sp@- <== NOT EXECUTED 46d3e: 4879 0009 bd74 pea 9bd74 <== NOT EXECUTED 46d44: 4eb9 0007 9394 jsr 79394 <== NOT EXECUTED 46d4a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 46d4e: 4e5e unlk %fp <== NOT EXECUTED 46d50: 4e75 rts <== NOT EXECUTED ... 0004da64 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 4da64: 4e56 0000 linkw %fp,#0 4da68: 2f0a movel %a2,%sp@- 4da6a: 246e 0008 moveal %fp@(8),%a2 4da6e: 2f02 movel %d2,%sp@- void *return_this; /* * Parameter error checks */ if ( !pointer ) 4da70: 4a8a tstl %a2 4da72: 6758 beqs 4dacc return EINVAL; *pointer = NULL; 4da74: 4292 clrl %a2@ /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4da76: 7003 moveq #3,%d0 4da78: b0b9 0006 23f4 cmpl 623f4 <_System_state_Current>,%d0 4da7e: 660a bnes 4da8a 4da80: 4eb9 0004 3674 jsr 43674 4da86: 4a00 tstb %d0 4da88: 6742 beqs 4dacc /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4da8a: 4eb9 0004 36cc jsr 436cc uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 4da90: 42a7 clrl %sp@- 4da92: 2f2e 000c movel %fp@(12),%sp@- 4da96: 2f2e 0010 movel %fp@(16),%sp@- 4da9a: 2f39 0006 0950 movel 60950 ,%sp@- 4daa0: 4eb9 0004 8018 jsr 48018 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 4daa6: 4fef 0010 lea %sp@(16),%sp 4daaa: 2400 movel %d0,%d2 4daac: 6604 bnes 4dab2 4daae: 700c moveq #12,%d0 4dab0: 601c bras 4dace return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 4dab2: 2079 0006 0ff6 moveal 60ff6 ,%a0 4dab8: 4a88 tstl %a0 4daba: 670a beqs 4dac6 (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 4dabc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4dabe: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4dac2: 4e90 jsr %a0@ <== NOT EXECUTED 4dac4: 588f addql #4,%sp <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 4dac6: 2482 movel %d2,%a2@ 4dac8: 4280 clrl %d0 return 0; 4daca: 6002 bras 4dace 4dacc: 7016 moveq #22,%d0 } 4dace: 242e fff8 movel %fp@(-8),%d2 4dad2: 246e fffc moveal %fp@(-4),%a2 4dad6: 4e5e unlk %fp 4dad8: 4e75 rts ... 000420ba : void rtems_panic( const char *printf_format, ... ) { 420ba: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 420be: 486e 000c pea %fp@(12) <== NOT EXECUTED 420c2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 420c6: 2f3c 2000 0000 movel #536870912,%sp@- <== NOT EXECUTED 420cc: 4eba fe66 jsr %pc@(41f34 ) <== NOT EXECUTED 420d0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED va_end(arglist); } 420d4: 4e5e unlk %fp <== NOT EXECUTED 420d6: 4e75 rts 0004ad6a : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 4ad6a: 4e56 0000 linkw %fp,#0 if (!rtems_pipe_configured) 4ad6e: 4a39 0005 bd14 tstb 5bd14 4ad74: 6740 beqs 4adb6 return; if (rtems_pipe_semaphore) 4ad76: 4ab9 0005 c690 tstl 5c690 <== NOT EXECUTED 4ad7c: 6638 bnes 4adb6 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 4ad7e: 4879 0005 c690 pea 5c690 <== NOT EXECUTED 4ad84: 42a7 clrl %sp@- <== NOT EXECUTED 4ad86: 4878 0054 pea 54 <== NOT EXECUTED 4ad8a: 4878 0001 pea 1 <== NOT EXECUTED 4ad8e: 2f3c 5049 5045 movel #1346981957,%sp@- <== NOT EXECUTED 4ad94: 4eb9 0004 4cf8 jsr 44cf8 <== 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) 4ad9a: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4ad9e: 4a80 tstl %d0 <== NOT EXECUTED 4ada0: 6708 beqs 4adaa <== NOT EXECUTED rtems_fatal_error_occurred (sc); 4ada2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ada4: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 4adaa: 4eb9 0004 4910 jsr 44910 <== NOT EXECUTED rtems_pipe_no = now; 4adb0: 33c0 0005 c698 movew %d0,5c698 <== NOT EXECUTED } 4adb6: 4e5e unlk %fp 4adb8: 4e75 rts 00071a2c : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 71a2c: 4e56 ffec linkw %fp,#-20 71a30: 48d7 041c moveml %d2-%d4/%a2,%sp@ 71a34: 486e fffc pea %fp@(-4) 71a38: 262e 0008 movel %fp@(8),%d3 71a3c: 2f03 movel %d3,%sp@- 71a3e: 4879 0009 c96c pea 9c96c <_Rate_monotonic_Information> 71a44: 242e 000c movel %fp@(12),%d2 71a48: 4eb9 0004 ba84 jsr 4ba84 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 71a4e: 4fef 000c lea %sp@(12),%sp 71a52: 2440 moveal %d0,%a2 71a54: 4aae fffc tstl %fp@(-4) 71a58: 6600 0138 bnew 71b92 case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 71a5c: 2039 0009 bf82 movel 9bf82 <_Thread_Executing>,%d0 71a62: b0aa 0040 cmpl %a2@(64),%d0 71a66: 670c beqs 71a74 _Thread_Enable_dispatch(); 71a68: 4eb9 0004 c33e jsr 4c33e <_Thread_Enable_dispatch> 71a6e: 7817 moveq #23,%d4 return RTEMS_NOT_OWNER_OF_RESOURCE; 71a70: 6000 0122 braw 71b94 } if ( length == RTEMS_PERIOD_STATUS ) { 71a74: 4a82 tstl %d2 71a76: 6622 bnes 71a9a switch ( the_period->state ) { 71a78: 202a 0038 movel %a2@(56),%d0 71a7c: 7204 moveq #4,%d1 71a7e: b280 cmpl %d0,%d1 71a80: 6404 bccs 71a86 71a82: 4284 clrl %d4 <== NOT EXECUTED 71a84: 600a bras 71a90 <== NOT EXECUTED 71a86: 41f9 0009 5ef8 lea 95ef8 ,%a0 71a8c: 2830 0c00 movel %a0@(00000000,%d0:l:4),%d4 case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); 71a90: 4eb9 0004 c33e jsr 4c33e <_Thread_Enable_dispatch> return( return_value ); 71a96: 6000 00fc braw 71b94 } _ISR_Disable( level ); 71a9a: 203c 0000 0700 movel #1792,%d0 71aa0: 40c4 movew %sr,%d4 71aa2: 8084 orl %d4,%d0 71aa4: 46c0 movew %d0,%sr switch ( the_period->state ) { 71aa6: 202a 0038 movel %a2@(56),%d0 71aaa: 7202 moveq #2,%d1 71aac: b280 cmpl %d0,%d1 71aae: 6740 beqs 71af0 71ab0: 123c 0004 moveb #4,%d1 71ab4: b280 cmpl %d0,%d1 71ab6: 6700 00a4 beqw 71b5c 71aba: 4a80 tstl %d0 71abc: 6600 00d4 bnew 71b92 case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 71ac0: 46c4 movew %d4,%sr /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 71ac2: 2f0a movel %a2,%sp@- ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 71ac4: 4284 clrl %d4 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 71ac6: 4eb9 0007 1818 jsr 71818 <_Rate_monotonic_Initiate_statistics> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 71acc: 203c 0007 1ba0 movel #465824,%d0 the_period->state = RATE_MONOTONIC_ACTIVE; 71ad2: 7202 moveq #2,%d1 71ad4: 2540 002c movel %d0,%a2@(44) the_watchdog->id = id; 71ad8: 2543 0030 movel %d3,%a2@(48) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 71adc: 2542 001c movel %d2,%a2@(28) 71ae0: 2541 0038 movel %d1,%a2@(56) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 71ae4: 42aa 0018 clrl %a2@(24) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 71ae8: 42aa 0034 clrl %a2@(52) 71aec: 6000 0084 braw 71b72 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 71af0: 2f0a movel %a2,%sp@- 71af2: 4eb9 0007 1938 jsr 71938 <_Rate_monotonic_Update_statistics> * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; 71af8: 2542 003c movel %d2,%a2@(60) /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; 71afc: 7401 moveq #1,%d2 71afe: 2542 0038 movel %d2,%a2@(56) the_period->next_length = length; _ISR_Enable( level ); 71b02: 46c4 movew %d4,%sr _Thread_Executing->Wait.id = the_period->Object.id; 71b04: 2079 0009 bf82 moveal 9bf82 <_Thread_Executing>,%a0 71b0a: 216a 0008 0020 movel %a2@(8),%a0@(32) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 71b10: 4878 4000 pea 4000 71b14: 2f08 movel %a0,%sp@- 71b16: 4eb9 0004 cb5c jsr 4cb5c <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 71b1c: 203c 0000 0700 movel #1792,%d0 71b22: 40c1 movew %sr,%d1 71b24: 8081 orl %d1,%d0 71b26: 46c0 movew %d0,%sr local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; 71b28: 143c 0002 moveb #2,%d2 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; 71b2c: 202a 0038 movel %a2@(56),%d0 the_period->state = RATE_MONOTONIC_ACTIVE; 71b30: 2542 0038 movel %d2,%a2@(56) _ISR_Enable( level ); 71b34: 46c1 movew %d1,%sr /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) 71b36: 7203 moveq #3,%d1 71b38: 4fef 000c lea %sp@(12),%sp 71b3c: b280 cmpl %d0,%d1 71b3e: 6612 bnes 71b52 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 71b40: 4878 4000 pea 4000 71b44: 2f39 0009 bf82 movel 9bf82 <_Thread_Executing>,%sp@- 71b4a: 4eb9 0004 bf84 jsr 4bf84 <_Thread_Clear_state> 71b50: 508f addql #8,%sp _Thread_Enable_dispatch(); 71b52: 4eb9 0004 c33e jsr 4c33e <_Thread_Enable_dispatch> 71b58: 4284 clrl %d4 return RTEMS_SUCCESSFUL; 71b5a: 6038 bras 71b94 case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 71b5c: 2f0a movel %a2,%sp@- 71b5e: 4eb9 0007 1938 jsr 71938 <_Rate_monotonic_Update_statistics> _ISR_Enable( level ); 71b64: 46c4 movew %d4,%sr the_period->state = RATE_MONOTONIC_ACTIVE; 71b66: 7002 moveq #2,%d0 the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 71b68: 7806 moveq #6,%d4 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 71b6a: 2542 001c movel %d2,%a2@(28) */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 71b6e: 2540 0038 movel %d0,%a2@(56) the_period->next_length = length; 71b72: 2542 003c movel %d2,%a2@(60) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 71b76: 486a 0010 pea %a2@(16) 71b7a: 4879 0009 bfa0 pea 9bfa0 <_Watchdog_Ticks_chain> 71b80: 4eb9 0004 d2a4 jsr 4d2a4 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 71b86: 4eb9 0004 c33e jsr 4c33e <_Thread_Enable_dispatch> return RTEMS_TIMEOUT; 71b8c: 4fef 000c lea %sp@(12),%sp 71b90: 6002 bras 71b94 71b92: 7804 moveq #4,%d4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 71b94: 2004 movel %d4,%d0 71b96: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 71b9c: 4e5e unlk %fp 71b9e: 4e75 rts 0004f820 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 4f820: 4e56 fffc linkw %fp,#-4 4f824: 2f03 movel %d3,%sp@- 4f826: 262e 0010 movel %fp@(16),%d3 4f82a: 2f02 movel %d2,%sp@- 4f82c: 242e 000c movel %fp@(12),%d2 Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) 4f830: 6766 beqs 4f898 return RTEMS_INVALID_ADDRESS; if ( !size ) 4f832: 4a83 tstl %d3 4f834: 6762 beqs 4f898 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 4f836: 2f39 0007 4f7a movel 74f7a <_RTEMS_Allocator_Mutex>,%sp@- 4f83c: 4eb9 0005 17e0 jsr 517e0 <_API_Mutex_Lock> 4f842: 486e fffc pea %fp@(-4) 4f846: 2f2e 0008 movel %fp@(8),%sp@- 4f84a: 4879 0007 4dc6 pea 74dc6 <_Region_Information> 4f850: 4eb9 0005 2fec jsr 52fec <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 4f856: 222e fffc movel %fp@(-4),%d1 4f85a: 4fef 0010 lea %sp@(16),%sp 4f85e: 670a beqs 4f86a 4f860: 7001 moveq #1,%d0 4f862: b081 cmpl %d1,%d0 4f864: 6620 bnes 4f886 4f866: 7404 moveq #4,%d2 4f868: 601e bras 4f888 case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 4f86a: 2f03 movel %d3,%sp@- 4f86c: 2040 moveal %d0,%a0 4f86e: 2f02 movel %d2,%sp@- 4f870: 4868 0068 pea %a0@(104) 4f874: 4eb9 0005 2a6c jsr 52a6c <_Heap_Size_of_alloc_area> 4f87a: 4fef 000c lea %sp@(12),%sp 4f87e: 4a00 tstb %d0 4f880: 6604 bnes 4f886 4f882: 7409 moveq #9,%d2 <== NOT EXECUTED 4f884: 6002 bras 4f888 <== NOT EXECUTED 4f886: 4282 clrl %d2 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 4f888: 2f39 0007 4f7a movel 74f7a <_RTEMS_Allocator_Mutex>,%sp@- 4f88e: 4eb9 0005 1840 jsr 51840 <_API_Mutex_Unlock> return return_status; 4f894: 588f addql #4,%sp 4f896: 6002 bras 4f89a 4f898: 7409 moveq #9,%d2 } 4f89a: 2002 movel %d2,%d0 4f89c: 242e fff4 movel %fp@(-12),%d2 4f8a0: 262e fff8 movel %fp@(-8),%d3 4f8a4: 4e5e unlk %fp 4f8a6: 4e75 rts 00044de0 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 44de0: 4e56 0000 linkw %fp,#0 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 44de4: 2279 0009 bf82 moveal 9bf82 <_Thread_Executing>,%a1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 44dea: 2069 00c2 moveal %a1@(194),%a0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 44dee: 2f02 movel %d2,%sp@- ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 44df0: b1ce cmpal %fp,%a0 44df2: 6304 blss 44df8 44df4: 4202 clrb %d2 <== NOT EXECUTED 44df6: 600c bras 44e04 <== NOT EXECUTED } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 44df8: 2008 movel %a0,%d0 44dfa: d0a9 00be addl %a1@(190),%d0 44dfe: b08e cmpl %fp,%d0 44e00: 54c2 scc %d2 44e02: 4482 negl %d2 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 44e04: 4ab9 0009 8e00 tstl 98e00 44e0a: 6604 bnes 44e10 44e0c: 7001 moveq #1,%d0 <== NOT EXECUTED 44e0e: 601e bras 44e2e <== NOT EXECUTED pattern_ok = (!memcmp( 44e10: 4878 0010 pea 10 44e14: 4879 0009 bd40 pea 9bd40 44e1a: 4868 0008 pea %a0@(8) 44e1e: 4eb9 0007 91b0 jsr 791b0 44e24: 4fef 000c lea %sp@(12),%sp 44e28: 4a80 tstl %d0 44e2a: 57c0 seq %d0 44e2c: 4480 negl %d0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 44e2e: 4a02 tstb %d2 44e30: 6708 beqs 44e3a 44e32: 4a00 tstb %d0 44e34: 6704 beqs 44e3a 44e36: 4200 clrb %d0 44e38: 6018 bras 44e52 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 44e3a: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 44e40: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44e42: 2f39 0009 bf82 movel 9bf82 <_Thread_Executing>,%sp@- <== NOT EXECUTED 44e48: 4eb9 0004 4d3a jsr 44d3a <== NOT EXECUTED return true; 44e4e: 508f addql #8,%sp <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 44e50: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } 44e52: 242e fffc movel %fp@(-4),%d2 44e56: 4e5e unlk %fp 44e58: 4e75 rts 00044d22 : void rtems_stack_checker_report_usage( void ) { 44d22: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 44d26: 4879 0004 7650 pea 47650 <== NOT EXECUTED 44d2c: 42a7 clrl %sp@- <== NOT EXECUTED 44d2e: 4eb9 0004 4cc0 jsr 44cc0 <== NOT EXECUTED 44d34: 508f addql #8,%sp <== NOT EXECUTED } 44d36: 4e5e unlk %fp <== NOT EXECUTED 44d38: 4e75 rts 00044cc0 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 44cc0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44cc4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44cc6: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 44cca: 2f02 movel %d2,%sp@- <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); 44ccc: 4879 0008 e77b pea 8e77b <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 44cd2: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED print_context = context; print_handler = print; 44cd6: 23ca 0009 8e08 movel %a2,98e08 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 44cdc: 2f02 movel %d2,%sp@- <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 44cde: 23c2 0009 8e04 movel %d2,98e04 <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 44ce4: 4e92 jsr %a2@ <== NOT EXECUTED (*print)( context, 44ce6: 4879 0008 e792 pea 8e792 <== NOT EXECUTED 44cec: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44cee: 4e92 jsr %a2@ <== 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 ); 44cf0: 4879 0004 4ba6 pea 44ba6 <== NOT EXECUTED 44cf6: 4eb9 0004 b4f8 jsr 4b4f8 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 44cfc: 4878 ffff pea ffffffff <== NOT EXECUTED 44d00: 4eb9 0004 4ba6 jsr 44ba6 <== NOT EXECUTED print_context = NULL; print_handler = NULL; } 44d06: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); print_context = NULL; print_handler = NULL; 44d0a: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED } 44d0e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 44d12: 4e5e unlk %fp <== 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; 44d14: 42b9 0009 8e04 clrl 98e04 <== NOT EXECUTED print_handler = NULL; 44d1a: 42b9 0009 8e08 clrl 98e08 <== NOT EXECUTED } 44d20: 4e75 rts 00044e5a : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 44e5a: 4e56 0000 linkw %fp,#0 44e5e: 2f0a movel %a2,%sp@- 44e60: 246e 0008 moveal %fp@(8),%a2 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; 44e64: 206a 00c2 moveal %a2@(194),%a0 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 44e68: 2f02 movel %d2,%sp@- ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 44e6a: b1ce cmpal %fp,%a0 44e6c: 6304 blss 44e72 44e6e: 4202 clrb %d2 <== NOT EXECUTED 44e70: 600c bras 44e7e <== NOT EXECUTED } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( 44e72: 2008 movel %a0,%d0 44e74: d0aa 00be addl %a2@(190),%d0 44e78: b08e cmpl %fp,%d0 44e7a: 54c2 scc %d2 44e7c: 4482 negl %d2 /* * 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, 44e7e: 4878 0010 pea 10 44e82: 4879 0009 bd40 pea 9bd40 44e88: 4868 0008 pea %a0@(8) 44e8c: 4eb9 0007 91b0 jsr 791b0 44e92: 4fef 000c lea %sp@(12),%sp 44e96: 4a80 tstl %d0 44e98: 57c0 seq %d0 44e9a: 4480 negl %d0 44e9c: 1200 moveb %d0,%d1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 44e9e: 4a02 tstb %d2 44ea0: 6704 beqs 44ea6 44ea2: 4a00 tstb %d0 44ea4: 661c bnes 44ec2 Stack_check_report_blown_task( running, pattern_ok ); 44ea6: 4280 clrl %d0 <== NOT EXECUTED 44ea8: 1001 moveb %d1,%d0 <== NOT EXECUTED 44eaa: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 44eae: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 44eb2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 44eb6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 44eba: 4e5e unlk %fp <== NOT EXECUTED pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 44ebc: 4ef9 0004 4d3a jmp 44d3a <== NOT EXECUTED } } 44ec2: 242e fff8 movel %fp@(-8),%d2 44ec6: 246e fffc moveal %fp@(-4),%a2 44eca: 4e5e unlk %fp 44ecc: 4e75 rts 0004b5d4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4b5d4: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4b5d8: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 4b5dc: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4b5e0: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4b5e4: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4b5e8: 4a8a tstl %a2 <== NOT EXECUTED 4b5ea: 6604 bnes 4b5f0 <== NOT EXECUTED 4b5ec: 7009 moveq #9,%d0 <== NOT EXECUTED 4b5ee: 606e bras 4b65e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; 4b5f0: 4eb9 0004 e514 jsr 4e514 <__errno> <== NOT EXECUTED *n = 0; 4b5f6: 4281 clrl %d1 <== NOT EXECUTED char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4b5f8: 2040 moveal %d0,%a0 <== NOT EXECUTED *n = 0; 4b5fa: 4280 clrl %d0 <== NOT EXECUTED char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4b5fc: 4290 clrl %a0@ <== NOT EXECUTED *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b5fe: 486e fffc pea %fp@(-4) <== NOT EXECUTED if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 4b602: 2480 movel %d0,%a2@ <== NOT EXECUTED 4b604: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b608: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b60a: 4eb9 0005 0f68 jsr 50f68 <== 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 ) 4b610: 508f addql #8,%sp <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b612: 2600 movel %d0,%d3 <== NOT EXECUTED 4b614: 2801 movel %d1,%d4 <== 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 ) 4b616: 4a8b tstl %a3 <== NOT EXECUTED 4b618: 6704 beqs 4b61e <== NOT EXECUTED *endptr = end; 4b61a: 26ae fffc movel %fp@(-4),%a3@ <== NOT EXECUTED /* nothing was converted */ if ( end == s ) 4b61e: b4ae fffc cmpl %fp@(-4),%d2 <== NOT EXECUTED 4b622: 6604 bnes 4b628 <== NOT EXECUTED 4b624: 700b moveq #11,%d0 <== NOT EXECUTED 4b626: 6036 bras 4b65e <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4b628: 4878 ffff pea ffffffff <== NOT EXECUTED 4b62c: 2f3c 7fef ffff movel #2146435071,%sp@- <== NOT EXECUTED 4b632: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4b634: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b636: 4eb9 0005 bda8 jsr 5bda8 <__gtdf2> <== NOT EXECUTED 4b63c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b640: 4a80 tstl %d0 <== NOT EXECUTED 4b642: 6f12 bles 4b656 <== NOT EXECUTED 4b644: 4eb9 0004 e514 jsr 4e514 <__errno> <== NOT EXECUTED 4b64a: 7222 moveq #34,%d1 <== NOT EXECUTED 4b64c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b64e: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4b650: 6604 bnes 4b656 <== NOT EXECUTED 4b652: 700a moveq #10,%d0 <== NOT EXECUTED 4b654: 6008 bras 4b65e <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4b656: 4280 clrl %d0 <== NOT EXECUTED 4b658: 2483 movel %d3,%a2@ <== NOT EXECUTED 4b65a: 2544 0004 movel %d4,%a2@(4) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4b65e: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4b664: 4e5e unlk %fp <== NOT EXECUTED 4b666: 4e75 rts 0004b668 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4b668: 4e56 ffec linkw %fp,#-20 4b66c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4b670: 262e 0008 movel %fp@(8),%d3 4b674: 246e 000c moveal %fp@(12),%a2 4b678: 266e 0010 moveal %fp@(16),%a3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4b67c: 4a8a tstl %a2 4b67e: 6604 bnes 4b684 4b680: 7009 moveq #9,%d0 4b682: 605c bras 4b6e0 return RTEMS_INVALID_ADDRESS; errno = 0; 4b684: 4eb9 0004 e514 jsr 4e514 <__errno> 4b68a: 2040 moveal %d0,%a0 4b68c: 4290 clrl %a0@ *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b68e: 486e fffc pea %fp@(-4) if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 4b692: 24bc 0000 0000 movel #0,%a2@ #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b698: 2f03 movel %d3,%sp@- 4b69a: 4eb9 0005 0f0a jsr 50f0a #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 ) 4b6a0: 508f addql #8,%sp errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b6a2: 2400 movel %d0,%d2 #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 ) 4b6a4: 4a8b tstl %a3 4b6a6: 6704 beqs 4b6ac *endptr = end; 4b6a8: 26ae fffc movel %fp@(-4),%a3@ /* nothing was converted */ if ( end == s ) 4b6ac: b6ae fffc cmpl %fp@(-4),%d3 4b6b0: 6604 bnes 4b6b6 4b6b2: 700b moveq #11,%d0 4b6b4: 602a bras 4b6e0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4b6b6: 2f3c 7f7f ffff movel #2139095039,%sp@- 4b6bc: 2f02 movel %d2,%sp@- 4b6be: 4eb9 0005 be38 jsr 5be38 <__gtsf2> 4b6c4: 508f addql #8,%sp 4b6c6: 4a80 tstl %d0 4b6c8: 6f12 bles 4b6dc 4b6ca: 4eb9 0004 e514 jsr 4e514 <__errno> <== NOT EXECUTED 4b6d0: 7222 moveq #34,%d1 <== NOT EXECUTED 4b6d2: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b6d4: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4b6d6: 6604 bnes 4b6dc <== NOT EXECUTED 4b6d8: 700a moveq #10,%d0 <== NOT EXECUTED 4b6da: 6004 bras 4b6e0 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4b6dc: 2482 movel %d2,%a2@ 4b6de: 4280 clrl %d0 return RTEMS_SUCCESSFUL; } 4b6e0: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 4b6e6: 4e5e unlk %fp 4b6e8: 4e75 rts ... 000590e4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 590e4: 4e56 ffec linkw %fp,#-20 590e8: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 590ec: 262e 0008 movel %fp@(8),%d3 590f0: 246e 000c moveal %fp@(12),%a2 590f4: 266e 0010 moveal %fp@(16),%a3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 590f8: 4a8a tstl %a2 590fa: 6604 bnes 59100 590fc: 7009 moveq #9,%d0 590fe: 6050 bras 59150 return RTEMS_INVALID_ADDRESS; errno = 0; 59100: 4eb9 0007 61f0 jsr 761f0 <__errno> 59106: 2040 moveal %d0,%a0 59108: 4290 clrl %a0@ *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 5910a: 4878 0010 pea 10 5910e: 486e fffc pea %fp@(-4) if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 59112: 4292 clrl %a2@ #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 59114: 2f03 movel %d3,%sp@- 59116: 4eb9 0007 d3e0 jsr 7d3e0 #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 ) 5911c: 4fef 000c lea %sp@(12),%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 ); 59120: 2400 movel %d0,%d2 #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 ) 59122: 4a8b tstl %a3 59124: 6704 beqs 5912a *endptr = end; 59126: 26ae fffc movel %fp@(-4),%a3@ /* nothing was converted */ if ( end == s ) 5912a: b6ae fffc cmpl %fp@(-4),%d3 5912e: 6604 bnes 59134 59130: 700b moveq #11,%d0 59132: 601c bras 59150 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 59134: 70ff moveq #-1,%d0 59136: b082 cmpl %d2,%d0 59138: 6612 bnes 5914c 5913a: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 59140: 7222 moveq #34,%d1 <== NOT EXECUTED 59142: 2040 moveal %d0,%a0 <== NOT EXECUTED 59144: b290 cmpl %a0@,%d1 <== NOT EXECUTED 59146: 6604 bnes 5914c <== NOT EXECUTED 59148: 700a moveq #10,%d0 <== NOT EXECUTED 5914a: 6004 bras 59150 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 5914c: 2482 movel %d2,%a2@ 5914e: 4280 clrl %d0 return RTEMS_SUCCESSFUL; } 59150: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 59156: 4e5e unlk %fp 59158: 4e75 rts ... 00043e6c : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 43e6c: 7209 moveq #9,%d1 #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 43e6e: 4e56 0000 linkw %fp,#0 43e72: 202e 0008 movel %fp@(8),%d0 int baud_index; switch (termios_baud) { 43e76: b280 cmpl %d0,%d1 43e78: 6700 00ce beqw 43f48 43e7c: 6d54 blts 43ed2 43e7e: 123c 0004 moveb #4,%d1 43e82: b280 cmpl %d0,%d1 43e84: 6700 00ae beqw 43f34 43e88: 6d2a blts 43eb4 43e8a: 123c 0001 moveb #1,%d1 43e8e: b280 cmpl %d0,%d1 43e90: 6700 0092 beqw 43f24 43e94: 6d0a blts 43ea0 43e96: 4a80 tstl %d0 43e98: 6700 008e beqw 43f28 43e9c: 6000 00d6 braw 43f74 43ea0: 7202 moveq #2,%d1 <== NOT EXECUTED 43ea2: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ea4: 6700 0086 beqw 43f2c <== NOT EXECUTED 43ea8: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 43eac: b280 cmpl %d0,%d1 <== NOT EXECUTED 43eae: 6600 00c4 bnew 43f74 <== NOT EXECUTED 43eb2: 607c bras 43f30 <== NOT EXECUTED 43eb4: 7206 moveq #6,%d1 <== NOT EXECUTED 43eb6: b280 cmpl %d0,%d1 <== NOT EXECUTED 43eb8: 6700 0082 beqw 43f3c <== NOT EXECUTED 43ebc: 6e7a bgts 43f38 <== NOT EXECUTED 43ebe: 123c 0007 moveb #7,%d1 <== NOT EXECUTED 43ec2: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ec4: 677a beqs 43f40 <== NOT EXECUTED 43ec6: 123c 0008 moveb #8,%d1 <== NOT EXECUTED 43eca: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ecc: 6600 00a6 bnew 43f74 <== NOT EXECUTED 43ed0: 6072 bras 43f44 <== NOT EXECUTED 43ed2: 720e moveq #14,%d1 <== NOT EXECUTED 43ed4: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ed6: 6700 0084 beqw 43f5c <== NOT EXECUTED 43eda: 6d1c blts 43ef8 <== NOT EXECUTED 43edc: 123c 000b moveb #11,%d1 <== NOT EXECUTED 43ee0: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ee2: 676c beqs 43f50 <== NOT EXECUTED 43ee4: 6e66 bgts 43f4c <== NOT EXECUTED 43ee6: 123c 000c moveb #12,%d1 <== NOT EXECUTED 43eea: b280 cmpl %d0,%d1 <== NOT EXECUTED 43eec: 6766 beqs 43f54 <== NOT EXECUTED 43eee: 123c 000d moveb #13,%d1 <== NOT EXECUTED 43ef2: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ef4: 667e bnes 43f74 <== NOT EXECUTED 43ef6: 6060 bras 43f58 <== NOT EXECUTED 43ef8: 0c80 0000 1002 cmpil #4098,%d0 <== NOT EXECUTED 43efe: 6768 beqs 43f68 <== NOT EXECUTED 43f00: 6e10 bgts 43f12 <== NOT EXECUTED 43f02: 720f moveq #15,%d1 <== NOT EXECUTED 43f04: b280 cmpl %d0,%d1 <== NOT EXECUTED 43f06: 6758 beqs 43f60 <== NOT EXECUTED 43f08: 0c80 0000 1001 cmpil #4097,%d0 <== NOT EXECUTED 43f0e: 6664 bnes 43f74 <== NOT EXECUTED 43f10: 6052 bras 43f64 <== NOT EXECUTED 43f12: 0c80 0000 1003 cmpil #4099,%d0 <== NOT EXECUTED 43f18: 6752 beqs 43f6c <== NOT EXECUTED 43f1a: 0c80 0000 1004 cmpil #4100,%d0 <== NOT EXECUTED 43f20: 6652 bnes 43f74 <== NOT EXECUTED 43f22: 604c bras 43f70 <== NOT EXECUTED 43f24: 7001 moveq #1,%d0 <== NOT EXECUTED 43f26: 604e bras 43f76 <== NOT EXECUTED 43f28: 4280 clrl %d0 <== NOT EXECUTED 43f2a: 604a bras 43f76 <== NOT EXECUTED 43f2c: 7002 moveq #2,%d0 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; 43f2e: 6046 bras 43f76 <== NOT EXECUTED 43f30: 7003 moveq #3,%d0 <== NOT EXECUTED case B110: baud_index = 3; break; 43f32: 6042 bras 43f76 <== NOT EXECUTED 43f34: 7004 moveq #4,%d0 <== NOT EXECUTED case B134: baud_index = 4; break; 43f36: 603e bras 43f76 <== NOT EXECUTED 43f38: 7005 moveq #5,%d0 <== NOT EXECUTED case B150: baud_index = 5; break; 43f3a: 603a bras 43f76 <== NOT EXECUTED 43f3c: 7006 moveq #6,%d0 <== NOT EXECUTED case B200: baud_index = 6; break; 43f3e: 6036 bras 43f76 <== NOT EXECUTED 43f40: 7007 moveq #7,%d0 <== NOT EXECUTED case B300: baud_index = 7; break; 43f42: 6032 bras 43f76 <== NOT EXECUTED 43f44: 7008 moveq #8,%d0 <== NOT EXECUTED case B600: baud_index = 8; break; 43f46: 602e bras 43f76 <== NOT EXECUTED 43f48: 7009 moveq #9,%d0 <== NOT EXECUTED case B1200: baud_index = 9; break; 43f4a: 602a bras 43f76 <== NOT EXECUTED 43f4c: 700a moveq #10,%d0 <== NOT EXECUTED case B1800: baud_index = 10; break; 43f4e: 6026 bras 43f76 <== NOT EXECUTED 43f50: 700b moveq #11,%d0 <== NOT EXECUTED case B2400: baud_index = 11; break; 43f52: 6022 bras 43f76 <== NOT EXECUTED 43f54: 700c moveq #12,%d0 <== NOT EXECUTED case B4800: baud_index = 12; break; 43f56: 601e bras 43f76 <== NOT EXECUTED 43f58: 700d moveq #13,%d0 <== NOT EXECUTED case B9600: baud_index = 13; break; 43f5a: 601a bras 43f76 <== NOT EXECUTED 43f5c: 700e moveq #14,%d0 <== NOT EXECUTED case B19200: baud_index = 14; break; 43f5e: 6016 bras 43f76 <== NOT EXECUTED 43f60: 700f moveq #15,%d0 <== NOT EXECUTED case B38400: baud_index = 15; break; 43f62: 6012 bras 43f76 <== NOT EXECUTED 43f64: 7010 moveq #16,%d0 <== NOT EXECUTED case B57600: baud_index = 16; break; 43f66: 600e bras 43f76 <== NOT EXECUTED 43f68: 7011 moveq #17,%d0 <== NOT EXECUTED case B115200: baud_index = 17; break; 43f6a: 600a bras 43f76 <== NOT EXECUTED 43f6c: 7012 moveq #18,%d0 <== NOT EXECUTED case B230400: baud_index = 18; break; 43f6e: 6006 bras 43f76 <== NOT EXECUTED 43f70: 7013 moveq #19,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; 43f72: 6002 bras 43f76 <== NOT EXECUTED 43f74: 70ff moveq #-1,%d0 default: baud_index = -1; break; } return baud_index; } 43f76: 4e5e unlk %fp 43f78: 4e75 rts ... 00042ea8 : { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 42ea8: 4280 clrl %d0 <== NOT EXECUTED rtems_status_code rtems_termios_bufsize ( int cbufsize, int raw_input, int raw_output ) { 42eaa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_termios_cbufsize = cbufsize; 42eae: 41ee 0008 lea %fp@(8),%a0 <== NOT EXECUTED 42eb2: 23d0 0005 b784 movel %a0@,5b784 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 42eb8: 41ee 000c lea %fp@(12),%a0 <== NOT EXECUTED 42ebc: 23d0 0005 b788 movel %a0@,5b788 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 42ec2: 41ee 0010 lea %fp@(16),%a0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 42ec6: 4e5e unlk %fp <== NOT EXECUTED int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; 42ec8: 23d0 0005 b78c movel %a0@,5b78c <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 42ece: 4e75 rts 00044090 : } } rtems_status_code rtems_termios_close (void *arg) { 44090: 4e56 fff4 linkw %fp,#-12 44094: 48d7 1c00 moveml %a2-%a4,%sp@ 44098: 266e 0008 moveal %fp@(8),%a3 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); 4409c: 49f9 0004 4f30 lea 44f30 ,%a4 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 440a2: 2053 moveal %a3@,%a0 440a4: 2468 0034 moveal %a0@(52),%a2 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 440a8: 42a7 clrl %sp@- 440aa: 42a7 clrl %sp@- 440ac: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- 440b2: 4e94 jsr %a4@ if (sc != RTEMS_SUCCESSFUL) 440b4: 4fef 000c lea %sp@(12),%sp 440b8: 4a80 tstl %d0 440ba: 6670 bnes 4412c rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 440bc: 202a 0008 movel %a2@(8),%d0 440c0: 5380 subql #1,%d0 440c2: 2540 0008 movel %d0,%a2@(8) 440c6: 6600 0110 bnew 441d8 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 440ca: 202a 00cc movel %a2@(204),%d0 440ce: 41f9 0005 c584 lea 5c584 ,%a0 440d4: e788 lsll #3,%d0 440d6: 2070 0c04 moveal %a0@(00000004,%d0:l:4),%a0 440da: 4a88 tstl %a0 440dc: 6706 beqs 440e4 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 440de: 2f0a movel %a2,%sp@- <== NOT EXECUTED 440e0: 4e90 jsr %a0@ <== NOT EXECUTED 440e2: 6018 bras 440fc <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 440e4: 42a7 clrl %sp@- 440e6: 42a7 clrl %sp@- 440e8: 2f2a 0018 movel %a2@(24),%sp@- 440ec: 4e94 jsr %a4@ if (sc != RTEMS_SUCCESSFUL) { 440ee: 4fef 000c lea %sp@(12),%sp 440f2: 4a80 tstl %d0 440f4: 6636 bnes 4412c rtems_fatal_error_occurred (sc); } drainOutput (tty); 440f6: 2f0a movel %a2,%sp@- 440f8: 4eba f940 jsr %pc@(43a3a ) 440fc: 588f addql #4,%sp } if (tty->device.outputUsesInterrupts 440fe: 7002 moveq #2,%d0 44100: b0aa 00b4 cmpl %a2@(180),%d0 44104: 662e bnes 44134 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 44106: 4878 0001 pea 1 <== NOT EXECUTED 4410a: 49f9 0004 4adc lea 44adc ,%a4 <== NOT EXECUTED 44110: 2f2a 00c4 movel %a2@(196),%sp@- <== NOT EXECUTED 44114: 4e94 jsr %a4@ <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 44116: 508f addql #8,%sp <== NOT EXECUTED 44118: 4a80 tstl %d0 <== NOT EXECUTED 4411a: 6610 bnes 4412c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 4411c: 4878 0001 pea 1 <== NOT EXECUTED 44120: 2f2a 00c8 movel %a2@(200),%sp@- <== NOT EXECUTED 44124: 4e94 jsr %a4@ <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 44126: 508f addql #8,%sp <== NOT EXECUTED 44128: 4a80 tstl %d0 <== NOT EXECUTED 4412a: 6708 beqs 44134 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 4412c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4412e: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED } if (tty->device.lastClose) 44134: 206a 009c moveal %a2@(156),%a0 44138: 4a88 tstl %a0 4413a: 6710 beqs 4414c (*tty->device.lastClose)(tty->major, tty->minor, arg); 4413c: 2f0b movel %a3,%sp@- 4413e: 2f2a 0010 movel %a2@(16),%sp@- 44142: 2f2a 000c movel %a2@(12),%sp@- 44146: 4e90 jsr %a0@ 44148: 4fef 000c lea %sp@(12),%sp if (tty->forw == NULL) { 4414c: 2052 moveal %a2@,%a0 4414e: 4a88 tstl %a0 44150: 6610 bnes 44162 rtems_termios_ttyTail = tty->back; 44152: 206a 0004 moveal %a2@(4),%a0 44156: 23c8 0005 cdcc movel %a0,5cdcc if ( rtems_termios_ttyTail != NULL ) { 4415c: 670a beqs 44168 rtems_termios_ttyTail->forw = NULL; 4415e: 4290 clrl %a0@ <== NOT EXECUTED 44160: 6006 bras 44168 <== NOT EXECUTED } } else { tty->forw->back = tty->back; 44162: 216a 0004 0004 movel %a2@(4),%a0@(4) } if (tty->back == NULL) { 44168: 206a 0004 moveal %a2@(4),%a0 4416c: 4a88 tstl %a0 4416e: 6610 bnes 44180 rtems_termios_ttyHead = tty->forw; 44170: 2052 moveal %a2@,%a0 44172: 23c8 0005 cdd0 movel %a0,5cdd0 if ( rtems_termios_ttyHead != NULL ) { 44178: 6708 beqs 44182 rtems_termios_ttyHead->back = NULL; 4417a: 42a8 0004 clrl %a0@(4) 4417e: 6002 bras 44182 } } else { tty->back->forw = tty->forw; 44180: 2092 movel %a2@,%a0@ <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 44182: 2f2a 0014 movel %a2@(20),%sp@- 44186: 47f9 0004 4e94 lea 44e94 ,%a3 4418c: 4e93 jsr %a3@ rtems_semaphore_delete (tty->osem); 4418e: 2f2a 0018 movel %a2@(24),%sp@- 44192: 4e93 jsr %a3@ rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 44194: 2f2a 008c movel %a2@(140),%sp@- 44198: 4e93 jsr %a3@ if ((tty->device.pollRead == NULL) || 4419a: 4fef 000c lea %sp@(12),%sp 4419e: 4aaa 00a0 tstl %a2@(160) 441a2: 6708 beqs 441ac (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 441a4: 7002 moveq #2,%d0 441a6: b0aa 00b4 cmpl %a2@(180),%d0 441aa: 660c bnes 441b8 rtems_semaphore_delete (tty->rawInBuf.Semaphore); 441ac: 2f2a 0068 movel %a2@(104),%sp@- 441b0: 4eb9 0004 4e94 jsr 44e94 441b6: 588f addql #4,%sp free (tty->rawInBuf.theBuf); 441b8: 2f2a 0058 movel %a2@(88),%sp@- 441bc: 47f9 0004 8f48 lea 48f48 ,%a3 441c2: 4e93 jsr %a3@ free (tty->rawOutBuf.theBuf); 441c4: 2f2a 007c movel %a2@(124),%sp@- 441c8: 4e93 jsr %a3@ free (tty->cbuf); 441ca: 2f2a 001c movel %a2@(28),%sp@- 441ce: 4e93 jsr %a3@ free (tty); 441d0: 2f0a movel %a2,%sp@- 441d2: 4e93 jsr %a3@ 441d4: 4fef 0010 lea %sp@(16),%sp } rtems_semaphore_release (rtems_termios_ttyMutex); 441d8: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- 441de: 4eb9 0004 5034 jsr 45034 return RTEMS_SUCCESSFUL; } 441e4: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4 441ea: 4280 clrl %d0 441ec: 4e5e unlk %fp 441ee: 4e75 rts 000430a6 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 430a6: 4e56 0000 linkw %fp,#0 rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 430aa: 202e 000c movel %fp@(12),%d0 * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 430ae: 206e 0008 moveal %fp@(8),%a0 rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 430b2: d1a8 0090 addl %d0,%a0@(144) if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 430b6: 7002 moveq #2,%d0 430b8: b0a8 00b4 cmpl %a0@(180),%d0 430bc: 661c bnes 430da /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 430be: 4878 0002 pea 2 <== NOT EXECUTED 430c2: 2f28 00c8 movel %a0@(200),%sp@- <== NOT EXECUTED 430c6: 4eb9 0004 4adc jsr 44adc <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 430cc: 508f addql #8,%sp <== NOT EXECUTED 430ce: 4a80 tstl %d0 <== NOT EXECUTED 430d0: 672e beqs 43100 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 430d2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 430d4: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 430da: 7005 moveq #5,%d0 430dc: b0a8 00cc cmpl %a0@(204),%d0 430e0: 6612 bnes 430f4 /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 430e2: 2279 0005 c638 moveal 5c638 ,%a1 <== NOT EXECUTED 430e8: 4a89 tstl %a1 <== NOT EXECUTED 430ea: 6714 beqs 43100 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 430ec: 2f08 movel %a0,%sp@- <== NOT EXECUTED 430ee: 4e91 jsr %a1@ <== NOT EXECUTED 430f0: 588f addql #4,%sp <== NOT EXECUTED 430f2: 600c bras 43100 <== NOT EXECUTED } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 430f4: 2d48 0008 movel %a0,%fp@(8) } } 430f8: 4e5e unlk %fp rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 430fa: 4ef9 0004 2eec jmp 42eec } } 43100: 4280 clrl %d0 <== NOT EXECUTED 43102: 4e5e unlk %fp <== NOT EXECUTED 43104: 4e75 rts 00043106 : * 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) { 43106: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 4310a: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4310e: 246e 0008 moveal %fp@(8),%a2 <== 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) { 43112: 49f9 0005 c584 lea 5c584 ,%a4 <== NOT EXECUTED 43118: 202a 00cc movel %a2@(204),%d0 <== 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) { 4311c: 266e 000c moveal %fp@(12),%a3 <== 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) { 43120: eb88 lsll #5,%d0 <== 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) { 43122: 242e 0010 movel %fp@(16),%d2 <== 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) { 43126: 4ab4 0810 tstl %a4@(00000010,%d0:l) <== NOT EXECUTED 4312a: 6634 bnes 43160 <== 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); 4312c: 2802 movel %d2,%d4 <== 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, 4312e: 4bea 004a lea %a2@(74),%a5 <== 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); 43132: 49ea 0030 lea %a2@(48),%a4 <== NOT EXECUTED 43136: 4282 clrl %d2 <== 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); 43138: 2c3c 0000 0700 movel #1792,%d6 <== 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); 4313e: 4200 clrb %d0 <== NOT EXECUTED 43140: 1d40 fffb moveb %d0,%fp@(-5) <== NOT EXECUTED 43144: 6000 01f2 braw 43338 <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 43148: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 4314c: 5382 subql #1,%d2 <== NOT EXECUTED 4314e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43150: 121b moveb %a3@+,%d1 <== NOT EXECUTED 43152: eb88 lsll #5,%d0 <== NOT EXECUTED 43154: 49c1 extbl %d1 <== NOT EXECUTED 43156: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43158: 2074 0810 moveal %a4@(00000010,%d0:l),%a0 <== NOT EXECUTED 4315c: 4e90 jsr %a0@ <== NOT EXECUTED 4315e: 508f addql #8,%sp <== 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--) { 43160: 4a82 tstl %d2 <== NOT EXECUTED 43162: 66e4 bnes 43148 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 43164: 4aaa 00e4 tstl %a2@(228) <== NOT EXECUTED 43168: 6600 01e6 bnew 43350 <== NOT EXECUTED 4316c: 206a 00dc moveal %a2@(220),%a0 <== NOT EXECUTED 43170: 4a88 tstl %a0 <== NOT EXECUTED 43172: 6700 01dc beqw 43350 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 43176: 2f2a 00e0 movel %a2@(224),%sp@- <== NOT EXECUTED tty->tty_rcvwakeup = 1; 4317a: 7a01 moveq #1,%d5 <== 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); 4317c: 486a 0030 pea %a2@(48) <== NOT EXECUTED 43180: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 1; 43182: 508f addql #8,%sp <== NOT EXECUTED 43184: 2545 00e4 movel %d5,%a2@(228) <== NOT EXECUTED 43188: 6000 01c8 braw 43352 <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 4318c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43190: 1e13 moveb %a3@,%d7 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 43192: 0800 0009 btst #9,%d0 <== NOT EXECUTED 43196: 6744 beqs 431dc <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 43198: 4283 clrl %d3 <== NOT EXECUTED 4319a: 162a 004a moveb %a2@(74),%d3 <== NOT EXECUTED 4319e: 4281 clrl %d1 <== NOT EXECUTED 431a0: 122a 0049 moveb %a2@(73),%d1 <== NOT EXECUTED 431a4: 1007 moveb %d7,%d0 <== NOT EXECUTED 431a6: 49c0 extbl %d0 <== NOT EXECUTED 431a8: b680 cmpl %d0,%d3 <== NOT EXECUTED 431aa: 6622 bnes 431ce <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 431ac: b280 cmpl %d0,%d1 <== NOT EXECUTED 431ae: 660a bnes 431ba <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 431b0: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 431b4: 7210 moveq #16,%d1 <== NOT EXECUTED 431b6: b380 eorl %d1,%d0 <== NOT EXECUTED 431b8: 6008 bras 431c2 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 431ba: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 431be: 7a10 moveq #16,%d5 <== NOT EXECUTED 431c0: 8085 orl %d5,%d0 <== NOT EXECUTED 431c2: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 431c6: 7001 moveq #1,%d0 <== NOT EXECUTED 431c8: 1d40 fffb moveb %d0,%fp@(-5) <== NOT EXECUTED 431cc: 6014 bras 431e2 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 431ce: b280 cmpl %d0,%d1 <== NOT EXECUTED 431d0: 660a bnes 431dc <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 431d2: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 431d6: 72ef moveq #-17,%d1 <== NOT EXECUTED 431d8: c081 andl %d1,%d0 <== NOT EXECUTED 431da: 60e6 bras 431c2 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 431dc: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED 431e0: 674c beqs 4322e <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 431e2: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 431e6: 7a30 moveq #48,%d5 <== NOT EXECUTED 431e8: 7220 moveq #32,%d1 <== NOT EXECUTED 431ea: c085 andl %d5,%d0 <== NOT EXECUTED 431ec: b280 cmpl %d0,%d1 <== NOT EXECUTED 431ee: 6600 0144 bnew 43334 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 431f2: 2006 movel %d6,%d0 <== NOT EXECUTED 431f4: 40c3 movew %sr,%d3 <== NOT EXECUTED 431f6: 8083 orl %d3,%d0 <== NOT EXECUTED 431f8: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 431fa: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 431fe: 7adf moveq #-33,%d5 <== NOT EXECUTED 43200: c085 andl %d5,%d0 <== NOT EXECUTED 43202: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 43206: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 4320a: 671c beqs 43228 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 4320c: 4878 0001 pea 1 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 43210: 202a 0084 movel %a2@(132),%d0 <== 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, 43214: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 43218: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4321a: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 4321e: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 43222: 4e90 jsr %a0@ <== NOT EXECUTED 43224: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 43228: 46c3 movew %d3,%sr <== NOT EXECUTED 4322a: 6000 0108 braw 43334 <== NOT EXECUTED } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 4322e: 206a 0060 moveal %a2@(96),%a0 <== NOT EXECUTED 43232: 5288 addql #1,%a0 <== NOT EXECUTED 43234: 2208 movel %a0,%d1 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 43236: 2006 movel %d6,%d0 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 43238: 226a 0064 moveal %a2@(100),%a1 <== NOT EXECUTED 4323c: 2a09 movel %a1,%d5 <== NOT EXECUTED 4323e: 4c45 1003 remul %d5,%d3,%d1 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 43242: 40c1 movew %sr,%d1 <== NOT EXECUTED 43244: 8081 orl %d1,%d0 <== NOT EXECUTED 43246: 46c0 movew %d0,%sr <== NOT EXECUTED 43248: 2d41 fffc movel %d1,%fp@(-4) <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 4324c: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 43250: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED 43254: 9081 subl %d1,%d0 <== NOT EXECUTED 43256: 2240 moveal %d0,%a1 <== NOT EXECUTED 43258: d3c3 addal %d3,%a1 <== NOT EXECUTED 4325a: 2a09 movel %a1,%d5 <== NOT EXECUTED 4325c: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 43260: 4c41 5000 remul %d1,%d0,%d5 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 43264: b0aa 00c0 cmpl %a2@(192),%d0 <== NOT EXECUTED 43268: 6300 008e blsw 432f8 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 4326c: 202a 00b8 movel %a2@(184),%d0 <== 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) 43270: 0800 0000 btst #0,%d0 <== NOT EXECUTED 43274: 6600 0082 bnew 432f8 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 43278: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4327c: 7201 moveq #1,%d1 <== NOT EXECUTED 4327e: 8081 orl %d1,%d0 <== NOT EXECUTED 43280: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 43284: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43288: 0280 0000 0402 andil #1026,%d0 <== NOT EXECUTED 4328e: 0c80 0000 0400 cmpil #1024,%d0 <== NOT EXECUTED 43294: 6632 bnes 432c8 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 43296: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4329a: 0800 0005 btst #5,%d0 <== NOT EXECUTED 4329e: 6606 bnes 432a6 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 432a0: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 432a4: 6652 bnes 432f8 <== NOT EXECUTED /* 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, 432a6: 4878 0001 pea 1 <== 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; 432aa: 7a02 moveq #2,%d5 <== NOT EXECUTED 432ac: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 432b0: 2f0d movel %a5,%sp@- <== NOT EXECUTED 432b2: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 432b6: 206a 00a4 moveal %a2@(164),%a0 <== 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; 432ba: 8285 orl %d5,%d1 <== NOT EXECUTED 432bc: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED (*tty->device.write)(tty->minor, 432c0: 4e90 jsr %a0@ <== NOT EXECUTED 432c2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 432c6: 6030 bras 432f8 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 432c8: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 432cc: 0280 0000 0104 andil #260,%d0 <== NOT EXECUTED 432d2: 0c80 0000 0100 cmpil #256,%d0 <== NOT EXECUTED 432d8: 661e bnes 432f8 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 432da: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 432de: 303c 0004 movew #4,%d0 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 432e2: 206a 00ac moveal %a2@(172),%a0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 432e6: 8280 orl %d0,%d1 <== NOT EXECUTED 432e8: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 432ec: 4a88 tstl %a0 <== NOT EXECUTED 432ee: 6708 beqs 432f8 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 432f0: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 432f4: 4e90 jsr %a0@ <== NOT EXECUTED 432f6: 588f addql #4,%sp <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 432f8: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 432fc: 46c1 movew %d1,%sr <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 432fe: 202a 005c movel %a2@(92),%d0 <== NOT EXECUTED 43302: b083 cmpl %d3,%d0 <== NOT EXECUTED 43304: 6604 bnes 4330a <== NOT EXECUTED dropped++; 43306: 5282 addql #1,%d2 <== NOT EXECUTED 43308: 602a bras 43334 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; 4330a: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED 4330e: 1187 3800 moveb %d7,%a0@(00000000,%d3:l) <== NOT EXECUTED tty->rawInBuf.Tail = newTail; 43312: 2543 0060 movel %d3,%a2@(96) <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 43316: 4aaa 00e4 tstl %a2@(228) <== NOT EXECUTED 4331a: 6618 bnes 43334 <== NOT EXECUTED 4331c: 206a 00dc moveal %a2@(220),%a0 <== NOT EXECUTED 43320: 4a88 tstl %a0 <== NOT EXECUTED 43322: 6710 beqs 43334 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 43324: 2f2a 00e0 movel %a2@(224),%sp@- <== NOT EXECUTED tty->tty_rcvwakeup = 1; 43328: 7a01 moveq #1,%d5 <== 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); 4332a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4332c: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 1; 4332e: 508f addql #8,%sp <== NOT EXECUTED 43330: 2545 00e4 movel %d5,%a2@(228) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43334: 528b addql #1,%a3 <== NOT EXECUTED 43336: 5384 subql #1,%d4 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 43338: 4a84 tstl %d4 <== NOT EXECUTED 4333a: 6600 fe50 bnew 4318c <== NOT EXECUTED } } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); 4333e: 2f2a 0068 movel %a2@(104),%sp@- <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 43342: d5aa 0078 addl %d2,%a2@(120) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 43346: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return dropped; 4334c: 588f addql #4,%sp <== NOT EXECUTED 4334e: 6002 bras 43352 <== NOT EXECUTED 43350: 4282 clrl %d2 <== NOT EXECUTED } 43352: 2002 movel %d2,%d0 <== NOT EXECUTED 43354: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4335a: 4e5e unlk %fp <== NOT EXECUTED 4335c: 4e75 rts 00042e6c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 42e6c: 4e56 0000 linkw %fp,#0 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 42e70: 4ab9 0005 cdc8 tstl 5cdc8 42e76: 662c bnes 42ea4 sc = rtems_semaphore_create ( 42e78: 4879 0005 cdc8 pea 5cdc8 42e7e: 42a7 clrl %sp@- 42e80: 4878 0054 pea 54 42e84: 4878 0001 pea 1 42e88: 2f3c 5452 6d69 movel #1414688105,%sp@- 42e8e: 4eb9 0004 4cf8 jsr 44cf8 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) 42e94: 4fef 0014 lea %sp@(20),%sp 42e98: 4a80 tstl %d0 42e9a: 6708 beqs 42ea4 rtems_fatal_error_occurred (sc); 42e9c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42e9e: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED } } 42ea4: 4e5e unlk %fp 42ea6: 4e75 rts 00043d7a : } } rtems_status_code rtems_termios_ioctl (void *arg) { 43d7a: 4e56 ffec linkw %fp,#-20 43d7e: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 43d82: 266e 0008 moveal %fp@(8),%a3 rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 43d86: 2053 moveal %a3@,%a0 43d88: 2468 0034 moveal %a0@(52),%a2 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); 43d8c: 42a7 clrl %sp@- 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; 43d8e: 286b 0008 moveal %a3@(8),%a4 rtems_status_code sc; args->ioctl_return = 0; 43d92: 42ab 000c clrl %a3@(12) sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 43d96: 42a7 clrl %sp@- 43d98: 2f2a 0018 movel %a2@(24),%sp@- 43d9c: 4eb9 0004 4f30 jsr 44f30 if (sc != RTEMS_SUCCESSFUL) { 43da2: 4fef 000c lea %sp@(12),%sp 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); 43da6: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) { 43da8: 6600 02d6 bnew 44080 args->ioctl_return = sc; return sc; } switch (args->command) { 43dac: 202b 0004 movel %a3@(4),%d0 43db0: 7204 moveq #4,%d1 43db2: b280 cmpl %d0,%d1 43db4: 6700 023c beqw 43ff2 43db8: 6514 bcss 43dce 43dba: 7602 moveq #2,%d3 43dbc: b680 cmpl %d0,%d3 43dbe: 6778 beqs 43e38 43dc0: 6500 0216 bcsw 43fd8 43dc4: 123c 0001 moveb #1,%d1 43dc8: b280 cmpl %d0,%d1 43dca: 662c bnes 43df8 43dcc: 6050 bras 43e1e 43dce: 0c80 4004 667f cmpil #1074030207,%d0 <== NOT EXECUTED 43dd4: 6700 027c beqw 44052 <== NOT EXECUTED 43dd8: 620a bhis 43de4 <== NOT EXECUTED 43dda: 7605 moveq #5,%d3 <== NOT EXECUTED 43ddc: b680 cmpl %d0,%d3 <== NOT EXECUTED 43dde: 6618 bnes 43df8 <== NOT EXECUTED 43de0: 6000 01fe braw 43fe0 <== NOT EXECUTED 43de4: 0c80 4004 741a cmpil #1074033690,%d0 <== NOT EXECUTED 43dea: 6700 025c beqw 44048 <== NOT EXECUTED 43dee: 0c80 8004 741b cmpil #-2147191781,%d0 <== NOT EXECUTED 43df4: 6700 020c beqw 44002 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 43df8: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 43dfc: eb88 lsll #5,%d0 <== NOT EXECUTED 43dfe: 0680 0005 c59c addil #378268,%d0 <== NOT EXECUTED 43e04: 2240 moveal %d0,%a1 <== NOT EXECUTED 43e06: 2051 moveal %a1@,%a0 <== NOT EXECUTED 43e08: 4a88 tstl %a0 <== NOT EXECUTED 43e0a: 6606 bnes 43e12 <== NOT EXECUTED 43e0c: 740a moveq #10,%d2 <== NOT EXECUTED 43e0e: 6000 0264 braw 44074 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 43e12: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43e14: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43e16: 4e90 jsr %a0@ <== NOT EXECUTED 43e18: 2400 movel %d0,%d2 <== NOT EXECUTED 43e1a: 6000 01b6 braw 43fd2 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 43e1e: 4878 0024 pea 24 43e22: 486a 0030 pea %a2@(48) 43e26: 2f2b 0008 movel %a3@(8),%sp@- 43e2a: 4eb9 0004 d48c jsr 4d48c break; 43e30: 4fef 000c lea %sp@(12),%sp 43e34: 6000 023e braw 44074 case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 43e38: 4878 0024 pea 24 43e3c: 2f2b 0008 movel %a3@(8),%sp@- 43e40: 486a 0030 pea %a2@(48) 43e44: 4eb9 0004 d48c jsr 4d48c /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 43e4a: 202a 00b8 movel %a2@(184),%d0 43e4e: 4fef 000c lea %sp@(12),%sp 43e52: 0800 0009 btst #9,%d0 43e56: 6760 beqs 43eb8 43e58: 202a 0030 movel %a2@(48),%d0 43e5c: 0280 0000 0400 andil #1024,%d0 43e62: 6654 bnes 43eb8 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 43e64: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43e68: 0280 ffff fdef andil #-529,%d0 <== NOT EXECUTED 43e6e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 43e72: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43e76: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43e7a: 673c beqs 43eb8 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 43e7c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 43e82: 40c3 movew %sr,%d3 <== NOT EXECUTED 43e84: 8083 orl %d3,%d0 <== NOT EXECUTED 43e86: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 43e88: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43e8c: 72df moveq #-33,%d1 <== NOT EXECUTED 43e8e: c081 andl %d1,%d0 <== NOT EXECUTED 43e90: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 43e94: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 43e98: 671c beqs 43eb6 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 43e9a: 202a 0084 movel %a2@(132),%d0 <== 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, 43e9e: 4878 0001 pea 1 <== NOT EXECUTED 43ea2: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 43ea6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43ea8: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43eac: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 43eb0: 4e90 jsr %a0@ <== NOT EXECUTED 43eb2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 43eb6: 46c3 movew %d3,%sr <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 43eb8: 202a 00b8 movel %a2@(184),%d0 43ebc: 0800 000a btst #10,%d0 43ec0: 6724 beqs 43ee6 43ec2: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 43ec6: 0280 0000 1000 andil #4096,%d0 <== NOT EXECUTED 43ecc: 6618 bnes 43ee6 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 43ece: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 43ed2: 76fd moveq #-3,%d3 <== NOT EXECUTED } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 43ed4: 0880 000a bclr #10,%d0 <== NOT EXECUTED 43ed8: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 43edc: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43ee0: c083 andl %d3,%d0 <== NOT EXECUTED 43ee2: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 43ee6: 202a 00b8 movel %a2@(184),%d0 43eea: 0800 0008 btst #8,%d0 43eee: 6736 beqs 43f26 43ef0: 4aaa 0038 tstl %a2@(56) <== NOT EXECUTED 43ef4: 6d30 blts 43f26 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 43ef6: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43efa: 0880 0008 bclr #8,%d0 <== NOT EXECUTED 43efe: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 43f02: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43f06: 44c0 movew %d0,%ccr <== NOT EXECUTED 43f08: 6610 bnes 43f1a <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 43f0a: 206a 00b0 moveal %a2@(176),%a0 <== 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) && 43f0e: 4a88 tstl %a0 <== NOT EXECUTED 43f10: 6708 beqs 43f1a <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 43f12: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43f16: 4e90 jsr %a0@ <== NOT EXECUTED 43f18: 588f addql #4,%sp <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 43f1a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43f1e: 72fb moveq #-5,%d1 <== NOT EXECUTED 43f20: c081 andl %d1,%d0 <== NOT EXECUTED 43f22: 2540 00b8 movel %d0,%a2@(184) <== 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) { 43f26: 4aaa 0038 tstl %a2@(56) 43f2a: 6c0c bges 43f38 tty->flow_ctrl |= FL_MDRTS; 43f2c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43f30: 08c0 0008 bset #8,%d0 <== NOT EXECUTED 43f34: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 43f38: 202a 0030 movel %a2@(48),%d0 43f3c: 0280 0000 1000 andil #4096,%d0 43f42: 670c beqs 43f50 tty->flow_ctrl |= FL_MDXOF; 43f44: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43f48: 08c0 000a bset #10,%d0 <== NOT EXECUTED 43f4c: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 43f50: 202a 0030 movel %a2@(48),%d0 43f54: 0280 0000 0400 andil #1024,%d0 43f5a: 670c beqs 43f68 tty->flow_ctrl |= FL_MDXON; 43f5c: 202a 00b8 movel %a2@(184),%d0 43f60: 08c0 0009 bset #9,%d0 43f64: 2540 00b8 movel %d0,%a2@(184) 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) { 43f68: 7002 moveq #2,%d0 43f6a: c0aa 003c andl %a2@(60),%d0 43f6e: 663a bnes 43faa 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; 43f70: 4283 clrl %d3 <== NOT EXECUTED 43f72: 162a 0046 moveb %a2@(70),%d3 <== NOT EXECUTED 43f76: 4eb9 0004 48f8 jsr 448f8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 43f7c: 4c03 0800 mulsl %d3,%d0 <== NOT EXECUTED 43f80: 760a moveq #10,%d3 <== NOT EXECUTED 43f82: 4c43 0000 remul %d3,%d0,%d0 <== NOT EXECUTED 43f86: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 43f8a: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 43f8e: 6714 beqs 43fa4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 43f90: 42aa 006c clrl %a2@(108) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 43f94: 2540 0070 movel %d0,%a2@(112) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) 43f98: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 43f9c: 6614 bnes 43fb2 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 43f9e: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 43fa2: 601a bras 43fbe <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { 43fa4: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 43fa8: 670e beqs 43fb8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 43faa: 42aa 006c clrl %a2@(108) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 43fae: 42aa 0070 clrl %a2@(112) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 43fb2: 42aa 0074 clrl %a2@(116) 43fb6: 6006 bras 43fbe } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 43fb8: 7001 moveq #1,%d0 <== NOT EXECUTED 43fba: 2540 006c movel %d0,%a2@(108) <== NOT EXECUTED } } } if (tty->device.setAttributes) 43fbe: 206a 00a8 moveal %a2@(168),%a0 43fc2: 4a88 tstl %a0 43fc4: 6700 00ae beqw 44074 (*tty->device.setAttributes)(tty->minor, &tty->termios); 43fc8: 486a 0030 pea %a2@(48) 43fcc: 2f2a 0010 movel %a2@(16),%sp@- 43fd0: 4e90 jsr %a0@ 43fd2: 508f addql #8,%sp 43fd4: 6000 009e braw 44074 break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 43fd8: 2f0a movel %a2,%sp@- 43fda: 4eba fa5e jsr %pc@(43a3a ) 43fde: 6064 bras 44044 break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 43fe0: 2014 movel %a4@,%d0 <== NOT EXECUTED 43fe2: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 43fe6: 2540 00d4 movel %d0,%a2@(212) <== NOT EXECUTED 43fea: 2541 00d8 movel %d1,%a2@(216) <== NOT EXECUTED break; 43fee: 6000 0084 braw 44074 <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 43ff2: 2014 movel %a4@,%d0 <== NOT EXECUTED 43ff4: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 43ff8: 2540 00dc movel %d0,%a2@(220) <== NOT EXECUTED 43ffc: 2541 00e0 movel %d1,%a2@(224) <== NOT EXECUTED break; 44000: 6072 bras 44074 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 44002: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 44006: 41f9 0005 c584 lea 5c584 ,%a0 <== NOT EXECUTED 4400c: e788 lsll #3,%d0 <== NOT EXECUTED 4400e: 2070 0c04 moveal %a0@(00000004,%d0:l:4),%a0 <== NOT EXECUTED 44012: 4a88 tstl %a0 <== NOT EXECUTED 44014: 6708 beqs 4401e <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 44016: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44018: 4e90 jsr %a0@ <== NOT EXECUTED 4401a: 588f addql #4,%sp <== NOT EXECUTED 4401c: 2400 movel %d0,%d2 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 4401e: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 44022: 2010 movel %a0@,%d0 <== 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) { 44024: 2200 movel %d0,%d1 <== NOT EXECUTED 44026: 41f9 0005 c584 lea 5c584 ,%a0 <== NOT EXECUTED 4402c: eb89 lsll #5,%d1 <== 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); 4402e: 2540 00cc movel %d0,%a2@(204) <== 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) { 44032: 2070 1800 moveal %a0@(00000000,%d1:l),%a0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 44036: 42aa 00d0 clrl %a2@(208) <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 4403a: 4a88 tstl %a0 <== NOT EXECUTED 4403c: 6736 beqs 44074 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 4403e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44040: 4e90 jsr %a0@ <== NOT EXECUTED 44042: 2400 movel %d0,%d2 <== NOT EXECUTED 44044: 588f addql #4,%sp 44046: 602c bras 44074 } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 44048: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 4404c: 20aa 00cc movel %a2@(204),%a0@ <== NOT EXECUTED break; 44050: 6022 bras 44074 <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 44052: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 44056: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 4405a: 9081 subl %d1,%d0 <== NOT EXECUTED if ( rawnc < 0 ) 4405c: 6a06 bpls 44064 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 4405e: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 44062: d081 addl %d1,%d0 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 44064: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 44068: 92aa 0024 subl %a2@(36),%d1 <== NOT EXECUTED 4406c: d280 addl %d0,%d1 <== NOT EXECUTED 4406e: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 44072: 2081 movel %d1,%a0@ <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 44074: 2f2a 0018 movel %a2@(24),%sp@- 44078: 4eb9 0004 5034 jsr 45034 args->ioctl_return = sc; return sc; 4407e: 588f addql #4,%sp } 44080: 2002 movel %d2,%d0 *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; 44082: 2742 000c movel %d2,%a3@(12) return sc; } 44086: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 4408c: 4e5e unlk %fp 4408e: 4e75 rts 000441f0 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 441f0: 4e56 ffe0 linkw %fp,#-32 441f4: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 441f8: 42a7 clrl %sp@- rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 441fa: 262e 0008 movel %fp@(8),%d3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 441fe: 42a7 clrl %sp@- 44200: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44206: 282e 000c movel %fp@(12),%d4 4420a: 2a6e 0010 moveal %fp@(16),%a5 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 4420e: 4eb9 0004 4f30 jsr 44f30 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 44214: 4fef 000c lea %sp@(12),%sp struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44218: 2400 movel %d0,%d2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 4421a: 6600 0394 bnew 445b0 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 4421e: 2479 0005 cdd0 moveal 5cdd0 ,%a2 44224: 6010 bras 44236 if ((tty->major == major) && (tty->minor == minor)) 44226: b6aa 000c cmpl %a2@(12),%d3 4422a: 6608 bnes 44234 4422c: b8aa 0010 cmpl %a2@(16),%d4 44230: 6700 0308 beqw 4453a */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 44234: 2452 moveal %a2@,%a2 44236: 4a8a tstl %a2 44238: 66ec bnes 44226 4423a: 6000 0380 braw 445bc /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); if (tty == NULL) { rtems_semaphore_release (rtems_termios_ttyMutex); 4423e: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- <== NOT EXECUTED 44244: 741a moveq #26,%d2 <== NOT EXECUTED 44246: 6000 0360 braw 445a8 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 4424a: 41f9 0005 b788 lea 5b788 ,%a0 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44250: 49f9 0004 944c lea 4944c ,%a4 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 44256: 2550 0064 movel %a0@,%a2@(100) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 4425a: 202a 0064 movel %a2@(100),%d0 4425e: 2f00 movel %d0,%sp@- 44260: 4e94 jsr %a4@ if (tty->rawInBuf.theBuf == NULL) { 44262: 588f addql #4,%sp } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44264: 2540 0058 movel %d0,%a2@(88) if (tty->rawInBuf.theBuf == NULL) { 44268: 661c bnes 44286 free(tty); 4426a: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 4426c: 741a moveq #26,%d2 <== 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); 4426e: 4eb9 0004 8f48 jsr 48f48 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 44274: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- <== NOT EXECUTED 4427a: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return RTEMS_NO_MEMORY; 44280: 508f addql #8,%sp <== NOT EXECUTED 44282: 6000 032c braw 445b0 <== NOT EXECUTED } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 44286: 41f9 0005 b78c lea 5b78c ,%a0 4428c: 2550 0088 movel %a0@,%a2@(136) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 44290: 202a 0088 movel %a2@(136),%d0 44294: 2f00 movel %d0,%sp@- 44296: 4e94 jsr %a4@ if (tty->rawOutBuf.theBuf == NULL) { 44298: 588f addql #4,%sp } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 4429a: 2540 007c movel %d0,%a2@(124) if (tty->rawOutBuf.theBuf == NULL) { 4429e: 6626 bnes 442c6 free((void *)(tty->rawInBuf.theBuf)); 442a0: 2f2a 0058 movel %a2@(88),%sp@- <== NOT EXECUTED 442a4: 47f9 0004 8f48 lea 48f48 ,%a3 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 442aa: 741a moveq #26,%d2 <== NOT EXECUTED * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); 442ac: 4e93 jsr %a3@ <== NOT EXECUTED free(tty); 442ae: 2f0a movel %a2,%sp@- <== NOT EXECUTED 442b0: 4e93 jsr %a3@ <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 442b2: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- <== NOT EXECUTED 442b8: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return RTEMS_NO_MEMORY; 442be: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 442c2: 6000 02ec braw 445b0 <== NOT EXECUTED } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 442c6: 2f39 0005 b784 movel 5b784 ,%sp@- 442cc: 4e94 jsr %a4@ if (tty->cbuf == NULL) { 442ce: 588f addql #4,%sp return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 442d0: 2540 001c movel %d0,%a2@(28) if (tty->cbuf == NULL) { 442d4: 662c bnes 44302 free((void *)(tty->rawOutBuf.theBuf)); 442d6: 2f2a 007c movel %a2@(124),%sp@- <== NOT EXECUTED 442da: 47f9 0004 8f48 lea 48f48 ,%a3 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 442e0: 741a moveq #26,%d2 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 442e2: 4e93 jsr %a3@ <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 442e4: 2f2a 0058 movel %a2@(88),%sp@- <== NOT EXECUTED 442e8: 4e93 jsr %a3@ <== NOT EXECUTED free(tty); 442ea: 2f0a movel %a2,%sp@- <== NOT EXECUTED 442ec: 4e93 jsr %a3@ <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 442ee: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- <== NOT EXECUTED 442f4: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return RTEMS_NO_MEMORY; 442fa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 442fe: 6000 02b0 braw 445b0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 44302: 2079 0005 cdd0 moveal 5cdd0 ,%a0 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 44308: 42aa 00d4 clrl %a2@(212) tty->tty_snd.sw_arg = NULL; 4430c: 42aa 00d8 clrl %a2@(216) tty->tty_rcv.sw_pfn = NULL; 44310: 42aa 00dc clrl %a2@(220) tty->tty_rcv.sw_arg = NULL; 44314: 42aa 00e0 clrl %a2@(224) tty->tty_rcvwakeup = 0; 44318: 42aa 00e4 clrl %a2@(228) /* * link tty */ tty->forw = rtems_termios_ttyHead; 4431c: 2488 movel %a0,%a2@ tty->back = NULL; 4431e: 42aa 0004 clrl %a2@(4) if (rtems_termios_ttyHead != NULL) 44322: 4a88 tstl %a0 44324: 6704 beqs 4432a rtems_termios_ttyHead->back = tty; 44326: 214a 0004 movel %a2,%a0@(4) rtems_termios_ttyHead = tty; 4432a: 23cb 0005 cdd0 movel %a3,5cdd0 if (rtems_termios_ttyTail == NULL) 44330: 4ab9 0005 cdcc tstl 5cdcc 44336: 6606 bnes 4433e rtems_termios_ttyTail = tty; 44338: 23cb 0005 cdcc movel %a3,5cdcc tty->minor = minor; 4433e: 2744 0010 movel %d4,%a3@(16) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 44342: 49f9 0004 4cf8 lea 44cf8 ,%a4 44348: 1039 0005 b790 moveb 5b790 ,%d0 rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; 4434e: 2743 000c movel %d3,%a3@(12) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 44352: 486b 0014 pea %a3@(20) 44356: 49c0 extbl %d0 44358: 0080 5452 6900 oril #1414686976,%d0 4435e: 42a7 clrl %sp@- 44360: 4878 0054 pea 54 44364: 4878 0001 pea 1 44368: 2f00 movel %d0,%sp@- 4436a: 4e94 jsr %a4@ 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) 4436c: 4fef 0014 lea %sp@(20),%sp 44370: 4a80 tstl %d0 44372: 6600 0226 bnew 4459a rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 44376: 486b 0018 pea %a3@(24) 4437a: 1039 0005 b790 moveb 5b790 ,%d0 44380: 42a7 clrl %sp@- 44382: 4878 0054 pea 54 44386: 49c0 extbl %d0 44388: 4878 0001 pea 1 4438c: 0080 5452 6f00 oril #1414688512,%d0 44392: 2f00 movel %d0,%sp@- 44394: 4e94 jsr %a4@ 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) 44396: 4fef 0014 lea %sp@(20),%sp 4439a: 4a80 tstl %d0 4439c: 6600 01fc bnew 4459a rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 443a0: 486b 008c pea %a3@(140) 443a4: 1039 0005 b790 moveb 5b790 ,%d0 443aa: 42a7 clrl %sp@- 443ac: 4878 0020 pea 20 443b0: 49c0 extbl %d0 443b2: 0080 5452 7800 oril #1414690816,%d0 443b8: 42a7 clrl %sp@- 443ba: 2f00 movel %d0,%sp@- 443bc: 4e94 jsr %a4@ rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 443be: 4fef 0014 lea %sp@(20),%sp 443c2: 4a80 tstl %d0 443c4: 6600 01d4 bnew 4459a rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 443c8: 42ab 0094 clrl %a3@(148) /* * Set callbacks */ tty->device = *callbacks; 443cc: 4878 0020 pea 20 443d0: 2f2e 0014 movel %fp@(20),%sp@- 443d4: 486b 0098 pea %a3@(152) 443d8: 4eb9 0004 d48c jsr 4d48c /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 443de: 4fef 000c lea %sp@(12),%sp 443e2: 7002 moveq #2,%d0 443e4: b0ab 00b4 cmpl %a3@(180),%d0 443e8: 6662 bnes 4444c sc = rtems_task_create ( 443ea: 486b 00c8 pea %a3@(200) <== NOT EXECUTED 443ee: 49f9 0004 50e4 lea 450e4 ,%a4 <== NOT EXECUTED 443f4: 1039 0005 b790 moveb 5b790 ,%d0 <== NOT EXECUTED 443fa: 42a7 clrl %sp@- <== NOT EXECUTED 443fc: 4878 0500 pea 500 <== NOT EXECUTED 44400: 49c0 extbl %d0 <== NOT EXECUTED 44402: 4878 0400 pea 400 <== NOT EXECUTED 44406: 4878 000a pea a <== NOT EXECUTED 4440a: 0080 5478 5400 oril #1417171968,%d0 <== NOT EXECUTED 44410: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44412: 4e94 jsr %a4@ <== 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) 44414: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 44418: 4a80 tstl %d0 <== NOT EXECUTED 4441a: 6600 017e bnew 4459a <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 4441e: 486b 00c4 pea %a3@(196) <== NOT EXECUTED 44422: 1039 0005 b790 moveb 5b790 ,%d0 <== NOT EXECUTED 44428: 42a7 clrl %sp@- <== NOT EXECUTED 4442a: 4878 0500 pea 500 <== NOT EXECUTED 4442e: 49c0 extbl %d0 <== NOT EXECUTED 44430: 4878 0400 pea 400 <== NOT EXECUTED 44434: 4878 0009 pea 9 <== NOT EXECUTED 44438: 0080 5278 5400 oril #1383617536,%d0 <== NOT EXECUTED 4443e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44440: 4e94 jsr %a4@ <== 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) 44442: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 44446: 4a80 tstl %d0 <== NOT EXECUTED 44448: 6600 0150 bnew 4459a <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 4444c: 4aab 00a0 tstl %a3@(160) 44450: 6708 beqs 4445a (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 44452: 7202 moveq #2,%d1 44454: b2ab 00b4 cmpl %a3@(180),%d1 44458: 662c bnes 44486 sc = rtems_semaphore_create ( 4445a: 486b 0068 pea %a3@(104) 4445e: 1039 0005 b790 moveb 5b790 ,%d0 44464: 42a7 clrl %sp@- 44466: 4878 0024 pea 24 4446a: 49c0 extbl %d0 4446c: 0080 5452 7200 oril #1414689280,%d0 44472: 42a7 clrl %sp@- 44474: 2f00 movel %d0,%sp@- 44476: 4eb9 0004 4cf8 jsr 44cf8 rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 4447c: 4fef 0014 lea %sp@(20),%sp 44480: 4a80 tstl %d0 44482: 6600 0116 bnew 4459a 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; 44486: 42ab 00b8 clrl %a3@(184) /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 4448a: 202b 0064 movel %a3@(100),%d0 4448e: e288 lsrl #1,%d0 tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 44490: 7203 moveq #3,%d1 /* 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; 44492: 2740 00bc movel %d0,%a3@(188) tty->highwater = tty->rawInBuf.Size * 3/4; 44496: 206b 0064 moveal %a3@(100),%a0 tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 4449a: 1741 0041 moveb %d1,%a3@(65) tty->termios.c_cc[VQUIT] = '\034'; 4449e: 721c moveq #28,%d1 tty->termios.c_cc[VERASE] = '\177'; 444a0: 707f moveq #127,%d0 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; 444a2: 1741 0042 moveb %d1,%a3@(66) tty->termios.c_cc[VERASE] = '\177'; 444a6: 1740 0043 moveb %d0,%a3@(67) tty->termios.c_cc[VKILL] = '\025'; 444aa: 7215 moveq #21,%d1 tty->termios.c_cc[VEOF] = '\004'; 444ac: 7004 moveq #4,%d0 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; 444ae: 1741 0044 moveb %d1,%a3@(68) tty->termios.c_cc[VEOF] = '\004'; 444b2: 1740 0045 moveb %d0,%a3@(69) tty->termios.c_cc[VEOL] = '\000'; 444b6: 4201 clrb %d1 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 444b8: 7011 moveq #17,%d0 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'; 444ba: 1741 004c moveb %d1,%a3@(76) tty->termios.c_cc[VEOL2] = '\000'; 444be: 1741 0051 moveb %d1,%a3@(81) tty->termios.c_cc[VSTART] = '\021'; 444c2: 1740 0049 moveb %d0,%a3@(73) tty->termios.c_cc[VSTOP] = '\023'; 444c6: 7213 moveq #19,%d1 tty->termios.c_cc[VSUSP] = '\032'; 444c8: 701a moveq #26,%d0 tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; 444ca: 1741 004a moveb %d1,%a3@(74) tty->termios.c_cc[VSUSP] = '\032'; 444ce: 1740 004b moveb %d0,%a3@(75) tty->termios.c_cc[VREPRINT] = '\022'; 444d2: 7212 moveq #18,%d1 tty->termios.c_cc[VDISCARD] = '\017'; 444d4: 700f moveq #15,%d0 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 444d6: 1741 004d moveb %d1,%a3@(77) tty->termios.c_cc[VDISCARD] = '\017'; 444da: 1740 004e moveb %d0,%a3@(78) tty->termios.c_cc[VWERASE] = '\027'; 444de: 7217 moveq #23,%d1 tty->termios.c_cc[VLNEXT] = '\026'; 444e0: 7016 moveq #22,%d0 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; 444e2: 41f0 8a00 lea %a0@(00000000,%a0:l:2),%a0 tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; 444e6: 1740 0050 moveb %d0,%a3@(80) tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 444ea: 1741 004f moveb %d1,%a3@(79) 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; 444ee: 2008 movel %a0,%d0 444f0: e488 lsrl #2,%d0 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 444f2: 307c 2502 moveaw #9474,%a0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 444f6: 1239 0005 b790 moveb 5b790 ,%d1 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; 444fc: 2740 00c0 movel %d0,%a3@(192) /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 44500: 203c 0000 1805 movel #6149,%d0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44506: 49c1 extbl %d1 44508: 2a01 movel %d1,%d5 4450a: 5285 addql #1,%d5 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 4450c: 2740 0034 movel %d0,%a3@(52) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 44510: 303c 823b movew #-32197,%d0 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 44514: 2748 0030 movel %a0,%a3@(48) tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 44518: 307c 08bd moveaw #2237,%a0 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 4451c: 2740 003c movel %d0,%a3@(60) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44520: 303c 007a movew #122,%d0 /* * 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; 44524: 2748 0038 movel %a0,%a3@(56) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44528: 13c5 0005 b790 moveb %d5,5b790 4452e: b081 cmpl %d1,%d0 44530: 6608 bnes 4453a c = 'a'; 44532: 7261 moveq #97,%d1 <== NOT EXECUTED 44534: 13c1 0005 b790 moveb %d1,5b790 <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { 4453a: 202a 0008 movel %a2@(8),%d0 4453e: 2200 movel %d0,%d1 44540: 5281 addql #1,%d1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 44542: 2055 moveal %a5@,%a0 if (!tty->refcount++) { 44544: 2541 0008 movel %d1,%a2@(8) */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 44548: 214a 0034 movel %a2,%a0@(52) if (!tty->refcount++) { 4454c: 4a80 tstl %d0 4454e: 6652 bnes 445a2 if (tty->device.firstOpen) 44550: 206a 0098 moveal %a2@(152),%a0 44554: 4a88 tstl %a0 44556: 670c beqs 44564 (*tty->device.firstOpen)(major, minor, arg); 44558: 2f0d movel %a5,%sp@- 4455a: 2f04 movel %d4,%sp@- 4455c: 2f03 movel %d3,%sp@- 4455e: 4e90 jsr %a0@ 44560: 4fef 000c lea %sp@(12),%sp /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44564: 7002 moveq #2,%d0 44566: b0aa 00b4 cmpl %a2@(180),%d0 4456a: 6636 bnes 445a2 sc = rtems_task_start(tty->rxTaskId, 4456c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4456e: 487a 00d2 pea %pc@(44642 ) <== NOT EXECUTED 44572: 47f9 0004 5360 lea 45360 ,%a3 <== NOT EXECUTED 44578: 2f2a 00c4 movel %a2@(196),%sp@- <== NOT EXECUTED 4457c: 4e93 jsr %a3@ <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 4457e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 44582: 4a80 tstl %d0 <== NOT EXECUTED 44584: 6614 bnes 4459a <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 44586: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44588: 487a 0050 pea %pc@(445da ) <== NOT EXECUTED 4458c: 2f2a 00c8 movel %a2@(200),%sp@- <== NOT EXECUTED 44590: 4e93 jsr %a3@ <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 44592: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 44596: 4a80 tstl %d0 <== NOT EXECUTED 44598: 6708 beqs 445a2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 4459a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4459c: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 445a2: 2f39 0005 cdc8 movel 5cdc8 ,%sp@- 445a8: 4eb9 0004 5034 jsr 45034 return RTEMS_SUCCESSFUL; 445ae: 588f addql #4,%sp } 445b0: 2002 movel %d2,%d0 445b2: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 445b8: 4e5e unlk %fp 445ba: 4e75 rts static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 445bc: 4878 00e8 pea e8 445c0: 4878 0001 pea 1 445c4: 4eb9 0004 8e68 jsr 48e68 if (tty == NULL) { 445ca: 508f addql #8,%sp static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 445cc: 2440 moveal %d0,%a2 445ce: 2640 moveal %d0,%a3 if (tty == NULL) { 445d0: 4a80 tstl %d0 445d2: 6600 fc76 bnew 4424a 445d6: 6000 fc66 braw 4423e <== NOT EXECUTED 0004335e : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 4335e: 4e56 ffe0 linkw %fp,#-32 43362: 202e 0008 movel %fp@(8),%d0 43366: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 4336a: 242e 000c movel %fp@(12),%d2 const unsigned char *buf = _buf; 4336e: 2640 moveal %d0,%a3 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 43370: 246e 0010 moveal %fp@(16),%a2 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 43374: 4aaa 00b4 tstl %a2@(180) 43378: 661c bnes 43396 (*tty->device.write)(tty->minor, (void *)buf, len); 4337a: 226a 00a4 moveal %a2@(164),%a1 <== NOT EXECUTED 4337e: 2d6a 0010 0008 movel %a2@(16),%fp@(8) <== NOT EXECUTED 43384: 2d42 0010 movel %d2,%fp@(16) <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43388: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== 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); 4338e: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43392: 4e5e unlk %fp <== 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); 43394: 4ed1 jmp %a1@ <== NOT EXECUTED return; } newHead = tty->rawOutBuf.Head; 43396: 2c2a 0080 movel %a2@(128),%d6 * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); 4339a: 2a3c 0000 0700 movel #1792,%d5 while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 433a0: 49f9 0004 4f30 lea 44f30 ,%a4 if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 433a6: 6000 00a0 braw 43448 * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 433aa: 222a 0088 movel %a2@(136),%d1 433ae: 5286 addql #1,%d6 rtems_interrupt_disable (level); 433b0: 2005 movel %d5,%d0 * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 433b2: 4c41 6004 remul %d1,%d4,%d6 433b6: 2c04 movel %d4,%d6 rtems_interrupt_disable (level); 433b8: 40c3 movew %sr,%d3 433ba: 8083 orl %d3,%d0 433bc: 46c0 movew %d0,%sr while (newHead == tty->rawOutBuf.Tail) { 433be: 602a bras 433ea tty->rawOutBufState = rob_wait; 433c0: 7002 moveq #2,%d0 433c2: 2540 0094 movel %d0,%a2@(148) rtems_interrupt_enable (level); 433c6: 46c3 movew %d3,%sr sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 433c8: 42a7 clrl %sp@- 433ca: 42a7 clrl %sp@- 433cc: 2f2a 008c movel %a2@(140),%sp@- 433d0: 4e94 jsr %a4@ RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 433d2: 4fef 000c lea %sp@(12),%sp 433d6: 4a80 tstl %d0 433d8: 6708 beqs 433e2 rtems_fatal_error_occurred (sc); 433da: 2f00 movel %d0,%sp@- <== NOT EXECUTED 433dc: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED rtems_interrupt_disable (level); 433e2: 2005 movel %d5,%d0 433e4: 40c3 movew %sr,%d3 433e6: 8083 orl %d3,%d0 433e8: 46c0 movew %d0,%sr * 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) { 433ea: 202a 0084 movel %a2@(132),%d0 433ee: b084 cmpl %d4,%d0 433f0: 67ce beqs 433c0 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 433f2: 202a 0080 movel %a2@(128),%d0 433f6: 206a 007c moveal %a2@(124),%a0 433fa: 1193 0800 moveb %a3@,%a0@(00000000,%d0:l) tty->rawOutBuf.Head = newHead; 433fe: 2544 0080 movel %d4,%a2@(128) if (tty->rawOutBufState == rob_idle) { 43402: 4aaa 0094 tstl %a2@(148) 43406: 663a bnes 43442 /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 43408: 202a 00b8 movel %a2@(184),%d0 4340c: 0800 0004 btst #4,%d0 43410: 661e bnes 43430 (*tty->device.write)(tty->minor, 43412: 4878 0001 pea 1 (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 43416: 202a 0084 movel %a2@(132),%d0 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, 4341a: d0aa 007c addl %a2@(124),%d0 4341e: 2f00 movel %d0,%sp@- 43420: 2f2a 0010 movel %a2@(16),%sp@- 43424: 206a 00a4 moveal %a2@(164),%a0 43428: 4e90 jsr %a0@ 4342a: 4fef 000c lea %sp@(12),%sp 4342e: 600c bras 4343c (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; 43430: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43434: 7220 moveq #32,%d1 <== NOT EXECUTED 43436: 8081 orl %d1,%d0 <== NOT EXECUTED 43438: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 4343c: 7001 moveq #1,%d0 4343e: 2540 0094 movel %d0,%a2@(148) RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 43442: 528b addql #1,%a3 /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); 43444: 46c3 movew %d3,%sr len--; 43446: 5382 subql #1,%d2 if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 43448: 4a82 tstl %d2 4344a: 6600 ff5e bnew 433aa tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 4344e: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 43454: 4e5e unlk %fp 43456: 4e75 rts 00043aa4 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 43aa4: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 43aa8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 43aac: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 43ab0: 2053 moveal %a3@,%a0 <== NOT EXECUTED 43ab2: 2468 0034 moveal %a0@(52),%a2 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 43ab6: 42a7 clrl %sp@- <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; 43ab8: 242b 0010 movel %a3@(16),%d2 <== NOT EXECUTED char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 43abc: 42a7 clrl %sp@- <== NOT EXECUTED 43abe: 2f2a 0014 movel %a2@(20),%sp@- <== 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; 43ac2: 2a6b 000c moveal %a3@(12),%a5 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 43ac6: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 43acc: 4fef 000c lea %sp@(12),%sp <== 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); 43ad0: 2600 movel %d0,%d3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 43ad2: 6600 029a bnew 43d6e <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 43ad6: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 43ada: 41f9 0005 c584 lea 5c584 ,%a0 <== NOT EXECUTED 43ae0: eb88 lsll #5,%d0 <== NOT EXECUTED 43ae2: 2070 0808 moveal %a0@(00000008,%d0:l),%a0 <== NOT EXECUTED 43ae6: 4a88 tstl %a0 <== NOT EXECUTED 43ae8: 671e beqs 43b08 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 43aea: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43aec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43aee: 4e90 jsr %a0@ <== NOT EXECUTED 43af0: 2600 movel %d0,%d3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 43af2: 42aa 00e4 clrl %a2@(228) <== NOT EXECUTED rtems_semaphore_release (tty->isem); 43af6: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 43afa: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return sc; 43b00: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43b04: 6000 0268 braw 43d6e <== NOT EXECUTED } if (tty->cindex == tty->ccount) { 43b08: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 43b0c: b0aa 0024 cmpl %a2@(36),%d0 <== NOT EXECUTED 43b10: 6600 0234 bnew 43d46 <== NOT EXECUTED tty->cindex = tty->ccount = 0; 43b14: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED tty->read_start_column = tty->column; 43b18: 256a 0028 002c movel %a2@(40),%a2@(44) <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 43b1e: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 43b22: 4aaa 00a0 tstl %a2@(160) <== NOT EXECUTED 43b26: 6700 00da beqw 43c02 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 43b2a: 4aaa 00b4 tstl %a2@(180) <== NOT EXECUTED 43b2e: 6600 00d2 bnew 43c02 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 43b32: 7002 moveq #2,%d0 <== NOT EXECUTED 43b34: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 43b38: 673e beqs 43b78 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 43b3a: 49f9 0004 5408 lea 45408 ,%a4 <== NOT EXECUTED } else { if (siproc (n, tty)) 43b40: 283c 0004 391a movel #276762,%d4 <== NOT EXECUTED { int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); 43b46: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43b4a: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 43b4e: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 43b50: 588f addql #4,%sp <== NOT EXECUTED 43b52: 4a80 tstl %d0 <== NOT EXECUTED 43b54: 6c0a bges 43b60 <== NOT EXECUTED rtems_task_wake_after (1); 43b56: 4878 0001 pea 1 <== NOT EXECUTED 43b5a: 4e94 jsr %a4@ <== NOT EXECUTED 43b5c: 588f addql #4,%sp <== NOT EXECUTED 43b5e: 60e6 bras 43b46 <== NOT EXECUTED } else { if (siproc (n, tty)) 43b60: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43b62: 2044 moveal %d4,%a0 <== NOT EXECUTED 43b64: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43b6a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43b6c: 4e90 jsr %a0@ <== NOT EXECUTED 43b6e: 508f addql #8,%sp <== NOT EXECUTED 43b70: 4a80 tstl %d0 <== NOT EXECUTED 43b72: 67d2 beqs 43b46 <== NOT EXECUTED 43b74: 6000 01d0 braw 43d46 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 43b78: 41f9 0004 4910 lea 44910 ,%a0 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; now = rtems_clock_get_ticks_since_boot(); 43b7e: 2848 moveal %a0,%a4 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 43b80: 2c3c 0004 5408 movel #283656,%d6 <== NOT EXECUTED } else { siproc (n, tty); 43b86: 2a3c 0004 391a movel #276762,%d5 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 43b8c: 4e90 jsr %a0@ <== NOT EXECUTED 43b8e: 2800 movel %d0,%d4 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 43b90: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43b94: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 43b98: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 43b9a: 588f addql #4,%sp <== NOT EXECUTED 43b9c: 4a80 tstl %d0 <== NOT EXECUTED 43b9e: 6c34 bges 43bd4 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 43ba0: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 43ba4: 670e beqs 43bb4 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 43ba6: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 43baa: 671c beqs 43bc8 <== NOT EXECUTED 43bac: 4aaa 0020 tstl %a2@(32) <== NOT EXECUTED 43bb0: 6716 beqs 43bc8 <== NOT EXECUTED 43bb2: 6008 bras 43bbc <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 43bb4: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 43bb8: 6700 018c beqw 43d46 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 43bbc: 4e94 jsr %a4@ <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 43bbe: 9084 subl %d4,%d0 <== NOT EXECUTED 43bc0: b0aa 0054 cmpl %a2@(84),%d0 <== NOT EXECUTED 43bc4: 6200 0180 bhiw 43d46 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 43bc8: 4878 0001 pea 1 <== NOT EXECUTED 43bcc: 2046 moveal %d6,%a0 <== NOT EXECUTED 43bce: 4e90 jsr %a0@ <== NOT EXECUTED 43bd0: 588f addql #4,%sp <== NOT EXECUTED 43bd2: 60bc bras 43b90 <== NOT EXECUTED } else { siproc (n, tty); 43bd4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43bd6: 2045 moveal %d5,%a0 <== NOT EXECUTED 43bd8: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43bde: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43be0: 4e90 jsr %a0@ <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 43be2: 508f addql #8,%sp <== NOT EXECUTED 43be4: 4281 clrl %d1 <== NOT EXECUTED 43be6: 102a 0047 moveb %a2@(71),%d0 <== NOT EXECUTED 43bea: 1200 moveb %d0,%d1 <== NOT EXECUTED 43bec: b2aa 0020 cmpl %a2@(32),%d1 <== NOT EXECUTED 43bf0: 6f00 0154 blew 43d46 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 43bf4: 4a00 tstb %d0 <== NOT EXECUTED 43bf6: 6798 beqs 43b90 <== NOT EXECUTED 43bf8: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 43bfc: 6792 beqs 43b90 <== NOT EXECUTED then = rtems_clock_get_ticks_since_boot(); 43bfe: 4e94 jsr %a4@ <== NOT EXECUTED 43c00: 608c bras 43b8e <== NOT EXECUTED if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, 43c02: 2e0a movel %a2,%d7 <== NOT EXECUTED 43c04: 0687 0000 0049 addil #73,%d7 <== NOT EXECUTED 43c0a: 7801 moveq #1,%d4 <== NOT EXECUTED 43c0c: 49fa fd0c lea %pc@(4391a ),%a4 <== NOT EXECUTED /* * Wait for characters */ if ( wait ) { sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 43c10: 2c3c 0004 4f30 movel #282416,%d6 <== 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; 43c16: 2a2a 0074 movel %a2@(116),%d5 <== NOT EXECUTED 43c1a: 6000 00e2 braw 43cfe <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 43c1e: 2a2a 005c movel %a2@(92),%d5 <== NOT EXECUTED 43c22: 5285 addql #1,%d5 <== NOT EXECUTED 43c24: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 43c28: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 43c2c: 4c40 5001 remul %d0,%d1,%d5 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 43c30: 1030 1800 moveb %a0@(00000000,%d1:l),%d0 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 43c34: 2541 005c movel %d1,%a2@(92) <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; c = tty->rawInBuf.theBuf[newHead]; 43c38: 1d40 fffb moveb %d0,%fp@(-5) <== NOT EXECUTED tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 43c3c: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 43c40: 206a 0064 moveal %a2@(100),%a0 <== NOT EXECUTED 43c44: 43f0 0800 lea %a0@(00000000,%d0:l),%a1 <== NOT EXECUTED 43c48: 93c1 subal %d1,%a1 <== NOT EXECUTED 43c4a: 2a09 movel %a1,%d5 <== NOT EXECUTED 43c4c: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 43c50: 4c41 5000 remul %d1,%d0,%d5 <== NOT EXECUTED 43c54: 2d41 fffc movel %d1,%fp@(-4) <== NOT EXECUTED 43c58: b0aa 00bc cmpl %a2@(188),%d0 <== NOT EXECUTED 43c5c: 646a bccs 43cc8 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 43c5e: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43c62: 72fe moveq #-2,%d1 <== NOT EXECUTED 43c64: c081 andl %d1,%d0 <== NOT EXECUTED 43c66: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 43c6a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43c6e: 0280 0000 0202 andil #514,%d0 <== NOT EXECUTED 43c74: 0c80 0000 0202 cmpil #514,%d0 <== NOT EXECUTED 43c7a: 6626 bnes 43ca2 <== NOT EXECUTED 43c7c: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 43c80: 670a beqs 43c8c <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 43c82: 202a 00b8 movel %a2@(184),%d0 <== 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)) 43c86: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43c8a: 6716 beqs 43ca2 <== 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, 43c8c: 4878 0001 pea 1 <== NOT EXECUTED 43c90: 2f07 movel %d7,%sp@- <== NOT EXECUTED 43c92: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43c96: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 43c9a: 4e90 jsr %a0@ <== NOT EXECUTED 43c9c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43ca0: 6026 bras 43cc8 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 43ca2: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43ca6: 0800 0008 btst #8,%d0 <== NOT EXECUTED 43caa: 671c beqs 43cc8 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 43cac: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 43cb0: 7afb moveq #-5,%d5 <== NOT EXECUTED 43cb2: c285 andl %d5,%d1 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 43cb4: 206a 00b0 moveal %a2@(176),%a0 <== 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; 43cb8: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 43cbc: 4a88 tstl %a0 <== NOT EXECUTED 43cbe: 6708 beqs 43cc8 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 43cc0: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43cc4: 4e90 jsr %a0@ <== NOT EXECUTED 43cc6: 588f addql #4,%sp <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 43cc8: 7002 moveq #2,%d0 <== NOT EXECUTED 43cca: 4285 clrl %d5 <== NOT EXECUTED 43ccc: 1a2e fffb moveb %fp@(-5),%d5 <== NOT EXECUTED 43cd0: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 43cd4: 670e beqs 43ce4 <== NOT EXECUTED if (siproc (c, tty)) 43cd6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43cd8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 43cda: 4e94 jsr %a4@ <== NOT EXECUTED 43cdc: 508f addql #8,%sp <== NOT EXECUTED 43cde: 4a80 tstl %d0 <== NOT EXECUTED 43ce0: 6616 bnes 43cf8 <== NOT EXECUTED 43ce2: 6016 bras 43cfa <== NOT EXECUTED wait = 0; } else { siproc (c, tty); 43ce4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43ce6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 43ce8: 4e94 jsr %a4@ <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 43cea: 508f addql #8,%sp <== NOT EXECUTED 43cec: 4280 clrl %d0 <== NOT EXECUTED 43cee: 102a 0047 moveb %a2@(71),%d0 <== NOT EXECUTED 43cf2: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 43cf6: 6e02 bgts 43cfa <== NOT EXECUTED 43cf8: 4284 clrl %d4 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 43cfa: 2a2a 0070 movel %a2@(112),%d5 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 43cfe: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 43d02: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 43d06: b081 cmpl %d1,%d0 <== NOT EXECUTED 43d08: 6710 beqs 43d1a <== NOT EXECUTED 43d0a: 2039 0005 b784 movel 5b784 ,%d0 <== NOT EXECUTED 43d10: 5380 subql #1,%d0 <== NOT EXECUTED 43d12: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 43d16: 6e00 ff06 bgtw 43c1e <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 43d1a: 4a84 tstl %d4 <== NOT EXECUTED 43d1c: 6728 beqs 43d46 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 43d1e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 43d20: 2f2a 006c movel %a2@(108),%sp@- <== NOT EXECUTED 43d24: 2046 moveal %d6,%a0 <== NOT EXECUTED 43d26: 2f2a 0068 movel %a2@(104),%sp@- <== NOT EXECUTED 43d2a: 4e90 jsr %a0@ <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 43d2c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43d30: 4a80 tstl %d0 <== NOT EXECUTED 43d32: 67ca beqs 43cfe <== NOT EXECUTED 43d34: 6010 bras 43d46 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 43d36: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED count--; 43d3a: 5382 subql #1,%d2 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 43d3c: 1af0 0800 moveb %a0@(00000000,%d0:l),%a5@+ <== NOT EXECUTED 43d40: 5280 addql #1,%d0 <== NOT EXECUTED 43d42: 2540 0024 movel %d0,%a2@(36) <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 43d46: 4a82 tstl %d2 <== NOT EXECUTED 43d48: 670a beqs 43d54 <== NOT EXECUTED 43d4a: 202a 0024 movel %a2@(36),%d0 <== NOT EXECUTED 43d4e: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 43d52: 6de2 blts 43d36 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 43d54: 202b 0010 movel %a3@(16),%d0 <== NOT EXECUTED 43d58: 9082 subl %d2,%d0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 43d5a: 42aa 00e4 clrl %a2@(228) <== NOT EXECUTED } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 43d5e: 2740 0018 movel %d0,%a3@(24) <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 43d62: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 43d66: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return sc; 43d6c: 588f addql #4,%sp <== NOT EXECUTED } 43d6e: 2003 movel %d3,%d0 <== NOT EXECUTED 43d70: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 43d76: 4e5e unlk %fp <== NOT EXECUTED 43d78: 4e75 rts 00042eec : * 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) { 42eec: 4e56 fff4 linkw %fp,#-12 42ef0: 48d7 040c moveml %d2-%d3/%a2,%sp@ 42ef4: 246e 0008 moveal %fp@(8),%a2 int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 42ef8: 202a 00b8 movel %a2@(184),%d0 42efc: 0280 0000 0403 andil #1027,%d0 42f02: 0c80 0000 0401 cmpil #1025,%d0 42f08: 663c bnes 42f46 == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 42f0a: 4878 0001 pea 1 <== NOT EXECUTED 42f0e: 486a 004a pea %a2@(74) <== NOT EXECUTED 42f12: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 42f16: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 42f1a: 4e90 jsr %a0@ <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 42f1c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 42f22: 40c1 movew %sr,%d1 <== NOT EXECUTED 42f24: 8081 orl %d1,%d0 <== NOT EXECUTED 42f26: 46c0 movew %d0,%sr <== NOT EXECUTED tty->t_dqlen--; tty->flow_ctrl |= FL_ISNTXOF; 42f28: 7402 moveq #2,%d2 <== 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--; 42f2a: 53aa 0090 subql #1,%a2@(144) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 42f2e: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 42f32: 8082 orl %d2,%d0 <== NOT EXECUTED 42f34: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED rtems_interrupt_enable(level); 42f38: 46c1 movew %d1,%sr <== NOT EXECUTED 42f3a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42f3e: 143c 0001 moveb #1,%d2 <== NOT EXECUTED 42f42: 6000 0156 braw 4309a <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 42f46: 202a 00b8 movel %a2@(184),%d0 42f4a: 7203 moveq #3,%d1 42f4c: 7402 moveq #2,%d2 42f4e: c081 andl %d1,%d0 42f50: b480 cmpl %d0,%d2 42f52: 663a bnes 42f8e * 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, 42f54: 4878 0001 pea 1 <== NOT EXECUTED 42f58: 486a 0049 pea %a2@(73) <== NOT EXECUTED 42f5c: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 42f60: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 42f64: 4e90 jsr %a0@ <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 42f66: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 42f6c: 40c1 movew %sr,%d1 <== NOT EXECUTED 42f6e: 8081 orl %d1,%d0 <== NOT EXECUTED 42f70: 46c0 movew %d0,%sr <== NOT EXECUTED tty->t_dqlen--; tty->flow_ctrl &= ~FL_ISNTXOF; 42f72: 74fd moveq #-3,%d2 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 42f74: 53aa 0090 subql #1,%a2@(144) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 42f78: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 42f7c: c082 andl %d2,%d0 <== NOT EXECUTED 42f7e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED rtems_interrupt_enable(level); 42f82: 46c1 movew %d1,%sr <== NOT EXECUTED 42f84: 7401 moveq #1,%d2 <== NOT EXECUTED 42f86: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42f8a: 6000 010e braw 4309a <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 42f8e: 222a 0080 movel %a2@(128),%d1 42f92: 202a 0084 movel %a2@(132),%d0 42f96: b081 cmpl %d1,%d0 42f98: 6620 bnes 42fba /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 42f9a: 7002 moveq #2,%d0 <== NOT EXECUTED 42f9c: b0aa 0094 cmpl %a2@(148),%d0 <== NOT EXECUTED 42fa0: 6706 beqs 42fa8 <== NOT EXECUTED 42fa2: 4282 clrl %d2 <== NOT EXECUTED 42fa4: 6000 00f4 braw 4309a <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 42fa8: 2f2a 008c movel %a2@(140),%sp@- <== NOT EXECUTED 42fac: 4282 clrl %d2 <== NOT EXECUTED 42fae: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED 42fb4: 588f addql #4,%sp <== NOT EXECUTED 42fb6: 6000 00e2 braw 4309a <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 42fba: 203c 0000 0700 movel #1792,%d0 42fc0: 40c2 movew %sr,%d2 42fc2: 8082 orl %d2,%d0 42fc4: 46c0 movew %d0,%sr len = tty->t_dqlen; 42fc6: 222a 0090 movel %a2@(144),%d1 tty->t_dqlen = 0; 42fca: 42aa 0090 clrl %a2@(144) rtems_interrupt_enable(level); 42fce: 46c2 movew %d2,%sr newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 42fd0: 202a 0084 movel %a2@(132),%d0 42fd4: d280 addl %d0,%d1 42fd6: 202a 0088 movel %a2@(136),%d0 42fda: 4c40 1003 remul %d0,%d3,%d1 tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 42fde: 7202 moveq #2,%d1 len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 42fe0: 2543 0084 movel %d3,%a2@(132) if (tty->rawOutBufState == rob_wait) { 42fe4: b2aa 0094 cmpl %a2@(148),%d1 42fe8: 660c bnes 42ff6 /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 42fea: 2f2a 008c movel %a2@(140),%sp@- 42fee: 4eb9 0004 5034 jsr 45034 42ff4: 588f addql #4,%sp } if (newTail == tty->rawOutBuf.Head) { 42ff6: 202a 0080 movel %a2@(128),%d0 42ffa: b083 cmpl %d3,%d0 42ffc: 6622 bnes 43020 nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 42ffe: 206a 00d4 moveal %a2@(212),%a0 } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 43002: 42aa 0094 clrl %a2@(148) nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 43006: 4a88 tstl %a0 43008: 6606 bnes 43010 4300a: 4282 clrl %d2 4300c: 6000 0088 braw 43096 (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 43010: 2f2a 00d8 movel %a2@(216),%sp@- <== NOT EXECUTED 43014: 4282 clrl %d2 <== NOT EXECUTED 43016: 486a 0030 pea %a2@(48) <== NOT EXECUTED 4301a: 4e90 jsr %a0@ <== NOT EXECUTED 4301c: 508f addql #8,%sp <== NOT EXECUTED 4301e: 6076 bras 43096 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 43020: 202a 00b8 movel %a2@(184),%d0 43024: 0280 0000 0210 andil #528,%d0 4302a: 0c80 0000 0210 cmpil #528,%d0 43030: 6624 bnes 43056 == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 43032: 303c 0700 movew #1792,%d0 <== NOT EXECUTED 43036: 40c1 movew %sr,%d1 <== NOT EXECUTED 43038: 8081 orl %d1,%d0 <== NOT EXECUTED 4303a: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 4303c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43040: 7420 moveq #32,%d2 <== NOT EXECUTED 43042: 8082 orl %d2,%d0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 43044: 143c 0001 moveb #1,%d2 <== 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; 43048: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 4304c: 2542 0094 movel %d2,%a2@(148) <== NOT EXECUTED rtems_interrupt_enable(level); 43050: 46c1 movew %d1,%sr <== NOT EXECUTED 43052: 4202 clrb %d2 <== NOT EXECUTED 43054: 6040 bras 43096 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 43056: 202a 0080 movel %a2@(128),%d0 4305a: b083 cmpl %d3,%d0 4305c: 6406 bccs 43064 nToSend = tty->rawOutBuf.Size - newTail; 4305e: 242a 0088 movel %a2@(136),%d2 43062: 6004 bras 43068 else nToSend = tty->rawOutBuf.Head - newTail; 43064: 242a 0080 movel %a2@(128),%d2 /* 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)) { 43068: 202a 00b8 movel %a2@(184),%d0 * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 4306c: 9483 subl %d3,%d2 /* 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)) { 4306e: 0280 0000 0600 andil #1536,%d0 43074: 6702 beqs 43078 43076: 7401 moveq #1,%d2 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 43078: 2f02 movel %d2,%sp@- 4307a: 202a 007c movel %a2@(124),%d0 4307e: d083 addl %d3,%d0 /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 43080: 7201 moveq #1,%d1 (*tty->device.write)(tty->minor, 43082: 2f00 movel %d0,%sp@- 43084: 2f2a 0010 movel %a2@(16),%sp@- 43088: 206a 00a4 moveal %a2@(164),%a0 /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 4308c: 2541 0094 movel %d1,%a2@(148) (*tty->device.write)(tty->minor, 43090: 4e90 jsr %a0@ 43092: 4fef 000c lea %sp@(12),%sp &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 43096: 2543 0084 movel %d3,%a2@(132) } return nToSend; } 4309a: 2002 movel %d2,%d0 4309c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 430a2: 4e5e unlk %fp 430a4: 4e75 rts 00044642 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 44642: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 44646: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 4464a: 260e movel %fp,%d3 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 4464c: 240e movel %fp,%d2 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 4464e: 5d83 subql #6,%d3 <== NOT EXECUTED 44650: 4bf9 0004 4978 lea 44978 ,%a5 <== NOT EXECUTED RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { tty->rxTaskId = 0; rtems_task_delete(RTEMS_SELF); 44656: 49f9 0004 5208 lea 45208 ,%a4 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 4465c: 5382 subql #1,%d2 <== NOT EXECUTED 4465e: 47f9 0004 3106 lea 43106 ,%a3 <== NOT EXECUTED /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 44664: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 44668: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4466a: 42a7 clrl %sp@- <== NOT EXECUTED 4466c: 4878 0002 pea 2 <== NOT EXECUTED 44670: 4878 0003 pea 3 <== NOT EXECUTED 44674: 4e95 jsr %a5@ <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 44676: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4467a: 7001 moveq #1,%d0 <== NOT EXECUTED 4467c: c0ae fffa andl %fp@(-6),%d0 <== NOT EXECUTED 44680: 670c beqs 4468e <== NOT EXECUTED tty->rxTaskId = 0; 44682: 42aa 00c4 clrl %a2@(196) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 44686: 42a7 clrl %sp@- <== NOT EXECUTED 44688: 4e94 jsr %a4@ <== NOT EXECUTED 4468a: 588f addql #4,%sp <== NOT EXECUTED 4468c: 60da bras 44668 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 4468e: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44692: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 44696: 4e90 jsr %a0@ <== NOT EXECUTED if (c != EOF) { 44698: 588f addql #4,%sp <== NOT EXECUTED 4469a: 72ff moveq #-1,%d1 <== NOT EXECUTED 4469c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4469e: 67c8 beqs 44668 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 446a0: 4878 0001 pea 1 <== NOT EXECUTED c = tty->device.pollRead(tty->minor); if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; 446a4: 1d40 ffff moveb %d0,%fp@(-1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 446a8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 446aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 446ac: 4e93 jsr %a3@ <== NOT EXECUTED 446ae: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 446b2: 60b4 bras 44668 <== NOT EXECUTED 00042ed0 : * signal receive interrupt to rx daemon * NOTE: This routine runs in the context of the * device receive interrupt handler. */ void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { 42ed0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42ed4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 42ed8: 4878 0002 pea 2 <== NOT EXECUTED 42edc: 2f28 00c4 movel %a0@(196),%sp@- <== NOT EXECUTED 42ee0: 4eb9 0004 4adc jsr 44adc <== NOT EXECUTED 42ee6: 508f addql #8,%sp <== NOT EXECUTED } 42ee8: 4e5e unlk %fp <== NOT EXECUTED 42eea: 4e75 rts 000445da : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 445da: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 445de: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 445e2: 240e movel %fp,%d2 <== NOT EXECUTED 445e4: 5982 subql #4,%d2 <== NOT EXECUTED 445e6: 4bf9 0004 4978 lea 44978 ,%a5 <== NOT EXECUTED RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { tty->txTaskId = 0; rtems_task_delete(RTEMS_SELF); 445ec: 49f9 0004 5208 lea 45208 ,%a4 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 445f2: 47f9 0004 2eec lea 42eec ,%a3 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 445f8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 445fc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 445fe: 42a7 clrl %sp@- <== NOT EXECUTED 44600: 4878 0002 pea 2 <== NOT EXECUTED 44604: 4878 0003 pea 3 <== NOT EXECUTED 44608: 4e95 jsr %a5@ <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 4460a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4460e: 7001 moveq #1,%d0 <== NOT EXECUTED 44610: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED 44614: 670a beqs 44620 <== NOT EXECUTED tty->txTaskId = 0; 44616: 42aa 00c8 clrl %a2@(200) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 4461a: 42a7 clrl %sp@- <== NOT EXECUTED 4461c: 4e94 jsr %a4@ <== NOT EXECUTED 4461e: 601e bras 4463e <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 44620: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 44624: eb88 lsll #5,%d0 <== NOT EXECUTED 44626: 0680 0005 c598 addil #378264,%d0 <== NOT EXECUTED 4462c: 2240 moveal %d0,%a1 <== NOT EXECUTED 4462e: 2051 moveal %a1@,%a0 <== NOT EXECUTED 44630: 4a88 tstl %a0 <== NOT EXECUTED 44632: 6706 beqs 4463a <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 44634: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44636: 4e90 jsr %a0@ <== NOT EXECUTED 44638: 588f addql #4,%sp <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 4463a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4463c: 4e93 jsr %a3@ <== NOT EXECUTED 4463e: 588f addql #4,%sp <== NOT EXECUTED 44640: 60ba bras 445fc <== NOT EXECUTED 00043982 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 43982: 4e56 ffe8 linkw %fp,#-24 43986: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ 4398a: 246e 0008 moveal %fp@(8),%a2 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 4398e: 2052 moveal %a2@,%a0 43990: 2668 0034 moveal %a0@(52),%a3 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 43994: 42a7 clrl %sp@- 43996: 42a7 clrl %sp@- 43998: 2f2b 0018 movel %a3@(24),%sp@- 4399c: 4eb9 0004 4f30 jsr 44f30 if (sc != RTEMS_SUCCESSFUL) 439a2: 4fef 000c lea %sp@(12),%sp { 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); 439a6: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) 439a8: 6600 0084 bnew 43a2e return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 439ac: 202b 00cc movel %a3@(204),%d0 439b0: eb88 lsll #5,%d0 439b2: 0680 0005 c590 addil #378256,%d0 439b8: 2240 moveal %d0,%a1 439ba: 2051 moveal %a1@,%a0 439bc: 4a88 tstl %a0 439be: 6718 beqs 439d8 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 439c0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 439c2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 439c4: 4e90 jsr %a0@ <== NOT EXECUTED rtems_semaphore_release (tty->osem); 439c6: 2f2b 0018 movel %a3@(24),%sp@- <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 439ca: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 439cc: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return sc; 439d2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 439d6: 6056 bras 43a2e <== NOT EXECUTED } if (tty->termios.c_oflag & OPOST) { 439d8: 7001 moveq #1,%d0 439da: c0ab 0034 andl %a3@(52),%d0 439de: 6728 beqs 43a08 uint32_t count = args->count; 439e0: 262a 0010 movel %a2@(16),%d3 char *buffer = args->buffer; while (count--) oproc (*buffer++, tty); 439e4: 4bfa fa72 lea %pc@(43458 ),%a5 rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; 439e8: 286a 000c moveal %a2@(12),%a4 while (count--) 439ec: 600e bras 439fc oproc (*buffer++, tty); 439ee: 4280 clrl %d0 439f0: 101c moveb %a4@+,%d0 439f2: 5383 subql #1,%d3 439f4: 2f0b movel %a3,%sp@- 439f6: 2f00 movel %d0,%sp@- 439f8: 4e95 jsr %a5@ 439fa: 508f addql #8,%sp return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 439fc: 4a83 tstl %d3 439fe: 66ee bnes 439ee oproc (*buffer++, tty); args->bytes_moved = args->count; 43a00: 256a 0010 0018 movel %a2@(16),%a2@(24) 43a06: 601a bras 43a22 } else { rtems_termios_puts (args->buffer, args->count, tty); 43a08: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43a0a: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43a0e: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED 43a12: 4eb9 0004 335e jsr 4335e <== NOT EXECUTED args->bytes_moved = args->count; 43a18: 256a 0010 0018 movel %a2@(16),%a2@(24) <== NOT EXECUTED 43a1e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } rtems_semaphore_release (tty->osem); 43a22: 2f2b 0018 movel %a3@(24),%sp@- 43a26: 4eb9 0004 5034 jsr 45034 return sc; 43a2c: 588f addql #4,%sp } 43a2e: 2002 movel %d2,%d0 43a30: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 43a36: 4e5e unlk %fp 43a38: 4e75 rts 00050bc4 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 50bc4: 4e56 ffe8 linkw %fp,#-24 50bc8: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 50bcc: 282e 0008 movel %fp@(8),%d4 50bd0: 262e 000c movel %fp@(12),%d3 50bd4: 242e 0010 movel %fp@(16),%d2 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; 50bd8: 2679 0007 576e moveal 7576e <_Timer_server>,%a3 if ( !timer_server ) 50bde: 4a8b tstl %a3 50be0: 6606 bnes 50be8 50be2: 700e moveq #14,%d0 50be4: 6000 00a4 braw 50c8a return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 50be8: 4a39 0007 4edc tstb 74edc <_TOD_Is_set> 50bee: 6606 bnes 50bf6 50bf0: 700b moveq #11,%d0 <== NOT EXECUTED 50bf2: 6000 0096 braw 50c8a <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) 50bf6: 4a82 tstl %d2 50bf8: 6606 bnes 50c00 50bfa: 7009 moveq #9,%d0 50bfc: 6000 008c braw 50c8a return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 50c00: 2f03 movel %d3,%sp@- 50c02: 4eb9 0004 e040 jsr 4e040 <_TOD_Validate> 50c08: 588f addql #4,%sp 50c0a: 4a00 tstb %d0 50c0c: 677a beqs 50c88 return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 50c0e: 2f03 movel %d3,%sp@- 50c10: 4eb9 0004 dfa0 jsr 4dfa0 <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch() ) 50c16: 588f addql #4,%sp return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 50c18: 2600 movel %d0,%d3 if ( seconds <= _TOD_Seconds_since_epoch() ) 50c1a: b0b9 0007 4f5a cmpl 74f5a <_TOD_Now>,%d0 50c20: 6366 blss 50c88 50c22: 486e fffc pea %fp@(-4) 50c26: 2f04 movel %d4,%sp@- 50c28: 4879 0007 5734 pea 75734 <_Timer_Information> 50c2e: 4eb9 0005 3024 jsr 53024 <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 50c34: 4fef 000c lea %sp@(12),%sp 50c38: 2440 moveal %d0,%a2 50c3a: 4aae fffc tstl %fp@(-4) 50c3e: 6704 beqs 50c44 50c40: 7004 moveq #4,%d0 50c42: 6046 bras 50c8a case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 50c44: 486a 0010 pea %a2@(16) 50c48: 4eb9 0005 4c38 jsr 54c38 <_Watchdog_Remove> the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 50c4e: 256e 0014 0034 movel %fp@(20),%a2@(52) the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 50c54: 7003 moveq #3,%d0 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 50c56: 2544 0030 movel %d4,%a2@(48) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 50c5a: 96b9 0007 4f5a subl 74f5a <_TOD_Now>,%d3 the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 50c60: 2540 0038 movel %d0,%a2@(56) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 50c64: 2543 001c movel %d3,%a2@(28) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 50c68: 2542 002c movel %d2,%a2@(44) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 50c6c: 42aa 0018 clrl %a2@(24) (*timer_server->schedule_operation)( timer_server, the_timer ); 50c70: 2f0a movel %a2,%sp@- 50c72: 2f0b movel %a3,%sp@- 50c74: 206b 0004 moveal %a3@(4),%a0 50c78: 4e90 jsr %a0@ _Thread_Enable_dispatch(); 50c7a: 4eb9 0005 38aa jsr 538aa <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 50c80: 4fef 000c lea %sp@(12),%sp _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); _Thread_Enable_dispatch(); 50c84: 4280 clrl %d0 return RTEMS_SUCCESSFUL; 50c86: 6002 bras 50c8a 50c88: 7014 moveq #20,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50c8a: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 50c90: 4e5e unlk %fp 50c92: 4e75 rts 00041f34 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 41f34: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 41f38: 48d7 047c moveml %d2-%d6/%a2,%sp@ <== NOT EXECUTED 41f3c: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 41f40: 2a04 movel %d4,%d5 <== NOT EXECUTED 41f42: 0285 2000 0000 andil #536870912,%d5 <== NOT EXECUTED 41f48: 672e beqs 41f78 <== NOT EXECUTED { if (rtems_panic_in_progress++) 41f4a: 2039 0005 cd80 movel 5cd80 ,%d0 <== NOT EXECUTED 41f50: 2200 movel %d0,%d1 <== NOT EXECUTED 41f52: 5281 addql #1,%d1 <== NOT EXECUTED 41f54: 23c1 0005 cd80 movel %d1,5cd80 <== NOT EXECUTED 41f5a: 4a80 tstl %d0 <== NOT EXECUTED 41f5c: 670e beqs 41f6c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 41f5e: 2039 0005 cee4 movel 5cee4 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 41f64: 5280 addql #1,%d0 <== NOT EXECUTED 41f66: 23c0 0005 cee4 movel %d0,5cee4 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 41f6c: 7002 moveq #2,%d0 <== NOT EXECUTED 41f6e: b0b9 0005 cd80 cmpl 5cd80 ,%d0 <== NOT EXECUTED 41f74: 6d00 0138 bltw 420ae <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 41f78: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 41f7e: 2c04 movel %d4,%d6 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 41f80: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 41f84: 0286 8fff ffff andil #-1879048193,%d6 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 41f8a: 4eb9 0004 cfc8 jsr 4cfc8 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 41f90: 588f addql #4,%sp <== NOT EXECUTED 41f92: 0804 001e btst #30,%d4 <== NOT EXECUTED 41f96: 6604 bnes 41f9c <== NOT EXECUTED 41f98: 4282 clrl %d2 <== NOT EXECUTED 41f9a: 600a bras 41fa6 <== NOT EXECUTED local_errno = errno; 41f9c: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 41fa2: 2040 moveal %d0,%a0 <== NOT EXECUTED 41fa4: 2410 movel %a0@,%d2 <== 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); 41fa6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 41faa: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== NOT EXECUTED 41fb0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 41fb4: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 41fb8: 4eb9 0005 34f4 jsr 534f4 <== NOT EXECUTED if (status) 41fbe: 4fef 000c lea %sp@(12),%sp <== 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); 41fc2: 2600 movel %d0,%d3 <== NOT EXECUTED if (status) 41fc4: 4a86 tstl %d6 <== NOT EXECUTED 41fc6: 6726 beqs 41fee <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 41fc8: 2f06 movel %d6,%sp@- <== NOT EXECUTED 41fca: 4eb9 0004 1f1c jsr 41f1c <== NOT EXECUTED 41fd0: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== NOT EXECUTED 41fd6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41fd8: 4879 0005 a149 pea 5a149 <== NOT EXECUTED 41fde: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 41fe2: 4eb9 0004 d354 jsr 4d354 <== NOT EXECUTED 41fe8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 41fec: d680 addl %d0,%d3 <== NOT EXECUTED if (local_errno) 41fee: 4a82 tstl %d2 <== NOT EXECUTED 41ff0: 6754 beqs 42046 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 41ff2: 6f34 bles 42028 <== NOT EXECUTED 41ff4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 41ff6: 45f9 0004 dc08 lea 4dc08 ,%a2 <== NOT EXECUTED 41ffc: 4e92 jsr %a2@ <== NOT EXECUTED 41ffe: 588f addql #4,%sp <== NOT EXECUTED 42000: 2040 moveal %d0,%a0 <== NOT EXECUTED 42002: 4a10 tstb %a0@ <== NOT EXECUTED 42004: 6722 beqs 42028 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 42006: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42008: 4e92 jsr %a2@ <== NOT EXECUTED 4200a: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== NOT EXECUTED 42010: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42012: 4879 0005 a157 pea 5a157 <== NOT EXECUTED 42018: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4201c: 4eb9 0004 d354 jsr 4d354 <== NOT EXECUTED if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) 42022: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 42026: 601c bras 42044 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 42028: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4202a: 4879 0005 a164 pea 5a164 <== NOT EXECUTED 42030: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== NOT EXECUTED 42036: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4203a: 4eb9 0004 d354 jsr 4d354 <== NOT EXECUTED 42040: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42044: d680 addl %d0,%d3 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 42046: 4879 0005 a956 pea 5a956 <== NOT EXECUTED 4204c: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== NOT EXECUTED 42052: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 42056: 0284 3000 0000 andil #805306368,%d4 <== 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"); 4205c: 4eb9 0004 d354 jsr 4d354 <== NOT EXECUTED (void) fflush(stderr); 42062: 2079 0005 b860 moveal 5b860 <_impure_ptr>,%a0 <== 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"); 42068: 2c00 movel %d0,%d6 <== NOT EXECUTED (void) fflush(stderr); 4206a: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4206e: 4eb9 0004 cfc8 jsr 4cfc8 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 42074: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42078: 4a84 tstl %d4 <== NOT EXECUTED 4207a: 6606 bnes 42082 <== 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"); 4207c: 2006 movel %d6,%d0 <== NOT EXECUTED 4207e: d083 addl %d3,%d0 <== NOT EXECUTED 42080: 602e bras 420b0 <== NOT EXECUTED 42082: 41f9 0004 20d8 lea 420d8 ,%a0 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) { if (error_flag & RTEMS_ERROR_PANIC) 42088: 4a85 tstl %d5 <== NOT EXECUTED 4208a: 6712 beqs 4209e <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 4208c: 4879 0005 a178 pea 5a178 <== NOT EXECUTED 42092: 42a7 clrl %sp@- <== NOT EXECUTED 42094: 4e90 jsr %a0@ <== NOT EXECUTED _exit(local_errno); 42096: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42098: 4eb9 0004 2828 jsr 42828 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 4209e: 4879 0005 a18d pea 5a18d <== NOT EXECUTED 420a4: 42a7 clrl %sp@- <== NOT EXECUTED 420a6: 4e90 jsr %a0@ <== NOT EXECUTED abort(); 420a8: 4eb9 0004 cc3c jsr 4cc3c <== NOT EXECUTED 420ae: 4280 clrl %d0 <== NOT EXECUTED } } return chars_written; } 420b0: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 420b6: 4e5e unlk %fp <== NOT EXECUTED 420b8: 4e75 rts 00060c90 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 60c90: 4e56 ffe4 linkw %fp,#-28 60c94: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 60c98: 246e 0008 moveal %fp@(8),%a2 60c9c: 4283 clrl %d3 60c9e: 283c 7fff ffff movel #2147483647,%d4 60ca4: 4282 clrl %d2 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 60ca6: 47f9 0007 b0ac lea 7b0ac <__srget_r>,%a3 60cac: 202a 0004 movel %a2@(4),%d0 60cb0: 5380 subql #1,%d0 60cb2: 2540 0004 movel %d0,%a2@(4) 60cb6: 6c0e bges 60cc6 60cb8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 60cba: 2f39 0009 7bc4 movel 97bc4 <_impure_ptr>,%sp@- <== NOT EXECUTED 60cc0: 4e93 jsr %a3@ <== NOT EXECUTED 60cc2: 508f addql #8,%sp <== NOT EXECUTED 60cc4: 600a bras 60cd0 <== NOT EXECUTED 60cc6: 2052 moveal %a2@,%a0 60cc8: 4280 clrl %d0 60cca: 1010 moveb %a0@,%d0 60ccc: 5288 addql #1,%a0 60cce: 2488 movel %a0,%a2@ if (c == ':') 60cd0: 723a moveq #58,%d1 60cd2: b280 cmpl %d0,%d1 60cd4: 6750 beqs 60d26 break; if (sign == 0) { 60cd6: 4a83 tstl %d3 60cd8: 660e bnes 60ce8 if (c == '-') { 60cda: 7c2d moveq #45,%d6 60cdc: bc80 cmpl %d0,%d6 60cde: 6606 bnes 60ce6 sign = -1; limit++; 60ce0: 5284 addql #1,%d4 <== NOT EXECUTED 60ce2: 76ff moveq #-1,%d3 <== NOT EXECUTED continue; 60ce4: 60c6 bras 60cac <== NOT EXECUTED 60ce6: 7601 moveq #1,%d3 } sign = 1; } if (!isdigit(c)) 60ce8: 2079 0009 7bb8 moveal 97bb8 <__ctype_ptr__>,%a0 60cee: 1230 0801 moveb %a0@(00000001,%d0:l),%d1 60cf2: 49c1 extbl %d1 60cf4: 44c1 movew %d1,%ccr 60cf6: 6640 bnes 60d38 return 0; d = c - '0'; if ((i > (limit / 10)) 60cf8: 2204 movel %d4,%d1 60cfa: 7c0a moveq #10,%d6 60cfc: 4c46 1005 remul %d6,%d5,%d1 60d00: 4c46 1001 remul %d6,%d1,%d1 60d04: b282 cmpl %d2,%d1 60d06: 6530 bcss 60d38 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 60d08: 0680 ffff ffd0 addil #-48,%d0 if ((i > (limit / 10)) 60d0e: b282 cmpl %d2,%d1 60d10: 6604 bnes 60d16 60d12: ba80 cmpl %d0,%d5 <== NOT EXECUTED 60d14: 6522 bcss 60d38 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 60d16: 2202 movel %d2,%d1 60d18: e789 lsll #3,%d1 60d1a: 2241 moveal %d1,%a1 60d1c: 41f1 2a00 lea %a1@(00000000,%d2:l:2),%a0 60d20: 2400 movel %d0,%d2 60d22: d488 addl %a0,%d2 60d24: 6086 bras 60cac } if (sign == 0) 60d26: 4a83 tstl %d3 60d28: 670e beqs 60d38 return 0; *val = i * sign; 60d2a: 4c02 3800 mulsl %d2,%d3 60d2e: 7001 moveq #1,%d0 60d30: 206e 000c moveal %fp@(12),%a0 60d34: 2083 movel %d3,%a0@ return 1; 60d36: 6002 bras 60d3a 60d38: 4280 clrl %d0 <== NOT EXECUTED } 60d3a: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 60d40: 4e5e unlk %fp 60d42: 4e75 rts 00060d44 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 60d44: 4e56 ffec linkw %fp,#-20 int c; *name = *bufp; 60d48: 206e 000c moveal %fp@(12),%a0 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 60d4c: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ 60d50: 246e 0010 moveal %fp@(16),%a2 int c; *name = *bufp; for (;;) { c = getc(fp); 60d54: 4bf9 0007 b0ac lea 7b0ac <__srget_r>,%a5 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 60d5a: 286e 0008 moveal %fp@(8),%a4 60d5e: 266e 0014 moveal %fp@(20),%a3 60d62: 242e 0018 movel %fp@(24),%d2 int c; *name = *bufp; 60d66: 2092 movel %a2@,%a0@ for (;;) { c = getc(fp); 60d68: 202c 0004 movel %a4@(4),%d0 60d6c: 5380 subql #1,%d0 60d6e: 2940 0004 movel %d0,%a4@(4) 60d72: 6c0e bges 60d82 60d74: 2f0c movel %a4,%sp@- 60d76: 2f39 0009 7bc4 movel 97bc4 <_impure_ptr>,%sp@- 60d7c: 4e95 jsr %a5@ 60d7e: 508f addql #8,%sp 60d80: 600a bras 60d8c 60d82: 2054 moveal %a4@,%a0 60d84: 4280 clrl %d0 60d86: 1010 moveb %a0@,%d0 60d88: 5288 addql #1,%a0 60d8a: 2888 movel %a0,%a4@ if (c == ':') { 60d8c: 723a moveq #58,%d1 60d8e: b280 cmpl %d0,%d1 60d90: 6606 bnes 60d98 if (nlFlag) 60d92: 4a82 tstl %d2 60d94: 6724 beqs 60dba 60d96: 602e bras 60dc6 <== NOT EXECUTED return 0; break; } if (c == '\n') { 60d98: 720a moveq #10,%d1 60d9a: b280 cmpl %d0,%d1 60d9c: 6606 bnes 60da4 if (!nlFlag) 60d9e: 4a82 tstl %d2 60da0: 6618 bnes 60dba 60da2: 6022 bras 60dc6 <== NOT EXECUTED return 0; break; } if (c == EOF) 60da4: 72ff moveq #-1,%d1 60da6: b280 cmpl %d0,%d1 60da8: 671c beqs 60dc6 return 0; if (*nleft < 2) 60daa: 7201 moveq #1,%d1 60dac: b293 cmpl %a3@,%d1 60dae: 6416 bccs 60dc6 return 0; **bufp = c; 60db0: 2052 moveal %a2@,%a0 60db2: 1080 moveb %d0,%a0@ ++(*bufp); 60db4: 5292 addql #1,%a2@ --(*nleft); 60db6: 5393 subql #1,%a3@ } 60db8: 60ae bras 60d68 **bufp = '\0'; 60dba: 2052 moveal %a2@,%a0 ++(*bufp); --(*nleft); 60dbc: 7001 moveq #1,%d0 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 60dbe: 4210 clrb %a0@ ++(*bufp); 60dc0: 5292 addql #1,%a2@ --(*nleft); 60dc2: 5393 subql #1,%a3@ return 1; 60dc4: 6002 bras 60dc8 60dc6: 4280 clrl %d0 <== NOT EXECUTED } 60dc8: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 60dce: 4e5e unlk %fp 60dd0: 4e75 rts 00060dd2 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 60dd2: 4e56 ffe4 linkw %fp,#-28 60dd6: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60dda: 42a7 clrl %sp@- 60ddc: 280e movel %fp,%d4 60dde: 0684 0000 0014 addil #20,%d4 60de4: 260e movel %fp,%d3 60de6: 0683 0000 0010 addil #16,%d3 60dec: 47fa ff56 lea %pc@(60d44 ),%a3 60df0: 2f04 movel %d4,%sp@- FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 60df2: 246e 000c moveal %fp@(12),%a2 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60df6: 2f03 movel %d3,%sp@- FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 60df8: 242e 0008 movel %fp@(8),%d2 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60dfc: 2f0a movel %a2,%sp@- 60dfe: 2f02 movel %d2,%sp@- 60e00: 4e93 jsr %a3@ 60e02: 4fef 0014 lea %sp@(20),%sp 60e06: 4a80 tstl %d0 60e08: 6700 00c2 beqw 60ecc || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 60e0c: 42a7 clrl %sp@- 60e0e: 2f04 movel %d4,%sp@- 60e10: 2f03 movel %d3,%sp@- 60e12: 486a 0004 pea %a2@(4) 60e16: 2f02 movel %d2,%sp@- 60e18: 4e93 jsr %a3@ { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60e1a: 4fef 0014 lea %sp@(20),%sp 60e1e: 4a80 tstl %d0 60e20: 6700 00aa beqw 60ecc || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 60e24: 486e fffc pea %fp@(-4) 60e28: 2f02 movel %d2,%sp@- 60e2a: 4eba fe64 jsr %pc@(60c90 ) { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60e2e: 508f addql #8,%sp 60e30: 4a80 tstl %d0 60e32: 6700 0098 beqw 60ecc || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 60e36: 4878 0001 pea 1 60e3a: 2f04 movel %d4,%sp@- 60e3c: 2f03 movel %d3,%sp@- 60e3e: 486e fff8 pea %fp@(-8) 60e42: 2f02 movel %d2,%sp@- 60e44: 4e93 jsr %a3@ { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60e46: 4fef 0014 lea %sp@(20),%sp 60e4a: 4a80 tstl %d0 60e4c: 677e beqs 60ecc grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e4e: 226e fff8 moveal %fp@(-8),%a1 60e52: 7001 moveq #1,%d0 60e54: 2049 moveal %a1,%a0 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; 60e56: 356e fffe 0008 movew %fp@(-2),%a2@(8) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e5c: 6008 bras 60e66 if(*cp == ',') 60e5e: 722c moveq #44,%d1 60e60: b282 cmpl %d2,%d1 60e62: 6602 bnes 60e66 memcount++; 60e64: 5280 addql #1,%d0 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e66: 1210 moveb %a0@,%d1 60e68: 5288 addql #1,%a0 if(*cp == ',') 60e6a: 1401 moveb %d1,%d2 60e6c: 49c2 extbl %d2 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e6e: 4a01 tstb %d1 60e70: 66ec bnes 60e5e } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 60e72: e588 lsll #2,%d0 60e74: 0680 0000 0013 addil #19,%d0 60e7a: b0ae 0014 cmpl %fp@(20),%d0 60e7e: 624c bhis 60ecc return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 60e80: 202e 0010 movel %fp@(16),%d0 60e84: 74f0 moveq #-16,%d2 60e86: 0680 0000 000f addil #15,%d0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e8c: 7201 moveq #1,%d1 /* * 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); 60e8e: c082 andl %d2,%d0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 60e90: 2040 moveal %d0,%a0 60e92: 2089 movel %a1,%a0@ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e94: 206e fff8 moveal %fp@(-8),%a0 /* * 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); 60e98: 2540 000a movel %d0,%a2@(10) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60e9c: 6018 bras 60eb6 if(*cp == ',') { 60e9e: 702c moveq #44,%d0 60ea0: b082 cmpl %d2,%d0 60ea2: 6610 bnes 60eb4 *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; 60ea4: 2408 movel %a0,%d2 <== NOT EXECUTED 60ea6: 5282 addql #1,%d2 <== NOT EXECUTED * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; 60ea8: 4210 clrb %a0@ <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 60eaa: 226a 000a moveal %a2@(10),%a1 <== NOT EXECUTED 60eae: 2382 1c00 movel %d2,%a1@(00000000,%d1:l:4) <== NOT EXECUTED 60eb2: 5281 addql #1,%d1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60eb4: 5288 addql #1,%a0 60eb6: 1010 moveb %a0@,%d0 if(*cp == ',') { 60eb8: 1400 moveb %d0,%d2 60eba: 49c2 extbl %d2 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60ebc: 4a00 tstb %d0 60ebe: 66de bnes 60e9e if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 60ec0: 206a 000a moveal %a2@(10),%a0 60ec4: 7001 moveq #1,%d0 60ec6: 42b0 1c00 clrl %a0@(00000000,%d1:l:4) return 1; 60eca: 6002 bras 60ece 60ecc: 4280 clrl %d0 <== NOT EXECUTED } 60ece: 4cee 0c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a3 60ed4: 4e5e unlk %fp 60ed6: 4e75 rts 00060f10 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60f10: 4e56 ffe0 linkw %fp,#-32 60f14: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f18: 42a7 clrl %sp@- 60f1a: 280e movel %fp,%d4 60f1c: 0684 0000 0014 addil #20,%d4 60f22: 260e movel %fp,%d3 60f24: 0683 0000 0010 addil #16,%d3 60f2a: 47fa fe18 lea %pc@(60d44 ),%a3 60f2e: 2f04 movel %d4,%sp@- FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60f30: 246e 000c moveal %fp@(12),%a2 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f34: 2f03 movel %d3,%sp@- FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60f36: 242e 0008 movel %fp@(8),%d2 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f3a: 2f0a movel %a2,%sp@- 60f3c: 2f02 movel %d2,%sp@- 60f3e: 4e93 jsr %a3@ 60f40: 4fef 0014 lea %sp@(20),%sp 60f44: 4a80 tstl %d0 60f46: 6700 00a4 beqw 60fec || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 60f4a: 42a7 clrl %sp@- 60f4c: 2f04 movel %d4,%sp@- 60f4e: 2f03 movel %d3,%sp@- 60f50: 486a 0004 pea %a2@(4) 60f54: 2f02 movel %d2,%sp@- 60f56: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f58: 4fef 0014 lea %sp@(20),%sp 60f5c: 4a80 tstl %d0 60f5e: 6700 008c beqw 60fec || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 60f62: 486e fffc pea %fp@(-4) 60f66: 49fa fd28 lea %pc@(60c90 ),%a4 60f6a: 2f02 movel %d2,%sp@- 60f6c: 4e94 jsr %a4@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f6e: 508f addql #8,%sp 60f70: 4a80 tstl %d0 60f72: 6778 beqs 60fec || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 60f74: 486e fff8 pea %fp@(-8) 60f78: 2f02 movel %d2,%sp@- 60f7a: 4e94 jsr %a4@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f7c: 508f addql #8,%sp 60f7e: 4a80 tstl %d0 60f80: 676a beqs 60fec || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 60f82: 42a7 clrl %sp@- 60f84: 2f04 movel %d4,%sp@- 60f86: 2f03 movel %d3,%sp@- 60f88: 486a 000c pea %a2@(12) 60f8c: 2f02 movel %d2,%sp@- 60f8e: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60f90: 4fef 0014 lea %sp@(20),%sp 60f94: 4a80 tstl %d0 60f96: 6754 beqs 60fec || !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) 60f98: 42a7 clrl %sp@- 60f9a: 2f04 movel %d4,%sp@- 60f9c: 2f03 movel %d3,%sp@- 60f9e: 486a 0010 pea %a2@(16) 60fa2: 2f02 movel %d2,%sp@- 60fa4: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60fa6: 4fef 0014 lea %sp@(20),%sp 60faa: 4a80 tstl %d0 60fac: 673e beqs 60fec || !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) 60fae: 42a7 clrl %sp@- 60fb0: 2f04 movel %d4,%sp@- 60fb2: 2f03 movel %d3,%sp@- 60fb4: 486a 0014 pea %a2@(20) 60fb8: 2f02 movel %d2,%sp@- 60fba: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60fbc: 4fef 0014 lea %sp@(20),%sp 60fc0: 4a80 tstl %d0 60fc2: 6728 beqs 60fec || !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)) 60fc4: 4878 0001 pea 1 60fc8: 2f04 movel %d4,%sp@- 60fca: 2f03 movel %d3,%sp@- 60fcc: 486a 0018 pea %a2@(24) 60fd0: 2f02 movel %d2,%sp@- 60fd2: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60fd4: 4fef 0014 lea %sp@(20),%sp 60fd8: 4a80 tstl %d0 60fda: 6710 beqs 60fec || !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; 60fdc: 7001 moveq #1,%d0 60fde: 356e fffa 000a movew %fp@(-6),%a2@(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; 60fe4: 356e fffe 0008 movew %fp@(-2),%a2@(8) pwd->pw_gid = pwgid; return 1; 60fea: 6002 bras 60fee 60fec: 4280 clrl %d0 <== NOT EXECUTED } 60fee: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 60ff4: 4e5e unlk %fp 60ff6: 4e75 rts 00060c32 : gid_t gid ) { _POSIX_types_Gid = gid; return 0; } 60c32: 4280 clrl %d0 <== NOT EXECUTED */ int setgid( gid_t gid ) { 60c34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Gid = gid; 60c38: 2079 0009 73bc moveal 973bc ,%a0 <== NOT EXECUTED 60c3e: 316e 000a 0034 movew %fp@(10),%a0@(52) <== NOT EXECUTED return 0; } 60c44: 4e5e unlk %fp <== NOT EXECUTED 60c46: 4e75 rts 00061110 : return NULL; return &grent; } void setgrent(void) { 61110: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 61114: 4eb9 0006 1030 jsr 61030 <== NOT EXECUTED if (group_fp != NULL) 6111a: 2039 0009 b4ee movel 9b4ee ,%d0 <== NOT EXECUTED 61120: 670a beqs 6112c <== NOT EXECUTED fclose(group_fp); 61122: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61124: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED 6112a: 588f addql #4,%sp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 6112c: 4879 0008 f907 pea 8f907 <== NOT EXECUTED 61132: 4879 0008 e015 pea 8e015 <_rodata_start+0x845> <== NOT EXECUTED 61138: 4eb9 0007 6b94 jsr 76b94 <== NOT EXECUTED 6113e: 508f addql #8,%sp <== NOT EXECUTED } 61140: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); 61142: 23c0 0009 b4ee movel %d0,9b4ee <== NOT EXECUTED } 61148: 4e75 rts 000612c0 : return NULL; return &pwent; } void setpwent(void) { 612c0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 612c4: 4eb9 0006 1030 jsr 61030 <== NOT EXECUTED if (passwd_fp != NULL) 612ca: 2039 0009 b406 movel 9b406 ,%d0 <== NOT EXECUTED 612d0: 670a beqs 612dc <== NOT EXECUTED fclose(passwd_fp); 612d2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 612d4: 4eb9 0007 632e jsr 7632e <== NOT EXECUTED 612da: 588f addql #4,%sp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 612dc: 4879 0008 f907 pea 8f907 <== NOT EXECUTED 612e2: 4879 0008 dfd0 pea 8dfd0 <_rodata_start+0x800> <== NOT EXECUTED 612e8: 4eb9 0007 6b94 jsr 76b94 <== NOT EXECUTED 612ee: 508f addql #8,%sp <== NOT EXECUTED } 612f0: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); 612f2: 23c0 0009 b406 movel %d0,9b406 <== NOT EXECUTED } 612f8: 4e75 rts 0004675e : uid_t uid ) { _POSIX_types_Uid = uid; return 0; } 4675e: 4280 clrl %d0 <== NOT EXECUTED */ int setuid( uid_t uid ) { 46760: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Uid = uid; 46764: 2079 0009 73bc moveal 973bc ,%a0 <== NOT EXECUTED 4676a: 316e 000a 0032 movew %fp@(10),%a0@(50) <== NOT EXECUTED return 0; } 46770: 4e5e unlk %fp <== NOT EXECUTED 46772: 4e75 rts 0004391a : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 4391a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4391e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43920: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 43924: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 43928: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4392a: 4282 clrl %d2 <== NOT EXECUTED 4392c: 142e 000b moveb %fp@(11),%d2 <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 43930: 0280 0000 0e78 andil #3704,%d0 <== NOT EXECUTED 43936: 6734 beqs 4396c <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 43938: 42a7 clrl %sp@- <== NOT EXECUTED 4393a: 42a7 clrl %sp@- <== NOT EXECUTED 4393c: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 43940: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED i = iproc (c, tty); 43946: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43948: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4394a: 4eba fe72 jsr %pc@(437be ) <== NOT EXECUTED rtems_semaphore_release (tty->osem); 4394e: 2f2a 0018 movel %a2@(24),%sp@- <== 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); i = iproc (c, tty); 43952: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 43954: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 4395a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4395e: 2002 movel %d2,%d0 <== 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); i = iproc (c, tty); rtems_semaphore_release (tty->osem); 43960: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 43964: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 43968: 4e5e unlk %fp <== NOT EXECUTED 4396a: 4e75 rts <== 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); 4396c: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED } return i; } 43970: 246e fffc moveal %fp@(-4),%a2 <== 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); 43974: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return i; } 43978: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4397c: 4e5e unlk %fp <== 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); 4397e: 6000 fe3e braw 437be <== NOT EXECUTED 00047a10 : int _STAT_NAME( const char *path, struct stat *buf ) { 47a10: 4e56 ffe0 linkw %fp,#-32 47a14: 48d7 001c moveml %d2-%d4,%sp@ 47a18: 282e 0008 movel %fp@(8),%d4 47a1c: 242e 000c movel %fp@(12),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 47a20: 6612 bnes 47a34 rtems_set_errno_and_return_minus_one( EFAULT ); 47a22: 4eb9 0007 61f0 jsr 761f0 <__errno> 47a28: 760e moveq #14,%d3 47a2a: 74ff moveq #-1,%d2 47a2c: 2040 moveal %d0,%a0 47a2e: 2083 movel %d3,%a0@ 47a30: 6000 009a braw 47acc status = rtems_filesystem_evaluate_path( path, strlen( path ), 47a34: 2f04 movel %d4,%sp@- 47a36: 260e movel %fp,%d3 47a38: 0683 ffff ffec addil #-20,%d3 47a3e: 4eb9 0007 c298 jsr 7c298 47a44: 7201 moveq #1,%d1 47a46: 2e81 movel %d1,%sp@ 47a48: 2f03 movel %d3,%sp@- 47a4a: 42a7 clrl %sp@- 47a4c: 2f00 movel %d0,%sp@- 47a4e: 2f04 movel %d4,%sp@- 47a50: 4eb9 0004 6576 jsr 46576 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 47a56: 4fef 0014 lea %sp@(20),%sp 47a5a: 4a80 tstl %d0 47a5c: 6704 beqs 47a62 47a5e: 74ff moveq #-1,%d2 47a60: 606a bras 47acc return -1; if ( !loc.handlers->fstat_h ){ 47a62: 206e fff4 moveal %fp@(-12),%a0 47a66: 4aa8 0018 tstl %a0@(24) 47a6a: 6628 bnes 47a94 rtems_filesystem_freenode( &loc ); 47a6c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 47a70: 4a88 tstl %a0 <== NOT EXECUTED 47a72: 670e beqs 47a82 <== NOT EXECUTED 47a74: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 47a78: 4a88 tstl %a0 <== NOT EXECUTED 47a7a: 6706 beqs 47a82 <== NOT EXECUTED 47a7c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47a7e: 4e90 jsr %a0@ <== NOT EXECUTED 47a80: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 47a82: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 47a88: 74ff moveq #-1,%d2 <== NOT EXECUTED 47a8a: 2040 moveal %d0,%a0 <== NOT EXECUTED 47a8c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 47a92: 6038 bras 47acc <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 47a94: 4878 0046 pea 46 47a98: 42a7 clrl %sp@- 47a9a: 2f02 movel %d2,%sp@- 47a9c: 4eb9 0007 9394 jsr 79394 status = (*loc.handlers->fstat_h)( &loc, buf ); 47aa2: 206e fff4 moveal %fp@(-12),%a0 47aa6: 2f02 movel %d2,%sp@- 47aa8: 2f03 movel %d3,%sp@- 47aaa: 2068 0018 moveal %a0@(24),%a0 47aae: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 47ab0: 206e fff8 moveal %fp@(-8),%a0 * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 47ab4: 2400 movel %d0,%d2 rtems_filesystem_freenode( &loc ); 47ab6: 4fef 0014 lea %sp@(20),%sp 47aba: 4a88 tstl %a0 47abc: 670e beqs 47acc 47abe: 2068 001c moveal %a0@(28),%a0 47ac2: 4a88 tstl %a0 47ac4: 6706 beqs 47acc 47ac6: 2f03 movel %d3,%sp@- 47ac8: 4e90 jsr %a0@ 47aca: 588f addql #4,%sp return status; } 47acc: 2002 movel %d2,%d0 47ace: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 47ad4: 4e5e unlk %fp 47ad6: 4e75 rts 00061da4 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 61da4: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 61da8: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 61dac: 246e 0008 moveal %fp@(8),%a2 <== 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 ) ) 61db0: 260e movel %fp,%d3 <== NOT EXECUTED 61db2: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED 61db8: 2f0a movel %a2,%sp@- <== NOT EXECUTED */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 61dba: 242e 000c movel %fp@(12),%d2 <== 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 ) ) 61dbe: 4eb9 0007 c298 jsr 7c298 <== NOT EXECUTED 61dc4: 7201 moveq #1,%d1 <== NOT EXECUTED 61dc6: 2e81 movel %d1,%sp@ <== NOT EXECUTED 61dc8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61dca: 42a7 clrl %sp@- <== NOT EXECUTED 61dcc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61dce: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61dd0: 4eb9 0004 6576 jsr 46576 <== NOT EXECUTED 61dd6: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61dda: 4a80 tstl %d0 <== NOT EXECUTED 61ddc: 6704 beqs 61de2 <== NOT EXECUTED 61dde: 74ff moveq #-1,%d2 <== NOT EXECUTED 61de0: 605a bras 61e3c <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 61de2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 61de6: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 61dea: 4aa8 0044 tstl %a0@(68) <== NOT EXECUTED 61dee: 6612 bnes 61e02 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 61df0: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 61df6: 74ff moveq #-1,%d2 <== NOT EXECUTED 61df8: 2040 moveal %d0,%a0 <== NOT EXECUTED 61dfa: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61e00: 603a bras 61e3c <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 61e02: 4878 0038 pea 38 <== NOT EXECUTED 61e06: 42a7 clrl %sp@- <== NOT EXECUTED 61e08: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61e0a: 4eb9 0007 9394 jsr 79394 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 61e10: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 61e14: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61e16: 486a 001c pea %a2@(28) <== NOT EXECUTED 61e1a: 2068 0044 moveal %a0@(68),%a0 <== NOT EXECUTED 61e1e: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61e20: 206e fff8 moveal %fp@(-8),%a0 <== 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 ); 61e24: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61e26: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61e2a: 4a88 tstl %a0 <== NOT EXECUTED 61e2c: 670e beqs 61e3c <== NOT EXECUTED 61e2e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61e32: 4a88 tstl %a0 <== NOT EXECUTED 61e34: 6706 beqs 61e3c <== NOT EXECUTED 61e36: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61e38: 4e90 jsr %a0@ <== NOT EXECUTED 61e3a: 588f addql #4,%sp <== NOT EXECUTED return result; } 61e3c: 2002 movel %d2,%d0 <== NOT EXECUTED 61e3e: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 <== NOT EXECUTED 61e44: 4e5e unlk %fp <== NOT EXECUTED 61e46: 4e75 rts 00061e48 : int symlink( const char *actualpath, const char *sympath ) { 61e48: 4e56 ffdc linkw %fp,#-36 61e4c: 48d7 040c moveml %d2-%d3/%a2,%sp@ 61e50: 246e 000c moveal %fp@(12),%a2 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 61e54: 742f moveq #47,%d2 61e56: 1012 moveb %a2@,%d0 61e58: 1200 moveb %d0,%d1 61e5a: 49c1 extbl %d1 61e5c: b481 cmpl %d1,%d2 61e5e: 670c beqs 61e6c 61e60: 143c 005c moveb #92,%d2 61e64: b481 cmpl %d1,%d2 61e66: 6704 beqs 61e6c 61e68: 4a00 tstb %d0 61e6a: 6622 bnes 61e8e 61e6c: 4878 0014 pea 14 61e70: 2079 0009 73bc moveal 973bc ,%a0 61e76: 41e8 0018 lea %a0@(24),%a0 61e7a: 2f08 movel %a0,%sp@- 61e7c: 486e ffe8 pea %fp@(-24) 61e80: 4eb9 0007 9228 jsr 79228 61e86: 4fef 000c lea %sp@(12),%sp 61e8a: 7001 moveq #1,%d0 61e8c: 601e bras 61eac 61e8e: 4878 0014 pea 14 61e92: 2039 0009 73bc movel 973bc ,%d0 61e98: 5880 addql #4,%d0 61e9a: 2f00 movel %d0,%sp@- 61e9c: 486e ffe8 pea %fp@(-24) 61ea0: 4eb9 0007 9228 jsr 79228 61ea6: 4fef 000c lea %sp@(12),%sp 61eaa: 4280 clrl %d0 if ( !loc.ops->evalformake_h ) { 61eac: 206e fff4 moveal %fp@(-12),%a0 61eb0: 2068 0004 moveal %a0@(4),%a0 61eb4: 4a88 tstl %a0 61eb6: 673a beqs 61ef2 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 61eb8: 486e fffc pea %fp@(-4) 61ebc: 260e movel %fp,%d3 61ebe: 0683 ffff ffe8 addil #-24,%d3 61ec4: 2f03 movel %d3,%sp@- 61ec6: 4872 0800 pea %a2@(00000000,%d0:l) 61eca: 4e90 jsr %a0@ if ( result != 0 ) 61ecc: 4fef 000c lea %sp@(12),%sp 61ed0: 4a80 tstl %d0 61ed2: 6704 beqs 61ed8 61ed4: 74ff moveq #-1,%d2 61ed6: 6054 bras 61f2c return -1; if ( !loc.ops->symlink_h ) { 61ed8: 226e fff4 moveal %fp@(-12),%a1 61edc: 2069 0038 moveal %a1@(56),%a0 61ee0: 4a88 tstl %a0 61ee2: 6620 bnes 61f04 rtems_filesystem_freenode( &loc ); 61ee4: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61ee8: 4a88 tstl %a0 <== NOT EXECUTED 61eea: 6706 beqs 61ef2 <== NOT EXECUTED 61eec: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61eee: 4e90 jsr %a0@ <== NOT EXECUTED 61ef0: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61ef2: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 61ef8: 74ff moveq #-1,%d2 <== NOT EXECUTED 61efa: 2040 moveal %d0,%a0 <== NOT EXECUTED 61efc: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61f02: 6028 bras 61f2c <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 61f04: 2f2e fffc movel %fp@(-4),%sp@- 61f08: 2f2e 0008 movel %fp@(8),%sp@- 61f0c: 2f03 movel %d3,%sp@- 61f0e: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 61f10: 206e fff4 moveal %fp@(-12),%a0 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); 61f14: 2400 movel %d0,%d2 rtems_filesystem_freenode( &loc ); 61f16: 4fef 000c lea %sp@(12),%sp 61f1a: 4a88 tstl %a0 61f1c: 670e beqs 61f2c 61f1e: 2068 001c moveal %a0@(28),%a0 61f22: 4a88 tstl %a0 61f24: 6706 beqs 61f2c 61f26: 2f03 movel %d3,%sp@- 61f28: 4e90 jsr %a0@ 61f2a: 588f addql #4,%sp return result; } 61f2c: 2002 movel %d2,%d0 61f2e: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 61f34: 4e5e unlk %fp 61f36: 4e75 rts 0004f29c : int tcsetattr( int fd, int opt, struct termios *tp ) { 4f29c: 4e56 0000 linkw %fp,#0 4f2a0: 202e 000c movel %fp@(12),%d0 4f2a4: 2f03 movel %d3,%sp@- 4f2a6: 262e 0010 movel %fp@(16),%d3 4f2aa: 2f02 movel %d2,%sp@- 4f2ac: 242e 0008 movel %fp@(8),%d2 switch (opt) { 4f2b0: 4a80 tstl %d0 4f2b2: 672c beqs 4f2e0 4f2b4: 7201 moveq #1,%d1 <== NOT EXECUTED 4f2b6: b280 cmpl %d0,%d1 <== NOT EXECUTED 4f2b8: 6710 beqs 4f2ca <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 4f2ba: 4eb9 0005 3d14 jsr 53d14 <__errno> <== NOT EXECUTED 4f2c0: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f2c2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4f2c8: 6034 bras 4f2fe <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 4f2ca: 42a7 clrl %sp@- <== NOT EXECUTED 4f2cc: 4878 0003 pea 3 <== NOT EXECUTED 4f2d0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f2d2: 4eb9 0005 27c8 jsr 527c8 <== NOT EXECUTED 4f2d8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4f2dc: 4a80 tstl %d0 <== NOT EXECUTED 4f2de: 6d1e blts 4f2fe <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 4f2e0: 2d43 0010 movel %d3,%fp@(16) 4f2e4: 7002 moveq #2,%d0 4f2e6: 2d42 0008 movel %d2,%fp@(8) } } 4f2ea: 242e fff8 movel %fp@(-8),%d2 4f2ee: 262e fffc movel %fp@(-4),%d3 return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 4f2f2: 2d40 000c movel %d0,%fp@(12) } } 4f2f6: 4e5e unlk %fp return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 4f2f8: 4ef9 0005 27c8 jmp 527c8 } } 4f2fe: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4f302: 70ff moveq #-1,%d0 <== NOT EXECUTED 4f304: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4f308: 4e5e unlk %fp <== NOT EXECUTED 4f30a: 4e75 rts 00049ba8 : useconds_t ualarm( useconds_t useconds, useconds_t interval ) { 49ba8: 4e56 ffe8 linkw %fp,#-24 49bac: 48d7 041c moveml %d2-%d4/%a2,%sp@ 49bb0: 262e 0008 movel %fp@(8),%d3 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { 49bb4: 4ab9 0005 d6fe tstl 5d6fe <_POSIX_signals_Ualarm_timer+0x1c> 49bba: 6622 bnes 49bde Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 49bbc: 42b9 0005 d6ea clrl 5d6ea <_POSIX_signals_Ualarm_timer+0x8> the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 49bc2: 4282 clrl %d2 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 49bc4: 203c 0004 9c94 movel #302228,%d0 the_watchdog->id = id; 49bca: 42b9 0005 d702 clrl 5d702 <_POSIX_signals_Ualarm_timer+0x20> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 49bd0: 23c0 0005 d6fe movel %d0,5d6fe <_POSIX_signals_Ualarm_timer+0x1c> the_watchdog->id = id; the_watchdog->user_data = user_data; 49bd6: 42b9 0005 d706 clrl 5d706 <_POSIX_signals_Ualarm_timer+0x24> 49bdc: 6058 bras 49c36 _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); 49bde: 4879 0005 d6e2 pea 5d6e2 <_POSIX_signals_Ualarm_timer> 49be4: 4eb9 0004 7d64 jsr 47d64 <_Watchdog_Remove> if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { 49bea: 588f addql #4,%sp 49bec: 7201 moveq #1,%d1 49bee: 5580 subql #2,%d0 49bf0: b280 cmpl %d0,%d1 49bf2: 6404 bccs 49bf8 49bf4: 4282 clrl %d2 <== NOT EXECUTED 49bf6: 603e bras 49c36 <== NOT EXECUTED * boot. Since alarm() is dealing in seconds, we must account for * this. */ ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); 49bf8: 2039 0005 d6f6 movel 5d6f6 <_POSIX_signals_Ualarm_timer+0x14>,%d0 49bfe: d0b9 0005 d6ee addl 5d6ee <_POSIX_signals_Ualarm_timer+0xc>,%d0 /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); 49c04: 486e fff8 pea %fp@(-8) 49c08: 90b9 0005 d6fa subl 5d6fa <_POSIX_signals_Ualarm_timer+0x18>,%d0 remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 49c0e: 283c 000f 4240 movel #1000000,%d4 ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); 49c14: 2f00 movel %d0,%sp@- 49c16: 4eb9 0004 aae0 jsr 4aae0 <_Timespec_From_ticks> remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 49c1c: 202e fff8 movel %fp@(-8),%d0 49c20: 4c04 0800 mulsl %d4,%d0 remaining += tp.tv_nsec / 1000; 49c24: 283c 0000 03e8 movel #1000,%d4 49c2a: 508f addql #8,%sp 49c2c: 242e fffc movel %fp@(-4),%d2 49c30: 4c44 2802 remsl %d4,%d2,%d2 49c34: d480 addl %d0,%d2 /* * If useconds is non-zero, then the caller wants to schedule * the alarm repeatedly at that interval. If the interval is * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { 49c36: 4a83 tstl %d3 49c38: 674e beqs 49c88 Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); 49c3a: 280e movel %fp,%d4 * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; 49c3c: 223c 000f 4240 movel #1000000,%d1 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); 49c42: 5184 subql #8,%d4 49c44: 45f9 0004 ab1c lea 4ab1c <_Timespec_To_ticks>,%a2 * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; 49c4a: 4c41 3000 remul %d1,%d0,%d3 49c4e: 4c41 3003 remul %d1,%d3,%d3 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; 49c52: 223c 0000 03e8 movel #1000,%d1 49c58: 4c00 1800 mulsl %d0,%d1 ticks = _Timespec_To_ticks( &tp ); 49c5c: 2f04 movel %d4,%sp@- */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; 49c5e: 2d41 fffc movel %d1,%fp@(-4) * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; 49c62: 2d43 fff8 movel %d3,%fp@(-8) tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); 49c66: 4e92 jsr %a2@ if ( ticks == 0 ) ticks = 1; _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); 49c68: 2f04 movel %d4,%sp@- 49c6a: 4e92 jsr %a2@ ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 49c6c: 4879 0005 d6e2 pea 5d6e2 <_POSIX_signals_Ualarm_timer> 49c72: 4879 0005 cfbc pea 5cfbc <_Watchdog_Ticks_chain> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 49c78: 23c0 0005 d6ee movel %d0,5d6ee <_POSIX_signals_Ualarm_timer+0xc> _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 49c7e: 4eb9 0004 7c48 jsr 47c48 <_Watchdog_Insert> 49c84: 4fef 0010 lea %sp@(16),%sp } return remaining; } 49c88: 2002 movel %d2,%d0 49c8a: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 49c90: 4e5e unlk %fp 49c92: 4e75 rts 0004c59c : #include int unlink( const char *path ) { 4c59c: 4e56 ffc0 linkw %fp,#-64 4c5a0: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 4c5a4: 246e 0008 moveal %fp@(8),%a2 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4c5a8: 2f0a movel %a2,%sp@- 4c5aa: 4eb9 0004 2128 jsr 42128 if ( parentpathlen == 0 ) 4c5b0: 588f addql #4,%sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4c5b2: 2a00 movel %d0,%d5 if ( parentpathlen == 0 ) 4c5b4: 664a bnes 4c600 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 4c5b6: 742f moveq #47,%d2 4c5b8: 1012 moveb %a2@,%d0 4c5ba: 1200 moveb %d0,%d1 4c5bc: 49c1 extbl %d1 4c5be: b481 cmpl %d1,%d2 4c5c0: 670c beqs 4c5ce 4c5c2: 143c 005c moveb #92,%d2 <== NOT EXECUTED 4c5c6: b481 cmpl %d1,%d2 <== NOT EXECUTED 4c5c8: 6704 beqs 4c5ce <== NOT EXECUTED 4c5ca: 4a00 tstb %d0 <== NOT EXECUTED 4c5cc: 6612 bnes 4c5e0 <== NOT EXECUTED 4c5ce: 4878 0014 pea 14 4c5d2: 2079 0005 b794 moveal 5b794 ,%a0 4c5d8: 41e8 0018 lea %a0@(24),%a0 4c5dc: 2f08 movel %a0,%sp@- 4c5de: 600e bras 4c5ee 4c5e0: 4878 0014 pea 14 <== NOT EXECUTED 4c5e4: 2039 0005 b794 movel 5b794 ,%d0 <== NOT EXECUTED 4c5ea: 5880 addql #4,%d0 <== NOT EXECUTED 4c5ec: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c5ee: 486e ffec pea %fp@(-20) 4c5f2: 4203 clrb %d3 4c5f4: 4eb9 0004 d48c jsr 4d48c 4c5fa: 4fef 000c lea %sp@(12),%sp 4c5fe: 6020 bras 4c620 else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 4c600: 42a7 clrl %sp@- 4c602: 486e ffec pea %fp@(-20) 4c606: 4878 0002 pea 2 4c60a: 2f00 movel %d0,%sp@- 4c60c: 2f0a movel %a2,%sp@- 4c60e: 4eb9 0004 223e jsr 4223e RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 4c614: 4fef 0014 lea %sp@(20),%sp 4c618: 4a80 tstl %d0 4c61a: 6600 015c bnew 4c778 4c61e: 7601 moveq #1,%d3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4c620: 4878 0014 pea 14 4c624: 280e movel %fp,%d4 4c626: 0684 ffff ffec addil #-20,%d4 4c62c: 240e movel %fp,%d2 4c62e: 0682 ffff ffd8 addil #-40,%d2 name = path + parentpathlen; 4c634: d5c5 addal %d5,%a2 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4c636: 47f9 0004 e038 lea 4e038 ,%a3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4c63c: 2f04 movel %d4,%sp@- 4c63e: 2f02 movel %d2,%sp@- 4c640: 4eb9 0004 d48c jsr 4d48c name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4c646: 2f0a movel %a2,%sp@- 4c648: 4e93 jsr %a3@ 4c64a: 2e80 movel %d0,%sp@ 4c64c: 2f0a movel %a2,%sp@- 4c64e: 4eb9 0004 20f0 jsr 420f0 4c654: d5c0 addal %d0,%a2 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4c656: 2f0a movel %a2,%sp@- 4c658: 4e93 jsr %a3@ 4c65a: 4297 clrl %sp@ 4c65c: 2f02 movel %d2,%sp@- 4c65e: 42a7 clrl %sp@- 4c660: 2f00 movel %d0,%sp@- 4c662: 2f0a movel %a2,%sp@- 4c664: 4eb9 0004 216e jsr 4216e 0, &loc, false ); if ( result != 0 ) { 4c66a: 4fef 0028 lea %sp@(40),%sp 4c66e: 4a80 tstl %d0 4c670: 6722 beqs 4c694 if ( free_parentloc ) 4c672: 4a03 tstb %d3 4c674: 6700 0102 beqw 4c778 rtems_filesystem_freenode( &parentloc ); 4c678: 206e fff8 moveal %fp@(-8),%a0 4c67c: 4a88 tstl %a0 4c67e: 6700 00f8 beqw 4c778 4c682: 2068 001c moveal %a0@(28),%a0 4c686: 4a88 tstl %a0 4c688: 6700 00ee beqw 4c778 4c68c: 2f04 movel %d4,%sp@- 4c68e: 78ff moveq #-1,%d4 4c690: 6000 00e0 braw 4c772 return -1; } if ( !loc.ops->node_type_h ) { 4c694: 226e ffe4 moveal %fp@(-28),%a1 4c698: 2069 0010 moveal %a1@(16),%a0 4c69c: 4a88 tstl %a0 4c69e: 6606 bnes 4c6a6 rtems_filesystem_freenode( &loc ); 4c6a0: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 4c6a4: 605c bras 4c702 <== NOT EXECUTED 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 ) { 4c6a6: 2f02 movel %d2,%sp@- 4c6a8: 4e90 jsr %a0@ 4c6aa: 206e ffe4 moveal %fp@(-28),%a0 4c6ae: 588f addql #4,%sp 4c6b0: 7201 moveq #1,%d1 4c6b2: b280 cmpl %d0,%d1 4c6b4: 6640 bnes 4c6f6 rtems_filesystem_freenode( &loc ); 4c6b6: 4a88 tstl %a0 4c6b8: 670e beqs 4c6c8 4c6ba: 2068 001c moveal %a0@(28),%a0 4c6be: 4a88 tstl %a0 4c6c0: 6706 beqs 4c6c8 4c6c2: 2f02 movel %d2,%sp@- 4c6c4: 4e90 jsr %a0@ 4c6c6: 588f addql #4,%sp if ( free_parentloc ) 4c6c8: 4a03 tstb %d3 4c6ca: 6718 beqs 4c6e4 rtems_filesystem_freenode( &parentloc ); 4c6cc: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4c6d0: 4a88 tstl %a0 <== NOT EXECUTED 4c6d2: 6710 beqs 4c6e4 <== NOT EXECUTED 4c6d4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c6d8: 4a88 tstl %a0 <== NOT EXECUTED 4c6da: 6708 beqs 4c6e4 <== NOT EXECUTED 4c6dc: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4c6e0: 4e90 jsr %a0@ <== NOT EXECUTED 4c6e2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 4c6e4: 4eb9 0004 cc6c jsr 4cc6c <__errno> 4c6ea: 78ff moveq #-1,%d4 4c6ec: 2040 moveal %d0,%a0 4c6ee: 7015 moveq #21,%d0 4c6f0: 2080 movel %d0,%a0@ 4c6f2: 6000 0086 braw 4c77a } if ( !loc.ops->unlink_h ) { 4c6f6: 2268 000c moveal %a0@(12),%a1 4c6fa: 4a89 tstl %a1 4c6fc: 663c bnes 4c73a rtems_filesystem_freenode( &loc ); 4c6fe: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c702: 4a88 tstl %a0 <== NOT EXECUTED 4c704: 6706 beqs 4c70c <== NOT EXECUTED 4c706: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c708: 4e90 jsr %a0@ <== NOT EXECUTED 4c70a: 588f addql #4,%sp <== NOT EXECUTED if ( free_parentloc ) 4c70c: 4a03 tstb %d3 <== NOT EXECUTED 4c70e: 6718 beqs 4c728 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 4c710: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4c714: 4a88 tstl %a0 <== NOT EXECUTED 4c716: 6710 beqs 4c728 <== NOT EXECUTED 4c718: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c71c: 4a88 tstl %a0 <== NOT EXECUTED 4c71e: 6708 beqs 4c728 <== NOT EXECUTED 4c720: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4c724: 4e90 jsr %a0@ <== NOT EXECUTED 4c726: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4c728: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 4c72e: 78ff moveq #-1,%d4 <== NOT EXECUTED 4c730: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c732: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4c738: 6040 bras 4c77a <== NOT EXECUTED } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 4c73a: 2f02 movel %d2,%sp@- 4c73c: 2f04 movel %d4,%sp@- 4c73e: 4e91 jsr %a1@ rtems_filesystem_freenode( &loc ); 4c740: 206e ffe4 moveal %fp@(-28),%a0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 4c744: 2800 movel %d0,%d4 rtems_filesystem_freenode( &loc ); 4c746: 508f addql #8,%sp 4c748: 4a88 tstl %a0 4c74a: 670e beqs 4c75a 4c74c: 2068 001c moveal %a0@(28),%a0 4c750: 4a88 tstl %a0 4c752: 6706 beqs 4c75a 4c754: 2f02 movel %d2,%sp@- 4c756: 4e90 jsr %a0@ 4c758: 588f addql #4,%sp if ( free_parentloc ) 4c75a: 4a03 tstb %d3 4c75c: 671c beqs 4c77a rtems_filesystem_freenode( &parentloc ); 4c75e: 206e fff8 moveal %fp@(-8),%a0 4c762: 4a88 tstl %a0 4c764: 6714 beqs 4c77a 4c766: 2068 001c moveal %a0@(28),%a0 4c76a: 4a88 tstl %a0 4c76c: 670c beqs 4c77a 4c76e: 486e ffec pea %fp@(-20) 4c772: 4e90 jsr %a0@ 4c774: 588f addql #4,%sp 4c776: 6002 bras 4c77a 4c778: 78ff moveq #-1,%d4 <== NOT EXECUTED return result; } 4c77a: 2004 movel %d4,%d0 4c77c: 4cee 0c3c ffc0 moveml %fp@(-64),%d2-%d5/%a2-%a3 4c782: 4e5e unlk %fp 4c784: 4e75 rts 000496a2 : */ int unmount( const char *path ) { 496a2: 4e56 ffec linkw %fp,#-20 496a6: 2f0a movel %a2,%sp@- 496a8: 246e 0008 moveal %fp@(8),%a2 496ac: 2f02 movel %d2,%sp@- * 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 ) ) 496ae: 240e movel %fp,%d2 496b0: 0682 ffff ffec addil #-20,%d2 496b6: 2f0a movel %a2,%sp@- 496b8: 4eb9 0007 c298 jsr 7c298 496be: 7201 moveq #1,%d1 496c0: 2e81 movel %d1,%sp@ 496c2: 2f02 movel %d2,%sp@- 496c4: 42a7 clrl %sp@- 496c6: 2f00 movel %d0,%sp@- 496c8: 2f0a movel %a2,%sp@- 496ca: 4eb9 0004 6576 jsr 46576 496d0: 4fef 0014 lea %sp@(20),%sp 496d4: 4a80 tstl %d0 496d6: 6600 011c bnew 497f4 return -1; mt_entry = loc.mt_entry; 496da: 246e fffc moveal %fp@(-4),%a2 496de: 206e fff8 moveal %fp@(-8),%a0 fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 496e2: 202e ffec movel %fp@(-20),%d0 496e6: b0aa 001c cmpl %a2@(28),%d0 496ea: 6724 beqs 49710 /* * 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 ); 496ec: 4a88 tstl %a0 496ee: 670e beqs 496fe 496f0: 2068 001c moveal %a0@(28),%a0 496f4: 4a88 tstl %a0 496f6: 6706 beqs 496fe 496f8: 2f02 movel %d2,%sp@- 496fa: 4e90 jsr %a0@ 496fc: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EACCES ); 496fe: 4eb9 0007 61f0 jsr 761f0 <__errno> 49704: 740d moveq #13,%d2 49706: 72ff moveq #-1,%d1 49708: 2040 moveal %d0,%a0 4970a: 2082 movel %d2,%a0@ 4970c: 6000 00e8 braw 497f6 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 49710: 4a88 tstl %a0 49712: 670e beqs 49722 49714: 2068 001c moveal %a0@(28),%a0 49718: 4a88 tstl %a0 4971a: 6706 beqs 49722 4971c: 2f02 movel %d2,%sp@- 4971e: 4e90 jsr %a0@ 49720: 588f addql #4,%sp 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; 49722: 206a 0014 moveal %a2@(20),%a0 49726: 4aa8 0028 tstl %a0@(40) 4972a: 670a beqs 49736 fs_root_loc = &mt_entry->mt_fs_root; 4972c: 206a 0028 moveal %a2@(40),%a0 49730: 4aa8 002c tstl %a0@(44) 49734: 6614 bnes 4974a 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 ); 49736: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 4973c: 72ff moveq #-1,%d1 <== NOT EXECUTED 4973e: 2040 moveal %d0,%a0 <== NOT EXECUTED 49740: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 49746: 6000 00ae braw 497f6 <== NOT EXECUTED * that made the current node thread based instead * of system based? I thought it was but it doesn't * look like it in this version. */ if ( rtems_filesystem_current.mt_entry == mt_entry ) 4974a: 2079 0009 73bc moveal 973bc ,%a0 49750: b5e8 0014 cmpal %a0@(20),%a2 49754: 6720 beqs 49776 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 49756: 2079 0009 bda0 moveal 9bda0 ,%a0 4975c: 600c bras 4976a if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 4975e: 202a 002c movel %a2@(44),%d0 49762: b0a8 0018 cmpl %a0@(24),%d0 49766: 670e beqs 49776 * 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 ) { 49768: 2050 moveal %a0@,%a0 4976a: b1fc 0009 bda4 cmpal #638372,%a0 49770: 66ec bnes 4975e 49772: 6000 0090 braw 49804 * 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 ); 49776: 4eb9 0007 61f0 jsr 761f0 <__errno> 4977c: 72ff moveq #-1,%d1 4977e: 2040 moveal %d0,%a0 49780: 7010 moveq #16,%d0 49782: 2080 movel %d0,%a0@ 49784: 6070 bras 497f6 * 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 ) 49786: 206a 0014 moveal %a2@(20),%a0 4978a: 2f0a movel %a2,%sp@- 4978c: 2068 0028 moveal %a0@(40),%a0 49790: 4e90 jsr %a0@ 49792: 588f addql #4,%sp 49794: 4a80 tstl %d0 49796: 665c bnes 497f4 * 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){ 49798: 206a 0028 moveal %a2@(40),%a0 4979c: 2f0a movel %a2,%sp@- 4979e: 2068 002c moveal %a0@(44),%a0 497a2: 4e90 jsr %a0@ 497a4: 588f addql #4,%sp 497a6: 4a80 tstl %d0 497a8: 671a beqs 497c4 if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 497aa: 206a 0014 moveal %a2@(20),%a0 <== NOT EXECUTED 497ae: 2f0a movel %a2,%sp@- <== NOT EXECUTED 497b0: 2068 0020 moveal %a0@(32),%a0 <== NOT EXECUTED 497b4: 4e90 jsr %a0@ <== NOT EXECUTED 497b6: 588f addql #4,%sp <== NOT EXECUTED 497b8: 4a80 tstl %d0 <== NOT EXECUTED 497ba: 6738 beqs 497f4 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 497bc: 42a7 clrl %sp@- <== NOT EXECUTED 497be: 4eb9 0004 a950 jsr 4a950 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 497c4: 2f0a movel %a2,%sp@- 497c6: 4eb9 0004 ac9c jsr 4ac9c <_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 ); 497cc: 206a 0014 moveal %a2@(20),%a0 497d0: 588f addql #4,%sp 497d2: 4a88 tstl %a0 497d4: 6710 beqs 497e6 497d6: 2068 001c moveal %a0@(28),%a0 497da: 4a88 tstl %a0 497dc: 6708 beqs 497e6 497de: 486a 0008 pea %a2@(8) 497e2: 4e90 jsr %a0@ 497e4: 588f addql #4,%sp free( mt_entry ); 497e6: 2f0a movel %a2,%sp@- 497e8: 4eb9 0004 6640 jsr 46640 return 0; 497ee: 588f addql #4,%sp * 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 ); free( mt_entry ); 497f0: 4281 clrl %d1 return 0; 497f2: 6002 bras 497f6 497f4: 72ff moveq #-1,%d1 } 497f6: 242e ffe4 movel %fp@(-28),%d2 497fa: 2001 movel %d1,%d0 497fc: 246e ffe8 moveal %fp@(-24),%a2 49800: 4e5e unlk %fp 49802: 4e75 rts * 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 ) 49804: 2f0a movel %a2,%sp@- 49806: 4eb9 0004 68bc jsr 468bc 4980c: 588f addql #4,%sp 4980e: 7201 moveq #1,%d1 49810: b280 cmpl %d0,%d1 49812: 6600 ff72 bnew 49786 49816: 6000 ff5e braw 49776 ... 00061ff4 : int utime( const char *path, const struct utimbuf *times ) { 61ff4: 4e56 ffe0 linkw %fp,#-32 61ff8: 48d7 040c moveml %d2-%d3/%a2,%sp@ 61ffc: 262e 0008 movel %fp@(8),%d3 rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) 62000: 240e movel %fp,%d2 62002: 0682 ffff ffec addil #-20,%d2 62008: 2f03 movel %d3,%sp@- int utime( const char *path, const struct utimbuf *times ) { 6200a: 246e 000c moveal %fp@(12),%a2 rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) 6200e: 4eb9 0007 c298 jsr 7c298 62014: 7201 moveq #1,%d1 62016: 2e81 movel %d1,%sp@ 62018: 2f02 movel %d2,%sp@- 6201a: 42a7 clrl %sp@- 6201c: 2f00 movel %d0,%sp@- 6201e: 2f03 movel %d3,%sp@- 62020: 4eb9 0004 6576 jsr 46576 62026: 4fef 0014 lea %sp@(20),%sp 6202a: 4a80 tstl %d0 6202c: 6704 beqs 62032 6202e: 76ff moveq #-1,%d3 62030: 6052 bras 62084 return -1; if ( !temp_loc.ops->utime_h ){ 62032: 226e fff8 moveal %fp@(-8),%a1 62036: 2069 0030 moveal %a1@(48),%a0 6203a: 4a88 tstl %a0 6203c: 6620 bnes 6205e rtems_filesystem_freenode( &temp_loc ); 6203e: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 62042: 4a88 tstl %a0 <== NOT EXECUTED 62044: 6706 beqs 6204c <== NOT EXECUTED 62046: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62048: 4e90 jsr %a0@ <== NOT EXECUTED 6204a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 6204c: 4eb9 0007 61f0 jsr 761f0 <__errno> <== NOT EXECUTED 62052: 76ff moveq #-1,%d3 <== NOT EXECUTED 62054: 2040 moveal %d0,%a0 <== NOT EXECUTED 62056: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 6205c: 6026 bras 62084 <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 6205e: 2f2a 0004 movel %a2@(4),%sp@- 62062: 2f12 movel %a2@,%sp@- 62064: 2f02 movel %d2,%sp@- 62066: 4e90 jsr %a0@ rtems_filesystem_freenode( &temp_loc ); 62068: 206e fff8 moveal %fp@(-8),%a0 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 ); 6206c: 2600 movel %d0,%d3 rtems_filesystem_freenode( &temp_loc ); 6206e: 4fef 000c lea %sp@(12),%sp 62072: 4a88 tstl %a0 62074: 670e beqs 62084 62076: 2068 001c moveal %a0@(28),%a0 6207a: 4a88 tstl %a0 6207c: 6706 beqs 62084 6207e: 2f02 movel %d2,%sp@- 62080: 4e90 jsr %a0@ 62082: 588f addql #4,%sp return result; } 62084: 2003 movel %d3,%d0 62086: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 6208c: 4e5e unlk %fp 6208e: 4e75 rts 000446b4 : */ void vprintk( const char *fmt, va_list ap ) { 446b4: 4e56 ffc4 linkw %fp,#-60 446b8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 446bc: 246e 0008 moveal %fp@(8),%a2 unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { toPrint[count++] = (char) (unsigned_num - (n * base)); 446c0: 4bee ffec lea %fp@(-20),%a5 for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 446c4: 2a3c 0005 a5cf movel #370127,%d5 */ void vprintk( const char *fmt, va_list ap ) { 446ca: 266e 000c moveal %fp@(12),%a3 for (; *fmt != '\0'; fmt++) { 446ce: 6000 0218 braw 448e8 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 446d2: 49c0 extbl %d0 446d4: 7225 moveq #37,%d1 446d6: b280 cmpl %d0,%d1 446d8: 6706 beqs 446e0 BSP_output_char(*fmt); 446da: 2f00 movel %d0,%sp@- 446dc: 6000 0150 braw 4482e continue; } fmt++; 446e0: 528a addql #1,%a2 if (*fmt == '0' ) { 446e2: 7630 moveq #48,%d3 446e4: 1012 moveb %a2@,%d0 446e6: 49c0 extbl %d0 446e8: b680 cmpl %d0,%d3 446ea: 6704 beqs 446f0 446ec: 7e20 moveq #32,%d7 446ee: 6004 bras 446f4 lead = '0'; fmt++; 446f0: 528a addql #1,%a2 446f2: 7e30 moveq #48,%d7 } if (*fmt == '-' ) { 446f4: 782d moveq #45,%d4 446f6: 1012 moveb %a2@,%d0 446f8: 49c0 extbl %d0 446fa: b880 cmpl %d0,%d4 446fc: 6704 beqs 44702 446fe: 4206 clrb %d6 44700: 6004 bras 44706 minus = true; fmt++; 44702: 528a addql #1,%a2 44704: 7c01 moveq #1,%d6 44706: 4282 clrl %d2 44708: 6008 bras 44712 } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += ((unsigned) *fmt - '0'); fmt++; 4470a: 528a addql #1,%a2 minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += ((unsigned) *fmt - '0'); 4470c: 41f0 08d0 lea %a0@(ffffffd0,%d0:l),%a0 44710: 2408 movel %a0,%d2 if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; 44712: 2002 movel %d2,%d0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 44714: 7809 moveq #9,%d4 44716: 1212 moveb %a2@,%d1 width *= 10; 44718: e788 lsll #3,%d0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 4471a: 2601 movel %d1,%d3 width *= 10; 4471c: 2040 moveal %d0,%a0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 4471e: 0683 ffff ffd0 addil #-48,%d3 44724: 1001 moveb %d1,%d0 44726: 0283 0000 00ff andil #255,%d3 width *= 10; 4472c: 41f0 2a00 lea %a0@(00000000,%d2:l:2),%a0 44730: 49c0 extbl %d0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 44732: b883 cmpl %d3,%d4 44734: 64d4 bccs 4470a width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 44736: 766c moveq #108,%d3 44738: b680 cmpl %d0,%d3 4473a: 6604 bnes 44740 lflag = true; c = *++fmt; 4473c: 528a addql #1,%a2 4473e: 1212 moveb %a2@,%d1 } if ( c == 'c' ) { 44740: 7663 moveq #99,%d3 44742: 1001 moveb %d1,%d0 44744: 49c0 extbl %d0 44746: b680 cmpl %d0,%d3 44748: 660c bnes 44756 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); BSP_output_char(chr); 4474a: 2013 movel %a3@,%d0 <== NOT EXECUTED 4474c: 49c0 extbl %d0 <== NOT EXECUTED lflag = true; c = *++fmt; } if ( c == 'c' ) { /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); 4474e: 588b addql #4,%a3 <== NOT EXECUTED BSP_output_char(chr); 44750: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44752: 6000 00da braw 4482e <== NOT EXECUTED continue; } if ( c == 's' ) { 44756: 7673 moveq #115,%d3 44758: b680 cmpl %d0,%d3 4475a: 6676 bnes 447d2 unsigned i, len; char *s, *str; str = va_arg(ap, char *); 4475c: 2853 moveal %a3@,%a4 4475e: 588b addql #4,%a3 if ( str == NULL ) { 44760: 4a8c tstl %a4 44762: 6606 bnes 4476a 44764: 49f9 0005 a5ce lea 5a5ce ,%a4 4476a: 4283 clrl %d3 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 4476c: 6002 bras 44770 4476e: 5283 addql #1,%d3 44770: 4a34 3800 tstb %a4@(00000000,%d3:l) 44774: 66f8 bnes 4476e ; /* leading spaces */ if ( !minus ) 44776: 4a06 tstb %d6 44778: 6618 bnes 44792 4477a: 2803 movel %d3,%d4 4477c: 6010 bras 4478e for ( i=len ; i <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i,%a0 <== NOT EXECUTED 4478a: 4e90 jsr %a0@ <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { 44792: 4a82 tstl %d2 44794: 6602 bnes 44798 44796: 2403 movel %d3,%d2 width = len; } /* output the string */ for ( i=0 ; i 4479c: 600e bras 447ac BSP_output_char(*str); 4479e: 49c0 extbl %d0 447a0: 2079 0005 b77c moveal 5b77c ,%a0 447a6: 2f00 movel %d0,%sp@- 447a8: 4e90 jsr %a0@ if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) 447b2: 4a06 tstb %d6 447b4: 6700 0130 beqw 448e6 447b8: 6010 bras 447ca for ( i=len ; i for ( i=0 ; i,%a0 447c6: 4e90 jsr %a0@ for ( i=0 ; i 447ce: 6000 0116 braw 448e6 continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { 447d2: 766f moveq #111,%d3 447d4: b680 cmpl %d0,%d3 447d6: 6764 beqs 4483c 447d8: 163c 004f moveb #79,%d3 447dc: b680 cmpl %d0,%d3 447de: 675c beqs 4483c base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 447e0: 163c 0069 moveb #105,%d3 447e4: b680 cmpl %d0,%d3 447e6: 6758 beqs 44840 447e8: 163c 0049 moveb #73,%d3 447ec: b680 cmpl %d0,%d3 447ee: 6750 beqs 44840 447f0: 163c 0064 moveb #100,%d3 447f4: b680 cmpl %d0,%d3 447f6: 6748 beqs 44840 447f8: 163c 0044 moveb #68,%d3 447fc: b680 cmpl %d0,%d3 447fe: 6740 beqs 44840 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 44800: 163c 0075 moveb #117,%d3 44804: b680 cmpl %d0,%d3 44806: 673e beqs 44846 44808: 163c 0055 moveb #85,%d3 4480c: b680 cmpl %d0,%d3 4480e: 6736 beqs 44846 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 44810: 49c1 extbl %d1 44812: 7078 moveq #120,%d0 44814: b081 cmpl %d1,%d0 44816: 6732 beqs 4484a 44818: 163c 0058 moveb #88,%d3 4481c: b681 cmpl %d1,%d3 4481e: 672a beqs 4484a base = 16; sign = false; } else if ( c == 'p' ) { 44820: 7870 moveq #112,%d4 44822: b881 cmpl %d1,%d4 44824: 6606 bnes 4482c 44826: 163c 0010 moveb #16,%d3 4482a: 6020 bras 4484c base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 4482c: 2f01 movel %d1,%sp@- 4482e: 2079 0005 b77c moveal 5b77c ,%a0 44834: 4e90 jsr %a0@ continue; 44836: 588f addql #4,%sp 44838: 6000 00ac braw 448e6 4483c: 7608 moveq #8,%d3 <== NOT EXECUTED 4483e: 600c bras 4484c <== NOT EXECUTED 44840: 760a moveq #10,%d3 44842: 7201 moveq #1,%d1 44844: 6008 bras 4484e 44846: 760a moveq #10,%d3 44848: 6002 bras 4484c 4484a: 7610 moveq #16,%d3 4484c: 4201 clrb %d1 4484e: 200b movel %a3,%d0 44850: 5880 addql #4,%d0 } printNum( 44852: 1c07 moveb %d7,%d6 44854: 2813 movel %a3@,%d4 44856: 49c6 extbl %d6 44858: 2640 moveal %d0,%a3 unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 4485a: 4a01 tstb %d1 4485c: 671e beqs 4487c 4485e: 4a84 tstl %d4 44860: 6c1a bges 4487c BSP_output_char('-'); 44862: 4878 002d pea 2d <== NOT EXECUTED 44866: 2079 0005 b77c moveal 5b77c ,%a0 <== NOT EXECUTED 4486c: 4e90 jsr %a0@ <== NOT EXECUTED unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; 4486e: 588f addql #4,%sp <== NOT EXECUTED unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; 44870: 2004 movel %d4,%d0 <== NOT EXECUTED 44872: 4480 negl %d0 <== NOT EXECUTED if (maxwidth) maxwidth--; 44874: 4a82 tstl %d2 <== NOT EXECUTED 44876: 6706 beqs 4487e <== NOT EXECUTED 44878: 5382 subql #1,%d2 <== NOT EXECUTED 4487a: 6002 bras 4487e <== NOT EXECUTED } else { unsigned_num = (unsigned long) num; 4487c: 2004 movel %d4,%d0 4487e: 99cc subal %a4,%a4 } count = 0; while ((n = unsigned_num / base) > 0) { toPrint[count++] = (char) (unsigned_num - (n * base)); 44880: 3243 moveaw %d3,%a1 44882: 600e bras 44892 44884: 9088 subl %a0,%d0 44886: 2040 moveal %d0,%a0 44888: 2001 movel %d1,%d0 4488a: 3e08 movew %a0,%d7 4488c: 1b87 c800 moveb %d7,%a5@(00000000,%a4:l) 44890: 2844 moveal %d4,%a4 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 44892: 2200 movel %d0,%d1 44894: 280c movel %a4,%d4 44896: 5284 addql #1,%d4 44898: 4c43 1001 remul %d3,%d1,%d1 toPrint[count++] = (char) (unsigned_num - (n * base)); 4489c: 3e09 movew %a1,%d7 4489e: cfc1 mulsw %d1,%d7 448a0: 3047 moveaw %d7,%a0 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 448a2: 4a81 tstl %d1 448a4: 66de bnes 44884 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 448a6: 1d80 c8ec moveb %d0,%fp@(ffffffec,%a4:l) 448aa: 600e bras 448ba for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); 448ac: 2f06 movel %d6,%sp@- 448ae: 2079 0005 b77c moveal 5b77c ,%a0 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) 448b4: 5382 subql #1,%d2 BSP_output_char(lead); 448b6: 4e90 jsr %a0@ toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) 448b8: 588f addql #4,%sp 448ba: b882 cmpl %d2,%d4 448bc: 65ee bcss 448ac 448be: 49f5 c800 lea %a5@(00000000,%a4:l),%a4 448c2: 4282 clrl %d2 448c4: 601c bras 448e2 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 448c6: 2045 moveal %d5,%a0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 448c8: 5282 addql #1,%d2 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 448ca: 1014 moveb %a4@,%d0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 448cc: 538c subql #1,%a4 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 448ce: 49c0 extbl %d0 448d0: 1030 0800 moveb %a0@(00000000,%d0:l),%d0 448d4: 2079 0005 b77c moveal 5b77c ,%a0 448da: 49c0 extbl %d0 448dc: 2f00 movel %d0,%sp@- 448de: 4e90 jsr %a0@ toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 448e0: 588f addql #4,%sp 448e2: b882 cmpl %d2,%d4 448e4: 62e0 bhis 448c6 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 448e6: 528a addql #1,%a2 448e8: 1012 moveb %a2@,%d0 448ea: 6600 fde6 bnew 446d2 sign, width, lead ); } } 448ee: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 448f4: 4e5e unlk %fp 448f6: 4e75 rts 00059870 : ssize_t write( int fd, const void *buffer, size_t count ) { 59870: 4e56 fff4 linkw %fp,#-12 59874: 202e 000c movel %fp@(12),%d0 59878: 48d7 040c moveml %d2-%d3/%a2,%sp@ 5987c: 242e 0008 movel %fp@(8),%d2 59880: 222e 0010 movel %fp@(16),%d1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 59884: b4b9 0005 b684 cmpl 5b684 ,%d2 5988a: 6414 bccs 598a0 iop = rtems_libio_iop( fd ); 5988c: 2479 0005 cd84 moveal 5cd84 ,%a2 59892: ed8a lsll #6,%d2 59894: d5c2 addal %d2,%a2 rtems_libio_check_is_open( iop ); 59896: 242a 0014 movel %a2@(20),%d2 5989a: 0802 0008 btst #8,%d2 5989e: 6610 bnes 598b0 598a0: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 598a6: 7409 moveq #9,%d2 <== NOT EXECUTED 598a8: 72ff moveq #-1,%d1 <== NOT EXECUTED 598aa: 2040 moveal %d0,%a0 <== NOT EXECUTED 598ac: 2082 movel %d2,%a0@ <== NOT EXECUTED 598ae: 605e bras 5990e <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 598b0: 4a80 tstl %d0 598b2: 6708 beqs 598bc rtems_libio_check_count( count ); 598b4: 4a81 tstl %d1 598b6: 6756 beqs 5990e rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 598b8: 44c2 movew %d2,%ccr 598ba: 6710 beqs 598cc 598bc: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 598c2: 72ff moveq #-1,%d1 <== NOT EXECUTED 598c4: 2040 moveal %d0,%a0 <== NOT EXECUTED 598c6: 7016 moveq #22,%d0 <== NOT EXECUTED 598c8: 2080 movel %d0,%a0@ <== NOT EXECUTED 598ca: 6042 bras 5990e <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 598cc: 206a 003c moveal %a2@(60),%a0 598d0: 2068 000c moveal %a0@(12),%a0 598d4: 4a88 tstl %a0 598d6: 6612 bnes 598ea rtems_set_errno_and_return_minus_one( ENOTSUP ); 598d8: 4eb9 0004 cc6c jsr 4cc6c <__errno> <== NOT EXECUTED 598de: 72ff moveq #-1,%d1 <== NOT EXECUTED 598e0: 2040 moveal %d0,%a0 <== NOT EXECUTED 598e2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 598e8: 6024 bras 5990e <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 598ea: 2f01 movel %d1,%sp@- 598ec: 2f00 movel %d0,%sp@- 598ee: 2f0a movel %a2,%sp@- 598f0: 4e90 jsr %a0@ if ( rc > 0 ) 598f2: 4fef 000c lea %sp@(12),%sp */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 598f6: 2200 movel %d0,%d1 if ( rc > 0 ) 598f8: 6f14 bles 5990e iop->offset += rc; 598fa: 2600 movel %d0,%d3 598fc: 5bc2 smi %d2 598fe: 49c2 extbl %d2 59900: d7aa 0010 addl %d3,%a2@(16) 59904: 202a 000c movel %a2@(12),%d0 59908: d182 addxl %d2,%d0 5990a: 2540 000c movel %d0,%a2@(12) return rc; } 5990e: 2001 movel %d1,%d0 59910: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 59916: 4e5e unlk %fp 59918: 4e75 rts ... 00045f00 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 45f00: 4e56 ffe4 linkw %fp,#-28 45f04: 202e 0008 movel %fp@(8),%d0 45f08: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 45f0c: 266e 000c moveal %fp@(12),%a3 45f10: 262e 0010 movel %fp@(16),%d3 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 45f14: b0b9 0005 eeb4 cmpl 5eeb4 ,%d0 45f1a: 6414 bccs 45f30 iop = rtems_libio_iop( fd ); 45f1c: 2479 0006 0d88 moveal 60d88 ,%a2 45f22: ed88 lsll #6,%d0 45f24: d5c0 addal %d0,%a2 rtems_libio_check_is_open( iop ); 45f26: 202a 0014 movel %a2@(20),%d0 45f2a: 0800 0008 btst #8,%d0 45f2e: 6612 bnes 45f42 45f30: 4eb9 0004 ed28 jsr 4ed28 <__errno> 45f36: 74ff moveq #-1,%d2 45f38: 7209 moveq #9,%d1 45f3a: 2040 moveal %d0,%a0 45f3c: 2081 movel %d1,%a0@ 45f3e: 6000 00ce braw 4600e rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 45f42: 44c0 movew %d0,%ccr 45f44: 665c bnes 45fa2 /* * Argument validation on IO vector */ if ( !iov ) 45f46: 4a8b tstl %a3 45f48: 6758 beqs 45fa2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 45f4a: 4a83 tstl %d3 45f4c: 6f54 bles 45fa2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 45f4e: 0c83 0000 0400 cmpil #1024,%d3 45f54: 6e4c bgts 45fa2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 45f56: 206a 003c moveal %a2@(60),%a0 45f5a: 4aa8 000c tstl %a0@(12) 45f5e: 6614 bnes 45f74 rtems_set_errno_and_return_minus_one( ENOTSUP ); 45f60: 4eb9 0004 ed28 jsr 4ed28 <__errno> <== NOT EXECUTED 45f66: 74ff moveq #-1,%d2 <== NOT EXECUTED 45f68: 2040 moveal %d0,%a0 <== NOT EXECUTED 45f6a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 45f70: 6000 009c braw 4600e <== NOT EXECUTED 45f74: 204b moveal %a3,%a0 45f76: 4281 clrl %d1 45f78: 4280 clrl %d0 45f7a: 7801 moveq #1,%d4 * 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++ ) { 45f7c: 5281 addql #1,%d1 if ( !iov[v].iov_base ) 45f7e: 4a90 tstl %a0@ 45f80: 6720 beqs 45fa2 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 ) 45f82: 2268 0004 moveal %a0@(4),%a1 45f86: 4a89 tstl %a1 45f88: 57c2 seq %d2 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 45f8a: 43f1 0800 lea %a1@(00000000,%d0:l),%a1 * 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++ ) { 45f8e: 5088 addql #8,%a0 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 ) 45f90: c484 andl %d4,%d2 45f92: 1802 moveb %d2,%d4 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 45f94: b089 cmpl %a1,%d0 45f96: 6e0a bgts 45fa2 * 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++ ) { 45f98: 2009 movel %a1,%d0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 45f9a: b3fc 0000 7fff cmpal #32767,%a1 45fa0: 6f10 bles 45fb2 rtems_set_errno_and_return_minus_one( EINVAL ); 45fa2: 4eb9 0004 ed28 jsr 4ed28 <__errno> 45fa8: 74ff moveq #-1,%d2 45faa: 2040 moveal %d0,%a0 45fac: 7016 moveq #22,%d0 45fae: 2080 movel %d0,%a0@ 45fb0: 605c bras 4600e * 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++ ) { 45fb2: b681 cmpl %d1,%d3 45fb4: 6ec6 bgts 45f7c } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 45fb6: 4a02 tstb %d2 <== NOT EXECUTED 45fb8: 6704 beqs 45fbe <== NOT EXECUTED 45fba: 4282 clrl %d2 <== NOT EXECUTED 45fbc: 6050 bras 4600e <== NOT EXECUTED 45fbe: 588b addql #4,%a3 <== NOT EXECUTED 45fc0: 4284 clrl %d4 <== NOT EXECUTED 45fc2: 4282 clrl %d2 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 45fc4: 2013 movel %a3@,%d0 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 45fc6: 5284 addql #1,%d4 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 45fc8: 4a80 tstl %d0 <== NOT EXECUTED 45fca: 673c beqs 46008 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 45fcc: 206a 003c moveal %a2@(60),%a0 <== NOT EXECUTED 45fd0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45fd2: 2f2b fffc movel %a3@(-4),%sp@- <== NOT EXECUTED 45fd6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45fd8: 2068 000c moveal %a0@(12),%a0 <== NOT EXECUTED 45fdc: 4e90 jsr %a0@ <== NOT EXECUTED if ( bytes < 0 ) 45fde: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 45fe2: 4a80 tstl %d0 <== NOT EXECUTED 45fe4: 6c04 bges 45fea <== NOT EXECUTED 45fe6: 74ff moveq #-1,%d2 <== NOT EXECUTED 45fe8: 6024 bras 4600e <== NOT EXECUTED return -1; if ( bytes > 0 ) { 45fea: 4a80 tstl %d0 <== NOT EXECUTED 45fec: 6716 beqs 46004 <== NOT EXECUTED iop->offset += bytes; total += bytes; 45fee: d480 addl %d0,%d2 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 45ff0: 2c00 movel %d0,%d6 <== NOT EXECUTED 45ff2: 5bc5 smi %d5 <== NOT EXECUTED 45ff4: 49c5 extbl %d5 <== NOT EXECUTED 45ff6: ddaa 0010 addl %d6,%a2@(16) <== NOT EXECUTED 45ffa: 222a 000c movel %a2@(12),%d1 <== NOT EXECUTED 45ffe: d385 addxl %d5,%d1 <== NOT EXECUTED 46000: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 46004: b093 cmpl %a3@,%d0 <== NOT EXECUTED 46006: 6606 bnes 4600e <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 46008: 508b addql #8,%a3 <== NOT EXECUTED 4600a: b684 cmpl %d4,%d3 <== NOT EXECUTED 4600c: 6eb6 bgts 45fc4 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 4600e: 2002 movel %d2,%d0 46010: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 46016: 4e5e unlk %fp 46018: 4e75 rts ...