000480d0 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 480d0: 7206 moveq #6,%d1 #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 480d2: 4e56 0000 linkw %fp,#0 480d6: 206e 0008 moveal %fp@(8),%a0 480da: 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 ) { 480dc: 2450 moveal %a0@,%a2 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 480de: 2268 0010 moveal %a0@(16),%a1 switch( node->type ) { 480e2: 202a 0048 movel %a2@(72),%d0 480e6: 5380 subql #1,%d0 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 480e8: 2269 0034 moveal %a1@(52),%a1 switch( node->type ) { 480ec: b280 cmpl %d0,%d1 480ee: 6546 bcss 48136 480f0: 303b 0a08 movew %pc@(480fa ,%d0:l:2),%d0 480f4: 48c0 extl %d0 480f6: 4efb 0802 jmp %pc@(480fa ,%d0:l) 480fa: 000e 016 <== NOT EXECUTED 480fc: 0016 026 <== NOT EXECUTED 480fe: 001e 036 <== NOT EXECUTED 48100: 001e 036 <== NOT EXECUTED 48102: 002a 052 <== NOT EXECUTED 48104: 002a 052 <== NOT EXECUTED 48106: 0032 062 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 48108: 2169 000c 0008 movel %a1@(12),%a0@(8) break; 4810e: 6026 bras 48136 case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 48110: 203c 0005 a68a movel #370314,%d0 48116: 601a bras 48132 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 48118: 223c 0005 a6c2 movel #370370,%d1 4811e: 2141 0008 movel %d1,%a0@(8) break; 48122: 6012 bras 48136 case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 48124: 2169 0008 0008 movel %a1@(8),%a0@(8) break; 4812a: 600a bras 48136 case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 4812c: 203c 0005 a5e6 movel #370150,%d0 48132: 2140 0008 movel %d0,%a0@(8) break; } return 0; } 48136: 245f moveal %sp@+,%a2 48138: 4280 clrl %d0 4813a: 4e5e unlk %fp <== NOT EXECUTED 0004c7b0 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4c7b0: 4e56 ffe8 linkw %fp,#-24 4c7b4: 206e 0008 moveal %fp@(8),%a0 4c7b8: 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; 4c7bc: 2450 moveal %a0@,%a2 */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4c7be: 4284 clrl %d4 int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4c7c0: 362e 000e movew %fp@(14),%d3 4c7c4: 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(); 4c7c8: 4eb9 0004 d82c jsr 4d82c if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4c7ce: 4281 clrl %d1 4c7d0: 3800 movew %d0,%d4 4c7d2: 322a 0038 movew %a2@(56),%d1 4c7d6: b284 cmpl %d4,%d1 4c7d8: 6714 beqs 4c7ee 4c7da: 4a40 tstw %d0 <== NOT EXECUTED 4c7dc: 6710 beqs 4c7ee <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 4c7de: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 4c7e4: 7201 moveq #1,%d1 <== NOT EXECUTED 4c7e6: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c7e8: 70ff moveq #-1,%d0 <== NOT EXECUTED 4c7ea: 2081 movel %d1,%a0@ <== NOT EXECUTED 4c7ec: 601e bras 4c80c <== NOT EXECUTED #endif jnode->st_uid = owner; 4c7ee: 3543 0038 movew %d3,%a2@(56) jnode->st_gid = group; 4c7f2: 3542 003a movew %d2,%a2@(58) IMFS_update_ctime( jnode ); 4c7f6: 42a7 clrl %sp@- 4c7f8: 486e fff8 pea %fp@(-8) 4c7fc: 4eb9 0004 3578 jsr 43578 4c802: 256e fff8 0044 movel %fp@(-8),%a2@(68) return 0; 4c808: 508f addql #8,%sp #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 4c80a: 4280 clrl %d0 return 0; } 4c80c: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4c812: 4e5e unlk %fp ... 0004b52c : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4b52c: 4e56 fff0 linkw %fp,#-16 4b530: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ 4b534: 266e 0008 moveal %fp@(8),%a3 4b538: 242e 000c movel %fp@(12),%d2 4b53c: 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 ) 4b540: 4a8b tstl %a3 4b542: 6606 bnes 4b54a 4b544: 99cc subal %a4,%a4 <== NOT EXECUTED 4b546: 6000 00ea braw 4b632 <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 4b54a: 2079 0005 b5b4 moveal 5b5b4 ,%a0 4b550: 2028 002c movel %a0@(44),%d0 4b554: 4680 notl %d0 4b556: c0ae 0014 andl %fp@(20),%d0 4b55a: 2f00 movel %d0,%sp@- 4b55c: 2f2e 0010 movel %fp@(16),%sp@- 4b560: 2f02 movel %d2,%sp@- 4b562: 4eb9 0004 b474 jsr 4b474 if ( !node ) 4b568: 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 ); 4b56c: 2840 moveal %d0,%a4 if ( !node ) 4b56e: 4a80 tstl %d0 4b570: 6700 00c0 beqw 4b632 return NULL; /* * Set the type specific information */ switch (type) { 4b574: 5382 subql #1,%d2 4b576: 7006 moveq #6,%d0 4b578: b082 cmpl %d2,%d0 4b57a: 6570 bcss 4b5ec 4b57c: 303b 2a08 movew %pc@(4b586 ,%d2:l:2),%d0 4b580: 48c0 extl %d0 4b582: 4efb 0802 jmp %pc@(4b586 ,%d0:l) 4b586: 000e 016 <== NOT EXECUTED 4b588: 002a 052 <== NOT EXECUTED 4b58a: 0024 044 <== NOT EXECUTED 4b58c: 0024 044 <== NOT EXECUTED 4b58e: 0046 0106 <== NOT EXECUTED 4b590: 0036 066 <== NOT EXECUTED 4b592: 0060 0140 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4b594: 41ec 0050 lea %a4@(80),%a0 4b598: 2948 004c movel %a0,%a4@(76) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4b59c: 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; 4b5a0: 42ac 0050 clrl %a4@(80) the_chain->last = _Chain_Head(the_chain); 4b5a4: 2948 0054 movel %a0,%a4@(84) 4b5a8: 605e bras 4b608 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; 4b5aa: 2952 004c movel %a2@,%a4@(76) break; 4b5ae: 6058 bras 4b608 case IMFS_DEVICE: node->info.device.major = info->device.major; 4b5b0: 2952 004c movel %a2@,%a4@(76) node->info.device.minor = info->device.minor; 4b5b4: 296a 0004 0050 movel %a2@(4),%a4@(80) break; 4b5ba: 604c bras 4b608 case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; 4b5bc: 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; 4b5c0: 4280 clrl %d0 <== NOT EXECUTED 4b5c2: 4281 clrl %d1 <== NOT EXECUTED 4b5c4: 2940 004c movel %d0,%a4@(76) <== NOT EXECUTED 4b5c8: 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; 4b5cc: 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; 4b5d0: 4280 clrl %d0 4b5d2: 4281 clrl %d1 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; 4b5d4: 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; 4b5d8: 2940 004c movel %d0,%a4@(76) 4b5dc: 2941 0050 movel %d1,%a4@(80) node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 4b5e0: 42ac 005c clrl %a4@(92) break; 4b5e4: 6022 bras 4b608 case IMFS_FIFO: node->info.fifo.pipe = NULL; 4b5e6: 42ac 004c clrl %a4@(76) break; 4b5ea: 601c bras 4b608 default: assert(0); 4b5ec: 4879 0005 aa34 pea 5aa34 <== NOT EXECUTED 4b5f2: 4879 0005 aa7f pea 5aa7f <__FUNCTION__.5853> <== NOT EXECUTED 4b5f8: 4878 005c pea 5c <== NOT EXECUTED 4b5fc: 4879 0005 aa36 pea 5aa36 <== NOT EXECUTED 4b602: 4eb9 0004 8ddc jsr 48ddc <__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; 4b608: 206b 0010 moveal %a3@(16),%a0 4b60c: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4b610: 2028 0004 movel %a0@(4),%d0 4b614: 5280 addql #1,%d0 4b616: 2140 0004 movel %d0,%a0@(4) } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4b61a: 2053 moveal %a3@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4b61c: 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; 4b620: 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 ); 4b624: 2f0c movel %a4,%sp@- 4b626: 4868 004c pea %a0@(76) 4b62a: 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; 4b630: 508f addql #8,%sp } 4b632: 200c movel %a4,%d0 4b634: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 4b63a: 4e5e unlk %fp ... 000435b2 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 435b2: 4e56 ffe0 linkw %fp,#-32 435b6: 206e 0008 moveal %fp@(8),%a0 435ba: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 435be: 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 ); 435c2: 4a88 tstl %a0 435c4: 6612 bnes 435d8 435c6: 4879 0005 faa6 pea 5faa6 <== NOT EXECUTED 435cc: 4879 0005 fb74 pea 5fb74 <__FUNCTION__.6604> <== NOT EXECUTED 435d2: 4878 0084 pea 84 <== NOT EXECUTED 435d6: 6014 bras 435ec <== NOT EXECUTED assert( level >= 0 ); 435d8: 4a82 tstl %d2 435da: 6c1c bges 435f8 435dc: 4879 0005 fab4 pea 5fab4 <== NOT EXECUTED 435e2: 4879 0005 fb74 pea 5fb74 <__FUNCTION__.6604> <== NOT EXECUTED 435e8: 4878 0086 pea 86 <== NOT EXECUTED 435ec: 4879 0005 f9fa pea 5f9fa <== NOT EXECUTED 435f2: 4eb9 0004 3d10 jsr 43d10 <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 435f8: 7001 moveq #1,%d0 435fa: b0a8 0048 cmpl %a0@(72),%d0 435fe: 6712 beqs 43612 43600: 4879 0005 fabf pea 5fabf <== NOT EXECUTED 43606: 4879 0005 fb74 pea 5fb74 <__FUNCTION__.6604> <== NOT EXECUTED 4360c: 4878 0088 pea 88 <== NOT EXECUTED 43610: 60da bras 435ec <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 43612: 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 ); 43614: 2802 movel %d2,%d4 43616: 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, "...." ); 4361c: 4bf9 0005 0c1c lea 50c1c ,%a5 IMFS_print_jnode( the_jnode ); 43622: 49f9 0004 3436 lea 43436 ,%a4 if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 43628: 5284 addql #1,%d4 4362a: 47f9 0004 35b2 lea 435b2 ,%a3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 43630: 2468 004c moveal %a0@(76),%a2 43634: 6034 bras 4366a !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 43636: 4283 clrl %d3 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 43638: 2079 0006 1610 moveal 61610 <_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++ ) 4363e: 5283 addql #1,%d3 fprintf(stdout, "...." ); 43640: 2f28 0008 movel %a0@(8),%sp@- 43644: 4879 0005 fae5 pea 5fae5 4364a: 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++ ) 4364c: 508f addql #8,%sp 4364e: b483 cmpl %d3,%d2 43650: 6ce6 bges 43638 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 43652: 2f0a movel %a2,%sp@- 43654: 4e94 jsr %a4@ if ( the_jnode->type == IMFS_DIRECTORY ) 43656: 588f addql #4,%sp 43658: 7001 moveq #1,%d0 4365a: b0aa 0048 cmpl %a2@(72),%d0 4365e: 6608 bnes 43668 IMFS_dump_directory( the_jnode, level + 1 ); 43660: 2f04 movel %d4,%sp@- 43662: 2f0a movel %a2,%sp@- 43664: 4e93 jsr %a3@ 43666: 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 ) { 43668: 2452 moveal %a2@,%a2 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 4366a: ba8a cmpl %a2,%d5 4366c: 66c8 bnes 43636 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 4366e: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 43674: 4e5e unlk %fp <== NOT EXECUTED 000482be : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 482be: 4e56 ff9c linkw %fp,#-100 482c2: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 482c6: 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 ); 482ca: 2a0e movel %fp,%d5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 482cc: 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 ); 482ce: 0685 ffff ffc7 addil #-57,%d5 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 482d4: 2e3c 0004 8988 movel #297352,%d7 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 482da: 2a6e 0008 moveal %fp@(8),%a5 482de: 286e 000c moveal %fp@(12),%a4 482e2: 282e 0010 movel %fp@(16),%d4 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 482e6: 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 ); 482e8: 486e fffc pea %fp@(-4) 482ec: 2f05 movel %d5,%sp@- 482ee: 2f0c movel %a4,%sp@- 482f0: 4875 2800 pea %a5@(00000000,%d2:l) 482f4: 4eb9 0004 8a18 jsr 48a18 pathnamelen -= len; 482fa: 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 ); 482fe: 2600 movel %d0,%d3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 48300: 4fef 0010 lea %sp@(16),%sp 48304: 4a92 tstl %a2@ 48306: 6700 00dc beqw 483e4 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 4830a: 4a80 tstl %d0 4830c: 671c beqs 4832a if ( node->type == IMFS_DIRECTORY ) 4830e: 7001 moveq #1,%d0 48310: b0ab 0048 cmpl %a3@(72),%d0 48314: 6614 bnes 4832a if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 48316: 4878 0001 pea 1 4831a: 2f0a movel %a2,%sp@- 4831c: 4eb9 0004 813e jsr 4813e 48322: 508f addql #8,%sp 48324: 4a80 tstl %d0 48326: 6700 0162 beqw 4848a rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 4832a: 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; 4832c: 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; 4832e: 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 ) { 48330: 7003 moveq #3,%d0 48332: b083 cmpl %d3,%d0 48334: 6742 beqs 48378 48336: 7204 moveq #4,%d1 48338: b283 cmpl %d3,%d1 4833a: 6700 00c0 beqw 483fc 4833e: 103c 0002 moveb #2,%d0 48342: b083 cmpl %d3,%d0 48344: 6600 00c8 bnew 4840e case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 48348: 2079 0005 b5b4 moveal 5b5b4 ,%a0 4834e: b7e8 0018 cmpal %a0@(24),%a3 48352: 6794 beqs 482e8 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 48354: 206a 0010 moveal %a2@(16),%a0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 48358: b7e8 001c cmpal %a0@(28),%a3 4835c: 6614 bnes 48372 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 4835e: 4878 0014 pea 14 48362: 260e movel %fp,%d3 48364: 4868 0008 pea %a0@(8) 48368: 0683 ffff ffe8 addil #-24,%d3 4836e: 6000 00ca braw 4843a pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 48372: 266b 0008 moveal %a3@(8),%a3 48376: 6068 bras 483e0 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 48378: 202b 0048 movel %a3@(72),%d0 4837c: 7203 moveq #3,%d1 4837e: b280 cmpl %d0,%d1 48380: 6614 bnes 48396 IMFS_evaluate_hard_link( pathloc, 0 ); 48382: 42a7 clrl %sp@- 48384: 2f0a movel %a2,%sp@- 48386: 4eb9 0004 819c jsr 4819c node = pathloc->node_access; 4838c: 2652 moveal %a2@,%a3 if ( !node ) 4838e: 508f addql #8,%sp 48390: 4a8b tstl %a3 48392: 661e bnes 483b2 48394: 6024 bras 483ba <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 48396: 7204 moveq #4,%d1 48398: b280 cmpl %d0,%d1 4839a: 6616 bnes 483b2 result = IMFS_evaluate_sym_link( pathloc, 0 ); 4839c: 42a7 clrl %sp@- 4839e: 2f0a movel %a2,%sp@- 483a0: 4eb9 0004 81f6 jsr 481f6 node = pathloc->node_access; 483a6: 2652 moveal %a2@,%a3 if ( result == -1 ) 483a8: 508f addql #8,%sp 483aa: 72ff moveq #-1,%d1 483ac: b280 cmpl %d0,%d1 483ae: 6700 00ea beqw 4849a /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 483b2: 7001 moveq #1,%d0 483b4: b0ab 0048 cmpl %a3@(72),%d0 483b8: 6712 beqs 483cc rtems_set_errno_and_return_minus_one( ENOTDIR ); 483ba: 4eb9 0004 ca88 jsr 4ca88 <__errno> 483c0: 7e14 moveq #20,%d7 483c2: 76ff moveq #-1,%d3 483c4: 2040 moveal %d0,%a0 483c6: 2087 movel %d7,%a0@ 483c8: 6000 00d2 braw 4849c /* * 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 ) { 483cc: 206b 0058 moveal %a3@(88),%a0 483d0: 4a88 tstl %a0 483d2: 6656 bnes 4842a /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 483d4: 2f05 movel %d5,%sp@- 483d6: 2047 moveal %d7,%a0 483d8: 2f0b movel %a3,%sp@- 483da: 4e90 jsr %a0@ if ( !node ) 483dc: 508f addql #8,%sp /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 483de: 2640 moveal %d0,%a3 if ( !node ) 483e0: 4a8b tstl %a3 483e2: 6612 bnes 483f6 rtems_set_errno_and_return_minus_one( ENOENT ); 483e4: 4eb9 0004 ca88 jsr 4ca88 <__errno> 483ea: 7c02 moveq #2,%d6 483ec: 76ff moveq #-1,%d3 483ee: 2040 moveal %d0,%a0 483f0: 2086 movel %d6,%a0@ 483f2: 6000 00a8 braw 4849c /* * Set the node access to the point we have found. */ pathloc->node_access = node; 483f6: 248b movel %a3,%a2@ break; 483f8: 6000 feee braw 482e8 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 483fc: 4eb9 0004 ca88 jsr 4ca88 <__errno> 48402: 7a5b moveq #91,%d5 48404: 76ff moveq #-1,%d3 48406: 2040 moveal %d0,%a0 48408: 2085 movel %d5,%a0@ 4840a: 6000 0090 braw 4849c /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 4840e: 4a83 tstl %d3 48410: 6708 beqs 4841a 48412: 7004 moveq #4,%d0 48414: b083 cmpl %d3,%d0 48416: 6600 fed0 bnew 482e8 * 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 ) { 4841a: 7201 moveq #1,%d1 4841c: b2ab 0048 cmpl %a3@(72),%d1 48420: 664e bnes 48470 if ( node->info.directory.mt_fs != NULL ) { 48422: 206b 0058 moveal %a3@(88),%a0 48426: 4a88 tstl %a0 48428: 6746 beqs 48470 newloc = node->info.directory.mt_fs->mt_fs_root; 4842a: 4878 0014 pea 14 4842e: 260e movel %fp,%d3 48430: 0683 ffff ffe8 addil #-24,%d3 48436: 4868 001c pea %a0@(28) 4843a: 2f03 movel %d3,%sp@- 4843c: 47f9 0004 d2a8 lea 4d2a8 ,%a3 48442: 4e93 jsr %a3@ *pathloc = newloc; 48444: 4878 0014 pea 14 48448: 2f03 movel %d3,%sp@- 4844a: 2f0a movel %a2,%sp@- 4844c: 4e93 jsr %a3@ return (*pathloc->ops->evalpath_h)( &pathname[i-len], 4844e: 206e fffc moveal %fp@(-4),%a0 48452: 9488 subl %a0,%d2 48454: 2f0a movel %a2,%sp@- 48456: 226a 000c moveal %a2@(12),%a1 4845a: 2f04 movel %d4,%sp@- 4845c: 4874 8800 pea %a4@(00000000,%a0:l) 48460: 4875 2800 pea %a5@(00000000,%d2:l) 48464: 2051 moveal %a1@,%a0 48466: 4e90 jsr %a0@ 48468: 4fef 0028 lea %sp@(40),%sp 4846c: 2600 movel %d0,%d3 4846e: 602c bras 4849c flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 48470: 2f0a movel %a2,%sp@- 48472: 4eb9 0004 80d0 jsr 480d0 48478: 2600 movel %d0,%d3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 4847a: 2e84 movel %d4,%sp@ 4847c: 2f0a movel %a2,%sp@- 4847e: 4eb9 0004 813e jsr 4813e 48484: 508f addql #8,%sp 48486: 4a80 tstl %d0 48488: 6612 bnes 4849c rtems_set_errno_and_return_minus_one( EACCES ); 4848a: 4eb9 0004 ca88 jsr 4ca88 <__errno> 48490: 780d moveq #13,%d4 48492: 76ff moveq #-1,%d3 48494: 2040 moveal %d0,%a0 48496: 2084 movel %d4,%a0@ 48498: 6002 bras 4849c 4849a: 2600 movel %d0,%d3 <== NOT EXECUTED return result; } 4849c: 2003 movel %d3,%d0 4849e: 4cee 3cfc ff9c moveml %fp@(-100),%d2-%d7/%a2-%a5 484a4: 4e5e unlk %fp <== NOT EXECUTED 0004819c : /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 4819c: 7003 moveq #3,%d0 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 4819e: 4e56 0000 linkw %fp,#0 481a2: 2f0a movel %a2,%sp@- 481a4: 246e 0008 moveal %fp@(8),%a2 IMFS_jnode_t *jnode = node->node_access; 481a8: 2052 moveal %a2@,%a0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 481aa: b0a8 0048 cmpl %a0@(72),%d0 481ae: 670c beqs 481bc rtems_fatal_error_occurred (0xABCD0000); 481b0: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 481b6: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 481bc: 24a8 004c movel %a0@(76),%a2@ IMFS_Set_handlers( node ); 481c0: 2f0a movel %a2,%sp@- 481c2: 4eb9 0004 80d0 jsr 480d0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 481c8: 2f2e 000c movel %fp@(12),%sp@- 481cc: 2f0a movel %a2,%sp@- 481ce: 4eb9 0004 813e jsr 4813e 481d4: 4fef 000c lea %sp@(12),%sp 481d8: 4a80 tstl %d0 481da: 6704 beqs 481e0 481dc: 4280 clrl %d0 481de: 600e bras 481ee rtems_set_errno_and_return_minus_one( EACCES ); 481e0: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 481e6: 720d moveq #13,%d1 <== NOT EXECUTED 481e8: 2040 moveal %d0,%a0 <== NOT EXECUTED 481ea: 70ff moveq #-1,%d0 <== NOT EXECUTED 481ec: 2081 movel %d1,%a0@ <== NOT EXECUTED return result; } 481ee: 246e fffc moveal %fp@(-4),%a2 481f2: 4e5e unlk %fp <== NOT EXECUTED 000481f6 : /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 481f6: 7004 moveq #4,%d0 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 481f8: 4e56 fff0 linkw %fp,#-16 481fc: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 48200: 246e 0008 moveal %fp@(8),%a2 48204: 242e 000c movel %fp@(12),%d2 IMFS_jnode_t *jnode = node->node_access; 48208: 2652 moveal %a2@,%a3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 4820a: b0ab 0048 cmpl %a3@(72),%d0 4820e: 6708 beqs 48218 rtems_fatal_error_occurred (0xABCD0000); 48210: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 48216: 600c bras 48224 <== NOT EXECUTED if ( !jnode->Parent ) 48218: 202b 0008 movel %a3@(8),%d0 4821c: 660c bnes 4822a rtems_fatal_error_occurred( 0xBAD00000 ); 4821e: 2f3c bad0 0000 movel #-1160773632,%sp@- <== NOT EXECUTED 48224: 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; 4822a: 2480 movel %d0,%a2@ rtems_filesystem_get_sym_start_loc( 4822c: 206b 004c moveal %a3@(76),%a0 48230: 762f moveq #47,%d3 48232: 1010 moveb %a0@,%d0 48234: 1200 moveb %d0,%d1 48236: 49c1 extbl %d1 48238: b681 cmpl %d1,%d3 4823a: 6710 beqs 4824c 4823c: 163c 005c moveb #92,%d3 48240: b681 cmpl %d1,%d3 48242: 6708 beqs 4824c 48244: 4a00 tstb %d0 48246: 6704 beqs 4824c 48248: 4280 clrl %d0 4824a: 601e bras 4826a 4824c: 4878 0014 pea 14 48250: 2079 0005 b5b4 moveal 5b5b4 ,%a0 48256: 41e8 0018 lea %a0@(24),%a0 4825a: 2f08 movel %a0,%sp@- 4825c: 2f0a movel %a2,%sp@- 4825e: 4eb9 0004 d2a8 jsr 4d2a8 48264: 4fef 000c lea %sp@(12),%sp 48268: 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] ), 4826a: 266b 004c moveal %a3@(76),%a3 4826e: d7c0 addal %d0,%a3 48270: 2f0b movel %a3,%sp@- 48272: 4eb9 0004 de54 jsr 4de54 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 48278: 2e8a movel %a2,%sp@ 4827a: 2f02 movel %d2,%sp@- 4827c: 2f00 movel %d0,%sp@- 4827e: 2f0b movel %a3,%sp@- 48280: 4eb9 0004 82be jsr 482be 48286: 2640 moveal %d0,%a3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 48288: 2f0a movel %a2,%sp@- 4828a: 4eb9 0004 80d0 jsr 480d0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 48290: 2f02 movel %d2,%sp@- 48292: 2f0a movel %a2,%sp@- 48294: 4eb9 0004 813e jsr 4813e 4829a: 4fef 001c lea %sp@(28),%sp 4829e: 4a80 tstl %d0 482a0: 6610 bnes 482b2 rtems_set_errno_and_return_minus_one( EACCES ); 482a2: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 482a8: 740d moveq #13,%d2 <== NOT EXECUTED 482aa: 2040 moveal %d0,%a0 <== NOT EXECUTED 482ac: 367c ffff moveaw #-1,%a3 <== NOT EXECUTED 482b0: 2082 movel %d2,%a0@ <== NOT EXECUTED return result; } 482b2: 200b movel %a3,%d0 482b4: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 482ba: 4e5e unlk %fp <== NOT EXECUTED 0004b640 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4b640: 4e56 fff8 linkw %fp,#-8 4b644: 206e 0008 moveal %fp@(8),%a0 4b648: 2f0a movel %a2,%sp@- IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 4b64a: 2450 moveal %a0@,%a2 int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4b64c: 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 ) ) 4b64e: 4282 clrl %d2 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 4b650: 4eb9 0004 90f4 jsr 490f4 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4b656: 4281 clrl %d1 4b658: 3400 movew %d0,%d2 4b65a: 322a 0038 movew %a2@(56),%d1 4b65e: b282 cmpl %d2,%d1 4b660: 6714 beqs 4b676 4b662: 4a40 tstw %d0 <== NOT EXECUTED 4b664: 6710 beqs 4b676 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 4b666: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4b66c: 7201 moveq #1,%d1 <== NOT EXECUTED 4b66e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b670: 70ff moveq #-1,%d0 <== NOT EXECUTED 4b672: 2081 movel %d1,%a0@ <== NOT EXECUTED 4b674: 6030 bras 4b6a6 <== 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); 4b676: 202a 002e movel %a2@(46),%d0 4b67a: 222e 000c movel %fp@(12),%d1 4b67e: 0280 ffff f000 andil #-4096,%d0 4b684: 0281 0000 0fff andil #4095,%d1 4b68a: 8280 orl %d0,%d1 4b68c: 2541 002e movel %d1,%a2@(46) IMFS_update_ctime( jnode ); 4b690: 42a7 clrl %sp@- 4b692: 486e fff8 pea %fp@(-8) 4b696: 4eb9 0004 9108 jsr 49108 4b69c: 256e fff8 0044 movel %fp@(-8),%a2@(68) return 0; 4b6a2: 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 ); 4b6a4: 4280 clrl %d0 return 0; } 4b6a6: 242e fff0 movel %fp@(-16),%d2 4b6aa: 246e fff4 moveal %fp@(-12),%a2 4b6ae: 4e5e unlk %fp ... 000488e2 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 488e2: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 488e6: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 488ea: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 488ee: 246b 0038 moveal %a3@(56),%a2 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 488f2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 488f4: 486a 004c pea %a2@(76) <== NOT EXECUTED 488f8: 4eb9 0004 b024 jsr 4b024 <== NOT EXECUTED if (! err) { 488fe: 508f addql #8,%sp <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 48900: 2400 movel %d0,%d2 <== NOT EXECUTED if (! err) { 48902: 662a bnes 4892e <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 48904: 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) 4890a: 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; 4890c: 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) 48910: 4eb9 0004 91da jsr 491da <== NOT EXECUTED 48916: 588f addql #4,%sp <== NOT EXECUTED 48918: 4a80 tstl %d0 <== NOT EXECUTED 4891a: 6624 bnes 48940 <== NOT EXECUTED 4891c: 4a6a 0032 tstw %a2@(50) <== NOT EXECUTED 48920: 661e bnes 48940 <== NOT EXECUTED free(jnode); 48922: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48924: 4eb9 0004 8f80 jsr 48f80 <== NOT EXECUTED 4892a: 588f addql #4,%sp <== NOT EXECUTED 4892c: 6012 bras 48940 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 4892e: 4a80 tstl %d0 <== NOT EXECUTED 48930: 6c0e bges 48940 <== NOT EXECUTED 48932: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48938: 4482 negl %d2 <== NOT EXECUTED 4893a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4893c: 2082 movel %d2,%a0@ <== NOT EXECUTED 4893e: 74ff moveq #-1,%d2 <== NOT EXECUTED } 48940: 2002 movel %d2,%d0 <== NOT EXECUTED 48942: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48948: 4e5e unlk %fp <== NOT EXECUTED 000487aa : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 487aa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 487ae: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 487b2: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 487b6: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 487ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED int err; if (command == FIONBIO) { 487bc: 0c80 8004 667e cmpil #-2147195266,%d0 <== NOT EXECUTED 487c2: 6620 bnes 487e4 <== NOT EXECUTED if (buffer == NULL) 487c4: 4a89 tstl %a1 <== NOT EXECUTED 487c6: 6604 bnes 487cc <== NOT EXECUTED 487c8: 74f2 moveq #-14,%d2 <== NOT EXECUTED 487ca: 6034 bras 48800 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 487cc: 4a91 tstl %a1@ <== NOT EXECUTED 487ce: 670a beqs 487da <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 487d0: 7001 moveq #1,%d0 <== NOT EXECUTED 487d2: 4282 clrl %d2 <== NOT EXECUTED 487d4: 81a8 0014 orl %d0,%a0@(20) <== NOT EXECUTED 487d8: 6034 bras 4880e <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 487da: 70fe moveq #-2,%d0 <== NOT EXECUTED 487dc: 4282 clrl %d2 <== NOT EXECUTED 487de: c1a8 0014 andl %d0,%a0@(20) <== NOT EXECUTED 487e2: 602a bras 4880e <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 487e4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 487e6: 2068 0038 moveal %a0@(56),%a0 <== NOT EXECUTED 487ea: 2f09 movel %a1,%sp@- <== NOT EXECUTED 487ec: 2f00 movel %d0,%sp@- <== NOT EXECUTED 487ee: 2f28 004c movel %a0@(76),%sp@- <== NOT EXECUTED 487f2: 4eb9 0004 ac86 jsr 4ac86 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 487f8: 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); 487fc: 2400 movel %d0,%d2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 487fe: 6c0e bges 4880e <== NOT EXECUTED 48800: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48806: 4482 negl %d2 <== NOT EXECUTED 48808: 2040 moveal %d0,%a0 <== NOT EXECUTED 4880a: 2082 movel %d2,%a0@ <== NOT EXECUTED 4880c: 74ff moveq #-1,%d2 <== NOT EXECUTED } 4880e: 2002 movel %d2,%d0 <== NOT EXECUTED 48810: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 48814: 4e5e unlk %fp <== NOT EXECUTED 00048754 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 48754: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48758: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4875c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 48760: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48762: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 48766: 2068 0038 moveal %a0@(56),%a0 <== NOT EXECUTED 4876a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4876e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 48772: 2f28 004c movel %a0@(76),%sp@- <== NOT EXECUTED 48776: 4eb9 0004 ac2c jsr 4ac2c <== NOT EXECUTED IMFS_FIFO_RETURN(err); 4877c: 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); 48780: 2800 movel %d0,%d4 <== NOT EXECUTED 48782: 2600 movel %d0,%d3 <== NOT EXECUTED 48784: 5bc2 smi %d2 <== NOT EXECUTED 48786: 49c2 extbl %d2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 48788: 4a82 tstl %d2 <== NOT EXECUTED 4878a: 6a10 bpls 4879c <== NOT EXECUTED 4878c: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48792: 4484 negl %d4 <== NOT EXECUTED 48794: 2040 moveal %d0,%a0 <== NOT EXECUTED 48796: 74ff moveq #-1,%d2 <== NOT EXECUTED 48798: 76ff moveq #-1,%d3 <== NOT EXECUTED 4879a: 2084 movel %d4,%a0@ <== NOT EXECUTED } 4879c: 2203 movel %d3,%d1 <== NOT EXECUTED 4879e: 2002 movel %d2,%d0 <== NOT EXECUTED 487a0: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 487a6: 4e5e unlk %fp <== NOT EXECUTED 00048880 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 48880: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 48884: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 48888: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4888a: 2f02 movel %d2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 4888c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4888e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 48892: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED rtems_libio_t *iop, void *buffer, size_t count ) { IMFS_jnode_t *jnode = iop->file_info; 48896: 2468 0038 moveal %a0@(56),%a2 <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 4889a: 2f2a 004c movel %a2@(76),%sp@- <== NOT EXECUTED 4889e: 4eb9 0004 ace6 jsr 4ace6 <== NOT EXECUTED if (err > 0) 488a4: 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); 488a8: 2400 movel %d0,%d2 <== NOT EXECUTED if (err > 0) 488aa: 6f16 bles 488c2 <== NOT EXECUTED IMFS_update_atime(jnode); 488ac: 42a7 clrl %sp@- <== NOT EXECUTED 488ae: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 488b2: 4eb9 0004 9108 jsr 49108 <== NOT EXECUTED 488b8: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED 488be: 508f addql #8,%sp <== NOT EXECUTED 488c0: 6012 bras 488d4 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 488c2: 4a80 tstl %d0 <== NOT EXECUTED 488c4: 670e beqs 488d4 <== NOT EXECUTED 488c6: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 488cc: 4482 negl %d2 <== NOT EXECUTED 488ce: 2040 moveal %d0,%a0 <== NOT EXECUTED 488d0: 2082 movel %d2,%a0@ <== NOT EXECUTED 488d2: 74ff moveq #-1,%d2 <== NOT EXECUTED } 488d4: 2002 movel %d2,%d0 <== NOT EXECUTED 488d6: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 488da: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 488de: 4e5e unlk %fp <== NOT EXECUTED 00048818 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 48818: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 4881c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 48820: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48822: 2f02 movel %d2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 48824: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48826: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4882a: 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; 4882e: 2468 0038 moveal %a0@(56),%a2 <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 48832: 2f2a 004c movel %a2@(76),%sp@- <== NOT EXECUTED 48836: 4eb9 0004 ae4e jsr 4ae4e <== NOT EXECUTED if (err > 0) { 4883c: 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); 48840: 2400 movel %d0,%d2 <== NOT EXECUTED if (err > 0) { 48842: 6f1c bles 48860 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 48844: 42a7 clrl %sp@- <== NOT EXECUTED 48846: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4884a: 4eb9 0004 9108 jsr 49108 <== NOT EXECUTED 48850: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 48854: 508f addql #8,%sp <== NOT EXECUTED 48856: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED 4885a: 2540 0040 movel %d0,%a2@(64) <== NOT EXECUTED 4885e: 6012 bras 48872 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 48860: 4a80 tstl %d0 <== NOT EXECUTED 48862: 670e beqs 48872 <== NOT EXECUTED 48864: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4886a: 4482 negl %d2 <== NOT EXECUTED 4886c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4886e: 2082 movel %d2,%a0@ <== NOT EXECUTED 48870: 74ff moveq #-1,%d2 <== NOT EXECUTED } 48872: 2002 movel %d2,%d0 <== NOT EXECUTED 48874: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 48878: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 4887c: 4e5e unlk %fp <== NOT EXECUTED 00048988 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 48988: 4e56 fff0 linkw %fp,#-16 4898c: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ 48990: 246e 0008 moveal %fp@(8),%a2 48994: 242e 000c movel %fp@(12),%d2 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 48998: 4a8a tstl %a2 4899a: 661c bnes 489b8 4899c: 4879 0005 ae49 pea 5ae49 <_global_impure_ptr+0x1b1> <== NOT EXECUTED 489a2: 4879 0005 a66f pea 5a66f <__FUNCTION__.5390> <== NOT EXECUTED 489a8: 4878 002a pea 2a <== NOT EXECUTED 489ac: 4879 0005 a61e pea 5a61e <== NOT EXECUTED 489b2: 4eb9 0004 8ddc jsr 48ddc <__assert_func> <== NOT EXECUTED if ( !name ) 489b8: 4a82 tstl %d2 489ba: 674e beqs 48a0a /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 489bc: 4879 0005 a66a pea 5a66a 489c2: 49f9 0004 d990 lea 4d990 ,%a4 489c8: 2f02 movel %d2,%sp@- 489ca: 4e94 jsr %a4@ 489cc: 508f addql #8,%sp 489ce: 4a80 tstl %d0 489d0: 673a beqs 48a0c return directory; if ( !strcmp( name, dotdotname ) ) 489d2: 4879 0005 a66c pea 5a66c 489d8: 2f02 movel %d2,%sp@- 489da: 4e94 jsr %a4@ 489dc: 508f addql #8,%sp 489de: 4a80 tstl %d0 489e0: 6606 bnes 489e8 return directory->Parent; 489e2: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED 489e6: 6024 bras 48a0c <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 489e8: 266a 004c moveal %a2@(76),%a3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 489ec: 45ea 0050 lea %a2@(80),%a2 489f0: 6014 bras 48a06 !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 ) ) 489f2: 486b 000c pea %a3@(12) 489f6: 2f02 movel %d2,%sp@- 489f8: 4e94 jsr %a4@ 489fa: 508f addql #8,%sp 489fc: 4a80 tstl %d0 489fe: 6604 bnes 48a04 48a00: 244b moveal %a3,%a2 48a02: 6008 bras 48a0c 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 ) { 48a04: 2653 moveal %a3@,%a3 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 48a06: b5cb cmpal %a3,%a2 48a08: 66e8 bnes 489f2 48a0a: 95ca subal %a2,%a2 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 48a0c: 200a movel %a2,%d0 48a0e: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 48a14: 4e5e unlk %fp <== NOT EXECUTED 0004d2a8 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4d2a8: 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; 4d2ac: 200e movel %fp,%d0 4d2ae: 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 ) { 4d2b4: 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; 4d2b8: 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 ); 4d2bc: 2400 movel %d0,%d2 4d2be: 4bf9 0004 c9e4 lea 4c9e4 ,%a5 if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( NULL, &loc ); 4d2c4: 49f9 0004 2d88 lea 42d88 ,%a4 ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4d2ca: 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; 4d2ce: 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; 4d2d2: 246b 001c moveal %a3@(28),%a2 loc = temp_mt_entry->mt_fs_root; 4d2d6: 2f00 movel %d0,%sp@- 4d2d8: 4eb9 0005 1ccc jsr 51ccc /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 4d2de: 4fef 000c lea %sp@(12),%sp 4d2e2: 42ab 001c clrl %a3@(28) do { next = jnode->Parent; 4d2e6: 266a 0008 moveal %a2@(8),%a3 loc.node_access = (void *)jnode; 4d2ea: 2d4a ffec movel %a2,%fp@(-20) IMFS_Set_handlers( &loc ); 4d2ee: 2f02 movel %d2,%sp@- 4d2f0: 4e95 jsr %a5@ if ( jnode->type != IMFS_DIRECTORY ) { 4d2f2: 588f addql #4,%sp */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4d2f4: 200a movel %a2,%d0 4d2f6: 0680 0000 0050 addil #80,%d0 4d2fc: 7201 moveq #1,%d1 4d2fe: b2aa 0048 cmpl %a2@(72),%d1 4d302: 6606 bnes 4d30a 4d304: b0aa 004c cmpl %a2@(76),%d0 4d308: 660e bnes 4d318 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 4d30a: 2f02 movel %d2,%sp@- 4d30c: 42a7 clrl %sp@- 4d30e: 4e94 jsr %a4@ if (result != 0) 4d310: 508f addql #8,%sp 4d312: 4a80 tstl %d0 4d314: 6626 bnes 4d33c 4d316: 244b moveal %a3,%a2 return -1; jnode = next; } if ( jnode != NULL ) { 4d318: 4a8a tstl %a2 4d31a: 6724 beqs 4d340 if ( jnode->type == IMFS_DIRECTORY ) { 4d31c: 7001 moveq #1,%d0 4d31e: b0aa 0048 cmpl %a2@(72),%d0 4d322: 66c2 bnes 4d2e6 4d324: 200a movel %a2,%d0 4d326: 0680 0000 0050 addil #80,%d0 4d32c: b0aa 004c cmpl %a2@(76),%d0 4d330: 67b4 beqs 4d2e6 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); 4d332: 246a 004c moveal %a2@(76),%a2 } } } while (jnode != NULL); 4d336: 4a8a tstl %a2 4d338: 66ac bnes 4d2e6 4d33a: 6004 bras 4d340 <== NOT EXECUTED 4d33c: 70ff moveq #-1,%d0 <== NOT EXECUTED 4d33e: 6002 bras 4d342 <== NOT EXECUTED 4d340: 4280 clrl %d0 return 0; } 4d342: 4cee 3c04 ffd8 moveml %fp@(-40),%d2/%a2-%a5 4d348: 4e5e unlk %fp <== NOT EXECUTED 00048a18 : register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 48a18: 4280 clrl %d0 const char *path, int pathlen, char *token, int *token_len ) { 48a1a: 4e56 fff0 linkw %fp,#-16 48a1e: 226e 0008 moveal %fp@(8),%a1 48a22: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 48a26: 206e 000c moveal %fp@(12),%a0 48a2a: 246e 0010 moveal %fp@(16),%a2 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 48a2e: 1211 moveb %a1@,%d1 while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 48a30: 6016 bras 48a48 token[i] = c; 48a32: 1581 0800 moveb %d1,%a2@(00000000,%d0:l) if ( i == IMFS_NAME_MAX ) 48a36: 7220 moveq #32,%d1 48a38: b280 cmpl %d0,%d1 48a3a: 6606 bnes 48a42 48a3c: 7404 moveq #4,%d2 48a3e: 6000 0084 braw 48ac4 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 48a42: 5280 addql #1,%d0 48a44: 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) ) { 48a48: 762f moveq #47,%d3 48a4a: 1401 moveb %d1,%d2 48a4c: 49c2 extbl %d2 48a4e: b682 cmpl %d2,%d3 48a50: 6710 beqs 48a62 48a52: 163c 005c moveb #92,%d3 48a56: b682 cmpl %d2,%d3 48a58: 6708 beqs 48a62 48a5a: 4a01 tstb %d1 48a5c: 6704 beqs 48a62 48a5e: b1c0 cmpal %d0,%a0 48a60: 6ed0 bgts 48a32 /* * Copy a seperator into token. */ if ( i == 0 ) { 48a62: 4a80 tstl %d0 48a64: 6610 bnes 48a76 token[i] = c; 48a66: 1481 moveb %d1,%a2@ if ( (token[i] != '\0') && pathlen ) { 48a68: 6720 beqs 48a8a 48a6a: 4a88 tstl %a0 48a6c: 671c beqs 48a8a 48a6e: 7401 moveq #1,%d2 48a70: 103c 0001 moveb #1,%d0 48a74: 6016 bras 48a8c i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 48a76: 4a32 08ff tstb %a2@(ffffffff,%d0:l) 48a7a: 6604 bnes 48a80 48a7c: 7403 moveq #3,%d2 <== NOT EXECUTED 48a7e: 600c bras 48a8c <== NOT EXECUTED token[i] = '\0'; 48a80: 7403 moveq #3,%d2 48a82: 4201 clrb %d1 48a84: 1581 0800 moveb %d1,%a2@(00000000,%d0:l) 48a88: 6002 bras 48a8c 48a8a: 4282 clrl %d2 /* * Set token_len to the number of characters copied. */ *token_len = i; 48a8c: 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 ) { 48a90: 7603 moveq #3,%d3 /* * Set token_len to the number of characters copied. */ *token_len = i; 48a92: 2080 movel %d0,%a0@ /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 48a94: b682 cmpl %d2,%d3 48a96: 662c bnes 48ac4 if ( strcmp( token, "..") == 0 ) 48a98: 4879 0005 a686 pea 5a686 <__FUNCTION__.5390+0x17> 48a9e: 47f9 0004 d990 lea 4d990 ,%a3 48aa4: 2f0a movel %a2,%sp@- 48aa6: 4e93 jsr %a3@ 48aa8: 508f addql #8,%sp 48aaa: 4a80 tstl %d0 48aac: 6604 bnes 48ab2 48aae: 7402 moveq #2,%d2 48ab0: 6012 bras 48ac4 type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 48ab2: 4879 0005 a687 pea 5a687 <__FUNCTION__.5390+0x18> 48ab8: 2f0a movel %a2,%sp@- 48aba: 4e93 jsr %a3@ 48abc: 508f addql #8,%sp 48abe: 4a80 tstl %d0 48ac0: 6602 bnes 48ac4 48ac2: 7401 moveq #1,%d2 type = IMFS_CURRENT_DIR; } return type; } 48ac4: 2002 movel %d2,%d0 48ac6: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 48acc: 4e5e unlk %fp <== NOT EXECUTED 00048ad0 : IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 48ad0: 4281 clrl %d1 48ad2: 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 ) { 48ad4: 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, 48ad8: 2079 0005 b4a8 moveal 5b4a8 ,%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 ) { 48ade: 48d7 040c moveml %d2-%d3/%a2,%sp@ 48ae2: 246e 0008 moveal %fp@(8),%a2 48ae6: 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) { 48aea: 5281 addql #1,%d1 48aec: b1c0 cmpal %d0,%a0 48aee: 670e beqs 48afe 48af0: 7606 moveq #6,%d3 48af2: d080 addl %d0,%d0 48af4: b681 cmpl %d1,%d3 48af6: 66f2 bnes 48aea 48af8: 203c 0000 0080 movel #128,%d0 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 48afe: 23c0 0005 c4ac movel %d0,5c4ac /* * 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(); 48b04: 4eb9 0004 b4f2 jsr 4b4f2 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; 48b0a: 4878 0030 pea 30 48b0e: 4879 0005 aa04 pea 5aa04 48b14: 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; 48b18: 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(); 48b1e: 2540 001c movel %d0,%a2@(28) temp_mt_entry->mt_fs_root.handlers = directory_handlers; 48b22: 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; 48b26: 4eb9 0004 d2a8 jsr 4d2a8 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 48b2c: 4878 0010 pea 10 48b30: 4878 0001 pea 1 48b34: 4eb9 0004 8ea0 jsr 48ea0 if ( !fs_info ) { 48b3a: 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 ) ); 48b3e: 2040 moveal %d0,%a0 if ( !fs_info ) { 48b40: 4a80 tstl %d0 48b42: 661c bnes 48b60 free(temp_mt_entry->mt_fs_root.node_access); 48b44: 2f2a 001c movel %a2@(28),%sp@- <== NOT EXECUTED 48b48: 4eb9 0004 8f80 jsr 48f80 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 48b4e: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48b54: 588f addql #4,%sp <== NOT EXECUTED 48b56: 720c moveq #12,%d1 <== NOT EXECUTED 48b58: 2040 moveal %d0,%a0 <== NOT EXECUTED 48b5a: 70ff moveq #-1,%d0 <== NOT EXECUTED 48b5c: 2081 movel %d1,%a0@ <== NOT EXECUTED 48b5e: 6038 bras 48b98 <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; 48b60: 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; 48b62: 7601 moveq #1,%d3 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; 48b64: 2140 0004 movel %d0,%a0@(4) /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 48b68: 2039 0005 c4b0 movel 5c4b0 ,%d0 48b6e: 2200 movel %d0,%d1 48b70: 5281 addql #1,%d1 fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 48b72: 226a 001c moveal %a2@(28),%a1 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 48b76: 23c1 0005 c4b0 movel %d1,5c4b0 fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 48b7c: 216e 0010 0008 movel %fp@(16),%a0@(8) /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 48b82: 2080 movel %d0,%a0@ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 48b84: 2142 000c movel %d2,%a0@(12) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 48b88: 2343 0034 movel %d3,%a1@(52) 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; 48b8c: 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(); 48b90: 4eb9 0004 ac36 jsr 4ac36 48b96: 4280 clrl %d0 return 0; } 48b98: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 48b9e: 4e5e unlk %fp ... 00042a68 : /* * 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 ) 42a68: 4280 clrl %d0 42a6a: 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 */ ) { 42a6c: 4e56 ffbc linkw %fp,#-68 42a70: 206e 0008 moveal %fp@(8),%a0 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 42a74: 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 */ ) { 42a76: 2f03 movel %d3,%sp@- 42a78: 262e 0010 movel %fp@(16),%d3 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 42a7c: 2d48 ffe0 movel %a0,%fp@(-32) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 42a80: 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 */ ) { 42a84: 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 ) 42a86: b280 cmpl %d0,%d1 42a88: 6410 bccs 42a9a rtems_set_errno_and_return_minus_one( EMLINK ); 42a8a: 4eb9 0005 14ac jsr 514ac <__errno> 42a90: 741f moveq #31,%d2 42a92: 72ff moveq #-1,%d1 42a94: 2040 moveal %d0,%a0 42a96: 2082 movel %d2,%a0@ 42a98: 607c bras 42b16 /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 42a9a: 2f03 movel %d3,%sp@- 42a9c: 240e movel %fp,%d2 42a9e: 0682 ffff ffbf addil #-65,%d2 42aa4: 4eb9 0005 2828 jsr 52828 42aaa: 588f addql #4,%sp 42aac: 486e fffc pea %fp@(-4) 42ab0: 2f02 movel %d2,%sp@- 42ab2: 2f00 movel %d0,%sp@- 42ab4: 2f03 movel %d3,%sp@- 42ab6: 4eb9 0004 d3dc jsr 4d3dc * 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( 42abc: 486e ffe0 pea %fp@(-32) 42ac0: 2f3c 0000 a1ff movel #41471,%sp@- 42ac6: 2f02 movel %d2,%sp@- 42ac8: 4878 0003 pea 3 42acc: 2f2e 000c movel %fp@(12),%sp@- 42ad0: 4eb9 0004 c8d0 jsr 4c8d0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 42ad6: 4fef 0024 lea %sp@(36),%sp 42ada: 4a80 tstl %d0 42adc: 6610 bnes 42aee rtems_set_errno_and_return_minus_one( ENOMEM ); 42ade: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42ae4: 72ff moveq #-1,%d1 <== NOT EXECUTED 42ae6: 2040 moveal %d0,%a0 <== NOT EXECUTED 42ae8: 700c moveq #12,%d0 <== NOT EXECUTED 42aea: 2080 movel %d0,%a0@ <== NOT EXECUTED 42aec: 6028 bras 42b16 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 42aee: 206e ffe0 moveal %fp@(-32),%a0 42af2: 3028 0032 movew %a0@(50),%d0 42af6: 5280 addql #1,%d0 42af8: 3140 0032 movew %d0,%a0@(50) IMFS_update_ctime( info.hard_link.link_node ); 42afc: 42a7 clrl %sp@- 42afe: 486e fff4 pea %fp@(-12) 42b02: 4eb9 0004 3578 jsr 43578 42b08: 206e ffe0 moveal %fp@(-32),%a0 return 0; 42b0c: 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 ); 42b0e: 4281 clrl %d1 42b10: 216e fff4 0044 movel %fp@(-12),%a0@(68) return 0; } 42b16: 242e ffb4 movel %fp@(-76),%d2 42b1a: 2001 movel %d1,%d0 42b1c: 262e ffb8 movel %fp@(-72),%d3 42b20: 4e5e unlk %fp <== NOT EXECUTED 0004fa0c : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 4fa0c: 4e56 0000 linkw %fp,#0 4fa10: 206e 0008 moveal %fp@(8),%a0 4fa14: 2f0a movel %a2,%sp@- block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 4fa16: 4a88 tstl %a0 4fa18: 6612 bnes 4fa2c 4fa1a: 4879 0005 fbbe pea 5fbbe <== NOT EXECUTED 4fa20: 4879 0005 fd50 pea 5fd50 <__FUNCTION__.6024> <== NOT EXECUTED 4fa26: 4878 0169 pea 169 <== NOT EXECUTED 4fa2a: 6018 bras 4fa44 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4fa2c: 7005 moveq #5,%d0 4fa2e: b0a8 0048 cmpl %a0@(72),%d0 4fa32: 671c beqs 4fa50 4fa34: 4879 0005 fc0e pea 5fc0e <== NOT EXECUTED 4fa3a: 4879 0005 fd50 pea 5fd50 <__FUNCTION__.6024> <== NOT EXECUTED 4fa40: 4878 016d pea 16d <== NOT EXECUTED 4fa44: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4fa4a: 4eb9 0004 d5e8 jsr 4d5e8 <__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 ); 4fa50: 4878 0001 pea 1 4fa54: 2f2e 000c movel %fp@(12),%sp@- 4fa58: 2f08 movel %a0,%sp@- 4fa5a: 4eb9 0004 f5d0 jsr 4f5d0 if ( *block_entry_ptr ) 4fa60: 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 ); 4fa64: 2440 moveal %d0,%a2 if ( *block_entry_ptr ) 4fa66: 4a92 tstl %a2@ 4fa68: 6612 bnes 4fa7c #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 4fa6a: 4eb9 0004 f5ac jsr 4f5ac if ( !memory ) 4fa70: 4a80 tstl %d0 4fa72: 6606 bnes 4fa7a 4fa74: 103c 0001 moveb #1,%d0 <== NOT EXECUTED 4fa78: 6004 bras 4fa7e <== NOT EXECUTED return 1; *block_entry_ptr = memory; 4fa7a: 2480 movel %d0,%a2@ 4fa7c: 4280 clrl %d0 return 0; } 4fa7e: 246e fffc moveal %fp@(-4),%a2 4fa82: 4e5e unlk %fp <== NOT EXECUTED 0004fa86 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 4fa86: 4e56 ffd8 linkw %fp,#-40 4fa8a: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4fa8e: 246e 0008 moveal %fp@(8),%a2 4fa92: 242e 000c movel %fp@(12),%d2 4fa96: 262e 0010 movel %fp@(16),%d3 /* * Perform internal consistency checks */ assert( the_jnode ); 4fa9a: 4a8a tstl %a2 4fa9c: 6612 bnes 4fab0 4fa9e: 4879 0005 fbbe pea 5fbbe <== NOT EXECUTED 4faa4: 4879 0005 fd66 pea 5fd66 <__FUNCTION__.5975> <== NOT EXECUTED 4faaa: 4878 0131 pea 131 <== NOT EXECUTED 4faae: 6018 bras 4fac8 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4fab0: 7005 moveq #5,%d0 4fab2: b0aa 0048 cmpl %a2@(72),%d0 4fab6: 671c beqs 4fad4 4fab8: 4879 0005 fc0e pea 5fc0e <== NOT EXECUTED 4fabe: 4879 0005 fd66 pea 5fd66 <__FUNCTION__.5975> <== NOT EXECUTED 4fac4: 4878 0135 pea 135 <== NOT EXECUTED 4fac8: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4face: 4eb9 0004 d5e8 jsr 4d5e8 <__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 ) 4fad4: 2c39 0006 16b4 movel 616b4 ,%d6 4fada: 2206 movel %d6,%d1 4fadc: e489 lsrl #2,%d1 4fade: 2001 movel %d1,%d0 4fae0: 5280 addql #1,%d0 4fae2: 4c01 0800 mulsl %d1,%d0 4fae6: 4284 clrl %d4 4fae8: 5280 addql #1,%d0 4faea: 4c01 0800 mulsl %d1,%d0 4faee: 5380 subql #1,%d0 4faf0: 4c06 0800 mulsl %d6,%d0 4faf4: 2a00 movel %d0,%d5 4faf6: 2002 movel %d2,%d0 4faf8: 2203 movel %d3,%d1 4fafa: 9285 subl %d5,%d1 4fafc: 9184 subxl %d4,%d0 4fafe: 6d12 blts 4fb12 rtems_set_errno_and_return_minus_one( EINVAL ); 4fb00: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 4fb06: 7416 moveq #22,%d2 <== NOT EXECUTED 4fb08: 72ff moveq #-1,%d1 <== NOT EXECUTED 4fb0a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fb0c: 2082 movel %d2,%a0@ <== NOT EXECUTED 4fb0e: 6000 0092 braw 4fba2 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 4fb12: 282a 004c movel %a2@(76),%d4 4fb16: 2a2a 0050 movel %a2@(80),%d5 4fb1a: 2002 movel %d2,%d0 4fb1c: 2203 movel %d3,%d1 4fb1e: 9285 subl %d5,%d1 4fb20: 9184 subxl %d4,%d0 4fb22: 6e04 bgts 4fb28 4fb24: 4281 clrl %d1 4fb26: 607a bras 4fba2 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fb28: 47f9 0005 d080 lea 5d080 <__divdi3>,%a3 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { 4fb2e: 4bf9 0004 fa0c lea 4fa0c ,%a5 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fb34: 2e06 movel %d6,%d7 4fb36: 5bc6 smi %d6 4fb38: 49c6 extbl %d6 4fb3a: 2f07 movel %d7,%sp@- 4fb3c: 2f06 movel %d6,%sp@- 4fb3e: 2f03 movel %d3,%sp@- 4fb40: 2f02 movel %d2,%sp@- 4fb42: 4e93 jsr %a3@ 4fb44: 4fef 0010 lea %sp@(16),%sp 4fb48: 2841 moveal %d1,%a4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fb4a: 2f07 movel %d7,%sp@- 4fb4c: 2f06 movel %d6,%sp@- 4fb4e: 2f05 movel %d5,%sp@- 4fb50: 2f04 movel %d4,%sp@- 4fb52: 4e93 jsr %a3@ 4fb54: 4fef 0010 lea %sp@(16),%sp 4fb58: 2c01 movel %d1,%d6 4fb5a: 2801 movel %d1,%d4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 4fb5c: 6036 bras 4fb94 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 4fb5e: 2f04 movel %d4,%sp@- 4fb60: 2f0a movel %a2,%sp@- 4fb62: 4e95 jsr %a5@ 4fb64: 508f addql #8,%sp 4fb66: 4a80 tstl %d0 4fb68: 6728 beqs 4fb92 4fb6a: 600c bras 4fb78 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 4fb6c: 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-- ) { 4fb6e: 5384 subql #1,%d4 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 4fb70: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4fb72: 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-- ) { 4fb74: 508f addql #8,%sp <== NOT EXECUTED 4fb76: 6006 bras 4fb7e <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 4fb78: 47f9 0004 f7d0 lea 4f7d0 ,%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-- ) { 4fb7e: bc84 cmpl %d4,%d6 <== NOT EXECUTED 4fb80: 63ea blss 4fb6c <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 4fb82: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 4fb88: 72ff moveq #-1,%d1 <== NOT EXECUTED 4fb8a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fb8c: 701c moveq #28,%d0 <== NOT EXECUTED 4fb8e: 2080 movel %d0,%a0@ <== NOT EXECUTED 4fb90: 6010 bras 4fba2 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 4fb92: 5284 addql #1,%d4 4fb94: b9c4 cmpal %d4,%a4 4fb96: 64c6 bccs 4fb5e /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 4fb98: 4281 clrl %d1 4fb9a: 2542 004c movel %d2,%a2@(76) 4fb9e: 2543 0050 movel %d3,%a2@(80) return 0; } 4fba2: 2001 movel %d1,%d0 4fba4: 4cee 3cfc ffd8 moveml %fp@(-40),%d2-%d7/%a2-%a5 4fbaa: 4e5e unlk %fp <== NOT EXECUTED 0004f5d0 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 4f5d0: 4e56 fff0 linkw %fp,#-16 4f5d4: 206e 0010 moveal %fp@(16),%a0 4f5d8: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4f5dc: 246e 0008 moveal %fp@(8),%a2 4f5e0: 242e 000c movel %fp@(12),%d2 /* * Perform internal consistency checks */ assert( the_jnode ); 4f5e4: 4a8a tstl %a2 4f5e6: 6612 bnes 4f5fa 4f5e8: 4879 0005 fbbe pea 5fbbe <== NOT EXECUTED 4f5ee: 4879 0005 fcc1 pea 5fcc1 <__FUNCTION__.6334> <== NOT EXECUTED 4f5f4: 4878 0388 pea 388 <== NOT EXECUTED 4f5f8: 6018 bras 4f612 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 4f5fa: 7005 moveq #5,%d0 4f5fc: b0aa 0048 cmpl %a2@(72),%d0 4f600: 671c beqs 4f61e 4f602: 4879 0005 fc0e pea 5fc0e <== NOT EXECUTED 4f608: 4879 0005 fcc1 pea 5fcc1 <__FUNCTION__.6334> <== NOT EXECUTED 4f60e: 4878 038c pea 38c <== NOT EXECUTED 4f612: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4f618: 4eb9 0004 d5e8 jsr 4d5e8 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 4f61e: 2239 0006 16b4 movel 616b4 ,%d1 4f624: e489 lsrl #2,%d1 4f626: 2001 movel %d1,%d0 4f628: 5380 subql #1,%d0 4f62a: b082 cmpl %d2,%d0 4f62c: 6536 bcss 4f664 #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 4f62e: 226a 0054 moveal %a2@(84),%a1 if ( malloc_it ) { 4f632: 4a88 tstl %a0 4f634: 6720 beqs 4f656 if ( !p ) { 4f636: 4a89 tstl %a1 4f638: 6610 bnes 4f64a p = memfile_alloc_block(); 4f63a: 4eb9 0004 f5ac jsr 4f5ac if ( !p ) 4f640: 4a80 tstl %d0 4f642: 6700 0118 beqw 4f75c return 0; info->indirect = p; 4f646: 2540 0054 movel %d0,%a2@(84) } return &info->indirect[ my_block ]; 4f64a: 206a 0054 moveal %a2@(84),%a0 4f64e: e58a lsll #2,%d2 4f650: d1c2 addal %d2,%a0 4f652: 6000 010a braw 4f75e } if ( !p ) 4f656: 4a89 tstl %a1 4f658: 6700 0102 beqw 4f75c return 0; return &info->indirect[ my_block ]; 4f65c: 41f1 2c00 lea %a1@(00000000,%d2:l:4),%a0 4f660: 6000 00fc braw 4f75e /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 4f664: 2001 movel %d1,%d0 <== NOT EXECUTED 4f666: 5280 addql #1,%d0 <== NOT EXECUTED 4f668: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 4f66c: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f66e: 5389 subql #1,%a1 <== NOT EXECUTED 4f670: b3c2 cmpal %d2,%a1 <== NOT EXECUTED 4f672: 6562 bcss 4f6d6 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 4f674: 9481 subl %d1,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 4f676: 202a 0058 movel %a2@(88),%d0 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 4f67a: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 4f67e: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { 4f682: 4a88 tstl %a0 <== NOT EXECUTED 4f684: 6736 beqs 4f6bc <== NOT EXECUTED if ( !p ) { 4f686: 4a80 tstl %d0 <== NOT EXECUTED 4f688: 6610 bnes 4f69a <== NOT EXECUTED p = memfile_alloc_block(); 4f68a: 4eb9 0004 f5ac jsr 4f5ac <== NOT EXECUTED if ( !p ) 4f690: 4a80 tstl %d0 <== NOT EXECUTED 4f692: 6700 00c8 beqw 4f75c <== NOT EXECUTED return 0; info->doubly_indirect = p; 4f696: 2540 0058 movel %d0,%a2@(88) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 4f69a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f69c: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 4f6a0: 2012 movel %a2@,%d0 <== NOT EXECUTED if ( !p1 ) { 4f6a2: 660e bnes 4f6b2 <== NOT EXECUTED p1 = memfile_alloc_block(); 4f6a4: 4eb9 0004 f5ac jsr 4f5ac <== NOT EXECUTED if ( !p1 ) 4f6aa: 4a80 tstl %d0 <== NOT EXECUTED 4f6ac: 6700 00ae beqw 4f75c <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 4f6b0: 2480 movel %d0,%a2@ <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 4f6b2: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f6b4: 41f1 3c00 lea %a1@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 4f6b8: 6000 00a4 braw 4f75e <== NOT EXECUTED } if ( !p ) 4f6bc: 4a80 tstl %d0 <== NOT EXECUTED 4f6be: 6700 009c beqw 4f75c <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 4f6c2: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f6c4: 2071 2c00 moveal %a1@(00000000,%d2:l:4),%a0 <== NOT EXECUTED if ( !p ) 4f6c8: 4a88 tstl %a0 <== NOT EXECUTED 4f6ca: 6700 0090 beqw 4f75c <== 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 ]; 4f6ce: 41f0 3c00 lea %a0@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 4f6d2: 6000 008a braw 4f75e <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 4f6d6: 2600 movel %d0,%d3 <== NOT EXECUTED 4f6d8: 5283 addql #1,%d3 <== NOT EXECUTED 4f6da: 4c01 3800 mulsl %d1,%d3 <== NOT EXECUTED 4f6de: 5383 subql #1,%d3 <== NOT EXECUTED 4f6e0: b682 cmpl %d2,%d3 <== NOT EXECUTED 4f6e2: 6578 bcss 4f75c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 4f6e4: 9480 subl %d0,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 4f6e6: 4c41 2004 remul %d1,%d4,%d2 <== NOT EXECUTED 4f6ea: 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; 4f6ee: 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; 4f6f2: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 4f6f6: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { 4f6fa: 4a88 tstl %a0 <== NOT EXECUTED 4f6fc: 6746 beqs 4f744 <== NOT EXECUTED if ( !p ) { 4f6fe: 4a80 tstl %d0 <== NOT EXECUTED 4f700: 660e bnes 4f710 <== NOT EXECUTED p = memfile_alloc_block(); 4f702: 4eb9 0004 f5ac jsr 4f5ac <== NOT EXECUTED if ( !p ) 4f708: 4a80 tstl %d0 <== NOT EXECUTED 4f70a: 6750 beqs 4f75c <== NOT EXECUTED return 0; info->triply_indirect = p; 4f70c: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 4f710: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f712: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 4f716: 2012 movel %a2@,%d0 <== NOT EXECUTED if ( !p1 ) { 4f718: 660c bnes 4f726 <== NOT EXECUTED p1 = memfile_alloc_block(); 4f71a: 4eb9 0004 f5ac jsr 4f5ac <== NOT EXECUTED if ( !p1 ) 4f720: 4a80 tstl %d0 <== NOT EXECUTED 4f722: 6738 beqs 4f75c <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 4f724: 2480 movel %d0,%a2@ <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 4f726: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f728: 45f1 3c00 lea %a1@(00000000,%d3:l:4),%a2 <== NOT EXECUTED 4f72c: 2012 movel %a2@,%d0 <== NOT EXECUTED if ( !p2 ) { 4f72e: 660c bnes 4f73c <== NOT EXECUTED p2 = memfile_alloc_block(); 4f730: 4eb9 0004 f5ac jsr 4f5ac <== NOT EXECUTED if ( !p2 ) 4f736: 4a80 tstl %d0 <== NOT EXECUTED 4f738: 6722 beqs 4f75c <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 4f73a: 2480 movel %d0,%a2@ <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 4f73c: 2240 moveal %d0,%a1 <== NOT EXECUTED 4f73e: 41f1 4c00 lea %a1@(00000000,%d4:l:4),%a0 <== NOT EXECUTED 4f742: 601a bras 4f75e <== NOT EXECUTED } if ( !p ) 4f744: 4a80 tstl %d0 <== NOT EXECUTED 4f746: 6714 beqs 4f75c <== 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 ]; 4f748: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f74a: 2270 2c00 moveal %a0@(00000000,%d2:l:4),%a1 <== NOT EXECUTED if ( !p1 ) 4f74e: 4a89 tstl %a1 <== NOT EXECUTED 4f750: 670a beqs 4f75c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 4f752: 2071 3c00 moveal %a1@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 4f756: e58c lsll #2,%d4 <== NOT EXECUTED 4f758: d1c4 addal %d4,%a0 <== NOT EXECUTED 4f75a: 6002 bras 4f75e <== NOT EXECUTED 4f75c: 91c8 subal %a0,%a0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 4f75e: 2008 movel %a0,%d0 4f760: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 4f766: 4e5e unlk %fp <== NOT EXECUTED 0004ff92 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 4ff92: 4e56 ffc0 linkw %fp,#-64 4ff96: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4ff9a: 246e 0008 moveal %fp@(8),%a2 4ff9e: 2a2e 0014 movel %fp@(20),%d5 4ffa2: 2a6e 0018 moveal %fp@(24),%a5 4ffa6: 262e 000c movel %fp@(12),%d3 4ffaa: 282e 0010 movel %fp@(16),%d4 /* * Perform internal consistency checks */ assert( the_jnode ); 4ffae: 4a8a tstl %a2 4ffb0: 6612 bnes 4ffc4 4ffb2: 4879 0005 fbbe pea 5fbbe <== NOT EXECUTED 4ffb8: 4879 0005 fcf3 pea 5fcf3 <__FUNCTION__.6161> <== NOT EXECUTED 4ffbe: 4878 024c pea 24c <== NOT EXECUTED 4ffc2: 601e bras 4ffe2 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 4ffc4: 202a 0048 movel %a2@(72),%d0 4ffc8: 2200 movel %d0,%d1 4ffca: 5b81 subql #5,%d1 4ffcc: 7401 moveq #1,%d2 4ffce: b481 cmpl %d1,%d2 4ffd0: 641c bccs 4ffee 4ffd2: 4879 0005 fc71 pea 5fc71 <== NOT EXECUTED 4ffd8: 4879 0005 fcf3 pea 5fcf3 <__FUNCTION__.6161> <== NOT EXECUTED 4ffde: 4878 0251 pea 251 <== NOT EXECUTED 4ffe2: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4ffe8: 4eb9 0004 d5e8 jsr 4d5e8 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 4ffee: 4a85 tstl %d5 4fff0: 6612 bnes 50004 4fff2: 4879 0005 fcbc pea 5fcbc <== NOT EXECUTED 4fff8: 4879 0005 fcf3 pea 5fcf3 <__FUNCTION__.6161> <== NOT EXECUTED 4fffe: 4878 025a pea 25a <== NOT EXECUTED 50002: 60de bras 4ffe2 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 50004: 4a8d tstl %a5 50006: 6612 bnes 5001a rtems_set_errno_and_return_minus_one( EINVAL ); 50008: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 5000e: 7e16 moveq #22,%d7 <== NOT EXECUTED 50010: 7cff moveq #-1,%d6 <== NOT EXECUTED 50012: 2040 moveal %d0,%a0 <== NOT EXECUTED 50014: 2087 movel %d7,%a0@ <== NOT EXECUTED 50016: 6000 01be braw 501d6 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 5001a: 7206 moveq #6,%d1 5001c: b280 cmpl %d0,%d1 5001e: 6658 bnes 50078 unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 50020: 284d moveal %a5,%a4 <== NOT EXECUTED 50022: 97cb subal %a3,%a3 <== NOT EXECUTED 50024: 2c2a 004c movel %a2@(76),%d6 <== NOT EXECUTED 50028: 2e2a 0050 movel %a2@(80),%d7 <== NOT EXECUTED 5002c: 200b movel %a3,%d0 <== NOT EXECUTED 5002e: 220c movel %a4,%d1 <== NOT EXECUTED 50030: 2d46 ffe8 movel %d6,%fp@(-24) <== NOT EXECUTED 50034: 2d47 ffec movel %d7,%fp@(-20) <== NOT EXECUTED 50038: 9e84 subl %d4,%d7 <== NOT EXECUTED 5003a: 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; 5003c: 206a 0054 moveal %a2@(84),%a0 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 50040: 9287 subl %d7,%d1 <== NOT EXECUTED 50042: 9186 subxl %d6,%d0 <== NOT EXECUTED 50044: 6e04 bgts 5004a <== NOT EXECUTED 50046: 2c0d movel %a5,%d6 <== NOT EXECUTED 50048: 6006 bras 50050 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 5004a: 2c2e ffec movel %fp@(-20),%d6 <== NOT EXECUTED 5004e: 9c84 subl %d4,%d6 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 50050: 2f06 movel %d6,%sp@- <== NOT EXECUTED 50052: 4870 4800 pea %a0@(00000000,%d4:l) <== NOT EXECUTED 50056: 2f05 movel %d5,%sp@- <== NOT EXECUTED 50058: 4eb9 0005 1ccc jsr 51ccc <== NOT EXECUTED IMFS_update_atime( the_jnode ); 5005e: 42a7 clrl %sp@- <== NOT EXECUTED 50060: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 50064: 4eb9 0004 3578 jsr 43578 <== NOT EXECUTED 5006a: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED return my_length; 50070: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 50074: 6000 0160 braw 501d6 <== 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 ) 50078: 200d movel %a5,%d0 5007a: d084 addl %d4,%d0 5007c: 2240 moveal %d0,%a1 5007e: 91c8 subal %a0,%a0 50080: 202a 004c movel %a2@(76),%d0 50084: 222a 0050 movel %a2@(80),%d1 50088: 2c08 movel %a0,%d6 5008a: 2e09 movel %a1,%d7 5008c: 9e81 subl %d1,%d7 5008e: 9d80 subxl %d0,%d6 50090: 6e04 bgts 50096 50092: 240d movel %a5,%d2 50094: 6006 bras 5009c my_length = the_jnode->info.file.size - start; 50096: 2e01 movel %d1,%d7 50098: 9e84 subl %d4,%d7 5009a: 2407 movel %d7,%d2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 5009c: 2e39 0006 16b4 movel 616b4 ,%d7 500a2: 2207 movel %d7,%d1 500a4: 5bc0 smi %d0 500a6: 49c0 extbl %d0 500a8: 2640 moveal %d0,%a3 500aa: 2841 moveal %d1,%a4 500ac: 2f0c movel %a4,%sp@- 500ae: 2f00 movel %d0,%sp@- 500b0: 2f04 movel %d4,%sp@- 500b2: 2f03 movel %d3,%sp@- 500b4: 4eb9 0005 d438 jsr 5d438 <__moddi3> 500ba: 4fef 0010 lea %sp@(16),%sp 500be: 2c01 movel %d1,%d6 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 500c0: 2f0c movel %a4,%sp@- 500c2: 2f0b movel %a3,%sp@- 500c4: 2f04 movel %d4,%sp@- 500c6: 2f03 movel %d3,%sp@- 500c8: 4eb9 0005 d080 jsr 5d080 <__divdi3> 500ce: 4fef 0010 lea %sp@(16),%sp 500d2: 2601 movel %d1,%d3 if ( start_offset ) { 500d4: 4a86 tstl %d6 500d6: 6604 bnes 500dc 500d8: 2e05 movel %d5,%d7 500da: 6050 bras 5012c 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 ); 500dc: 42a7 clrl %sp@- 500de: 2f01 movel %d1,%sp@- 500e0: 2f0a movel %a2,%sp@- 500e2: 4eb9 0004 f5d0 jsr 4f5d0 assert( block_ptr ); 500e8: 4fef 000c lea %sp@(12),%sp 500ec: 4a80 tstl %d0 500ee: 6614 bnes 50104 500f0: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 500f6: 4879 0005 fcf3 pea 5fcf3 <__FUNCTION__.6161> <== NOT EXECUTED 500fc: 4878 0296 pea 296 <== NOT EXECUTED 50100: 6000 fee0 braw 4ffe2 <== 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; 50104: 9e86 subl %d6,%d7 50106: 2202 movel %d2,%d1 50108: be82 cmpl %d2,%d7 5010a: 6402 bccs 5010e 5010c: 2207 movel %d7,%d1 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 ); 5010e: 2f01 movel %d1,%sp@- 50110: 2040 moveal %d0,%a0 50112: dc90 addl %a0@,%d6 dest += to_copy; 50114: 2e05 movel %d5,%d7 50116: de81 addl %d1,%d7 block++; my_length -= to_copy; 50118: 9481 subl %d1,%d2 assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; block++; 5011a: 5283 addql #1,%d3 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 ); 5011c: 2f06 movel %d6,%sp@- dest += to_copy; block++; my_length -= to_copy; 5011e: 2c01 movel %d1,%d6 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 ); 50120: 2f05 movel %d5,%sp@- 50122: 4eb9 0005 1ccc jsr 51ccc dest += to_copy; block++; my_length -= to_copy; 50128: 4fef 000c lea %sp@(12),%sp /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 5012c: 2a39 0006 16b4 movel 616b4 ,%d5 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 50132: 49f9 0004 f5d0 lea 4f5d0 ,%a4 assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 50138: 47f9 0005 1ccc lea 51ccc ,%a3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 5013e: 603a bras 5017a block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 50140: 42a7 clrl %sp@- 50142: 2f03 movel %d3,%sp@- 50144: 2f0a movel %a2,%sp@- 50146: 4e94 jsr %a4@ assert( block_ptr ); 50148: 4fef 000c lea %sp@(12),%sp 5014c: 4a80 tstl %d0 5014e: 6614 bnes 50164 50150: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 50156: 4879 0005 fcf3 pea 5fcf3 <__FUNCTION__.6161> <== NOT EXECUTED 5015c: 4878 02a7 pea 2a7 <== NOT EXECUTED 50160: 6000 fe80 braw 4ffe2 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 50164: 2040 moveal %d0,%a0 dest += to_copy; block++; 50166: 5283 addql #1,%d3 my_length -= to_copy; 50168: 9485 subl %d5,%d2 copied += to_copy; 5016a: dc85 addl %d5,%d6 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 ); 5016c: 2f05 movel %d5,%sp@- 5016e: 2f10 movel %a0@,%sp@- 50170: 2f07 movel %d7,%sp@- dest += to_copy; 50172: de85 addl %d5,%d7 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 ); 50174: 4e93 jsr %a3@ dest += to_copy; block++; my_length -= to_copy; copied += to_copy; 50176: 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 ) { 5017a: b4b9 0006 16b4 cmpl 616b4 ,%d2 50180: 64be bccs 50140 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 50182: 4a82 tstl %d2 50184: 673c beqs 501c2 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 50186: 42a7 clrl %sp@- 50188: 2f03 movel %d3,%sp@- 5018a: 2f0a movel %a2,%sp@- 5018c: 4eb9 0004 f5d0 jsr 4f5d0 assert( block_ptr ); 50192: 4fef 000c lea %sp@(12),%sp 50196: 4a80 tstl %d0 50198: 6614 bnes 501ae 5019a: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 501a0: 4879 0005 fcf3 pea 5fcf3 <__FUNCTION__.6161> <== NOT EXECUTED 501a6: 4878 02b9 pea 2b9 <== NOT EXECUTED 501aa: 6000 fe36 braw 4ffe2 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 501ae: 2040 moveal %d0,%a0 copied += my_length; 501b0: 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 ); 501b2: 2f02 movel %d2,%sp@- 501b4: 2f10 movel %a0@,%sp@- 501b6: 2f07 movel %d7,%sp@- 501b8: 4eb9 0005 1ccc jsr 51ccc copied += my_length; 501be: 4fef 000c lea %sp@(12),%sp } IMFS_update_atime( the_jnode ); 501c2: 42a7 clrl %sp@- 501c4: 486e fff8 pea %fp@(-8) 501c8: 4eb9 0004 3578 jsr 43578 501ce: 256e fff8 003c movel %fp@(-8),%a2@(60) return copied; 501d4: 508f addql #8,%sp } 501d6: 2006 movel %d6,%d0 501d8: 4cee 3cfc ffc0 moveml %fp@(-64),%d2-%d7/%a2-%a5 501de: 4e5e unlk %fp <== NOT EXECUTED 0004f81c : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 4f81c: 4e56 ffe4 linkw %fp,#-28 4f820: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 4f824: 246e 0008 moveal %fp@(8),%a2 /* * Perform internal consistency checks */ assert( the_jnode ); 4f828: 4a8a tstl %a2 4f82a: 6612 bnes 4f83e 4f82c: 4879 0005 fbbe pea 5fbbe <== NOT EXECUTED 4f832: 4879 0005 fd05 pea 5fd05 <__FUNCTION__.6086> <== NOT EXECUTED 4f838: 4878 01ee pea 1ee <== NOT EXECUTED 4f83c: 6018 bras 4f856 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4f83e: 7005 moveq #5,%d0 4f840: b0aa 0048 cmpl %a2@(72),%d0 4f844: 671c beqs 4f862 4f846: 4879 0005 fc0e pea 5fc0e <== NOT EXECUTED 4f84c: 4879 0005 fd05 pea 5fd05 <__FUNCTION__.6086> <== NOT EXECUTED 4f852: 4878 01f2 pea 1f2 <== NOT EXECUTED 4f856: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4f85c: 4eb9 0004 d5e8 jsr 4d5e8 <__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; 4f862: 2439 0006 16b4 movel 616b4 ,%d2 4f868: e48a lsrl #2,%d2 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f86a: 4aaa 0054 tstl %a2@(84) 4f86e: 670e beqs 4f87e if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 4f870: 2f02 movel %d2,%sp@- 4f872: 486a 0054 pea %a2@(84) 4f876: 4eb9 0004 f76a jsr 4f76a 4f87c: 508f addql #8,%sp * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f87e: 4aaa 0058 tstl %a2@(88) 4f882: 673e beqs 4f8c2 4f884: 4283 clrl %d3 <== NOT EXECUTED if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { memfile_free_blocks_in_table( 4f886: 47f9 0004 f76a lea 4f76a ,%a3<== NOT EXECUTED 4f88c: 601a bras 4f8a8 <== NOT EXECUTED } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { 4f88e: 2003 movel %d3,%d0 <== NOT EXECUTED 4f890: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED 4f894: e588 lsll #2,%d0 <== NOT EXECUTED 4f896: 4ab0 0800 tstl %a0@(00000000,%d0:l) <== NOT EXECUTED 4f89a: 670a beqs 4f8a6 <== NOT EXECUTED memfile_free_blocks_in_table( 4f89c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f89e: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 4f8a2: 4e93 jsr %a3@ <== NOT EXECUTED 4f8a4: 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 4f8ae: e488 lsrl #2,%d0 <== NOT EXECUTED 4f8b0: b083 cmpl %d3,%d0 <== NOT EXECUTED 4f8b2: 62da bhis 4f88e <== 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 ); 4f8b4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f8b6: 486a 0058 pea %a2@(88) <== NOT EXECUTED 4f8ba: 4eb9 0004 f76a jsr 4f76a <== NOT EXECUTED 4f8c0: 508f addql #8,%sp <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f8c2: 4aaa 005c tstl %a2@(92) 4f8c6: 6762 beqs 4f92a 4f8c8: 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 4f8d0: 603e bras 4f910 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f8d2: 2a03 movel %d3,%d5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 4f8d4: 206a 005c moveal %a2@(92),%a0 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4f8d8: e58d lsll #2,%d5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 4f8da: 2670 5800 moveal %a0@(00000000,%d5:l),%a3 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 4f8de: 4a8b tstl %a3 <== NOT EXECUTED 4f8e0: 673a beqs 4f91c <== NOT EXECUTED 4f8e2: 4284 clrl %d4 <== NOT EXECUTED 4f8e4: 6010 bras 4f8f6 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 4f8ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f8ec: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4f8ee: 4e94 jsr %a4@ <== NOT EXECUTED 4f8f0: 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 4f8fc: e488 lsrl #2,%d0 <== NOT EXECUTED 4f8fe: b084 cmpl %d4,%d0 <== NOT EXECUTED 4f900: 62e4 bhis 4f8e6 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 4f902: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f904: 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 4f916: e488 lsrl #2,%d0 <== NOT EXECUTED 4f918: b083 cmpl %d3,%d0 <== NOT EXECUTED 4f91a: 62b6 bhis 4f8d2 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 4f91c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f91e: 486a 005c pea %a2@(92) <== NOT EXECUTED 4f922: 4eb9 0004 f76a jsr 4f76a <== NOT EXECUTED 4f928: 508f addql #8,%sp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 4f92a: 4280 clrl %d0 4f92c: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 4f932: 4e5e unlk %fp <== NOT EXECUTED 0004f7d0 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 4f7d0: 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 ); 4f7d4: 42a7 clrl %sp@- <== NOT EXECUTED 4f7d6: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4f7da: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4f7de: 4eb9 0004 f5d0 jsr 4f5d0 <== NOT EXECUTED assert( block_ptr ); 4f7e4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4f7e8: 4a80 tstl %d0 <== NOT EXECUTED 4f7ea: 661c bnes 4f808 <== NOT EXECUTED 4f7ec: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 4f7f2: 4879 0005 fd36 pea 5fd36 <__FUNCTION__.6050> <== NOT EXECUTED 4f7f8: 4878 0196 pea 196 <== NOT EXECUTED 4f7fc: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4f802: 4eb9 0004 d5e8 jsr 4d5e8 <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 4f808: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f80a: 2210 movel %a0@,%d1 <== NOT EXECUTED *block_ptr = 0; 4f80c: 4290 clrl %a0@ <== NOT EXECUTED memfile_free_block( ptr ); 4f80e: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4f810: 4eb9 0004 f592 jsr 4f592 <== NOT EXECUTED } return 1; } 4f816: 7001 moveq #1,%d0 <== NOT EXECUTED 4f818: 4e5e unlk %fp <== NOT EXECUTED 0004fca2 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 4fca2: 4e56 ffd0 linkw %fp,#-48 4fca6: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4fcaa: 246e 0008 moveal %fp@(8),%a2 4fcae: 262e 0014 movel %fp@(20),%d3 4fcb2: 242e 0018 movel %fp@(24),%d2 /* * Perform internal consistency checks */ assert( the_jnode ); 4fcb6: 4a8a tstl %a2 4fcb8: 6612 bnes 4fccc 4fcba: 4879 0005 fbbe pea 5fbbe <== NOT EXECUTED 4fcc0: 4879 0005 fce0 pea 5fce0 <__FUNCTION__.6253> <== NOT EXECUTED 4fcc6: 4878 02e3 pea 2e3 <== NOT EXECUTED 4fcca: 6018 bras 4fce4 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 4fccc: 7805 moveq #5,%d4 4fcce: b8aa 0048 cmpl %a2@(72),%d4 4fcd2: 671c beqs 4fcf0 4fcd4: 4879 0005 fc0e pea 5fc0e <== NOT EXECUTED 4fcda: 4879 0005 fce0 pea 5fce0 <__FUNCTION__.6253> <== NOT EXECUTED 4fce0: 4878 02e7 pea 2e7 <== NOT EXECUTED 4fce4: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4fcea: 4eb9 0004 d5e8 jsr 4d5e8 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 4fcf0: 4a83 tstl %d3 4fcf2: 6612 bnes 4fd06 4fcf4: 4879 0005 f313 pea 5f313 <== NOT EXECUTED 4fcfa: 4879 0005 fce0 pea 5fce0 <__FUNCTION__.6253> <== NOT EXECUTED 4fd00: 4878 02ef pea 2ef <== NOT EXECUTED 4fd04: 60de bras 4fce4 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 4fd06: 4a82 tstl %d2 4fd08: 6612 bnes 4fd1c rtems_set_errno_and_return_minus_one( EINVAL ); 4fd0a: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 4fd10: 7a16 moveq #22,%d5 <== NOT EXECUTED 4fd12: 7eff moveq #-1,%d7 <== NOT EXECUTED 4fd14: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fd16: 2085 movel %d5,%a0@ <== NOT EXECUTED 4fd18: 6000 0186 braw 4fea0 <== 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 ) { 4fd1c: 206e 0010 moveal %fp@(16),%a0 4fd20: d1c2 addal %d2,%a0 4fd22: 2208 movel %a0,%d1 4fd24: 4280 clrl %d0 4fd26: 282a 004c movel %a2@(76),%d4 4fd2a: 2a2a 0050 movel %a2@(80),%d5 4fd2e: 9a81 subl %d1,%d5 4fd30: 9980 subxl %d0,%d4 4fd32: 6c26 bges 4fd5a status = IMFS_memfile_extend( the_jnode, last_byte ); 4fd34: 2f08 movel %a0,%sp@- 4fd36: 2f00 movel %d0,%sp@- 4fd38: 2f0a movel %a2,%sp@- 4fd3a: 4eb9 0004 fa86 jsr 4fa86 if ( status ) 4fd40: 4fef 000c lea %sp@(12),%sp 4fd44: 4a80 tstl %d0 4fd46: 6712 beqs 4fd5a rtems_set_errno_and_return_minus_one( ENOSPC ); 4fd48: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 4fd4e: 781c moveq #28,%d4 <== NOT EXECUTED 4fd50: 7eff moveq #-1,%d7 <== NOT EXECUTED 4fd52: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fd54: 2084 movel %d4,%a0@ <== NOT EXECUTED 4fd56: 6000 0148 braw 4fea0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 4fd5a: 2e39 0006 16b4 movel 616b4 ,%d7 4fd60: 2207 movel %d7,%d1 4fd62: 5bc0 smi %d0 4fd64: 49c0 extbl %d0 4fd66: 2640 moveal %d0,%a3 4fd68: 2841 moveal %d1,%a4 4fd6a: 2f0c movel %a4,%sp@- 4fd6c: 2f00 movel %d0,%sp@- 4fd6e: 2f2e 0010 movel %fp@(16),%sp@- 4fd72: 2f2e 000c movel %fp@(12),%sp@- 4fd76: 4eb9 0005 d438 jsr 5d438 <__moddi3> 4fd7c: 4fef 0010 lea %sp@(16),%sp 4fd80: 2801 movel %d1,%d4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 4fd82: 2f0c movel %a4,%sp@- 4fd84: 2f0b movel %a3,%sp@- 4fd86: 2f2e 0010 movel %fp@(16),%sp@- 4fd8a: 2f2e 000c movel %fp@(12),%sp@- 4fd8e: 4eb9 0005 d080 jsr 5d080 <__divdi3> 4fd94: 4fef 0010 lea %sp@(16),%sp 4fd98: 2a01 movel %d1,%d5 if ( start_offset ) { 4fd9a: 4a84 tstl %d4 4fd9c: 6606 bnes 4fda4 4fd9e: 2643 moveal %d3,%a3 4fda0: 4287 clrl %d7 4fda2: 604c bras 4fdf0 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 ); 4fda4: 42a7 clrl %sp@- 4fda6: 2f01 movel %d1,%sp@- 4fda8: 2f0a movel %a2,%sp@- 4fdaa: 4eb9 0004 f5d0 jsr 4f5d0 assert( block_ptr ); 4fdb0: 4fef 000c lea %sp@(12),%sp 4fdb4: 4a80 tstl %d0 4fdb6: 6614 bnes 4fdcc 4fdb8: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 4fdbe: 4879 0005 fce0 pea 5fce0 <__FUNCTION__.6253> <== NOT EXECUTED 4fdc4: 4878 031c pea 31c <== NOT EXECUTED 4fdc8: 6000 ff1a braw 4fce4 <== 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; 4fdcc: 9e84 subl %d4,%d7 4fdce: b487 cmpl %d7,%d2 4fdd0: 6402 bccs 4fdd4 4fdd2: 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 ); 4fdd4: 2f07 movel %d7,%sp@- 4fdd6: 2040 moveal %d0,%a0 src += to_copy; 4fdd8: 2643 moveal %d3,%a3 4fdda: d7c7 addal %d7,%a3 block++; 4fddc: 5285 addql #1,%d5 my_length -= to_copy; 4fdde: 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 ); 4fde0: 2f03 movel %d3,%sp@- 4fde2: d890 addl %a0@,%d4 4fde4: 2f04 movel %d4,%sp@- 4fde6: 4eb9 0005 1ccc jsr 51ccc src += to_copy; block++; my_length -= to_copy; copied += to_copy; 4fdec: 4fef 000c lea %sp@(12),%sp /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 4fdf0: 2639 0006 16b4 movel 616b4 ,%d3 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4fdf6: 4bf9 0004 f5d0 lea 4f5d0 ,%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 ); 4fdfc: 49f9 0005 1ccc lea 51ccc ,%a4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 4fe02: 603a bras 4fe3e block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4fe04: 42a7 clrl %sp@- 4fe06: 2f05 movel %d5,%sp@- 4fe08: 2f0a movel %a2,%sp@- 4fe0a: 4e95 jsr %a5@ assert( block_ptr ); 4fe0c: 4fef 000c lea %sp@(12),%sp 4fe10: 4a80 tstl %d0 4fe12: 6614 bnes 4fe28 4fe14: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 4fe1a: 4879 0005 fce0 pea 5fce0 <__FUNCTION__.6253> <== NOT EXECUTED 4fe20: 4878 0330 pea 330 <== NOT EXECUTED 4fe24: 6000 febe braw 4fce4 <== 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 ); 4fe28: 2f03 movel %d3,%sp@- 4fe2a: 2240 moveal %d0,%a1 src += to_copy; block++; 4fe2c: 5285 addql #1,%d5 my_length -= to_copy; 4fe2e: 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( 4fe30: 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 ); 4fe32: 2f0b movel %a3,%sp@- 4fe34: 2f11 movel %a1@,%sp@- src += to_copy; 4fe36: 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 ); 4fe38: 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( 4fe3a: 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 ) { 4fe3e: b4b9 0006 16b4 cmpl 616b4 ,%d2 4fe44: 64be bccs 4fe04 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 4fe46: 4a82 tstl %d2 4fe48: 673c beqs 4fe86 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4fe4a: 42a7 clrl %sp@- 4fe4c: 2f05 movel %d5,%sp@- 4fe4e: 2f0a movel %a2,%sp@- 4fe50: 4eb9 0004 f5d0 jsr 4f5d0 assert( block_ptr ); 4fe56: 4fef 000c lea %sp@(12),%sp 4fe5a: 4a80 tstl %d0 4fe5c: 6614 bnes 4fe72 4fe5e: 4879 0005 fc3e pea 5fc3e <== NOT EXECUTED 4fe64: 4879 0005 fce0 pea 5fce0 <__FUNCTION__.6253> <== NOT EXECUTED 4fe6a: 4878 0346 pea 346 <== NOT EXECUTED 4fe6e: 6000 fe74 braw 4fce4 <== 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 ); 4fe72: 2f02 movel %d2,%sp@- 4fe74: 2040 moveal %d0,%a0 my_length = 0; copied += to_copy; 4fe76: 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 ); 4fe78: 2f0b movel %a3,%sp@- 4fe7a: 2f10 movel %a0@,%sp@- 4fe7c: 4eb9 0005 1ccc jsr 51ccc my_length = 0; copied += to_copy; 4fe82: 4fef 000c lea %sp@(12),%sp } IMFS_mtime_ctime_update( the_jnode ); 4fe86: 42a7 clrl %sp@- 4fe88: 486e fff8 pea %fp@(-8) 4fe8c: 4eb9 0004 3578 jsr 43578 4fe92: 202e fff8 movel %fp@(-8),%d0 return copied; 4fe96: 508f addql #8,%sp memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 4fe98: 2540 0044 movel %d0,%a2@(68) 4fe9c: 2540 0040 movel %d0,%a2@(64) return copied; } 4fea0: 2007 movel %d7,%d0 4fea2: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 4fea8: 4e5e unlk %fp <== NOT EXECUTED 00048ba4 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48ba4: 4e56 ffb4 linkw %fp,#-76 48ba8: 48d7 003c moveml %d2-%d5,%sp@ 48bac: 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 ); 48bb0: 2f03 movel %d3,%sp@- const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48bb2: 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 ); 48bb6: 4eb9 0004 de54 jsr 4de54 48bbc: 588f addql #4,%sp 48bbe: 486e fffc pea %fp@(-4) 48bc2: 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 */ ) { 48bc6: 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 ); 48bca: 2f00 movel %d0,%sp@- const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 48bcc: 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 ); 48bd0: 2f03 movel %d3,%sp@- 48bd2: 4eb9 0004 8a18 jsr 48a18 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 48bd8: 4fef 0010 lea %sp@(16),%sp 48bdc: 2002 movel %d2,%d0 48bde: 0280 0000 f000 andil #61440,%d0 48be4: 0c80 0000 4000 cmpil #16384,%d0 48bea: 6748 beqs 48c34 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 48bec: 0c80 0000 8000 cmpil #32768,%d0 48bf2: 6606 bnes 48bfa 48bf4: 303c 0005 movew #5,%d0 48bf8: 603c bras 48c36 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 48bfa: 0c80 0000 6000 cmpil #24576,%d0 48c00: 6708 beqs 48c0a 48c02: 0c80 0000 2000 cmpil #8192,%d0 48c08: 660c bnes 48c16 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 48c0a: 2d45 ffe8 movel %d5,%fp@(-24) 48c0e: 7002 moveq #2,%d0 48c10: 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) ) { 48c14: 6020 bras 48c36 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 48c16: 0c80 0000 1000 cmpil #4096,%d0 48c1c: 6606 bnes 48c24 48c1e: 303c 0007 movew #7,%d0 48c22: 6012 bras 48c36 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 48c24: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48c2a: 7416 moveq #22,%d2 <== NOT EXECUTED 48c2c: 72ff moveq #-1,%d1 <== NOT EXECUTED 48c2e: 2040 moveal %d0,%a0 <== NOT EXECUTED 48c30: 2082 movel %d2,%a0@ <== NOT EXECUTED 48c32: 6032 bras 48c66 <== NOT EXECUTED 48c34: 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( 48c36: 486e ffe8 pea %fp@(-24) 48c3a: 2f02 movel %d2,%sp@- 48c3c: 486e ffc7 pea %fp@(-57) 48c40: 2f00 movel %d0,%sp@- 48c42: 2f2e 0018 movel %fp@(24),%sp@- 48c46: 4eb9 0004 b52c jsr 4b52c new_name, mode, &info ); if ( !new_node ) 48c4c: 4fef 0014 lea %sp@(20),%sp 48c50: 4a80 tstl %d0 48c52: 6704 beqs 48c58 48c54: 4281 clrl %d1 48c56: 600e bras 48c66 rtems_set_errno_and_return_minus_one( ENOMEM ); 48c58: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48c5e: 72ff moveq #-1,%d1 <== NOT EXECUTED 48c60: 2040 moveal %d0,%a0 <== NOT EXECUTED 48c62: 700c moveq #12,%d0 <== NOT EXECUTED 48c64: 2080 movel %d0,%a0@ <== NOT EXECUTED return 0; } 48c66: 2001 movel %d1,%d0 48c68: 4cee 003c ffb4 moveml %fp@(-76),%d2-%d5 48c6e: 4e5e unlk %fp ... 00042bf4 : /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42bf4: 7001 moveq #1,%d0 #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 42bf6: 4e56 0000 linkw %fp,#0 42bfa: 226e 0008 moveal %fp@(8),%a1 IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 42bfe: 2069 0008 moveal %a1@(8),%a0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42c02: b0a8 0048 cmpl %a0@(72),%d0 42c06: 6710 beqs 42c18 rtems_set_errno_and_return_minus_one( ENOTDIR ); 42c08: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42c0e: 7214 moveq #20,%d1 <== NOT EXECUTED 42c10: 2040 moveal %d0,%a0 <== NOT EXECUTED 42c12: 70ff moveq #-1,%d0 <== NOT EXECUTED 42c14: 2081 movel %d1,%a0@ <== NOT EXECUTED 42c16: 6006 bras 42c1e <== 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; 42c18: 2149 0058 movel %a1,%a0@(88) 42c1c: 4280 clrl %d0 return 0; } 42c1e: 4e5e unlk %fp ... 00043436 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 43436: 4e56 0000 linkw %fp,#0 4343a: 2f0a movel %a2,%sp@- 4343c: 246e 0008 moveal %fp@(8),%a2 43440: 2f02 movel %d2,%sp@- assert( the_jnode ); 43442: 4a8a tstl %a2 43444: 6614 bnes 4345a 43446: 4879 0005 f9f0 pea 5f9f0 <== NOT EXECUTED 4344c: 4879 0005 fb88 pea 5fb88 <__FUNCTION__.6573> <== NOT EXECUTED 43452: 4878 0038 pea 38 <== NOT EXECUTED 43456: 6000 00c6 braw 4351e <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); 4345a: 2079 0006 1610 moveal 61610 <_impure_ptr>,%a0 switch( the_jnode->type ) { 43460: 7406 moveq #6,%d2 IMFS_jnode_t *the_jnode ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); 43462: 2f28 0008 movel %a0@(8),%sp@- 43466: 486a 000c pea %a2@(12) 4346a: 4eb9 0005 0c1c jsr 50c1c switch( the_jnode->type ) { 43470: 202a 0048 movel %a2@(72),%d0 43474: 2200 movel %d0,%d1 43476: 508f addql #8,%sp 43478: 5381 subql #1,%d1 4347a: b481 cmpl %d1,%d2 4347c: 6500 00f0 bcsw 4356e 43480: 2079 0006 1610 moveal 61610 <_impure_ptr>,%a0 43486: 303b 1a08 movew %pc@(43490 ,%d1:l:2),%d0 4348a: 48c0 extl %d0 4348c: 4efb 0802 jmp %pc@(43490 ,%d0:l) 43490: 000e 016 <== NOT EXECUTED 43492: 0022 042 <== NOT EXECUTED 43494: 006e 0156 <== NOT EXECUTED 43496: 009a 0052 0032 oril #5374002,%d2 <== NOT EXECUTED 4349c: 00bc 2f28 0008 oril #791150600,%d4 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); 434a2: 4878 002f pea 2f 434a6: 4eb9 0005 0af0 jsr 50af0 break; 434ac: 508f addql #8,%sp 434ae: 6000 00e8 braw 43598 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 434b2: 2f2a 0050 movel %a2@(80),%sp@- 434b6: 2f2a 004c movel %a2@(76),%sp@- 434ba: 4879 0005 fa43 pea 5fa43 434c0: 600e bras 434d0 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 434c2: 2f2a 0054 movel %a2@(84),%sp@- <== NOT EXECUTED 434c6: 2f2a 0050 movel %a2@(80),%sp@- <== NOT EXECUTED 434ca: 4879 0005 fa56 pea 5fa56 <== NOT EXECUTED 434d0: 2f28 0008 movel %a0@(8),%sp@- 434d4: 4eb9 0005 0ab0 jsr 50ab0 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 434da: 4fef 0010 lea %sp@(16),%sp 434de: 6000 00b8 braw 43598 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 434e2: 2f2a 0050 movel %a2@(80),%sp@- 434e6: 4879 0005 fa65 pea 5fa65 434ec: 2f28 0008 movel %a0@(8),%sp@- 434f0: 4eb9 0005 0ab0 jsr 50ab0 (uint32_t)the_jnode->info.file.size ); #endif break; 434f6: 4fef 000c lea %sp@(12),%sp 434fa: 6000 009c braw 43598 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 434fe: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43502: 4879 0005 fa71 pea 5fa71 <== NOT EXECUTED 43508: 4eb9 0005 0c1c jsr 50c1c <== NOT EXECUTED assert(0); 4350e: 4879 0005 f159 pea 5f159 <== NOT EXECUTED 43514: 4879 0005 fb88 pea 5fb88 <__FUNCTION__.6573> <== NOT EXECUTED 4351a: 4878 005d pea 5d <== NOT EXECUTED 4351e: 4879 0005 f9fa pea 5f9fa <== NOT EXECUTED 43524: 4eb9 0004 3d10 jsr 43d10 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 4352a: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4352e: 4879 0005 fa71 pea 5fa71 <== NOT EXECUTED 43534: 4eb9 0005 0c1c jsr 50c1c <== NOT EXECUTED assert(0); 4353a: 4879 0005 f159 pea 5f159 <== NOT EXECUTED 43540: 4879 0005 fb88 pea 5fb88 <__FUNCTION__.6573> <== NOT EXECUTED 43546: 4878 0062 pea 62 <== NOT EXECUTED 4354a: 60d2 bras 4351e <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 4354c: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43550: 4879 0005 fa85 pea 5fa85 <== NOT EXECUTED 43556: 4eb9 0005 0c1c jsr 50c1c <== NOT EXECUTED assert(0); 4355c: 4879 0005 f159 pea 5f159 <== NOT EXECUTED 43562: 4879 0005 fb88 pea 5fb88 <__FUNCTION__.6573> <== NOT EXECUTED 43568: 4878 0067 pea 67 <== NOT EXECUTED 4356c: 60b0 bras 4351e <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 4356e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43570: 4879 0005 fa98 pea 5fa98 <== NOT EXECUTED 43576: 2079 0006 1610 moveal 61610 <_impure_ptr>,%a0 <== NOT EXECUTED 4357c: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43580: 4eb9 0005 0ab0 jsr 50ab0 <== NOT EXECUTED assert(0); 43586: 4879 0005 f159 pea 5f159 <== NOT EXECUTED 4358c: 4879 0005 fb88 pea 5fb88 <__FUNCTION__.6573> <== NOT EXECUTED 43592: 4878 006c pea 6c <== NOT EXECUTED 43596: 6086 bras 4351e <== NOT EXECUTED break; } puts(""); } 43598: 242e fff8 movel %fp@(-8),%d2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 4359c: 203c 0006 0162 movel #393570,%d0 } 435a2: 246e fffc moveal %fp@(-4),%a2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 435a6: 2d40 0008 movel %d0,%fp@(8) } 435aa: 4e5e unlk %fp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 435ac: 4ef9 0005 2458 jmp 52458 00042c38 : IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 42c38: 7004 moveq #4,%d0 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 42c3a: 4e56 0000 linkw %fp,#0 42c3e: 206e 0008 moveal %fp@(8),%a0 42c42: 2f0a movel %a2,%sp@- IMFS_jnode_t *node; int i; node = loc->node_access; 42c44: 2050 moveal %a0@,%a0 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 42c46: 2f02 movel %d2,%sp@- 42c48: 226e 000c moveal %fp@(12),%a1 42c4c: 242e 0010 movel %fp@(16),%d2 IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 42c50: b0a8 0048 cmpl %a0@(72),%d0 42c54: 6604 bnes 42c5a 42c56: 4200 clrb %d0 42c58: 6016 bras 42c70 rtems_set_errno_and_return_minus_one( EINVAL ); 42c5a: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42c60: 7216 moveq #22,%d1 <== NOT EXECUTED 42c62: 2040 moveal %d0,%a0 <== NOT EXECUTED 42c64: 70ff moveq #-1,%d0 <== NOT EXECUTED 42c66: 2081 movel %d1,%a0@ <== NOT EXECUTED 42c68: 6014 bras 42c7e <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 42c6a: 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++ ) 42c6e: 5280 addql #1,%d0 42c70: b480 cmpl %d0,%d2 42c72: 630a blss 42c7e 42c74: 2468 004c moveal %a0@(76),%a2 42c78: 1232 0800 moveb %a2@(00000000,%d0:l),%d1 42c7c: 66ec bnes 42c6a buf[i] = node->info.sym_link.name[i]; return i; } 42c7e: 242e fff8 movel %fp@(-8),%d2 42c82: 246e fffc moveal %fp@(-4),%a2 42c86: 4e5e unlk %fp ... 00042c8c : 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 */ ) { 42c8c: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 42c90: 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 */ ) { 42c94: 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 ); 42c96: 4878 0020 pea 20 <== NOT EXECUTED 42c9a: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED ) { IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 42c9e: 2450 moveal %a0@,%a2 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 42ca0: 486a 000c pea %a2@(12) <== NOT EXECUTED 42ca4: 4eb9 0005 2840 jsr 52840 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 42caa: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42cae: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 42cb2: 670a beqs 42cbe <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 42cb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42cb6: 4eb9 0004 7154 jsr 47154 <_Chain_Extract> <== NOT EXECUTED 42cbc: 588f addql #4,%sp <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 42cbe: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 42cc2: 2050 moveal %a0@,%a0 <== NOT EXECUTED the_jnode->Parent = new_parent; 42cc4: 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 ); 42cc8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42cca: 4868 004c pea %a0@(76) <== NOT EXECUTED 42cce: 4eb9 0004 711c jsr 4711c <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 42cd4: 42a7 clrl %sp@- <== NOT EXECUTED 42cd6: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 42cda: 4eb9 0004 3578 jsr 43578 <== NOT EXECUTED 42ce0: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED return 0; } 42ce6: 4280 clrl %d0 <== NOT EXECUTED 42ce8: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 42cec: 4e5e unlk %fp <== NOT EXECUTED 00048c88 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 48c88: 4e56 fff8 linkw %fp,#-8 48c8c: 2f0b movel %a3,%sp@- 48c8e: 266e 000c moveal %fp@(12),%a3 48c92: 2f0a movel %a2,%sp@- IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 48c94: 2453 moveal %a3@,%a2 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 48c96: 4aaa 0008 tstl %a2@(8) 48c9a: 670e beqs 48caa */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 48c9c: 2f0a movel %a2,%sp@- 48c9e: 4eb9 0004 a048 jsr 4a048 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 48ca4: 588f addql #4,%sp 48ca6: 42aa 0008 clrl %a2@(8) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 48caa: 302a 0032 movew %a2@(50),%d0 48cae: 5380 subql #1,%d0 48cb0: 3540 0032 movew %d0,%a2@(50) IMFS_update_ctime( the_jnode ); 48cb4: 42a7 clrl %sp@- 48cb6: 486e fff8 pea %fp@(-8) 48cba: 4eb9 0004 9108 jsr 49108 48cc0: 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) ) { 48cc6: 2f0a movel %a2,%sp@- 48cc8: 4eb9 0004 91da jsr 491da 48cce: 4fef 000c lea %sp@(12),%sp 48cd2: 4a80 tstl %d0 48cd4: 663a bnes 48d10 48cd6: 4a6a 0032 tstw %a2@(50) 48cda: 6634 bnes 48d10 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 48cdc: 2079 0005 b5b4 moveal 5b5b4 ,%a0 48ce2: 2653 moveal %a3@,%a3 48ce4: b7e8 0004 cmpal %a0@(4),%a3 48ce8: 6604 bnes 48cee rtems_filesystem_current.node_access = NULL; 48cea: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 48cee: 7004 moveq #4,%d0 48cf0: b0aa 0048 cmpl %a2@(72),%d0 48cf4: 6610 bnes 48d06 if ( the_jnode->info.sym_link.name ) 48cf6: 202a 004c movel %a2@(76),%d0 48cfa: 670a beqs 48d06 free( (void*) the_jnode->info.sym_link.name ); 48cfc: 2f00 movel %d0,%sp@- 48cfe: 4eb9 0004 8f80 jsr 48f80 48d04: 588f addql #4,%sp } free( the_jnode ); 48d06: 2f0a movel %a2,%sp@- 48d08: 4eb9 0004 8f80 jsr 48f80 48d0e: 588f addql #4,%sp } return 0; } 48d10: 246e fff0 moveal %fp@(-16),%a2 48d14: 4280 clrl %d0 48d16: 266e fff4 moveal %fp@(-12),%a3 48d1a: 4e5e unlk %fp ... 00048d20 : IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 48d20: 7205 moveq #5,%d1 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 48d22: 4e56 0000 linkw %fp,#0 48d26: 206e 000c moveal %fp@(12),%a0 48d2a: 2f0a movel %a2,%sp@- 48d2c: 246e 0008 moveal %fp@(8),%a2 IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 48d30: 2252 moveal %a2@,%a1 switch ( the_jnode->type ) { 48d32: 2029 0048 movel %a1@(72),%d0 48d36: 5580 subql #2,%d0 48d38: b280 cmpl %d0,%d1 48d3a: 653e bcss 48d7a 48d3c: 303b 0a08 movew %pc@(48d46 ,%d0:l:2),%d0 48d40: 48c0 extl %d0 48d42: 4efb 0802 jmp %pc@(48d46 ,%d0:l) 48d46: 000c 014 <== NOT EXECUTED 48d48: 0034 064 <== NOT EXECUTED 48d4a: 0026 046 <== NOT EXECUTED 48d4c: 001c 034 <== NOT EXECUTED 48d4e: 001c 034 <== NOT EXECUTED 48d50: 0026 046 <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 48d52: 2029 0050 movel %a1@(80),%d0 48d56: 2169 004c 0016 movel %a1@(76),%a0@(22) 48d5c: 2140 001a movel %d0,%a0@(26) break; 48d60: 602a bras 48d8c case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 48d62: 2029 004c movel %a1@(76),%d0 48d66: 2229 0050 movel %a1@(80),%d1 48d6a: 6004 bras 48d70 case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 48d6c: 4280 clrl %d0 <== NOT EXECUTED 48d6e: 4281 clrl %d1 <== NOT EXECUTED 48d70: 2140 001e movel %d0,%a0@(30) 48d74: 2141 0022 movel %d1,%a0@(34) break; 48d78: 6012 bras 48d8c default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 48d7a: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 48d80: 2040 moveal %d0,%a0 <== NOT EXECUTED 48d82: 70ff moveq #-1,%d0 <== NOT EXECUTED 48d84: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 48d8a: 6046 bras 48dd2 <== NOT EXECUTED * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 48d8c: 246a 0010 moveal %a2@(16),%a2 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; 48d90: 4280 clrl %d0 */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 48d92: 2169 002e 000c movel %a1@(46),%a0@(12) buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 48d98: 2169 0034 0008 movel %a1@(52),%a0@(8) * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 48d9e: 246a 0034 moveal %a2@(52),%a2 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 48da2: 3169 0032 0010 movew %a1@(50),%a0@(16) buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 48da8: 2169 003c 0026 movel %a1@(60),%a0@(38) * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 48dae: 2212 movel %a2@,%d1 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 48db0: 3169 0038 0012 movew %a1@(56),%a0@(18) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 48db6: 2169 0040 002e movel %a1@(64),%a0@(46) buf->st_ctime = the_jnode->stat_ctime; 48dbc: 2169 0044 0036 movel %a1@(68),%a0@(54) buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 48dc2: 3169 003a 0014 movew %a1@(58),%a0@(20) /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = 48dc8: 2141 0004 movel %d1,%a0@(4) 48dcc: 20bc 0000 fffe movel #65534,%a0@ buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 48dd2: 246e fffc moveal %fp@(-4),%a2 48dd6: 4e5e unlk %fp ... 00042cf0 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 42cf0: 4e56 ffc4 linkw %fp,#-60 42cf4: 2f03 movel %d3,%sp@- 42cf6: 262e 0010 movel %fp@(16),%d3 42cfa: 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 ); 42cfc: 240e movel %fp,%d2 42cfe: 0682 ffff ffc7 addil #-57,%d2 42d04: 2f03 movel %d3,%sp@- 42d06: 4eb9 0005 2828 jsr 52828 42d0c: 588f addql #4,%sp 42d0e: 486e fffc pea %fp@(-4) 42d12: 2f02 movel %d2,%sp@- 42d14: 2f00 movel %d0,%sp@- 42d16: 2f03 movel %d3,%sp@- 42d18: 4eb9 0004 d3dc jsr 4d3dc /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 42d1e: 2f2e 000c movel %fp@(12),%sp@- 42d22: 4eb9 0005 2398 jsr 52398 if (info.sym_link.name == NULL) { 42d28: 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); 42d2c: 2d40 ffe8 movel %d0,%fp@(-24) if (info.sym_link.name == NULL) { 42d30: 6608 bnes 42d3a rtems_set_errno_and_return_minus_one(ENOMEM); 42d32: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42d38: 6038 bras 42d72 <== 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( 42d3a: 486e ffe8 pea %fp@(-24) 42d3e: 2f3c 0000 a1ff movel #41471,%sp@- 42d44: 2f02 movel %d2,%sp@- 42d46: 4878 0004 pea 4 42d4a: 2f2e 0008 movel %fp@(8),%sp@- 42d4e: 4eb9 0004 c8d0 jsr 4c8d0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 42d54: 4fef 0014 lea %sp@(20),%sp 42d58: 4a80 tstl %d0 42d5a: 6704 beqs 42d60 42d5c: 4281 clrl %d1 42d5e: 601a bras 42d7a free(info.sym_link.name); 42d60: 2f2e ffe8 movel %fp@(-24),%sp@- <== NOT EXECUTED 42d64: 4eb9 0004 34f0 jsr 434f0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 42d6a: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42d70: 588f addql #4,%sp <== NOT EXECUTED 42d72: 2040 moveal %d0,%a0 <== NOT EXECUTED 42d74: 700c moveq #12,%d0 <== NOT EXECUTED 42d76: 72ff moveq #-1,%d1 <== NOT EXECUTED 42d78: 2080 movel %d0,%a0@ <== NOT EXECUTED } return 0; } 42d7a: 242e ffbc movel %fp@(-68),%d2 42d7e: 2001 movel %d1,%d0 42d80: 262e ffc0 movel %fp@(-64),%d3 42d84: 4e5e unlk %fp <== NOT EXECUTED 00042d88 : /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 42d88: 7003 moveq #3,%d0 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 42d8a: 4e56 ffd0 linkw %fp,#-48 42d8e: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 42d92: 246e 000c moveal %fp@(12),%a2 42d96: 262e 0008 movel %fp@(8),%d3 IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 42d9a: 2652 moveal %a2@,%a3 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 42d9c: b0ab 0048 cmpl %a3@(72),%d0 42da0: 6600 0086 bnew 42e28 if ( !node->info.hard_link.link_node ) 42da4: 282b 004c movel %a3@(76),%d4 42da8: 6610 bnes 42dba rtems_set_errno_and_return_minus_one( EINVAL ); 42daa: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42db0: 7216 moveq #22,%d1 <== NOT EXECUTED 42db2: 2040 moveal %d0,%a0 <== NOT EXECUTED 42db4: 70ff moveq #-1,%d0 <== NOT EXECUTED 42db6: 2081 movel %d1,%a0@ <== NOT EXECUTED 42db8: 607e bras 42e38 <== NOT EXECUTED the_link = *loc; 42dba: 4878 0014 pea 14 42dbe: 240e movel %fp,%d2 42dc0: 0682 ffff ffe4 addil #-28,%d2 42dc6: 2f0a movel %a2,%sp@- 42dc8: 2f02 movel %d2,%sp@- 42dca: 4eb9 0005 1ccc jsr 51ccc the_link.node_access = node->info.hard_link.link_node; 42dd0: 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) 42dd4: 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 ); 42dd6: 2f02 movel %d2,%sp@- 42dd8: 4eb9 0004 c9e4 jsr 4c9e4 /* * 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) 42dde: 206b 004c moveal %a3@(76),%a0 42de2: 4281 clrl %d1 42de4: 4fef 0010 lea %sp@(16),%sp 42de8: 3028 0032 movew %a0@(50),%d0 42dec: 3200 movew %d0,%d1 42dee: b881 cmpl %d1,%d4 42df0: 6618 bnes 42e0a { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 42df2: 2f02 movel %d2,%sp@- 42df4: 206e ffec moveal %fp@(-20),%a0 42df8: 2f03 movel %d3,%sp@- 42dfa: 2068 0034 moveal %a0@(52),%a0 42dfe: 4e90 jsr %a0@ if ( result != 0 ) 42e00: 508f addql #8,%sp 42e02: 4a80 tstl %d0 42e04: 6722 beqs 42e28 42e06: 70ff moveq #-1,%d0 42e08: 602e bras 42e38 return -1; } else { node->info.hard_link.link_node->st_nlink --; 42e0a: 5380 subql #1,%d0 42e0c: 3140 0032 movew %d0,%a0@(50) IMFS_update_ctime( node->info.hard_link.link_node ); 42e10: 42a7 clrl %sp@- 42e12: 486e fff8 pea %fp@(-8) 42e16: 4eb9 0004 3578 jsr 43578 42e1c: 206b 004c moveal %a3@(76),%a0 42e20: 508f addql #8,%sp 42e22: 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 ); 42e28: 2f0a movel %a2,%sp@- 42e2a: 206a 0008 moveal %a2@(8),%a0 42e2e: 2f03 movel %d3,%sp@- 42e30: 2068 0034 moveal %a0@(52),%a0 42e34: 4e90 jsr %a0@ return result; 42e36: 508f addql #8,%sp } 42e38: 4cee 0c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a3 42e3e: 4e5e unlk %fp ... 00042e44 : /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42e44: 7001 moveq #1,%d0 #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 42e46: 4e56 0000 linkw %fp,#0 42e4a: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 42e4e: 2068 0008 moveal %a0@(8),%a0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 42e52: b0a8 0048 cmpl %a0@(72),%d0 42e56: 6710 beqs 42e68 rtems_set_errno_and_return_minus_one( ENOTDIR ); 42e58: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42e5e: 72ff moveq #-1,%d1 <== NOT EXECUTED 42e60: 2040 moveal %d0,%a0 <== NOT EXECUTED 42e62: 7014 moveq #20,%d0 <== NOT EXECUTED 42e64: 2080 movel %d0,%a0@ <== NOT EXECUTED 42e66: 601c bras 42e84 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 42e68: 4aa8 0058 tstl %a0@(88) 42e6c: 6610 bnes 42e7e rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 42e6e: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 42e74: 72ff moveq #-1,%d1 <== NOT EXECUTED 42e76: 2040 moveal %d0,%a0 <== NOT EXECUTED 42e78: 7016 moveq #22,%d0 <== NOT EXECUTED 42e7a: 2080 movel %d0,%a0@ <== NOT EXECUTED 42e7c: 6006 bras 42e84 <== 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; 42e7e: 42a8 0058 clrl %a0@(88) 42e82: 4281 clrl %d1 return 0; } 42e84: 2001 movel %d1,%d0 42e86: 4e5e unlk %fp ... 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 bb36 moveal 5bb36 ,%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 9412 jsr 49412 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 423b8: 2079 0005 bb3a moveal 5bb3a ,%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 bb35 tstb 5bb35 423da: 6618 bnes 423f4 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 423dc: 4a39 0005 b57c tstb 5b57c 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 d318 jsr 4d318 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 bb35 tstb 5bb35 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 b4b0 movel 5b4b0 ,%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 b4b0 movel 5b4b0 ,%sp@- 42428: 2439 0005 cbb4 movel 5cbb4 ,%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 cbb4 movel %d0,5cbb4 printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } ... 00043da6 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 43da6: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 43daa: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 43dae: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 43db2: 4a8a tstl %a2 <== NOT EXECUTED 43db4: 6700 0100 beqw 43eb6 <== NOT EXECUTED return; if ( !print_handler ) 43db8: 2879 0009 8c08 moveal 98c08 ,%a4 <== NOT EXECUTED 43dbe: 4a8c tstl %a4 <== NOT EXECUTED 43dc0: 6700 00f4 beqw 43eb6 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 43dc4: 70ff moveq #-1,%d0 <== NOT EXECUTED 43dc6: b08a cmpl %a2,%d0 <== NOT EXECUTED 43dc8: 6616 bnes 43de0 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 43dca: 4ab9 0009 bb58 tstl 9bb58 <== NOT EXECUTED 43dd0: 6700 00e4 beqw 43eb6 <== NOT EXECUTED 43dd4: 47f9 0009 bb54 lea 9bb54 ,%a3 <== NOT EXECUTED 43dda: 4284 clrl %d4 <== NOT EXECUTED 43ddc: 95ca subal %a2,%a2 <== NOT EXECUTED 43dde: 6008 bras 43de8 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 43de0: 282a 00fe movel %a2@(254),%d4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 43de4: 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); 43de8: 2613 movel %a3@,%d3 <== NOT EXECUTED 43dea: 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); 43df0: 242b 0004 movel %a3@(4),%d2 <== NOT EXECUTED 43df4: 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); 43dfa: 2f03 movel %d3,%sp@- <== NOT EXECUTED 43dfc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 43dfe: 4eb9 0004 3d76 jsr 43d76 <== NOT EXECUTED if ( high_water_mark ) 43e04: 508f addql #8,%sp <== NOT EXECUTED 43e06: 4a80 tstl %d0 <== NOT EXECUTED 43e08: 6604 bnes 43e0e <== NOT EXECUTED 43e0a: 4282 clrl %d2 <== NOT EXECUTED 43e0c: 6004 bras 43e12 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 43e0e: d483 addl %d3,%d2 <== NOT EXECUTED 43e10: 9480 subl %d0,%d2 <== NOT EXECUTED else used = 0; if ( the_thread ) { 43e12: 4a8a tstl %a2 <== NOT EXECUTED 43e14: 672c beqs 43e42 <== NOT EXECUTED (*print_handler)( 43e16: 486e fffb pea %fp@(-5) <== NOT EXECUTED 43e1a: 4878 0005 pea 5 <== NOT EXECUTED 43e1e: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 43e22: 4eb9 0004 8f28 jsr 48f28 <== NOT EXECUTED 43e28: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43e2a: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 43e2e: 4879 0008 e412 pea 8e412 <== NOT EXECUTED 43e34: 2f39 0009 8c04 movel 98c04 ,%sp@- <== NOT EXECUTED 43e3a: 4e94 jsr %a4@ <== NOT EXECUTED 43e3c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 43e40: 6016 bras 43e58 <== 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 ); 43e42: 4878 ffff pea ffffffff <== NOT EXECUTED 43e46: 4879 0008 e41f pea 8e41f <== NOT EXECUTED 43e4c: 2f39 0009 8c04 movel 98c04 ,%sp@- <== NOT EXECUTED 43e52: 4e94 jsr %a4@ <== NOT EXECUTED 43e54: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } (*print_handler)( 43e58: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED 43e5c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 43e5e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 43e60: 2013 movel %a3@,%d0 <== NOT EXECUTED 43e62: 5380 subql #1,%d0 <== NOT EXECUTED 43e64: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 43e68: 2f08 movel %a0,%sp@- <== NOT EXECUTED 43e6a: 4879 0008 e42d pea 8e42d <== NOT EXECUTED 43e70: 2f39 0009 8c04 movel 98c04 ,%sp@- <== NOT EXECUTED 43e76: 2079 0009 8c08 moveal 98c08 ,%a0 <== NOT EXECUTED 43e7c: 4e90 jsr %a0@ <== NOT EXECUTED 43e7e: 2079 0009 8c08 moveal 98c08 ,%a0 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 43e84: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 43e88: 4ab9 0009 8c00 tstl 98c00 <== NOT EXECUTED 43e8e: 6612 bnes 43ea2 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 43e90: 4879 0008 e44b pea 8e44b <== NOT EXECUTED 43e96: 2f39 0009 8c04 movel 98c04 ,%sp@- <== NOT EXECUTED 43e9c: 4e90 jsr %a0@ <== NOT EXECUTED 43e9e: 508f addql #8,%sp <== NOT EXECUTED 43ea0: 6014 bras 43eb6 <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 43ea2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 43ea4: 4879 0008 e458 pea 8e458 <== NOT EXECUTED 43eaa: 2f39 0009 8c04 movel 98c04 ,%sp@- <== NOT EXECUTED 43eb0: 4e90 jsr %a0@ <== NOT EXECUTED 43eb2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } } 43eb6: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 43ebc: 4e5e unlk %fp <== NOT EXECUTED 00043d76 : * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 43d76: 70fc moveq #-4,%d0 <== NOT EXECUTED */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 43d78: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 43d7c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 43d80: 41e8 0010 lea %a0@(16),%a0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 43d84: c0ae 000c andl %fp@(12),%d0 <== NOT EXECUTED 43d88: d088 addl %a0,%d0 <== NOT EXECUTED 43d8a: 6010 bras 43d9c <== NOT EXECUTED if (*base != U32_PATTERN) 43d8c: 223c a5a5 a5a5 movel #-1515870811,%d1 <== NOT EXECUTED 43d92: b290 cmpl %a0@,%d1 <== NOT EXECUTED 43d94: 6704 beqs 43d9a <== NOT EXECUTED return (void *) base; 43d96: 2008 movel %a0,%d0 <== NOT EXECUTED 43d98: 6008 bras 43da2 <== 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++) 43d9a: 5888 addql #4,%a0 <== NOT EXECUTED 43d9c: b088 cmpl %a0,%d0 <== NOT EXECUTED 43d9e: 62ec bhis 43d8c <== NOT EXECUTED 43da0: 4280 clrl %d0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 43da2: 4e5e unlk %fp <== NOT EXECUTED 00043f3a : * * 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) { 43f3a: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 43f3e: 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"); 43f42: 4879 0008 e4bf pea 8e4bf <== NOT EXECUTED 43f48: 45f9 0004 684c lea 4684c ,%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) { 43f4e: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 43f52: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 43f56: 286b 00c2 moveal %a3@(194),%a4 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 43f5a: 4e92 jsr %a2@ <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 43f5c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43f5e: 4879 0008 e4cf pea 8e4cf <== NOT EXECUTED 43f64: 4e92 jsr %a2@ <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 43f66: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 43f6a: 4879 0008 e4ec pea 8e4ec <== NOT EXECUTED 43f70: 4e92 jsr %a2@ <== NOT EXECUTED printk( 43f72: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED 43f76: 4879 0008 e4fe pea 8e4fe <== NOT EXECUTED 43f7c: 4e92 jsr %a2@ <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 43f7e: 486e ffe0 pea %fp@(-32) <== NOT EXECUTED 43f82: 4878 0020 pea 20 <== NOT EXECUTED 43f86: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 43f8a: 4eb9 0004 8f28 jsr 48f28 <== NOT EXECUTED 43f90: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED 43f94: 2e80 movel %d0,%sp@ <== NOT EXECUTED 43f96: 4879 0008 e512 pea 8e512 <== NOT EXECUTED 43f9c: 4e92 jsr %a2@ <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 43f9e: 202b 00be movel %a3@(190),%d0 <== NOT EXECUTED 43fa2: 206b 00c2 moveal %a3@(194),%a0 <== NOT EXECUTED 43fa6: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 43faa: 2f08 movel %a0,%sp@- <== NOT EXECUTED 43fac: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43fae: 4879 0008 e528 pea 8e528 <== NOT EXECUTED 43fb4: 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) { 43fb6: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 43fba: 4a02 tstb %d2 <== NOT EXECUTED 43fbc: 6618 bnes 43fd6 <== NOT EXECUTED printk( 43fbe: 486c 0018 pea %a4@(24) <== NOT EXECUTED 43fc2: 486c 0008 pea %a4@(8) <== NOT EXECUTED 43fc6: 4878 0010 pea 10 <== NOT EXECUTED 43fca: 4879 0008 e559 pea 8e559 <== NOT EXECUTED 43fd0: 4e92 jsr %a2@ <== NOT EXECUTED 43fd2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 43fd6: 4878 0081 pea 81 <== NOT EXECUTED 43fda: 4eb9 0004 97ac jsr 497ac <== NOT EXECUTED 0004589c <_API_Mutex_Unlock>: #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { 4589c: 4e56 0000 linkw %fp,#0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 458a0: 2039 0005 cd08 movel 5cd08 <_Thread_Dispatch_disable_level>,%d0 458a6: 5280 addql #1,%d0 458a8: 206e 0008 moveal %fp@(8),%a0 458ac: 23c0 0005 cd08 movel %d0,5cd08 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); _CORE_mutex_Surrender( 458b2: 42a7 clrl %sp@- 458b4: 2f28 0008 movel %a0@(8),%sp@- 458b8: 4868 0010 pea %a0@(16) 458bc: 4eb9 0004 5ac8 jsr 45ac8 <_CORE_mutex_Surrender> &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 458c2: 4fef 000c lea %sp@(12),%sp } 458c6: 4e5e unlk %fp _CORE_mutex_Surrender( &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 458c8: 4ef9 0004 6ce2 jmp 46ce2 <_Thread_Enable_dispatch> ... 0004bfe8 <_CORE_barrier_Wait>: Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4bfe8: 203c 0000 0700 movel #1792,%d0 Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 4bfee: 4e56 fff4 linkw %fp,#-12 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 4bff2: 2279 0005 cdc2 moveal 5cdc2 <_Thread_Executing>,%a1 Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 4bff8: 48d7 001c moveml %d2-%d4,%sp@ 4bffc: 242e 000c movel %fp@(12),%d2 4c000: 262e 0014 movel %fp@(20),%d3 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; 4c004: 42a9 0034 clrl %a1@(52) Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 4c008: 206e 0008 moveal %fp@(8),%a0 4c00c: 282e 0018 movel %fp@(24),%d4 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4c010: 40c1 movew %sr,%d1 4c012: 8081 orl %d1,%d0 4c014: 46c0 movew %d0,%sr the_barrier->number_of_waiting_threads++; 4c016: 2028 0048 movel %a0@(72),%d0 4c01a: 5280 addql #1,%d0 4c01c: 2140 0048 movel %d0,%a0@(72) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 4c020: 4aa8 0040 tstl %a0@(64) 4c024: 6626 bnes 4c04c <_CORE_barrier_Wait+0x64> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { 4c026: b0a8 0044 cmpl %a0@(68),%d0 4c02a: 6620 bnes 4c04c <_CORE_barrier_Wait+0x64> executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; 4c02c: 7001 moveq #1,%d0 4c02e: 2340 0034 movel %d0,%a1@(52) _ISR_Enable( level ); 4c032: 46c1 movew %d1,%sr _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4c034: 2d44 0010 movel %d4,%fp@(16) 4c038: 2d42 000c movel %d2,%fp@(12) 4c03c: 2d48 0008 movel %a0,%fp@(8) executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); } 4c040: 4cd7 001c moveml %sp@,%d2-%d4 4c044: 4e5e unlk %fp if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4c046: 4ef9 0004 bfb4 jmp 4bfb4 <_CORE_barrier_Release> 4c04c: 7001 moveq #1,%d0 } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; 4c04e: 2342 0020 movel %d2,%a1@(32) return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; 4c052: 2348 0044 movel %a0,%a1@(68) 4c056: 2140 0030 movel %d0,%a0@(48) executing->Wait.id = id; _ISR_Enable( level ); 4c05a: 46c1 movew %d1,%sr _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4c05c: 2d43 000c movel %d3,%fp@(12) 4c060: 203c 0004 7468 movel #291944,%d0 4c066: 2d48 0008 movel %a0,%fp@(8) 4c06a: 2d40 0010 movel %d0,%fp@(16) } 4c06e: 4cd7 001c moveml %sp@,%d2-%d4 4c072: 4e5e unlk %fp _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4c074: 4ef9 0004 717c jmp 4717c <_Thread_queue_Enqueue_with_handler> ... 00052088 <_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 ) { 52088: 4e56 ffe0 linkw %fp,#-32 5208c: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 52090: 246e 0008 moveal %fp@(8),%a2 52094: 2a2e 000c movel %fp@(12),%d5 52098: 262e 0010 movel %fp@(16),%d3 5209c: 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 ) { 520a0: b6aa 004c cmpl %a2@(76),%d3 520a4: 6304 blss 520aa <_CORE_message_queue_Broadcast+0x22> 520a6: 7001 moveq #1,%d0 <== NOT EXECUTED 520a8: 6042 bras 520ec <_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 ) { 520aa: 4aaa 0048 tstl %a2@(72) 520ae: 6610 bnes 520c0 <_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))) { 520b0: 4282 clrl %d2 520b2: 283c 0005 439c movel #344988,%d4 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 520b8: 4bf9 0005 a3f4 lea 5a3f4 ,%a5 520be: 601a bras 520da <_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; 520c0: 4294 clrl %a4@ 520c2: 6026 bras 520ea <_CORE_message_queue_Broadcast+0x62> 520c4: 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; 520c6: 5282 addql #1,%d2 520c8: 2f05 movel %d5,%sp@- 520ca: 2f2b 002c movel %a3@(44),%sp@- 520ce: 4e95 jsr %a5@ buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 520d0: 206b 0028 moveal %a3@(40),%a0 520d4: 4fef 000c lea %sp@(12),%sp 520d8: 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))) { 520da: 2f0a movel %a2,%sp@- 520dc: 2044 moveal %d4,%a0 520de: 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 = 520e0: 588f addql #4,%sp _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 520e2: 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 = 520e4: 4a80 tstl %d0 520e6: 66dc bnes 520c4 <_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; 520e8: 2882 movel %d2,%a4@ 520ea: 4280 clrl %d0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 520ec: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 520f2: 4e5e unlk %fp ... 0004dd08 <_CORE_message_queue_Seize>: CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4dd08: 223c 0000 0700 movel #1792,%d1 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 4dd0e: 4e56 ffe0 linkw %fp,#-32 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 4dd12: 2079 0006 6396 moveal 66396 <_Thread_Executing>,%a0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 4dd18: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 4dd1c: 282e 000c movel %fp@(12),%d4 4dd20: 242e 001c movel %fp@(28),%d2 4dd24: 246e 0008 moveal %fp@(8),%a2 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 4dd28: 42a8 0034 clrl %a0@(52) void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 4dd2c: 262e 0010 movel %fp@(16),%d3 4dd30: 226e 0014 moveal %fp@(20),%a1 4dd34: 1a2e 001b moveb %fp@(27),%d5 CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4dd38: 40c0 movew %sr,%d0 4dd3a: 8280 orl %d0,%d1 4dd3c: 46c1 movew %d1,%sr */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4dd3e: 220a movel %a2,%d1 4dd40: 0681 0000 0054 addil #84,%d1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4dd46: 266a 0050 moveal %a2@(80),%a3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4dd4a: b28b cmpl %a3,%d1 4dd4c: 6700 00a6 beqw 4ddf4 <_CORE_message_queue_Seize+0xec> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 4dd50: 2853 moveal %a3@,%a4 the_chain->first = new_first; new_first->previous = _Chain_Head(the_chain); 4dd52: 4bea 0050 lea %a2@(80),%a5 Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 4dd56: 254c 0050 movel %a4,%a2@(80) new_first->previous = _Chain_Head(the_chain); 4dd5a: 294d 0004 movel %a5,%a4@(4) the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { 4dd5e: 4a8b tstl %a3 4dd60: 6700 0092 beqw 4ddf4 <_CORE_message_queue_Seize+0xec> the_message_queue->number_of_pending_messages -= 1; 4dd64: 53aa 0048 subql #1,%a2@(72) _ISR_Enable( level ); 4dd68: 46c0 movew %d0,%sr *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = 4dd6a: 2079 0006 6396 moveal 66396 <_Thread_Executing>,%a0 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; 4dd70: 22ab 000c movel %a3@(12),%a1@ _Thread_Executing->Wait.count = _CORE_message_queue_Get_message_priority( the_message ); _CORE_message_queue_Copy_buffer( the_message->Contents.buffer, 4dd74: 240b movel %a3,%d2 4dd76: 0682 0000 0010 addil #16,%d2 if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = 4dd7c: 216b 0008 0024 movel %a3@(8),%a0@(36) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 4dd82: 49f9 0005 55d0 lea 555d0 ,%a4 4dd88: 2f11 movel %a1@,%sp@- 4dd8a: 2f02 movel %d2,%sp@- 4dd8c: 2f03 movel %d3,%sp@- 4dd8e: 4e94 jsr %a4@ * is not, then we can go ahead and free the buffer. * * NOTE: If we note that the queue was not full before this receive, * then we can avoid this dequeue. */ the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 4dd90: 2f0a movel %a2,%sp@- 4dd92: 4eb9 0004 f7b0 jsr 4f7b0 <_Thread_queue_Dequeue> if ( !the_thread ) { 4dd98: 4fef 0010 lea %sp@(16),%sp * is not, then we can go ahead and free the buffer. * * NOTE: If we note that the queue was not full before this receive, * then we can avoid this dequeue. */ the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 4dd9c: 2040 moveal %d0,%a0 if ( !the_thread ) { 4dd9e: 4a80 tstl %d0 4dda0: 661a bnes 4ddbc <_CORE_message_queue_Seize+0xb4> RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); 4dda2: 45ea 0068 lea %a2@(104),%a2 4dda6: 2d4b 000c movel %a3,%fp@(12) 4ddaa: 2d4a 0008 movel %a2,%fp@(8) executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 4ddae: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 4ddb4: 4e5e unlk %fp 4ddb6: 4ef9 0004 db88 jmp 4db88 <_Chain_Append> */ _CORE_message_queue_Set_message_priority( the_message, the_thread->Wait.count ); the_message->Contents.size = (size_t) the_thread->Wait.option; 4ddbc: 2028 0030 movel %a0@(48),%d0 CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; 4ddc0: 2768 0024 0008 movel %a0@(36),%a3@(8) 4ddc6: 2740 000c movel %d0,%a3@(12) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 4ddca: 2f00 movel %d0,%sp@- 4ddcc: 2f28 002c movel %a0@(44),%sp@- 4ddd0: 2f02 movel %d2,%sp@- 4ddd2: 4e94 jsr %a4@ the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 4ddd4: 2d6b 0008 0010 movel %a3@(8),%fp@(16) 4ddda: 4fef 000c lea %sp@(12),%sp 4ddde: 2d4b 000c movel %a3,%fp@(12) 4dde2: 2d4a 0008 movel %a2,%fp@(8) executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 4dde6: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 4ddec: 4e5e unlk %fp the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 4ddee: 4ef9 0005 25f8 jmp 525f8 <_CORE_message_queue_Insert_message> return; } #endif } if ( !wait ) { 4ddf4: 4a05 tstb %d5 4ddf6: 6612 bnes 4de0a <_CORE_message_queue_Seize+0x102> _ISR_Enable( level ); 4ddf8: 46c0 movew %d0,%sr executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 4ddfa: 7004 moveq #4,%d0 executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 4ddfc: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 #endif } if ( !wait ) { _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 4de02: 2140 0034 movel %d0,%a0@(52) executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 4de06: 4e5e unlk %fp 4de08: 4e75 rts RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 4de0a: 7201 moveq #1,%d1 4de0c: 2541 0030 movel %d1,%a2@(48) _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; 4de10: 2149 0028 movel %a1,%a0@(40) } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; 4de14: 2143 002c movel %d3,%a0@(44) return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; 4de18: 2144 0020 movel %d4,%a0@(32) executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 4de1c: 214a 0044 movel %a2,%a0@(68) executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 4de20: 46c0 movew %d0,%sr _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 4de22: 4bf9 0004 fbdc lea 4fbdc <_Thread_queue_Timeout>,%a5 4de28: 2d42 000c movel %d2,%fp@(12) 4de2c: 2d4d 0010 movel %a5,%fp@(16) 4de30: 2d4a 0008 movel %a2,%fp@(8) } 4de34: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 4de3a: 4e5e unlk %fp executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 4de3c: 4ef9 0004 f8f0 jmp 4f8f0 <_Thread_queue_Enqueue_with_handler> ... 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 703c jsr 4703c <_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 <== NOT EXECUTED 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 cdb2 moveb %d1,5cdb2 <_Internal_errors_What_happened+0x4> bool is_internal, Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; 46002: 23c0 0005 cdae movel %d0,5cdae <_Internal_errors_What_happened> _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; 46008: 23c2 0005 cdb4 movel %d2,5cdb4 <_Internal_errors_What_happened+0x6> _User_extensions_Fatal( the_source, is_internal, the_error ); 4600e: 4eb9 0004 7b0a jsr 47b0a <_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 ce90 movel %d0,5ce90 <_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 a070 lea 4a070 <_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 ... 0004611c <_Objects_Close>: #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4611c: 4280 clrl %d0 void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { 4611e: 4e56 0000 linkw %fp,#0 46122: 226e 000c moveal %fp@(12),%a1 46126: 206e 0008 moveal %fp@(8),%a0 4612a: 2f0a movel %a2,%sp@- 4612c: 2468 0018 moveal %a0@(24),%a2 46130: 3029 000a movew %a1@(10),%d0 46134: 42b2 0c00 clrl %a2@(00000000,%d0:l:4) _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 46138: 2d49 000c movel %a1,%fp@(12) } 4613c: 245f moveal %sp@+,%a2 4613e: 4e5e unlk %fp Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 46140: 4ef9 0004 6640 jmp 46640 <_Objects_Namespace_remove> ... 00049e80 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 49e80: 4e56 fffc linkw %fp,#-4 49e84: 222e 0008 movel %fp@(8),%d1 49e88: 2f02 movel %d2,%sp@- /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 49e8a: 4a81 tstl %d1 49e8c: 660a bnes 49e98 <_Objects_Id_to_name+0x18> 49e8e: 2079 0006 863a moveal 6863a <_Thread_Executing>,%a0 49e94: 2228 0008 movel %a0@(8),%d1 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 49e98: 7418 moveq #24,%d2 49e9a: 2001 movel %d1,%d0 49e9c: e4a8 lsrl %d2,%d0 49e9e: 143c 0007 moveb #7,%d2 49ea2: c082 andl %d2,%d0 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 49ea4: 143c 0003 moveb #3,%d2 49ea8: 2040 moveal %d0,%a0 49eaa: 5388 subql #1,%a0 49eac: b488 cmpl %a0,%d2 49eae: 6540 bcss 49ef0 <_Objects_Id_to_name+0x70> 49eb0: 6048 bras 49efa <_Objects_Id_to_name+0x7a> if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 49eb2: 2001 movel %d1,%d0 49eb4: 741b moveq #27,%d2 49eb6: e4a8 lsrl %d2,%d0 49eb8: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 if ( !information ) 49ebc: 4a88 tstl %a0 49ebe: 6730 beqs 49ef0 <_Objects_Id_to_name+0x70> return OBJECTS_INVALID_ID; #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) 49ec0: 4a28 0032 tstb %a0@(50) 49ec4: 662a bnes 49ef0 <_Objects_Id_to_name+0x70> return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); 49ec6: 486e fffc pea %fp@(-4) 49eca: 2f01 movel %d1,%sp@- 49ecc: 2f08 movel %a0,%sp@- 49ece: 4eb9 0004 9e20 jsr 49e20 <_Objects_Get> if ( !the_object ) 49ed4: 4fef 000c lea %sp@(12),%sp 49ed8: 4a80 tstl %d0 49eda: 6714 beqs 49ef0 <_Objects_Id_to_name+0x70> return OBJECTS_INVALID_ID; *name = the_object->name; 49edc: 206e 000c moveal %fp@(12),%a0 49ee0: 2240 moveal %d0,%a1 49ee2: 20a9 000c movel %a1@(12),%a0@ _Thread_Enable_dispatch(); 49ee6: 4eb9 0004 a71e jsr 4a71e <_Thread_Enable_dispatch> 49eec: 4280 clrl %d0 return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 49eee: 6002 bras 49ef2 <_Objects_Id_to_name+0x72> 49ef0: 7003 moveq #3,%d0 } 49ef2: 242e fff8 movel %fp@(-8),%d2 49ef6: 4e5e unlk %fp 49ef8: 4e75 rts the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 49efa: 41f9 0006 8538 lea 68538 <_Objects_Information_table>,%a0 49f00: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 49f04: 4a88 tstl %a0 49f06: 66aa bnes 49eb2 <_Objects_Id_to_name+0x32> 49f08: 60e6 bras 49ef0 <_Objects_Id_to_name+0x70> ... 00046a50 <_Objects_Set_name>: { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a50: 4280 clrl %d0 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 46a52: 4e56 ffe0 linkw %fp,#-32 46a56: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 46a5a: 2a6e 0008 moveal %fp@(8),%a5 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a5e: 302d 0034 movew %a5@(52),%d0 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 46a62: 246e 0010 moveal %fp@(16),%a2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a66: 2f00 movel %d0,%sp@- bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 46a68: 286e 000c moveal %fp@(12),%a4 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a6c: 2f0a movel %a2,%sp@- 46a6e: 4eb9 0004 e5c0 jsr 4e5c0 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 46a74: 508f addql #8,%sp { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 46a76: 2640 moveal %d0,%a3 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 46a78: 4a2d 0032 tstb %a5@(50) 46a7c: 6748 beqs 46ac6 <_Objects_Set_name+0x76> char *d; d = _Workspace_Allocate( length + 1 ); 46a7e: 486b 0001 pea %a3@(1) 46a82: 4eb9 0004 82dc jsr 482dc <_Workspace_Allocate> if ( !d ) 46a88: 588f addql #4,%sp #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); 46a8a: 2a40 moveal %d0,%a5 if ( !d ) 46a8c: 4a80 tstl %d0 46a8e: 6604 bnes 46a94 <_Objects_Set_name+0x44> 46a90: 4200 clrb %d0 <== NOT EXECUTED 46a92: 6076 bras 46b0a <_Objects_Set_name+0xba> <== NOT EXECUTED return false; if ( the_object->name.name_p ) { 46a94: 202c 000c movel %a4@(12),%d0 46a98: 670e beqs 46aa8 <_Objects_Set_name+0x58> _Workspace_Free( (void *)the_object->name.name_p ); 46a9a: 2f00 movel %d0,%sp@- 46a9c: 4eb9 0004 82f8 jsr 482f8 <_Workspace_Free> the_object->name.name_p = NULL; 46aa2: 588f addql #4,%sp 46aa4: 42ac 000c clrl %a4@(12) } strncpy( d, name, length ); 46aa8: 2f0b movel %a3,%sp@- 46aaa: 2f0a movel %a2,%sp@- 46aac: 2f0d movel %a5,%sp@- 46aae: 4eb9 0004 e538 jsr 4e538 d[length] = '\0'; the_object->name.name_p = d; 46ab4: 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'; 46ab8: 4200 clrb %d0 46aba: 1b80 b800 moveb %d0,%a5@(00000000,%a3:l) the_object->name.name_p = d; 46abe: 7001 moveq #1,%d0 46ac0: 294d 000c movel %a5,%a4@(12) 46ac4: 6044 bras 46b0a <_Objects_Set_name+0xba> } else #endif { the_object->name.name_u32 = _Objects_Build_name( 46ac6: 7201 moveq #1,%d1 46ac8: 1012 moveb %a2@,%d0 46aca: b28b cmpl %a3,%d1 46acc: 6446 bccs 46b14 <_Objects_Set_name+0xc4> 46ace: 7602 moveq #2,%d3 46ad0: 142a 0001 moveb %a2@(1),%d2 46ad4: 49c2 extbl %d2 46ad6: 4842 swap %d2 46ad8: 4242 clrw %d2 46ada: b68b cmpl %a3,%d3 46adc: 643a bccs 46b18 <_Objects_Set_name+0xc8> 46ade: 7a03 moveq #3,%d5 46ae0: 122a 0002 moveb %a2@(2),%d1 46ae4: 49c1 extbl %d1 46ae6: e189 lsll #8,%d1 46ae8: ba8b cmpl %a3,%d5 46aea: 6506 bcss 46af2 <_Objects_Set_name+0xa2> 46aec: 163c 0020 moveb #32,%d3 46af0: 6006 bras 46af8 <_Objects_Set_name+0xa8> 46af2: 162a 0003 moveb %a2@(3),%d3 46af6: 49c3 extbl %d3 46af8: 2800 movel %d0,%d4 46afa: 7a18 moveq #24,%d5 46afc: ebac lsll %d5,%d4 46afe: 7001 moveq #1,%d0 46b00: 8484 orl %d4,%d2 46b02: 8481 orl %d1,%d2 46b04: 8483 orl %d3,%d2 46b06: 2942 000c movel %d2,%a4@(12) ); } return true; } 46b0a: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 46b10: 4e5e unlk %fp 46b12: 4e75 rts d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 46b14: 7420 moveq #32,%d2 46b16: 4842 swap %d2 46b18: 223c 0000 2000 movel #8192,%d1 46b1e: 7620 moveq #32,%d3 46b20: 60d6 bras 46af8 <_Objects_Set_name+0xa8> ... 0004948c <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { 4948c: 4e56 ffe4 linkw %fp,#-28 49490: 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( 49494: 486e fffc pea %fp@(-4) 49498: 242e 0008 movel %fp@(8),%d2 4949c: 2f02 movel %d2,%sp@- 4949e: 4879 0006 5070 pea 65070 <_POSIX_Message_queue_Information_fds> 494a4: 246e 0014 moveal %fp@(20),%a2 494a8: 262e 0018 movel %fp@(24),%d3 494ac: 4eb9 0004 c188 jsr 4c188 <_Objects_Get> Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 494b2: 4fef 000c lea %sp@(12),%sp 494b6: 4aae fffc tstl %fp@(-4) 494ba: 6600 00c4 bnew 49580 <_POSIX_Message_queue_Receive_support+0xf4> case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { 494be: 2040 moveal %d0,%a0 494c0: 7803 moveq #3,%d4 494c2: 7a01 moveq #1,%d5 494c4: 2228 0014 movel %a0@(20),%d1 494c8: c881 andl %d1,%d4 494ca: ba84 cmpl %d4,%d5 494cc: 660a bnes 494d8 <_POSIX_Message_queue_Receive_support+0x4c> _Thread_Enable_dispatch(); 494ce: 4eb9 0004 c9da jsr 4c9da <_Thread_Enable_dispatch> 494d4: 6000 00aa braw 49580 <_POSIX_Message_queue_Receive_support+0xf4> rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; 494d8: 2240 moveal %d0,%a1 494da: 2069 0010 moveal %a1@(16),%a0 if ( msg_len < the_mq->Message_queue.maximum_message_size ) { 494de: 2028 0066 movel %a0@(102),%d0 494e2: b0ae 0010 cmpl %fp@(16),%d0 494e6: 6318 blss 49500 <_POSIX_Message_queue_Receive_support+0x74> _Thread_Enable_dispatch(); 494e8: 4eb9 0004 c9da jsr 4c9da <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EMSGSIZE ); 494ee: 747a moveq #122,%d2 494f0: 4eb9 0005 28c4 jsr 528c4 <__errno> 494f6: 72ff moveq #-1,%d1 494f8: 2040 moveal %d0,%a0 494fa: 2082 movel %d2,%a0@ 494fc: 6000 0090 braw 4958e <_POSIX_Message_queue_Receive_support+0x102> length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 49500: 4a03 tstb %d3 49502: 6604 bnes 49508 <_POSIX_Message_queue_Receive_support+0x7c> 49504: 4200 clrb %d0 <== NOT EXECUTED 49506: 600c bras 49514 <_POSIX_Message_queue_Receive_support+0x88><== NOT EXECUTED do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; 49508: 2001 movel %d1,%d0 4950a: 760e moveq #14,%d3 4950c: 7a01 moveq #1,%d5 4950e: e6a8 lsrl %d3,%d0 49510: bb80 eorl %d5,%d0 49512: c085 andl %d5,%d0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 49514: 2f2e 001c movel %fp@(28),%sp@- 49518: 7201 moveq #1,%d1 /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 4951a: 76ff moveq #-1,%d3 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4951c: c280 andl %d0,%d1 /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 4951e: 2d43 fff8 movel %d3,%fp@(-8) do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 49522: 2f01 movel %d1,%sp@- 49524: 486e fff8 pea %fp@(-8) 49528: 2f2e 000c movel %fp@(12),%sp@- 4952c: 2f02 movel %d2,%sp@- 4952e: 4868 001a pea %a0@(26) 49532: 4eb9 0004 b2d0 jsr 4b2d0 <_CORE_message_queue_Seize> &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); 49538: 4eb9 0004 c9da jsr 4c9da <_Thread_Enable_dispatch> *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); 4953e: 2079 0006 4cee moveal 64cee <_Thread_Executing>,%a0 do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = 49544: 24a8 0024 movel %a0@(36),%a2@ 49548: 6c06 bges 49550 <_POSIX_Message_queue_Receive_support+0xc4> 4954a: 2a12 movel %a2@,%d5 4954c: 4485 negl %d5 4954e: 2485 movel %d5,%a2@ _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) 49550: 4fef 0018 lea %sp@(24),%sp 49554: 4aa8 0034 tstl %a0@(52) 49558: 6606 bnes 49560 <_POSIX_Message_queue_Receive_support+0xd4> return length_out; 4955a: 222e fff8 movel %fp@(-8),%d1 4955e: 602e bras 4958e <_POSIX_Message_queue_Receive_support+0x102> rtems_set_errno_and_return_minus_one( 49560: 4eb9 0005 28c4 jsr 528c4 <__errno> 49566: 2079 0006 4cee moveal 64cee <_Thread_Executing>,%a0 4956c: 2440 moveal %d0,%a2 4956e: 2f28 0034 movel %a0@(52),%sp@- 49572: 4eb9 0004 97b8 jsr 497b8 <_POSIX_Message_queue_Translate_core_message_queue_return_code> 49578: 588f addql #4,%sp 4957a: 72ff moveq #-1,%d1 4957c: 2480 movel %d0,%a2@ 4957e: 600e bras 4958e <_POSIX_Message_queue_Receive_support+0x102> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 49580: 4eb9 0005 28c4 jsr 528c4 <__errno> 49586: 72ff moveq #-1,%d1 49588: 2040 moveal %d0,%a0 4958a: 7009 moveq #9,%d0 4958c: 2080 movel %d0,%a0@ } 4958e: 2001 movel %d1,%d0 49590: 4cee 043c ffe4 moveml %fp@(-28),%d2-%d5/%a2 49596: 4e5e unlk %fp ... 00044e70 <_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) { 44e70: 4e56 0000 linkw %fp,#0 44e74: 2f0a movel %a2,%sp@- 44e76: 246e 000c moveal %fp@(12),%a2 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 44e7a: 52aa 0066 addql #1,%a2@(102) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 44e7e: 4aaa 0052 tstl %a2@(82) 44e82: 6606 bnes 44e8a <_POSIX_Timer_TSR+0x1a> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 44e84: 4aaa 0056 tstl %a2@(86) 44e88: 6732 beqs 44ebc <_POSIX_Timer_TSR+0x4c> activated = _POSIX_Timer_Insert_helper( 44e8a: 2f0a movel %a2,%sp@- 44e8c: 4879 0004 4e70 pea 44e70 <_POSIX_Timer_TSR> 44e92: 2f2a 0008 movel %a2@(8),%sp@- 44e96: 2f2a 0062 movel %a2@(98),%sp@- 44e9a: 486a 0010 pea %a2@(16) 44e9e: 4eb9 0004 a408 jsr 4a408 <_POSIX_Timer_Insert_helper> ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 44ea4: 4fef 0014 lea %sp@(20),%sp 44ea8: 4a00 tstb %d0 44eaa: 672a beqs 44ed6 <_POSIX_Timer_TSR+0x66> return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 44eac: 486a 006a pea %a2@(106) 44eb0: 4eb9 0004 6348 jsr 46348 <_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 ) || 44eb6: 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; 44eb8: 7003 moveq #3,%d0 44eba: 6002 bras 44ebe <_POSIX_Timer_TSR+0x4e> } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; 44ebc: 7004 moveq #4,%d0 <== NOT EXECUTED 44ebe: 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 ) ) { 44ec2: 2f2a 0042 movel %a2@(66),%sp@- 44ec6: 2f2a 0038 movel %a2@(56),%sp@- 44eca: 4eb9 0004 9fe8 jsr 49fe8 } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 44ed0: 508f addql #8,%sp 44ed2: 42aa 0066 clrl %a2@(102) } 44ed6: 246e fffc moveal %fp@(-4),%a2 44eda: 4e5e unlk %fp ... 00044e4c <_POSIX_signals_Ualarm_TSR>: void _POSIX_signals_Ualarm_TSR( Objects_Id id __attribute__((unused)), void *argument __attribute__((unused)) ) { 44e4c: 4e56 0000 linkw %fp,#0 /* * Send a SIGALRM but if there is a problem, ignore it. * It's OK, there isn't a way this should fail. */ (void) kill( getpid(), SIGALRM ); 44e50: 4eb9 0004 24e8 jsr 424e8 44e56: 4878 000e pea e 44e5a: 2f00 movel %d0,%sp@- 44e5c: 4eb9 0004 4b6c jsr 44b6c RTEMS_INLINE_ROUTINE void _Watchdog_Reset( Watchdog_Control *the_watchdog ) { (void) _Watchdog_Remove( the_watchdog ); 44e62: 4879 0005 ecde pea 5ecde <_POSIX_signals_Ualarm_timer> 44e68: 4eb9 0004 8338 jsr 48338 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 44e6e: 4fef 000c lea %sp@(12),%sp 44e72: 203c 0005 ecde movel #388318,%d0 44e78: 2d40 000c movel %d0,%fp@(12) 44e7c: 203c 0005 e590 movel #386448,%d0 44e82: 2d40 0008 movel %d0,%fp@(8) /* * If the reset interval is non-zero, reschedule ourselves. */ _Watchdog_Reset( &_POSIX_signals_Ualarm_timer ); } 44e86: 4e5e unlk %fp 44e88: 4ef9 0004 821c jmp 4821c <_Watchdog_Insert> ... 00057360 <_Region_Process_queue>: */ void _Region_Process_queue( Region_Control *the_region ) { 57360: 4e56 ffe4 linkw %fp,#-28 57364: 2039 0007 545c movel 7545c <_Thread_Dispatch_disable_level>,%d0 5736a: 5280 addql #1,%d0 5736c: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 57370: 266e 0008 moveal %fp@(8),%a3 57374: 23c0 0007 545c movel %d0,7545c <_Thread_Dispatch_disable_level> * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); 5737a: 2f39 0007 550e movel 7550e <_RTEMS_Allocator_Mutex>,%sp@- /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 57380: 240b movel %a3,%d2 RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); 57382: 280b movel %a3,%d4 57384: 0682 0000 0010 addil #16,%d2 5738a: 0684 0000 0068 addil #104,%d4 57390: 4bf9 0005 2a14 lea 52a14 <_Heap_Allocate_aligned_with_boundary>,%a5 if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 57396: 49f9 0005 7a6c lea 57a6c <_Thread_queue_Extract>,%a4 * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); 5739c: 4eb9 0005 1fa8 jsr 51fa8 <_API_Mutex_Unlock> 573a2: 588f addql #4,%sp /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 573a4: 263c 0005 7b70 movel #359280,%d3 573aa: 2f02 movel %d2,%sp@- 573ac: 2043 moveal %d3,%a0 573ae: 4e90 jsr %a0@ if ( the_thread == NULL ) 573b0: 588f addql #4,%sp /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 573b2: 2440 moveal %d0,%a2 if ( the_thread == NULL ) 573b4: 4a80 tstl %d0 573b6: 672c beqs 573e4 <_Region_Process_queue+0x84> 573b8: 42a7 clrl %sp@- 573ba: 42a7 clrl %sp@- 573bc: 2f2a 0024 movel %a2@(36),%sp@- 573c0: 2f04 movel %d4,%sp@- 573c2: 4e95 jsr %a5@ the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) 573c4: 4fef 0010 lea %sp@(16),%sp 573c8: 4a80 tstl %d0 573ca: 6718 beqs 573e4 <_Region_Process_queue+0x84> break; *(void **)the_thread->Wait.return_argument = the_segment; 573cc: 206a 0028 moveal %a2@(40),%a0 the_region->number_of_used_blocks += 1; 573d0: 52ab 0064 addql #1,%a3@(100) ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; 573d4: 2080 movel %d0,%a0@ the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 573d6: 2f0a movel %a2,%sp@- 573d8: 2f02 movel %d2,%sp@- 573da: 4e94 jsr %a4@ the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } 573dc: 508f addql #8,%sp break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; 573de: 42aa 0034 clrl %a2@(52) } 573e2: 60c6 bras 573aa <_Region_Process_queue+0x4a> _Thread_Enable_dispatch(); } 573e4: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 573ea: 4e5e unlk %fp *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 573ec: 4ef9 0005 4012 jmp 54012 <_Thread_Enable_dispatch> ... 00046d94 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 46d94: 4e56 ffe8 linkw %fp,#-24 46d98: 222e 0010 movel %fp@(16),%d1 46d9c: 48d7 047c moveml %d2-%d6/%a2,%sp@ 46da0: 246e 000c moveal %fp@(12),%a2 46da4: 242e 0014 movel %fp@(20),%d2 46da8: 282e 001c movel %fp@(28),%d4 46dac: 2a2e 0024 movel %fp@(36),%d5 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 46db0: 42aa 010a clrl %a2@(266) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 46db4: 162e 001b moveb %fp@(27),%d3 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 46db8: 42aa 010e clrl %a2@(270) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 46dbc: 1c2e 0023 moveb %fp@(35),%d6 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 46dc0: 42aa 0112 clrl %a2@(274) extensions_area = NULL; the_thread->libc_reent = NULL; 46dc4: 42aa 0106 clrl %a2@(262) if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { 46dc8: 4a81 tstl %d1 46dca: 6620 bnes 46dec <_Thread_Initialize+0x58> actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 46dcc: 2f02 movel %d2,%sp@- 46dce: 2f0a movel %a2,%sp@- 46dd0: 4eb9 0004 7674 jsr 47674 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 46dd6: 508f addql #8,%sp 46dd8: 4a80 tstl %d0 46dda: 6700 0176 beqw 46f52 <_Thread_Initialize+0x1be> 46dde: b480 cmpl %d0,%d2 46de0: 6200 0170 bhiw 46f52 <_Thread_Initialize+0x1be> return false; /* stack allocation failed */ stack = the_thread->Start.stack; 46de4: 222a 00ca movel %a2@(202),%d1 the_thread->Start.core_allocated_stack = true; 46de8: 7401 moveq #1,%d2 46dea: 6004 bras 46df0 <_Thread_Initialize+0x5c> } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = false; 46dec: 2002 movel %d2,%d0 46dee: 4202 clrb %d2 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 46df0: 2541 00c2 movel %d1,%a2@(194) 46df4: 1542 00bc moveb %d2,%a2@(188) the_stack->size = size; 46df8: 2540 00be movel %d0,%a2@(190) /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 46dfc: 4a03 tstb %d3 46dfe: 6604 bnes 46e04 <_Thread_Initialize+0x70> 46e00: 4283 clrl %d3 46e02: 6016 bras 46e1a <_Thread_Initialize+0x86> fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 46e04: 4878 001c pea 1c 46e08: 4eb9 0004 7e98 jsr 47e98 <_Workspace_Allocate> if ( !fp_area ) 46e0e: 588f addql #4,%sp /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 46e10: 2600 movel %d0,%d3 if ( !fp_area ) 46e12: 6606 bnes 46e1a <_Thread_Initialize+0x86> 46e14: 4282 clrl %d2 46e16: 6000 00d4 braw 46eec <_Thread_Initialize+0x158> #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 46e1a: 2039 0005 cda6 movel 5cda6 <_Thread_Maximum_extensions>,%d0 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; 46e20: 2543 0102 movel %d3,%a2@(258) the_thread->Start.fp_context = fp_area; 46e24: 2543 00c6 movel %d3,%a2@(198) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46e28: 42aa 0050 clrl %a2@(80) the_watchdog->routine = routine; 46e2c: 42aa 0064 clrl %a2@(100) the_watchdog->id = id; 46e30: 42aa 0068 clrl %a2@(104) the_watchdog->user_data = user_data; 46e34: 42aa 006c clrl %a2@(108) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 46e38: 4a80 tstl %d0 46e3a: 6604 bnes 46e40 <_Thread_Initialize+0xac> 46e3c: 4282 clrl %d2 46e3e: 6016 bras 46e56 <_Thread_Initialize+0xc2> extensions_area = _Workspace_Allocate( 46e40: e588 lsll #2,%d0 46e42: 2040 moveal %d0,%a0 46e44: 4868 0004 pea %a0@(4) 46e48: 4eb9 0004 7e98 jsr 47e98 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 46e4e: 588f addql #4,%sp /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 46e50: 2400 movel %d0,%d2 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 46e52: 6700 0098 beqw 46eec <_Thread_Initialize+0x158> goto failed; } the_thread->extensions = (void **) extensions_area; 46e56: 2542 0116 movel %d2,%a2@(278) * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 46e5a: 6718 beqs 46e74 <_Thread_Initialize+0xe0> for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 46e5c: 2239 0005 cda6 movel 5cda6 <_Thread_Maximum_extensions>,%d1 46e62: 4280 clrl %d0 46e64: 600a bras 46e70 <_Thread_Initialize+0xdc> the_thread->extensions[i] = NULL; 46e66: 206a 0116 moveal %a2@(278),%a0 46e6a: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 46e6e: 5280 addql #1,%d0 46e70: b280 cmpl %d0,%d1 46e72: 64f2 bccs 46e66 <_Thread_Initialize+0xd2> /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 46e74: 2545 00ac movel %d5,%a2@(172) the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { 46e78: 7002 moveq #2,%d0 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 46e7a: 256e 0028 00b0 movel %fp@(40),%a2@(176) /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 46e80: 1546 00aa moveb %d6,%a2@(170) the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { 46e84: b085 cmpl %d5,%d0 46e86: 660a bnes 46e92 <_Thread_Initialize+0xfe> case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 46e88: 41f9 0005 ccb8 lea 5ccb8 <_Thread_Ticks_per_timeslice>,%a0 46e8e: 2550 0076 movel %a0@,%a2@(118) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 46e92: 2f04 movel %d4,%sp@- case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 46e94: 256e 002c 00b4 movel %fp@(44),%a2@(180) the_thread->current_state = STATES_DORMANT; 46e9a: 7001 moveq #1,%d0 #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 46e9c: 2f0a movel %a2,%sp@- #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 46e9e: 2540 0010 movel %d0,%a2@(16) the_thread->Wait.queue = NULL; 46ea2: 42aa 0044 clrl %a2@(68) the_thread->resource_count = 0; 46ea6: 42aa 001c clrl %a2@(28) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; 46eaa: 2544 0018 movel %d4,%a2@(24) the_thread->Start.initial_priority = priority; 46eae: 2544 00b8 movel %d4,%a2@(184) _Thread_Set_priority( the_thread, priority ); 46eb2: 4eb9 0004 74a0 jsr 474a0 <_Thread_Set_priority> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46eb8: 206e 0008 moveal %fp@(8),%a0 46ebc: 4280 clrl %d0 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 46ebe: 256e 0030 000c movel %fp@(48),%a2@(12) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46ec4: 2068 0018 moveal %a0@(24),%a0 46ec8: 302a 000a movew %a2@(10),%d0 /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 46ecc: 42aa 0082 clrl %a2@(130) 46ed0: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) 46ed4: 42aa 0086 clrl %a2@(134) * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); 46ed8: 2f0a movel %a2,%sp@- 46eda: 4eb9 0004 7b54 jsr 47b54 <_User_extensions_Thread_create> if ( extension_status ) 46ee0: 4fef 000c lea %sp@(12),%sp 46ee4: 4a00 tstb %d0 46ee6: 6704 beqs 46eec <_Thread_Initialize+0x158> 46ee8: 7001 moveq #1,%d0 46eea: 6068 bras 46f54 <_Thread_Initialize+0x1c0> return true; failed: if ( the_thread->libc_reent ) 46eec: 202a 0106 movel %a2@(262),%d0 46ef0: 670a beqs 46efc <_Thread_Initialize+0x168> _Workspace_Free( the_thread->libc_reent ); 46ef2: 2f00 movel %d0,%sp@- 46ef4: 4eb9 0004 7eb4 jsr 47eb4 <_Workspace_Free> 46efa: 588f addql #4,%sp for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 46efc: 202a 010a movel %a2@(266),%d0 46f00: 670a beqs 46f0c <_Thread_Initialize+0x178> _Workspace_Free( the_thread->API_Extensions[i] ); 46f02: 2f00 movel %d0,%sp@- 46f04: 4eb9 0004 7eb4 jsr 47eb4 <_Workspace_Free> 46f0a: 588f addql #4,%sp failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 46f0c: 202a 010e movel %a2@(270),%d0 46f10: 670a beqs 46f1c <_Thread_Initialize+0x188> _Workspace_Free( the_thread->API_Extensions[i] ); 46f12: 2f00 movel %d0,%sp@- 46f14: 4eb9 0004 7eb4 jsr 47eb4 <_Workspace_Free> 46f1a: 588f addql #4,%sp failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 46f1c: 202a 0112 movel %a2@(274),%d0 46f20: 670a beqs 46f2c <_Thread_Initialize+0x198> _Workspace_Free( the_thread->API_Extensions[i] ); 46f22: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46f24: 4eb9 0004 7eb4 jsr 47eb4 <_Workspace_Free> <== NOT EXECUTED 46f2a: 588f addql #4,%sp <== NOT EXECUTED if ( extensions_area ) 46f2c: 4a82 tstl %d2 46f2e: 670a beqs 46f3a <_Thread_Initialize+0x1a6> (void) _Workspace_Free( extensions_area ); 46f30: 2f02 movel %d2,%sp@- 46f32: 4eb9 0004 7eb4 jsr 47eb4 <_Workspace_Free> 46f38: 588f addql #4,%sp #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 46f3a: 4a83 tstl %d3 46f3c: 670a beqs 46f48 <_Thread_Initialize+0x1b4> (void) _Workspace_Free( fp_area ); 46f3e: 2f03 movel %d3,%sp@- 46f40: 4eb9 0004 7eb4 jsr 47eb4 <_Workspace_Free> 46f46: 588f addql #4,%sp #endif _Thread_Stack_Free( the_thread ); 46f48: 2f0a movel %a2,%sp@- 46f4a: 4eb9 0004 76c0 jsr 476c0 <_Thread_Stack_Free> return false; 46f50: 588f addql #4,%sp 46f52: 4200 clrb %d0 } 46f54: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 46f5a: 4e5e unlk %fp ... 00047c14 <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 47c14: 7001 moveq #1,%d0 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 47c16: 4e56 0000 linkw %fp,#0 47c1a: 2f0a movel %a2,%sp@- 47c1c: 246e 0008 moveal %fp@(8),%a2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 47c20: c0aa 0010 andl %a2@(16),%d0 47c24: 4a00 tstb %d0 47c26: 6704 beqs 47c2c <_Thread_Restart+0x18> 47c28: 4200 clrb %d0 47c2a: 6064 bras 47c90 <_Thread_Restart+0x7c> _Thread_Set_transient( the_thread ); 47c2c: 2f0a movel %a2,%sp@- 47c2e: 4eb9 0004 7df0 jsr 47df0 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 47c34: 2f2e 0010 movel %fp@(16),%sp@- 47c38: 2f2e 000c movel %fp@(12),%sp@- 47c3c: 2f0a movel %a2,%sp@- 47c3e: 4eb9 0004 b1ac jsr 4b1ac <_Thread_Reset> _Thread_Load_environment( the_thread ); 47c44: 2f0a movel %a2,%sp@- 47c46: 4eb9 0004 ae48 jsr 4ae48 <_Thread_Load_environment> _Thread_Ready( the_thread ); 47c4c: 2f0a movel %a2,%sp@- 47c4e: 4eb9 0004 b0ec jsr 4b0ec <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 47c54: 2f0a movel %a2,%sp@- 47c56: 4eb9 0004 83d0 jsr 483d0 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 47c5c: 4fef 001c lea %sp@(28),%sp 47c60: b5f9 0005 d89a cmpal 5d89a <_Thread_Executing>,%a2 47c66: 6626 bnes 47c8e <_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 ) 47c68: 4aaa 0102 tstl %a2@(258) 47c6c: 670c beqs 47c7a <_Thread_Restart+0x66> _Context_Restore_fp( &_Thread_Executing->fp_context ); 47c6e: 486a 0102 pea %a2@(258) 47c72: 4eb9 0004 88c0 jsr 488c0 <_CPU_Context_restore_fp> 47c78: 588f addql #4,%sp #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 47c7a: 2079 0005 d89a moveal 5d89a <_Thread_Executing>,%a0 47c80: 41e8 00ce lea %a0@(206),%a0 47c84: 2f08 movel %a0,%sp@- 47c86: 4eb9 0004 877e jsr 4877e <_CPU_Context_Restart_self> 47c8c: 588f addql #4,%sp <== NOT EXECUTED 47c8e: 7001 moveq #1,%d0 return true; } return false; } 47c90: 246e fffc moveal %fp@(-4),%a2 47c94: 4e5e unlk %fp <== NOT EXECUTED 00046798 <_Thread_blocking_operation_Cancel>: /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 46798: 7202 moveq #2,%d1 Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { 4679a: 4e56 0000 linkw %fp,#0 4679e: 202e 0010 movel %fp@(16),%d0 467a2: 2f0a movel %a2,%sp@- 467a4: 246e 000c moveal %fp@(12),%a2 #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 467a8: 42aa 0044 clrl %a2@(68) /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 467ac: b2aa 0050 cmpl %a2@(80),%d1 467b0: 6618 bnes 467ca <_Thread_blocking_operation_Cancel+0x32> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 467b2: 123c 0003 moveb #3,%d1 467b6: 2541 0050 movel %d1,%a2@(80) _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 467ba: 46c0 movew %d0,%sr (void) _Watchdog_Remove( &the_thread->Timer ); 467bc: 486a 0048 pea %a2@(72) 467c0: 4eb9 0004 7d6c jsr 47d6c <_Watchdog_Remove> 467c6: 588f addql #4,%sp 467c8: 6002 bras 467cc <_Thread_blocking_operation_Cancel+0x34> } else _ISR_Enable( level ); 467ca: 46c0 movew %d0,%sr RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 467cc: 2d4a 0008 movel %a2,%fp@(8) #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 467d0: 246e fffc moveal %fp@(-4),%a2 467d4: 203c 1003 fff8 movel #268697592,%d0 467da: 2d40 000c movel %d0,%fp@(12) 467de: 4e5e unlk %fp 467e0: 4ef9 0004 6928 jmp 46928 <_Thread_Clear_state> ... 00047214 <_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 ) { 47214: 4e56 ffe4 linkw %fp,#-28 47218: 206e 000c moveal %fp@(12),%a0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4721c: 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; 47220: 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 ) { 47224: 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 ]; 47228: 2400 movel %d0,%d2 4722a: ec8a lsrl #6,%d2 4722c: 2202 movel %d2,%d1 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 4722e: 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 ]; 47234: e989 lsll #4,%d1 47236: 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 ) { 47238: 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 ]; 4723c: 9282 subl %d2,%d1 4723e: 47f2 1800 lea %a2@(00000000,%d1:l),%a3 47242: 2149 0038 movel %a1,%a0@(56) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 47246: 43e8 0038 lea %a0@(56),%a1 block_state = the_thread_queue->state; 4724a: 2a2a 0038 movel %a2@(56),%d5 4724e: 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; 47252: 42a8 003c clrl %a0@(60) if ( _Thread_queue_Is_reverse_search( priority ) ) 47256: 0800 0005 btst #5,%d0 4725a: 6660 bnes 472bc <_Thread_queue_Enqueue_priority+0xa8> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4725c: 2c0b movel %a3,%d6 4725e: 5886 addql #4,%d6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 47260: 2404 movel %d4,%d2 47262: 40c1 movew %sr,%d1 47264: 8481 orl %d1,%d2 47266: 46c2 movew %d2,%sr search_thread = (Thread_Control *) header->first; 47268: 2253 moveal %a3@,%a1 4726a: 76ff moveq #-1,%d3 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 4726c: 601e bras 4728c <_Thread_queue_Enqueue_priority+0x78> search_priority = search_thread->current_priority; 4726e: 2629 0014 movel %a1@(20),%d3 if ( priority <= search_priority ) 47272: b680 cmpl %d0,%d3 47274: 641a bccs 47290 <_Thread_queue_Enqueue_priority+0x7c> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 47276: 2404 movel %d4,%d2 47278: 46c1 movew %d1,%sr 4727a: 8481 orl %d1,%d2 4727c: 46c2 movew %d2,%sr if ( !_States_Are_set( search_thread->current_state, block_state) ) { 4727e: 2405 movel %d5,%d2 47280: c4a9 0010 andl %a1@(16),%d2 47284: 6604 bnes 4728a <_Thread_queue_Enqueue_priority+0x76> _ISR_Enable( level ); 47286: 46c1 movew %d1,%sr <== NOT EXECUTED goto restart_forward_search; 47288: 60d6 bras 47260 <_Thread_queue_Enqueue_priority+0x4c><== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; 4728a: 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 ) ) { 4728c: bc89 cmpl %a1,%d6 4728e: 66de bnes 4726e <_Thread_queue_Enqueue_priority+0x5a> 47290: 2401 movel %d1,%d2 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 47292: 7801 moveq #1,%d4 47294: b8aa 0030 cmpl %a2@(48),%d4 47298: 6600 00a4 bnew 4733e <_Thread_queue_Enqueue_priority+0x12a> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4729c: 42aa 0030 clrl %a2@(48) if ( priority == search_priority ) 472a0: b680 cmpl %d0,%d3 472a2: 677e beqs 47322 <_Thread_queue_Enqueue_priority+0x10e> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 472a4: 2669 0004 moveal %a1@(4),%a3 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 472a8: 2089 movel %a1,%a0@ the_node->previous = previous_node; 472aa: 214b 0004 movel %a3,%a0@(4) previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 472ae: 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; 472b2: 2688 movel %a0,%a3@ search_node->previous = the_node; 472b4: 2348 0004 movel %a0,%a1@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 472b8: 46c1 movew %d1,%sr 472ba: 6062 bras 4731e <_Thread_queue_Enqueue_priority+0x10a> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 472bc: 4283 clrl %d3 472be: 1639 0005 b552 moveb 5b552 ,%d3 _ISR_Disable( level ); 472c4: 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; 472c6: 5283 addql #1,%d3 _ISR_Disable( level ); 472c8: 40c1 movew %sr,%d1 472ca: 8481 orl %d1,%d2 472cc: 46c2 movew %d2,%sr search_thread = (Thread_Control *) header->last; 472ce: 226b 0008 moveal %a3@(8),%a1 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 472d2: 6020 bras 472f4 <_Thread_queue_Enqueue_priority+0xe0> search_priority = search_thread->current_priority; 472d4: 2629 0014 movel %a1@(20),%d3 if ( priority >= search_priority ) 472d8: b680 cmpl %d0,%d3 472da: 631c blss 472f8 <_Thread_queue_Enqueue_priority+0xe4> break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 472dc: 2404 movel %d4,%d2 472de: 46c1 movew %d1,%sr 472e0: 8481 orl %d1,%d2 472e2: 46c2 movew %d2,%sr if ( !_States_Are_set( search_thread->current_state, block_state) ) { 472e4: 2405 movel %d5,%d2 472e6: c4a9 0010 andl %a1@(16),%d2 472ea: 6604 bnes 472f0 <_Thread_queue_Enqueue_priority+0xdc> _ISR_Enable( level ); 472ec: 46c1 movew %d1,%sr goto restart_reverse_search; 472ee: 60cc bras 472bc <_Thread_queue_Enqueue_priority+0xa8> } search_thread = (Thread_Control *) 472f0: 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 ) ) { 472f4: b7c9 cmpal %a1,%a3 472f6: 66dc bnes 472d4 <_Thread_queue_Enqueue_priority+0xc0> 472f8: 2401 movel %d1,%d2 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 472fa: 7801 moveq #1,%d4 472fc: b8aa 0030 cmpl %a2@(48),%d4 47300: 663c bnes 4733e <_Thread_queue_Enqueue_priority+0x12a> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 47302: 42aa 0030 clrl %a2@(48) if ( priority == search_priority ) 47306: b680 cmpl %d0,%d3 47308: 6718 beqs 47322 <_Thread_queue_Enqueue_priority+0x10e> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 4730a: 2651 moveal %a1@,%a3 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 4730c: 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; 47310: 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; 47312: 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; 47316: 2288 movel %a0,%a1@ next_node->previous = the_node; 47318: 2748 0004 movel %a0,%a3@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4731c: 46c1 movew %d1,%sr 4731e: 7001 moveq #1,%d0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 47320: 6026 bras 47348 <_Thread_queue_Enqueue_priority+0x134> 47322: 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; 47326: 2669 0004 moveal %a1@(4),%a3 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 4732a: 2089 movel %a1,%a0@ the_node->previous = previous_node; 4732c: 214b 0004 movel %a3,%a0@(4) previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 47330: 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; 47334: 2688 movel %a0,%a3@ search_node->previous = the_node; 47336: 2348 0004 movel %a0,%a1@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4733a: 46c2 movew %d2,%sr 4733c: 60e0 bras 4731e <_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; 4733e: 206e 0010 moveal %fp@(16),%a0 return the_thread_queue->sync_state; 47342: 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; 47346: 2082 movel %d2,%a0@ return the_thread_queue->sync_state; } 47348: 4cd7 0c7c moveml %sp@,%d2-%d6/%a2-%a3 4734c: 4e5e unlk %fp <== NOT EXECUTED 0004c16c <_Thread_queue_Extract_fifo>: Thread_Control *the_thread ) { ISR_Level level; _ISR_Disable( level ); 4c16c: 223c 0000 0700 movel #1792,%d1 void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { 4c172: 4e56 0000 linkw %fp,#0 4c176: 2f0a movel %a2,%sp@- 4c178: 246e 000c moveal %fp@(12),%a2 ISR_Level level; _ISR_Disable( level ); 4c17c: 40c0 movew %sr,%d0 4c17e: 8280 orl %d0,%d1 4c180: 46c1 movew %d1,%sr if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4c182: 222a 0010 movel %a2@(16),%d1 4c186: 0281 0003 bee0 andil #245472,%d1 4c18c: 660a bnes 4c198 <_Thread_queue_Extract_fifo+0x2c> _ISR_Enable( level ); 4c18e: 46c0 movew %d0,%sr #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c190: 246e fffc moveal %fp@(-4),%a2 4c194: 4e5e unlk %fp 4c196: 4e75 rts ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4c198: 2052 moveal %a2@,%a0 _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4c19a: 7202 moveq #2,%d1 previous = the_node->previous; 4c19c: 226a 0004 moveal %a2@(4),%a1 return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 4c1a0: 42aa 0044 clrl %a2@(68) next->previous = previous; previous->next = next; 4c1a4: 2288 movel %a0,%a1@ Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4c1a6: 2149 0004 movel %a1,%a0@(4) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4c1aa: b2aa 0050 cmpl %a2@(80),%d1 4c1ae: 6704 beqs 4c1b4 <_Thread_queue_Extract_fifo+0x48> _ISR_Enable( level ); 4c1b0: 46c0 movew %d0,%sr 4c1b2: 6014 bras 4c1c8 <_Thread_queue_Extract_fifo+0x5c> 4c1b4: 7203 moveq #3,%d1 4c1b6: 2541 0050 movel %d1,%a2@(80) } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4c1ba: 46c0 movew %d0,%sr (void) _Watchdog_Remove( &the_thread->Timer ); 4c1bc: 486a 0048 pea %a2@(72) 4c1c0: 4eb9 0004 7d6c jsr 47d6c <_Watchdog_Remove> 4c1c6: 588f addql #4,%sp RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4c1c8: 2d4a 0008 movel %a2,%fp@(8) #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c1cc: 246e fffc moveal %fp@(-4),%a2 4c1d0: 203c 1003 fff8 movel #268697592,%d0 4c1d6: 2d40 000c movel %d0,%fp@(12) 4c1da: 4e5e unlk %fp 4c1dc: 4ef9 0004 6928 jmp 46928 <_Thread_Clear_state> ... 00051644 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 51644: 4e56 ffb4 linkw %fp,#-76 51648: 200e movel %fp,%d0 5164a: 0680 ffff fff4 addil #-12,%d0 51650: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 51654: 246e 0008 moveal %fp@(8),%a2 51658: 240e movel %fp,%d2 5165a: 2a0e movel %fp,%d5 5165c: 260e movel %fp,%d3 5165e: 0682 ffff ffe8 addil #-24,%d2 51664: 5185 subql #8,%d5 51666: 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 ); 5166c: 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 ); 51670: 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 ); 51674: 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 ); 51676: 280a movel %a2,%d4 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 51678: 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 ); 5167e: 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 ); 51684: 49f9 0005 51fc lea 551fc <_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 ); 5168a: 47f9 0005 528c lea 5528c <_Watchdog_Insert>,%a3 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 51690: 2d48 ffe4 movel %a0,%fp@(-28) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 51694: 2d45 fff4 movel %d5,%fp@(-12) the_chain->permanent_null = NULL; 51698: 42ae fff8 clrl %fp@(-8) the_chain->last = _Chain_Head(the_chain); 5169c: 2d40 fffc movel %d0,%fp@(-4) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 516a0: 2d43 ffe8 movel %d3,%fp@(-24) the_chain->permanent_null = NULL; 516a4: 42ae ffec clrl %fp@(-20) the_chain->last = _Chain_Head(the_chain); 516a8: 2d42 fff0 movel %d2,%fp@(-16) 516ac: 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; 516b0: 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 ); 516b4: 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; 516b8: 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; 516bc: 2039 0007 55a0 movel 755a0 <_Watchdog_Ticks_since_boot>,%d0 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 516c2: 222a 003c movel %a2@(60),%d1 watchdogs->last_snapshot = snapshot; 516c6: 2540 003c movel %d0,%a2@(60) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 516ca: 486e ffe8 pea %fp@(-24) 516ce: 9081 subl %d1,%d0 516d0: 2f00 movel %d0,%sp@- 516d2: 2f07 movel %d7,%sp@- 516d4: 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(); 516d6: 2039 0007 54ee movel 754ee <_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 ) { 516dc: 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; 516e0: 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 ) { 516e4: b280 cmpl %d0,%d1 516e6: 6414 bccs 516fc <_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 ); 516e8: 486e ffe8 pea %fp@(-24) 516ec: 2c00 movel %d0,%d6 516ee: 9c81 subl %d1,%d6 516f0: 2f06 movel %d6,%sp@- 516f2: 2d40 ffdc movel %d0,%fp@(-36) 516f6: 2f04 movel %d4,%sp@- 516f8: 4e94 jsr %a4@ 516fa: 6018 bras 51714 <_Timer_server_Body+0xd0> } else if ( snapshot < last_snapshot ) { 516fc: b280 cmpl %d0,%d1 516fe: 631c blss 5171c <_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 ); 51700: 9280 subl %d0,%d1 51702: 2f01 movel %d1,%sp@- 51704: 4878 0001 pea 1 51708: 2d40 ffdc movel %d0,%fp@(-36) 5170c: 2f04 movel %d4,%sp@- 5170e: 4eb9 0005 517c jsr 5517c <_Watchdog_Adjust> 51714: 202e ffdc movel %fp@(-36),%d0 51718: 4fef 000c lea %sp@(12),%sp } watchdogs->last_snapshot = snapshot; 5171c: 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 ); 51720: 202a 0078 movel %a2@(120),%d0 51724: 2f00 movel %d0,%sp@- 51726: 4eb9 0005 2014 jsr 52014 <_Chain_Get> if ( timer == NULL ) { 5172c: 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 ); 5172e: 2040 moveal %d0,%a0 if ( timer == NULL ) { 51730: 4a80 tstl %d0 51732: 6724 beqs 51758 <_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 ) { 51734: 2028 0038 movel %a0@(56),%d0 51738: 7201 moveq #1,%d1 5173a: b280 cmpl %d0,%d1 5173c: 6608 bnes 51746 <_Timer_server_Body+0x102> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 5173e: 4868 0010 pea %a0@(16) 51742: 2f07 movel %d7,%sp@- 51744: 600c bras 51752 <_Timer_server_Body+0x10e> } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 51746: 7c03 moveq #3,%d6 51748: bc80 cmpl %d0,%d6 5174a: 66d4 bnes 51720 <_Timer_server_Body+0xdc> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 5174c: 4868 0010 pea %a0@(16) 51750: 2f04 movel %d4,%sp@- 51752: 4e93 jsr %a3@ 51754: 508f addql #8,%sp 51756: 60c8 bras 51720 <_Timer_server_Body+0xdc> * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 51758: 200d movel %a5,%d0 5175a: 40c1 movew %sr,%d1 5175c: 8081 orl %d1,%d0 5175e: 46c0 movew %d0,%sr if ( _Chain_Is_empty( insert_chain ) ) { 51760: baae fff4 cmpl %fp@(-12),%d5 51764: 6612 bnes 51778 <_Timer_server_Body+0x134> ts->insert_chain = NULL; 51766: 42aa 0078 clrl %a2@(120) _ISR_Enable( level ); 5176a: 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 ); 5176c: 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 ) ) { 51770: b6ae ffe8 cmpl %fp@(-24),%d3 51774: 6608 bnes 5177e <_Timer_server_Body+0x13a> 51776: 6042 bras 517ba <_Timer_server_Body+0x176> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 51778: 46c1 movew %d1,%sr <== NOT EXECUTED 5177a: 6000 ff40 braw 516bc <_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 ); 5177e: 220d movel %a5,%d1 51780: 40c0 movew %sr,%d0 51782: 8280 orl %d0,%d1 51784: 46c1 movew %d1,%sr */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 51786: 206e ffe8 moveal %fp@(-24),%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 5178a: b688 cmpl %a0,%d3 5178c: 6726 beqs 517b4 <_Timer_server_Body+0x170> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 5178e: 2250 moveal %a0@,%a1 the_chain->first = new_first; 51790: 2d49 ffe8 movel %a1,%fp@(-24) new_first->previous = _Chain_Head(the_chain); 51794: 2342 0004 movel %d2,%a1@(4) watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 51798: 4a88 tstl %a0 5179a: 6718 beqs 517b4 <_Timer_server_Body+0x170> watchdog->state = WATCHDOG_INACTIVE; 5179c: 42a8 0008 clrl %a0@(8) _ISR_Enable( level ); 517a0: 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 ); 517a2: 2f28 0024 movel %a0@(36),%sp@- 517a6: 2f28 0020 movel %a0@(32),%sp@- 517aa: 2068 001c moveal %a0@(28),%a0 517ae: 4e90 jsr %a0@ } 517b0: 508f addql #8,%sp 517b2: 60ca bras 5177e <_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 ); 517b4: 46c0 movew %d0,%sr 517b6: 6000 fef8 braw 516b0 <_Timer_server_Body+0x6c> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 517ba: 4200 clrb %d0 517bc: 1540 007c moveb %d0,%a2@(124) 517c0: 2039 0007 545c movel 7545c <_Thread_Dispatch_disable_level>,%d0 517c6: 5280 addql #1,%d0 517c8: 23c0 0007 545c movel %d0,7545c <_Thread_Dispatch_disable_level> /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 517ce: 4878 0008 pea 8 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 517d2: 4bf9 0005 53a8 lea 553a8 <_Watchdog_Remove>,%a5 /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 517d8: 2f12 movel %a2@,%sp@- 517da: 4eb9 0005 499c jsr 5499c <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 517e0: 2f0a movel %a2,%sp@- 517e2: 4eba fd9c jsr %pc@(51580 <_Timer_server_Reset_interval_system_watchdog>) _Timer_server_Reset_tod_system_watchdog( ts ); 517e6: 2f0a movel %a2,%sp@- 517e8: 4eba fdf6 jsr %pc@(515e0 <_Timer_server_Reset_tod_system_watchdog>) _Thread_Enable_dispatch(); 517ec: 4eb9 0005 4012 jsr 54012 <_Thread_Enable_dispatch> ts->active = true; 517f2: 7201 moveq #1,%d1 517f4: 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 ); 517f8: 2f2e ffe4 movel %fp@(-28),%sp@- 517fc: 4e95 jsr %a5@ static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 517fe: 2f2e ffe0 movel %fp@(-32),%sp@- 51802: 4e95 jsr %a5@ 51804: 4fef 0018 lea %sp@(24),%sp 51808: 6000 fea6 braw 516b0 <_Timer_server_Body+0x6c> 0005180c <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 5180c: 4e56 fff0 linkw %fp,#-16 51810: 206e 000c moveal %fp@(12),%a0 51814: 48d7 041c moveml %d2-%d4/%a2,%sp@ 51818: 246e 0008 moveal %fp@(8),%a2 if ( ts->insert_chain == NULL ) { 5181c: 202a 0078 movel %a2@(120),%d0 51820: 6600 00f8 bnew 5191a <_Timer_server_Schedule_operation_method+0x10e> 51824: 2039 0007 545c movel 7545c <_Thread_Dispatch_disable_level>,%d0 5182a: 5280 addql #1,%d0 5182c: 23c0 0007 545c movel %d0,7545c <_Thread_Dispatch_disable_level> * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 51832: 2028 0038 movel %a0@(56),%d0 51836: 7201 moveq #1,%d1 51838: b280 cmpl %d0,%d1 5183a: 6660 bnes 5189c <_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 ); 5183c: 203c 0000 0700 movel #1792,%d0 51842: 40c3 movew %sr,%d3 51844: 8083 orl %d3,%d0 51846: 46c0 movew %d0,%sr snapshot = _Watchdog_Ticks_since_boot; 51848: 2039 0007 55a0 movel 755a0 <_Watchdog_Ticks_since_boot>,%d0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5184e: 220a movel %a2,%d1 51850: 0681 0000 0034 addil #52,%d1 last_snapshot = ts->Interval_watchdogs.last_snapshot; 51856: 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)); 5185a: 226a 0030 moveal %a2@(48),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5185e: b289 cmpl %a1,%d1 51860: 6716 beqs 51878 <_Timer_server_Schedule_operation_method+0x6c> first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; 51862: 2800 movel %d0,%d4 51864: 9882 subl %d2,%d4 delta_interval = first_watchdog->delta_interval; 51866: 2229 0010 movel %a1@(16),%d1 if (delta_interval > delta) { 5186a: b881 cmpl %d1,%d4 5186c: 6504 bcss 51872 <_Timer_server_Schedule_operation_method+0x66> 5186e: 4281 clrl %d1 51870: 6002 bras 51874 <_Timer_server_Schedule_operation_method+0x68> delta_interval -= delta; 51872: 9284 subl %d4,%d1 } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 51874: 2341 0010 movel %d1,%a1@(16) } ts->Interval_watchdogs.last_snapshot = snapshot; 51878: 2540 003c movel %d0,%a2@(60) _ISR_Enable( level ); 5187c: 46c3 movew %d3,%sr _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 5187e: 4868 0010 pea %a0@(16) 51882: 486a 0030 pea %a2@(48) 51886: 4eb9 0005 528c jsr 5528c <_Watchdog_Insert> if ( !ts->active ) { 5188c: 508f addql #8,%sp 5188e: 102a 007c moveb %a2@(124),%d0 51892: 6678 bnes 5190c <_Timer_server_Schedule_operation_method+0x100> _Timer_server_Reset_interval_system_watchdog( ts ); 51894: 2f0a movel %a2,%sp@- 51896: 4eba fce8 jsr %pc@(51580 <_Timer_server_Reset_interval_system_watchdog>) 5189a: 606e bras 5190a <_Timer_server_Schedule_operation_method+0xfe> } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 5189c: 7203 moveq #3,%d1 5189e: b280 cmpl %d0,%d1 518a0: 666a bnes 5190c <_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 ); 518a2: 203c 0000 0700 movel #1792,%d0 518a8: 40c3 movew %sr,%d3 518aa: 8083 orl %d3,%d0 518ac: 46c0 movew %d0,%sr 518ae: 200a movel %a2,%d0 518b0: 0680 0000 006c addil #108,%d0 snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 518b6: 2239 0007 54ee movel 754ee <_TOD_Now>,%d1 last_snapshot = ts->TOD_watchdogs.last_snapshot; 518bc: 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)); 518c0: 226a 0068 moveal %a2@(104),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 518c4: b089 cmpl %a1,%d0 518c6: 6720 beqs 518e8 <_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; 518c8: 2029 0010 movel %a1@(16),%d0 if ( snapshot > last_snapshot ) { 518cc: b481 cmpl %d1,%d2 518ce: 6410 bccs 518e0 <_Timer_server_Schedule_operation_method+0xd4> /* * We advanced in time. */ delta = snapshot - last_snapshot; 518d0: 2801 movel %d1,%d4 518d2: 9882 subl %d2,%d4 if (delta_interval > delta) { 518d4: b880 cmpl %d0,%d4 518d6: 6504 bcss 518dc <_Timer_server_Schedule_operation_method+0xd0> 518d8: 4280 clrl %d0 <== NOT EXECUTED 518da: 6008 bras 518e4 <_Timer_server_Schedule_operation_method+0xd8><== NOT EXECUTED delta_interval -= delta; 518dc: 9084 subl %d4,%d0 518de: 6004 bras 518e4 <_Timer_server_Schedule_operation_method+0xd8> } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 518e0: d082 addl %d2,%d0 delta_interval += delta; 518e2: 9081 subl %d1,%d0 } first_watchdog->delta_interval = delta_interval; 518e4: 2340 0010 movel %d0,%a1@(16) } ts->TOD_watchdogs.last_snapshot = snapshot; 518e8: 2541 0074 movel %d1,%a2@(116) _ISR_Enable( level ); 518ec: 46c3 movew %d3,%sr _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 518ee: 4868 0010 pea %a0@(16) 518f2: 486a 0068 pea %a2@(104) 518f6: 4eb9 0005 528c jsr 5528c <_Watchdog_Insert> if ( !ts->active ) { 518fc: 508f addql #8,%sp 518fe: 102a 007c moveb %a2@(124),%d0 51902: 6608 bnes 5190c <_Timer_server_Schedule_operation_method+0x100> _Timer_server_Reset_tod_system_watchdog( ts ); 51904: 2f0a movel %a2,%sp@- 51906: 4eba fcd8 jsr %pc@(515e0 <_Timer_server_Reset_tod_system_watchdog>) 5190a: 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 ); } } 5190c: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 51912: 4e5e unlk %fp if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 51914: 4ef9 0005 4012 jmp 54012 <_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 ); 5191a: 202a 0078 movel %a2@(120),%d0 5191e: 2d48 000c movel %a0,%fp@(12) } } 51922: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 * 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 ); 51928: 2d40 0008 movel %d0,%fp@(8) } } 5192c: 4e5e unlk %fp * 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 ); 5192e: 4ef9 0005 1fdc jmp 51fdc <_Chain_Append> 00059254 <_calloc_r>: void *_calloc_r( struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { 59254: 4e56 0000 linkw %fp,#0 59258: 202e 000c movel %fp@(12),%d0 return calloc( elements, size ); 5925c: 2d6e 0010 000c movel %fp@(16),%fp@(12) 59262: 2d40 0008 movel %d0,%fp@(8) } 59266: 4e5e unlk %fp struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { return calloc( elements, size ); 59268: 4ef9 0004 8ea0 jmp 48ea0 ... 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 99c0 jsr 599c0 <_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 ... 00070b6a <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) { 70b6a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 70b6e: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 70b72: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return fcntl( fd, cmd, arg ); 70b76: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 70b7c: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 70b80: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 70b84: 4e5e unlk %fp <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 70b86: 4ef9 0007 09fc jmp 709fc <== NOT EXECUTED 00059270 <_free_r>: void _free_r( struct _reent *ignored __attribute__((unused)), void *ptr ) { 59270: 4e56 0000 linkw %fp,#0 free( ptr ); 59274: 2d6e 000c 0008 movel %fp@(12),%fp@(8) } 5927a: 4e5e unlk %fp void _free_r( struct _reent *ignored __attribute__((unused)), void *ptr ) { free( ptr ); 5927c: 4ef9 0004 8f80 jmp 48f80 ... 0004b792 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 4b792: 7001 moveq #1,%d0 <== NOT EXECUTED #include pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { 4b794: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpid(); } 4b798: 4e5e unlk %fp <== NOT EXECUTED 00049164 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 49164: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return gettimeofday( tp, tzp ); } 49168: 4e5e unlk %fp <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 4916a: 4ef9 0004 9108 jmp 49108 <== NOT EXECUTED 00049170 <_gettimeofday_r>: int _gettimeofday_r( struct _reent *ignored_reentrancy_stuff __attribute__((unused)), struct timeval *tp, struct timezone *tzp ) { 49170: 4e56 0000 linkw %fp,#0 49174: 202e 000c movel %fp@(12),%d0 return gettimeofday( tp, tzp ); 49178: 2d6e 0010 000c movel %fp@(16),%fp@(12) 4917e: 2d40 0008 movel %d0,%fp@(8) } 49182: 4e5e unlk %fp struct _reent *ignored_reentrancy_stuff __attribute__((unused)), struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 49184: 4ef9 0004 9108 jmp 49108 ... 00059348 <_isatty_r>: int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { 59348: 4e56 0000 linkw %fp,#0 return isatty( fd ); 5934c: 2d6e 000c 0008 movel %fp@(12),%fp@(8) } 59352: 4e5e unlk %fp int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { return isatty( fd ); 59354: 4ef9 0005 9914 jmp 59914 ... 00061276 <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { 61276: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6127a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return link( existing, new ); 6127e: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 61284: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 61288: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 6128a: 4ef9 0006 108c jmp 6108c <== NOT EXECUTED 00059448 <_lseek_r>: struct _reent *ptr __attribute__((unused)), int fd, off_t offset, int whence ) { 59448: 4e56 0000 linkw %fp,#0 5944c: 202e 000c movel %fp@(12),%d0 59450: 2f02 movel %d2,%sp@- 59452: 222e 0010 movel %fp@(16),%d1 59456: 242e 0014 movel %fp@(20),%d2 return lseek( fd, offset, whence ); 5945a: 2d6e 0018 0014 movel %fp@(24),%fp@(20) 59460: 2d41 000c movel %d1,%fp@(12) 59464: 2d42 0010 movel %d2,%fp@(16) 59468: 2d40 0008 movel %d0,%fp@(8) } 5946c: 241f movel %sp@+,%d2 5946e: 4e5e unlk %fp int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 59470: 4ef9 0005 935c jmp 5935c ... 00061472 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 61472: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61476: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 6147a: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 61480: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 61484: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 61486: 4ef9 0006 13ac jmp 613ac <== NOT EXECUTED 00059478 <_malloc_r>: void *_malloc_r( struct _reent *ignored __attribute__((unused)), size_t size ) { 59478: 4e56 0000 linkw %fp,#0 return malloc( size ); 5947c: 2d6e 000c 0008 movel %fp@(12),%fp@(8) } 59482: 4e5e unlk %fp void *_malloc_r( struct _reent *ignored __attribute__((unused)), size_t size ) { return malloc( size ); 59484: 4ef9 0004 9484 jmp 49484 ... 00042d0c <_open_r>: struct _reent *ptr __attribute__((unused)), const char *buf, int flags, int mode ) { 42d0c: 4e56 0000 linkw %fp,#0 42d10: 222e 0010 movel %fp@(16),%d1 42d14: 202e 000c movel %fp@(12),%d0 return open( buf, flags, mode ); 42d18: 2d6e 0014 0010 movel %fp@(20),%fp@(16) 42d1e: 2d41 000c movel %d1,%fp@(12) 42d22: 2d40 0008 movel %d0,%fp@(8) } 42d26: 4e5e unlk %fp const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 42d28: 4ef9 0004 2b10 jmp 42b10 ... 00059538 <_read_r>: struct _reent *ptr __attribute__((unused)), int fd, void *buf, size_t nbytes ) { 59538: 4e56 0000 linkw %fp,#0 5953c: 222e 0010 movel %fp@(16),%d1 59540: 202e 000c movel %fp@(12),%d0 return read( fd, buf, nbytes ); 59544: 2d6e 0014 0010 movel %fp@(20),%fp@(16) 5954a: 2d41 000c movel %d1,%fp@(12) 5954e: 2d40 0008 movel %d0,%fp@(8) } 59552: 4e5e unlk %fp int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 59554: 4ef9 0005 948c jmp 5948c ... 0005955c <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { 5955c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59560: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return realloc( ptr, size ); 59564: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 5956a: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 5956e: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 59570: 4ef9 0005 95b8 jmp 595b8 <== NOT EXECUTED ... 0008d084 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 8d084: 4e56 ffa4 linkw %fp,#-92 <== NOT EXECUTED 8d088: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 8d08c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 8d090: 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 ); 8d094: 2f0a movel %a2,%sp@- <== NOT EXECUTED 8d096: 4eb9 0004 5674 jsr 45674 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 8d09c: 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 ); 8d09e: 2600 movel %d0,%d3 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 8d0a0: 664a bnes 8d0ec <_rename_r+0x68> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 8d0a2: 742f moveq #47,%d2 <== NOT EXECUTED 8d0a4: 1012 moveb %a2@,%d0 <== NOT EXECUTED 8d0a6: 1200 moveb %d0,%d1 <== NOT EXECUTED 8d0a8: 49c1 extbl %d1 <== NOT EXECUTED 8d0aa: b481 cmpl %d1,%d2 <== NOT EXECUTED 8d0ac: 670c beqs 8d0ba <_rename_r+0x36> <== NOT EXECUTED 8d0ae: 143c 005c moveb #92,%d2 <== NOT EXECUTED 8d0b2: b481 cmpl %d1,%d2 <== NOT EXECUTED 8d0b4: 6704 beqs 8d0ba <_rename_r+0x36> <== NOT EXECUTED 8d0b6: 4a00 tstb %d0 <== NOT EXECUTED 8d0b8: 6612 bnes 8d0cc <_rename_r+0x48> <== NOT EXECUTED 8d0ba: 4878 0014 pea 14 <== NOT EXECUTED 8d0be: 2079 0009 71bc moveal 971bc ,%a0 <== NOT EXECUTED 8d0c4: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 8d0c8: 2f08 movel %a0,%sp@- <== NOT EXECUTED 8d0ca: 600e bras 8d0da <_rename_r+0x56> <== NOT EXECUTED 8d0cc: 4878 0014 pea 14 <== NOT EXECUTED 8d0d0: 2039 0009 71bc movel 971bc ,%d0 <== NOT EXECUTED 8d0d6: 5880 addql #4,%d0 <== NOT EXECUTED 8d0d8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d0da: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d0de: 4202 clrb %d2 <== NOT EXECUTED 8d0e0: 4eb9 0007 9068 jsr 79068 <== NOT EXECUTED 8d0e6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 8d0ea: 6024 bras 8d110 <_rename_r+0x8c> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 8d0ec: 42a7 clrl %sp@- <== NOT EXECUTED 8d0ee: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d0f2: 4878 0002 pea 2 <== NOT EXECUTED 8d0f6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d0f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 8d0fa: 4eb9 0004 578a jsr 4578a <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 8d100: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 8d104: 4a80 tstl %d0 <== NOT EXECUTED 8d106: 6706 beqs 8d10e <_rename_r+0x8a> <== NOT EXECUTED 8d108: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d10a: 6000 0286 braw 8d392 <_rename_r+0x30e> <== NOT EXECUTED 8d10e: 7401 moveq #1,%d2 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 8d110: 4878 0014 pea 14 <== NOT EXECUTED 8d114: 2a0e movel %fp,%d5 <== NOT EXECUTED 8d116: 0685 ffff ffd4 addil #-44,%d5 <== NOT EXECUTED 8d11c: 280e movel %fp,%d4 <== NOT EXECUTED 8d11e: 0684 ffff ffe8 addil #-24,%d4 <== NOT EXECUTED 8d124: 49f9 0007 9068 lea 79068 ,%a4 <== NOT EXECUTED name = old + old_parent_pathlen; 8d12a: d68a addl %a2,%d3 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 8d12c: 45f9 0007 c0d8 lea 7c0d8 ,%a2 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 8d132: 2f05 movel %d5,%sp@- <== NOT EXECUTED 8d134: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d136: 4e94 jsr %a4@ <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 8d138: 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; 8d13a: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 8d13e: 4e92 jsr %a2@ <== NOT EXECUTED 8d140: 2e80 movel %d0,%sp@ <== NOT EXECUTED 8d142: 2f03 movel %d3,%sp@- <== NOT EXECUTED 8d144: 4eb9 0004 563c jsr 4563c <== NOT EXECUTED 8d14a: d680 addl %d0,%d3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 8d14c: 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 ) ); 8d14e: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 8d152: 4e92 jsr %a2@ <== NOT EXECUTED 8d154: 4297 clrl %sp@ <== NOT EXECUTED 8d156: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d158: 42a7 clrl %sp@- <== NOT EXECUTED 8d15a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d15c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 8d15e: 4eb9 0004 56ba jsr 456ba <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 8d164: 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 ), 8d168: 2800 movel %d0,%d4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 8d16a: 672a beqs 8d196 <_rename_r+0x112> <== NOT EXECUTED if ( free_old_parentloc ) 8d16c: 4a02 tstb %d2 <== NOT EXECUTED 8d16e: 6716 beqs 8d186 <_rename_r+0x102> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d170: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d174: 4a88 tstl %a0 <== NOT EXECUTED 8d176: 670e beqs 8d186 <_rename_r+0x102> <== NOT EXECUTED 8d178: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d17c: 4a88 tstl %a0 <== NOT EXECUTED 8d17e: 6706 beqs 8d186 <_rename_r+0x102> <== NOT EXECUTED 8d180: 2f05 movel %d5,%sp@- <== NOT EXECUTED 8d182: 4e90 jsr %a0@ <== NOT EXECUTED 8d184: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 8d186: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 8d18c: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d18e: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d190: 2084 movel %d4,%a0@ <== NOT EXECUTED 8d192: 6000 01fe braw 8d392 <_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 ); 8d196: 762f moveq #47,%d3 <== NOT EXECUTED 8d198: 1013 moveb %a3@,%d0 <== NOT EXECUTED 8d19a: 1200 moveb %d0,%d1 <== NOT EXECUTED 8d19c: 49c1 extbl %d1 <== NOT EXECUTED 8d19e: b681 cmpl %d1,%d3 <== NOT EXECUTED 8d1a0: 670c beqs 8d1ae <_rename_r+0x12a> <== NOT EXECUTED 8d1a2: 163c 005c moveb #92,%d3 <== NOT EXECUTED 8d1a6: b681 cmpl %d1,%d3 <== NOT EXECUTED 8d1a8: 6704 beqs 8d1ae <_rename_r+0x12a> <== NOT EXECUTED 8d1aa: 4a00 tstb %d0 <== NOT EXECUTED 8d1ac: 6622 bnes 8d1d0 <_rename_r+0x14c> <== NOT EXECUTED 8d1ae: 4878 0014 pea 14 <== NOT EXECUTED 8d1b2: 2079 0009 71bc moveal 971bc ,%a0 <== NOT EXECUTED 8d1b8: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 8d1bc: 2f08 movel %a0,%sp@- <== NOT EXECUTED 8d1be: 486e ffc0 pea %fp@(-64) <== NOT EXECUTED 8d1c2: 4eb9 0007 9068 jsr 79068 <== NOT EXECUTED 8d1c8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 8d1cc: 7001 moveq #1,%d0 <== NOT EXECUTED 8d1ce: 601a bras 8d1ea <_rename_r+0x166> <== NOT EXECUTED 8d1d0: 4878 0014 pea 14 <== NOT EXECUTED 8d1d4: 2039 0009 71bc movel 971bc ,%d0 <== NOT EXECUTED 8d1da: 5880 addql #4,%d0 <== NOT EXECUTED 8d1dc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 8d1de: 486e ffc0 pea %fp@(-64) <== NOT EXECUTED 8d1e2: 4e94 jsr %a4@ <== NOT EXECUTED 8d1e4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 8d1e8: 4280 clrl %d0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 8d1ea: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 8d1ee: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 8d1f2: 4a88 tstl %a0 <== NOT EXECUTED 8d1f4: 6700 00f6 beqw 8d2ec <_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 ); 8d1f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 8d1fc: 280e movel %fp,%d4 <== NOT EXECUTED 8d1fe: 0684 ffff ffc0 addil #-64,%d4 <== NOT EXECUTED 8d204: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d206: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 8d20a: 4e90 jsr %a0@ <== NOT EXECUTED if ( result != 0 ) { 8d20c: 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 ); 8d210: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( result != 0 ) { 8d212: 4a80 tstl %d0 <== NOT EXECUTED 8d214: 675a beqs 8d270 <_rename_r+0x1ec> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d216: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 8d21a: 4a88 tstl %a0 <== NOT EXECUTED 8d21c: 670e beqs 8d22c <_rename_r+0x1a8> <== NOT EXECUTED 8d21e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d222: 4a88 tstl %a0 <== NOT EXECUTED 8d224: 6706 beqs 8d22c <_rename_r+0x1a8> <== NOT EXECUTED 8d226: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d228: 4e90 jsr %a0@ <== NOT EXECUTED 8d22a: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d22c: 4a02 tstb %d2 <== NOT EXECUTED 8d22e: 6718 beqs 8d248 <_rename_r+0x1c4> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d230: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d234: 4a88 tstl %a0 <== NOT EXECUTED 8d236: 6710 beqs 8d248 <_rename_r+0x1c4> <== NOT EXECUTED 8d238: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d23c: 4a88 tstl %a0 <== NOT EXECUTED 8d23e: 6708 beqs 8d248 <_rename_r+0x1c4> <== NOT EXECUTED 8d240: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d244: 4e90 jsr %a0@ <== NOT EXECUTED 8d246: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d248: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d24c: 4a88 tstl %a0 <== NOT EXECUTED 8d24e: 6710 beqs 8d260 <_rename_r+0x1dc> <== NOT EXECUTED 8d250: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d254: 4a88 tstl %a0 <== NOT EXECUTED 8d256: 6708 beqs 8d260 <_rename_r+0x1dc> <== NOT EXECUTED 8d258: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d25c: 4e90 jsr %a0@ <== NOT EXECUTED 8d25e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 8d260: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 8d266: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d268: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d26a: 208a movel %a2,%a0@ <== NOT EXECUTED 8d26c: 6000 0124 braw 8d392 <_rename_r+0x30e> <== NOT EXECUTED 8d270: 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 ) { 8d274: 202e ffd0 movel %fp@(-48),%d0 <== NOT EXECUTED 8d278: b0ae ffe4 cmpl %fp@(-28),%d0 <== NOT EXECUTED 8d27c: 6758 beqs 8d2d6 <_rename_r+0x252> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d27e: 4a88 tstl %a0 <== NOT EXECUTED 8d280: 670e beqs 8d290 <_rename_r+0x20c> <== NOT EXECUTED 8d282: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d286: 4a88 tstl %a0 <== NOT EXECUTED 8d288: 6706 beqs 8d290 <_rename_r+0x20c> <== NOT EXECUTED 8d28a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d28c: 4e90 jsr %a0@ <== NOT EXECUTED 8d28e: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d290: 4a02 tstb %d2 <== NOT EXECUTED 8d292: 6718 beqs 8d2ac <_rename_r+0x228> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d294: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d298: 4a88 tstl %a0 <== NOT EXECUTED 8d29a: 6710 beqs 8d2ac <_rename_r+0x228> <== NOT EXECUTED 8d29c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d2a0: 4a88 tstl %a0 <== NOT EXECUTED 8d2a2: 6708 beqs 8d2ac <_rename_r+0x228> <== NOT EXECUTED 8d2a4: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d2a8: 4e90 jsr %a0@ <== NOT EXECUTED 8d2aa: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d2ac: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d2b0: 4a88 tstl %a0 <== NOT EXECUTED 8d2b2: 6710 beqs 8d2c4 <_rename_r+0x240> <== NOT EXECUTED 8d2b4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d2b8: 4a88 tstl %a0 <== NOT EXECUTED 8d2ba: 6708 beqs 8d2c4 <_rename_r+0x240> <== NOT EXECUTED 8d2bc: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d2c0: 4e90 jsr %a0@ <== NOT EXECUTED 8d2c2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 8d2c4: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 8d2ca: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d2cc: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d2ce: 7012 moveq #18,%d0 <== NOT EXECUTED 8d2d0: 2080 movel %d0,%a0@ <== NOT EXECUTED 8d2d2: 6000 00be braw 8d392 <_rename_r+0x30e> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 8d2d6: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED 8d2da: 4a89 tstl %a1 <== NOT EXECUTED 8d2dc: 6654 bnes 8d332 <_rename_r+0x2ae> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d2de: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d2e2: 4a88 tstl %a0 <== NOT EXECUTED 8d2e4: 6706 beqs 8d2ec <_rename_r+0x268> <== NOT EXECUTED 8d2e6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d2e8: 4e90 jsr %a0@ <== NOT EXECUTED 8d2ea: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d2ec: 4a02 tstb %d2 <== NOT EXECUTED 8d2ee: 6718 beqs 8d308 <_rename_r+0x284> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d2f0: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d2f4: 4a88 tstl %a0 <== NOT EXECUTED 8d2f6: 6710 beqs 8d308 <_rename_r+0x284> <== NOT EXECUTED 8d2f8: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d2fc: 4a88 tstl %a0 <== NOT EXECUTED 8d2fe: 6708 beqs 8d308 <_rename_r+0x284> <== NOT EXECUTED 8d300: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d304: 4e90 jsr %a0@ <== NOT EXECUTED 8d306: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d308: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d30c: 4a88 tstl %a0 <== NOT EXECUTED 8d30e: 6710 beqs 8d320 <_rename_r+0x29c> <== NOT EXECUTED 8d310: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d314: 4a88 tstl %a0 <== NOT EXECUTED 8d316: 6708 beqs 8d320 <_rename_r+0x29c> <== NOT EXECUTED 8d318: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d31c: 4e90 jsr %a0@ <== NOT EXECUTED 8d31e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 8d320: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 8d326: 76ff moveq #-1,%d3 <== NOT EXECUTED 8d328: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d32a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 8d330: 6060 bras 8d392 <_rename_r+0x30e> <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 8d332: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 8d336: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d338: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d33c: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d340: 4e91 jsr %a1@ <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d342: 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 ); 8d346: 2600 movel %d0,%d3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 8d348: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 8d34c: 4a88 tstl %a0 <== NOT EXECUTED 8d34e: 670e beqs 8d35e <_rename_r+0x2da> <== NOT EXECUTED 8d350: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d354: 4a88 tstl %a0 <== NOT EXECUTED 8d356: 6706 beqs 8d35e <_rename_r+0x2da> <== NOT EXECUTED 8d358: 2f04 movel %d4,%sp@- <== NOT EXECUTED 8d35a: 4e90 jsr %a0@ <== NOT EXECUTED 8d35c: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 8d35e: 4a02 tstb %d2 <== NOT EXECUTED 8d360: 6718 beqs 8d37a <_rename_r+0x2f6> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 8d362: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 8d366: 4a88 tstl %a0 <== NOT EXECUTED 8d368: 6710 beqs 8d37a <_rename_r+0x2f6> <== NOT EXECUTED 8d36a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d36e: 4a88 tstl %a0 <== NOT EXECUTED 8d370: 6708 beqs 8d37a <_rename_r+0x2f6> <== NOT EXECUTED 8d372: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 8d376: 4e90 jsr %a0@ <== NOT EXECUTED 8d378: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 8d37a: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 8d37e: 4a88 tstl %a0 <== NOT EXECUTED 8d380: 6710 beqs 8d392 <_rename_r+0x30e> <== NOT EXECUTED 8d382: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 8d386: 4a88 tstl %a0 <== NOT EXECUTED 8d388: 6708 beqs 8d392 <_rename_r+0x30e> <== NOT EXECUTED 8d38a: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 8d38e: 4e90 jsr %a0@ <== NOT EXECUTED 8d390: 588f addql #4,%sp <== NOT EXECUTED return result; } 8d392: 2003 movel %d3,%d0 <== NOT EXECUTED 8d394: 4cee 1c3c ffa4 moveml %fp@(-92),%d2-%d5/%a2-%a4 <== NOT EXECUTED 8d39a: 4e5e unlk %fp <== NOT EXECUTED ... 00046af4 <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 46af4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46af8: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 46afc: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 46b02: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 46b06: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 46b08: 4ef9 0004 6a2c jmp 46a2c <== NOT EXECUTED ... 0004c5a2 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { 4c5a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return unlink( path ); 4c5a6: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 4c5ac: 4e5e unlk %fp <== NOT EXECUTED int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 4c5ae: 4ef9 0004 c3b8 jmp 4c3b8 <== NOT EXECUTED 00059578 <_write_r>: struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes ) { 59578: 4e56 0000 linkw %fp,#0 5957c: 222e 0010 movel %fp@(16),%d1 59580: 202e 000c movel %fp@(12),%d0 return write( fd, buf, nbytes ); 59584: 2d6e 0014 0010 movel %fp@(20),%fp@(16) 5958a: 2d41 000c movel %d1,%fp@(12) 5958e: 2d40 0008 movel %d0,%fp@(8) } 59592: 4e5e unlk %fp int fd, const void *buf, size_t nbytes ) { return write( fd, buf, nbytes ); 59594: 4ef9 0005 9698 jmp 59698 ... 00060208 : #include int chdir( const char *pathname ) { 60208: 4e56 ffec linkw %fp,#-20 6020c: 2f03 movel %d3,%sp@- 6020e: 262e 0008 movel %fp@(8),%d3 60212: 2f02 movel %d2,%sp@- rtems_filesystem_location_info_t loc; int result; if ( !pathname ) 60214: 4a83 tstl %d3 60216: 6612 bnes 6022a rtems_set_errno_and_return_minus_one( EFAULT ); 60218: 4eb9 0007 6030 jsr 76030 <__errno> 6021e: 740e moveq #14,%d2 60220: 72ff moveq #-1,%d1 60222: 2040 moveal %d0,%a0 60224: 2082 movel %d2,%a0@ 60226: 6000 00ce braw 602f6 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 6022a: 2f03 movel %d3,%sp@- rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 6022c: 240e movel %fp,%d2 6022e: 0682 ffff ffec addil #-20,%d2 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 60234: 4eb9 0007 c0d8 jsr 7c0d8 rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 6023a: 7201 moveq #1,%d1 6023c: 2e81 movel %d1,%sp@ 6023e: 2f02 movel %d2,%sp@- 60240: 4878 0001 pea 1 60244: 2f00 movel %d0,%sp@- 60246: 2f03 movel %d3,%sp@- 60248: 4eb9 0004 578a jsr 4578a pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 6024e: 4fef 0014 lea %sp@(20),%sp 60252: 4a80 tstl %d0 60254: 6706 beqs 6025c 60256: 72ff moveq #-1,%d1 60258: 6000 009c braw 602f6 return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 6025c: 226e fff8 moveal %fp@(-8),%a1 60260: 2069 0010 moveal %a1@(16),%a0 60264: 4a88 tstl %a0 60266: 6620 bnes 60288 rtems_filesystem_freenode( &loc ); 60268: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 6026c: 4a88 tstl %a0 <== NOT EXECUTED 6026e: 6706 beqs 60276 <== NOT EXECUTED 60270: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60272: 4e90 jsr %a0@ <== NOT EXECUTED 60274: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 60276: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 6027c: 72ff moveq #-1,%d1 <== NOT EXECUTED 6027e: 2040 moveal %d0,%a0 <== NOT EXECUTED 60280: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 60286: 606e bras 602f6 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 60288: 2f02 movel %d2,%sp@- 6028a: 4e90 jsr %a0@ 6028c: 588f addql #4,%sp 6028e: 7201 moveq #1,%d1 60290: b280 cmpl %d0,%d1 60292: 6726 beqs 602ba rtems_filesystem_freenode( &loc ); 60294: 206e fff8 moveal %fp@(-8),%a0 60298: 4a88 tstl %a0 6029a: 670e beqs 602aa 6029c: 2068 001c moveal %a0@(28),%a0 602a0: 4a88 tstl %a0 602a2: 6706 beqs 602aa 602a4: 2f02 movel %d2,%sp@- 602a6: 4e90 jsr %a0@ 602a8: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); 602aa: 4eb9 0007 6030 jsr 76030 <__errno> 602b0: 72ff moveq #-1,%d1 602b2: 2040 moveal %d0,%a0 602b4: 7014 moveq #20,%d0 602b6: 2080 movel %d0,%a0@ 602b8: 603c bras 602f6 } rtems_filesystem_freenode( &rtems_filesystem_current ); 602ba: 2279 0009 71bc moveal 971bc ,%a1 602c0: 2069 0010 moveal %a1@(16),%a0 602c4: 4a88 tstl %a0 602c6: 6710 beqs 602d8 602c8: 2068 001c moveal %a0@(28),%a0 602cc: 4a88 tstl %a0 602ce: 6708 beqs 602d8 602d0: 4869 0004 pea %a1@(4) 602d4: 4e90 jsr %a0@ 602d6: 588f addql #4,%sp rtems_filesystem_current = loc; 602d8: 4878 0014 pea 14 602dc: 486e ffec pea %fp@(-20) 602e0: 2039 0009 71bc movel 971bc ,%d0 602e6: 5880 addql #4,%d0 602e8: 2f00 movel %d0,%sp@- 602ea: 4eb9 0007 9068 jsr 79068 return 0; 602f0: 4fef 000c lea %sp@(12),%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; 602f4: 4281 clrl %d1 return 0; } 602f6: 242e ffe4 movel %fp@(-28),%d2 602fa: 2001 movel %d1,%d0 602fc: 262e ffe8 movel %fp@(-24),%d3 60300: 4e5e unlk %fp <== NOT EXECUTED 00045308 : int chmod( const char *path, mode_t mode ) { 45308: 4e56 ffec linkw %fp,#-20 4530c: 2f03 movel %d3,%sp@- 4530e: 262e 0008 movel %fp@(8),%d3 45312: 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 ); 45314: 240e movel %fp,%d2 45316: 0682 ffff ffec addil #-20,%d2 4531c: 2f03 movel %d3,%sp@- 4531e: 4eb9 0007 c0d8 jsr 7c0d8 45324: 7201 moveq #1,%d1 45326: 2e81 movel %d1,%sp@ 45328: 2f02 movel %d2,%sp@- 4532a: 42a7 clrl %sp@- 4532c: 2f00 movel %d0,%sp@- 4532e: 2f03 movel %d3,%sp@- 45330: 4eb9 0004 578a jsr 4578a if ( status != 0 ) 45336: 4fef 0014 lea %sp@(20),%sp 4533a: 4a80 tstl %d0 4533c: 6706 beqs 45344 4533e: 76ff moveq #-1,%d3 45340: 6000 0082 braw 453c4 return -1; if ( !loc.handlers ){ 45344: 206e fff4 moveal %fp@(-12),%a0 45348: 4a88 tstl %a0 4534a: 6626 bnes 45372 rtems_filesystem_freenode( &loc ); 4534c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 45350: 4a88 tstl %a0 <== NOT EXECUTED 45352: 670e beqs 45362 <== NOT EXECUTED 45354: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 45358: 4a88 tstl %a0 <== NOT EXECUTED 4535a: 6706 beqs 45362 <== NOT EXECUTED 4535c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4535e: 4e90 jsr %a0@ <== NOT EXECUTED 45360: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 45362: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 45368: 76ff moveq #-1,%d3 <== NOT EXECUTED 4536a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4536c: 7009 moveq #9,%d0 <== NOT EXECUTED 4536e: 2080 movel %d0,%a0@ <== NOT EXECUTED 45370: 6052 bras 453c4 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 45372: 2068 001c moveal %a0@(28),%a0 45376: 4a88 tstl %a0 45378: 6628 bnes 453a2 rtems_filesystem_freenode( &loc ); 4537a: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4537e: 4a88 tstl %a0 <== NOT EXECUTED 45380: 670e beqs 45390 <== NOT EXECUTED 45382: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 45386: 4a88 tstl %a0 <== NOT EXECUTED 45388: 6706 beqs 45390 <== NOT EXECUTED 4538a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4538c: 4e90 jsr %a0@ <== NOT EXECUTED 4538e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 45390: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 45396: 76ff moveq #-1,%d3 <== NOT EXECUTED 45398: 2040 moveal %d0,%a0 <== NOT EXECUTED 4539a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 453a0: 6022 bras 453c4 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); 453a2: 2f2e 000c movel %fp@(12),%sp@- 453a6: 2f02 movel %d2,%sp@- 453a8: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 453aa: 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 ); 453ae: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 453b0: 508f addql #8,%sp 453b2: 4a88 tstl %a0 453b4: 670e beqs 453c4 453b6: 2068 001c moveal %a0@(28),%a0 453ba: 4a88 tstl %a0 453bc: 6706 beqs 453c4 453be: 2f02 movel %d2,%sp@- 453c0: 4e90 jsr %a0@ 453c2: 588f addql #4,%sp return result; } 453c4: 2003 movel %d3,%d0 453c6: 242e ffe4 movel %fp@(-28),%d2 453ca: 262e ffe8 movel %fp@(-24),%d3 453ce: 4e5e unlk %fp ... 00060304 : int chown( const char *path, uid_t owner, gid_t group ) { 60304: 4e56 ffdc linkw %fp,#-36 60308: 48d7 003c moveml %d2-%d5,%sp@ 6030c: 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 ) ) 60310: 240e movel %fp,%d2 60312: 0682 ffff ffec addil #-20,%d2 60318: 2f03 movel %d3,%sp@- int chown( const char *path, uid_t owner, gid_t group ) { 6031a: 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 ) ) 6031e: 4eb9 0007 c0d8 jsr 7c0d8 60324: 7201 moveq #1,%d1 60326: 2e81 movel %d1,%sp@ int chown( const char *path, uid_t owner, gid_t group ) { 60328: 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 ) ) 6032c: 2f02 movel %d2,%sp@- 6032e: 42a7 clrl %sp@- 60330: 2f00 movel %d0,%sp@- 60332: 2f03 movel %d3,%sp@- 60334: 4eb9 0004 578a jsr 4578a 6033a: 4fef 0014 lea %sp@(20),%sp 6033e: 4a80 tstl %d0 60340: 6704 beqs 60346 60342: 76ff moveq #-1,%d3 60344: 6054 bras 6039a return -1; if ( !loc.ops->chown_h ) { 60346: 226e fff8 moveal %fp@(-8),%a1 6034a: 2069 0018 moveal %a1@(24),%a0 6034e: 4a88 tstl %a0 60350: 6620 bnes 60372 rtems_filesystem_freenode( &loc ); 60352: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 60356: 4a88 tstl %a0 <== NOT EXECUTED 60358: 6706 beqs 60360 <== NOT EXECUTED 6035a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6035c: 4e90 jsr %a0@ <== NOT EXECUTED 6035e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 60360: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60366: 76ff moveq #-1,%d3 <== NOT EXECUTED 60368: 2040 moveal %d0,%a0 <== NOT EXECUTED 6036a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 60370: 6028 bras 6039a <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); 60372: 3f05 movew %d5,%sp@- 60374: 4267 clrw %sp@- 60376: 3f04 movew %d4,%sp@- 60378: 4267 clrw %sp@- 6037a: 2f02 movel %d2,%sp@- 6037c: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 6037e: 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 ); 60382: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 60384: 4fef 000c lea %sp@(12),%sp 60388: 4a88 tstl %a0 6038a: 670e beqs 6039a 6038c: 2068 001c moveal %a0@(28),%a0 60390: 4a88 tstl %a0 60392: 6706 beqs 6039a 60394: 2f02 movel %d2,%sp@- 60396: 4e90 jsr %a0@ 60398: 588f addql #4,%sp return result; } 6039a: 2003 movel %d3,%d0 6039c: 4cee 003c ffdc moveml %fp@(-36),%d2-%d5 603a2: 4e5e unlk %fp ... 000603a8 : #include int chroot( const char *pathname ) { 603a8: 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) { 603ac: 203c 0009 bbbc movel #637884,%d0 #include int chroot( const char *pathname ) { 603b2: 2f0b movel %a3,%sp@- 603b4: 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) { 603b6: b0b9 0009 71bc cmpl 971bc ,%d0 603bc: 6628 bnes 603e6 rtems_libio_set_private_env(); /* try to set a new private env*/ 603be: 4eb9 0006 16ca jsr 616ca if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 603c4: 41f9 0009 bbbc lea 9bbbc ,%a0 603ca: b1f9 0009 71bc cmpal 971bc ,%a0 603d0: 6614 bnes 603e6 rtems_set_errno_and_return_minus_one( ENOTSUP ); 603d2: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 603d8: 72ff moveq #-1,%d1 <== NOT EXECUTED 603da: 2040 moveal %d0,%a0 <== NOT EXECUTED 603dc: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 603e2: 6000 0084 braw 60468 <== NOT EXECUTED } result = chdir(pathname); 603e6: 2f2e 0008 movel %fp@(8),%sp@- 603ea: 4eb9 0006 0208 jsr 60208 if (result) { 603f0: 588f addql #4,%sp 603f2: 4a80 tstl %d0 603f4: 6620 bnes 60416 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 603f6: 42a7 clrl %sp@- 603f8: 486e ffec pea %fp@(-20) 603fc: 42a7 clrl %sp@- 603fe: 4878 0001 pea 1 60402: 4879 0008 fe6b pea 8fe6b 60408: 4eb9 0004 578a jsr 4578a 6040e: 4fef 0014 lea %sp@(20),%sp 60412: 4a80 tstl %d0 60414: 6714 beqs 6042a /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 60416: 45f9 0007 6030 lea 76030 <__errno>,%a2 <== NOT EXECUTED 6041c: 4e92 jsr %a2@ <== NOT EXECUTED 6041e: 2640 moveal %d0,%a3 <== NOT EXECUTED 60420: 4e92 jsr %a2@ <== NOT EXECUTED 60422: 72ff moveq #-1,%d1 <== NOT EXECUTED 60424: 2040 moveal %d0,%a0 <== NOT EXECUTED 60426: 2690 movel %a0@,%a3@ <== NOT EXECUTED 60428: 603e bras 60468 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 6042a: 2279 0009 71bc moveal 971bc ,%a1 60430: 2069 0024 moveal %a1@(36),%a0 60434: 4a88 tstl %a0 60436: 6710 beqs 60448 60438: 2068 001c moveal %a0@(28),%a0 6043c: 4a88 tstl %a0 6043e: 6708 beqs 60448 60440: 4869 0018 pea %a1@(24) 60444: 4e90 jsr %a0@ 60446: 588f addql #4,%sp rtems_filesystem_root = loc; 60448: 4878 0014 pea 14 6044c: 486e ffec pea %fp@(-20) 60450: 2079 0009 71bc moveal 971bc ,%a0 60456: 41e8 0018 lea %a0@(24),%a0 6045a: 2f08 movel %a0,%sp@- 6045c: 4eb9 0007 9068 jsr 79068 return 0; 60462: 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; 60466: 4281 clrl %d1 return 0; } 60468: 246e ffe4 moveal %fp@(-28),%a2 6046c: 2001 movel %d1,%d0 6046e: 266e ffe8 moveal %fp@(-24),%a3 60472: 4e5e unlk %fp ... 00048eec : #include int close( int fd ) { 48eec: 4e56 0000 linkw %fp,#0 48ef0: 202e 0008 movel %fp@(8),%d0 48ef4: 2f0a movel %a2,%sp@- 48ef6: 2f02 movel %d2,%sp@- rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 48ef8: b0b9 0005 b4a4 cmpl 5b4a4 ,%d0 48efe: 6416 bccs 48f16 iop = rtems_libio_iop(fd); 48f00: 2479 0005 cba8 moveal 5cba8 ,%a2 48f06: ed88 lsll #6,%d0 48f08: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 48f0a: 202a 0014 movel %a2@(20),%d0 48f0e: 0280 0000 0100 andil #256,%d0 48f14: 6610 bnes 48f26 48f16: 4eb9 0004 ca88 jsr 4ca88 <__errno> 48f1c: 74ff moveq #-1,%d2 48f1e: 2040 moveal %d0,%a0 48f20: 7009 moveq #9,%d0 48f22: 2080 movel %d0,%a0@ 48f24: 603a bras 48f60 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 48f26: 206a 003c moveal %a2@(60),%a0 48f2a: 2068 0004 moveal %a0@(4),%a0 48f2e: 4a88 tstl %a0 48f30: 6604 bnes 48f36 48f32: 4282 clrl %d2 <== NOT EXECUTED 48f34: 6008 bras 48f3e <== NOT EXECUTED rc = (*iop->handlers->close_h)( iop ); 48f36: 2f0a movel %a2,%sp@- 48f38: 4e90 jsr %a0@ 48f3a: 588f addql #4,%sp 48f3c: 2400 movel %d0,%d2 rtems_filesystem_freenode( &iop->pathinfo ); 48f3e: 206a 0024 moveal %a2@(36),%a0 48f42: 4a88 tstl %a0 48f44: 6710 beqs 48f56 48f46: 2068 001c moveal %a0@(28),%a0 48f4a: 4a88 tstl %a0 48f4c: 6708 beqs 48f56 48f4e: 486a 0018 pea %a2@(24) 48f52: 4e90 jsr %a0@ 48f54: 588f addql #4,%sp rtems_libio_free( iop ); 48f56: 2f0a movel %a2,%sp@- 48f58: 4eb9 0004 92b6 jsr 492b6 return rc; 48f5e: 588f addql #4,%sp } 48f60: 2002 movel %d2,%d0 48f62: 242e fff8 movel %fp@(-8),%d2 48f66: 246e fffc moveal %fp@(-4),%a2 48f6a: 4e5e unlk %fp <== NOT EXECUTED 00048408 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 48408: 4e56 fff4 linkw %fp,#-12 4840c: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 48410: 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; 48414: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = 0; 48418: 42ae fff8 clrl %fp@(-8) args.mode = 0; 4841c: 42ae fffc clrl %fp@(-4) status = rtems_io_close( 48420: 2f29 000c movel %a1@(12),%sp@- 48424: 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; 48428: 2d48 fff4 movel %a0,%fp@(-12) args.flags = 0; args.mode = 0; status = rtems_io_close( 4842c: 4eb9 0004 9678 jsr 49678 np->major, np->minor, (void *) &args ); if ( status ) { 48432: 4fef 000c lea %sp@(12),%sp 48436: 4a80 tstl %d0 48438: 670a beqs 48444 return rtems_deviceio_errno(status); 4843a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4843c: 4eb9 0004 84f8 jsr 484f8 <== NOT EXECUTED 48442: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 48444: 4e5e unlk %fp <== NOT EXECUTED 0004845a : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 4845a: 4e56 ffe4 linkw %fp,#-28 4845e: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 48462: 246e 0014 moveal %fp@(20),%a2 48466: 282e 0008 movel %fp@(8),%d4 4846a: 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; 4846e: 2652 moveal %a2@,%a3 if (!device_name_table) 48470: 4a8b tstl %a3 48472: 670a beqs 4847e 48474: 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) 48476: 4bf9 0004 bae4 lea 4bae4 ,%a5 4847c: 6058 bras 484d6 } /* 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 ); 4847e: 4eb9 0004 a7dc jsr 4a7dc <__errno> <== NOT EXECUTED 48484: 740e moveq #14,%d2 <== NOT EXECUTED 48486: 72ff moveq #-1,%d1 <== NOT EXECUTED 48488: 2040 moveal %d0,%a0 <== NOT EXECUTED 4848a: 2082 movel %d2,%a0@ <== NOT EXECUTED 4848c: 605e bras 484ec <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 4848e: 2853 moveal %a3@,%a4 48490: 4a8c tstl %a4 48492: 673c beqs 484d0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 48494: 2f03 movel %d3,%sp@- 48496: 2f0c movel %a4,%sp@- 48498: 2f04 movel %d4,%sp@- 4849a: 4e95 jsr %a5@ 4849c: 4fef 000c lea %sp@(12),%sp 484a0: 4a80 tstl %d0 484a2: 662c bnes 484d0 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 484a4: 4a34 3800 tstb %a4@(00000000,%d3:l) 484a8: 6626 bnes 484d0 /* 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; 484aa: 2079 0005 9410 moveal 59410 ,%a0 484b0: 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; 484b2: 203c 0005 93c4 movel #365508,%d0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 484b8: 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; 484be: 41f9 0005 937c lea 5937c ,%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; 484c4: 2540 0008 movel %d0,%a2@(8) pathloc->ops = &devFS_ops; 484c8: 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]; 484cc: 248b movel %a3,%a2@ pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 484ce: 601c bras 484ec /* 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++) { 484d0: 5282 addql #1,%d2 484d2: 47eb 0014 lea %a3@(20),%a3 484d6: b4b9 0005 9298 cmpl 59298 ,%d2 484dc: 65b0 bcss 4848e pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 484de: 4eb9 0004 a7dc jsr 4a7dc <__errno> 484e4: 72ff moveq #-1,%d1 484e6: 2040 moveal %d0,%a0 484e8: 7002 moveq #2,%d0 484ea: 2080 movel %d0,%a0@ } 484ec: 2001 movel %d1,%d0 484ee: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 484f4: 4e5e unlk %fp <== NOT EXECUTED 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 9298 movel 59298 ,%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 81f4 jsr 481f4 <_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 a7dc jsr 4a7dc <__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 9298 movel 59298 ,%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 b02c jsr 4b02c 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 93c4 movel #365508,%d0 temp_mt_entry->mt_fs_root.ops = &devFS_ops; 41cdc: 41f9 0005 937c lea 5937c ,%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 <== NOT EXECUTED 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 84f8 jsr 484f8 <== 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 ... 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 a7dc jsr 4a7dc <__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 b608 lea 4b608 ,%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 a7dc jsr 4a7dc <__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 a7dc jsr 4a7dc <__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 9298 cmpl 59298 ,%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 a7dc jsr 4a7dc <__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 bacc jsr 4bacc 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 ... 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 84f8 jsr 484f8 <== NOT EXECUTED 41eba: 588f addql #4,%sp <== NOT EXECUTED return 0; } 41ebc: 4e5e unlk %fp <== NOT EXECUTED 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 84f8 jsr 484f8 <== 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 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 a7dc jsr 4a7dc <__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 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 ); 41f4c: 2368 0008 0016 movel %a0@(8),%a1@(22) buf->st_mode = the_dev->mode; 41f52: 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 ); 41f58: 2341 001a movel %d1,%a1@(26) buf->st_mode = the_dev->mode; return 0; } 41f5c: 4e5e unlk %fp <== NOT EXECUTED 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 84f8 jsr 484f8 <== 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 <== NOT EXECUTED 0004aba8 : */ int device_close( rtems_libio_t *iop ) { 4aba8: 4e56 fff4 linkw %fp,#-12 4abac: 226e 0008 moveal %fp@(8),%a1 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 4abb0: 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; 4abb4: 2069 0038 moveal %a1@(56),%a0 args.iop = iop; 4abb8: 2d49 fff4 movel %a1,%fp@(-12) args.flags = 0; 4abbc: 42ae fff8 clrl %fp@(-8) args.mode = 0; 4abc0: 42ae fffc clrl %fp@(-4) status = rtems_io_close( 4abc4: 2f28 0050 movel %a0@(80),%sp@- 4abc8: 2f28 004c movel %a0@(76),%sp@- 4abcc: 4eb9 0004 bdc0 jsr 4bdc0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 4abd2: 4fef 000c lea %sp@(12),%sp 4abd6: 4a80 tstl %d0 4abd8: 670a beqs 4abe4 return rtems_deviceio_errno(status); 4abda: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4abdc: 4eb9 0004 c344 jsr 4c344 <== NOT EXECUTED 4abe2: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 4abe4: 4e5e unlk %fp <== NOT EXECUTED 0004aa96 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4aa96: 4e56 fff0 linkw %fp,#-16 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; 4aa9a: 2d6e 0010 fff8 movel %fp@(16),%fp@(-8) the_jnode = iop->file_info; status = rtems_io_control( 4aaa0: 486e fff0 pea %fp@(-16) int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4aaa4: 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; 4aaa8: 2d6e 000c fff4 movel %fp@(12),%fp@(-12) args.buffer = buffer; the_jnode = iop->file_info; 4aaae: 2069 0038 moveal %a1@(56),%a0 { rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; 4aab2: 2d49 fff0 movel %a1,%fp@(-16) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4aab6: 2f28 0050 movel %a0@(80),%sp@- 4aaba: 2f28 004c movel %a0@(76),%sp@- 4aabe: 4eb9 0004 be18 jsr 4be18 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4aac4: 4fef 000c lea %sp@(12),%sp 4aac8: 4a80 tstl %d0 4aaca: 670c beqs 4aad8 return rtems_deviceio_errno(status); 4aacc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aace: 4eb9 0004 c344 jsr 4c344 <== NOT EXECUTED 4aad4: 588f addql #4,%sp <== NOT EXECUTED 4aad6: 6004 bras 4aadc <== NOT EXECUTED return args.ioctl_return; 4aad8: 202e fffc movel %fp@(-4),%d0 } 4aadc: 4e5e unlk %fp <== NOT EXECUTED 0004abe8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4abe8: 4e56 fff4 linkw %fp,#-12 4abec: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4abf0: 486e fff4 pea %fp@(-12) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; 4abf4: 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; 4abfa: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = iop->flags; args.mode = mode; 4abfe: 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; 4ac04: 2d48 fff4 movel %a0,%fp@(-12) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4ac08: 2f29 0050 movel %a1@(80),%sp@- 4ac0c: 2f29 004c movel %a1@(76),%sp@- 4ac10: 4eb9 0004 be70 jsr 4be70 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4ac16: 4fef 000c lea %sp@(12),%sp 4ac1a: 4a80 tstl %d0 4ac1c: 670a beqs 4ac28 return rtems_deviceio_errno(status); 4ac1e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ac20: 4eb9 0004 c344 jsr 4c344 <== NOT EXECUTED 4ac26: 588f addql #4,%sp <== NOT EXECUTED return 0; } 4ac28: 4e5e unlk %fp <== NOT EXECUTED 0004ab44 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4ab44: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4ab48: 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( 4ab4c: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 4ab50: 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; 4ab56: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED args.count = count; 4ab5c: 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; 4ab62: 2268 0038 moveal %a0@(56),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4ab66: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 4ab6a: 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; 4ab6e: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED args.offset = iop->offset; 4ab72: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED 4ab76: 2d41 ffec movel %d1,%fp@(-20) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4ab7a: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_read( 4ab7e: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4ab82: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4ab86: 4eb9 0004 bec8 jsr 4bec8 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4ab8c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ab90: 4a80 tstl %d0 <== NOT EXECUTED 4ab92: 670c beqs 4aba0 <== NOT EXECUTED return rtems_deviceio_errno(status); 4ab94: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ab96: 4eb9 0004 c344 jsr 4c344 <== NOT EXECUTED 4ab9c: 588f addql #4,%sp <== NOT EXECUTED 4ab9e: 6004 bras 4aba4 <== NOT EXECUTED return (ssize_t) args.bytes_moved; 4aba0: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4aba4: 4e5e unlk %fp <== NOT EXECUTED 0004aae0 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 4aae0: 4e56 ffe4 linkw %fp,#-28 4aae4: 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( 4aae8: 486e ffe4 pea %fp@(-28) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 4aaec: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 4aaf2: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) args.count = count; 4aaf8: 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; 4aafe: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.offset = iop->offset; 4ab02: 2028 000c movel %a0@(12),%d0 4ab06: 2228 0010 movel %a0@(16),%d1 rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4ab0a: 2d48 ffe4 movel %a0,%fp@(-28) args.offset = iop->offset; 4ab0e: 2d40 ffe8 movel %d0,%fp@(-24) 4ab12: 2d41 ffec movel %d1,%fp@(-20) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4ab16: 42ae fffc clrl %fp@(-4) status = rtems_io_write( 4ab1a: 2f29 0050 movel %a1@(80),%sp@- 4ab1e: 2f29 004c movel %a1@(76),%sp@- 4ab22: 4eb9 0004 bf20 jsr 4bf20 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4ab28: 4fef 000c lea %sp@(12),%sp 4ab2c: 4a80 tstl %d0 4ab2e: 670c beqs 4ab3c return rtems_deviceio_errno(status); 4ab30: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ab32: 4eb9 0004 c344 jsr 4c344 <== NOT EXECUTED 4ab38: 588f addql #4,%sp <== NOT EXECUTED 4ab3a: 6004 bras 4ab40 <== NOT EXECUTED return (ssize_t) args.bytes_moved; 4ab3c: 202e fffc movel %fp@(-4),%d0 } 4ab40: 4e5e unlk %fp <== NOT EXECUTED 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 <== NOT EXECUTED 00042d30 : int dup2( int fildes, int fildes2 ) { 42d30: 4e56 ffa8 linkw %fp,#-88 42d34: 48d7 041c moveml %d2-%d4/%a2,%sp@ /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 42d38: 280e movel %fp,%d4 42d3a: 0684 ffff ffba addil #-70,%d4 42d40: 45f9 0004 34dc lea 434dc ,%a2 42d46: 2f04 movel %d4,%sp@- int dup2( int fildes, int fildes2 ) { 42d48: 242e 0008 movel %fp@(8),%d2 42d4c: 262e 000c movel %fp@(12),%d3 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 42d50: 2f02 movel %d2,%sp@- 42d52: 4e92 jsr %a2@ if ( status == -1 ) 42d54: 508f addql #8,%sp 42d56: 72ff moveq #-1,%d1 42d58: b280 cmpl %d0,%d1 42d5a: 6720 beqs 42d7c /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 42d5c: 2f04 movel %d4,%sp@- 42d5e: 2f03 movel %d3,%sp@- 42d60: 4e92 jsr %a2@ if ( status == -1 ) 42d62: 508f addql #8,%sp 42d64: 72ff moveq #-1,%d1 42d66: b280 cmpl %d0,%d1 42d68: 6712 beqs 42d7c /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 42d6a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42d6c: 42a7 clrl %sp@- <== NOT EXECUTED 42d6e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42d70: 4eb9 0004 318c jsr 4318c <== NOT EXECUTED 42d76: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42d7a: 6002 bras 42d7e <== NOT EXECUTED 42d7c: 70ff moveq #-1,%d0 } 42d7e: 4cee 041c ffa8 moveml %fp@(-88),%d2-%d4/%a2 42d84: 4e5e unlk %fp <== NOT EXECUTED 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 b67c moveal 5b67c <__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 00060804 : fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { 60804: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp != NULL) 60808: 2039 0009 b2f2 movel 9b2f2 ,%d0 <== NOT EXECUTED 6080e: 670a beqs 6081a <== NOT EXECUTED fclose(group_fp); 60810: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60812: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED 60818: 588f addql #4,%sp <== NOT EXECUTED } 6081a: 4e5e unlk %fp <== NOT EXECUTED 0006081e : fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 6081e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp != NULL) 60822: 2039 0009 b20a movel 9b20a ,%d0 <== NOT EXECUTED 60828: 670a beqs 60834 <== NOT EXECUTED fclose(passwd_fp); 6082a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6082c: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED 60832: 588f addql #4,%sp <== NOT EXECUTED } 60834: 4e5e unlk %fp <== NOT EXECUTED 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 b67c moveal 5b67c <__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 a3ed pea 5a3ed <== 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 a3eb pea 5a3eb <== 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 b67c moveal 5b67c <__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 a3eb pea 5a3eb <== 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 000708bc : #include int fchdir( int fd ) { 708bc: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 708c0: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 708c4: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 708c8: b8b9 0009 6eb4 cmpl 96eb4 ,%d4 <== NOT EXECUTED 708ce: 6414 bccs 708e4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 708d0: 2079 0009 bb60 moveal 9bb60 ,%a0 <== NOT EXECUTED 708d6: ed8c lsll #6,%d4 <== NOT EXECUTED 708d8: d1c4 addal %d4,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 708da: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED 708de: 0800 0008 btst #8,%d0 <== NOT EXECUTED 708e2: 6612 bnes 708f6 <== NOT EXECUTED 708e4: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 708ea: 7609 moveq #9,%d3 <== NOT EXECUTED 708ec: 72ff moveq #-1,%d1 <== NOT EXECUTED 708ee: 2040 moveal %d0,%a0 <== NOT EXECUTED 708f0: 2083 movel %d3,%a0@ <== NOT EXECUTED 708f2: 6000 00fc braw 709f0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 708f6: 0800 0001 btst #1,%d0 <== NOT EXECUTED 708fa: 6612 bnes 7090e <== NOT EXECUTED 708fc: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 70902: 7416 moveq #22,%d2 <== NOT EXECUTED 70904: 72ff moveq #-1,%d1 <== NOT EXECUTED 70906: 2040 moveal %d0,%a0 <== NOT EXECUTED 70908: 2082 movel %d2,%a0@ <== NOT EXECUTED 7090a: 6000 00e4 braw 709f0 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 7090e: 2268 0024 moveal %a0@(36),%a1 <== NOT EXECUTED 70912: 4a89 tstl %a1 <== NOT EXECUTED 70914: 6708 beqs 7091e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 70916: 2269 0010 moveal %a1@(16),%a1 <== NOT EXECUTED 7091a: 4a89 tstl %a1 <== NOT EXECUTED 7091c: 6614 bnes 70932 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 7091e: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 70924: 72ff moveq #-1,%d1 <== NOT EXECUTED 70926: 2040 moveal %d0,%a0 <== NOT EXECUTED 70928: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 7092e: 6000 00c0 braw 709f0 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 70932: 2808 movel %a0,%d4 <== NOT EXECUTED 70934: 0684 0000 0018 addil #24,%d4 <== NOT EXECUTED 7093a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 7093c: 4e91 jsr %a1@ <== NOT EXECUTED 7093e: 588f addql #4,%sp <== NOT EXECUTED 70940: 7201 moveq #1,%d1 <== NOT EXECUTED 70942: b280 cmpl %d0,%d1 <== NOT EXECUTED 70944: 6712 beqs 70958 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 70946: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 7094c: 72ff moveq #-1,%d1 <== NOT EXECUTED 7094e: 2040 moveal %d0,%a0 <== NOT EXECUTED 70950: 7014 moveq #20,%d0 <== NOT EXECUTED 70952: 2080 movel %d0,%a0@ <== NOT EXECUTED 70954: 6000 009a braw 709f0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 70958: 4878 0014 pea 14 <== NOT EXECUTED 7095c: 240e movel %fp,%d2 <== NOT EXECUTED 7095e: 0682 ffff ffd8 addil #-40,%d2 <== NOT EXECUTED 70964: 45f9 0007 9068 lea 79068 ,%a2 <== NOT EXECUTED 7096a: 2639 0009 71bc movel 971bc ,%d3 <== NOT EXECUTED 70970: 5883 addql #4,%d3 <== NOT EXECUTED 70972: 2f03 movel %d3,%sp@- <== NOT EXECUTED 70974: 2f02 movel %d2,%sp@- <== NOT EXECUTED 70976: 4e92 jsr %a2@ <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 70978: 4878 0014 pea 14 <== NOT EXECUTED 7097c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 7097e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 70980: 4e92 jsr %a2@ <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 70982: 42a7 clrl %sp@- <== NOT EXECUTED 70984: 486e ffec pea %fp@(-20) <== NOT EXECUTED 70988: 42a7 clrl %sp@- <== NOT EXECUTED 7098a: 4878 0001 pea 1 <== NOT EXECUTED 7098e: 4879 0008 fe6b pea 8fe6b <== NOT EXECUTED 70994: 4eb9 0004 578a jsr 4578a <== NOT EXECUTED 7099a: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 7099e: 4a80 tstl %d0 <== NOT EXECUTED 709a0: 671a beqs 709bc <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 709a2: 4878 0014 pea 14 <== NOT EXECUTED 709a6: 2039 0009 71bc movel 971bc ,%d0 <== NOT EXECUTED 709ac: 5880 addql #4,%d0 <== NOT EXECUTED 709ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED 709b0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 709b2: 4e92 jsr %a2@ <== NOT EXECUTED return -1; 709b4: 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; 709b8: 72ff moveq #-1,%d1 <== NOT EXECUTED return -1; 709ba: 6034 bras 709f0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 709bc: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 709c0: 4a88 tstl %a0 <== NOT EXECUTED 709c2: 670e beqs 709d2 <== NOT EXECUTED 709c4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 709c8: 4a88 tstl %a0 <== NOT EXECUTED 709ca: 6706 beqs 709d2 <== NOT EXECUTED 709cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 709ce: 4e90 jsr %a0@ <== NOT EXECUTED 709d0: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_current = loc; 709d2: 4878 0014 pea 14 <== NOT EXECUTED 709d6: 486e ffec pea %fp@(-20) <== NOT EXECUTED 709da: 2239 0009 71bc movel 971bc ,%d1 <== NOT EXECUTED 709e0: 5881 addql #4,%d1 <== NOT EXECUTED 709e2: 2f01 movel %d1,%sp@- <== NOT EXECUTED 709e4: 4eb9 0007 9068 jsr 79068 <== NOT EXECUTED return 0; 709ea: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; 709ee: 4281 clrl %d1 <== NOT EXECUTED return 0; } 709f0: 2001 movel %d1,%d0 <== NOT EXECUTED 709f2: 4cee 041c ffc8 moveml %fp@(-56),%d2-%d4/%a2 <== NOT EXECUTED 709f8: 4e5e unlk %fp <== NOT EXECUTED 00060478 : int fchmod( int fd, mode_t mode ) { 60478: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6047c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 60480: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 60484: b0b9 0009 6eb4 cmpl 96eb4 ,%d0 <== NOT EXECUTED 6048a: 6414 bccs 604a0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 6048c: 2079 0009 bb60 moveal 9bb60 ,%a0 <== NOT EXECUTED 60492: ed88 lsll #6,%d0 <== NOT EXECUTED 60494: d1c0 addal %d0,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 60496: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED 6049a: 0800 0008 btst #8,%d0 <== NOT EXECUTED 6049e: 660e bnes 604ae <== NOT EXECUTED 604a0: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 604a6: 7209 moveq #9,%d1 <== NOT EXECUTED 604a8: 2040 moveal %d0,%a0 <== NOT EXECUTED 604aa: 2081 movel %d1,%a0@ <== NOT EXECUTED 604ac: 6044 bras 604f2 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 604ae: 44c0 movew %d0,%ccr <== NOT EXECUTED 604b0: 670e beqs 604c0 <== NOT EXECUTED 604b2: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 604b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 604ba: 7016 moveq #22,%d0 <== NOT EXECUTED 604bc: 2080 movel %d0,%a0@ <== NOT EXECUTED 604be: 6032 bras 604f2 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 604c0: 2268 003c moveal %a0@(60),%a1 <== NOT EXECUTED 604c4: 4aa9 001c tstl %a1@(28) <== NOT EXECUTED 604c8: 6610 bnes 604da <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 604ca: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 604d0: 2040 moveal %d0,%a0 <== NOT EXECUTED 604d2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 604d8: 6018 bras 604f2 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 604da: 2268 0020 moveal %a0@(32),%a1 <== NOT EXECUTED 604de: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 604e2: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 604e6: 2269 001c moveal %a1@(28),%a1 <== NOT EXECUTED 604ea: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 604ee: 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 ); 604f0: 4ed1 jmp %a1@ <== NOT EXECUTED } 604f2: 70ff moveq #-1,%d0 <== NOT EXECUTED 604f4: 4e5e unlk %fp <== NOT EXECUTED 000604f8 : int fchown( int fd, uid_t owner, gid_t group ) { 604f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 604fc: 302e 000e movew %fp@(14),%d0 <== NOT EXECUTED 60500: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60502: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 60506: 322e 0012 movew %fp@(18),%d1 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 6050a: b4b9 0009 6eb4 cmpl 96eb4 ,%d2 <== NOT EXECUTED 60510: 6414 bccs 60526 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 60512: 2079 0009 bb60 moveal 9bb60 ,%a0 <== NOT EXECUTED 60518: ed8a lsll #6,%d2 <== NOT EXECUTED 6051a: d1c2 addal %d2,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 6051c: 2428 0014 movel %a0@(20),%d2 <== NOT EXECUTED 60520: 0802 0008 btst #8,%d2 <== NOT EXECUTED 60524: 660e bnes 60534 <== NOT EXECUTED 60526: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 6052c: 7209 moveq #9,%d1 <== NOT EXECUTED 6052e: 2040 moveal %d0,%a0 <== NOT EXECUTED 60530: 2081 movel %d1,%a0@ <== NOT EXECUTED 60532: 6052 bras 60586 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 60534: 44c2 movew %d2,%ccr <== NOT EXECUTED 60536: 670e beqs 60546 <== NOT EXECUTED 60538: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 6053e: 2040 moveal %d0,%a0 <== NOT EXECUTED 60540: 7016 moveq #22,%d0 <== NOT EXECUTED 60542: 2080 movel %d0,%a0@ <== NOT EXECUTED 60544: 6040 bras 60586 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 60546: 2268 0024 moveal %a0@(36),%a1 <== NOT EXECUTED 6054a: 2269 0018 moveal %a1@(24),%a1 <== NOT EXECUTED 6054e: 4a89 tstl %a1 <== NOT EXECUTED 60550: 6610 bnes 60562 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 60552: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60558: 2040 moveal %d0,%a0 <== NOT EXECUTED 6055a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 60560: 6024 bras 60586 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 60562: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 60566: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 6056c: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED } 60572: 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 ); 60576: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED 6057a: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED 6057e: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } 60582: 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 ); 60584: 4ed1 jmp %a1@ <== NOT EXECUTED } 60586: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 6058a: 70ff moveq #-1,%d0 <== NOT EXECUTED 6058c: 4e5e unlk %fp <== NOT EXECUTED 000709fc : int fcntl( int fd, int cmd, ... ) { 709fc: 4e56 fff0 linkw %fp,#-16 70a00: 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, ...)); 70a04: 41ee 0010 lea %fp@(16),%a0 70a08: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 70a0c: 262e 000c movel %fp@(12),%d3 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 70a10: 2279 0009 6eb4 moveal 96eb4 ,%a1 70a16: b3c0 cmpal %d0,%a1 70a18: 6316 blss 70a30 iop = rtems_libio_iop( fd ); 70a1a: 2239 0009 bb60 movel 9bb60 ,%d1 70a20: 2441 moveal %d1,%a2 70a22: ed88 lsll #6,%d0 70a24: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 70a26: 202a 0014 movel %a2@(20),%d0 70a2a: 0800 0008 btst #8,%d0 70a2e: 6612 bnes 70a42 70a30: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 70a36: 74ff moveq #-1,%d2 <== NOT EXECUTED 70a38: 7209 moveq #9,%d1 <== NOT EXECUTED 70a3a: 2040 moveal %d0,%a0 <== NOT EXECUTED 70a3c: 2081 movel %d1,%a0@ <== NOT EXECUTED 70a3e: 6000 011e braw 70b5e <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 70a42: 7409 moveq #9,%d2 70a44: b483 cmpl %d3,%d2 70a46: 6500 00de bcsw 70b26 70a4a: 343b 3a08 movew %pc@(70a54 ,%d3:l:2),%d2 70a4e: 48c2 extl %d2 70a50: 4efb 2802 jmp %pc@(70a54 ,%d2:l) 70a54: 0014 024 <== NOT EXECUTED 70a56: 006e 0156 <== NOT EXECUTED 70a58: 007a 0172 <== NOT EXECUTED 70a5a: 0092 00a0 00c0 oril #10485952,%d2 <== NOT EXECUTED 70a60: 00c0 bitrev %d0 <== NOT EXECUTED 70a62: 00c0 bitrev %d0 <== NOT EXECUTED 70a64: 00c0 bitrev %d0 <== NOT EXECUTED 70a66: 00c0 bitrev %d0 <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 70a68: 2410 movel %a0@,%d2 if ( fd2 ) 70a6a: 6710 beqs 70a7c diop = rtems_libio_iop( fd2 ); 70a6c: b3c2 cmpal %d2,%a1 <== NOT EXECUTED 70a6e: 6204 bhis 70a74 <== NOT EXECUTED 70a70: 97cb subal %a3,%a3 <== NOT EXECUTED 70a72: 601a bras 70a8e <== NOT EXECUTED 70a74: 2641 moveal %d1,%a3 <== NOT EXECUTED 70a76: ed8a lsll #6,%d2 <== NOT EXECUTED 70a78: d7c2 addal %d2,%a3 <== NOT EXECUTED 70a7a: 6012 bras 70a8e <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 70a7c: 4eb9 0004 5b9c jsr 45b9c 70a82: 2640 moveal %d0,%a3 if ( diop == 0 ) { 70a84: 4a80 tstl %d0 70a86: 6606 bnes 70a8e 70a88: 74ff moveq #-1,%d2 <== NOT EXECUTED 70a8a: 6000 00d2 braw 70b5e <== 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); 70a8e: 240b movel %a3,%d2 ret = -1; break; } } diop->handlers = iop->handlers; 70a90: 276a 003c 003c movel %a2@(60),%a3@(60) diop->file_info = iop->file_info; 70a96: 276a 0038 0038 movel %a2@(56),%a3@(56) diop->flags = iop->flags; 70a9c: 276a 0014 0014 movel %a2@(20),%a3@(20) diop->pathinfo = iop->pathinfo; 70aa2: 4878 0014 pea 14 70aa6: 486a 0018 pea %a2@(24) 70aaa: 486b 0018 pea %a3@(24) 70aae: 4eb9 0007 9068 jsr 79068 ret = (int) (diop - rtems_libio_iops); 70ab4: 4fef 000c lea %sp@(12),%sp 70ab8: 94b9 0009 bb60 subl 9bb60 ,%d2 70abe: ec82 asrl #6,%d2 70ac0: 6074 bras 70b36 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 70ac2: 2400 movel %d0,%d2 70ac4: 720b moveq #11,%d1 70ac6: e2aa lsrl %d1,%d2 70ac8: 7001 moveq #1,%d0 70aca: c480 andl %d0,%d2 70acc: 606c bras 70b3a * 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 ) ) 70ace: 4a90 tstl %a0@ 70ad0: 6708 beqs 70ada iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 70ad2: 4282 clrl %d2 70ad4: 08c0 000b bset #11,%d0 70ad8: 6006 bras 70ae0 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 70ada: 4282 clrl %d2 <== NOT EXECUTED 70adc: 0880 000b bclr #11,%d0 <== NOT EXECUTED 70ae0: 2540 0014 movel %d0,%a2@(20) 70ae4: 6054 bras 70b3a break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 70ae6: 2f00 movel %d0,%sp@- 70ae8: 4eb9 0004 5a14 jsr 45a14 70aee: 588f addql #4,%sp 70af0: 2400 movel %d0,%d2 70af2: 6042 bras 70b36 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 70af4: 2f10 movel %a0@,%sp@- /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 70af6: 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 ) ); 70af8: 4eb9 0004 5c3c jsr 45c3c /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 70afe: 222a 0014 movel %a2@(20),%d1 70b02: 588f addql #4,%sp 70b04: 0280 0000 0201 andil #513,%d0 70b0a: 0281 ffff fdfe andil #-514,%d1 70b10: 8081 orl %d1,%d0 70b12: 60cc bras 70ae0 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 70b14: 4eb9 0007 6030 jsr 76030 <__errno> 70b1a: 74ff moveq #-1,%d2 70b1c: 2040 moveal %d0,%a0 70b1e: 20bc 0000 0086 movel #134,%a0@ 70b24: 6038 bras 70b5e ret = -1; break; default: errno = EINVAL; 70b26: 4eb9 0007 6030 jsr 76030 <__errno> 70b2c: 74ff moveq #-1,%d2 70b2e: 2040 moveal %d0,%a0 70b30: 7016 moveq #22,%d0 70b32: 2080 movel %d0,%a0@ 70b34: 6028 bras 70b5e /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 70b36: 4a82 tstl %d2 70b38: 6d24 blts 70b5e if (iop->handlers->fcntl_h) { 70b3a: 206a 003c moveal %a2@(60),%a0 70b3e: 2068 0030 moveal %a0@(48),%a0 70b42: 4a88 tstl %a0 70b44: 6718 beqs 70b5e int err = (*iop->handlers->fcntl_h)( cmd, iop ); 70b46: 2f0a movel %a2,%sp@- 70b48: 2f03 movel %d3,%sp@- 70b4a: 4e90 jsr %a0@ if (err) { 70b4c: 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 ); 70b4e: 2600 movel %d0,%d3 if (err) { 70b50: 670c beqs 70b5e errno = err; 70b52: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 70b58: 74ff moveq #-1,%d2 <== NOT EXECUTED 70b5a: 2040 moveal %d0,%a0 <== NOT EXECUTED 70b5c: 2083 movel %d3,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 70b5e: 2002 movel %d2,%d0 70b60: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 70b66: 4e5e unlk %fp <== NOT EXECUTED 0004b0ec : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b0ec: 4e56 ffd8 linkw %fp,#-40 4b0f0: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4b0f4: 42a7 clrl %sp@- */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b0f6: 286e 0008 moveal %fp@(8),%a4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4b0fa: 42a7 clrl %sp@- 4b0fc: 2f39 0005 c4b4 movel 5c4b4 ,%sp@- */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b102: 2a6e 000c moveal %fp@(12),%a5 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4b106: 4eb9 0004 4f30 jsr 44f30 4b10c: 4fef 000c lea %sp@(12),%sp 4b110: 4a80 tstl %d0 4b112: 6706 beqs 4b11a 4b114: 74fc moveq #-4,%d2 4b116: 6000 034e braw 4b466 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 4b11a: 2454 moveal %a4@,%a2 <== NOT EXECUTED if (pipe == NULL) { 4b11c: 4a8a tstl %a2 <== NOT EXECUTED 4b11e: 6600 016c bnew 4b28c <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 4b122: 4878 0034 pea 34 <== NOT EXECUTED 4b126: 243c 0004 9484 movel #300164,%d2 <== NOT EXECUTED 4b12c: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b12e: 4e90 jsr %a0@ <== NOT EXECUTED if (pipe == NULL) 4b130: 588f addql #4,%sp <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 4b132: 2640 moveal %d0,%a3 <== NOT EXECUTED 4b134: 2440 moveal %d0,%a2 <== NOT EXECUTED if (pipe == NULL) 4b136: 4a80 tstl %d0 <== NOT EXECUTED 4b138: 6606 bnes 4b140 <== NOT EXECUTED 4b13a: 74f4 moveq #-12,%d2 <== NOT EXECUTED 4b13c: 6000 017e braw 4b2bc <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 4b140: 4878 0034 pea 34 <== NOT EXECUTED 4b144: 42a7 clrl %sp@- <== NOT EXECUTED 4b146: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b148: 4eb9 0004 d318 jsr 4d318 <== NOT EXECUTED pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); 4b14e: 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; 4b152: 203c 0000 0200 movel #512,%d0 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4b158: 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; 4b15a: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4b15e: 4e90 jsr %a0@ <== NOT EXECUTED if (! pipe->Buffer) 4b160: 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); 4b164: 2680 movel %d0,%a3@ <== NOT EXECUTED if (! pipe->Buffer) 4b166: 6606 bnes 4b16e <== NOT EXECUTED 4b168: 74f4 moveq #-12,%d2 <== NOT EXECUTED 4b16a: 6000 0116 braw 4b282 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 4b16e: 486b 002c pea %a3@(44) <== NOT EXECUTED 4b172: 243c 0004 bab4 movel #309940,%d2 <== NOT EXECUTED 4b178: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b17a: 1039 0005 b640 moveb 5b640 ,%d0 <== NOT EXECUTED 4b180: 42a7 clrl %sp@- <== NOT EXECUTED 4b182: 49c0 extbl %d0 <== NOT EXECUTED 4b184: 42a7 clrl %sp@- <== NOT EXECUTED 4b186: 0080 5049 7200 oril #1346990592,%d0 <== NOT EXECUTED 4b18c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b18e: 4e90 jsr %a0@ <== NOT EXECUTED 4b190: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b194: 4a80 tstl %d0 <== NOT EXECUTED 4b196: 6600 00de bnew 4b276 <== 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( 4b19a: 486b 0030 pea %a3@(48) <== NOT EXECUTED 4b19e: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b1a0: 1039 0005 b640 moveb 5b640 ,%d0 <== NOT EXECUTED 4b1a6: 42a7 clrl %sp@- <== NOT EXECUTED 4b1a8: 49c0 extbl %d0 <== NOT EXECUTED 4b1aa: 42a7 clrl %sp@- <== NOT EXECUTED 4b1ac: 0080 5049 7700 oril #1346991872,%d0 <== NOT EXECUTED 4b1b2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b1b4: 4e90 jsr %a0@ <== NOT EXECUTED 4b1b6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b1ba: 4a80 tstl %d0 <== NOT EXECUTED 4b1bc: 6600 00ac bnew 4b26a <== 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( 4b1c0: 486b 0028 pea %a3@(40) <== NOT EXECUTED 4b1c4: 1039 0005 b640 moveb 5b640 ,%d0 <== NOT EXECUTED 4b1ca: 42a7 clrl %sp@- <== NOT EXECUTED 4b1cc: 4878 0010 pea 10 <== NOT EXECUTED 4b1d0: 49c0 extbl %d0 <== NOT EXECUTED 4b1d2: 4878 0001 pea 1 <== NOT EXECUTED 4b1d6: 0080 5049 7300 oril #1346990848,%d0 <== NOT EXECUTED 4b1dc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b1de: 4eb9 0004 4cf8 jsr 44cf8 <== NOT EXECUTED 4b1e4: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4b1e8: 4a80 tstl %d0 <== NOT EXECUTED 4b1ea: 6672 bnes 4b25e <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 4b1ec: 260e movel %fp,%d3 <== NOT EXECUTED 4b1ee: 5183 subql #8,%d3 <== NOT EXECUTED 4b1f0: 243c 0004 64e8 movel #287976,%d2 <== NOT EXECUTED 4b1f6: 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(); 4b1f8: 47f9 0004 6ce2 lea 46ce2 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED 4b1fe: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b200: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b204: 4879 0005 d59c pea 5d59c <_Barrier_Information> <== NOT EXECUTED 4b20a: 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 4b20c: 223c 1000 0000 movel #268435456,%d1 <== NOT EXECUTED 4b212: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b214: 83a8 004c orl %d1,%a0@(76) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4b218: 4e93 jsr %a3@ <== NOT EXECUTED 4b21a: 2042 moveal %d2,%a0 <== NOT EXECUTED 4b21c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b21e: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b222: 4879 0005 d59c pea 5d59c <_Barrier_Information> <== NOT EXECUTED 4b228: 4e90 jsr %a0@ <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 4b22a: 223c 1000 0000 movel #268435456,%d1 <== NOT EXECUTED 4b230: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b232: 83a8 004c orl %d1,%a0@(76) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4b236: 4e93 jsr %a3@ <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 4b238: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4b23c: 1039 0005 b640 moveb 5b640 ,%d0 <== NOT EXECUTED 4b242: 49c0 extbl %d0 <== NOT EXECUTED 4b244: 2200 movel %d0,%d1 <== NOT EXECUTED 4b246: 5281 addql #1,%d1 <== NOT EXECUTED 4b248: 13c1 0005 b640 moveb %d1,5b640 <== NOT EXECUTED 4b24e: 727a moveq #122,%d1 <== NOT EXECUTED 4b250: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b252: 6638 bnes 4b28c <== NOT EXECUTED c = 'a'; 4b254: 7661 moveq #97,%d3 <== NOT EXECUTED 4b256: 13c3 0005 b640 moveb %d3,5b640 <== NOT EXECUTED 4b25c: 602e bras 4b28c <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 4b25e: 2f2b 0030 movel %a3@(48),%sp@- <== NOT EXECUTED 4b262: 4eb9 0004 bb68 jsr 4bb68 <== NOT EXECUTED 4b268: 588f addql #4,%sp <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 4b26a: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED 4b26e: 4eb9 0004 bb68 jsr 4bb68 <== NOT EXECUTED 4b274: 588f addql #4,%sp <== NOT EXECUTED err_rbar: free(pipe->Buffer); 4b276: 2f13 movel %a3@,%sp@- <== NOT EXECUTED 4b278: 74fc moveq #-4,%d2 <== NOT EXECUTED 4b27a: 4eb9 0004 8f80 jsr 48f80 <== NOT EXECUTED 4b280: 588f addql #4,%sp <== NOT EXECUTED err_buf: free(pipe); 4b282: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4b284: 4eb9 0004 8f80 jsr 48f80 <== NOT EXECUTED 4b28a: 602a bras 4b2b6 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4b28c: 42a7 clrl %sp@- <== NOT EXECUTED 4b28e: 42a7 clrl %sp@- <== NOT EXECUTED 4b290: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b294: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4b29a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b29e: 4a80 tstl %d0 <== NOT EXECUTED 4b2a0: 6704 beqs 4b2a6 <== NOT EXECUTED 4b2a2: 74fc moveq #-4,%d2 <== NOT EXECUTED 4b2a4: 6002 bras 4b2a8 <== NOT EXECUTED 4b2a6: 4282 clrl %d2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4b2a8: 4a94 tstl %a4@ <== NOT EXECUTED 4b2aa: 6610 bnes 4b2bc <== NOT EXECUTED if (err) 4b2ac: 4a82 tstl %d2 <== NOT EXECUTED 4b2ae: 670a beqs 4b2ba <== NOT EXECUTED pipe_free(pipe); 4b2b0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b2b2: 4eba fd28 jsr %pc@(4afdc ) <== NOT EXECUTED 4b2b6: 588f addql #4,%sp <== NOT EXECUTED 4b2b8: 6002 bras 4b2bc <== NOT EXECUTED else *pipep = pipe; 4b2ba: 288a movel %a2,%a4@ <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); 4b2bc: 2f39 0005 c4b4 movel 5c4b4 ,%sp@- <== NOT EXECUTED 4b2c2: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4b2c8: 588f addql #4,%sp <== NOT EXECUTED 4b2ca: 4a82 tstl %d2 <== NOT EXECUTED 4b2cc: 6600 0198 bnew 4b466 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4b2d0: 222d 0014 movel %a5@(20),%d1 <== NOT EXECUTED 4b2d4: 7006 moveq #6,%d0 <== NOT EXECUTED 4b2d6: 7604 moveq #4,%d3 <== NOT EXECUTED 4b2d8: c081 andl %d1,%d0 <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 4b2da: 2454 moveal %a4@,%a2 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 4b2dc: b680 cmpl %d0,%d3 <== NOT EXECUTED 4b2de: 6700 009a beqw 4b37a <== NOT EXECUTED 4b2e2: 7206 moveq #6,%d1 <== NOT EXECUTED 4b2e4: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b2e6: 6700 011a beqw 4b402 <== NOT EXECUTED 4b2ea: 163c 0002 moveb #2,%d3 <== NOT EXECUTED 4b2ee: b680 cmpl %d0,%d3 <== NOT EXECUTED 4b2f0: 6600 0158 bnew 4b44a <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4b2f4: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4b2f8: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b2fa: 5288 addql #1,%a0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4b2fc: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED if (pipe->Readers ++ == 0) 4b300: 2548 0010 movel %a0,%a2@(16) <== NOT EXECUTED 4b304: 4a80 tstl %d0 <== NOT EXECUTED 4b306: 6610 bnes 4b318 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4b308: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b30c: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b310: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4b316: 508f addql #8,%sp <== NOT EXECUTED if (pipe->Writers == 0) { 4b318: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4b31c: 6600 012c bnew 4b44a <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 4b320: 7001 moveq #1,%d0 <== NOT EXECUTED 4b322: c0ad 0014 andl %a5@(20),%d0 <== NOT EXECUTED 4b326: 6600 0122 bnew 4b44a <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 4b32a: 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)) 4b32e: 47f9 0004 4f30 lea 44f30 ,%a3 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4b334: 283c 0004 5034 movel #282676,%d4 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4b33a: 263c 0004 bc38 movel #310328,%d3 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4b340: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b344: 2044 moveal %d4,%a0 <== NOT EXECUTED 4b346: 4e90 jsr %a0@ <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4b348: 2043 moveal %d3,%a0 <== NOT EXECUTED 4b34a: 42a7 clrl %sp@- <== NOT EXECUTED 4b34c: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b350: 4e90 jsr %a0@ <== NOT EXECUTED 4b352: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b356: 4a80 tstl %d0 <== NOT EXECUTED 4b358: 6600 00fe bnew 4b458 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4b35c: 42a7 clrl %sp@- <== NOT EXECUTED 4b35e: 42a7 clrl %sp@- <== NOT EXECUTED 4b360: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b364: 4e93 jsr %a3@ <== NOT EXECUTED 4b366: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b36a: 4a80 tstl %d0 <== NOT EXECUTED 4b36c: 6600 00ea bnew 4b458 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 4b370: baaa 0024 cmpl %a2@(36),%d5 <== NOT EXECUTED 4b374: 67ca beqs 4b340 <== NOT EXECUTED 4b376: 6000 00d2 braw 4b44a <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 4b37a: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b37e: 660c bnes 4b38c <== NOT EXECUTED 4b380: 0801 0000 btst #0,%d1 <== NOT EXECUTED 4b384: 6706 beqs 4b38c <== NOT EXECUTED 4b386: 74fa moveq #-6,%d2 <== NOT EXECUTED 4b388: 6000 00d0 braw 4b45a <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4b38c: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 4b390: 2200 movel %d0,%d1 <== NOT EXECUTED 4b392: 5281 addql #1,%d1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4b394: 52aa 0024 addql #1,%a2@(36) <== NOT EXECUTED if (pipe->Writers ++ == 0) 4b398: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED 4b39c: 4a80 tstl %d0 <== NOT EXECUTED 4b39e: 6610 bnes 4b3b0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b3a0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b3a4: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b3a8: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4b3ae: 508f addql #8,%sp <== NOT EXECUTED if (pipe->Readers == 0) { 4b3b0: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b3b4: 6600 0094 bnew 4b44a <== NOT EXECUTED prevCounter = pipe->readerCounter; 4b3b8: 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)) 4b3bc: 47f9 0004 4f30 lea 44f30 ,%a3 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 4b3c2: 283c 0004 5034 movel #282676,%d4 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4b3c8: 263c 0004 bc38 movel #310328,%d3 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 4b3ce: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b3d2: 2044 moveal %d4,%a0 <== NOT EXECUTED 4b3d4: 4e90 jsr %a0@ <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4b3d6: 2043 moveal %d3,%a0 <== NOT EXECUTED 4b3d8: 42a7 clrl %sp@- <== NOT EXECUTED 4b3da: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b3de: 4e90 jsr %a0@ <== NOT EXECUTED 4b3e0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b3e4: 4a80 tstl %d0 <== NOT EXECUTED 4b3e6: 6670 bnes 4b458 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4b3e8: 42a7 clrl %sp@- <== NOT EXECUTED 4b3ea: 42a7 clrl %sp@- <== NOT EXECUTED 4b3ec: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b3f0: 4e93 jsr %a3@ <== NOT EXECUTED 4b3f2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b3f6: 4a80 tstl %d0 <== NOT EXECUTED 4b3f8: 665e bnes 4b458 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 4b3fa: baaa 0020 cmpl %a2@(32),%d5 <== NOT EXECUTED 4b3fe: 67ce beqs 4b3ce <== NOT EXECUTED 4b400: 6048 bras 4b44a <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4b402: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4b406: 2200 movel %d0,%d1 <== NOT EXECUTED 4b408: 5281 addql #1,%d1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4b40a: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED if (pipe->Readers ++ == 0) 4b40e: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED 4b412: 4a80 tstl %d0 <== NOT EXECUTED 4b414: 6610 bnes 4b426 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4b416: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b41a: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b41e: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4b424: 508f addql #8,%sp <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4b426: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 4b42a: 2600 movel %d0,%d3 <== NOT EXECUTED 4b42c: 5283 addql #1,%d3 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 4b42e: 52aa 0024 addql #1,%a2@(36) <== NOT EXECUTED if (pipe->Writers ++ == 0) 4b432: 2543 0014 movel %d3,%a2@(20) <== NOT EXECUTED 4b436: 4a80 tstl %d0 <== NOT EXECUTED 4b438: 6610 bnes 4b44a <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b43a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b43e: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b442: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4b448: 508f addql #8,%sp <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 4b44a: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b44e: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return 0; 4b454: 588f addql #4,%sp <== NOT EXECUTED 4b456: 600e bras 4b466 <== NOT EXECUTED 4b458: 74fc moveq #-4,%d2 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 4b45a: 2f0d movel %a5,%sp@- <== NOT EXECUTED 4b45c: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4b45e: 4eb9 0004 b024 jsr 4b024 <== NOT EXECUTED return err; 4b464: 508f addql #8,%sp <== NOT EXECUTED } 4b466: 2002 movel %d2,%d0 4b468: 4cee 3c3c ffd8 moveml %fp@(-40),%d2-%d5/%a2-%a5 4b46e: 4e5e unlk %fp ... 00061dac : 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)) ) { 61dac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61db0: 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; 61db4: 2079 0009 bba4 moveal 9bba4 ,%a0<== NOT EXECUTED 61dba: 6010 bras 61dcc <== 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 ) { 61dbc: 2029 0010 movel %a1@(16),%d0 <== NOT EXECUTED 61dc0: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 61dc4: 6604 bnes 61dca <== NOT EXECUTED 61dc6: 7001 moveq #1,%d0 <== NOT EXECUTED 61dc8: 600c bras 61dd6 <== 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 ) { 61dca: 2050 moveal %a0@,%a0 <== NOT EXECUTED 61dcc: b1fc 0009 bba8 cmpal #637864,%a0 <== NOT EXECUTED 61dd2: 66e8 bnes 61dbc <== NOT EXECUTED 61dd4: 4200 clrb %d0 <== NOT EXECUTED return true; } } return false; } 61dd6: 4e5e unlk %fp <== NOT EXECUTED 0004338c : long fpathconf( int fd, int name ) { 4338c: 4e56 0000 linkw %fp,#0 43390: 222e 0008 movel %fp@(8),%d1 43394: 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); 43398: b2b9 0005 ee64 cmpl 5ee64 ,%d1 4339e: 6414 bccs 433b4 iop = rtems_libio_iop(fd); 433a0: 2079 0006 056c moveal 6056c ,%a0 433a6: ed89 lsll #6,%d1 433a8: d1c1 addal %d1,%a0 rtems_libio_check_is_open(iop); 433aa: 2228 0014 movel %a0@(20),%d1 433ae: 0801 0008 btst #8,%d1 433b2: 6612 bnes 433c6 433b4: 4eb9 0004 ee58 jsr 4ee58 <__errno> 433ba: 72ff moveq #-1,%d1 433bc: 2040 moveal %d0,%a0 433be: 7009 moveq #9,%d0 433c0: 2080 movel %d0,%a0@ 433c2: 6000 008a braw 4344e rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 433c6: 0801 0001 btst #1,%d1 433ca: 6774 beqs 43440 /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 433cc: 2068 0028 moveal %a0@(40),%a0 switch ( name ) { 433d0: 720b moveq #11,%d1 433d2: b280 cmpl %d0,%d1 433d4: 656a bcss 43440 433d6: 303b 0a08 movew %pc@(433e0 ,%d0:l:2),%d0 433da: 48c0 extl %d0 433dc: 4efb 0802 jmp %pc@(433e0 ,%d0:l) 433e0: 0018 030 <== NOT EXECUTED 433e2: 001e 036 <== NOT EXECUTED 433e4: 0024 044 <== NOT EXECUTED 433e6: 002a 052 <== NOT EXECUTED 433e8: 0030 060 <== NOT EXECUTED 433ea: 0036 066 <== NOT EXECUTED 433ec: 003c 074 <== NOT EXECUTED 433ee: 0042 0102 <== NOT EXECUTED 433f0: 0048 0110 <== NOT EXECUTED 433f2: 004e 0116 <== NOT EXECUTED 433f4: 0054 0124 <== NOT EXECUTED 433f6: 005a 0132 <== NOT EXECUTED case _PC_LINK_MAX: return_value = the_limits->link_max; 433f8: 2228 0038 movel %a0@(56),%d1 break; 433fc: 6050 bras 4344e case _PC_MAX_CANON: return_value = the_limits->max_canon; 433fe: 2228 003c movel %a0@(60),%d1 break; 43402: 604a bras 4344e case _PC_MAX_INPUT: return_value = the_limits->max_input; 43404: 2228 0040 movel %a0@(64),%d1 break; 43408: 6044 bras 4344e case _PC_NAME_MAX: return_value = the_limits->name_max; 4340a: 2228 0044 movel %a0@(68),%d1 break; 4340e: 603e bras 4344e case _PC_PATH_MAX: return_value = the_limits->path_max; 43410: 2228 0048 movel %a0@(72),%d1 break; 43414: 6038 bras 4344e case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 43416: 2228 004c movel %a0@(76),%d1 break; 4341a: 6032 bras 4344e case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 4341c: 2228 0054 movel %a0@(84),%d1 break; 43420: 602c bras 4344e case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 43422: 2228 0058 movel %a0@(88),%d1 break; 43426: 6026 bras 4344e case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 43428: 2228 0064 movel %a0@(100),%d1 break; 4342c: 6020 bras 4344e case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 4342e: 2228 0050 movel %a0@(80),%d1 break; 43432: 601a bras 4344e case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 43434: 2228 005c movel %a0@(92),%d1 break; 43438: 6014 bras 4344e case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 4343a: 2228 0060 movel %a0@(96),%d1 break; 4343e: 600e bras 4344e default: rtems_set_errno_and_return_minus_one( EINVAL ); 43440: 4eb9 0004 ee58 jsr 4ee58 <__errno> 43446: 72ff moveq #-1,%d1 43448: 2040 moveal %d0,%a0 4344a: 7016 moveq #22,%d0 4344c: 2080 movel %d0,%a0@ break; } return return_value; } 4344e: 2001 movel %d1,%d0 43450: 4e5e unlk %fp <== NOT EXECUTED 00048f80 : void free( void *ptr ) { MSBUMP(free_calls, 1); 48f80: 4e56 0000 linkw %fp,#0 48f84: 52b9 0005 cbc0 addql #1,5cbc0 48f8a: 2f02 movel %d2,%sp@- 48f8c: 242e 0008 movel %fp@(8),%d2 if ( !ptr ) 48f90: 676c beqs 48ffe /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 48f92: 7003 moveq #3,%d0 48f94: b0b9 0005 ce90 cmpl 5ce90 <_System_state_Current>,%d0 48f9a: 661a bnes 48fb6 48f9c: 4eb9 0004 93f4 jsr 493f4 48fa2: 4a00 tstb %d0 48fa4: 6610 bnes 48fb6 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 48fa6: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 48faa: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 48fae: 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); 48fb0: 4ef9 0004 9432 jmp 49432 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 48fb6: 2079 0005 bb36 moveal 5bb36 ,%a0 48fbc: 4a88 tstl %a0 48fbe: 670a beqs 48fca (*rtems_malloc_statistics_helpers->at_free)(ptr); 48fc0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48fc2: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED 48fc6: 4e90 jsr %a0@ <== NOT EXECUTED 48fc8: 588f addql #4,%sp <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 48fca: 2f02 movel %d2,%sp@- 48fcc: 2f39 0005 b4b0 movel 5b4b0 ,%sp@- 48fd2: 4eb9 0004 a5d8 jsr 4a5d8 <_Protected_heap_Free> 48fd8: 508f addql #8,%sp 48fda: 4a00 tstb %d0 48fdc: 6620 bnes 48ffe printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end 48fde: 2079 0005 b4b0 moveal 5b4b0 ,%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", 48fe4: 2f28 001c movel %a0@(28),%sp@- <== NOT EXECUTED 48fe8: 2f28 0018 movel %a0@(24),%sp@- <== NOT EXECUTED 48fec: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48fee: 4879 0005 a740 pea 5a740 <== NOT EXECUTED 48ff4: 4eb9 0004 2d30 jsr 42d30 <== NOT EXECUTED 48ffa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 48ffe: 242e fffc movel %fp@(-4),%d2 49002: 4e5e unlk %fp ... 000615d4 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 615d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 615d8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 615da: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 615de: b5fc 0009 bbbc cmpal #637884,%a2 <== NOT EXECUTED 615e4: 6740 beqs 61626 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 615e6: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED 615ea: 4a88 tstl %a0 <== NOT EXECUTED 615ec: 6710 beqs 615fe <== NOT EXECUTED 615ee: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 615f2: 4a88 tstl %a0 <== NOT EXECUTED 615f4: 6708 beqs 615fe <== NOT EXECUTED 615f6: 486a 0004 pea %a2@(4) <== NOT EXECUTED 615fa: 4e90 jsr %a0@ <== NOT EXECUTED 615fc: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 615fe: 206a 0024 moveal %a2@(36),%a0 <== NOT EXECUTED 61602: 4a88 tstl %a0 <== NOT EXECUTED 61604: 6710 beqs 61616 <== NOT EXECUTED 61606: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6160a: 4a88 tstl %a0 <== NOT EXECUTED 6160c: 6708 beqs 61616 <== NOT EXECUTED 6160e: 486a 0018 pea %a2@(24) <== NOT EXECUTED 61612: 4e90 jsr %a0@ <== NOT EXECUTED 61614: 588f addql #4,%sp <== NOT EXECUTED free(env); 61616: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 6161a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 6161e: 4e5e unlk %fp <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 61620: 4ef9 0004 5854 jmp 45854 <== NOT EXECUTED } } 61626: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 6162a: 4e5e unlk %fp <== NOT EXECUTED 00059284 : int fstat( int fd, struct stat *sbuf ) { 59284: 4e56 0000 linkw %fp,#0 59288: 202e 0008 movel %fp@(8),%d0 5928c: 2f0a movel %a2,%sp@- 5928e: 2f02 movel %d2,%sp@- 59290: 242e 000c movel %fp@(12),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 59294: 660e bnes 592a4 rtems_set_errno_and_return_minus_one( EFAULT ); 59296: 4eb9 0004 ca88 jsr 4ca88 <__errno> 5929c: 720e moveq #14,%d1 5929e: 2040 moveal %d0,%a0 592a0: 2081 movel %d1,%a0@ 592a2: 607c bras 59320 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 592a4: b0b9 0005 b4a4 cmpl 5b4a4 ,%d0 592aa: 641e bccs 592ca 592ac: 2479 0005 cba8 moveal 5cba8 ,%a2 592b2: ed88 lsll #6,%d0 592b4: d5c0 addal %d0,%a2 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 592b6: 202a 0014 movel %a2@(20),%d0 592ba: 0280 0000 0100 andil #256,%d0 592c0: 6708 beqs 592ca if ( !iop->handlers ) 592c2: 206a 003c moveal %a2@(60),%a0 592c6: 4a88 tstl %a0 592c8: 660e bnes 592d8 rtems_set_errno_and_return_minus_one( EBADF ); 592ca: 4eb9 0004 ca88 jsr 4ca88 <__errno> 592d0: 2040 moveal %d0,%a0 592d2: 7009 moveq #9,%d0 592d4: 2080 movel %d0,%a0@ 592d6: 6048 bras 59320 if ( !iop->handlers->fstat_h ) 592d8: 4aa8 0018 tstl %a0@(24) 592dc: 6610 bnes 592ee rtems_set_errno_and_return_minus_one( ENOTSUP ); 592de: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 592e4: 2040 moveal %d0,%a0 <== NOT EXECUTED 592e6: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 592ec: 6032 bras 59320 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 592ee: 4878 0046 pea 46 592f2: 42a7 clrl %sp@- 592f4: 2f02 movel %d2,%sp@- 592f6: 4eb9 0004 d318 jsr 4d318 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 592fc: 206a 003c moveal %a2@(60),%a0 59300: 45ea 0018 lea %a2@(24),%a2 59304: 4fef 000c lea %sp@(12),%sp 59308: 2d42 000c movel %d2,%fp@(12) } 5930c: 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 ); 59310: 2d4a 0008 movel %a2,%fp@(8) } 59314: 246e fffc moveal %fp@(-4),%a2 59318: 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 ); 5931a: 2268 0018 moveal %a0@(24),%a1 5931e: 4ed1 jmp %a1@ } 59320: 242e fff8 movel %fp@(-8),%d2 59324: 70ff moveq #-1,%d0 59326: 246e fffc moveal %fp@(-4),%a2 5932a: 4e5e unlk %fp <== NOT EXECUTED 00060654 : #include int fsync( int fd ) { 60654: 4e56 0000 linkw %fp,#0 60658: 202e 0008 movel %fp@(8),%d0 rtems_libio_t *iop; rtems_libio_check_fd( fd ); 6065c: b0b9 0009 6eb4 cmpl 96eb4 ,%d0 60662: 642e bccs 60692 iop = rtems_libio_iop( fd ); 60664: 2079 0009 bb60 moveal 9bb60 ,%a0 6066a: ed88 lsll #6,%d0 6066c: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 6066e: 2028 0014 movel %a0@(20),%d0 60672: 0800 0008 btst #8,%d0 60676: 671a beqs 60692 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 60678: 44c0 movew %d0,%ccr 6067a: 670e beqs 6068a 6067c: 4eb9 0007 6030 jsr 76030 <__errno> 60682: 7216 moveq #22,%d1 60684: 2040 moveal %d0,%a0 60686: 2081 movel %d1,%a0@ 60688: 6036 bras 606c0 /* * Now process the fsync(). */ if ( !iop->handlers ) 6068a: 2268 003c moveal %a0@(60),%a1 6068e: 4a89 tstl %a1 60690: 660e bnes 606a0 rtems_set_errno_and_return_minus_one( EBADF ); 60692: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60698: 2040 moveal %d0,%a0 <== NOT EXECUTED 6069a: 7009 moveq #9,%d0 <== NOT EXECUTED 6069c: 2080 movel %d0,%a0@ <== NOT EXECUTED 6069e: 6020 bras 606c0 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 606a0: 2269 0028 moveal %a1@(40),%a1 606a4: 4a89 tstl %a1 606a6: 6610 bnes 606b8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 606a8: 4eb9 0007 6030 jsr 76030 <__errno> 606ae: 2040 moveal %d0,%a0 606b0: 20bc 0000 0086 movel #134,%a0@ 606b6: 6008 bras 606c0 return (*iop->handlers->fsync_h)( iop ); 606b8: 2d48 0008 movel %a0,%fp@(8) } 606bc: 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 ); 606be: 4ed1 jmp %a1@ } 606c0: 70ff moveq #-1,%d0 606c2: 4e5e unlk %fp ... 00049008 : int ftruncate( int fd, off_t length ) { 49008: 4e56 ffec linkw %fp,#-20 4900c: 202e 0008 movel %fp@(8),%d0 49010: 2f0a movel %a2,%sp@- 49012: 2f02 movel %d2,%sp@- rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 49014: b0b9 0005 b4a4 cmpl 5b4a4 ,%d0 4901a: 6416 bccs 49032 iop = rtems_libio_iop( fd ); 4901c: 2479 0005 cba8 moveal 5cba8 ,%a2 49022: ed88 lsll #6,%d0 49024: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 49026: 202a 0014 movel %a2@(20),%d0 4902a: 0280 0000 0100 andil #256,%d0 49030: 6612 bnes 49044 49032: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 49038: 72ff moveq #-1,%d1 <== NOT EXECUTED 4903a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4903c: 7009 moveq #9,%d0 <== NOT EXECUTED 4903e: 2080 movel %d0,%a0@ <== NOT EXECUTED 49040: 6000 008e braw 490d0 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 49044: 4878 0014 pea 14 49048: 240e movel %fp,%d2 4904a: 486a 0018 pea %a2@(24) 4904e: 0682 ffff ffec addil #-20,%d2 49054: 2f02 movel %d2,%sp@- 49056: 4eb9 0004 d2a8 jsr 4d2a8 if ( !loc.ops->node_type_h ) 4905c: 206e fff8 moveal %fp@(-8),%a0 49060: 4fef 000c lea %sp@(12),%sp 49064: 2068 0010 moveal %a0@(16),%a0 49068: 4a88 tstl %a0 4906a: 6740 beqs 490ac rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 4906c: 2f02 movel %d2,%sp@- 4906e: 4e90 jsr %a0@ 49070: 588f addql #4,%sp 49072: 7201 moveq #1,%d1 49074: b280 cmpl %d0,%d1 49076: 6610 bnes 49088 rtems_set_errno_and_return_minus_one( EISDIR ); 49078: 4eb9 0004 ca88 jsr 4ca88 <__errno> 4907e: 7415 moveq #21,%d2 49080: 72ff moveq #-1,%d1 49082: 2040 moveal %d0,%a0 49084: 2082 movel %d2,%a0@ 49086: 6048 bras 490d0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 49088: 7004 moveq #4,%d0 4908a: c0aa 0014 andl %a2@(20),%d0 4908e: 6610 bnes 490a0 49090: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 49096: 72ff moveq #-1,%d1 <== NOT EXECUTED 49098: 2040 moveal %d0,%a0 <== NOT EXECUTED 4909a: 7016 moveq #22,%d0 <== NOT EXECUTED 4909c: 2080 movel %d0,%a0@ <== NOT EXECUTED 4909e: 6030 bras 490d0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 490a0: 206a 003c moveal %a2@(60),%a0 490a4: 2068 0020 moveal %a0@(32),%a0 490a8: 4a88 tstl %a0 490aa: 6612 bnes 490be rtems_set_errno_and_return_minus_one( ENOTSUP ); 490ac: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 490b2: 72ff moveq #-1,%d1 <== NOT EXECUTED 490b4: 2040 moveal %d0,%a0 <== NOT EXECUTED 490b6: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 490bc: 6012 bras 490d0 <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); 490be: 2f2e 0010 movel %fp@(16),%sp@- 490c2: 2f2e 000c movel %fp@(12),%sp@- 490c6: 2f0a movel %a2,%sp@- 490c8: 4e90 jsr %a0@ 490ca: 4fef 000c lea %sp@(12),%sp 490ce: 2200 movel %d0,%d1 } 490d0: 242e ffe4 movel %fp@(-28),%d2 490d4: 2001 movel %d1,%d0 490d6: 246e ffe8 moveal %fp@(-24),%a2 490da: 4e5e unlk %fp ... 0008cf9c : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 8cf9c: 4e56 ffec linkw %fp,#-20 8cfa0: 202e 0008 movel %fp@(8),%d0 8cfa4: 2f0a movel %a2,%sp@- 8cfa6: 2f02 movel %d2,%sp@- /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 8cfa8: b0b9 0009 6eb4 cmpl 96eb4 ,%d0 8cfae: 6504 bcss 8cfb4 8cfb0: 95ca subal %a2,%a2 <== NOT EXECUTED 8cfb2: 600a bras 8cfbe <== NOT EXECUTED 8cfb4: 2479 0009 bb60 moveal 9bb60 ,%a2 8cfba: ed88 lsll #6,%d0 8cfbc: d5c0 addal %d0,%a2 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 8cfbe: 4878 0014 pea 14 8cfc2: 240e movel %fp,%d2 8cfc4: 486a 0018 pea %a2@(24) 8cfc8: 0682 ffff ffec addil #-20,%d2 8cfce: 2f02 movel %d2,%sp@- 8cfd0: 4eb9 0007 9068 jsr 79068 if ( !loc.ops->node_type_h ) 8cfd6: 206e fff8 moveal %fp@(-8),%a0 8cfda: 4fef 000c lea %sp@(12),%sp 8cfde: 2068 0010 moveal %a0@(16),%a0 8cfe2: 4a88 tstl %a0 8cfe4: 6728 beqs 8d00e rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 8cfe6: 2f02 movel %d2,%sp@- 8cfe8: 4e90 jsr %a0@ 8cfea: 588f addql #4,%sp 8cfec: 7201 moveq #1,%d1 8cfee: b280 cmpl %d0,%d1 8cff0: 6710 beqs 8d002 rtems_set_errno_and_return_minus_one( ENOTDIR ); 8cff2: 4eb9 0007 6030 jsr 76030 <__errno> 8cff8: 72ff moveq #-1,%d1 8cffa: 2040 moveal %d0,%a0 8cffc: 7014 moveq #20,%d0 8cffe: 2080 movel %d0,%a0@ 8d000: 6030 bras 8d032 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 8d002: 206a 003c moveal %a2@(60),%a0 8d006: 2068 0008 moveal %a0@(8),%a0 8d00a: 4a88 tstl %a0 8d00c: 6612 bnes 8d020 rtems_set_errno_and_return_minus_one( ENOTSUP ); 8d00e: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 8d014: 72ff moveq #-1,%d1 <== NOT EXECUTED 8d016: 2040 moveal %d0,%a0 <== NOT EXECUTED 8d018: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 8d01e: 6012 bras 8d032 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 8d020: 2f2e 0010 movel %fp@(16),%sp@- 8d024: 2f2e 000c movel %fp@(12),%sp@- 8d028: 2f0a movel %a2,%sp@- 8d02a: 4e90 jsr %a0@ 8d02c: 4fef 000c lea %sp@(12),%sp 8d030: 2200 movel %d0,%d1 } 8d032: 242e ffe4 movel %fp@(-28),%d2 8d036: 2001 movel %d1,%d0 8d038: 246e ffe8 moveal %fp@(-24),%a2 8d03c: 4e5e unlk %fp <== NOT EXECUTED 000607c8 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 607c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 607cc: 2079 0009 71bc moveal 971bc ,%a0 <== NOT EXECUTED return _POSIX_types_Gid; } 607d2: 4e5e unlk %fp <== NOT EXECUTED 607d4: 3028 0034 movew %a0@(52),%d0 <== NOT EXECUTED 00060cf2 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 60cf2: 4e56 ffe0 linkw %fp,#-32 60cf6: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 60cfa: 262e 0008 movel %fp@(8),%d3 60cfe: 282e 000c movel %fp@(12),%d4 60d02: 246e 0010 moveal %fp@(16),%a2 60d06: 2a2e 0014 movel %fp@(20),%d5 60d0a: 2c2e 0018 movel %fp@(24),%d6 FILE *fp; int match; init_etc_passwd_group(); 60d0e: 4eb9 0006 0bd8 jsr 60bd8 if ((fp = fopen("/etc/group", "r")) == NULL) { 60d14: 4879 0008 f5eb pea 8f5eb 60d1a: 4879 0008 de95 pea 8de95 <_rodata_start+0x845> 60d20: 4eb9 0007 69d4 jsr 769d4 60d26: 508f addql #8,%sp 60d28: 2400 movel %d0,%d2 60d2a: 6610 bnes 60d3c errno = EINVAL; 60d2c: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60d32: 7216 moveq #22,%d1 <== NOT EXECUTED 60d34: 2040 moveal %d0,%a0 <== NOT EXECUTED 60d36: 70ff moveq #-1,%d0 <== NOT EXECUTED 60d38: 2081 movel %d1,%a0@ <== NOT EXECUTED return -1; 60d3a: 606a bras 60da6 <== NOT EXECUTED } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 60d3c: 49fa fc3c lea %pc@(6097a ),%a4 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 60d40: 47f9 0007 bb60 lea 7bb60 ,%a3 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 60d46: 2f06 movel %d6,%sp@- 60d48: 2f05 movel %d5,%sp@- 60d4a: 2f0a movel %a2,%sp@- 60d4c: 2f02 movel %d2,%sp@- 60d4e: 4e94 jsr %a4@ 60d50: 4fef 0010 lea %sp@(16),%sp 60d54: 4a80 tstl %d0 60d56: 661a bnes 60d72 errno = EINVAL; 60d58: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60d5e: 2040 moveal %d0,%a0 <== NOT EXECUTED 60d60: 7016 moveq #22,%d0 <== NOT EXECUTED 60d62: 2080 movel %d0,%a0@ <== NOT EXECUTED fclose(fp); 60d64: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60d66: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED return -1; 60d6c: 588f addql #4,%sp <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); 60d6e: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; 60d70: 6034 bras 60da6 <== NOT EXECUTED } if (name) { 60d72: 4a83 tstl %d3 60d74: 670e beqs 60d84 match = (strcmp(grp->gr_name, name) == 0); 60d76: 2f03 movel %d3,%sp@- 60d78: 2f12 movel %a2@,%sp@- 60d7a: 4e93 jsr %a3@ 60d7c: 508f addql #8,%sp 60d7e: 4a80 tstl %d0 60d80: 57c0 seq %d0 60d82: 600a bras 60d8e } else { match = (grp->gr_gid == gid); 60d84: 4280 clrl %d0 <== NOT EXECUTED 60d86: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 60d8a: b880 cmpl %d0,%d4 <== NOT EXECUTED 60d8c: 57c0 seq %d0 <== NOT EXECUTED 60d8e: 49c0 extbl %d0 60d90: 4480 negl %d0 } if (match) { 60d92: 67b2 beqs 60d46 fclose(fp); 60d94: 2f02 movel %d2,%sp@- 60d96: 4eb9 0007 616e jsr 7616e *result = grp; 60d9c: 206e 001c moveal %fp@(28),%a0 return 0; 60da0: 588f addql #4,%sp else { match = (grp->gr_gid == gid); } if (match) { fclose(fp); *result = grp; 60da2: 4280 clrl %d0 60da4: 208a movel %a2,%a0@ } } fclose(fp); errno = EINVAL; return -1; } 60da6: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 60dac: 4e5e unlk %fp <== NOT EXECUTED 00060a80 : return NULL; return p; } struct group *getgrent(void) { 60a80: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp == NULL) 60a84: 2039 0009 b2f2 movel 9b2f2 ,%d0 <== NOT EXECUTED 60a8a: 6724 beqs 60ab0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 60a8c: 4878 00c8 pea c8 <== NOT EXECUTED 60a90: 4879 0009 b2f6 pea 9b2f6 <== NOT EXECUTED 60a96: 4879 0009 b3be pea 9b3be <== NOT EXECUTED 60a9c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60a9e: 4eba feda jsr %pc@(6097a ) <== NOT EXECUTED 60aa2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 60aa6: 223c 0009 b3be movel #635838,%d1 <== NOT EXECUTED 60aac: 4a80 tstl %d0 <== NOT EXECUTED 60aae: 6602 bnes 60ab2 <== NOT EXECUTED 60ab0: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &grent; } 60ab2: 2001 movel %d1,%d0 <== NOT EXECUTED 60ab4: 4e5e unlk %fp <== NOT EXECUTED 00060dd6 : gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 60dd6: 4280 clrl %d0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 60dd8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 60ddc: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60de0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 60de4: 4878 00c8 pea c8 <== NOT EXECUTED 60de8: 4879 0009 b2f6 pea 9b2f6 <== NOT EXECUTED 60dee: 4879 0009 b3be pea 9b3be <== NOT EXECUTED 60df4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60df6: 4eb9 0006 0db0 jsr 60db0 <== NOT EXECUTED 60dfc: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 60e00: 4a80 tstl %d0 <== NOT EXECUTED 60e02: 6704 beqs 60e08 <== NOT EXECUTED 60e04: 4280 clrl %d0 <== NOT EXECUTED 60e06: 6004 bras 60e0c <== NOT EXECUTED return NULL; return p; 60e08: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 60e0c: 4e5e unlk %fp <== NOT EXECUTED 00060db0 : char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result); 60db0: 4280 clrl %d0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 60db2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 60db6: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 60dba: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 60dbe: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 60dc2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 60dc6: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60dca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60dcc: 42a7 clrl %sp@- <== NOT EXECUTED 60dce: 4eba ff22 jsr %pc@(60cf2 ) <== NOT EXECUTED } 60dd2: 4e5e unlk %fp <== NOT EXECUTED 00060e32 : struct group *getgrnam( const char *name ) { 60e32: 4e56 fffc linkw %fp,#-4 struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 60e36: 486e fffc pea %fp@(-4) 60e3a: 4878 00c8 pea c8 60e3e: 4879 0009 b2f6 pea 9b2f6 60e44: 4879 0009 b3be pea 9b3be 60e4a: 2f2e 0008 movel %fp@(8),%sp@- 60e4e: 4eb9 0006 0e10 jsr 60e10 60e54: 4fef 0014 lea %sp@(20),%sp 60e58: 4a80 tstl %d0 60e5a: 6704 beqs 60e60 60e5c: 4280 clrl %d0 <== NOT EXECUTED 60e5e: 6004 bras 60e64 <== NOT EXECUTED return NULL; return p; 60e60: 202e fffc movel %fp@(-4),%d0 } 60e64: 4e5e unlk %fp <== NOT EXECUTED 00060ea2 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 60ea2: 4e56 ffe0 linkw %fp,#-32 60ea6: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 60eaa: 262e 0008 movel %fp@(8),%d3 60eae: 282e 000c movel %fp@(12),%d4 60eb2: 246e 0010 moveal %fp@(16),%a2 60eb6: 2a2e 0014 movel %fp@(20),%d5 60eba: 2c2e 0018 movel %fp@(24),%d6 FILE *fp; int match; init_etc_passwd_group(); 60ebe: 4eb9 0006 0bd8 jsr 60bd8 if ((fp = fopen("/etc/passwd", "r")) == NULL) { 60ec4: 4879 0008 f5eb pea 8f5eb 60eca: 4879 0008 de50 pea 8de50 <_rodata_start+0x800> 60ed0: 4eb9 0007 69d4 jsr 769d4 60ed6: 508f addql #8,%sp 60ed8: 2400 movel %d0,%d2 60eda: 6610 bnes 60eec errno = EINVAL; 60edc: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60ee2: 7816 moveq #22,%d4 <== NOT EXECUTED 60ee4: 2040 moveal %d0,%a0 <== NOT EXECUTED 60ee6: 70ff moveq #-1,%d0 <== NOT EXECUTED 60ee8: 2084 movel %d4,%a0@ <== NOT EXECUTED return -1; 60eea: 606a bras 60f56 <== NOT EXECUTED } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 60eec: 49fa fbca lea %pc@(60ab8 ),%a4 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 60ef0: 47f9 0007 bb60 lea 7bb60 ,%a3 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 60ef6: 2f06 movel %d6,%sp@- 60ef8: 2f05 movel %d5,%sp@- 60efa: 2f0a movel %a2,%sp@- 60efc: 2f02 movel %d2,%sp@- 60efe: 4e94 jsr %a4@ 60f00: 4fef 0010 lea %sp@(16),%sp 60f04: 4a80 tstl %d0 60f06: 661a bnes 60f22 errno = EINVAL; 60f08: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 60f0e: 7616 moveq #22,%d3 <== NOT EXECUTED 60f10: 2040 moveal %d0,%a0 <== NOT EXECUTED 60f12: 2083 movel %d3,%a0@ <== NOT EXECUTED fclose(fp); 60f14: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60f16: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED return -1; 60f1c: 588f addql #4,%sp <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); 60f1e: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; 60f20: 6034 bras 60f56 <== NOT EXECUTED } if (name) { 60f22: 4a83 tstl %d3 60f24: 670e beqs 60f34 match = (strcmp(pwd->pw_name, name) == 0); 60f26: 2f03 movel %d3,%sp@- 60f28: 2f12 movel %a2@,%sp@- 60f2a: 4e93 jsr %a3@ 60f2c: 508f addql #8,%sp 60f2e: 4a80 tstl %d0 60f30: 57c0 seq %d0 60f32: 600a bras 60f3e } else { match = (pwd->pw_uid == uid); 60f34: 4280 clrl %d0 <== NOT EXECUTED 60f36: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 60f3a: b880 cmpl %d0,%d4 <== NOT EXECUTED 60f3c: 57c0 seq %d0 <== NOT EXECUTED 60f3e: 49c0 extbl %d0 60f40: 4480 negl %d0 } if (match) { 60f42: 67b2 beqs 60ef6 fclose(fp); 60f44: 2f02 movel %d2,%sp@- 60f46: 4eb9 0007 616e jsr 7616e *result = pwd; 60f4c: 206e 001c moveal %fp@(28),%a0 return 0; 60f50: 588f addql #4,%sp else { match = (pwd->pw_uid == uid); } if (match) { fclose(fp); *result = pwd; 60f52: 4280 clrl %d0 60f54: 208a movel %a2,%a0@ } } fclose(fp); errno = EINVAL; return -1; } 60f56: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 60f5c: 4e5e unlk %fp <== NOT EXECUTED 00060ba0 : return NULL; return p; } struct passwd *getpwent(void) { 60ba0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp == NULL) 60ba4: 2039 0009 b20a movel 9b20a ,%d0 <== NOT EXECUTED 60baa: 6724 beqs 60bd0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 60bac: 4878 00c8 pea c8 <== NOT EXECUTED 60bb0: 4879 0009 b20e pea 9b20e <== NOT EXECUTED 60bb6: 4879 0009 b2d6 pea 9b2d6 <== NOT EXECUTED 60bbc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60bbe: 4eba fef8 jsr %pc@(60ab8 ) <== NOT EXECUTED 60bc2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 60bc6: 223c 0009 b2d6 movel #635606,%d1 <== NOT EXECUTED 60bcc: 4a80 tstl %d0 <== NOT EXECUTED 60bce: 6602 bnes 60bd2 <== NOT EXECUTED 60bd0: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &pwent; } 60bd2: 2001 movel %d1,%d0 <== NOT EXECUTED 60bd4: 4e5e unlk %fp <== NOT EXECUTED 00060fe2 : struct passwd *getpwnam( const char *name ) { 60fe2: 4e56 fffc linkw %fp,#-4 struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 60fe6: 486e fffc pea %fp@(-4) 60fea: 4878 00c8 pea c8 60fee: 4879 0009 b20e pea 9b20e 60ff4: 4879 0009 b2d6 pea 9b2d6 60ffa: 2f2e 0008 movel %fp@(8),%sp@- 60ffe: 4eb9 0006 0fc0 jsr 60fc0 61004: 4fef 0014 lea %sp@(20),%sp 61008: 4a80 tstl %d0 6100a: 6704 beqs 61010 6100c: 4280 clrl %d0 <== NOT EXECUTED 6100e: 6004 bras 61014 <== NOT EXECUTED return NULL; return p; 61010: 202e fffc movel %fp@(-4),%d0 } 61014: 4e5e unlk %fp <== NOT EXECUTED 00060f86 : uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 60f86: 4280 clrl %d0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 60f88: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 60f8c: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60f90: 486e fffc pea %fp@(-4) <== NOT EXECUTED 60f94: 4878 00c8 pea c8 <== NOT EXECUTED 60f98: 4879 0009 b20e pea 9b20e <== NOT EXECUTED 60f9e: 4879 0009 b2d6 pea 9b2d6 <== NOT EXECUTED 60fa4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60fa6: 4eb9 0006 0f60 jsr 60f60 <== NOT EXECUTED 60fac: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 60fb0: 4a80 tstl %d0 <== NOT EXECUTED 60fb2: 6704 beqs 60fb8 <== NOT EXECUTED 60fb4: 4280 clrl %d0 <== NOT EXECUTED 60fb6: 6004 bras 60fbc <== NOT EXECUTED return NULL; return p; 60fb8: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 60fbc: 4e5e unlk %fp <== NOT EXECUTED 00060f60 : char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 60f60: 4280 clrl %d0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 60f62: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 60f66: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 60f6a: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 60f6e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 60f72: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 60f76: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60f7a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60f7c: 42a7 clrl %sp@- <== NOT EXECUTED 60f7e: 4eba ff22 jsr %pc@(60ea2 ) <== NOT EXECUTED } 60f82: 4e5e unlk %fp <== NOT EXECUTED 00049108 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 49108: 4e56 ffec linkw %fp,#-20 4910c: 48d7 040c moveml %d2-%d3/%a2,%sp@ 49110: 246e 0008 moveal %fp@(8),%a2 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 49114: 4a8a tstl %a2 49116: 6610 bnes 49128 errno = EFAULT; 49118: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4911e: 720e moveq #14,%d1 <== NOT EXECUTED 49120: 2040 moveal %d0,%a0 <== NOT EXECUTED 49122: 70ff moveq #-1,%d0 <== NOT EXECUTED 49124: 2081 movel %d1,%a0@ <== NOT EXECUTED return -1; 49126: 6032 bras 4915a <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 49128: 203c 0000 0700 movel #1792,%d0 4912e: 40c2 movew %sr,%d2 49130: 8082 orl %d2,%d0 49132: 46c0 movew %d0,%sr _TOD_Get( &now ); 49134: 486e fff8 pea %fp@(-8) 49138: 4eb9 0004 a1d8 jsr 4a1d8 <_TOD_Get> _ISR_Enable(level); 4913e: 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; 49140: 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; 49146: 588f addql #4,%sp 49148: 4280 clrl %d0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 4914a: 222e fffc movel %fp@(-4),%d1 useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 4914e: 4c43 1801 remsl %d3,%d1,%d1 49152: 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; 49156: 24ae fff8 movel %fp@(-8),%a2@ } 4915a: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 49160: 4e5e unlk %fp <== NOT EXECUTED 00045960 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 45960: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45964: 2079 0009 71bc moveal 971bc ,%a0 <== NOT EXECUTED return _POSIX_types_Uid; } 4596a: 4e5e unlk %fp <== NOT EXECUTED 4596c: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED 00050518 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 50518: 7001 moveq #1,%d0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 5051a: 4e56 0000 linkw %fp,#0 5051e: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 50522: 2268 0038 moveal %a0@(56),%a1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 50526: 2f02 movel %d2,%sp@- IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 50528: b0a9 0048 cmpl %a1@(72),%d0 5052c: 6704 beqs 50532 5052e: 70ff moveq #-1,%d0 <== NOT EXECUTED 50530: 600e bras 50540 <== NOT EXECUTED if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 50532: 4280 clrl %d0 50534: 4281 clrl %d1 50536: 4282 clrl %d2 50538: 2141 000c movel %d1,%a0@(12) 5053c: 2142 0010 movel %d2,%a0@(16) return 0; } 50540: 241f movel %sp@+,%d2 50542: 4e5e unlk %fp <== NOT EXECUTED 0005066c : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 5066c: 4e56 fff8 linkw %fp,#-8 50670: 2f0b movel %a3,%sp@- 50672: 266e 000c moveal %fp@(12),%a3 50676: 2f0a movel %a2,%sp@- IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 50678: 2453 moveal %a3@,%a2 5067a: 200a movel %a2,%d0 5067c: 0680 0000 0050 addil #80,%d0 50682: b0aa 004c cmpl %a2@(76),%d0 50686: 6712 beqs 5069a /* * 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 ); 50688: 4eb9 0005 14ac jsr 514ac <__errno> 5068e: 72ff moveq #-1,%d1 50690: 2040 moveal %d0,%a0 50692: 705a moveq #90,%d0 50694: 2080 movel %d0,%a0@ 50696: 6000 0086 braw 5071e /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 5069a: 206b 0010 moveal %a3@(16),%a0 5069e: b5e8 001c cmpal %a0@(28),%a2 506a2: 6706 beqs 506aa /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 506a4: 4aaa 0058 tstl %a2@(88) 506a8: 6710 beqs 506ba rtems_set_errno_and_return_minus_one( EBUSY ); 506aa: 4eb9 0005 14ac jsr 514ac <__errno> 506b0: 72ff moveq #-1,%d1 506b2: 2040 moveal %d0,%a0 506b4: 7010 moveq #16,%d0 506b6: 2080 movel %d0,%a0@ 506b8: 6064 bras 5071e /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 506ba: 4aaa 0008 tstl %a2@(8) 506be: 670e beqs 506ce 506c0: 2f0a movel %a2,%sp@- 506c2: 4eb9 0004 7154 jsr 47154 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 506c8: 588f addql #4,%sp 506ca: 42aa 0008 clrl %a2@(8) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 506ce: 302a 0032 movew %a2@(50),%d0 506d2: 5380 subql #1,%d0 506d4: 3540 0032 movew %d0,%a2@(50) IMFS_update_ctime( the_jnode ); 506d8: 42a7 clrl %sp@- 506da: 486e fff8 pea %fp@(-8) 506de: 4eb9 0004 3578 jsr 43578 506e4: 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) ) { 506ea: 2f0a movel %a2,%sp@- 506ec: 4eb9 0004 d8a2 jsr 4d8a2 506f2: 4fef 000c lea %sp@(12),%sp 506f6: 4a80 tstl %d0 506f8: 6622 bnes 5071c 506fa: 4a6a 0032 tstw %a2@(50) 506fe: 661c bnes 5071c /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 50700: 2079 0006 087c moveal 6087c ,%a0 50706: 2653 moveal %a3@,%a3 50708: b7e8 0004 cmpal %a0@(4),%a3 5070c: 6604 bnes 50712 rtems_filesystem_current.node_access = NULL; 5070e: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 50712: 2f0a movel %a2,%sp@- 50714: 4eb9 0004 34f0 jsr 434f0 5071a: 588f addql #4,%sp 5071c: 4281 clrl %d1 } return 0; } 5071e: 246e fff0 moveal %fp@(-16),%a2 50722: 2001 movel %d1,%d0 50724: 266e fff4 moveal %fp@(-12),%a3 50728: 4e5e unlk %fp <== NOT EXECUTED 00060bd8 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 60bd8: 4e56 0000 linkw %fp,#0 60bdc: 2f0a movel %a2,%sp@- 60bde: 2f02 movel %d2,%sp@- FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 60be0: 4a39 0009 b208 tstb 9b208 60be6: 6600 00c4 bnew 60cac return; etc_passwd_initted = 1; mkdir("/etc", 0777); 60bea: 4878 01ff pea 1ff /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 60bee: 45f9 0007 69d4 lea 769d4 ,%a2 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); 60bf4: 4879 0008 dd36 pea 8dd36 <_rodata_start+0x6e6> FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 60bfa: 7001 moveq #1,%d0 60bfc: 13c0 0009 b208 moveb %d0,9b208 mkdir("/etc", 0777); 60c02: 4eb9 0004 5f68 jsr 45f68 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 60c08: 4879 0008 f5eb pea 8f5eb 60c0e: 4879 0008 de50 pea 8de50 <_rodata_start+0x800> 60c14: 4e92 jsr %a2@ 60c16: 4fef 0010 lea %sp@(16),%sp 60c1a: 4a80 tstl %d0 60c1c: 670c beqs 60c2a fclose(fp); 60c1e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60c20: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED 60c26: 588f addql #4,%sp <== NOT EXECUTED 60c28: 602e bras 60c58 <== NOT EXECUTED } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 60c2a: 4879 0008 f25c pea 8f25c 60c30: 4879 0008 de50 pea 8de50 <_rodata_start+0x800> 60c36: 4e92 jsr %a2@ 60c38: 508f addql #8,%sp 60c3a: 2400 movel %d0,%d2 60c3c: 671a beqs 60c58 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 60c3e: 2f00 movel %d0,%sp@- 60c40: 4879 0009 24f6 pea 924f6 60c46: 4eb9 0007 6b5c jsr 76b5c "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 60c4c: 2f02 movel %d2,%sp@- 60c4e: 4eb9 0007 616e jsr 7616e 60c54: 4fef 000c lea %sp@(12),%sp } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 60c58: 4879 0008 f5eb pea 8f5eb 60c5e: 45f9 0007 69d4 lea 769d4 ,%a2 60c64: 4879 0008 de95 pea 8de95 <_rodata_start+0x845> 60c6a: 4e92 jsr %a2@ 60c6c: 508f addql #8,%sp 60c6e: 4a80 tstl %d0 60c70: 670c beqs 60c7e fclose(fp); 60c72: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60c74: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED 60c7a: 588f addql #4,%sp <== NOT EXECUTED 60c7c: 602e bras 60cac <== NOT EXECUTED } else if ((fp = fopen("/etc/group", "w")) != NULL) { 60c7e: 4879 0008 f25c pea 8f25c 60c84: 4879 0008 de95 pea 8de95 <_rodata_start+0x845> 60c8a: 4e92 jsr %a2@ 60c8c: 508f addql #8,%sp 60c8e: 2400 movel %d0,%d2 60c90: 671a beqs 60cac fprintf( fp, "root:x:0:root\n" 60c92: 2f00 movel %d0,%sp@- 60c94: 4879 0009 255d pea 9255d 60c9a: 4eb9 0007 6b5c jsr 76b5c "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 60ca0: 2f02 movel %d2,%sp@- 60ca2: 4eb9 0007 616e jsr 7616e 60ca8: 4fef 000c lea %sp@(12),%sp } } 60cac: 242e fff8 movel %fp@(-8),%d2 60cb0: 246e fffc moveal %fp@(-4),%a2 60cb4: 4e5e unlk %fp <== NOT EXECUTED 00045614 : int ioctl( int fd, ioctl_command_t command, ... ) { 45614: 4e56 0000 linkw %fp,#0 45618: 202e 0008 movel %fp@(8),%d0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 4561c: b0b9 0006 09d4 cmpl 609d4 ,%d0 45622: 6422 bccs 45646 iop = rtems_libio_iop( fd ); 45624: 2079 0006 21a8 moveal 621a8 ,%a0 4562a: ed88 lsll #6,%d0 4562c: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 4562e: 2028 0014 movel %a0@(20),%d0 45632: 0280 0000 0100 andil #256,%d0 45638: 670c beqs 45646 va_start(ap, command); buffer = va_arg(ap, void *); 4563a: 202e 0010 movel %fp@(16),%d0 /* * Now process the ioctl(). */ if ( !iop->handlers ) 4563e: 2268 003c moveal %a0@(60),%a1 45642: 4a89 tstl %a1 45644: 6610 bnes 45656 rtems_set_errno_and_return_minus_one( EBADF ); 45646: 4eb9 0005 16b4 jsr 516b4 <__errno> 4564c: 72ff moveq #-1,%d1 4564e: 2040 moveal %d0,%a0 45650: 7009 moveq #9,%d0 45652: 2080 movel %d0,%a0@ 45654: 602a bras 45680 if ( !iop->handlers->ioctl_h ) 45656: 2269 0010 moveal %a1@(16),%a1 4565a: 4a89 tstl %a1 4565c: 6612 bnes 45670 rtems_set_errno_and_return_minus_one( ENOTSUP ); 4565e: 4eb9 0005 16b4 jsr 516b4 <__errno> <== NOT EXECUTED 45664: 72ff moveq #-1,%d1 <== NOT EXECUTED 45666: 2040 moveal %d0,%a0 <== NOT EXECUTED 45668: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4566e: 6010 bras 45680 <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 45670: 2f00 movel %d0,%sp@- 45672: 2f2e 000c movel %fp@(12),%sp@- 45676: 2f08 movel %a0,%sp@- 45678: 4e91 jsr %a1@ return rc; 4567a: 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 ); 4567e: 2200 movel %d0,%d1 return rc; } 45680: 2001 movel %d1,%d0 45682: 4e5e unlk %fp ... 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 b67c moveal 5b67c <__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 b5a4 movel 5b5a4 ,%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 0006108c : int link( const char *existing, const char *new ) { 6108c: 4e56 ffc8 linkw %fp,#-56 61090: 48d7 040c moveml %d2-%d3/%a2,%sp@ 61094: 242e 0008 movel %fp@(8),%d2 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 61098: 2f02 movel %d2,%sp@- int link( const char *existing, const char *new ) { 6109a: 246e 000c moveal %fp@(12),%a2 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 6109e: 4eb9 0007 c0d8 jsr 7c0d8 610a4: 7201 moveq #1,%d1 610a6: 2e81 movel %d1,%sp@ 610a8: 486e ffe8 pea %fp@(-24) 610ac: 42a7 clrl %sp@- 610ae: 2f00 movel %d0,%sp@- 610b0: 2f02 movel %d2,%sp@- 610b2: 4eb9 0004 578a jsr 4578a 0, &existing_loc, true ); if ( result != 0 ) 610b8: 4fef 0014 lea %sp@(20),%sp 610bc: 4a80 tstl %d0 610be: 6706 beqs 610c6 610c0: 74ff moveq #-1,%d2 610c2: 6000 01a6 braw 6126a /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 610c6: 742f moveq #47,%d2 610c8: 1012 moveb %a2@,%d0 610ca: 1200 moveb %d0,%d1 610cc: 49c1 extbl %d1 610ce: b481 cmpl %d1,%d2 610d0: 670c beqs 610de 610d2: 143c 005c moveb #92,%d2 610d6: b481 cmpl %d1,%d2 610d8: 6704 beqs 610de 610da: 4a00 tstb %d0 610dc: 6622 bnes 61100 610de: 4878 0014 pea 14 610e2: 2079 0009 71bc moveal 971bc ,%a0 610e8: 41e8 0018 lea %a0@(24),%a0 610ec: 2f08 movel %a0,%sp@- 610ee: 486e ffd4 pea %fp@(-44) 610f2: 4eb9 0007 9068 jsr 79068 610f8: 4fef 000c lea %sp@(12),%sp 610fc: 7001 moveq #1,%d0 610fe: 601e bras 6111e 61100: 4878 0014 pea 14 61104: 2039 0009 71bc movel 971bc ,%d0 6110a: 5880 addql #4,%d0 6110c: 2f00 movel %d0,%sp@- 6110e: 486e ffd4 pea %fp@(-44) 61112: 4eb9 0007 9068 jsr 79068 61118: 4fef 000c lea %sp@(12),%sp 6111c: 4280 clrl %d0 if ( !parent_loc.ops->evalformake_h ) { 6111e: 206e ffe0 moveal %fp@(-32),%a0 61122: 2068 0004 moveal %a0@(4),%a0 61126: 4a88 tstl %a0 61128: 661c bnes 61146 rtems_filesystem_freenode( &existing_loc ); 6112a: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 6112e: 4a88 tstl %a0 <== NOT EXECUTED 61130: 6700 00e0 beqw 61212 <== NOT EXECUTED 61134: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61138: 4a88 tstl %a0 <== NOT EXECUTED 6113a: 6700 00d6 beqw 61212 <== NOT EXECUTED 6113e: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 61142: 6000 00ca braw 6120e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 61146: 486e fffc pea %fp@(-4) 6114a: 240e movel %fp,%d2 6114c: 0682 ffff ffd4 addil #-44,%d2 61152: 2f02 movel %d2,%sp@- 61154: 4872 0800 pea %a2@(00000000,%d0:l) 61158: 4e90 jsr %a0@ if ( result != 0 ) { 6115a: 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 ); 6115e: 2600 movel %d0,%d3 if ( result != 0 ) { 61160: 6728 beqs 6118a rtems_filesystem_freenode( &existing_loc ); 61162: 206e fff4 moveal %fp@(-12),%a0 61166: 4a88 tstl %a0 61168: 6710 beqs 6117a 6116a: 2068 001c moveal %a0@(28),%a0 6116e: 4a88 tstl %a0 61170: 6708 beqs 6117a 61172: 486e ffe8 pea %fp@(-24) 61176: 4e90 jsr %a0@ 61178: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( result ); 6117a: 4eb9 0007 6030 jsr 76030 <__errno> 61180: 74ff moveq #-1,%d2 61182: 2040 moveal %d0,%a0 61184: 2083 movel %d3,%a0@ 61186: 6000 00e2 braw 6126a /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 6118a: 202e fff8 movel %fp@(-8),%d0 6118e: b0ae ffe4 cmpl %fp@(-28),%d0 61192: 6742 beqs 611d6 rtems_filesystem_freenode( &existing_loc ); 61194: 206e fff4 moveal %fp@(-12),%a0 61198: 4a88 tstl %a0 6119a: 6710 beqs 611ac 6119c: 2068 001c moveal %a0@(28),%a0 611a0: 4a88 tstl %a0 611a2: 6708 beqs 611ac 611a4: 486e ffe8 pea %fp@(-24) 611a8: 4e90 jsr %a0@ 611aa: 588f addql #4,%sp rtems_filesystem_freenode( &parent_loc ); 611ac: 206e ffe0 moveal %fp@(-32),%a0 611b0: 4a88 tstl %a0 611b2: 6710 beqs 611c4 611b4: 2068 001c moveal %a0@(28),%a0 611b8: 4a88 tstl %a0 611ba: 6708 beqs 611c4 611bc: 486e ffd4 pea %fp@(-44) 611c0: 4e90 jsr %a0@ 611c2: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EXDEV ); 611c4: 4eb9 0007 6030 jsr 76030 <__errno> 611ca: 74ff moveq #-1,%d2 611cc: 2040 moveal %d0,%a0 611ce: 7012 moveq #18,%d0 611d0: 2080 movel %d0,%a0@ 611d2: 6000 0096 braw 6126a } if ( !parent_loc.ops->link_h ) { 611d6: 206e ffe0 moveal %fp@(-32),%a0 611da: 2068 0008 moveal %a0@(8),%a0 611de: 4a88 tstl %a0 611e0: 6642 bnes 61224 rtems_filesystem_freenode( &existing_loc ); 611e2: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 611e6: 4a88 tstl %a0 <== NOT EXECUTED 611e8: 6710 beqs 611fa <== NOT EXECUTED 611ea: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 611ee: 4a88 tstl %a0 <== NOT EXECUTED 611f0: 6708 beqs 611fa <== NOT EXECUTED 611f2: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 611f6: 4e90 jsr %a0@ <== NOT EXECUTED 611f8: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 611fa: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 611fe: 4a88 tstl %a0 <== NOT EXECUTED 61200: 6710 beqs 61212 <== NOT EXECUTED 61202: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61206: 4a88 tstl %a0 <== NOT EXECUTED 61208: 6708 beqs 61212 <== NOT EXECUTED 6120a: 486e ffd4 pea %fp@(-44) <== NOT EXECUTED 6120e: 4e90 jsr %a0@ <== NOT EXECUTED 61210: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61212: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61218: 74ff moveq #-1,%d2 <== NOT EXECUTED 6121a: 2040 moveal %d0,%a0 <== NOT EXECUTED 6121c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61222: 6046 bras 6126a <== NOT EXECUTED } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 61224: 2f2e fffc movel %fp@(-4),%sp@- 61228: 260e movel %fp,%d3 6122a: 0683 ffff ffe8 addil #-24,%d3 61230: 2f02 movel %d2,%sp@- 61232: 2f03 movel %d3,%sp@- 61234: 4e90 jsr %a0@ rtems_filesystem_freenode( &existing_loc ); 61236: 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 ); 6123a: 2400 movel %d0,%d2 rtems_filesystem_freenode( &existing_loc ); 6123c: 4fef 000c lea %sp@(12),%sp 61240: 4a88 tstl %a0 61242: 670e beqs 61252 61244: 2068 001c moveal %a0@(28),%a0 61248: 4a88 tstl %a0 6124a: 6706 beqs 61252 6124c: 2f03 movel %d3,%sp@- 6124e: 4e90 jsr %a0@ 61250: 588f addql #4,%sp rtems_filesystem_freenode( &parent_loc ); 61252: 206e ffe0 moveal %fp@(-32),%a0 61256: 4a88 tstl %a0 61258: 6710 beqs 6126a 6125a: 2068 001c moveal %a0@(28),%a0 6125e: 4a88 tstl %a0 61260: 6708 beqs 6126a 61262: 486e ffd4 pea %fp@(-44) 61266: 4e90 jsr %a0@ 61268: 588f addql #4,%sp return result; } 6126a: 2002 movel %d2,%d0 6126c: 4cee 040c ffc8 moveml %fp@(-56),%d2-%d3/%a2 61272: 4e5e unlk %fp <== NOT EXECUTED 0005935c : off_t lseek( int fd, off_t offset, int whence ) { 5935c: 4e56 ffec linkw %fp,#-20 59360: 206e 0014 moveal %fp@(20),%a0 59364: 48d7 043c moveml %d2-%d5/%a2,%sp@ 59368: 242e 0008 movel %fp@(8),%d2 5936c: 202e 000c movel %fp@(12),%d0 59370: 222e 0010 movel %fp@(16),%d1 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 59374: b4b9 0005 b4a4 cmpl 5b4a4 ,%d2 5937a: 6416 bccs 59392 iop = rtems_libio_iop( fd ); 5937c: 2479 0005 cba8 moveal 5cba8 ,%a2 59382: ed8a lsll #6,%d2 59384: d5c2 addal %d2,%a2 rtems_libio_check_is_open(iop); 59386: 242a 0014 movel %a2@(20),%d2 5938a: 0282 0000 0100 andil #256,%d2 59390: 660e bnes 593a0 59392: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 59398: 7209 moveq #9,%d1 <== NOT EXECUTED 5939a: 2040 moveal %d0,%a0 <== NOT EXECUTED 5939c: 2081 movel %d1,%a0@ <== NOT EXECUTED 5939e: 6068 bras 59408 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 593a0: 226a 003c moveal %a2@(60),%a1 593a4: 4aa9 0014 tstl %a1@(20) 593a8: 6610 bnes 593ba rtems_set_errno_and_return_minus_one( ENOTSUP ); 593aa: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 593b0: 2040 moveal %d0,%a0 <== NOT EXECUTED 593b2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 593b8: 604e bras 59408 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 593ba: 7801 moveq #1,%d4 /* * Now process the lseek(). */ old_offset = iop->offset; 593bc: 242a 000c movel %a2@(12),%d2 593c0: 262a 0010 movel %a2@(16),%d3 switch ( whence ) { 593c4: b888 cmpl %a0,%d4 593c6: 6714 beqs 593dc 593c8: 7a02 moveq #2,%d5 593ca: ba88 cmpl %a0,%d5 593cc: 6718 beqs 593e6 593ce: 4a88 tstl %a0 593d0: 662a bnes 593fc case SEEK_SET: iop->offset = offset; 593d2: 2540 000c movel %d0,%a2@(12) 593d6: 2541 0010 movel %d1,%a2@(16) break; 593da: 6032 bras 5940e case SEEK_CUR: iop->offset += offset; 593dc: 2800 movel %d0,%d4 593de: 2a01 movel %d1,%d5 593e0: da83 addl %d3,%d5 593e2: d982 addxl %d2,%d4 593e4: 600c bras 593f2 break; case SEEK_END: iop->offset = iop->size + offset; 593e6: 282a 0004 movel %a2@(4),%d4 593ea: 2a2a 0008 movel %a2@(8),%d5 593ee: da81 addl %d1,%d5 593f0: d980 addxl %d0,%d4 593f2: 2544 000c movel %d4,%a2@(12) 593f6: 2545 0010 movel %d5,%a2@(16) break; 593fa: 6012 bras 5940e default: rtems_set_errno_and_return_minus_one( EINVAL ); 593fc: 4eb9 0004 ca88 jsr 4ca88 <__errno> 59402: 2040 moveal %d0,%a0 59404: 7016 moveq #22,%d0 59406: 2080 movel %d0,%a0@ 59408: 78ff moveq #-1,%d4 5940a: 7aff moveq #-1,%d5 5940c: 602c bras 5943a /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 5940e: 226a 003c moveal %a2@(60),%a1 59412: 2f08 movel %a0,%sp@- 59414: 2f01 movel %d1,%sp@- 59416: 2f00 movel %d0,%sp@- 59418: 2f0a movel %a2,%sp@- 5941a: 2069 0014 moveal %a1@(20),%a0 5941e: 4e90 jsr %a0@ if ( status == (off_t) -1 ) 59420: 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 ); 59424: 2800 movel %d0,%d4 59426: 2a01 movel %d1,%d5 if ( status == (off_t) -1 ) 59428: 70ff moveq #-1,%d0 5942a: 72ff moveq #-1,%d1 5942c: 9285 subl %d5,%d1 5942e: 9184 subxl %d4,%d0 59430: 6608 bnes 5943a iop->offset = old_offset; 59432: 2542 000c movel %d2,%a2@(12) 59436: 2543 0010 movel %d3,%a2@(16) /* * So if the operation failed, we have to restore iop->offset. */ return status; } 5943a: 2205 movel %d5,%d1 5943c: 2004 movel %d4,%d0 5943e: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 59444: 4e5e unlk %fp <== NOT EXECUTED 000613ac : int _STAT_NAME( const char *path, struct stat *buf ) { 613ac: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 613b0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 613b4: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 613b8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 613bc: 6612 bnes 613d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 613be: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 613c4: 74ff moveq #-1,%d2 <== NOT EXECUTED 613c6: 2040 moveal %d0,%a0 <== NOT EXECUTED 613c8: 700e moveq #14,%d0 <== NOT EXECUTED 613ca: 2080 movel %d0,%a0@ <== NOT EXECUTED 613cc: 6000 0098 braw 61466 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 613d0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 613d2: 260e movel %fp,%d3 <== NOT EXECUTED 613d4: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED 613da: 4eb9 0007 c0d8 jsr 7c0d8 <== NOT EXECUTED 613e0: 4297 clrl %sp@ <== NOT EXECUTED 613e2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 613e4: 42a7 clrl %sp@- <== NOT EXECUTED 613e6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 613e8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 613ea: 4eb9 0004 578a jsr 4578a <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 613f0: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 613f4: 4a80 tstl %d0 <== NOT EXECUTED 613f6: 6704 beqs 613fc <== NOT EXECUTED 613f8: 74ff moveq #-1,%d2 <== NOT EXECUTED 613fa: 606a bras 61466 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 613fc: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61400: 4aa8 0018 tstl %a0@(24) <== NOT EXECUTED 61404: 6628 bnes 6142e <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61406: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 6140a: 4a88 tstl %a0 <== NOT EXECUTED 6140c: 670e beqs 6141c <== NOT EXECUTED 6140e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61412: 4a88 tstl %a0 <== NOT EXECUTED 61414: 6706 beqs 6141c <== NOT EXECUTED 61416: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61418: 4e90 jsr %a0@ <== NOT EXECUTED 6141a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 6141c: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61422: 74ff moveq #-1,%d2 <== NOT EXECUTED 61424: 2040 moveal %d0,%a0 <== NOT EXECUTED 61426: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 6142c: 6038 bras 61466 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 6142e: 4878 0046 pea 46 <== NOT EXECUTED 61432: 42a7 clrl %sp@- <== NOT EXECUTED 61434: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61436: 4eb9 0007 91d4 jsr 791d4 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 6143c: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61440: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61442: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61444: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 61448: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 6144a: 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 ); 6144e: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61450: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61454: 4a88 tstl %a0 <== NOT EXECUTED 61456: 670e beqs 61466 <== NOT EXECUTED 61458: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6145c: 4a88 tstl %a0 <== NOT EXECUTED 6145e: 6706 beqs 61466 <== NOT EXECUTED 61460: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61462: 4e90 jsr %a0@ <== NOT EXECUTED 61464: 588f addql #4,%sp <== NOT EXECUTED return status; } 61466: 2002 movel %d2,%d0 <== NOT EXECUTED 61468: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 6146e: 4e5e unlk %fp <== NOT EXECUTED 00049484 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 49484: 4e56 fff4 linkw %fp,#-12 49488: 52b9 0005 cbb8 addql #1,5cbb8 4948e: 48d7 001c moveml %d2-%d4,%sp@ 49492: 262e 0008 movel %fp@(8),%d3 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 49496: 4eb9 0004 944c jsr 4944c /* * Validate the parameters */ if ( !size ) 4949c: 4a83 tstl %d3 4949e: 6700 0088 beqw 49528 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 494a2: 7003 moveq #3,%d0 494a4: b0b9 0005 ce90 cmpl 5ce90 <_System_state_Current>,%d0 494aa: 660a bnes 494b6 494ac: 4eb9 0004 93f4 jsr 493f4 494b2: 4a00 tstb %d0 494b4: 6772 beqs 49528 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 494b6: 42a7 clrl %sp@- 494b8: 42a7 clrl %sp@- 494ba: 2f03 movel %d3,%sp@- 494bc: 2f39 0005 b4b0 movel 5b4b0 ,%sp@- 494c2: 4eb9 0004 a598 jsr 4a598 <_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 ) { 494c8: 4fef 0010 lea %sp@(16),%sp 494cc: 2400 movel %d0,%d2 494ce: 6626 bnes 494f6 if (rtems_malloc_sbrk_helpers) 494d0: 2079 0005 bb3a moveal 5bb3a ,%a0 494d6: 4a88 tstl %a0 494d8: 670e beqs 494e8 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 494da: 2f03 movel %d3,%sp@- <== NOT EXECUTED 494dc: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 494e0: 4e90 jsr %a0@ <== NOT EXECUTED if ( !return_this ) { 494e2: 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 ); 494e4: 2800 movel %d0,%d4 <== NOT EXECUTED if ( !return_this ) { 494e6: 6610 bnes 494f8 <== NOT EXECUTED errno = ENOMEM; 494e8: 4eb9 0004 ca88 jsr 4ca88 <__errno> 494ee: 2040 moveal %d0,%a0 494f0: 700c moveq #12,%d0 494f2: 2080 movel %d0,%a0@ return (void *) 0; 494f4: 6034 bras 4952a 494f6: 2800 movel %d0,%d4 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 494f8: 2079 0005 bb3e moveal 5bb3e ,%a0 494fe: 4a88 tstl %a0 49500: 670a beqs 4950c (*rtems_malloc_dirty_helper)( return_this, size ); 49502: 2f03 movel %d3,%sp@- <== NOT EXECUTED 49504: 2f04 movel %d4,%sp@- <== NOT EXECUTED 49506: 2050 moveal %a0@,%a0 <== NOT EXECUTED 49508: 4e90 jsr %a0@ <== NOT EXECUTED 4950a: 508f addql #8,%sp <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4950c: 2079 0005 bb36 moveal 5bb36 ,%a0 49512: 4a88 tstl %a0 49514: 6604 bnes 4951a 49516: 2404 movel %d4,%d2 49518: 6010 bras 4952a (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4951a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4951c: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 49520: 2404 movel %d4,%d2 <== NOT EXECUTED 49522: 4e90 jsr %a0@ <== NOT EXECUTED 49524: 588f addql #4,%sp <== NOT EXECUTED 49526: 6002 bras 4952a <== NOT EXECUTED 49528: 4282 clrl %d2 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4952a: 2002 movel %d2,%d0 4952c: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 49532: 4e5e unlk %fp ... 00049432 : } void malloc_deferred_free( void *pointer ) { 49432: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49436: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4943a: 4879 0005 d1aa pea 5d1aa <== NOT EXECUTED 49440: 4eb9 0004 58d0 jsr 458d0 <_Chain_Append> <== NOT EXECUTED 49446: 508f addql #8,%sp <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } 49448: 4e5e unlk %fp <== NOT EXECUTED 0004944c : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 4944c: 4e56 0000 linkw %fp,#0 49450: 2f0b movel %a3,%sp@- */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 49452: 47f9 0004 a070 lea 4a070 <_Chain_Get>,%a3 49458: 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); 4945a: 45f9 0004 8f80 lea 48f80 ,%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) 49460: 6006 bras 49468 free(to_be_freed); 49462: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49464: 4e92 jsr %a2@ <== NOT EXECUTED 49466: 588f addql #4,%sp <== NOT EXECUTED 49468: 4879 0005 d1aa pea 5d1aa 4946e: 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) 49470: 588f addql #4,%sp 49472: 4a80 tstl %d0 49474: 66ec bnes 49462 free(to_be_freed); } 49476: 246e fff8 moveal %fp@(-8),%a2 4947a: 266e fffc moveal %fp@(-4),%a3 4947e: 4e5e unlk %fp ... 000493f4 : #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { 493f4: 4e56 0000 linkw %fp,#0 if ( _Thread_Dispatch_disable_level > 0 ) 493f8: 2039 0005 cd08 movel 5cd08 <_Thread_Dispatch_disable_level>,%d0 493fe: 6704 beqs 49404 49400: 4200 clrb %d0 <== NOT EXECUTED 49402: 600a bras 4940e <== NOT EXECUTED return false; if ( _ISR_Nest_level > 0 ) 49404: 2039 0005 cda2 movel 5cda2 <_ISR_Nest_level>,%d0 #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 4940a: 57c0 seq %d0 4940c: 4480 negl %d0 if ( _ISR_Nest_level > 0 ) return false; return true; } 4940e: 4e5e unlk %fp <== NOT EXECUTED 0004f936 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 4f936: 4e56 0000 linkw %fp,#0 4f93a: 2f0a movel %a2,%sp@- 4f93c: 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) ) { 4f940: 2f0a movel %a2,%sp@- 4f942: 4eb9 0004 d8a2 jsr 4d8a2 4f948: 588f addql #4,%sp 4f94a: 4a80 tstl %d0 4f94c: 6632 bnes 4f980 4f94e: 4a6a 0032 tstw %a2@(50) 4f952: 662c bnes 4f980 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 4f954: 2079 0006 087c moveal 6087c ,%a0 4f95a: b5e8 0004 cmpal %a0@(4),%a2 4f95e: 6604 bnes 4f964 rtems_filesystem_current.node_access = NULL; 4f960: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 4f964: 7006 moveq #6,%d0 4f966: b0aa 0048 cmpl %a2@(72),%d0 4f96a: 670a beqs 4f976 IMFS_memfile_remove( the_jnode ); 4f96c: 2f0a movel %a2,%sp@- 4f96e: 4eb9 0004 f81c jsr 4f81c 4f974: 588f addql #4,%sp free( the_jnode ); 4f976: 2f0a movel %a2,%sp@- 4f978: 4eb9 0004 34f0 jsr 434f0 4f97e: 588f addql #4,%sp } return 0; } 4f980: 246e fffc moveal %fp@(-4),%a2 4f984: 4280 clrl %d0 4f986: 4e5e unlk %fp <== NOT EXECUTED 0004f76a : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 4f76a: 4e56 ffec linkw %fp,#-20 4f76e: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 4f772: 246e 0008 moveal %fp@(8),%a2 4f776: 262e 000c movel %fp@(12),%d3 /* * Perform internal consistency checks */ assert( block_table ); 4f77a: 4a8a tstl %a2 4f77c: 661c bnes 4f79a 4f77e: 4879 0005 fc32 pea 5fc32 <== NOT EXECUTED 4f784: 4879 0005 fd19 pea 5fd19 <__FUNCTION__.6063> <== NOT EXECUTED 4f78a: 4878 01b3 pea 1b3 <== NOT EXECUTED 4f78e: 4879 0005 fbc8 pea 5fbc8 <== NOT EXECUTED 4f794: 4eb9 0004 d5e8 jsr 4d5e8 <__assert_func> <== NOT EXECUTED 4f79a: 2652 moveal %a2@,%a3 4f79c: 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] ) { 4f7a6: 2013 movel %a3@,%d0 4f7a8: 6708 beqs 4f7b2 memfile_free_block( b[i] ); 4f7aa: 2f00 movel %d0,%sp@- 4f7ac: 4e94 jsr %a4@ b[i] = 0; 4f7ae: 588f addql #4,%sp 4f7b0: 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 ); 4f7ba: 2f12 movel %a2@,%sp@- 4f7bc: 4eb9 0004 f592 jsr 4f592 *block_table = 0; 4f7c2: 588f addql #4,%sp 4f7c4: 4292 clrl %a2@ } 4f7c6: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 4f7cc: 4e5e unlk %fp <== NOT EXECUTED 0004fbae : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 4fbae: 4e56 ffec linkw %fp,#-20 4fbb2: 206e 0008 moveal %fp@(8),%a0 4fbb6: 48d7 040c moveml %d2-%d3/%a2,%sp@ IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4fbba: 2468 0038 moveal %a0@(56),%a2 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 4fbbe: 202e 000c movel %fp@(12),%d0 4fbc2: 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 ) 4fbc6: 242a 004c movel %a2@(76),%d2 4fbca: 262a 0050 movel %a2@(80),%d3 4fbce: 9681 subl %d1,%d3 4fbd0: 9580 subxl %d0,%d2 4fbd2: 6c12 bges 4fbe6 return IMFS_memfile_extend( the_jnode, length ); 4fbd4: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4fbd6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4fbd8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4fbda: 4eb9 0004 fa86 jsr 4fa86 <== NOT EXECUTED 4fbe0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4fbe4: 6026 bras 4fc0c <== 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; 4fbe6: 2540 004c movel %d0,%a2@(76) 4fbea: 2541 0050 movel %d1,%a2@(80) iop->size = the_jnode->info.file.size; 4fbee: 2140 0004 movel %d0,%a0@(4) 4fbf2: 2141 0008 movel %d1,%a0@(8) IMFS_update_atime( the_jnode ); 4fbf6: 42a7 clrl %sp@- 4fbf8: 486e fff8 pea %fp@(-8) 4fbfc: 4eb9 0004 3578 jsr 43578 4fc02: 256e fff8 003c movel %fp@(-8),%a2@(60) return 0; 4fc08: 508f addql #8,%sp */ the_jnode->info.file.size = length; iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); 4fc0a: 4280 clrl %d0 return 0; } 4fc0c: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 4fc12: 4e5e unlk %fp <== NOT EXECUTED 0004fc16 : { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 4fc16: 7006 moveq #6,%d0 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 4fc18: 4e56 fff0 linkw %fp,#-16 4fc1c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4fc20: 246e 0008 moveal %fp@(8),%a2 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4fc24: 266a 0038 moveal %a2@(56),%a3 if (the_jnode->type == IMFS_LINEAR_FILE) { 4fc28: b0ab 0048 cmpl %a3@(72),%d0 4fc2c: 6620 bnes 4fc4e if (iop->offset > the_jnode->info.linearfile.size) 4fc2e: 202b 004c movel %a3@(76),%d0 <== NOT EXECUTED 4fc32: 222b 0050 movel %a3@(80),%d1 <== NOT EXECUTED 4fc36: 242a 000c movel %a2@(12),%d2 <== NOT EXECUTED 4fc3a: 262a 0010 movel %a2@(16),%d3 <== NOT EXECUTED 4fc3e: 9681 subl %d1,%d3 <== NOT EXECUTED 4fc40: 9580 subxl %d0,%d2 <== NOT EXECUTED 4fc42: 6f48 bles 4fc8c <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 4fc44: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED 4fc48: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED 4fc4c: 603e bras 4fc8c <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 4fc4e: 2f2a 0010 movel %a2@(16),%sp@- 4fc52: 2f2a 000c movel %a2@(12),%sp@- 4fc56: 2f0b movel %a3,%sp@- 4fc58: 4eb9 0004 fa86 jsr 4fa86 4fc5e: 4fef 000c lea %sp@(12),%sp 4fc62: 4a80 tstl %d0 4fc64: 6716 beqs 4fc7c rtems_set_errno_and_return_minus_one( ENOSPC ); 4fc66: 4eb9 0005 14ac jsr 514ac <__errno> <== NOT EXECUTED 4fc6c: 761c moveq #28,%d3 <== NOT EXECUTED 4fc6e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4fc70: 2083 movel %d3,%a0@ <== NOT EXECUTED 4fc72: 307c ffff moveaw #-1,%a0 <== NOT EXECUTED 4fc76: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED 4fc7a: 6018 bras 4fc94 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 4fc7c: 202b 004c movel %a3@(76),%d0 4fc80: 222b 0050 movel %a3@(80),%d1 4fc84: 2540 0004 movel %d0,%a2@(4) 4fc88: 2541 0008 movel %d1,%a2@(8) } return iop->offset; 4fc8c: 206a 000c moveal %a2@(12),%a0 4fc90: 226a 0010 moveal %a2@(16),%a1 } 4fc94: 2209 movel %a1,%d1 4fc96: 2008 movel %a0,%d0 4fc98: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 4fc9e: 4e5e unlk %fp <== NOT EXECUTED 0004feee : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4feee: 4e56 fff0 linkw %fp,#-16 4fef2: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4fef6: 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)) 4fefa: 202b 0014 movel %a3@(20),%d0 4fefe: 0280 0000 0204 andil #516,%d0 uint32_t mode ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4ff04: 246b 0038 moveal %a3@(56),%a2 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 4ff08: 6750 beqs 4ff5a && (the_jnode->type == IMFS_LINEAR_FILE)) { 4ff0a: 7006 moveq #6,%d0 4ff0c: b0aa 0048 cmpl %a2@(72),%d0 4ff10: 6648 bnes 4ff5a uint32_t count = the_jnode->info.linearfile.size; 4ff12: 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; 4ff16: 4282 clrl %d2 <== NOT EXECUTED 4ff18: 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; 4ff1a: 222a 0054 movel %a2@(84),%d1 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 4ff1e: 2542 004c movel %d2,%a2@(76) <== NOT EXECUTED 4ff22: 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; 4ff26: 7605 moveq #5,%d3 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 4ff28: 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; 4ff2c: 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; 4ff30: 42aa 0058 clrl %a2@(88) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 4ff34: 42aa 005c clrl %a2@(92) <== NOT EXECUTED if ((count != 0) 4ff38: 4a80 tstl %d0 <== NOT EXECUTED 4ff3a: 671e beqs 4ff5a <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 4ff3c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ff3e: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4ff40: 42a7 clrl %sp@- <== NOT EXECUTED 4ff42: 42a7 clrl %sp@- <== NOT EXECUTED 4ff44: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ff46: 4eb9 0004 fca2 jsr 4fca2 <== 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) 4ff4c: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4ff50: 72ff moveq #-1,%d1 <== NOT EXECUTED 4ff52: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ff54: 6604 bnes 4ff5a <== NOT EXECUTED 4ff56: 70ff moveq #-1,%d0 <== NOT EXECUTED 4ff58: 602e bras 4ff88 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 4ff5a: 202b 0014 movel %a3@(20),%d0 4ff5e: 0280 0000 0200 andil #512,%d0 4ff64: 6710 beqs 4ff76 iop->offset = the_jnode->info.file.size; 4ff66: 242a 004c movel %a2@(76),%d2 4ff6a: 262a 0050 movel %a2@(80),%d3 4ff6e: 2742 000c movel %d2,%a3@(12) 4ff72: 2743 0010 movel %d3,%a3@(16) iop->size = the_jnode->info.file.size; 4ff76: 4280 clrl %d0 4ff78: 222a 004c movel %a2@(76),%d1 4ff7c: 242a 0050 movel %a2@(80),%d2 4ff80: 2741 0004 movel %d1,%a3@(4) 4ff84: 2742 0008 movel %d2,%a3@(8) return 0; } 4ff88: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 4ff8e: 4e5e unlk %fp <== NOT EXECUTED 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 ca88 jsr 4ca88 <__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 b5b4 moveal 5b5b4 ,%a0 424ba: 41e8 0018 lea %a0@(24),%a0 424be: 2f08 movel %a0,%sp@- 424c0: 486e ffe8 pea %fp@(-24) 424c4: 4eb9 0004 d2a8 jsr 4d2a8 424ca: 4fef 000c lea %sp@(12),%sp 424ce: 7001 moveq #1,%d0 424d0: 601e bras 424f0 424d2: 4878 0014 pea 14 424d6: 2039 0005 b5b4 movel 5b5b4 ,%d0 424dc: 5880 addql #4,%d0 424de: 2f00 movel %d0,%sp@- 424e0: 486e ffe8 pea %fp@(-24) 424e4: 4eb9 0004 d2a8 jsr 4d2a8 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 ca88 jsr 4ca88 <__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 ... 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 ca88 jsr 4ca88 <__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 ca88 jsr 4ca88 <__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 de54 jsr 4de54 <== 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 9484 jsr 49484 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 ca88 jsr 4ca88 <__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 da08 jsr 4da08 <== 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 de54 jsr 4de54 * 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 ca88 jsr 4ca88 <__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 ca88 jsr 4ca88 <__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 cbe0 moveal 5cbe0 ,%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 cbe4 cmpal #379876,%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 ca88 jsr 4ca88 <__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 ca88 jsr 4ca88 <__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 cbe0 pea 5cbe0 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 8f80 jsr 48f80 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 ce1c jsr 4ce1c 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 8f80 jsr 48f80 <== 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 cbc6 jsr 4cbc6 <== 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 <== NOT EXECUTED 000427f8 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 427f8: 4e56 0000 linkw %fp,#0 427fc: 2f02 movel %d2,%sp@- 427fe: 242e 0008 movel %fp@(8),%d2 rtems_device_driver status; if ( !initialized ) { 42802: 4a39 0005 d67c tstb 5d67c 42808: 662e bnes 42838 initialized = 1; status = rtems_io_register_name( 4280a: 42a7 clrl %sp@- ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 4280c: 7001 moveq #1,%d0 status = rtems_io_register_name( 4280e: 2f02 movel %d2,%sp@- 42810: 4879 0005 b1d4 pea 5b1d4 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 42816: 13c0 0005 d67c moveb %d0,5d67c status = rtems_io_register_name( 4281c: 4eb9 0004 2918 jsr 42918 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 42822: 4fef 000c lea %sp@(12),%sp 42826: 4a80 tstl %d0 42828: 6708 beqs 42832 rtems_fatal_error_occurred(status); 4282a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4282c: 4eb9 0004 60a8 jsr 460a8 <== NOT EXECUTED NULL_major = major; 42832: 23c2 0005 dea0 movel %d2,5dea0 } return RTEMS_SUCCESSFUL; } 42838: 242e fffc movel %fp@(-4),%d2 4283c: 4280 clrl %d0 4283e: 4e5e unlk %fp ... 000427d6 : rtems_device_driver null_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp ) { 427d6: 4e56 0000 linkw %fp,#0 427da: 206e 0010 moveal %fp@(16),%a0 rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 427de: 4a88 tstl %a0 427e0: 6706 beqs 427e8 rw_args->bytes_moved = rw_args->count; 427e2: 2168 0010 0018 movel %a0@(16),%a0@(24) <== NOT EXECUTED return NULL_SUCCESSFUL; } 427e8: 4280 clrl %d0 427ea: 4e5e unlk %fp <== NOT EXECUTED 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 9314 jsr 49314 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 de54 movel #319060,%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 ca88 lea 4ca88 <__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 93b4 jsr 493b4 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 d2a8 jsr 4d2a8 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 ca88 jsr 4ca88 <__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 cba8 subl 5cba8 ,%d0 42c72: ec80 asrl #6,%d0 42c74: 42a7 clrl %sp@- 42c76: 2f00 movel %d0,%sp@- 42c78: 4eb9 0004 9008 jsr 49008 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 ca88 lea 4ca88 <__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 cba8 subl 5cba8 ,%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 8eec jsr 48eec <== 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 92b6 jsr 492b6 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 ca88 jsr 4ca88 <__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 cba8 subl 5cba8 ,%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 9ecc pea 59ecc 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 9ecc pea 59ecc 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 9ecc pea 59ecc 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 ... 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 43488: b681 cmpl %d1,%d3 4348a: 6600 00b0 bnew 4353c 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 a3e0 pea 5a3e0 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 a3e2 pea 5a3e2 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 b67c moveal 5b67c <__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 b67c moveal 5b67c <__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 <== NOT EXECUTED 0004c1e4 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4c1e4: 4e56 ffd0 linkw %fp,#-48 4c1e8: 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) 4c1ec: 4878 0001 pea 1 4c1f0: 240e movel %fp,%d2 4c1f2: 0682 ffff ffdc addil #-36,%d2 4c1f8: 2f02 movel %d2,%sp@- 4c1fa: 4878 0007 pea 7 4c1fe: 4878 0003 pea 3 4c202: 4879 0005 aa90 pea 5aa90 <__FUNCTION__.5853+0x11> * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4c208: 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) 4c20c: 4eb9 0004 223e jsr 4223e 4c212: 4fef 0014 lea %sp@(20),%sp 4c216: 4a80 tstl %d0 4c218: 672a beqs 4c244 != 0) { if (errno != ENOENT) 4c21a: 4eb9 0004 ca88 jsr 4ca88 <__errno> 4c220: 7202 moveq #2,%d1 4c222: 2040 moveal %d0,%a0 4c224: b290 cmpl %a0@,%d1 4c226: 6600 010e bnew 4c336 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 4c22a: 4878 03ff pea 3ff 4c22e: 4879 0005 aa90 pea 5aa90 <__FUNCTION__.5853+0x11> 4c234: 4eb9 0004 244c jsr 4244c 4c23a: 508f addql #8,%sp 4c23c: 4a80 tstl %d0 4c23e: 671a beqs 4c25a 4c240: 6000 00f4 braw 4c336 <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); 4c244: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED 4c248: 4a88 tstl %a0 <== NOT EXECUTED 4c24a: 670e beqs 4c25a <== NOT EXECUTED 4c24c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c250: 4a88 tstl %a0 <== NOT EXECUTED 4c252: 6706 beqs 4c25a <== NOT EXECUTED 4c254: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c256: 4e90 jsr %a0@ <== NOT EXECUTED 4c258: 588f addql #4,%sp <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4c25a: 4878 000a pea a 4c25e: 240e movel %fp,%d2 4c260: 4879 0005 aa95 pea 5aa95 <__FUNCTION__.5853+0x16> 4c266: 0682 ffff fff1 addil #-15,%d2 4c26c: 2f02 movel %d2,%sp@- 4c26e: 4eb9 0004 d2a8 jsr 4d2a8 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4c274: 3039 0005 c4bc movew 5c4bc ,%d0 4c27a: 2200 movel %d0,%d1 4c27c: 5281 addql #1,%d1 4c27e: 3f00 movew %d0,%sp@- 4c280: 33c1 0005 c4bc movew %d1,5c4bc 4c286: 4267 clrw %sp@- 4c288: 4879 0005 aaa0 pea 5aaa0 <__FUNCTION__.5853+0x21> 4c28e: 486e fffb pea %fp@(-5) 4c292: 4eb9 0004 d780 jsr 4d780 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 4c298: 4878 0180 pea 180 4c29c: 2f02 movel %d2,%sp@- 4c29e: 4eb9 0004 c398 jsr 4c398 4c2a4: 4fef 0020 lea %sp@(32),%sp 4c2a8: 4a80 tstl %d0 4c2aa: 670a beqs 4c2b6 if (errno != EEXIST){ 4c2ac: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4c2b2: 6000 0082 braw 4c336 <== 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); 4c2b6: 4878 4000 pea 4000 4c2ba: 2f02 movel %d2,%sp@- 4c2bc: 4eb9 0004 2b10 jsr 42b10 if (filsdes[0] < 0) { 4c2c2: 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); 4c2c4: 2480 movel %d0,%a2@ if (filsdes[0] < 0) { 4c2c6: 6c0e bges 4c2d6 err = errno; 4c2c8: 4eb9 0004 ca88 jsr 4ca88 <__errno> 4c2ce: 2040 moveal %d0,%a0 4c2d0: 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); 4c2d2: 2f02 movel %d2,%sp@- 4c2d4: 604e bras 4c324 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 4c2d6: b0b9 0005 b4a4 cmpl 5b4a4 ,%d0 <== NOT EXECUTED 4c2dc: 6504 bcss 4c2e2 <== NOT EXECUTED 4c2de: 91c8 subal %a0,%a0 <== NOT EXECUTED 4c2e0: 600a bras 4c2ec <== NOT EXECUTED 4c2e2: 2079 0005 cba8 moveal 5cba8 ,%a0 <== NOT EXECUTED 4c2e8: ed88 lsll #6,%d0 <== NOT EXECUTED 4c2ea: d1c0 addal %d0,%a0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 4c2ec: 70fe moveq #-2,%d0 <== NOT EXECUTED 4c2ee: c1a8 0014 andl %d0,%a0@(20) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4c2f2: 4878 0001 pea 1 <== NOT EXECUTED 4c2f6: 486e fff1 pea %fp@(-15) <== NOT EXECUTED 4c2fa: 4eb9 0004 2b10 jsr 42b10 <== NOT EXECUTED if (filsdes[1] < 0) { 4c300: 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); 4c302: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED if (filsdes[1] < 0) { 4c306: 6d04 blts 4c30c <== NOT EXECUTED 4c308: 4283 clrl %d3 <== NOT EXECUTED 4c30a: 6014 bras 4c320 <== NOT EXECUTED err = errno; 4c30c: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4c312: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c314: 2610 movel %a0@,%d3 <== NOT EXECUTED close(filsdes[0]); 4c316: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4c318: 4eb9 0004 8eec jsr 48eec <== NOT EXECUTED 4c31e: 588f addql #4,%sp <== NOT EXECUTED } unlink(fifopath); 4c320: 486e fff1 pea %fp@(-15) <== NOT EXECUTED 4c324: 4eb9 0004 c3b8 jsr 4c3b8 4c32a: 588f addql #4,%sp } rtems_set_errno_and_return_minus_one(err); 4c32c: 4eb9 0004 ca88 jsr 4ca88 <__errno> 4c332: 2040 moveal %d0,%a0 4c334: 2083 movel %d3,%a0@ } 4c336: 70ff moveq #-1,%d0 4c338: 4cee 040c ffd0 moveml %fp@(-48),%d2-%d3/%a2 4c33e: 4e5e unlk %fp ... 0004afdc : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 4afdc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4afe0: 2f0b movel %a3,%sp@- <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 4afe2: 47f9 0004 bb68 lea 4bb68 ,%a3 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 4afe8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4afea: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 4afee: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4aff2: 4e93 jsr %a3@ <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 4aff4: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4aff8: 4e93 jsr %a3@ <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 4affa: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4affe: 4eb9 0004 4e94 jsr 44e94 <== NOT EXECUTED free(pipe->Buffer); 4b004: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4b006: 4eb9 0004 8f80 jsr 48f80 <== NOT EXECUTED free(pipe); } 4b00c: 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); 4b010: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b014: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4b018: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b01c: 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); 4b01e: 4ef9 0004 8f80 jmp 48f80 <== NOT EXECUTED 0004ac86 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4ac86: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (cmd == FIONREAD) { 4ac8a: 203c 4004 667f movel #1074030207,%d0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4ac90: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4ac92: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED 4ac96: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ac98: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if (cmd == FIONREAD) { 4ac9c: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 4aca0: 6704 beqs 4aca6 <== NOT EXECUTED 4aca2: 70ea moveq #-22,%d0 <== NOT EXECUTED 4aca4: 6034 bras 4acda <== NOT EXECUTED if (buffer == NULL) 4aca6: 4a8b tstl %a3 <== NOT EXECUTED 4aca8: 6604 bnes 4acae <== NOT EXECUTED 4acaa: 70f2 moveq #-14,%d0 <== NOT EXECUTED 4acac: 602c bras 4acda <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 4acae: 42a7 clrl %sp@- <== NOT EXECUTED 4acb0: 42a7 clrl %sp@- <== NOT EXECUTED 4acb2: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4acb6: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4acbc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4acc0: 4a80 tstl %d0 <== NOT EXECUTED 4acc2: 6704 beqs 4acc8 <== NOT EXECUTED 4acc4: 70fc moveq #-4,%d0 <== NOT EXECUTED 4acc6: 6012 bras 4acda <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; PIPE_UNLOCK(pipe); 4acc8: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4accc: 26aa 000c movel %a2@(12),%a3@ <== NOT EXECUTED PIPE_UNLOCK(pipe); 4acd0: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED return 0; 4acd6: 588f addql #4,%sp <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; PIPE_UNLOCK(pipe); 4acd8: 4280 clrl %d0 <== NOT EXECUTED return 0; } return -EINVAL; } 4acda: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4acde: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4ace2: 4e5e unlk %fp <== NOT EXECUTED 0004ac2c : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 4ac2c: 70e3 moveq #-29,%d0 <== NOT EXECUTED pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) { 4ac2e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* Seek on pipe is not supported */ return -ESPIPE; } 4ac32: 4e5e unlk %fp <== NOT EXECUTED 0004ace6 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4ace6: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 4acea: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4acee: 42a7 clrl %sp@- <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4acf0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4acf4: 47f9 0004 4f30 lea 44f30 ,%a3 <== NOT EXECUTED 4acfa: 42a7 clrl %sp@- <== NOT EXECUTED 4acfc: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4ad00: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED 4ad04: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED 4ad08: 2e2e 0014 movel %fp@(20),%d7 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4ad0c: 4e93 jsr %a3@ <== NOT EXECUTED 4ad0e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ad12: 4a80 tstl %d0 <== NOT EXECUTED 4ad14: 6706 beqs 4ad1c <== NOT EXECUTED 4ad16: 74fc moveq #-4,%d2 <== NOT EXECUTED 4ad18: 6000 0128 braw 4ae42 <== NOT EXECUTED 4ad1c: 4282 clrl %d2 <== NOT EXECUTED goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); 4ad1e: 2c3c 0004 5034 movel #282676,%d6 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4ad24: 4bf9 0004 bc38 lea 4bc38 ,%a5 <== NOT EXECUTED 4ad2a: 6000 00fc braw 4ae28 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) 4ad2e: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4ad32: 6700 00fa beqw 4ae2e <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 4ad36: 7001 moveq #1,%d0 <== NOT EXECUTED 4ad38: 2047 moveal %d7,%a0 <== NOT EXECUTED 4ad3a: c0a8 0014 andl %a0@(20),%d0 <== NOT EXECUTED 4ad3e: 6706 beqs 4ad46 <== NOT EXECUTED 4ad40: 78f5 moveq #-11,%d4 <== NOT EXECUTED 4ad42: 6000 00ec braw 4ae30 <== NOT EXECUTED goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); 4ad46: 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 ++; 4ad4a: 52aa 0018 addql #1,%a2@(24) <== NOT EXECUTED PIPE_UNLOCK(pipe); 4ad4e: 2246 moveal %d6,%a1 <== NOT EXECUTED 4ad50: 4e91 jsr %a1@ <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4ad52: 42a7 clrl %sp@- <== NOT EXECUTED 4ad54: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4ad58: 4e95 jsr %a5@ <== NOT EXECUTED 4ad5a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ad5e: 4a80 tstl %d0 <== NOT EXECUTED 4ad60: 6602 bnes 4ad64 <== NOT EXECUTED 4ad62: 4284 clrl %d4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4ad64: 42a7 clrl %sp@- <== NOT EXECUTED 4ad66: 42a7 clrl %sp@- <== NOT EXECUTED 4ad68: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4ad6c: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4ad72: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ad76: 4a80 tstl %d0 <== NOT EXECUTED 4ad78: 6706 beqs 4ad80 <== NOT EXECUTED 4ad7a: 78fc moveq #-4,%d4 <== NOT EXECUTED 4ad7c: 6000 00be braw 4ae3c <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 4ad80: 53aa 0018 subql #1,%a2@(24) <== NOT EXECUTED if (ret != 0) 4ad84: 4a84 tstl %d4 <== NOT EXECUTED 4ad86: 6600 00a8 bnew 4ae30 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4ad8a: 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)) 4ad8e: 78fc moveq #-4,%d4 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4ad90: 4a83 tstl %d3 <== NOT EXECUTED 4ad92: 679a beqs 4ad2e <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 4ad94: 2005 movel %d5,%d0 <== NOT EXECUTED 4ad96: 9082 subl %d2,%d0 <== NOT EXECUTED 4ad98: b083 cmpl %d3,%d0 <== NOT EXECUTED 4ad9a: 6402 bccs 4ad9e <== NOT EXECUTED 4ad9c: 2600 movel %d0,%d3 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 4ad9e: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED 4ada2: 200c movel %a4,%d0 <== NOT EXECUTED 4ada4: d082 addl %d2,%d0 <== NOT EXECUTED 4ada6: 47f9 0004 d2a8 lea 4d2a8 ,%a3 <== NOT EXECUTED 4adac: 2212 movel %a2@,%d1 <== NOT EXECUTED 4adae: d288 addl %a0,%d1 <== NOT EXECUTED 4adb0: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED 4adb4: 93c8 subal %a0,%a1 <== NOT EXECUTED if (chunk > chunk1) { 4adb6: b3c3 cmpal %d3,%a1 <== NOT EXECUTED 4adb8: 6c28 bges 4ade2 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 4adba: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4adbc: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4adbe: 2d49 fff8 movel %a1,%fp@(-8) <== NOT EXECUTED 4adc2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4adc4: 4e93 jsr %a3@ <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 4adc6: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4adca: 2203 movel %d3,%d1 <== NOT EXECUTED 4adcc: 9288 subl %a0,%d1 <== NOT EXECUTED 4adce: 2002 movel %d2,%d0 <== NOT EXECUTED 4add0: d088 addl %a0,%d0 <== NOT EXECUTED 4add2: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4add4: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4add6: 4874 0800 pea %a4@(00000000,%d0:l) <== NOT EXECUTED 4adda: 4e93 jsr %a3@ <== NOT EXECUTED 4addc: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4ade0: 600c bras 4adee <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 4ade2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ade4: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4ade6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ade8: 4e93 jsr %a3@ <== NOT EXECUTED 4adea: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED pipe->Start += chunk; 4adee: 2203 movel %d3,%d1 <== NOT EXECUTED 4adf0: d2aa 0008 addl %a2@(8),%d1 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; 4adf4: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 4adf8: 9083 subl %d3,%d0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 4adfa: 4c6a 1004 0004 remul %a2@(4),%d4,%d1 <== NOT EXECUTED pipe->Length -= chunk; 4ae00: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 4ae04: 2544 0008 movel %d4,%a2@(8) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 4ae08: 4a80 tstl %d0 <== NOT EXECUTED 4ae0a: 6604 bnes 4ae10 <== NOT EXECUTED pipe->Start = 0; 4ae0c: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED if (pipe->waitingWriters > 0) 4ae10: 4aaa 001c tstl %a2@(28) <== NOT EXECUTED 4ae14: 6710 beqs 4ae26 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4ae16: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4ae1a: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4ae1e: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4ae24: 508f addql #8,%sp <== NOT EXECUTED read += chunk; 4ae26: d483 addl %d3,%d2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 4ae28: ba82 cmpl %d2,%d5 <== NOT EXECUTED 4ae2a: 6200 ff5e bhiw 4ad8a <== NOT EXECUTED 4ae2e: 4284 clrl %d4 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4ae30: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4ae34: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED 4ae3a: 588f addql #4,%sp <== NOT EXECUTED out_nolock: if (read > 0) 4ae3c: 4a82 tstl %d2 <== NOT EXECUTED 4ae3e: 6e02 bgts 4ae42 <== NOT EXECUTED 4ae40: 2404 movel %d4,%d2 <== NOT EXECUTED return read; return ret; } 4ae42: 2002 movel %d2,%d0 <== NOT EXECUTED 4ae44: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4ae4a: 4e5e unlk %fp <== NOT EXECUTED 0004b024 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 4b024: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4b028: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 4b02c: 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, 4b030: 42a7 clrl %sp@- <== NOT EXECUTED int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { pipe_control_t *pipe = *pipep; 4b032: 2453 moveal %a3@,%a2 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4b034: 42a7 clrl %sp@- <== NOT EXECUTED 4b036: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b03a: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 4b040: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b044: 4a80 tstl %d0 <== NOT EXECUTED 4b046: 6634 bnes 4b07c <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 4b048: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4b04c: 7406 moveq #6,%d2 <== NOT EXECUTED 4b04e: c4a8 0014 andl %a0@(20),%d2 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 4b052: 0802 0001 btst #1,%d2 <== NOT EXECUTED 4b056: 6704 beqs 4b05c <== NOT EXECUTED pipe->Readers --; 4b058: 53aa 0010 subql #1,%a2@(16) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 4b05c: 44c2 movew %d2,%ccr <== NOT EXECUTED 4b05e: 6604 bnes 4b064 <== NOT EXECUTED pipe->Writers --; 4b060: 53aa 0014 subql #1,%a2@(20) <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 4b064: 42a7 clrl %sp@- <== NOT EXECUTED 4b066: 42a7 clrl %sp@- <== NOT EXECUTED 4b068: 2f39 0005 c4b4 movel 5c4b4 ,%sp@- <== NOT EXECUTED 4b06e: 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) 4b074: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b078: 4a80 tstl %d0 <== NOT EXECUTED 4b07a: 6708 beqs 4b084 <== NOT EXECUTED rtems_fatal_error_occurred(sc); 4b07c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b07e: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED PIPE_UNLOCK(pipe); 4b084: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4b088: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 4b08e: 588f addql #4,%sp <== NOT EXECUTED 4b090: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4b094: 6622 bnes 4b0b8 <== NOT EXECUTED 4b096: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4b09a: 660c bnes 4b0a8 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); 4b09c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b09e: 4eba ff3c jsr %pc@(4afdc ) <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 4b0a2: 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; 4b0a4: 4293 clrl %a3@ <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 4b0a6: 602c bras 4b0d4 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 4b0a8: 7004 moveq #4,%d0 <== NOT EXECUTED 4b0aa: b082 cmpl %d2,%d0 <== NOT EXECUTED 4b0ac: 670a beqs 4b0b8 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 4b0ae: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b0b2: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4b0b6: 6014 bras 4b0cc <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 4b0b8: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4b0bc: 6616 bnes 4b0d4 <== NOT EXECUTED 4b0be: 7002 moveq #2,%d0 <== NOT EXECUTED 4b0c0: b082 cmpl %d2,%d0 <== NOT EXECUTED 4b0c2: 6710 beqs 4b0d4 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4b0c4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b0c8: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4b0cc: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4b0d2: 508f addql #8,%sp <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 4b0d4: 2f39 0005 c4b4 movel 5c4b4 ,%sp@- <== NOT EXECUTED 4b0da: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4b0e0: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 4b0e6: 4280 clrl %d0 <== NOT EXECUTED 4b0e8: 4e5e unlk %fp <== NOT EXECUTED 0004ae4e : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 4ae4e: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 4ae52: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4ae56: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4ae5a: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 4ae5e: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 4ae62: 6606 bnes 4ae6a <== NOT EXECUTED 4ae64: 4282 clrl %d2 <== NOT EXECUTED 4ae66: 6000 0168 braw 4afd0 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 4ae6a: 42a7 clrl %sp@- <== NOT EXECUTED 4ae6c: 42a7 clrl %sp@- <== NOT EXECUTED 4ae6e: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4ae72: 4eb9 0004 4f30 jsr 44f30 <== NOT EXECUTED 4ae78: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ae7c: 4a80 tstl %d0 <== NOT EXECUTED 4ae7e: 6706 beqs 4ae86 <== NOT EXECUTED 4ae80: 74fc moveq #-4,%d2 <== NOT EXECUTED 4ae82: 6000 014c braw 4afd0 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 4ae86: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4ae8a: 6608 bnes 4ae94 <== NOT EXECUTED 4ae8c: 76e0 moveq #-32,%d3 <== NOT EXECUTED 4ae8e: 4282 clrl %d2 <== NOT EXECUTED 4ae90: 6000 0112 braw 4afa4 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 4ae94: b8aa 0004 cmpl %a2@(4),%d4 <== NOT EXECUTED 4ae98: 6304 blss 4ae9e <== NOT EXECUTED 4ae9a: 7c01 moveq #1,%d6 <== NOT EXECUTED 4ae9c: 6002 bras 4aea0 <== NOT EXECUTED 4ae9e: 2c04 movel %d4,%d6 <== NOT EXECUTED 4aea0: 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)) 4aea2: 4bf9 0004 bc38 lea 4bc38 ,%a5 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4aea8: 49f9 0004 4f30 lea 44f30 ,%a4 <== NOT EXECUTED 4aeae: 6000 00ec braw 4af9c <== 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)) { 4aeb2: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 4aeb6: 7001 moveq #1,%d0 <== NOT EXECUTED 4aeb8: c0a8 0014 andl %a0@(20),%d0 <== NOT EXECUTED 4aebc: 6706 beqs 4aec4 <== NOT EXECUTED 4aebe: 76f5 moveq #-11,%d3 <== NOT EXECUTED 4aec0: 6000 00e2 braw 4afa4 <== NOT EXECUTED goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); 4aec4: 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 ++; 4aec8: 52aa 001c addql #1,%a2@(28) <== NOT EXECUTED PIPE_UNLOCK(pipe); 4aecc: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4aed2: 42a7 clrl %sp@- <== NOT EXECUTED 4aed4: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4aed8: 4e95 jsr %a5@ <== NOT EXECUTED 4aeda: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4aede: 4a80 tstl %d0 <== NOT EXECUTED 4aee0: 6602 bnes 4aee4 <== NOT EXECUTED 4aee2: 4283 clrl %d3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4aee4: 42a7 clrl %sp@- <== NOT EXECUTED 4aee6: 42a7 clrl %sp@- <== NOT EXECUTED 4aee8: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4aeec: 4e94 jsr %a4@ <== NOT EXECUTED 4aeee: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4aef2: 4a80 tstl %d0 <== NOT EXECUTED 4aef4: 6706 beqs 4aefc <== NOT EXECUTED 4aef6: 76fc moveq #-4,%d3 <== NOT EXECUTED 4aef8: 6000 00d0 braw 4afca <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 4aefc: 53aa 001c subql #1,%a2@(28) <== NOT EXECUTED if (ret != 0) 4af00: 4a83 tstl %d3 <== NOT EXECUTED 4af02: 6600 00a0 bnew 4afa4 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 4af06: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4af0a: 6606 bnes 4af12 <== NOT EXECUTED 4af0c: 76e0 moveq #-32,%d3 <== NOT EXECUTED 4af0e: 6000 0094 braw 4afa4 <== 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) { 4af12: 2a2a 0004 movel %a2@(4),%d5 <== NOT EXECUTED 4af16: 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)) 4af18: 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) { 4af1a: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED 4af1e: 9088 subl %a0,%d0 <== NOT EXECUTED 4af20: bc80 cmpl %d0,%d6 <== NOT EXECUTED 4af22: 628e bhis 4aeb2 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 4af24: 2600 movel %d0,%d3 <== NOT EXECUTED 4af26: 2004 movel %d4,%d0 <== NOT EXECUTED 4af28: 9082 subl %d2,%d0 <== NOT EXECUTED 4af2a: b083 cmpl %d3,%d0 <== NOT EXECUTED 4af2c: 6402 bccs 4af30 <== NOT EXECUTED 4af2e: 2600 movel %d0,%d3 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 4af30: d1ea 0008 addal %a2@(8),%a0 <== NOT EXECUTED 4af34: 220b movel %a3,%d1 <== NOT EXECUTED 4af36: 2e08 movel %a0,%d7 <== NOT EXECUTED 4af38: 2c3c 0004 d2a8 movel #316072,%d6 <== NOT EXECUTED 4af3e: d282 addl %d2,%d1 <== NOT EXECUTED 4af40: 4c45 7000 remul %d5,%d0,%d7 <== NOT EXECUTED 4af44: 9a80 subl %d0,%d5 <== NOT EXECUTED 4af46: d092 addl %a2@,%d0 <== NOT EXECUTED if (chunk > chunk1) { 4af48: ba83 cmpl %d3,%d5 <== NOT EXECUTED 4af4a: 6c24 bges 4af70 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 4af4c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4af4e: 2046 moveal %d6,%a0 <== NOT EXECUTED 4af50: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4af52: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4af54: 4e90 jsr %a0@ <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 4af56: 2203 movel %d3,%d1 <== NOT EXECUTED 4af58: 9285 subl %d5,%d1 <== NOT EXECUTED 4af5a: 2005 movel %d5,%d0 <== NOT EXECUTED 4af5c: d082 addl %d2,%d0 <== NOT EXECUTED 4af5e: 2046 moveal %d6,%a0 <== NOT EXECUTED 4af60: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4af62: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 4af66: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4af68: 4e90 jsr %a0@ <== NOT EXECUTED 4af6a: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4af6e: 600e bras 4af7e <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4af70: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4af72: 2046 moveal %d6,%a0 <== NOT EXECUTED 4af74: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4af76: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4af78: 4e90 jsr %a0@ <== NOT EXECUTED 4af7a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED pipe->Length += chunk; 4af7e: d7aa 000c addl %d3,%a2@(12) <== NOT EXECUTED if (pipe->waitingReaders > 0) 4af82: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 4af86: 6710 beqs 4af98 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4af88: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4af8c: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4af90: 4eb9 0004 bbd4 jsr 4bbd4 <== NOT EXECUTED 4af96: 508f addql #8,%sp <== NOT EXECUTED written += chunk; 4af98: d483 addl %d3,%d2 <== NOT EXECUTED 4af9a: 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) { 4af9c: b882 cmpl %d2,%d4 <== NOT EXECUTED 4af9e: 6200 ff72 bhiw 4af12 <== NOT EXECUTED 4afa2: 4283 clrl %d3 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4afa4: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4afa8: 4eb9 0004 5034 jsr 45034 <== NOT EXECUTED 4afae: 588f addql #4,%sp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4afb0: 70e0 moveq #-32,%d0 <== NOT EXECUTED 4afb2: b083 cmpl %d3,%d0 <== NOT EXECUTED 4afb4: 6614 bnes 4afca <== NOT EXECUTED kill(getpid(), SIGPIPE); 4afb6: 4eb9 0004 b788 jsr 4b788 <== NOT EXECUTED 4afbc: 4878 000d pea d <== NOT EXECUTED 4afc0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4afc2: 4eb9 0004 b888 jsr 4b888 <== NOT EXECUTED 4afc8: 508f addql #8,%sp <== NOT EXECUTED #endif if (written > 0) 4afca: 4a82 tstl %d2 <== NOT EXECUTED 4afcc: 6e02 bgts 4afd0 <== NOT EXECUTED 4afce: 2403 movel %d3,%d2 <== NOT EXECUTED return written; return ret; } 4afd0: 2002 movel %d2,%d0 <== NOT EXECUTED 4afd2: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4afd8: 4e5e unlk %fp <== NOT EXECUTED 0004ba98 : } void pthread_exit( void *value_ptr ) { 4ba98: 4e56 0000 linkw %fp,#0 _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); 4ba9c: 2f2e 0008 movel %fp@(8),%sp@- 4baa0: 2f39 0005 cdc2 movel 5cdc2 <_Thread_Executing>,%sp@- 4baa6: 4eb9 0004 ba28 jsr 4ba28 <_POSIX_Thread_Exit> 4baac: 508f addql #8,%sp <== NOT EXECUTED } 4baae: 4e5e unlk %fp <== NOT EXECUTED ... 00045420 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 45420: 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() ) 45424: 2039 0005 dcde movel 5dcde <_ISR_Nest_level>,%d0 * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 4542a: 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() ) 4542c: 4a80 tstl %d0 4542e: 6646 bnes 45476 return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 45430: 2079 0005 dcfe moveal 5dcfe <_Thread_Executing>,%a0 45436: 2039 0005 dc44 movel 5dc44 <_Thread_Dispatch_disable_level>,%d0 4543c: 5280 addql #1,%d0 4543e: 2068 010e moveal %a0@(270),%a0 45442: 23c0 0005 dc44 movel %d0,5dc44 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 45448: 4aa8 00d4 tstl %a0@(212) 4544c: 6704 beqs 45452 4544e: 4202 clrb %d2 <== NOT EXECUTED 45450: 6008 bras 4545a <== 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)); 45452: 4aa8 00dc tstl %a0@(220) 45456: 56c2 sne %d2 45458: 4482 negl %d2 thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); 4545a: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch> if ( cancel ) 45460: 4a02 tstb %d2 45462: 6712 beqs 45476 _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); 45464: 4878 ffff pea ffffffff 45468: 2f39 0005 dcfe movel 5dcfe <_Thread_Executing>,%sp@- 4546e: 4eb9 0004 a5fc jsr 4a5fc <_POSIX_Thread_Exit> 45474: 508f addql #8,%sp <== NOT EXECUTED } 45476: 242e fffc movel %fp@(-4),%d2 4547a: 4e5e unlk %fp ... 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 bbc0 moveal 5bbc0 ,%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 ... 0005948c : ssize_t read( int fd, void *buffer, size_t count ) { 5948c: 4e56 fff4 linkw %fp,#-12 59490: 202e 000c movel %fp@(12),%d0 59494: 48d7 040c moveml %d2-%d3/%a2,%sp@ 59498: 242e 0008 movel %fp@(8),%d2 5949c: 222e 0010 movel %fp@(16),%d1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 594a0: b4b9 0005 b4a4 cmpl 5b4a4 ,%d2 594a6: 6414 bccs 594bc iop = rtems_libio_iop( fd ); 594a8: 2479 0005 cba8 moveal 5cba8 ,%a2 594ae: ed8a lsll #6,%d2 594b0: d5c2 addal %d2,%a2 rtems_libio_check_is_open( iop ); 594b2: 242a 0014 movel %a2@(20),%d2 594b6: 0802 0008 btst #8,%d2 594ba: 6610 bnes 594cc 594bc: 4eb9 0004 ca88 jsr 4ca88 <__errno> 594c2: 7409 moveq #9,%d2 594c4: 72ff moveq #-1,%d1 594c6: 2040 moveal %d0,%a0 594c8: 2082 movel %d2,%a0@ 594ca: 6060 bras 5952c rtems_libio_check_buffer( buffer ); 594cc: 4a80 tstl %d0 594ce: 670a beqs 594da rtems_libio_check_count( count ); 594d0: 4a81 tstl %d1 594d2: 6758 beqs 5952c rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 594d4: 0802 0001 btst #1,%d2 594d8: 6610 bnes 594ea 594da: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 594e0: 72ff moveq #-1,%d1 <== NOT EXECUTED 594e2: 2040 moveal %d0,%a0 <== NOT EXECUTED 594e4: 7016 moveq #22,%d0 <== NOT EXECUTED 594e6: 2080 movel %d0,%a0@ <== NOT EXECUTED 594e8: 6042 bras 5952c <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 594ea: 206a 003c moveal %a2@(60),%a0 594ee: 2068 0008 moveal %a0@(8),%a0 594f2: 4a88 tstl %a0 594f4: 6612 bnes 59508 rtems_set_errno_and_return_minus_one( ENOTSUP ); 594f6: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 594fc: 72ff moveq #-1,%d1 <== NOT EXECUTED 594fe: 2040 moveal %d0,%a0 <== NOT EXECUTED 59500: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 59506: 6024 bras 5952c <== NOT EXECUTED rc = (*iop->handlers->read_h)( iop, buffer, count ); 59508: 2f01 movel %d1,%sp@- 5950a: 2f00 movel %d0,%sp@- 5950c: 2f0a movel %a2,%sp@- 5950e: 4e90 jsr %a0@ if ( rc > 0 ) 59510: 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 ); 59514: 2200 movel %d0,%d1 if ( rc > 0 ) 59516: 6f14 bles 5952c iop->offset += rc; 59518: 2600 movel %d0,%d3 5951a: 5bc2 smi %d2 5951c: 49c2 extbl %d2 5951e: d7aa 0010 addl %d3,%a2@(16) 59522: 202a 000c movel %a2@(12),%d0 59526: d182 addxl %d2,%d0 59528: 2540 000c movel %d0,%a2@(12) return rc; } 5952c: 2001 movel %d1,%d0 5952e: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 59534: 4e5e unlk %fp <== NOT EXECUTED 000617e4 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 617e4: 4e56 ffe0 linkw %fp,#-32 617e8: 48d7 001c moveml %d2-%d4,%sp@ 617ec: 282e 0008 movel %fp@(8),%d4 617f0: 262e 000c movel %fp@(12),%d3 rtems_filesystem_location_info_t loc; int result; if (!buf) 617f4: 6612 bnes 61808 rtems_set_errno_and_return_minus_one( EFAULT ); 617f6: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 617fc: 76ff moveq #-1,%d3 <== NOT EXECUTED 617fe: 720e moveq #14,%d1 <== NOT EXECUTED 61800: 2040 moveal %d0,%a0 <== NOT EXECUTED 61802: 2081 movel %d1,%a0@ <== NOT EXECUTED 61804: 6000 00c2 braw 618c8 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 61808: 2f04 movel %d4,%sp@- 6180a: 240e movel %fp,%d2 6180c: 0682 ffff ffec addil #-20,%d2 61812: 4eb9 0007 c0d8 jsr 7c0d8 61818: 4297 clrl %sp@ 6181a: 2f02 movel %d2,%sp@- 6181c: 42a7 clrl %sp@- 6181e: 2f00 movel %d0,%sp@- 61820: 2f04 movel %d4,%sp@- 61822: 4eb9 0004 578a jsr 4578a 0, &loc, false ); if ( result != 0 ) 61828: 4fef 0014 lea %sp@(20),%sp 6182c: 4a80 tstl %d0 6182e: 6706 beqs 61836 61830: 76ff moveq #-1,%d3 <== NOT EXECUTED 61832: 6000 0094 braw 618c8 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 61836: 226e fff8 moveal %fp@(-8),%a1 6183a: 2069 0010 moveal %a1@(16),%a0 6183e: 4a88 tstl %a0 61840: 6606 bnes 61848 rtems_filesystem_freenode( &loc ); 61842: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61846: 603e bras 61886 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 61848: 2f02 movel %d2,%sp@- 6184a: 4e90 jsr %a0@ 6184c: 206e fff8 moveal %fp@(-8),%a0 61850: 588f addql #4,%sp 61852: 7204 moveq #4,%d1 61854: b280 cmpl %d0,%d1 61856: 6722 beqs 6187a rtems_filesystem_freenode( &loc ); 61858: 4a88 tstl %a0 6185a: 670e beqs 6186a 6185c: 2068 001c moveal %a0@(28),%a0 61860: 4a88 tstl %a0 61862: 6706 beqs 6186a 61864: 2f02 movel %d2,%sp@- 61866: 4e90 jsr %a0@ 61868: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EINVAL ); 6186a: 4eb9 0007 6030 jsr 76030 <__errno> 61870: 76ff moveq #-1,%d3 61872: 2040 moveal %d0,%a0 61874: 7016 moveq #22,%d0 61876: 2080 movel %d0,%a0@ 61878: 604e bras 618c8 } if ( !loc.ops->readlink_h ){ 6187a: 2268 003c moveal %a0@(60),%a1 6187e: 4a89 tstl %a1 61880: 6620 bnes 618a2 rtems_filesystem_freenode( &loc ); 61882: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61886: 4a88 tstl %a0 <== NOT EXECUTED 61888: 6706 beqs 61890 <== NOT EXECUTED 6188a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6188c: 4e90 jsr %a0@ <== NOT EXECUTED 6188e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61890: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61896: 76ff moveq #-1,%d3 <== NOT EXECUTED 61898: 2040 moveal %d0,%a0 <== NOT EXECUTED 6189a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 618a0: 6026 bras 618c8 <== NOT EXECUTED } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 618a2: 2f2e 0010 movel %fp@(16),%sp@- 618a6: 2f03 movel %d3,%sp@- 618a8: 2f02 movel %d2,%sp@- 618aa: 4e91 jsr %a1@ rtems_filesystem_freenode( &loc ); 618ac: 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 ); 618b0: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 618b2: 4fef 000c lea %sp@(12),%sp 618b6: 4a88 tstl %a0 618b8: 670e beqs 618c8 618ba: 2068 001c moveal %a0@(28),%a0 618be: 4a88 tstl %a0 618c0: 6706 beqs 618c8 618c2: 2f02 movel %d2,%sp@- 618c4: 4e90 jsr %a0@ 618c6: 588f addql #4,%sp return result; } 618c8: 2003 movel %d3,%d0 618ca: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 618d0: 4e5e unlk %fp <== NOT EXECUTED 00044060 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 44060: 4e56 ffe4 linkw %fp,#-28 44064: 202e 0008 movel %fp@(8),%d0 44068: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 4406c: 266e 000c moveal %fp@(12),%a3 44070: 262e 0010 movel %fp@(16),%d3 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 44074: b0b9 0005 ecd4 cmpl 5ecd4 ,%d0 4407a: 6414 bccs 44090 iop = rtems_libio_iop( fd ); 4407c: 2479 0006 0bac moveal 60bac ,%a2 44082: ed88 lsll #6,%d0 44084: d5c0 addal %d0,%a2 rtems_libio_check_is_open( iop ); 44086: 202a 0014 movel %a2@(20),%d0 4408a: 0800 0008 btst #8,%d0 4408e: 6612 bnes 440a2 44090: 4eb9 0004 eb44 jsr 4eb44 <__errno> <== NOT EXECUTED 44096: 74ff moveq #-1,%d2 <== NOT EXECUTED 44098: 7209 moveq #9,%d1 <== NOT EXECUTED 4409a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4409c: 2081 movel %d1,%a0@ <== NOT EXECUTED 4409e: 6000 00c2 braw 44162 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 440a2: 0800 0001 btst #1,%d0 440a6: 674a beqs 440f2 /* * Argument validation on IO vector */ if ( !iov ) 440a8: 4a8b tstl %a3 440aa: 6746 beqs 440f2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 440ac: 4a83 tstl %d3 440ae: 6f42 bles 440f2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 440b0: 0c83 0000 0400 cmpil #1024,%d3 440b6: 6e3a bgts 440f2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 440b8: 206a 003c moveal %a2@(60),%a0 440bc: 4aa8 0008 tstl %a0@(8) 440c0: 6614 bnes 440d6 rtems_set_errno_and_return_minus_one( ENOTSUP ); 440c2: 4eb9 0004 eb44 jsr 4eb44 <__errno> <== NOT EXECUTED 440c8: 74ff moveq #-1,%d2 <== NOT EXECUTED 440ca: 2040 moveal %d0,%a0 <== NOT EXECUTED 440cc: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 440d2: 6000 008e braw 44162 <== NOT EXECUTED 440d6: 204b moveal %a3,%a0 440d8: 4281 clrl %d1 440da: 4280 clrl %d0 440dc: 7801 moveq #1,%d4 * 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++ ) { 440de: 5281 addql #1,%d1 ssize_t old; if ( !iov[v].iov_base ) 440e0: 4a90 tstl %a0@ 440e2: 670e beqs 440f2 if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 440e4: 2428 0004 movel %a0@(4),%d2 440e8: 2240 moveal %d0,%a1 440ea: 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++ ) { 440ec: 5088 addql #8,%a0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) 440ee: b089 cmpl %a1,%d0 440f0: 6f10 bles 44102 rtems_set_errno_and_return_minus_one( EINVAL ); 440f2: 4eb9 0004 eb44 jsr 4eb44 <__errno> 440f8: 74ff moveq #-1,%d2 440fa: 2040 moveal %d0,%a0 440fc: 7016 moveq #22,%d0 440fe: 2080 movel %d0,%a0@ 44100: 6060 bras 44162 if ( iov[v].iov_len ) 44102: 4a82 tstl %d2 44104: 57c2 seq %d2 * 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++ ) { 44106: 2009 movel %a1,%d0 old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 44108: c484 andl %d4,%d2 4410a: 1802 moveb %d2,%d4 * 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++ ) { 4410c: b681 cmpl %d1,%d3 4410e: 6ece bgts 440de /* * A readv with all zeros logically has no effect. Even though * OpenGroup didn't address this case as they did with writev(), * we will handle it the same way for symmetry. */ if ( all_zeros == true ) { 44110: 4a02 tstb %d2 44112: 6704 beqs 44118 44114: 4282 clrl %d2 44116: 604a bras 44162 44118: 588b addql #4,%a3 4411a: 4284 clrl %d4 4411c: 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 ); 4411e: 206a 003c moveal %a2@(60),%a0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 44122: 5284 addql #1,%d4 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 44124: 2f13 movel %a3@,%sp@- 44126: 2f2b fffc movel %a3@(-4),%sp@- 4412a: 2f0a movel %a2,%sp@- 4412c: 2068 0008 moveal %a0@(8),%a0 44130: 4e90 jsr %a0@ if ( bytes < 0 ) 44132: 4fef 000c lea %sp@(12),%sp 44136: 4a80 tstl %d0 44138: 6c04 bges 4413e 4413a: 74ff moveq #-1,%d2 <== NOT EXECUTED 4413c: 6024 bras 44162 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 4413e: 4a80 tstl %d0 44140: 6716 beqs 44158 iop->offset += bytes; total += bytes; 44142: d480 addl %d0,%d2 if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 44144: 2c00 movel %d0,%d6 44146: 5bc5 smi %d5 44148: 49c5 extbl %d5 4414a: ddaa 0010 addl %d6,%a2@(16) 4414e: 222a 000c movel %a2@(12),%d1 44152: d385 addxl %d5,%d1 44154: 2541 000c movel %d1,%a2@(12) total += bytes; } if (bytes != iov[ v ].iov_len) 44158: b093 cmpl %a3@,%d0 4415a: 6606 bnes 44162 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 4415c: 508b addql #8,%a3 4415e: b684 cmpl %d4,%d3 44160: 6ebc bgts 4411e if (bytes != iov[ v ].iov_len) break; } return total; } 44162: 2002 movel %d2,%d0 44164: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 4416a: 4e5e unlk %fp ... 000595b8 : /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 595b8: 7003 moveq #3,%d0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 595ba: 4e56 fff0 linkw %fp,#-16 595be: 52b9 0005 cbc4 addql #1,5cbc4 595c4: 48d7 001c moveml %d2-%d4,%sp@ 595c8: 242e 0008 movel %fp@(8),%d2 595cc: 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())) { 595d0: b0b9 0005 ce90 cmpl 5ce90 <_System_state_Current>,%d0 595d6: 6614 bnes 595ec if (_Thread_Dispatch_disable_level > 0) 595d8: 2039 0005 cd08 movel 5cd08 <_Thread_Dispatch_disable_level>,%d0 595de: 6600 00aa bnew 5968a return (void *) 0; if (_ISR_Nest_level > 0) 595e2: 2039 0005 cda2 movel 5cda2 <_ISR_Nest_level>,%d0 595e8: 6600 00a0 bnew 5968a } /* * Continue with realloc(). */ if ( !ptr ) 595ec: 4a82 tstl %d2 595ee: 660c bnes 595fc return malloc( size ); 595f0: 2f03 movel %d3,%sp@- 595f2: 4eb9 0004 9484 jsr 49484 595f8: 2400 movel %d0,%d2 595fa: 600e bras 5960a if ( !size ) { 595fc: 4a83 tstl %d3 595fe: 660e bnes 5960e free( ptr ); 59600: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59602: 4282 clrl %d2 <== NOT EXECUTED 59604: 4eb9 0004 8f80 jsr 48f80 <== NOT EXECUTED return (void *) 0; 5960a: 588f addql #4,%sp 5960c: 607e bras 5968c } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 5960e: 486e fffc pea %fp@(-4) 59612: 2f02 movel %d2,%sp@- 59614: 2f39 0005 b4b0 movel 5b4b0 ,%sp@- 5961a: 4eb9 0005 9744 jsr 59744 <_Protected_heap_Get_block_size> 59620: 4fef 000c lea %sp@(12),%sp 59624: 4a00 tstb %d0 59626: 6610 bnes 59638 errno = EINVAL; 59628: 4eb9 0004 ca88 jsr 4ca88 <__errno> 5962e: 4282 clrl %d2 59630: 2040 moveal %d0,%a0 59632: 7016 moveq #22,%d0 59634: 2080 movel %d0,%a0@ return (void *) 0; 59636: 6054 bras 5968c #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 ) ) { 59638: 2f03 movel %d3,%sp@- 5963a: 2f02 movel %d2,%sp@- 5963c: 2f39 0005 b4b0 movel 5b4b0 ,%sp@- 59642: 4eb9 0005 9780 jsr 59780 <_Protected_heap_Resize_block> 59648: 4fef 000c lea %sp@(12),%sp 5964c: 4a00 tstb %d0 5964e: 663c bnes 5968c * 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 ); 59650: 2f03 movel %d3,%sp@- 59652: 4eb9 0004 9484 jsr 49484 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ if ( !new_area ) { 59658: 588f addql #4,%sp * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 5965a: 53b9 0005 cbb8 subql #1,5cbb8 * 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 ); 59660: 2800 movel %d0,%d4 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ if ( !new_area ) { 59662: 6726 beqs 5968a return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 59664: 202e fffc movel %fp@(-4),%d0 59668: b083 cmpl %d3,%d0 5966a: 6402 bccs 5966e 5966c: 2600 movel %d0,%d3 5966e: 2f03 movel %d3,%sp@- 59670: 2f02 movel %d2,%sp@- 59672: 2f04 movel %d4,%sp@- 59674: 4eb9 0004 d2a8 jsr 4d2a8 free( ptr ); 5967a: 2f02 movel %d2,%sp@- 5967c: 2404 movel %d4,%d2 5967e: 4eb9 0004 8f80 jsr 48f80 return new_area; 59684: 4fef 0010 lea %sp@(16),%sp 59688: 6002 bras 5968c 5968a: 4282 clrl %d2 } 5968c: 2002 movel %d2,%d0 5968e: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 59694: 4e5e unlk %fp <== NOT EXECUTED 000618d4 : #include int rmdir( const char *pathname ) { 618d4: 4e56 ffc0 linkw %fp,#-64 618d8: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 618dc: 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 ); 618e0: 2f0a movel %a2,%sp@- 618e2: 4eb9 0004 5674 jsr 45674 if ( parentpathlen == 0 ) 618e8: 588f addql #4,%sp /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 618ea: 2a00 movel %d0,%d5 if ( parentpathlen == 0 ) 618ec: 664a bnes 61938 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 618ee: 742f moveq #47,%d2 618f0: 1012 moveb %a2@,%d0 618f2: 1200 moveb %d0,%d1 618f4: 49c1 extbl %d1 618f6: b481 cmpl %d1,%d2 618f8: 670c beqs 61906 618fa: 143c 005c moveb #92,%d2 <== NOT EXECUTED 618fe: b481 cmpl %d1,%d2 <== NOT EXECUTED 61900: 6704 beqs 61906 <== NOT EXECUTED 61902: 4a00 tstb %d0 <== NOT EXECUTED 61904: 6612 bnes 61918 <== NOT EXECUTED 61906: 4878 0014 pea 14 6190a: 2079 0009 71bc moveal 971bc ,%a0 61910: 41e8 0018 lea %a0@(24),%a0 61914: 2f08 movel %a0,%sp@- 61916: 600e bras 61926 61918: 4878 0014 pea 14 <== NOT EXECUTED 6191c: 2039 0009 71bc movel 971bc ,%d0 <== NOT EXECUTED 61922: 5880 addql #4,%d0 <== NOT EXECUTED 61924: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61926: 486e ffec pea %fp@(-20) 6192a: 4203 clrb %d3 6192c: 4eb9 0007 9068 jsr 79068 61932: 4fef 000c lea %sp@(12),%sp 61936: 6020 bras 61958 else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 61938: 42a7 clrl %sp@- 6193a: 486e ffec pea %fp@(-20) 6193e: 4878 0002 pea 2 61942: 2f00 movel %d0,%sp@- 61944: 2f0a movel %a2,%sp@- 61946: 4eb9 0004 578a jsr 4578a RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 6194c: 4fef 0014 lea %sp@(20),%sp 61950: 4a80 tstl %d0 61952: 6600 0168 bnew 61abc 61956: 7601 moveq #1,%d3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 61958: 4878 0014 pea 14 6195c: 280e movel %fp,%d4 6195e: 0684 ffff ffec addil #-20,%d4 61964: 240e movel %fp,%d2 61966: 0682 ffff ffd8 addil #-40,%d2 name = pathname + parentpathlen; 6196c: d5c5 addal %d5,%a2 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 6196e: 47f9 0007 c0d8 lea 7c0d8 ,%a3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 61974: 2f04 movel %d4,%sp@- 61976: 2f02 movel %d2,%sp@- 61978: 4eb9 0007 9068 jsr 79068 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 6197e: 2f0a movel %a2,%sp@- 61980: 4e93 jsr %a3@ 61982: 2e80 movel %d0,%sp@ 61984: 2f0a movel %a2,%sp@- 61986: 4eb9 0004 563c jsr 4563c 6198c: d5c0 addal %d0,%a2 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 6198e: 2f0a movel %a2,%sp@- 61990: 4e93 jsr %a3@ 61992: 4297 clrl %sp@ 61994: 2f02 movel %d2,%sp@- 61996: 42a7 clrl %sp@- 61998: 2f00 movel %d0,%sp@- 6199a: 2f0a movel %a2,%sp@- 6199c: 4eb9 0004 56ba jsr 456ba 0, &loc, false ); if ( result != 0 ) { 619a2: 4fef 0028 lea %sp@(40),%sp 619a6: 4a80 tstl %d0 619a8: 6722 beqs 619cc if ( free_parentloc ) 619aa: 4a03 tstb %d3 619ac: 6700 010e beqw 61abc rtems_filesystem_freenode( &parentloc ); 619b0: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 619b4: 4a88 tstl %a0 <== NOT EXECUTED 619b6: 6700 0104 beqw 61abc <== NOT EXECUTED 619ba: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 619be: 4a88 tstl %a0 <== NOT EXECUTED 619c0: 6700 00fa beqw 61abc <== NOT EXECUTED 619c4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 619c6: 78ff moveq #-1,%d4 <== NOT EXECUTED 619c8: 6000 00ec braw 61ab6 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 619cc: 226e ffe4 moveal %fp@(-28),%a1 619d0: 2069 0010 moveal %a1@(16),%a0 619d4: 4a88 tstl %a0 619d6: 6606 bnes 619de rtems_filesystem_freenode( &loc ); 619d8: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 619dc: 6068 bras 61a46 <== 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 ){ 619de: 2f02 movel %d2,%sp@- 619e0: 4e90 jsr %a0@ 619e2: 588f addql #4,%sp 619e4: 7201 moveq #1,%d1 619e6: b280 cmpl %d0,%d1 619e8: 6744 beqs 61a2e rtems_filesystem_freenode( &loc ); 619ea: 206e ffe4 moveal %fp@(-28),%a0 619ee: 4a88 tstl %a0 619f0: 670e beqs 61a00 619f2: 2068 001c moveal %a0@(28),%a0 619f6: 4a88 tstl %a0 619f8: 6706 beqs 61a00 619fa: 2f02 movel %d2,%sp@- 619fc: 4e90 jsr %a0@ 619fe: 588f addql #4,%sp if ( free_parentloc ) 61a00: 4a03 tstb %d3 61a02: 6718 beqs 61a1c rtems_filesystem_freenode( &parentloc ); 61a04: 206e fff8 moveal %fp@(-8),%a0 61a08: 4a88 tstl %a0 61a0a: 6710 beqs 61a1c 61a0c: 2068 001c moveal %a0@(28),%a0 61a10: 4a88 tstl %a0 61a12: 6708 beqs 61a1c 61a14: 486e ffec pea %fp@(-20) 61a18: 4e90 jsr %a0@ 61a1a: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); 61a1c: 4eb9 0007 6030 jsr 76030 <__errno> 61a22: 78ff moveq #-1,%d4 61a24: 2040 moveal %d0,%a0 61a26: 7014 moveq #20,%d0 61a28: 2080 movel %d0,%a0@ 61a2a: 6000 0092 braw 61abe /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 61a2e: 206e ffe0 moveal %fp@(-32),%a0 61a32: 2068 0034 moveal %a0@(52),%a0 61a36: 4a88 tstl %a0 61a38: 6644 bnes 61a7e rtems_filesystem_freenode( &loc ); 61a3a: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 61a3e: 4a88 tstl %a0 <== NOT EXECUTED 61a40: 670e beqs 61a50 <== NOT EXECUTED 61a42: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61a46: 4a88 tstl %a0 <== NOT EXECUTED 61a48: 6706 beqs 61a50 <== NOT EXECUTED 61a4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61a4c: 4e90 jsr %a0@ <== NOT EXECUTED 61a4e: 588f addql #4,%sp <== NOT EXECUTED if ( free_parentloc ) 61a50: 4a03 tstb %d3 <== NOT EXECUTED 61a52: 6718 beqs 61a6c <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 61a54: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61a58: 4a88 tstl %a0 <== NOT EXECUTED 61a5a: 6710 beqs 61a6c <== NOT EXECUTED 61a5c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61a60: 4a88 tstl %a0 <== NOT EXECUTED 61a62: 6708 beqs 61a6c <== NOT EXECUTED 61a64: 486e ffec pea %fp@(-20) <== NOT EXECUTED 61a68: 4e90 jsr %a0@ <== NOT EXECUTED 61a6a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61a6c: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61a72: 78ff moveq #-1,%d4 <== NOT EXECUTED 61a74: 2040 moveal %d0,%a0 <== NOT EXECUTED 61a76: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61a7c: 6040 bras 61abe <== NOT EXECUTED } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 61a7e: 2f02 movel %d2,%sp@- 61a80: 2f04 movel %d4,%sp@- 61a82: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 61a84: 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 ); 61a88: 2800 movel %d0,%d4 rtems_filesystem_freenode( &loc ); 61a8a: 508f addql #8,%sp 61a8c: 4a88 tstl %a0 61a8e: 670e beqs 61a9e 61a90: 2068 001c moveal %a0@(28),%a0 61a94: 4a88 tstl %a0 61a96: 6706 beqs 61a9e 61a98: 2f02 movel %d2,%sp@- 61a9a: 4e90 jsr %a0@ 61a9c: 588f addql #4,%sp if ( free_parentloc ) 61a9e: 4a03 tstb %d3 61aa0: 671c beqs 61abe rtems_filesystem_freenode( &parentloc ); 61aa2: 206e fff8 moveal %fp@(-8),%a0 61aa6: 4a88 tstl %a0 61aa8: 6714 beqs 61abe 61aaa: 2068 001c moveal %a0@(28),%a0 61aae: 4a88 tstl %a0 61ab0: 670c beqs 61abe 61ab2: 486e ffec pea %fp@(-20) 61ab6: 4e90 jsr %a0@ 61ab8: 588f addql #4,%sp 61aba: 6002 bras 61abe 61abc: 78ff moveq #-1,%d4 return result; } 61abe: 2004 movel %d4,%d0 61ac0: 4cee 0c3c ffc0 moveml %fp@(-64),%d2-%d5/%a2-%a3 61ac6: 4e5e unlk %fp ... 0004b728 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 4b728: 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; } 4b72c: 203c 0005 b644 movel #374340,%d0 <== NOT EXECUTED 4b732: 4e5e unlk %fp <== NOT EXECUTED ... 00048e18 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 48e18: 4e56 0000 linkw %fp,#0 48e1c: 2f02 movel %d2,%sp@- 48e1e: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 48e22: 2f02 movel %d2,%sp@- 48e24: 2f2e 0008 movel %fp@(8),%sp@- 48e28: 4eb9 0004 8e50 jsr 48e50 if (nap) 48e2e: 508f addql #8,%sp 48e30: 4a80 tstl %d0 48e32: 670c beqs 48e40 return nap->name; return rtems_assoc_name_bad(local_value); } 48e34: 2040 moveal %d0,%a0 48e36: 242e fffc movel %fp@(-4),%d2 48e3a: 4e5e unlk %fp 48e3c: 2010 movel %a0@,%d0 48e3e: 4e75 rts nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 48e40: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 48e44: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 48e48: 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); 48e4a: 4ef9 0004 b728 jmp 4b728 <== NOT EXECUTED 00048e50 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 48e50: 4e56 0000 linkw %fp,#0 48e54: 2f0a movel %a2,%sp@- 48e56: 246e 0008 moveal %fp@(8),%a2 48e5a: 2f02 movel %d2,%sp@- 48e5c: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 48e60: 2012 movel %a2@,%d0 48e62: 6718 beqs 48e7c 48e64: 4879 0005 a736 pea 5a736 48e6a: 2f00 movel %d0,%sp@- 48e6c: 4eb9 0004 d990 jsr 4d990 48e72: 508f addql #8,%sp 48e74: 4a80 tstl %d0 48e76: 6604 bnes 48e7c default_ap = ap++; 48e78: 200a movel %a2,%d0 <== NOT EXECUTED 48e7a: 600a bras 48e86 <== NOT EXECUTED 48e7c: 4280 clrl %d0 48e7e: 600a bras 48e8a for ( ; ap->name; ap++) if (ap->local_value == local_value) 48e80: b4aa 0004 cmpl %a2@(4),%d2 48e84: 670a beqs 48e90 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 48e86: 45ea 000c lea %a2@(12),%a2 48e8a: 4a92 tstl %a2@ 48e8c: 66f2 bnes 48e80 48e8e: 2440 moveal %d0,%a2 if (ap->local_value == local_value) return ap; return default_ap; } 48e90: 200a movel %a2,%d0 48e92: 242e fff8 movel %fp@(-8),%d2 48e96: 246e fffc moveal %fp@(-4),%a2 48e9a: 4e5e unlk %fp ... 0004b738 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 4b738: 4e56 0000 linkw %fp,#0 4b73c: 2f0a movel %a2,%sp@- 4b73e: 246e 0008 moveal %fp@(8),%a2 4b742: 2f02 movel %d2,%sp@- 4b744: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4b748: 2012 movel %a2@,%d0 4b74a: 6718 beqs 4b764 4b74c: 4879 0005 a736 pea 5a736 4b752: 2f00 movel %d0,%sp@- 4b754: 4eb9 0004 d990 jsr 4d990 4b75a: 508f addql #8,%sp 4b75c: 4a80 tstl %d0 4b75e: 6604 bnes 4b764 default_ap = ap++; 4b760: 200a movel %a2,%d0 <== NOT EXECUTED 4b762: 600a bras 4b76e <== NOT EXECUTED 4b764: 4280 clrl %d0 4b766: 600a bras 4b772 for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 4b768: b4aa 0008 cmpl %a2@(8),%d2 4b76c: 670a beqs 4b778 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 4b76e: 45ea 000c lea %a2@(12),%a2 4b772: 4a92 tstl %a2@ 4b774: 66f2 bnes 4b768 4b776: 2440 moveal %d0,%a2 if (ap->remote_value == remote_value) return ap; return default_ap; } 4b778: 200a movel %a2,%d0 4b77a: 242e fff8 movel %fp@(-8),%d2 4b77e: 246e fffc moveal %fp@(-4),%a2 4b782: 4e5e unlk %fp ... 0004c374 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4c374: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4c378: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4c37c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4c380: 4eb9 0004 8e50 jsr 48e50 <== NOT EXECUTED if (nap) 4c386: 508f addql #8,%sp <== NOT EXECUTED 4c388: 4a80 tstl %d0 <== NOT EXECUTED 4c38a: 6706 beqs 4c392 <== NOT EXECUTED return nap->remote_value; 4c38c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c38e: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED return 0; } 4c392: 4e5e unlk %fp <== 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 42180: 600c bras 4218e } 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 <== NOT EXECUTED 0004c344 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 4c344: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c348: 2f02 movel %d2,%sp@- <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 4c34a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4c34e: 4879 0005 ab12 pea 5ab12 <== NOT EXECUTED 4c354: 4eb9 0004 c374 jsr 4c374 <== NOT EXECUTED 4c35a: 508f addql #8,%sp <== NOT EXECUTED 4c35c: 2400 movel %d0,%d2 <== NOT EXECUTED 4c35e: 670a beqs 4c36a <== NOT EXECUTED { errno = rc; 4c360: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4c366: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c368: 2082 movel %d2,%a0@ <== NOT EXECUTED return -1; } return -1; } 4c36a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4c36e: 70ff moveq #-1,%d0 <== NOT EXECUTED 4c370: 4e5e unlk %fp <== NOT EXECUTED 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 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 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 42264: 760e moveq #14,%d3 <== NOT EXECUTED 42266: 2040 moveal %d0,%a0 <== NOT EXECUTED 42268: 2083 movel %d3,%a0@ <== NOT EXECUTED 4226a: 6000 008e braw 422fa <== NOT EXECUTED if ( !pathloc ) 4226e: 4a82 tstl %d2 42270: 660e bnes 42280 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 42272: 4eb9 0004 ca88 jsr 4ca88 <__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 b5b4 moveal 5b5b4 ,%a0 422a2: 41e8 0018 lea %a0@(24),%a0 422a6: 2f08 movel %a0,%sp@- 422a8: 2f02 movel %d2,%sp@- 422aa: 4eb9 0004 d2a8 jsr 4d2a8 422b0: 4fef 000c lea %sp@(12),%sp 422b4: 7001 moveq #1,%d0 422b6: 601c bras 422d4 422b8: 4878 0014 pea 14 422bc: 2039 0005 b5b4 movel 5b5b4 ,%d0 422c2: 5880 addql #4,%d0 422c4: 2f00 movel %d0,%sp@- 422c6: 2f02 movel %d2,%sp@- 422c8: 4eb9 0004 d2a8 jsr 4d2a8 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 <== NOT EXECUTED 422fc: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 42302: 4e5e unlk %fp <== NOT EXECUTED ... 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 ca88 jsr 4ca88 <__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 ca88 jsr 4ca88 <__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 ca88 jsr 4ca88 <__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 <== NOT EXECUTED 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 b5b4 moveal 5b5b4 ,%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 9bf8 tstl 59bf8 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 b4ac moveal 5b4ac ,%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 b5b4 moveal 5b5b4 ,%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 d2a8 lea 4d2a8 ,%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 9f62 pea 59f62 41eae: 4e93 jsr %a3@ rtems_filesystem_root = loc; 41eb0: 4fef 0020 lea %sp@(32),%sp 41eb4: 4878 0014 pea 14 41eb8: 2079 0005 b5b4 moveal 5b5b4 ,%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 9f62 pea 59f62 41ed8: 4e93 jsr %a3@ rtems_filesystem_current = loc; 41eda: 4fef 0020 lea %sp@(32),%sp 41ede: 4878 0014 pea 14 41ee2: 2279 0005 b5b4 moveal 5b5b4 ,%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 9f64 pea 59f64 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 <== NOT EXECUTED 00061d94 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 61d94: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61d98: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 61d9c: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 61da0: 4e5e unlk %fp <== NOT EXECUTED ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 61da2: 2050 moveal %a0@,%a0 <== NOT EXECUTED 61da4: b1d1 cmpal %a1@,%a0 <== NOT EXECUTED 61da6: 57c0 seq %d0 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 61da8: 4480 negl %d0 <== NOT EXECUTED 000454b2 : #endif Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; void rtems_initialize_data_structures(void) { 454b2: 4e56 0000 linkw %fp,#0 454b6: 42b9 0005 ce90 clrl 5ce90 <_System_state_Current> #endif /* * Initialize any target architecture specific support as early as possible */ _CPU_Initialize(); 454bc: 4eb9 0004 7ff4 jsr 47ff4 <_CPU_Initialize> /* * Do this as early as possible to ensure no debugging output * is even attempted to be printed. */ _Debug_Manager_initialization(); 454c2: 4eb9 0004 9fa4 jsr 49fa4 <_Debug_Manager_initialization> _API_extensions_Initialization(); 454c8: 4eb9 0004 5740 jsr 45740 <_API_extensions_Initialization> * This routine initializes the thread dispatching subsystem. */ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) { _Thread_Dispatch_disable_level = 1; 454ce: 7001 moveq #1,%d0 454d0: 23c0 0005 cd08 movel %d0,5cd08 <_Thread_Dispatch_disable_level> /* * Before this is called, we are not allowed to allocate memory * from the Workspace because it is not initialized. */ _Workspace_Handler_initialization(); 454d6: 4eb9 0004 7ecc jsr 47ecc <_Workspace_Handler_initialization> _User_extensions_Handler_initialization(); 454dc: 4eb9 0004 79e8 jsr 479e8 <_User_extensions_Handler_initialization> _ISR_Handler_initialization(); 454e2: 4eb9 0004 6034 jsr 46034 <_ISR_Handler_initialization> /* * Initialize the internal support API and allocator Mutex */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; _API_Mutex_Initialization( 1 ); 454e8: 4878 0001 pea 1 _ISR_Handler_initialization(); /* * Initialize the internal support API and allocator Mutex */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; 454ec: 203c 0005 cd1e movel #380190,%d0 454f2: 23c0 0005 ccc4 movel %d0,5ccc4 <_Objects_Information_table+0x4> _API_Mutex_Initialization( 1 ); 454f8: 4eb9 0004 5870 jsr 45870 <_API_Mutex_Initialization> _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); 454fe: 4879 0005 cdba pea 5cdba <_RTEMS_Allocator_Mutex> 45504: 4eb9 0004 57d0 jsr 457d0 <_API_Mutex_Allocate> #include #endif Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; void rtems_initialize_data_structures(void) 4550a: 508f addql #8,%sp RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; 4550c: 41f9 0005 ce28 lea 5ce28 <_Priority_Bit_map>,%a0 45512: 4240 clrw %d0 45514: 33c0 0005 cdb8 movew %d0,5cdb8 <_Priority_Major_bit_map> for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; 4551a: 4258 clrw %a0@+ RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) 4551c: b1fc 0005 ce48 cmpal #380488,%a0 45522: 66f6 bnes 4551a _API_Mutex_Initialization( 1 ); _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); _Priority_Handler_initialization(); _Watchdog_Handler_initialization(); 45524: 4eb9 0004 7d20 jsr 47d20 <_Watchdog_Handler_initialization> _TOD_Handler_initialization(); 4552a: 4eb9 0004 5c5c jsr 45c5c <_TOD_Handler_initialization> _Thread_Handler_initialization(); 45530: 4eb9 0004 6f60 jsr 46f60 <_Thread_Handler_initialization> _MPCI_Handler_initialization( RTEMS_TIMEOUT ); #endif /* MANAGERS */ _RTEMS_API_Initialize(); 45536: 4eb9 0004 56ec jsr 456ec <_RTEMS_API_Initialize> _Extension_Manager_initialization(); 4553c: 4eb9 0004 558c jsr 4558c <_Extension_Manager_initialization> _IO_Manager_initialization(); 45542: 4eb9 0004 5604 jsr 45604 <_IO_Manager_initialization> #ifdef RTEMS_POSIX_API _POSIX_API_Initialize(); 45548: 4eb9 0004 5698 jsr 45698 <_POSIX_API_Initialize> _Thread_Create_idle(); /* * Scheduling can properly occur now as long as we avoid dispatching. */ } 4554e: 4e5e unlk %fp 45550: 7001 moveq #1,%d0 45552: 23c0 0005 ce90 movel %d0,5ce90 <_System_state_Current> * _Thread_Executing and _Thread_Heir are not set. * * At this point all API extensions are in place. After the call to * _Thread_Create_idle() _Thread_Executing and _Thread_Heir will be set. */ _Thread_Create_idle(); 45558: 4ef9 0004 6aa4 jmp 46aa4 <_Thread_Create_idle> ... 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 de54 lea 4de54 ,%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 ca88 jsr 4ca88 <__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 00046d60 : rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 46d60: 4e56 0000 linkw %fp,#0 46d64: 206e 000c moveal %fp@(12),%a0 46d68: 2f0a movel %a2,%sp@- 46d6a: 226e 0010 moveal %fp@(16),%a1 46d6e: 2f02 movel %d2,%sp@- 46d70: 242e 0008 movel %fp@(8),%d2 rtems_device_major_number major_limit = _IO_Number_of_drivers; 46d74: 2039 0006 296a movel 6296a <_IO_Number_of_drivers>,%d0 if ( rtems_interrupt_is_in_progress() ) 46d7a: 2239 0006 214a movel 6214a <_ISR_Nest_level>,%d1 46d80: 6706 beqs 46d88 46d82: 7012 moveq #18,%d0 46d84: 6000 00d6 braw 46e5c return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 46d88: 4a89 tstl %a1 46d8a: 6700 00ce beqw 46e5a return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 46d8e: 2280 movel %d0,%a1@ if ( driver_table == NULL ) 46d90: 4a88 tstl %a0 46d92: 6700 00c6 beqw 46e5a static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 46d96: 4a90 tstl %a0@ 46d98: 6600 00ce bnew 46e68 46d9c: 4aa8 0004 tstl %a0@(4) 46da0: 6600 00c6 bnew 46e68 46da4: 6000 00b4 braw 46e5a rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 46da8: 2039 0006 20b0 movel 620b0 <_Thread_Dispatch_disable_level>,%d0 46dae: 5280 addql #1,%d0 46db0: 23c0 0006 20b0 movel %d0,620b0 <_Thread_Dispatch_disable_level> if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 46db6: 4a82 tstl %d2 46db8: 662c bnes 46de6 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 46dba: 2039 0006 296a movel 6296a <_IO_Number_of_drivers>,%d0 46dc0: 2479 0006 296e moveal 6296e <_IO_Driver_address_table>,%a2 46dc6: 6010 bras 46dd8 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 46dc8: 4a92 tstl %a2@ 46dca: 6600 00a6 bnew 46e72 46dce: 4aaa 0004 tstl %a2@(4) 46dd2: 6600 009e bnew 46e72 46dd6: 6004 bras 46ddc rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 46dd8: b082 cmpl %d2,%d0 46dda: 62ec bhis 46dc8 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 46ddc: 2282 movel %d2,%a1@ if ( m != n ) 46dde: b082 cmpl %d2,%d0 46de0: 6634 bnes 46e16 46de2: 6000 0098 braw 46e7c _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 46de6: 2202 movel %d2,%d1 46de8: 2002 movel %d2,%d0 46dea: e789 lsll #3,%d1 46dec: eb88 lsll #5,%d0 46dee: 2479 0006 296e moveal 6296e <_IO_Driver_address_table>,%a2 46df4: 9081 subl %d1,%d0 46df6: d5c0 addal %d0,%a2 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 46df8: 4a92 tstl %a2@ 46dfa: 660e bnes 46e0a 46dfc: 4aaa 0004 tstl %a2@(4) 46e00: 57c0 seq %d0 46e02: 49c0 extbl %d0 46e04: 4480 negl %d0 } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { 46e06: 4a00 tstb %d0 46e08: 660a bnes 46e14 _Thread_Enable_dispatch(); 46e0a: 4eb9 0004 8686 jsr 48686 <_Thread_Enable_dispatch> 46e10: 700c moveq #12,%d0 return RTEMS_RESOURCE_IN_USE; 46e12: 6048 bras 46e5c } *registered_major = major; 46e14: 2282 movel %d2,%a1@ } _IO_Driver_address_table [major] = *driver_table; 46e16: 4878 0018 pea 18 46e1a: 2202 movel %d2,%d1 46e1c: 2002 movel %d2,%d0 46e1e: e789 lsll #3,%d1 46e20: eb88 lsll #5,%d0 46e22: 2f08 movel %a0,%sp@- 46e24: 9081 subl %d1,%d0 46e26: d0b9 0006 296e addl 6296e <_IO_Driver_address_table>,%d0 46e2c: 2f00 movel %d0,%sp@- 46e2e: 4eb9 0005 1ccc jsr 51ccc _Thread_Enable_dispatch(); 46e34: 4eb9 0004 8686 jsr 48686 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); } 46e3a: 246e fffc moveal %fp@(-4),%a2 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 46e3e: 4fef 000c lea %sp@(12),%sp 46e42: 2d42 0008 movel %d2,%fp@(8) } 46e46: 242e fff8 movel %fp@(-8),%d2 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 46e4a: 42ae 0010 clrl %fp@(16) 46e4e: 42ae 000c clrl %fp@(12) } 46e52: 4e5e unlk %fp _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 46e54: 4ef9 0004 e990 jmp 4e990 46e5a: 7009 moveq #9,%d0 } 46e5c: 242e fff8 movel %fp@(-8),%d2 46e60: 246e fffc moveal %fp@(-4),%a2 46e64: 4e5e unlk %fp 46e66: 4e75 rts return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 46e68: b082 cmpl %d2,%d0 46e6a: 6200 ff3c bhiw 46da8 46e6e: 700a moveq #10,%d0 46e70: 60ea bras 46e5c rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 46e72: 5282 addql #1,%d2 46e74: 45ea 0018 lea %a2@(24),%a2 46e78: 6000 ff5e braw 46dd8 if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); 46e7c: 4eb9 0004 8686 jsr 48686 <_Thread_Enable_dispatch> 46e82: 7005 moveq #5,%d0 return sc; 46e84: 60d6 bras 46e5c ... 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 b4a4 movel 5b4a4 ,%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 8ea0 jsr 48ea0 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 cba8 movel %d0,5cba8 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 cbac movel %d0,5cbac for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 42336: 2040 moveal %d0,%a0 42338: 4280 clrl %d0 4233a: 2239 0005 b4a4 movel 5b4a4 ,%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 cbb0 pea 5cbb0 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 b4a0 moveal 5b4a0 ,%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 000616ca : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 616ca: 4e56 ffd4 linkw %fp,#-44 616ce: 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); 616d2: 486e fffc pea %fp@(-4) 616d6: 42a7 clrl %sp@- 616d8: 42a7 clrl %sp@- 616da: 4eb9 0006 3030 jsr 63030 if (sc != RTEMS_SUCCESSFUL) return sc; 616e0: 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); 616e4: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) return sc; 616e6: 6600 00f0 bnew 617d8 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 616ea: 203c 0009 bbbc movel #637884,%d0 616f0: b0b9 0009 71bc cmpl 971bc ,%d0 616f6: 6648 bnes 61740 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 616f8: 4878 0048 pea 48 616fc: 4eb9 0004 5de0 jsr 45de0 if (!tmp) 61702: 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)); 61704: 2600 movel %d0,%d3 if (!tmp) 61706: 6608 bnes 61710 61708: 143c 001a moveb #26,%d2 <== NOT EXECUTED 6170c: 6000 00ca braw 617d8 <== 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); 61710: 487a fec2 pea %pc@(615d4 ) 61714: 4879 0009 71bc pea 971bc 6171a: 42a7 clrl %sp@- 6171c: 4eb9 0006 3394 jsr 63394 if (sc != RTEMS_SUCCESSFUL) { 61722: 4fef 000c lea %sp@(12),%sp 61726: 4a80 tstl %d0 61728: 6710 beqs 6173a /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 6172a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6172c: 2400 movel %d0,%d2 <== NOT EXECUTED 6172e: 4eb9 0004 5854 jsr 45854 <== NOT EXECUTED return sc; 61734: 588f addql #4,%sp <== NOT EXECUTED 61736: 6000 00a0 braw 617d8 <== NOT EXECUTED } rtems_current_user_env = tmp; 6173a: 23c3 0009 71bc movel %d3,971bc }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 61740: 4878 0048 pea 48 61744: 45f9 0007 9068 lea 79068 ,%a2 6174a: 4879 0009 bbbc pea 9bbbc * 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); 61750: 260e movel %fp,%d3 61752: 0683 ffff ffe8 addil #-24,%d3 61758: 49f9 0004 578a lea 4578a ,%a4 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 6175e: 2679 0009 71bc moveal 971bc ,%a3 61764: 2f0b movel %a3,%sp@- 61766: 4e92 jsr %a2@ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 61768: 26ae fffc movel %fp@(-4),%a3@ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 6176c: 4878 0014 pea 14 61770: 2079 0009 bba4 moveal 9bba4 ,%a0 61776: 41e8 001c lea %a0@(28),%a0 6177a: 2f08 movel %a0,%sp@- 6177c: 486b 0018 pea %a3@(24) 61780: 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); 61782: 42a7 clrl %sp@- 61784: 2f03 movel %d3,%sp@- 61786: 42a7 clrl %sp@- 61788: 4878 0001 pea 1 6178c: 4879 0009 6bf4 pea 96bf4 61792: 4e94 jsr %a4@ rtems_filesystem_root = loc; 61794: 4fef 002c lea %sp@(44),%sp 61798: 4878 0014 pea 14 6179c: 2079 0009 71bc moveal 971bc ,%a0 617a2: 41e8 0018 lea %a0@(24),%a0 617a6: 2f03 movel %d3,%sp@- 617a8: 2f08 movel %a0,%sp@- 617aa: 4e92 jsr %a2@ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 617ac: 42a7 clrl %sp@- 617ae: 2f03 movel %d3,%sp@- 617b0: 42a7 clrl %sp@- 617b2: 4878 0001 pea 1 617b6: 4879 0009 6bf4 pea 96bf4 617bc: 4e94 jsr %a4@ rtems_filesystem_current = loc; 617be: 4fef 0020 lea %sp@(32),%sp 617c2: 4878 0014 pea 14 617c6: 2039 0009 71bc movel 971bc ,%d0 617cc: 5880 addql #4,%d0 617ce: 2f03 movel %d3,%sp@- 617d0: 2f00 movel %d0,%sp@- 617d2: 4e92 jsr %a2@ return RTEMS_SUCCESSFUL; 617d4: 4fef 000c lea %sp@(12),%sp } 617d8: 2002 movel %d2,%d0 617da: 4cee 1c0c ffd4 moveml %fp@(-44),%d2-%d3/%a2-%a4 617e0: 4e5e unlk %fp <== NOT EXECUTED 0006162e : * 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) { 6162e: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 61632: 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); 61634: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 61638: 42a7 clrl %sp@- <== NOT EXECUTED 6163a: 42a7 clrl %sp@- <== NOT EXECUTED 6163c: 4eb9 0006 3030 jsr 63030 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 61642: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 61646: 4a80 tstl %d0 <== NOT EXECUTED 61648: 6678 bnes 616c2 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 6164a: 2479 0009 71bc moveal 971bc ,%a2 <== NOT EXECUTED 61650: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 61654: b092 cmpl %a2@,%d0 <== NOT EXECUTED 61656: 661c bnes 61674 <== 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); 61658: 4879 0009 71bc pea 971bc <== NOT EXECUTED 6165e: 42a7 clrl %sp@- <== NOT EXECUTED 61660: 4eb9 0006 3428 jsr 63428 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 61666: 508f addql #8,%sp <== NOT EXECUTED 61668: 4a80 tstl %d0 <== NOT EXECUTED 6166a: 6656 bnes 616c2 <== NOT EXECUTED free_user_env(tmp); 6166c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6166e: 4eba ff64 jsr %pc@(615d4 ) <== NOT EXECUTED 61672: 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, 61674: 486e fffc pea %fp@(-4) <== NOT EXECUTED 61678: 4879 0009 71bc pea 971bc <== NOT EXECUTED 6167e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61682: 4eb9 0006 349c jsr 6349c <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 61688: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 6168c: 4a80 tstl %d0 <== NOT EXECUTED 6168e: 6626 bnes 616b6 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 61690: 487a ff42 pea %pc@(615d4 ) <== NOT EXECUTED 61694: 4879 0009 71bc pea 971bc <== NOT EXECUTED 6169a: 42a7 clrl %sp@- <== NOT EXECUTED 6169c: 4eb9 0006 3394 jsr 63394 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 616a2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 616a6: 4a80 tstl %d0 <== NOT EXECUTED 616a8: 660c bnes 616b6 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 616aa: 41ee fffc lea %fp@(-4),%a0 <== NOT EXECUTED 616ae: 23d0 0009 71bc movel %a0@,971bc <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 616b4: 600c bras 616c2 <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 616b6: 223c 0009 bbbc movel #637884,%d1 <== NOT EXECUTED 616bc: 23c1 0009 71bc movel %d1,971bc <== NOT EXECUTED return sc; } 616c2: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 616c6: 4e5e unlk %fp <== NOT EXECUTED 0004918c : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4918c: 7006 moveq #6,%d0 */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 4918e: 4e56 0000 linkw %fp,#0 49192: 222e 0008 movel %fp@(8),%d1 uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 49196: c081 andl %d1,%d0 */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 49198: 2f02 movel %d2,%sp@- uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4919a: 7406 moveq #6,%d2 4919c: b480 cmpl %d0,%d2 4919e: 6604 bnes 491a4 491a0: 7002 moveq #2,%d0 <== NOT EXECUTED 491a2: 6012 bras 491b6 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 491a4: 0801 0001 btst #1,%d1 491a8: 6704 beqs 491ae 491aa: 4280 clrl %d0 491ac: 6008 bras 491b6 491ae: 2001 movel %d1,%d0 <== NOT EXECUTED 491b0: e488 lsrl #2,%d0 <== NOT EXECUTED 491b2: 7401 moveq #1,%d2 <== NOT EXECUTED 491b4: 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 ) { 491b6: 0801 0000 btst #0,%d1 491ba: 6704 beqs 491c0 fcntl_flags |= O_NONBLOCK; 491bc: 08c0 000e bset #14,%d0 } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 491c0: 0801 0009 btst #9,%d1 491c4: 6704 beqs 491ca fcntl_flags |= O_APPEND; 491c6: 7408 moveq #8,%d2 491c8: 8082 orl %d2,%d0 } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 491ca: 0801 000a btst #10,%d1 491ce: 6704 beqs 491d4 fcntl_flags |= O_CREAT; 491d0: 08c0 0009 bset #9,%d0 } return fcntl_flags; } 491d4: 241f movel %sp@+,%d2 491d6: 4e5e unlk %fp <== NOT EXECUTED 00045e94 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 45e94: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 45e98: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45e9a: 2f02 movel %d2,%sp@- <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 45e9c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45ea0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45ea4: 2f39 0009 6ec0 movel 96ec0 ,%sp@- <== NOT EXECUTED 45eaa: 4eb9 0004 ab88 jsr 4ab88 <_Protected_heap_Get_block_size> <== NOT EXECUTED 45eb0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 45eb4: 4a00 tstb %d0 <== NOT EXECUTED 45eb6: 671a beqs 45ed2 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 45eb8: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 45ebc: 4282 clrl %d2 <== NOT EXECUTED 45ebe: d7b9 0009 bba0 addl %d3,9bba0 <== NOT EXECUTED 45ec4: 2039 0009 bb9c movel 9bb9c ,%d0<== NOT EXECUTED 45eca: d182 addxl %d2,%d0 <== NOT EXECUTED 45ecc: 23c0 0009 bb9c movel %d0,9bb9c <== NOT EXECUTED } } 45ed2: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 45ed6: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 45eda: 4e5e unlk %fp <== NOT EXECUTED 00045ede : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 45ede: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 45ee2: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 45ee6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45ee8: 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 ) 45eea: 4a80 tstl %d0 <== NOT EXECUTED 45eec: 674e beqs 45f3c <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 45eee: 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); 45ef0: 4282 clrl %d2 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 45ef2: 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); 45ef4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 45ef6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45ef8: 2f39 0009 6ec0 movel 96ec0 ,%sp@- <== NOT EXECUTED 45efe: 4eb9 0004 ab88 jsr 4ab88 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 45f04: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 45f08: 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); 45f0c: 2039 0009 bb94 movel 9bb94 ,%d0<== NOT EXECUTED 45f12: d6b9 0009 bb98 addl 9bb98 ,%d3<== NOT EXECUTED 45f18: d580 addxl %d0,%d2 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 45f1a: 2003 movel %d3,%d0 <== NOT EXECUTED 45f1c: 90b9 0009 bba0 subl 9bba0 ,%d0<== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 45f22: 23c2 0009 bb94 movel %d2,9bb94 <== NOT EXECUTED 45f28: 23c3 0009 bb98 movel %d3,9bb98 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 45f2e: b0b9 0009 bb90 cmpl 9bb90 ,%d0<== NOT EXECUTED 45f34: 6306 blss 45f3c <== NOT EXECUTED s->max_depth = current_depth; 45f36: 23c0 0009 bb90 movel %d0,9bb90 <== NOT EXECUTED } 45f3c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 45f40: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 45f44: 4e5e unlk %fp <== NOT EXECUTED 00045f48 : #include #include static void rtems_malloc_statistics_initialize( void ) { 45f48: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 45f4c: 4878 002c pea 2c <== NOT EXECUTED 45f50: 42a7 clrl %sp@- <== NOT EXECUTED 45f52: 4879 0009 bb78 pea 9bb78 <== NOT EXECUTED 45f58: 4eb9 0007 91d4 jsr 791d4 <== NOT EXECUTED 45f5e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 45f62: 4e5e unlk %fp <== NOT EXECUTED ... 0004dabc : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 4dabc: 4e56 0000 linkw %fp,#0 4dac0: 2f0a movel %a2,%sp@- 4dac2: 246e 0008 moveal %fp@(8),%a2 4dac6: 2f02 movel %d2,%sp@- void *return_this; /* * Parameter error checks */ if ( !pointer ) 4dac8: 4a8a tstl %a2 4daca: 6758 beqs 4db24 return EINVAL; *pointer = NULL; 4dacc: 4292 clrl %a2@ /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4dace: 7003 moveq #3,%d0 4dad0: b0b9 0006 2238 cmpl 62238 <_System_state_Current>,%d0 4dad6: 660a bnes 4dae2 4dad8: 4eb9 0004 3688 jsr 43688 4dade: 4a00 tstb %d0 4dae0: 6742 beqs 4db24 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4dae2: 4eb9 0004 36e0 jsr 436e0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 4dae8: 42a7 clrl %sp@- 4daea: 2f2e 000c movel %fp@(12),%sp@- 4daee: 2f2e 0010 movel %fp@(16),%sp@- 4daf2: 2f39 0006 0790 movel 60790 ,%sp@- 4daf8: 4eb9 0004 802c jsr 4802c <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 4dafe: 4fef 0010 lea %sp@(16),%sp 4db02: 2400 movel %d0,%d2 4db04: 6604 bnes 4db0a 4db06: 700c moveq #12,%d0 4db08: 601c bras 4db26 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 4db0a: 2079 0006 0e36 moveal 60e36 ,%a0 4db10: 4a88 tstl %a0 4db12: 670a beqs 4db1e (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 4db14: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4db16: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4db1a: 4e90 jsr %a0@ <== NOT EXECUTED 4db1c: 588f addql #4,%sp <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 4db1e: 2482 movel %d2,%a2@ 4db20: 4280 clrl %d0 return 0; 4db22: 6002 bras 4db26 4db24: 7016 moveq #22,%d0 } 4db26: 242e fff8 movel %fp@(-8),%d2 4db2a: 246e fffc moveal %fp@(-4),%a2 4db2e: 4e5e unlk %fp ... 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 0004f390 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { 4f390: 4e56 fffc linkw %fp,#-4 4f394: 2f0a movel %a2,%sp@- 4f396: 2f02 movel %d2,%sp@- RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 4f398: 486e fffc pea %fp@(-4) 4f39c: 2f2e 0008 movel %fp@(8),%sp@- 4f3a0: 4879 0007 52e6 pea 752e6 <_Partition_Information> 4f3a6: 242e 000c movel %fp@(12),%d2 4f3aa: 4eb9 0005 378c jsr 5378c <_Objects_Get> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 4f3b0: 4fef 000c lea %sp@(12),%sp 4f3b4: 2440 moveal %d0,%a2 4f3b6: 4aae fffc tstl %fp@(-4) 4f3ba: 6704 beqs 4f3c0 4f3bc: 7004 moveq #4,%d0 4f3be: 603c bras 4f3fc ) { void *starting; void *ending; starting = the_partition->starting_address; 4f3c0: 202a 0010 movel %a2@(16),%d0 ending = _Addresses_Add_offset( starting, the_partition->length ); 4f3c4: 222a 0014 movel %a2@(20),%d1 const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 4f3c8: b082 cmpl %d2,%d0 4f3ca: 623c bhis 4f408 4f3cc: d280 addl %d0,%d1 4f3ce: b282 cmpl %d2,%d1 4f3d0: 6536 bcss 4f408 return ( 4f3d2: 2202 movel %d2,%d1 4f3d4: 9280 subl %d0,%d1 4f3d6: 2001 movel %d1,%d0 4f3d8: 4c6a 0001 0018 remul %a2@(24),%d1,%d0 4f3de: 4a81 tstl %d1 4f3e0: 6626 bnes 4f408 RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 4f3e2: 2f02 movel %d2,%sp@- 4f3e4: 486a 0024 pea %a2@(36) 4f3e8: 4eb9 0005 1fdc jsr 51fdc <_Chain_Append> case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; 4f3ee: 53aa 0020 subql #1,%a2@(32) _Thread_Enable_dispatch(); 4f3f2: 4eb9 0005 4012 jsr 54012 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4f3f8: 508f addql #8,%sp case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); 4f3fa: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4f3fc: 242e fff4 movel %fp@(-12),%d2 4f400: 246e fff8 moveal %fp@(-8),%a2 4f404: 4e5e unlk %fp 4f406: 4e75 rts _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4f408: 4eb9 0005 4012 jsr 54012 <_Thread_Enable_dispatch> 4f40e: 7009 moveq #9,%d0 return RTEMS_INVALID_ADDRESS; 4f410: 60ea bras 4f3fc ... 0004ac36 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 4ac36: 4e56 0000 linkw %fp,#0 if (!rtems_pipe_configured) 4ac3a: 4a39 0005 bb34 tstb 5bb34 4ac40: 6740 beqs 4ac82 return; if (rtems_pipe_semaphore) 4ac42: 4ab9 0005 c4b4 tstl 5c4b4 <== NOT EXECUTED 4ac48: 6638 bnes 4ac82 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 4ac4a: 4879 0005 c4b4 pea 5c4b4 <== NOT EXECUTED 4ac50: 42a7 clrl %sp@- <== NOT EXECUTED 4ac52: 4878 0054 pea 54 <== NOT EXECUTED 4ac56: 4878 0001 pea 1 <== NOT EXECUTED 4ac5a: 2f3c 5049 5045 movel #1346981957,%sp@- <== NOT EXECUTED 4ac60: 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) 4ac66: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4ac6a: 4a80 tstl %d0 <== NOT EXECUTED 4ac6c: 6708 beqs 4ac76 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 4ac6e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ac70: 4eb9 0004 55bc jsr 455bc <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 4ac76: 4eb9 0004 4910 jsr 44910 <== NOT EXECUTED rtems_pipe_no = now; 4ac7c: 33c0 0005 c4bc movew %d0,5c4bc <== NOT EXECUTED } 4ac82: 4e5e unlk %fp <== NOT EXECUTED 000717f0 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 717f0: 4e56 ffec linkw %fp,#-20 717f4: 48d7 041c moveml %d2-%d4/%a2,%sp@ 717f8: 486e fffc pea %fp@(-4) 717fc: 262e 0008 movel %fp@(8),%d3 71800: 2f03 movel %d3,%sp@- 71802: 4879 0009 c770 pea 9c770 <_Rate_monotonic_Information> 71808: 242e 000c movel %fp@(12),%d2 7180c: 4eb9 0004 a8e0 jsr 4a8e0 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 71812: 4fef 000c lea %sp@(12),%sp 71816: 2440 moveal %d0,%a2 71818: 4aae fffc tstl %fp@(-4) 7181c: 6600 0138 bnew 71956 case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 71820: 2039 0009 bd86 movel 9bd86 <_Thread_Executing>,%d0 71826: b0aa 0040 cmpl %a2@(64),%d0 7182a: 670c beqs 71838 _Thread_Enable_dispatch(); 7182c: 4eb9 0004 b19a jsr 4b19a <_Thread_Enable_dispatch> 71832: 7817 moveq #23,%d4 return RTEMS_NOT_OWNER_OF_RESOURCE; 71834: 6000 0122 braw 71958 } if ( length == RTEMS_PERIOD_STATUS ) { 71838: 4a82 tstl %d2 7183a: 6622 bnes 7185e switch ( the_period->state ) { 7183c: 202a 0038 movel %a2@(56),%d0 71840: 7204 moveq #4,%d1 71842: b280 cmpl %d0,%d1 71844: 6404 bccs 7184a 71846: 4284 clrl %d4 <== NOT EXECUTED 71848: 600a bras 71854 <== NOT EXECUTED 7184a: 41f9 0009 5cfa lea 95cfa ,%a0 71850: 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(); 71854: 4eb9 0004 b19a jsr 4b19a <_Thread_Enable_dispatch> return( return_value ); 7185a: 6000 00fc braw 71958 } _ISR_Disable( level ); 7185e: 203c 0000 0700 movel #1792,%d0 71864: 40c4 movew %sr,%d4 71866: 8084 orl %d4,%d0 71868: 46c0 movew %d0,%sr switch ( the_period->state ) { 7186a: 202a 0038 movel %a2@(56),%d0 7186e: 7202 moveq #2,%d1 71870: b280 cmpl %d0,%d1 71872: 6740 beqs 718b4 71874: 123c 0004 moveb #4,%d1 71878: b280 cmpl %d0,%d1 7187a: 6700 00a4 beqw 71920 7187e: 4a80 tstl %d0 71880: 6600 00d4 bnew 71956 case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 71884: 46c4 movew %d4,%sr /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 71886: 2f0a movel %a2,%sp@- ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 71888: 4284 clrl %d4 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 7188a: 4eb9 0007 15dc jsr 715dc <_Rate_monotonic_Initiate_statistics> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 71890: 203c 0007 1964 movel #465252,%d0 the_period->state = RATE_MONOTONIC_ACTIVE; 71896: 7202 moveq #2,%d1 71898: 2540 002c movel %d0,%a2@(44) the_watchdog->id = id; 7189c: 2543 0030 movel %d3,%a2@(48) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 718a0: 2542 001c movel %d2,%a2@(28) 718a4: 2541 0038 movel %d1,%a2@(56) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 718a8: 42aa 0018 clrl %a2@(24) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 718ac: 42aa 0034 clrl %a2@(52) 718b0: 6000 0084 braw 71936 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 718b4: 2f0a movel %a2,%sp@- 718b6: 4eb9 0007 16fc jsr 716fc <_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; 718bc: 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; 718c0: 7401 moveq #1,%d2 718c2: 2542 0038 movel %d2,%a2@(56) the_period->next_length = length; _ISR_Enable( level ); 718c6: 46c4 movew %d4,%sr _Thread_Executing->Wait.id = the_period->Object.id; 718c8: 2079 0009 bd86 moveal 9bd86 <_Thread_Executing>,%a0 718ce: 216a 0008 0020 movel %a2@(8),%a0@(32) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 718d4: 4878 4000 pea 4000 718d8: 2f08 movel %a0,%sp@- 718da: 4eb9 0004 b9c8 jsr 4b9c8 <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 718e0: 203c 0000 0700 movel #1792,%d0 718e6: 40c1 movew %sr,%d1 718e8: 8081 orl %d1,%d0 718ea: 46c0 movew %d0,%sr local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; 718ec: 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; 718f0: 202a 0038 movel %a2@(56),%d0 the_period->state = RATE_MONOTONIC_ACTIVE; 718f4: 2542 0038 movel %d2,%a2@(56) _ISR_Enable( level ); 718f8: 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 ) 718fa: 7203 moveq #3,%d1 718fc: 4fef 000c lea %sp@(12),%sp 71900: b280 cmpl %d0,%d1 71902: 6612 bnes 71916 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 71904: 4878 4000 pea 4000 71908: 2f39 0009 bd86 movel 9bd86 <_Thread_Executing>,%sp@- 7190e: 4eb9 0004 ade0 jsr 4ade0 <_Thread_Clear_state> 71914: 508f addql #8,%sp _Thread_Enable_dispatch(); 71916: 4eb9 0004 b19a jsr 4b19a <_Thread_Enable_dispatch> 7191c: 4284 clrl %d4 return RTEMS_SUCCESSFUL; 7191e: 6038 bras 71958 case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 71920: 2f0a movel %a2,%sp@- 71922: 4eb9 0007 16fc jsr 716fc <_Rate_monotonic_Update_statistics> _ISR_Enable( level ); 71928: 46c4 movew %d4,%sr the_period->state = RATE_MONOTONIC_ACTIVE; 7192a: 7002 moveq #2,%d0 the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 7192c: 7806 moveq #6,%d4 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 7192e: 2542 001c movel %d2,%a2@(28) */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 71932: 2540 0038 movel %d0,%a2@(56) the_period->next_length = length; 71936: 2542 003c movel %d2,%a2@(60) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 7193a: 486a 0010 pea %a2@(16) 7193e: 4879 0009 bda4 pea 9bda4 <_Watchdog_Ticks_chain> 71944: 4eb9 0004 c108 jsr 4c108 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 7194a: 4eb9 0004 b19a jsr 4b19a <_Thread_Enable_dispatch> return RTEMS_TIMEOUT; 71950: 4fef 000c lea %sp@(12),%sp 71954: 6002 bras 71958 71956: 7804 moveq #4,%d4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 71958: 2004 movel %d4,%d0 7195a: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 71960: 4e5e unlk %fp <== NOT EXECUTED 0004ff88 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 4ff88: 4e56 fffc linkw %fp,#-4 4ff8c: 2f03 movel %d3,%sp@- 4ff8e: 262e 0010 movel %fp@(16),%d3 4ff92: 2f02 movel %d2,%sp@- 4ff94: 242e 000c movel %fp@(12),%d2 Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) 4ff98: 6766 beqs 50000 return RTEMS_INVALID_ADDRESS; if ( !size ) 4ff9a: 4a83 tstl %d3 4ff9c: 6762 beqs 50000 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 4ff9e: 2f39 0007 550e movel 7550e <_RTEMS_Allocator_Mutex>,%sp@- 4ffa4: 4eb9 0005 1f48 jsr 51f48 <_API_Mutex_Lock> 4ffaa: 486e fffc pea %fp@(-4) 4ffae: 2f2e 0008 movel %fp@(8),%sp@- 4ffb2: 4879 0007 535a pea 7535a <_Region_Information> 4ffb8: 4eb9 0005 3754 jsr 53754 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 4ffbe: 222e fffc movel %fp@(-4),%d1 4ffc2: 4fef 0010 lea %sp@(16),%sp 4ffc6: 670a beqs 4ffd2 4ffc8: 7001 moveq #1,%d0 4ffca: b081 cmpl %d1,%d0 4ffcc: 6620 bnes 4ffee 4ffce: 7404 moveq #4,%d2 4ffd0: 601e bras 4fff0 case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 4ffd2: 2f03 movel %d3,%sp@- 4ffd4: 2040 moveal %d0,%a0 4ffd6: 2f02 movel %d2,%sp@- 4ffd8: 4868 0068 pea %a0@(104) 4ffdc: 4eb9 0005 31d4 jsr 531d4 <_Heap_Size_of_alloc_area> 4ffe2: 4fef 000c lea %sp@(12),%sp 4ffe6: 4a00 tstb %d0 4ffe8: 6604 bnes 4ffee 4ffea: 7409 moveq #9,%d2 <== NOT EXECUTED 4ffec: 6002 bras 4fff0 <== NOT EXECUTED 4ffee: 4282 clrl %d2 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 4fff0: 2f39 0007 550e movel 7550e <_RTEMS_Allocator_Mutex>,%sp@- 4fff6: 4eb9 0005 1fa8 jsr 51fa8 <_API_Mutex_Unlock> return return_status; 4fffc: 588f addql #4,%sp 4fffe: 6002 bras 50002 50000: 7409 moveq #9,%d2 } 50002: 2002 movel %d2,%d0 50004: 242e fff4 movel %fp@(-12),%d2 50008: 262e fff8 movel %fp@(-8),%d3 5000c: 4e5e unlk %fp <== NOT EXECUTED 00043fe0 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 43fe0: 4e56 0000 linkw %fp,#0 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 43fe4: 2279 0009 bd86 moveal 9bd86 <_Thread_Executing>,%a1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 43fea: 2069 00c2 moveal %a1@(194),%a0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 43fee: 2f02 movel %d2,%sp@- ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 43ff0: b1ce cmpal %fp,%a0 43ff2: 6304 blss 43ff8 43ff4: 4202 clrb %d2 <== NOT EXECUTED 43ff6: 600c bras 44004 <== NOT EXECUTED } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 43ff8: 2008 movel %a0,%d0 43ffa: d0a9 00be addl %a1@(190),%d0 43ffe: b08e cmpl %fp,%d0 44000: 54c2 scc %d2 44002: 4482 negl %d2 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 44004: 4ab9 0009 8c00 tstl 98c00 4400a: 6604 bnes 44010 4400c: 7001 moveq #1,%d0 <== NOT EXECUTED 4400e: 601e bras 4402e <== NOT EXECUTED pattern_ok = (!memcmp( 44010: 4878 0010 pea 10 44014: 4879 0009 bb44 pea 9bb44 4401a: 4868 0008 pea %a0@(8) 4401e: 4eb9 0007 8ff0 jsr 78ff0 44024: 4fef 000c lea %sp@(12),%sp 44028: 4a80 tstl %d0 4402a: 57c0 seq %d0 4402c: 4480 negl %d0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 4402e: 4a02 tstb %d2 44030: 6708 beqs 4403a 44032: 4a00 tstb %d0 44034: 6704 beqs 4403a 44036: 4200 clrb %d0 44038: 6018 bras 44052 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 4403a: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 44040: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44042: 2f39 0009 bd86 movel 9bd86 <_Thread_Executing>,%sp@- <== NOT EXECUTED 44048: 4eb9 0004 3f3a jsr 43f3a <== NOT EXECUTED return true; 4404e: 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 ); 44050: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } 44052: 242e fffc movel %fp@(-4),%d2 44056: 4e5e unlk %fp <== NOT EXECUTED 00043f22 : void rtems_stack_checker_report_usage( void ) { 43f22: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 43f26: 4879 0004 6864 pea 46864 <== NOT EXECUTED 43f2c: 42a7 clrl %sp@- <== NOT EXECUTED 43f2e: 4eb9 0004 3ec0 jsr 43ec0 <== NOT EXECUTED 43f34: 508f addql #8,%sp <== NOT EXECUTED } 43f36: 4e5e unlk %fp <== NOT EXECUTED 00043ec0 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 43ec0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 43ec4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43ec6: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 43eca: 2f02 movel %d2,%sp@- <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); 43ecc: 4879 0008 e45e pea 8e45e <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 43ed2: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED print_context = context; print_handler = print; 43ed6: 23ca 0009 8c08 movel %a2,98c08 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 43edc: 2f02 movel %d2,%sp@- <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 43ede: 23c2 0009 8c04 movel %d2,98c04 <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 43ee4: 4e92 jsr %a2@ <== NOT EXECUTED (*print)( context, 43ee6: 4879 0008 e475 pea 8e475 <== NOT EXECUTED 43eec: 2f02 movel %d2,%sp@- <== NOT EXECUTED 43eee: 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 ); 43ef0: 4879 0004 3da6 pea 43da6 <== NOT EXECUTED 43ef6: 4eb9 0004 a354 jsr 4a354 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 43efc: 4878 ffff pea ffffffff <== NOT EXECUTED 43f00: 4eb9 0004 3da6 jsr 43da6 <== NOT EXECUTED print_context = NULL; print_handler = NULL; } 43f06: 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; 43f0a: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED } 43f0e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 43f12: 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; 43f14: 42b9 0009 8c04 clrl 98c04 <== NOT EXECUTED print_handler = NULL; 43f1a: 42b9 0009 8c08 clrl 98c08 <== NOT EXECUTED } 0004405a : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 4405a: 4e56 0000 linkw %fp,#0 4405e: 2f0a movel %a2,%sp@- 44060: 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; 44064: 206a 00c2 moveal %a2@(194),%a0 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 44068: 2f02 movel %d2,%sp@- ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 4406a: b1ce cmpal %fp,%a0 4406c: 6304 blss 44072 4406e: 4202 clrb %d2 <== NOT EXECUTED 44070: 600c bras 4407e <== NOT EXECUTED } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( 44072: 2008 movel %a0,%d0 44074: d0aa 00be addl %a2@(190),%d0 44078: b08e cmpl %fp,%d0 4407a: 54c2 scc %d2 4407c: 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, 4407e: 4878 0010 pea 10 44082: 4879 0009 bb44 pea 9bb44 44088: 4868 0008 pea %a0@(8) 4408c: 4eb9 0007 8ff0 jsr 78ff0 44092: 4fef 000c lea %sp@(12),%sp 44096: 4a80 tstl %d0 44098: 57c0 seq %d0 4409a: 4480 negl %d0 4409c: 1200 moveb %d0,%d1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 4409e: 4a02 tstb %d2 440a0: 6704 beqs 440a6 440a2: 4a00 tstb %d0 440a4: 661c bnes 440c2 Stack_check_report_blown_task( running, pattern_ok ); 440a6: 4280 clrl %d0 <== NOT EXECUTED 440a8: 1001 moveb %d1,%d0 <== NOT EXECUTED 440aa: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 440ae: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 440b2: 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 ); 440b6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 440ba: 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 ); 440bc: 4ef9 0004 3f3a jmp 43f3a <== NOT EXECUTED } } 440c2: 242e fff8 movel %fp@(-8),%d2 440c6: 246e fffc moveal %fp@(-4),%a2 440ca: 4e5e unlk %fp <== NOT EXECUTED 0004b5dc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4b5dc: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4b5e0: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 4b5e4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4b5e8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4b5ec: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4b5f0: 4a8a tstl %a2 <== NOT EXECUTED 4b5f2: 6604 bnes 4b5f8 <== NOT EXECUTED 4b5f4: 7009 moveq #9,%d0 <== NOT EXECUTED 4b5f6: 606e bras 4b666 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; 4b5f8: 4eb9 0004 deac jsr 4deac <__errno> <== NOT EXECUTED *n = 0; 4b5fe: 4281 clrl %d1 <== NOT EXECUTED char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4b600: 2040 moveal %d0,%a0 <== NOT EXECUTED *n = 0; 4b602: 4280 clrl %d0 <== NOT EXECUTED char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4b604: 4290 clrl %a0@ <== NOT EXECUTED *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b606: 486e fffc pea %fp@(-4) <== NOT EXECUTED if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 4b60a: 2480 movel %d0,%a2@ <== NOT EXECUTED 4b60c: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b610: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b612: 4eb9 0005 0900 jsr 50900 <== 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 ) 4b618: 508f addql #8,%sp <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b61a: 2600 movel %d0,%d3 <== NOT EXECUTED 4b61c: 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 ) 4b61e: 4a8b tstl %a3 <== NOT EXECUTED 4b620: 6704 beqs 4b626 <== NOT EXECUTED *endptr = end; 4b622: 26ae fffc movel %fp@(-4),%a3@ <== NOT EXECUTED /* nothing was converted */ if ( end == s ) 4b626: b4ae fffc cmpl %fp@(-4),%d2 <== NOT EXECUTED 4b62a: 6604 bnes 4b630 <== NOT EXECUTED 4b62c: 700b moveq #11,%d0 <== NOT EXECUTED 4b62e: 6036 bras 4b666 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4b630: 4878 ffff pea ffffffff <== NOT EXECUTED 4b634: 2f3c 7fef ffff movel #2146435071,%sp@- <== NOT EXECUTED 4b63a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4b63c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b63e: 4eb9 0005 b7a8 jsr 5b7a8 <__gtdf2> <== NOT EXECUTED 4b644: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b648: 4a80 tstl %d0 <== NOT EXECUTED 4b64a: 6f12 bles 4b65e <== NOT EXECUTED 4b64c: 4eb9 0004 deac jsr 4deac <__errno> <== NOT EXECUTED 4b652: 7222 moveq #34,%d1 <== NOT EXECUTED 4b654: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b656: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4b658: 6604 bnes 4b65e <== NOT EXECUTED 4b65a: 700a moveq #10,%d0 <== NOT EXECUTED 4b65c: 6008 bras 4b666 <== NOT EXECUTED #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 4b65e: 4280 clrl %d0 <== NOT EXECUTED 4b660: 2483 movel %d3,%a2@ <== NOT EXECUTED 4b662: 2544 0004 movel %d4,%a2@(4) <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 4b666: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4b66c: 4e5e unlk %fp <== NOT EXECUTED 0004b670 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4b670: 4e56 ffec linkw %fp,#-20 4b674: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4b678: 262e 0008 movel %fp@(8),%d3 4b67c: 246e 000c moveal %fp@(12),%a2 4b680: 266e 0010 moveal %fp@(16),%a3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4b684: 4a8a tstl %a2 4b686: 6604 bnes 4b68c 4b688: 7009 moveq #9,%d0 4b68a: 605c bras 4b6e8 return RTEMS_INVALID_ADDRESS; errno = 0; 4b68c: 4eb9 0004 deac jsr 4deac <__errno> 4b692: 2040 moveal %d0,%a0 4b694: 4290 clrl %a0@ *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b696: 486e fffc pea %fp@(-4) if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 4b69a: 24bc 0000 0000 movel #0,%a2@ #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b6a0: 2f03 movel %d3,%sp@- 4b6a2: 4eb9 0005 08a2 jsr 508a2 #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 ) 4b6a8: 508f addql #8,%sp errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4b6aa: 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 ) 4b6ac: 4a8b tstl %a3 4b6ae: 6704 beqs 4b6b4 *endptr = end; 4b6b0: 26ae fffc movel %fp@(-4),%a3@ /* nothing was converted */ if ( end == s ) 4b6b4: b6ae fffc cmpl %fp@(-4),%d3 4b6b8: 6604 bnes 4b6be 4b6ba: 700b moveq #11,%d0 4b6bc: 602a bras 4b6e8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4b6be: 2f3c 7f7f ffff movel #2139095039,%sp@- 4b6c4: 2f02 movel %d2,%sp@- 4b6c6: 4eb9 0005 b838 jsr 5b838 <__gtsf2> 4b6cc: 508f addql #8,%sp 4b6ce: 4a80 tstl %d0 4b6d0: 6f12 bles 4b6e4 4b6d2: 4eb9 0004 deac jsr 4deac <__errno> <== NOT EXECUTED 4b6d8: 7222 moveq #34,%d1 <== NOT EXECUTED 4b6da: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b6dc: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4b6de: 6604 bnes 4b6e4 <== NOT EXECUTED 4b6e0: 700a moveq #10,%d0 <== NOT EXECUTED 4b6e2: 6004 bras 4b6e8 <== NOT EXECUTED #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 4b6e4: 2482 movel %d2,%a2@ 4b6e6: 4280 clrl %d0 #endif return RTEMS_SUCCESSFUL; } 4b6e8: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 4b6ee: 4e5e unlk %fp ... 00057f34 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 57f34: 4e56 ffec linkw %fp,#-20 57f38: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 57f3c: 262e 0008 movel %fp@(8),%d3 57f40: 246e 000c moveal %fp@(12),%a2 57f44: 266e 0010 moveal %fp@(16),%a3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 57f48: 4a8a tstl %a2 57f4a: 6604 bnes 57f50 57f4c: 7009 moveq #9,%d0 57f4e: 6050 bras 57fa0 return RTEMS_INVALID_ADDRESS; errno = 0; 57f50: 4eb9 0007 6030 jsr 76030 <__errno> 57f56: 2040 moveal %d0,%a0 57f58: 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 ); 57f5a: 4878 0010 pea 10 57f5e: 486e fffc pea %fp@(-4) if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 57f62: 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 ); 57f64: 2f03 movel %d3,%sp@- 57f66: 4eb9 0007 d254 jsr 7d254 #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 ) 57f6c: 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 ); 57f70: 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 ) 57f72: 4a8b tstl %a3 57f74: 6704 beqs 57f7a *endptr = end; 57f76: 26ae fffc movel %fp@(-4),%a3@ /* nothing was converted */ if ( end == s ) 57f7a: b6ae fffc cmpl %fp@(-4),%d3 57f7e: 6604 bnes 57f84 57f80: 700b moveq #11,%d0 57f82: 601c bras 57fa0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 57f84: 70ff moveq #-1,%d0 57f86: b082 cmpl %d2,%d0 57f88: 6612 bnes 57f9c 57f8a: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 57f90: 7222 moveq #34,%d1 <== NOT EXECUTED 57f92: 2040 moveal %d0,%a0 <== NOT EXECUTED 57f94: b290 cmpl %a0@,%d1 <== NOT EXECUTED 57f96: 6604 bnes 57f9c <== NOT EXECUTED 57f98: 700a moveq #10,%d0 <== NOT EXECUTED 57f9a: 6004 bras 57fa0 <== NOT EXECUTED if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; 57f9c: 2482 movel %d2,%a2@ 57f9e: 4280 clrl %d0 #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; } 57fa0: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 57fa6: 4e5e unlk %fp ... 00043e80 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 43e80: 7209 moveq #9,%d1 #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 43e82: 4e56 0000 linkw %fp,#0 43e86: 202e 0008 movel %fp@(8),%d0 int baud_index; switch (termios_baud) { 43e8a: b280 cmpl %d0,%d1 43e8c: 6700 00ce beqw 43f5c 43e90: 6d54 blts 43ee6 43e92: 123c 0004 moveb #4,%d1 43e96: b280 cmpl %d0,%d1 43e98: 6700 00ae beqw 43f48 43e9c: 6d2a blts 43ec8 43e9e: 123c 0001 moveb #1,%d1 43ea2: b280 cmpl %d0,%d1 43ea4: 6700 0092 beqw 43f38 43ea8: 6d0a blts 43eb4 43eaa: 4a80 tstl %d0 43eac: 6700 008e beqw 43f3c 43eb0: 6000 00d6 braw 43f88 43eb4: 7202 moveq #2,%d1 <== NOT EXECUTED 43eb6: b280 cmpl %d0,%d1 <== NOT EXECUTED 43eb8: 6700 0086 beqw 43f40 <== NOT EXECUTED 43ebc: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 43ec0: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ec2: 6600 00c4 bnew 43f88 <== NOT EXECUTED 43ec6: 607c bras 43f44 <== NOT EXECUTED 43ec8: 7206 moveq #6,%d1 <== NOT EXECUTED 43eca: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ecc: 6700 0082 beqw 43f50 <== NOT EXECUTED 43ed0: 6e7a bgts 43f4c <== NOT EXECUTED 43ed2: 123c 0007 moveb #7,%d1 <== NOT EXECUTED 43ed6: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ed8: 677a beqs 43f54 <== NOT EXECUTED 43eda: 123c 0008 moveb #8,%d1 <== NOT EXECUTED 43ede: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ee0: 6600 00a6 bnew 43f88 <== NOT EXECUTED 43ee4: 6072 bras 43f58 <== NOT EXECUTED 43ee6: 720e moveq #14,%d1 <== NOT EXECUTED 43ee8: b280 cmpl %d0,%d1 <== NOT EXECUTED 43eea: 6700 0084 beqw 43f70 <== NOT EXECUTED 43eee: 6d1c blts 43f0c <== NOT EXECUTED 43ef0: 123c 000b moveb #11,%d1 <== NOT EXECUTED 43ef4: b280 cmpl %d0,%d1 <== NOT EXECUTED 43ef6: 676c beqs 43f64 <== NOT EXECUTED 43ef8: 6e66 bgts 43f60 <== NOT EXECUTED 43efa: 123c 000c moveb #12,%d1 <== NOT EXECUTED 43efe: b280 cmpl %d0,%d1 <== NOT EXECUTED 43f00: 6766 beqs 43f68 <== NOT EXECUTED 43f02: 123c 000d moveb #13,%d1 <== NOT EXECUTED 43f06: b280 cmpl %d0,%d1 <== NOT EXECUTED 43f08: 667e bnes 43f88 <== NOT EXECUTED 43f0a: 6060 bras 43f6c <== NOT EXECUTED 43f0c: 0c80 0000 1002 cmpil #4098,%d0 <== NOT EXECUTED 43f12: 6768 beqs 43f7c <== NOT EXECUTED 43f14: 6e10 bgts 43f26 <== NOT EXECUTED 43f16: 720f moveq #15,%d1 <== NOT EXECUTED 43f18: b280 cmpl %d0,%d1 <== NOT EXECUTED 43f1a: 6758 beqs 43f74 <== NOT EXECUTED 43f1c: 0c80 0000 1001 cmpil #4097,%d0 <== NOT EXECUTED 43f22: 6664 bnes 43f88 <== NOT EXECUTED 43f24: 6052 bras 43f78 <== NOT EXECUTED 43f26: 0c80 0000 1003 cmpil #4099,%d0 <== NOT EXECUTED 43f2c: 6752 beqs 43f80 <== NOT EXECUTED 43f2e: 0c80 0000 1004 cmpil #4100,%d0 <== NOT EXECUTED 43f34: 6652 bnes 43f88 <== NOT EXECUTED 43f36: 604c bras 43f84 <== NOT EXECUTED 43f38: 7001 moveq #1,%d0 <== NOT EXECUTED 43f3a: 604e bras 43f8a <== NOT EXECUTED 43f3c: 4280 clrl %d0 <== NOT EXECUTED 43f3e: 604a bras 43f8a <== NOT EXECUTED 43f40: 7002 moveq #2,%d0 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; 43f42: 6046 bras 43f8a <== NOT EXECUTED 43f44: 7003 moveq #3,%d0 <== NOT EXECUTED case B110: baud_index = 3; break; 43f46: 6042 bras 43f8a <== NOT EXECUTED 43f48: 7004 moveq #4,%d0 <== NOT EXECUTED case B134: baud_index = 4; break; 43f4a: 603e bras 43f8a <== NOT EXECUTED 43f4c: 7005 moveq #5,%d0 <== NOT EXECUTED case B150: baud_index = 5; break; 43f4e: 603a bras 43f8a <== NOT EXECUTED 43f50: 7006 moveq #6,%d0 <== NOT EXECUTED case B200: baud_index = 6; break; 43f52: 6036 bras 43f8a <== NOT EXECUTED 43f54: 7007 moveq #7,%d0 <== NOT EXECUTED case B300: baud_index = 7; break; 43f56: 6032 bras 43f8a <== NOT EXECUTED 43f58: 7008 moveq #8,%d0 <== NOT EXECUTED case B600: baud_index = 8; break; 43f5a: 602e bras 43f8a <== NOT EXECUTED 43f5c: 7009 moveq #9,%d0 <== NOT EXECUTED case B1200: baud_index = 9; break; 43f5e: 602a bras 43f8a <== NOT EXECUTED 43f60: 700a moveq #10,%d0 <== NOT EXECUTED case B1800: baud_index = 10; break; 43f62: 6026 bras 43f8a <== NOT EXECUTED 43f64: 700b moveq #11,%d0 <== NOT EXECUTED case B2400: baud_index = 11; break; 43f66: 6022 bras 43f8a <== NOT EXECUTED 43f68: 700c moveq #12,%d0 <== NOT EXECUTED case B4800: baud_index = 12; break; 43f6a: 601e bras 43f8a <== NOT EXECUTED 43f6c: 700d moveq #13,%d0 <== NOT EXECUTED case B9600: baud_index = 13; break; 43f6e: 601a bras 43f8a <== NOT EXECUTED 43f70: 700e moveq #14,%d0 <== NOT EXECUTED case B19200: baud_index = 14; break; 43f72: 6016 bras 43f8a <== NOT EXECUTED 43f74: 700f moveq #15,%d0 <== NOT EXECUTED case B38400: baud_index = 15; break; 43f76: 6012 bras 43f8a <== NOT EXECUTED 43f78: 7010 moveq #16,%d0 <== NOT EXECUTED case B57600: baud_index = 16; break; 43f7a: 600e bras 43f8a <== NOT EXECUTED 43f7c: 7011 moveq #17,%d0 <== NOT EXECUTED case B115200: baud_index = 17; break; 43f7e: 600a bras 43f8a <== NOT EXECUTED 43f80: 7012 moveq #18,%d0 <== NOT EXECUTED case B230400: baud_index = 18; break; 43f82: 6006 bras 43f8a <== NOT EXECUTED 43f84: 7013 moveq #19,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; 43f86: 6002 bras 43f8a <== NOT EXECUTED 43f88: 70ff moveq #-1,%d0 default: baud_index = -1; break; } return baud_index; } 43f8a: 4e5e unlk %fp ... 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 b5a4 movel %a0@,5b5a4 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 42eb8: 41ee 000c lea %fp@(12),%a0 <== NOT EXECUTED 42ebc: 23d0 0005 b5a8 movel %a0@,5b5a8 <== 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 b5ac movel %a0@,5b5ac <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 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 cbec movel 5cbec ,%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 c3a4 lea 5c3a4 ,%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 cbf0 movel %a0,5cbf0 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 cbf4 movel %a0,5cbf4 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 8f80 lea 48f80 ,%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 cbec movel 5cbec ,%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 <== NOT EXECUTED 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 c458 moveal 5c458 ,%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 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 c3a4 lea 5c3a4 ,%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 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 cbec tstl 5cbec 42e76: 662c bnes 42ea4 sc = rtems_semaphore_create ( 42e78: 4879 0005 cbec pea 5cbec 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 <== NOT EXECUTED 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 c3bc addil #377788,%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 d2a8 jsr 4d2a8 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 d2a8 jsr 4d2a8 /* * 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 c3a4 lea 5c3a4 ,%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 c3a4 lea 5c3a4 ,%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 <== NOT EXECUTED 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 cbec movel 5cbec ,%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 cbf4 moveal 5cbf4 ,%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 cbec movel 5cbec ,%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 b5a8 lea 5b5a8 ,%a0 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44250: 49f9 0004 9484 lea 49484 ,%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 8f80 jsr 48f80 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 44274: 2f39 0005 cbec movel 5cbec ,%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 b5ac lea 5b5ac ,%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 8f80 lea 48f80 ,%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 cbec movel 5cbec ,%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 b5a4 movel 5b5a4 ,%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 8f80 lea 48f80 ,%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 cbec movel 5cbec ,%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 cbf4 moveal 5cbf4 ,%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 cbf4 movel %a3,5cbf4 if (rtems_termios_ttyTail == NULL) 44330: 4ab9 0005 cbf0 tstl 5cbf0 44336: 6606 bnes 4433e rtems_termios_ttyTail = tty; 44338: 23cb 0005 cbf0 movel %a3,5cbf0 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 b5b0 moveb 5b5b0 ,%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 b5b0 moveb 5b5b0 ,%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 b5b0 moveb 5b5b0 ,%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 d2a8 jsr 4d2a8 /* * 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 b5b0 moveb 5b5b0 ,%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 b5b0 moveb 5b5b0 ,%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 b5b0 moveb 5b5b0 ,%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 b5b0 moveb 5b5b0 ,%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 b5b0 moveb %d5,5b5b0 4452e: b081 cmpl %d1,%d0 44530: 6608 bnes 4453a c = 'a'; 44532: 7261 moveq #97,%d1 <== NOT EXECUTED 44534: 13c1 0005 b5b0 moveb %d1,5b5b0 <== 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 cbec movel 5cbec ,%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 8ea0 jsr 48ea0 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 <== NOT EXECUTED 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 c3a4 lea 5c3a4 ,%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 b5a4 movel 5b5a4 ,%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 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 <== NOT EXECUTED 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 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 c3b8 addil #377784,%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 c3b0 addil #377776,%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 <== NOT EXECUTED 0005132c : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 5132c: 4e56 ffe8 linkw %fp,#-24 51330: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 51334: 282e 0008 movel %fp@(8),%d4 51338: 262e 000c movel %fp@(12),%d3 5133c: 242e 0010 movel %fp@(16),%d2 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; 51340: 2679 0007 5d2a moveal 75d2a <_Timer_server>,%a3 if ( !timer_server ) 51346: 4a8b tstl %a3 51348: 6606 bnes 51350 5134a: 700e moveq #14,%d0 5134c: 6000 00a4 braw 513f2 return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 51350: 4a39 0007 5470 tstb 75470 <_TOD_Is_set> 51356: 6606 bnes 5135e 51358: 700b moveq #11,%d0 <== NOT EXECUTED 5135a: 6000 0096 braw 513f2 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) 5135e: 4a82 tstl %d2 51360: 6606 bnes 51368 51362: 7009 moveq #9,%d0 51364: 6000 008c braw 513f2 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 51368: 2f03 movel %d3,%sp@- 5136a: 4eb9 0004 e7a8 jsr 4e7a8 <_TOD_Validate> 51370: 588f addql #4,%sp 51372: 4a00 tstb %d0 51374: 677a beqs 513f0 return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 51376: 2f03 movel %d3,%sp@- 51378: 4eb9 0004 e708 jsr 4e708 <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch() ) 5137e: 588f addql #4,%sp return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 51380: 2600 movel %d0,%d3 if ( seconds <= _TOD_Seconds_since_epoch() ) 51382: b0b9 0007 54ee cmpl 754ee <_TOD_Now>,%d0 51388: 6366 blss 513f0 5138a: 486e fffc pea %fp@(-4) 5138e: 2f04 movel %d4,%sp@- 51390: 4879 0007 5cf0 pea 75cf0 <_Timer_Information> 51396: 4eb9 0005 378c jsr 5378c <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 5139c: 4fef 000c lea %sp@(12),%sp 513a0: 2440 moveal %d0,%a2 513a2: 4aae fffc tstl %fp@(-4) 513a6: 6704 beqs 513ac 513a8: 7004 moveq #4,%d0 513aa: 6046 bras 513f2 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 513ac: 486a 0010 pea %a2@(16) 513b0: 4eb9 0005 53a8 jsr 553a8 <_Watchdog_Remove> the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 513b6: 256e 0014 0034 movel %fp@(20),%a2@(52) the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 513bc: 7003 moveq #3,%d0 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 513be: 2544 0030 movel %d4,%a2@(48) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 513c2: 96b9 0007 54ee subl 754ee <_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; 513c8: 2540 0038 movel %d0,%a2@(56) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 513cc: 2543 001c movel %d3,%a2@(28) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 513d0: 2542 002c movel %d2,%a2@(44) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 513d4: 42aa 0018 clrl %a2@(24) (*timer_server->schedule_operation)( timer_server, the_timer ); 513d8: 2f0a movel %a2,%sp@- 513da: 2f0b movel %a3,%sp@- 513dc: 206b 0004 moveal %a3@(4),%a0 513e0: 4e90 jsr %a0@ _Thread_Enable_dispatch(); 513e2: 4eb9 0005 4012 jsr 54012 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 513e8: 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(); 513ec: 4280 clrl %d0 return RTEMS_SUCCESSFUL; 513ee: 6002 bras 513f2 513f0: 7014 moveq #20,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 513f2: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 513f8: 4e5e unlk %fp <== NOT EXECUTED 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 cba4 movel 5cba4 ,%d0 <== NOT EXECUTED 41f50: 2200 movel %d0,%d1 <== NOT EXECUTED 41f52: 5281 addql #1,%d1 <== NOT EXECUTED 41f54: 23c1 0005 cba4 movel %d1,5cba4 <== 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 cd08 movel 5cd08 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 41f64: 5280 addql #1,%d0 <== NOT EXECUTED 41f66: 23c0 0005 cd08 movel %d0,5cd08 <_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 cba4 cmpl 5cba4 ,%d0 <== NOT EXECUTED 41f74: 6d00 0138 bltw 420ae <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 41f78: 2079 0005 b680 moveal 5b680 <_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 cde4 jsr 4cde4 <== 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 ca88 jsr 4ca88 <__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 b680 moveal 5b680 <_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 3310 jsr 53310 <== 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 b680 moveal 5b680 <_impure_ptr>,%a0 <== NOT EXECUTED 41fd6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 41fd8: 4879 0005 9f69 pea 59f69 <== NOT EXECUTED 41fde: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 41fe2: 4eb9 0004 d170 jsr 4d170 <== 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 da24 lea 4da24 ,%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 b680 moveal 5b680 <_impure_ptr>,%a0 <== NOT EXECUTED 42010: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42012: 4879 0005 9f77 pea 59f77 <== NOT EXECUTED 42018: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4201c: 4eb9 0004 d170 jsr 4d170 <== 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 9f84 pea 59f84 <== NOT EXECUTED 42030: 2079 0005 b680 moveal 5b680 <_impure_ptr>,%a0 <== NOT EXECUTED 42036: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4203a: 4eb9 0004 d170 jsr 4d170 <== 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 a776 pea 5a776 <== NOT EXECUTED 4204c: 2079 0005 b680 moveal 5b680 <_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 d170 jsr 4d170 <== NOT EXECUTED (void) fflush(stderr); 42062: 2079 0005 b680 moveal 5b680 <_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 cde4 jsr 4cde4 <== 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 9f98 pea 59f98 <== 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 9fad pea 59fad <== NOT EXECUTED 420a4: 42a7 clrl %sp@- <== NOT EXECUTED 420a6: 4e90 jsr %a0@ <== NOT EXECUTED abort(); 420a8: 4eb9 0004 ca58 jsr 4ca58 <== 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 00060838 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 60838: 4e56 ffe4 linkw %fp,#-28 6083c: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 60840: 246e 0008 moveal %fp@(8),%a2 60844: 4283 clrl %d3 60846: 283c 7fff ffff movel #2147483647,%d4 6084c: 4282 clrl %d2 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 6084e: 47f9 0007 aeec lea 7aeec <__srget_r>,%a3 60854: 202a 0004 movel %a2@(4),%d0 60858: 5380 subql #1,%d0 6085a: 2540 0004 movel %d0,%a2@(4) 6085e: 6c0e bges 6086e 60860: 2f0a movel %a2,%sp@- <== NOT EXECUTED 60862: 2f39 0009 79c4 movel 979c4 <_impure_ptr>,%sp@- <== NOT EXECUTED 60868: 4e93 jsr %a3@ <== NOT EXECUTED 6086a: 508f addql #8,%sp <== NOT EXECUTED 6086c: 600a bras 60878 <== NOT EXECUTED 6086e: 2052 moveal %a2@,%a0 60870: 4280 clrl %d0 60872: 1010 moveb %a0@,%d0 60874: 5288 addql #1,%a0 60876: 2488 movel %a0,%a2@ if (c == ':') 60878: 723a moveq #58,%d1 6087a: b280 cmpl %d0,%d1 6087c: 6750 beqs 608ce break; if (sign == 0) { 6087e: 4a83 tstl %d3 60880: 660e bnes 60890 if (c == '-') { 60882: 7c2d moveq #45,%d6 60884: bc80 cmpl %d0,%d6 60886: 6606 bnes 6088e sign = -1; limit++; 60888: 5284 addql #1,%d4 <== NOT EXECUTED 6088a: 76ff moveq #-1,%d3 <== NOT EXECUTED continue; 6088c: 60c6 bras 60854 <== NOT EXECUTED 6088e: 7601 moveq #1,%d3 } sign = 1; } if (!isdigit(c)) 60890: 2079 0009 79b8 moveal 979b8 <__ctype_ptr__>,%a0 60896: 1230 0801 moveb %a0@(00000001,%d0:l),%d1 6089a: 49c1 extbl %d1 6089c: 44c1 movew %d1,%ccr 6089e: 6640 bnes 608e0 return 0; d = c - '0'; if ((i > (limit / 10)) 608a0: 2204 movel %d4,%d1 608a2: 7c0a moveq #10,%d6 608a4: 4c46 1005 remul %d6,%d5,%d1 608a8: 4c46 1001 remul %d6,%d1,%d1 608ac: b282 cmpl %d2,%d1 608ae: 6530 bcss 608e0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 608b0: 0680 ffff ffd0 addil #-48,%d0 if ((i > (limit / 10)) 608b6: b282 cmpl %d2,%d1 608b8: 6604 bnes 608be 608ba: ba80 cmpl %d0,%d5 <== NOT EXECUTED 608bc: 6522 bcss 608e0 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 608be: 2202 movel %d2,%d1 608c0: e789 lsll #3,%d1 608c2: 2241 moveal %d1,%a1 608c4: 41f1 2a00 lea %a1@(00000000,%d2:l:2),%a0 608c8: 2400 movel %d0,%d2 608ca: d488 addl %a0,%d2 608cc: 6086 bras 60854 } if (sign == 0) 608ce: 4a83 tstl %d3 608d0: 670e beqs 608e0 return 0; *val = i * sign; 608d2: 4c02 3800 mulsl %d2,%d3 608d6: 7001 moveq #1,%d0 608d8: 206e 000c moveal %fp@(12),%a0 608dc: 2083 movel %d3,%a0@ return 1; 608de: 6002 bras 608e2 608e0: 4280 clrl %d0 <== NOT EXECUTED } 608e2: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 608e8: 4e5e unlk %fp <== NOT EXECUTED 000608ec : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 608ec: 4e56 ffec linkw %fp,#-20 int c; *name = *bufp; 608f0: 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) { 608f4: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ 608f8: 246e 0010 moveal %fp@(16),%a2 int c; *name = *bufp; for (;;) { c = getc(fp); 608fc: 4bf9 0007 aeec lea 7aeec <__srget_r>,%a5 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 60902: 286e 0008 moveal %fp@(8),%a4 60906: 266e 0014 moveal %fp@(20),%a3 6090a: 242e 0018 movel %fp@(24),%d2 int c; *name = *bufp; 6090e: 2092 movel %a2@,%a0@ for (;;) { c = getc(fp); 60910: 202c 0004 movel %a4@(4),%d0 60914: 5380 subql #1,%d0 60916: 2940 0004 movel %d0,%a4@(4) 6091a: 6c0e bges 6092a 6091c: 2f0c movel %a4,%sp@- 6091e: 2f39 0009 79c4 movel 979c4 <_impure_ptr>,%sp@- 60924: 4e95 jsr %a5@ 60926: 508f addql #8,%sp 60928: 600a bras 60934 6092a: 2054 moveal %a4@,%a0 6092c: 4280 clrl %d0 6092e: 1010 moveb %a0@,%d0 60930: 5288 addql #1,%a0 60932: 2888 movel %a0,%a4@ if (c == ':') { 60934: 723a moveq #58,%d1 60936: b280 cmpl %d0,%d1 60938: 6606 bnes 60940 if (nlFlag) 6093a: 4a82 tstl %d2 6093c: 6724 beqs 60962 6093e: 602e bras 6096e <== NOT EXECUTED return 0; break; } if (c == '\n') { 60940: 720a moveq #10,%d1 60942: b280 cmpl %d0,%d1 60944: 6606 bnes 6094c if (!nlFlag) 60946: 4a82 tstl %d2 60948: 6618 bnes 60962 6094a: 6022 bras 6096e <== NOT EXECUTED return 0; break; } if (c == EOF) 6094c: 72ff moveq #-1,%d1 6094e: b280 cmpl %d0,%d1 60950: 671c beqs 6096e return 0; if (*nleft < 2) 60952: 7201 moveq #1,%d1 60954: b293 cmpl %a3@,%d1 60956: 6416 bccs 6096e return 0; **bufp = c; 60958: 2052 moveal %a2@,%a0 6095a: 1080 moveb %d0,%a0@ ++(*bufp); 6095c: 5292 addql #1,%a2@ --(*nleft); 6095e: 5393 subql #1,%a3@ } 60960: 60ae bras 60910 **bufp = '\0'; 60962: 2052 moveal %a2@,%a0 ++(*bufp); --(*nleft); 60964: 7001 moveq #1,%d0 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 60966: 4210 clrb %a0@ ++(*bufp); 60968: 5292 addql #1,%a2@ --(*nleft); 6096a: 5393 subql #1,%a3@ return 1; 6096c: 6002 bras 60970 6096e: 4280 clrl %d0 <== NOT EXECUTED } 60970: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 60976: 4e5e unlk %fp <== NOT EXECUTED 0006097a : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 6097a: 4e56 ffe4 linkw %fp,#-28 6097e: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60982: 42a7 clrl %sp@- 60984: 280e movel %fp,%d4 60986: 0684 0000 0014 addil #20,%d4 6098c: 260e movel %fp,%d3 6098e: 0683 0000 0010 addil #16,%d3 60994: 47fa ff56 lea %pc@(608ec ),%a3 60998: 2f04 movel %d4,%sp@- FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 6099a: 246e 000c moveal %fp@(12),%a2 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 6099e: 2f03 movel %d3,%sp@- FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 609a0: 242e 0008 movel %fp@(8),%d2 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 609a4: 2f0a movel %a2,%sp@- 609a6: 2f02 movel %d2,%sp@- 609a8: 4e93 jsr %a3@ 609aa: 4fef 0014 lea %sp@(20),%sp 609ae: 4a80 tstl %d0 609b0: 6700 00c2 beqw 60a74 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 609b4: 42a7 clrl %sp@- 609b6: 2f04 movel %d4,%sp@- 609b8: 2f03 movel %d3,%sp@- 609ba: 486a 0004 pea %a2@(4) 609be: 2f02 movel %d2,%sp@- 609c0: 4e93 jsr %a3@ { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 609c2: 4fef 0014 lea %sp@(20),%sp 609c6: 4a80 tstl %d0 609c8: 6700 00aa beqw 60a74 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 609cc: 486e fffc pea %fp@(-4) 609d0: 2f02 movel %d2,%sp@- 609d2: 4eba fe64 jsr %pc@(60838 ) { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 609d6: 508f addql #8,%sp 609d8: 4a80 tstl %d0 609da: 6700 0098 beqw 60a74 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 609de: 4878 0001 pea 1 609e2: 2f04 movel %d4,%sp@- 609e4: 2f03 movel %d3,%sp@- 609e6: 486e fff8 pea %fp@(-8) 609ea: 2f02 movel %d2,%sp@- 609ec: 4e93 jsr %a3@ { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 609ee: 4fef 0014 lea %sp@(20),%sp 609f2: 4a80 tstl %d0 609f4: 677e beqs 60a74 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 609f6: 226e fff8 moveal %fp@(-8),%a1 609fa: 7001 moveq #1,%d0 609fc: 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; 609fe: 356e fffe 0008 movew %fp@(-2),%a2@(8) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a04: 6008 bras 60a0e if(*cp == ',') 60a06: 722c moveq #44,%d1 60a08: b282 cmpl %d2,%d1 60a0a: 6602 bnes 60a0e memcount++; 60a0c: 5280 addql #1,%d0 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a0e: 1210 moveb %a0@,%d1 60a10: 5288 addql #1,%a0 if(*cp == ',') 60a12: 1401 moveb %d1,%d2 60a14: 49c2 extbl %d2 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a16: 4a01 tstb %d1 60a18: 66ec bnes 60a06 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 60a1a: e588 lsll #2,%d0 60a1c: 0680 0000 0013 addil #19,%d0 60a22: b0ae 0014 cmpl %fp@(20),%d0 60a26: 624c bhis 60a74 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 60a28: 202e 0010 movel %fp@(16),%d0 60a2c: 74f0 moveq #-16,%d2 60a2e: 0680 0000 000f addil #15,%d0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a34: 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); 60a36: c082 andl %d2,%d0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 60a38: 2040 moveal %d0,%a0 60a3a: 2089 movel %a1,%a0@ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a3c: 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); 60a40: 2540 000a movel %d0,%a2@(10) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a44: 6018 bras 60a5e if(*cp == ',') { 60a46: 702c moveq #44,%d0 60a48: b082 cmpl %d2,%d0 60a4a: 6610 bnes 60a5c *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; 60a4c: 2408 movel %a0,%d2 <== NOT EXECUTED 60a4e: 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'; 60a50: 4210 clrb %a0@ <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 60a52: 226a 000a moveal %a2@(10),%a1 <== NOT EXECUTED 60a56: 2382 1c00 movel %d2,%a1@(00000000,%d1:l:4) <== NOT EXECUTED 60a5a: 5281 addql #1,%d1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a5c: 5288 addql #1,%a0 60a5e: 1010 moveb %a0@,%d0 if(*cp == ',') { 60a60: 1400 moveb %d0,%d2 60a62: 49c2 extbl %d2 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60a64: 4a00 tstb %d0 60a66: 66de bnes 60a46 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 60a68: 206a 000a moveal %a2@(10),%a0 60a6c: 7001 moveq #1,%d0 60a6e: 42b0 1c00 clrl %a0@(00000000,%d1:l:4) return 1; 60a72: 6002 bras 60a76 60a74: 4280 clrl %d0 <== NOT EXECUTED } 60a76: 4cee 0c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a3 60a7c: 4e5e unlk %fp <== NOT EXECUTED 00060ab8 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60ab8: 4e56 ffe0 linkw %fp,#-32 60abc: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60ac0: 42a7 clrl %sp@- 60ac2: 280e movel %fp,%d4 60ac4: 0684 0000 0014 addil #20,%d4 60aca: 260e movel %fp,%d3 60acc: 0683 0000 0010 addil #16,%d3 60ad2: 47fa fe18 lea %pc@(608ec ),%a3 60ad6: 2f04 movel %d4,%sp@- FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60ad8: 246e 000c moveal %fp@(12),%a2 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60adc: 2f03 movel %d3,%sp@- FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60ade: 242e 0008 movel %fp@(8),%d2 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60ae2: 2f0a movel %a2,%sp@- 60ae4: 2f02 movel %d2,%sp@- 60ae6: 4e93 jsr %a3@ 60ae8: 4fef 0014 lea %sp@(20),%sp 60aec: 4a80 tstl %d0 60aee: 6700 00a4 beqw 60b94 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 60af2: 42a7 clrl %sp@- 60af4: 2f04 movel %d4,%sp@- 60af6: 2f03 movel %d3,%sp@- 60af8: 486a 0004 pea %a2@(4) 60afc: 2f02 movel %d2,%sp@- 60afe: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b00: 4fef 0014 lea %sp@(20),%sp 60b04: 4a80 tstl %d0 60b06: 6700 008c beqw 60b94 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 60b0a: 486e fffc pea %fp@(-4) 60b0e: 49fa fd28 lea %pc@(60838 ),%a4 60b12: 2f02 movel %d2,%sp@- 60b14: 4e94 jsr %a4@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b16: 508f addql #8,%sp 60b18: 4a80 tstl %d0 60b1a: 6778 beqs 60b94 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 60b1c: 486e fff8 pea %fp@(-8) 60b20: 2f02 movel %d2,%sp@- 60b22: 4e94 jsr %a4@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b24: 508f addql #8,%sp 60b26: 4a80 tstl %d0 60b28: 676a beqs 60b94 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 60b2a: 42a7 clrl %sp@- 60b2c: 2f04 movel %d4,%sp@- 60b2e: 2f03 movel %d3,%sp@- 60b30: 486a 000c pea %a2@(12) 60b34: 2f02 movel %d2,%sp@- 60b36: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b38: 4fef 0014 lea %sp@(20),%sp 60b3c: 4a80 tstl %d0 60b3e: 6754 beqs 60b94 || !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) 60b40: 42a7 clrl %sp@- 60b42: 2f04 movel %d4,%sp@- 60b44: 2f03 movel %d3,%sp@- 60b46: 486a 0010 pea %a2@(16) 60b4a: 2f02 movel %d2,%sp@- 60b4c: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b4e: 4fef 0014 lea %sp@(20),%sp 60b52: 4a80 tstl %d0 60b54: 673e beqs 60b94 || !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) 60b56: 42a7 clrl %sp@- 60b58: 2f04 movel %d4,%sp@- 60b5a: 2f03 movel %d3,%sp@- 60b5c: 486a 0014 pea %a2@(20) 60b60: 2f02 movel %d2,%sp@- 60b62: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b64: 4fef 0014 lea %sp@(20),%sp 60b68: 4a80 tstl %d0 60b6a: 6728 beqs 60b94 || !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)) 60b6c: 4878 0001 pea 1 60b70: 2f04 movel %d4,%sp@- 60b72: 2f03 movel %d3,%sp@- 60b74: 486a 0018 pea %a2@(24) 60b78: 2f02 movel %d2,%sp@- 60b7a: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 60b7c: 4fef 0014 lea %sp@(20),%sp 60b80: 4a80 tstl %d0 60b82: 6710 beqs 60b94 || !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; 60b84: 7001 moveq #1,%d0 60b86: 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; 60b8c: 356e fffe 0008 movew %fp@(-2),%a2@(8) pwd->pw_gid = pwgid; return 1; 60b92: 6002 bras 60b96 60b94: 4280 clrl %d0 <== NOT EXECUTED } 60b96: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 60b9c: 4e5e unlk %fp <== NOT EXECUTED 000607da : gid_t gid ) { _POSIX_types_Gid = gid; return 0; } 607da: 4280 clrl %d0 <== NOT EXECUTED */ int setgid( gid_t gid ) { 607dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Gid = gid; 607e0: 2079 0009 71bc moveal 971bc ,%a0 <== NOT EXECUTED 607e6: 316e 000a 0034 movew %fp@(10),%a0@(52) <== NOT EXECUTED return 0; } 607ec: 4e5e unlk %fp <== NOT EXECUTED 00060cb8 : return NULL; return &grent; } void setgrent(void) { 60cb8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 60cbc: 4eb9 0006 0bd8 jsr 60bd8 <== NOT EXECUTED if (group_fp != NULL) 60cc2: 2039 0009 b2f2 movel 9b2f2 ,%d0 <== NOT EXECUTED 60cc8: 670a beqs 60cd4 <== NOT EXECUTED fclose(group_fp); 60cca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60ccc: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED 60cd2: 588f addql #4,%sp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 60cd4: 4879 0008 f5eb pea 8f5eb <== NOT EXECUTED 60cda: 4879 0008 de95 pea 8de95 <_rodata_start+0x845> <== NOT EXECUTED 60ce0: 4eb9 0007 69d4 jsr 769d4 <== NOT EXECUTED 60ce6: 508f addql #8,%sp <== NOT EXECUTED } 60ce8: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); 60cea: 23c0 0009 b2f2 movel %d0,9b2f2 <== NOT EXECUTED } 00060e68 : return NULL; return &pwent; } void setpwent(void) { 60e68: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 60e6c: 4eb9 0006 0bd8 jsr 60bd8 <== NOT EXECUTED if (passwd_fp != NULL) 60e72: 2039 0009 b20a movel 9b20a ,%d0 <== NOT EXECUTED 60e78: 670a beqs 60e84 <== NOT EXECUTED fclose(passwd_fp); 60e7a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60e7c: 4eb9 0007 616e jsr 7616e <== NOT EXECUTED 60e82: 588f addql #4,%sp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 60e84: 4879 0008 f5eb pea 8f5eb <== NOT EXECUTED 60e8a: 4879 0008 de50 pea 8de50 <_rodata_start+0x800> <== NOT EXECUTED 60e90: 4eb9 0007 69d4 jsr 769d4 <== NOT EXECUTED 60e96: 508f addql #8,%sp <== NOT EXECUTED } 60e98: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); 60e9a: 23c0 0009 b20a movel %d0,9b20a <== NOT EXECUTED } 00045972 : uid_t uid ) { _POSIX_types_Uid = uid; return 0; } 45972: 4280 clrl %d0 <== NOT EXECUTED */ int setuid( uid_t uid ) { 45974: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Uid = uid; 45978: 2079 0009 71bc moveal 971bc ,%a0 <== NOT EXECUTED 4597e: 316e 000a 0032 movew %fp@(10),%a0@(50) <== NOT EXECUTED return 0; } 45984: 4e5e unlk %fp <== NOT EXECUTED 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 00046a2c : int _STAT_NAME( const char *path, struct stat *buf ) { 46a2c: 4e56 ffe0 linkw %fp,#-32 46a30: 48d7 001c moveml %d2-%d4,%sp@ 46a34: 282e 0008 movel %fp@(8),%d4 46a38: 242e 000c movel %fp@(12),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 46a3c: 6612 bnes 46a50 rtems_set_errno_and_return_minus_one( EFAULT ); 46a3e: 4eb9 0007 6030 jsr 76030 <__errno> 46a44: 760e moveq #14,%d3 46a46: 74ff moveq #-1,%d2 46a48: 2040 moveal %d0,%a0 46a4a: 2083 movel %d3,%a0@ 46a4c: 6000 009a braw 46ae8 status = rtems_filesystem_evaluate_path( path, strlen( path ), 46a50: 2f04 movel %d4,%sp@- 46a52: 260e movel %fp,%d3 46a54: 0683 ffff ffec addil #-20,%d3 46a5a: 4eb9 0007 c0d8 jsr 7c0d8 46a60: 7201 moveq #1,%d1 46a62: 2e81 movel %d1,%sp@ 46a64: 2f03 movel %d3,%sp@- 46a66: 42a7 clrl %sp@- 46a68: 2f00 movel %d0,%sp@- 46a6a: 2f04 movel %d4,%sp@- 46a6c: 4eb9 0004 578a jsr 4578a 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 46a72: 4fef 0014 lea %sp@(20),%sp 46a76: 4a80 tstl %d0 46a78: 6704 beqs 46a7e 46a7a: 74ff moveq #-1,%d2 46a7c: 606a bras 46ae8 return -1; if ( !loc.handlers->fstat_h ){ 46a7e: 206e fff4 moveal %fp@(-12),%a0 46a82: 4aa8 0018 tstl %a0@(24) 46a86: 6628 bnes 46ab0 rtems_filesystem_freenode( &loc ); 46a88: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 46a8c: 4a88 tstl %a0 <== NOT EXECUTED 46a8e: 670e beqs 46a9e <== NOT EXECUTED 46a90: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 46a94: 4a88 tstl %a0 <== NOT EXECUTED 46a96: 6706 beqs 46a9e <== NOT EXECUTED 46a98: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46a9a: 4e90 jsr %a0@ <== NOT EXECUTED 46a9c: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 46a9e: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 46aa4: 74ff moveq #-1,%d2 <== NOT EXECUTED 46aa6: 2040 moveal %d0,%a0 <== NOT EXECUTED 46aa8: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 46aae: 6038 bras 46ae8 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 46ab0: 4878 0046 pea 46 46ab4: 42a7 clrl %sp@- 46ab6: 2f02 movel %d2,%sp@- 46ab8: 4eb9 0007 91d4 jsr 791d4 status = (*loc.handlers->fstat_h)( &loc, buf ); 46abe: 206e fff4 moveal %fp@(-12),%a0 46ac2: 2f02 movel %d2,%sp@- 46ac4: 2f03 movel %d3,%sp@- 46ac6: 2068 0018 moveal %a0@(24),%a0 46aca: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 46acc: 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 ); 46ad0: 2400 movel %d0,%d2 rtems_filesystem_freenode( &loc ); 46ad2: 4fef 0014 lea %sp@(20),%sp 46ad6: 4a88 tstl %a0 46ad8: 670e beqs 46ae8 46ada: 2068 001c moveal %a0@(28),%a0 46ade: 4a88 tstl %a0 46ae0: 6706 beqs 46ae8 46ae2: 2f03 movel %d3,%sp@- 46ae4: 4e90 jsr %a0@ 46ae6: 588f addql #4,%sp return status; } 46ae8: 2002 movel %d2,%d0 46aea: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 46af0: 4e5e unlk %fp <== NOT EXECUTED 00061b44 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 61b44: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 61b48: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 61b4c: 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 ) ) 61b50: 260e movel %fp,%d3 <== NOT EXECUTED 61b52: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED 61b58: 2f0a movel %a2,%sp@- <== NOT EXECUTED */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 61b5a: 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 ) ) 61b5e: 4eb9 0007 c0d8 jsr 7c0d8 <== NOT EXECUTED 61b64: 7201 moveq #1,%d1 <== NOT EXECUTED 61b66: 2e81 movel %d1,%sp@ <== NOT EXECUTED 61b68: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61b6a: 42a7 clrl %sp@- <== NOT EXECUTED 61b6c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61b6e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61b70: 4eb9 0004 578a jsr 4578a <== NOT EXECUTED 61b76: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61b7a: 4a80 tstl %d0 <== NOT EXECUTED 61b7c: 6704 beqs 61b82 <== NOT EXECUTED 61b7e: 74ff moveq #-1,%d2 <== NOT EXECUTED 61b80: 605a bras 61bdc <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 61b82: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 61b86: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 61b8a: 4aa8 0044 tstl %a0@(68) <== NOT EXECUTED 61b8e: 6612 bnes 61ba2 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 61b90: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61b96: 74ff moveq #-1,%d2 <== NOT EXECUTED 61b98: 2040 moveal %d0,%a0 <== NOT EXECUTED 61b9a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61ba0: 603a bras 61bdc <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 61ba2: 4878 0038 pea 38 <== NOT EXECUTED 61ba6: 42a7 clrl %sp@- <== NOT EXECUTED 61ba8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61baa: 4eb9 0007 91d4 jsr 791d4 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 61bb0: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 61bb4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61bb6: 486a 001c pea %a2@(28) <== NOT EXECUTED 61bba: 2068 0044 moveal %a0@(68),%a0 <== NOT EXECUTED 61bbe: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61bc0: 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 ); 61bc4: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61bc6: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 61bca: 4a88 tstl %a0 <== NOT EXECUTED 61bcc: 670e beqs 61bdc <== NOT EXECUTED 61bce: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61bd2: 4a88 tstl %a0 <== NOT EXECUTED 61bd4: 6706 beqs 61bdc <== NOT EXECUTED 61bd6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61bd8: 4e90 jsr %a0@ <== NOT EXECUTED 61bda: 588f addql #4,%sp <== NOT EXECUTED return result; } 61bdc: 2002 movel %d2,%d0 <== NOT EXECUTED 61bde: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 <== NOT EXECUTED 61be4: 4e5e unlk %fp <== NOT EXECUTED 00061be8 : int symlink( const char *actualpath, const char *sympath ) { 61be8: 4e56 ffdc linkw %fp,#-36 61bec: 48d7 040c moveml %d2-%d3/%a2,%sp@ 61bf0: 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 ); 61bf4: 742f moveq #47,%d2 61bf6: 1012 moveb %a2@,%d0 61bf8: 1200 moveb %d0,%d1 61bfa: 49c1 extbl %d1 61bfc: b481 cmpl %d1,%d2 61bfe: 670c beqs 61c0c 61c00: 143c 005c moveb #92,%d2 61c04: b481 cmpl %d1,%d2 61c06: 6704 beqs 61c0c 61c08: 4a00 tstb %d0 61c0a: 6622 bnes 61c2e 61c0c: 4878 0014 pea 14 61c10: 2079 0009 71bc moveal 971bc ,%a0 61c16: 41e8 0018 lea %a0@(24),%a0 61c1a: 2f08 movel %a0,%sp@- 61c1c: 486e ffe8 pea %fp@(-24) 61c20: 4eb9 0007 9068 jsr 79068 61c26: 4fef 000c lea %sp@(12),%sp 61c2a: 7001 moveq #1,%d0 61c2c: 601e bras 61c4c 61c2e: 4878 0014 pea 14 61c32: 2039 0009 71bc movel 971bc ,%d0 61c38: 5880 addql #4,%d0 61c3a: 2f00 movel %d0,%sp@- 61c3c: 486e ffe8 pea %fp@(-24) 61c40: 4eb9 0007 9068 jsr 79068 61c46: 4fef 000c lea %sp@(12),%sp 61c4a: 4280 clrl %d0 if ( !loc.ops->evalformake_h ) { 61c4c: 206e fff4 moveal %fp@(-12),%a0 61c50: 2068 0004 moveal %a0@(4),%a0 61c54: 4a88 tstl %a0 61c56: 673a beqs 61c92 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 61c58: 486e fffc pea %fp@(-4) 61c5c: 260e movel %fp,%d3 61c5e: 0683 ffff ffe8 addil #-24,%d3 61c64: 2f03 movel %d3,%sp@- 61c66: 4872 0800 pea %a2@(00000000,%d0:l) 61c6a: 4e90 jsr %a0@ if ( result != 0 ) 61c6c: 4fef 000c lea %sp@(12),%sp 61c70: 4a80 tstl %d0 61c72: 6704 beqs 61c78 61c74: 74ff moveq #-1,%d2 61c76: 6054 bras 61ccc return -1; if ( !loc.ops->symlink_h ) { 61c78: 226e fff4 moveal %fp@(-12),%a1 61c7c: 2069 0038 moveal %a1@(56),%a0 61c80: 4a88 tstl %a0 61c82: 6620 bnes 61ca4 rtems_filesystem_freenode( &loc ); 61c84: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61c88: 4a88 tstl %a0 <== NOT EXECUTED 61c8a: 6706 beqs 61c92 <== NOT EXECUTED 61c8c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61c8e: 4e90 jsr %a0@ <== NOT EXECUTED 61c90: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61c92: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61c98: 74ff moveq #-1,%d2 <== NOT EXECUTED 61c9a: 2040 moveal %d0,%a0 <== NOT EXECUTED 61c9c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61ca2: 6028 bras 61ccc <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 61ca4: 2f2e fffc movel %fp@(-4),%sp@- 61ca8: 2f2e 0008 movel %fp@(8),%sp@- 61cac: 2f03 movel %d3,%sp@- 61cae: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 61cb0: 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); 61cb4: 2400 movel %d0,%d2 rtems_filesystem_freenode( &loc ); 61cb6: 4fef 000c lea %sp@(12),%sp 61cba: 4a88 tstl %a0 61cbc: 670e beqs 61ccc 61cbe: 2068 001c moveal %a0@(28),%a0 61cc2: 4a88 tstl %a0 61cc4: 6706 beqs 61ccc 61cc6: 2f03 movel %d3,%sp@- 61cc8: 4e90 jsr %a0@ 61cca: 588f addql #4,%sp return result; } 61ccc: 2002 movel %d2,%d0 61cce: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 61cd4: 4e5e unlk %fp <== NOT EXECUTED 0004f2e4 : int tcsetattr( int fd, int opt, struct termios *tp ) { 4f2e4: 4e56 0000 linkw %fp,#0 4f2e8: 202e 000c movel %fp@(12),%d0 4f2ec: 2f03 movel %d3,%sp@- 4f2ee: 262e 0010 movel %fp@(16),%d3 4f2f2: 2f02 movel %d2,%sp@- 4f2f4: 242e 0008 movel %fp@(8),%d2 switch (opt) { 4f2f8: 4a80 tstl %d0 4f2fa: 672c beqs 4f328 4f2fc: 7201 moveq #1,%d1 <== NOT EXECUTED 4f2fe: b280 cmpl %d0,%d1 <== NOT EXECUTED 4f300: 6710 beqs 4f312 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 4f302: 4eb9 0005 3b40 jsr 53b40 <__errno> <== NOT EXECUTED 4f308: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f30a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4f310: 6034 bras 4f346 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 4f312: 42a7 clrl %sp@- <== NOT EXECUTED 4f314: 4878 0003 pea 3 <== NOT EXECUTED 4f318: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4f31a: 4eb9 0005 26a8 jsr 526a8 <== NOT EXECUTED 4f320: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4f324: 4a80 tstl %d0 <== NOT EXECUTED 4f326: 6d1e blts 4f346 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 4f328: 2d43 0010 movel %d3,%fp@(16) 4f32c: 7002 moveq #2,%d0 4f32e: 2d42 0008 movel %d2,%fp@(8) } } 4f332: 242e fff8 movel %fp@(-8),%d2 4f336: 262e fffc movel %fp@(-4),%d3 return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 4f33a: 2d40 000c movel %d0,%fp@(12) } } 4f33e: 4e5e unlk %fp return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 4f340: 4ef9 0005 26a8 jmp 526a8 } } 4f346: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4f34a: 70ff moveq #-1,%d0 <== NOT EXECUTED 4f34c: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4f350: 4e5e unlk %fp <== NOT EXECUTED 00044d60 : useconds_t ualarm( useconds_t useconds, useconds_t interval ) { 44d60: 4e56 ffe8 linkw %fp,#-24 44d64: 48d7 041c moveml %d2-%d4/%a2,%sp@ 44d68: 262e 0008 movel %fp@(8),%d3 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { 44d6c: 4ab9 0005 ecfa tstl 5ecfa <_POSIX_signals_Ualarm_timer+0x1c> 44d72: 6622 bnes 44d96 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 44d74: 42b9 0005 ece6 clrl 5ece6 <_POSIX_signals_Ualarm_timer+0x8> the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 44d7a: 4282 clrl %d2 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 44d7c: 203c 0004 4e4c movel #282188,%d0 the_watchdog->id = id; 44d82: 42b9 0005 ecfe clrl 5ecfe <_POSIX_signals_Ualarm_timer+0x20> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 44d88: 23c0 0005 ecfa movel %d0,5ecfa <_POSIX_signals_Ualarm_timer+0x1c> the_watchdog->id = id; the_watchdog->user_data = user_data; 44d8e: 42b9 0005 ed02 clrl 5ed02 <_POSIX_signals_Ualarm_timer+0x24> 44d94: 6058 bras 44dee _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); 44d96: 4879 0005 ecde pea 5ecde <_POSIX_signals_Ualarm_timer> 44d9c: 4eb9 0004 8338 jsr 48338 <_Watchdog_Remove> if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { 44da2: 588f addql #4,%sp 44da4: 7201 moveq #1,%d1 44da6: 5580 subql #2,%d0 44da8: b280 cmpl %d0,%d1 44daa: 6404 bccs 44db0 44dac: 4282 clrl %d2 <== NOT EXECUTED 44dae: 603e bras 44dee <== 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); 44db0: 2039 0005 ecf2 movel 5ecf2 <_POSIX_signals_Ualarm_timer+0x14>,%d0 44db6: d0b9 0005 ecea addl 5ecea <_POSIX_signals_Ualarm_timer+0xc>,%d0 /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); 44dbc: 486e fff8 pea %fp@(-8) 44dc0: 90b9 0005 ecf6 subl 5ecf6 <_POSIX_signals_Ualarm_timer+0x18>,%d0 remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 44dc6: 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 ); 44dcc: 2f00 movel %d0,%sp@- 44dce: 4eb9 0004 7e60 jsr 47e60 <_Timespec_From_ticks> remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 44dd4: 202e fff8 movel %fp@(-8),%d0 44dd8: 4c04 0800 mulsl %d4,%d0 remaining += tp.tv_nsec / 1000; 44ddc: 283c 0000 03e8 movel #1000,%d4 44de2: 508f addql #8,%sp 44de4: 242e fffc movel %fp@(-4),%d2 44de8: 4c44 2802 remsl %d4,%d2,%d2 44dec: 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 ) { 44dee: 4a83 tstl %d3 44df0: 674e beqs 44e40 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 ); 44df2: 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; 44df4: 223c 000f 4240 movel #1000000,%d1 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); 44dfa: 5184 subql #8,%d4 44dfc: 45f9 0004 7ee4 lea 47ee4 <_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; 44e02: 4c41 3000 remul %d1,%d0,%d3 44e06: 4c41 3003 remul %d1,%d3,%d3 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; 44e0a: 223c 0000 03e8 movel #1000,%d1 44e10: 4c00 1800 mulsl %d0,%d1 ticks = _Timespec_To_ticks( &tp ); 44e14: 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; 44e16: 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; 44e1a: 2d43 fff8 movel %d3,%fp@(-8) tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); 44e1e: 4e92 jsr %a2@ if ( ticks == 0 ) ticks = 1; _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); 44e20: 2f04 movel %d4,%sp@- 44e22: 4e92 jsr %a2@ ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 44e24: 4879 0005 ecde pea 5ecde <_POSIX_signals_Ualarm_timer> 44e2a: 4879 0005 e590 pea 5e590 <_Watchdog_Ticks_chain> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 44e30: 23c0 0005 ecea movel %d0,5ecea <_POSIX_signals_Ualarm_timer+0xc> _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 44e36: 4eb9 0004 821c jsr 4821c <_Watchdog_Insert> 44e3c: 4fef 0010 lea %sp@(16),%sp } return remaining; } 44e40: 2002 movel %d2,%d0 44e42: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 44e48: 4e5e unlk %fp <== NOT EXECUTED 0004c3b8 : #include int unlink( const char *path ) { 4c3b8: 4e56 ffc0 linkw %fp,#-64 4c3bc: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 4c3c0: 246e 0008 moveal %fp@(8),%a2 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4c3c4: 2f0a movel %a2,%sp@- 4c3c6: 4eb9 0004 2128 jsr 42128 if ( parentpathlen == 0 ) 4c3cc: 588f addql #4,%sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4c3ce: 2a00 movel %d0,%d5 if ( parentpathlen == 0 ) 4c3d0: 664a bnes 4c41c rtems_filesystem_get_start_loc( path, &i, &parentloc ); 4c3d2: 742f moveq #47,%d2 4c3d4: 1012 moveb %a2@,%d0 4c3d6: 1200 moveb %d0,%d1 4c3d8: 49c1 extbl %d1 4c3da: b481 cmpl %d1,%d2 4c3dc: 670c beqs 4c3ea 4c3de: 143c 005c moveb #92,%d2 4c3e2: b481 cmpl %d1,%d2 4c3e4: 6704 beqs 4c3ea 4c3e6: 4a00 tstb %d0 4c3e8: 6612 bnes 4c3fc 4c3ea: 4878 0014 pea 14 4c3ee: 2079 0005 b5b4 moveal 5b5b4 ,%a0 4c3f4: 41e8 0018 lea %a0@(24),%a0 4c3f8: 2f08 movel %a0,%sp@- 4c3fa: 600e bras 4c40a 4c3fc: 4878 0014 pea 14 4c400: 2039 0005 b5b4 movel 5b5b4 ,%d0 4c406: 5880 addql #4,%d0 4c408: 2f00 movel %d0,%sp@- 4c40a: 486e ffec pea %fp@(-20) 4c40e: 4203 clrb %d3 4c410: 4eb9 0004 d2a8 jsr 4d2a8 4c416: 4fef 000c lea %sp@(12),%sp 4c41a: 6020 bras 4c43c else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 4c41c: 42a7 clrl %sp@- 4c41e: 486e ffec pea %fp@(-20) 4c422: 4878 0002 pea 2 4c426: 2f00 movel %d0,%sp@- 4c428: 2f0a movel %a2,%sp@- 4c42a: 4eb9 0004 223e jsr 4223e RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 4c430: 4fef 0014 lea %sp@(20),%sp 4c434: 4a80 tstl %d0 4c436: 6600 015c bnew 4c594 4c43a: 7601 moveq #1,%d3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4c43c: 4878 0014 pea 14 4c440: 280e movel %fp,%d4 4c442: 0684 ffff ffec addil #-20,%d4 4c448: 240e movel %fp,%d2 4c44a: 0682 ffff ffd8 addil #-40,%d2 name = path + parentpathlen; 4c450: d5c5 addal %d5,%a2 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4c452: 47f9 0004 de54 lea 4de54 ,%a3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4c458: 2f04 movel %d4,%sp@- 4c45a: 2f02 movel %d2,%sp@- 4c45c: 4eb9 0004 d2a8 jsr 4d2a8 name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4c462: 2f0a movel %a2,%sp@- 4c464: 4e93 jsr %a3@ 4c466: 2e80 movel %d0,%sp@ 4c468: 2f0a movel %a2,%sp@- 4c46a: 4eb9 0004 20f0 jsr 420f0 4c470: d5c0 addal %d0,%a2 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4c472: 2f0a movel %a2,%sp@- 4c474: 4e93 jsr %a3@ 4c476: 4297 clrl %sp@ 4c478: 2f02 movel %d2,%sp@- 4c47a: 42a7 clrl %sp@- 4c47c: 2f00 movel %d0,%sp@- 4c47e: 2f0a movel %a2,%sp@- 4c480: 4eb9 0004 216e jsr 4216e 0, &loc, false ); if ( result != 0 ) { 4c486: 4fef 0028 lea %sp@(40),%sp 4c48a: 4a80 tstl %d0 4c48c: 6722 beqs 4c4b0 if ( free_parentloc ) 4c48e: 4a03 tstb %d3 4c490: 6700 0102 beqw 4c594 rtems_filesystem_freenode( &parentloc ); 4c494: 206e fff8 moveal %fp@(-8),%a0 4c498: 4a88 tstl %a0 4c49a: 6700 00f8 beqw 4c594 4c49e: 2068 001c moveal %a0@(28),%a0 4c4a2: 4a88 tstl %a0 4c4a4: 6700 00ee beqw 4c594 4c4a8: 2f04 movel %d4,%sp@- 4c4aa: 78ff moveq #-1,%d4 4c4ac: 6000 00e0 braw 4c58e return -1; } if ( !loc.ops->node_type_h ) { 4c4b0: 226e ffe4 moveal %fp@(-28),%a1 4c4b4: 2069 0010 moveal %a1@(16),%a0 4c4b8: 4a88 tstl %a0 4c4ba: 6606 bnes 4c4c2 rtems_filesystem_freenode( &loc ); 4c4bc: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 4c4c0: 605c bras 4c51e <== 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 ) { 4c4c2: 2f02 movel %d2,%sp@- 4c4c4: 4e90 jsr %a0@ 4c4c6: 206e ffe4 moveal %fp@(-28),%a0 4c4ca: 588f addql #4,%sp 4c4cc: 7201 moveq #1,%d1 4c4ce: b280 cmpl %d0,%d1 4c4d0: 6640 bnes 4c512 rtems_filesystem_freenode( &loc ); 4c4d2: 4a88 tstl %a0 4c4d4: 670e beqs 4c4e4 4c4d6: 2068 001c moveal %a0@(28),%a0 4c4da: 4a88 tstl %a0 4c4dc: 6706 beqs 4c4e4 4c4de: 2f02 movel %d2,%sp@- 4c4e0: 4e90 jsr %a0@ 4c4e2: 588f addql #4,%sp if ( free_parentloc ) 4c4e4: 4a03 tstb %d3 4c4e6: 6718 beqs 4c500 rtems_filesystem_freenode( &parentloc ); 4c4e8: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4c4ec: 4a88 tstl %a0 <== NOT EXECUTED 4c4ee: 6710 beqs 4c500 <== NOT EXECUTED 4c4f0: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c4f4: 4a88 tstl %a0 <== NOT EXECUTED 4c4f6: 6708 beqs 4c500 <== NOT EXECUTED 4c4f8: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4c4fc: 4e90 jsr %a0@ <== NOT EXECUTED 4c4fe: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 4c500: 4eb9 0004 ca88 jsr 4ca88 <__errno> 4c506: 78ff moveq #-1,%d4 4c508: 2040 moveal %d0,%a0 4c50a: 7015 moveq #21,%d0 4c50c: 2080 movel %d0,%a0@ 4c50e: 6000 0086 braw 4c596 } if ( !loc.ops->unlink_h ) { 4c512: 2268 000c moveal %a0@(12),%a1 4c516: 4a89 tstl %a1 4c518: 663c bnes 4c556 rtems_filesystem_freenode( &loc ); 4c51a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c51e: 4a88 tstl %a0 <== NOT EXECUTED 4c520: 6706 beqs 4c528 <== NOT EXECUTED 4c522: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c524: 4e90 jsr %a0@ <== NOT EXECUTED 4c526: 588f addql #4,%sp <== NOT EXECUTED if ( free_parentloc ) 4c528: 4a03 tstb %d3 <== NOT EXECUTED 4c52a: 6718 beqs 4c544 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 4c52c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4c530: 4a88 tstl %a0 <== NOT EXECUTED 4c532: 6710 beqs 4c544 <== NOT EXECUTED 4c534: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4c538: 4a88 tstl %a0 <== NOT EXECUTED 4c53a: 6708 beqs 4c544 <== NOT EXECUTED 4c53c: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4c540: 4e90 jsr %a0@ <== NOT EXECUTED 4c542: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4c544: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 4c54a: 78ff moveq #-1,%d4 <== NOT EXECUTED 4c54c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4c54e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4c554: 6040 bras 4c596 <== NOT EXECUTED } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 4c556: 2f02 movel %d2,%sp@- 4c558: 2f04 movel %d4,%sp@- 4c55a: 4e91 jsr %a1@ rtems_filesystem_freenode( &loc ); 4c55c: 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 ); 4c560: 2800 movel %d0,%d4 rtems_filesystem_freenode( &loc ); 4c562: 508f addql #8,%sp 4c564: 4a88 tstl %a0 4c566: 670e beqs 4c576 4c568: 2068 001c moveal %a0@(28),%a0 4c56c: 4a88 tstl %a0 4c56e: 6706 beqs 4c576 4c570: 2f02 movel %d2,%sp@- 4c572: 4e90 jsr %a0@ 4c574: 588f addql #4,%sp if ( free_parentloc ) 4c576: 4a03 tstb %d3 4c578: 671c beqs 4c596 rtems_filesystem_freenode( &parentloc ); 4c57a: 206e fff8 moveal %fp@(-8),%a0 4c57e: 4a88 tstl %a0 4c580: 6714 beqs 4c596 4c582: 2068 001c moveal %a0@(28),%a0 4c586: 4a88 tstl %a0 4c588: 670c beqs 4c596 4c58a: 486e ffec pea %fp@(-20) 4c58e: 4e90 jsr %a0@ 4c590: 588f addql #4,%sp 4c592: 6002 bras 4c596 4c594: 78ff moveq #-1,%d4 <== NOT EXECUTED return result; } 4c596: 2004 movel %d4,%d0 4c598: 4cee 0c3c ffc0 moveml %fp@(-64),%d2-%d5/%a2-%a3 4c59e: 4e5e unlk %fp <== NOT EXECUTED 00061dda : */ int unmount( const char *path ) { 61dda: 4e56 ffec linkw %fp,#-20 61dde: 2f0a movel %a2,%sp@- 61de0: 246e 0008 moveal %fp@(8),%a2 61de4: 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 ) ) 61de6: 240e movel %fp,%d2 61de8: 0682 ffff ffec addil #-20,%d2 61dee: 2f0a movel %a2,%sp@- 61df0: 4eb9 0007 c0d8 jsr 7c0d8 61df6: 7201 moveq #1,%d1 61df8: 2e81 movel %d1,%sp@ 61dfa: 2f02 movel %d2,%sp@- 61dfc: 42a7 clrl %sp@- 61dfe: 2f00 movel %d0,%sp@- 61e00: 2f0a movel %a2,%sp@- 61e02: 4eb9 0004 578a jsr 4578a 61e08: 4fef 0014 lea %sp@(20),%sp 61e0c: 4a80 tstl %d0 61e0e: 6600 011c bnew 61f2c return -1; mt_entry = loc.mt_entry; 61e12: 246e fffc moveal %fp@(-4),%a2 61e16: 206e fff8 moveal %fp@(-8),%a0 fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 61e1a: 202e ffec movel %fp@(-20),%d0 61e1e: b0aa 001c cmpl %a2@(28),%d0 61e22: 6724 beqs 61e48 /* * 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 ); 61e24: 4a88 tstl %a0 61e26: 670e beqs 61e36 61e28: 2068 001c moveal %a0@(28),%a0 61e2c: 4a88 tstl %a0 61e2e: 6706 beqs 61e36 61e30: 2f02 movel %d2,%sp@- 61e32: 4e90 jsr %a0@ 61e34: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EACCES ); 61e36: 4eb9 0007 6030 jsr 76030 <__errno> 61e3c: 740d moveq #13,%d2 61e3e: 72ff moveq #-1,%d1 61e40: 2040 moveal %d0,%a0 61e42: 2082 movel %d2,%a0@ 61e44: 6000 00e8 braw 61f2e /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 61e48: 4a88 tstl %a0 61e4a: 670e beqs 61e5a 61e4c: 2068 001c moveal %a0@(28),%a0 61e50: 4a88 tstl %a0 61e52: 6706 beqs 61e5a 61e54: 2f02 movel %d2,%sp@- 61e56: 4e90 jsr %a0@ 61e58: 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; 61e5a: 206a 0014 moveal %a2@(20),%a0 61e5e: 4aa8 0028 tstl %a0@(40) 61e62: 670a beqs 61e6e fs_root_loc = &mt_entry->mt_fs_root; 61e64: 206a 0028 moveal %a2@(40),%a0 61e68: 4aa8 002c tstl %a0@(44) 61e6c: 6614 bnes 61e82 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 ); 61e6e: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61e74: 72ff moveq #-1,%d1 <== NOT EXECUTED 61e76: 2040 moveal %d0,%a0 <== NOT EXECUTED 61e78: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61e7e: 6000 00ae braw 61f2e <== 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 ) 61e82: 2079 0009 71bc moveal 971bc ,%a0 61e88: b5e8 0014 cmpal %a0@(20),%a2 61e8c: 6720 beqs 61eae /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 61e8e: 2079 0009 bba4 moveal 9bba4 ,%a0 61e94: 600c bras 61ea2 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; 61e96: 202a 002c movel %a2@(44),%d0 61e9a: b0a8 0018 cmpl %a0@(24),%d0 61e9e: 670e beqs 61eae * 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 ) { 61ea0: 2050 moveal %a0@,%a0 61ea2: b1fc 0009 bba8 cmpal #637864,%a0 61ea8: 66ec bnes 61e96 61eaa: 6000 0090 braw 61f3c * 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 ); 61eae: 4eb9 0007 6030 jsr 76030 <__errno> 61eb4: 72ff moveq #-1,%d1 61eb6: 2040 moveal %d0,%a0 61eb8: 7010 moveq #16,%d0 61eba: 2080 movel %d0,%a0@ 61ebc: 6070 bras 61f2e * 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 ) 61ebe: 206a 0014 moveal %a2@(20),%a0 61ec2: 2f0a movel %a2,%sp@- 61ec4: 2068 0028 moveal %a0@(40),%a0 61ec8: 4e90 jsr %a0@ 61eca: 588f addql #4,%sp 61ecc: 4a80 tstl %d0 61ece: 665c bnes 61f2c * 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){ 61ed0: 206a 0028 moveal %a2@(40),%a0 61ed4: 2f0a movel %a2,%sp@- 61ed6: 2068 002c moveal %a0@(44),%a0 61eda: 4e90 jsr %a0@ 61edc: 588f addql #4,%sp 61ede: 4a80 tstl %d0 61ee0: 671a beqs 61efc if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 61ee2: 206a 0014 moveal %a2@(20),%a0 <== NOT EXECUTED 61ee6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61ee8: 2068 0020 moveal %a0@(32),%a0 <== NOT EXECUTED 61eec: 4e90 jsr %a0@ <== NOT EXECUTED 61eee: 588f addql #4,%sp <== NOT EXECUTED 61ef0: 4a80 tstl %d0 <== NOT EXECUTED 61ef2: 6738 beqs 61f2c <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 61ef4: 42a7 clrl %sp@- <== NOT EXECUTED 61ef6: 4eb9 0004 97ac jsr 497ac <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 61efc: 2f0a movel %a2,%sp@- 61efe: 4eb9 0004 9af8 jsr 49af8 <_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 ); 61f04: 206a 0014 moveal %a2@(20),%a0 61f08: 588f addql #4,%sp 61f0a: 4a88 tstl %a0 61f0c: 6710 beqs 61f1e 61f0e: 2068 001c moveal %a0@(28),%a0 61f12: 4a88 tstl %a0 61f14: 6708 beqs 61f1e 61f16: 486a 0008 pea %a2@(8) 61f1a: 4e90 jsr %a0@ 61f1c: 588f addql #4,%sp free( mt_entry ); 61f1e: 2f0a movel %a2,%sp@- 61f20: 4eb9 0004 5854 jsr 45854 return 0; 61f26: 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 ); 61f28: 4281 clrl %d1 return 0; 61f2a: 6002 bras 61f2e 61f2c: 72ff moveq #-1,%d1 } 61f2e: 242e ffe4 movel %fp@(-28),%d2 61f32: 2001 movel %d1,%d0 61f34: 246e ffe8 moveal %fp@(-24),%a2 61f38: 4e5e unlk %fp 61f3a: 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 ) 61f3c: 2f0a movel %a2,%sp@- 61f3e: 4eb9 0004 5ad0 jsr 45ad0 61f44: 588f addql #4,%sp 61f46: 7201 moveq #1,%d1 61f48: b280 cmpl %d0,%d1 61f4a: 6600 ff72 bnew 61ebe 61f4e: 6000 ff5e braw 61eae ... 00061f54 : int utime( const char *path, const struct utimbuf *times ) { 61f54: 4e56 ffe0 linkw %fp,#-32 61f58: 48d7 040c moveml %d2-%d3/%a2,%sp@ 61f5c: 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 ) ) 61f60: 240e movel %fp,%d2 61f62: 0682 ffff ffec addil #-20,%d2 61f68: 2f03 movel %d3,%sp@- int utime( const char *path, const struct utimbuf *times ) { 61f6a: 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 ) ) 61f6e: 4eb9 0007 c0d8 jsr 7c0d8 61f74: 7201 moveq #1,%d1 61f76: 2e81 movel %d1,%sp@ 61f78: 2f02 movel %d2,%sp@- 61f7a: 42a7 clrl %sp@- 61f7c: 2f00 movel %d0,%sp@- 61f7e: 2f03 movel %d3,%sp@- 61f80: 4eb9 0004 578a jsr 4578a 61f86: 4fef 0014 lea %sp@(20),%sp 61f8a: 4a80 tstl %d0 61f8c: 6704 beqs 61f92 61f8e: 76ff moveq #-1,%d3 61f90: 6052 bras 61fe4 return -1; if ( !temp_loc.ops->utime_h ){ 61f92: 226e fff8 moveal %fp@(-8),%a1 61f96: 2069 0030 moveal %a1@(48),%a0 61f9a: 4a88 tstl %a0 61f9c: 6620 bnes 61fbe rtems_filesystem_freenode( &temp_loc ); 61f9e: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61fa2: 4a88 tstl %a0 <== NOT EXECUTED 61fa4: 6706 beqs 61fac <== NOT EXECUTED 61fa6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61fa8: 4e90 jsr %a0@ <== NOT EXECUTED 61faa: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61fac: 4eb9 0007 6030 jsr 76030 <__errno> <== NOT EXECUTED 61fb2: 76ff moveq #-1,%d3 <== NOT EXECUTED 61fb4: 2040 moveal %d0,%a0 <== NOT EXECUTED 61fb6: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61fbc: 6026 bras 61fe4 <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 61fbe: 2f2a 0004 movel %a2@(4),%sp@- 61fc2: 2f12 movel %a2@,%sp@- 61fc4: 2f02 movel %d2,%sp@- 61fc6: 4e90 jsr %a0@ rtems_filesystem_freenode( &temp_loc ); 61fc8: 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 ); 61fcc: 2600 movel %d0,%d3 rtems_filesystem_freenode( &temp_loc ); 61fce: 4fef 000c lea %sp@(12),%sp 61fd2: 4a88 tstl %a0 61fd4: 670e beqs 61fe4 61fd6: 2068 001c moveal %a0@(28),%a0 61fda: 4a88 tstl %a0 61fdc: 6706 beqs 61fe4 61fde: 2f02 movel %d2,%sp@- 61fe0: 4e90 jsr %a0@ 61fe2: 588f addql #4,%sp return result; } 61fe4: 2003 movel %d3,%d0 61fe6: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 61fec: 4e5e unlk %fp <== NOT EXECUTED 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 a3ef movel #369647,%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 4474c: 49c0 extbl %d0 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 BSP_output_char(chr); 44750: 2f00 movel %d0,%sp@- 44752: 6000 00da braw 4482e 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 a3ee lea 5a3ee ,%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 b59c moveal 5b59c ,%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 b59c moveal 5b59c ,%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 b59c moveal 5b59c ,%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 b59c moveal 5b59c ,%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 b59c moveal 5b59c ,%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 <== NOT EXECUTED 00059698 : ssize_t write( int fd, const void *buffer, size_t count ) { 59698: 4e56 fff4 linkw %fp,#-12 5969c: 202e 000c movel %fp@(12),%d0 596a0: 48d7 040c moveml %d2-%d3/%a2,%sp@ 596a4: 242e 0008 movel %fp@(8),%d2 596a8: 222e 0010 movel %fp@(16),%d1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 596ac: b4b9 0005 b4a4 cmpl 5b4a4 ,%d2 596b2: 6414 bccs 596c8 iop = rtems_libio_iop( fd ); 596b4: 2479 0005 cba8 moveal 5cba8 ,%a2 596ba: ed8a lsll #6,%d2 596bc: d5c2 addal %d2,%a2 rtems_libio_check_is_open( iop ); 596be: 242a 0014 movel %a2@(20),%d2 596c2: 0802 0008 btst #8,%d2 596c6: 6610 bnes 596d8 596c8: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 596ce: 7409 moveq #9,%d2 <== NOT EXECUTED 596d0: 72ff moveq #-1,%d1 <== NOT EXECUTED 596d2: 2040 moveal %d0,%a0 <== NOT EXECUTED 596d4: 2082 movel %d2,%a0@ <== NOT EXECUTED 596d6: 605e bras 59736 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 596d8: 4a80 tstl %d0 596da: 6708 beqs 596e4 rtems_libio_check_count( count ); 596dc: 4a81 tstl %d1 596de: 6756 beqs 59736 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 596e0: 44c2 movew %d2,%ccr 596e2: 6710 beqs 596f4 596e4: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 596ea: 72ff moveq #-1,%d1 <== NOT EXECUTED 596ec: 2040 moveal %d0,%a0 <== NOT EXECUTED 596ee: 7016 moveq #22,%d0 <== NOT EXECUTED 596f0: 2080 movel %d0,%a0@ <== NOT EXECUTED 596f2: 6042 bras 59736 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 596f4: 206a 003c moveal %a2@(60),%a0 596f8: 2068 000c moveal %a0@(12),%a0 596fc: 4a88 tstl %a0 596fe: 6612 bnes 59712 rtems_set_errno_and_return_minus_one( ENOTSUP ); 59700: 4eb9 0004 ca88 jsr 4ca88 <__errno> <== NOT EXECUTED 59706: 72ff moveq #-1,%d1 <== NOT EXECUTED 59708: 2040 moveal %d0,%a0 <== NOT EXECUTED 5970a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 59710: 6024 bras 59736 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 59712: 2f01 movel %d1,%sp@- 59714: 2f00 movel %d0,%sp@- 59716: 2f0a movel %a2,%sp@- 59718: 4e90 jsr %a0@ if ( rc > 0 ) 5971a: 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 ); 5971e: 2200 movel %d0,%d1 if ( rc > 0 ) 59720: 6f14 bles 59736 iop->offset += rc; 59722: 2600 movel %d0,%d3 59724: 5bc2 smi %d2 59726: 49c2 extbl %d2 59728: d7aa 0010 addl %d3,%a2@(16) 5972c: 202a 000c movel %a2@(12),%d0 59730: d182 addxl %d2,%d0 59732: 2540 000c movel %d0,%a2@(12) return rc; } 59736: 2001 movel %d1,%d0 59738: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 5973e: 4e5e unlk %fp ... 00045f1c : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 45f1c: 4e56 ffe4 linkw %fp,#-28 45f20: 202e 0008 movel %fp@(8),%d0 45f24: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 45f28: 266e 000c moveal %fp@(12),%a3 45f2c: 262e 0010 movel %fp@(16),%d3 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 45f30: b0b9 0005 ecd4 cmpl 5ecd4 ,%d0 45f36: 6414 bccs 45f4c iop = rtems_libio_iop( fd ); 45f38: 2479 0006 0bac moveal 60bac ,%a2 45f3e: ed88 lsll #6,%d0 45f40: d5c0 addal %d0,%a2 rtems_libio_check_is_open( iop ); 45f42: 202a 0014 movel %a2@(20),%d0 45f46: 0800 0008 btst #8,%d0 45f4a: 6612 bnes 45f5e 45f4c: 4eb9 0004 eb44 jsr 4eb44 <__errno> 45f52: 74ff moveq #-1,%d2 45f54: 7209 moveq #9,%d1 45f56: 2040 moveal %d0,%a0 45f58: 2081 movel %d1,%a0@ 45f5a: 6000 00ce braw 4602a rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 45f5e: 44c0 movew %d0,%ccr 45f60: 665c bnes 45fbe /* * Argument validation on IO vector */ if ( !iov ) 45f62: 4a8b tstl %a3 45f64: 6758 beqs 45fbe rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 45f66: 4a83 tstl %d3 45f68: 6f54 bles 45fbe rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 45f6a: 0c83 0000 0400 cmpil #1024,%d3 45f70: 6e4c bgts 45fbe rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 45f72: 206a 003c moveal %a2@(60),%a0 45f76: 4aa8 000c tstl %a0@(12) 45f7a: 6614 bnes 45f90 rtems_set_errno_and_return_minus_one( ENOTSUP ); 45f7c: 4eb9 0004 eb44 jsr 4eb44 <__errno> <== NOT EXECUTED 45f82: 74ff moveq #-1,%d2 <== NOT EXECUTED 45f84: 2040 moveal %d0,%a0 <== NOT EXECUTED 45f86: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 45f8c: 6000 009c braw 4602a <== NOT EXECUTED 45f90: 204b moveal %a3,%a0 45f92: 4281 clrl %d1 45f94: 4280 clrl %d0 45f96: 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++ ) { 45f98: 5281 addql #1,%d1 if ( !iov[v].iov_base ) 45f9a: 4a90 tstl %a0@ 45f9c: 6720 beqs 45fbe 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 ) 45f9e: 2268 0004 moveal %a0@(4),%a1 45fa2: 4a89 tstl %a1 45fa4: 57c2 seq %d2 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 45fa6: 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++ ) { 45faa: 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 ) 45fac: c484 andl %d4,%d2 45fae: 1802 moveb %d2,%d4 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 45fb0: b089 cmpl %a1,%d0 45fb2: 6e0a bgts 45fbe * 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++ ) { 45fb4: 2009 movel %a1,%d0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 45fb6: b3fc 0000 7fff cmpal #32767,%a1 45fbc: 6f10 bles 45fce rtems_set_errno_and_return_minus_one( EINVAL ); 45fbe: 4eb9 0004 eb44 jsr 4eb44 <__errno> 45fc4: 74ff moveq #-1,%d2 45fc6: 2040 moveal %d0,%a0 45fc8: 7016 moveq #22,%d0 45fca: 2080 movel %d0,%a0@ 45fcc: 605c bras 4602a * 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++ ) { 45fce: b681 cmpl %d1,%d3 45fd0: 6ec6 bgts 45f98 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 45fd2: 4a02 tstb %d2 45fd4: 6704 beqs 45fda 45fd6: 4282 clrl %d2 45fd8: 6050 bras 4602a 45fda: 588b addql #4,%a3 45fdc: 4284 clrl %d4 45fde: 4282 clrl %d2 /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 45fe0: 2013 movel %a3@,%d0 } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 45fe2: 5284 addql #1,%d4 /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 45fe4: 4a80 tstl %d0 45fe6: 673c beqs 46024 continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 45fe8: 206a 003c moveal %a2@(60),%a0 45fec: 2f00 movel %d0,%sp@- 45fee: 2f2b fffc movel %a3@(-4),%sp@- 45ff2: 2f0a movel %a2,%sp@- 45ff4: 2068 000c moveal %a0@(12),%a0 45ff8: 4e90 jsr %a0@ if ( bytes < 0 ) 45ffa: 4fef 000c lea %sp@(12),%sp 45ffe: 4a80 tstl %d0 46000: 6c04 bges 46006 46002: 74ff moveq #-1,%d2 <== NOT EXECUTED 46004: 6024 bras 4602a <== NOT EXECUTED return -1; if ( bytes > 0 ) { 46006: 4a80 tstl %d0 46008: 6716 beqs 46020 iop->offset += bytes; total += bytes; 4600a: d480 addl %d0,%d2 if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 4600c: 2c00 movel %d0,%d6 4600e: 5bc5 smi %d5 46010: 49c5 extbl %d5 46012: ddaa 0010 addl %d6,%a2@(16) 46016: 222a 000c movel %a2@(12),%d1 4601a: d385 addxl %d5,%d1 4601c: 2541 000c movel %d1,%a2@(12) total += bytes; } if (bytes != iov[ v ].iov_len) 46020: b093 cmpl %a3@,%d0 46022: 6606 bnes 4602a } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 46024: 508b addql #8,%a3 46026: b684 cmpl %d4,%d3 46028: 6eb6 bgts 45fe0 if (bytes != iov[ v ].iov_len) break; } return total; } 4602a: 2002 movel %d2,%d0 4602c: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 46032: 4e5e unlk %fp ...