0004944c : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 4944c: 7007 moveq #7,%d0 #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 4944e: 4e56 0000 linkw %fp,#0 49452: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 49456: 2268 0010 moveal %a0@(16),%a1 #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 4945a: 2f0a movel %a2,%sp@- IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 4945c: 2469 0034 moveal %a1@(52),%a2 switch( node->type ) { 49460: 2250 moveal %a0@,%a1 49462: b0a9 0048 cmpl %a1@(72),%d0 49466: 6526 bcss 4948e 49468: 2029 0048 movel %a1@(72),%d0 4946c: d080 addl %d0,%d0 4946e: 303b 0808 movew %pc@(49478 ,%d0:l),%d0 49472: 48c0 extl %d0 49474: 4efb 0802 jmp %pc@(49478 ,%d0:l) 49478: 0016 026 <== NOT EXECUTED 4947a: 0010 020 <== NOT EXECUTED 4947c: 0050 0120 <== NOT EXECUTED 4947e: 002c 054 <== NOT EXECUTED 49480: 002c 054 <== NOT EXECUTED 49482: 001e 036 <== NOT EXECUTED 49484: 001e 036 <== NOT EXECUTED 49486: 003e 076 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 49488: 216a 0008 0008 movel %a2@(8),%a0@(8) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 4948e: 245f moveal %sp@+,%a2 49490: 4280 clrl %d0 49492: 4e5e unlk %fp 49494: 4e75 rts 49496: 4280 clrl %d0 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 49498: 216a 0004 0008 movel %a2@(4),%a0@(8) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 4949e: 245f moveal %sp@+,%a2 494a0: 4e5e unlk %fp 494a2: 4e75 rts 494a4: 245f moveal %sp@+,%a2 case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 494a6: 203c 0005 cb24 movel #379684,%d0 loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 494ac: 4e5e unlk %fp case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 494ae: 2140 0008 movel %d0,%a0@(8) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 494b2: 4280 clrl %d0 494b4: 4e75 rts 494b6: 245f moveal %sp@+,%a2 break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 494b8: 203c 0005 ca48 movel #379464,%d0 break; } return 0; } 494be: 4e5e unlk %fp break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 494c0: 2140 0008 movel %d0,%a0@(8) break; } return 0; } 494c4: 4280 clrl %d0 494c6: 4e75 rts 494c8: 245f moveal %sp@+,%a2 switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 494ca: 203c 0005 caec movel #379628,%d0 loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 494d0: 4e5e unlk %fp switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 494d2: 2140 0008 movel %d0,%a0@(8) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 494d6: 4280 clrl %d0 494d8: 4e75 rts 0004ea28 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4ea28: 4e56 ffe8 linkw %fp,#-24 4ea2c: 206e 0008 moveal %fp@(8),%a0 4ea30: 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; 4ea34: 2450 moveal %a0@,%a2 */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4ea36: 4284 clrl %d4 int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4ea38: 362e 000e movew %fp@(14),%d3 4ea3c: 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(); 4ea40: 4eb9 0004 fecc jsr 4fecc if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4ea46: 4281 clrl %d1 4ea48: 3800 movew %d0,%d4 4ea4a: 322a 0038 movew %a2@(56),%d1 4ea4e: b284 cmpl %d4,%d1 4ea50: 6704 beqs 4ea56 4ea52: 4a40 tstw %d0 <== NOT EXECUTED 4ea54: 6628 bnes 4ea7e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 4ea56: 3543 0038 movew %d3,%a2@(56) jnode->st_gid = group; 4ea5a: 3542 003a movew %d2,%a2@(58) IMFS_update_ctime( jnode ); 4ea5e: 42a7 clrl %sp@- 4ea60: 486e fff8 pea %fp@(-8) 4ea64: 4eb9 0004 404c jsr 4404c 4ea6a: 256e fff8 0044 movel %fp@(-8),%a2@(68) return 0; 4ea70: 508f addql #8,%sp #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 4ea72: 4280 clrl %d0 return 0; } 4ea74: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4ea7a: 4e5e unlk %fp 4ea7c: 4e75 rts #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4ea7e: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 4ea84: 7201 moveq #1,%d1 <== NOT EXECUTED 4ea86: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ea88: 70ff moveq #-1,%d0 <== NOT EXECUTED jnode->st_gid = group; IMFS_update_ctime( jnode ); return 0; } 4ea8a: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 <== NOT EXECUTED #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4ea90: 2081 movel %d1,%a0@ <== NOT EXECUTED jnode->st_gid = group; IMFS_update_ctime( jnode ); return 0; } 4ea92: 4e5e unlk %fp <== NOT EXECUTED 4ea94: 4e75 rts <== NOT EXECUTED ... 0004d364 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4d364: 4e56 fffc linkw %fp,#-4 4d368: 2f0a movel %a2,%sp@- 4d36a: 246e 0008 moveal %fp@(8),%a2 4d36e: 2f02 movel %d2,%sp@- 4d370: 242e 000c movel %fp@(12),%d2 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 4d374: 4a8a tstl %a2 4d376: 660e bnes 4d386 4d378: 4280 clrl %d0 <== NOT EXECUTED node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 4d37a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 4d37e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4d382: 4e5e unlk %fp <== NOT EXECUTED 4d384: 4e75 rts <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 4d386: 2079 0005 da04 moveal 5da04 ,%a0 4d38c: 2028 002c movel %a0@(44),%d0 4d390: 4680 notl %d0 4d392: c0ae 0014 andl %fp@(20),%d0 4d396: 2f00 movel %d0,%sp@- 4d398: 2f2e 0010 movel %fp@(16),%sp@- 4d39c: 2f02 movel %d2,%sp@- 4d39e: 4eb9 0004 d2ac jsr 4d2ac if ( !node ) 4d3a4: 4fef 000c lea %sp@(12),%sp 4d3a8: 4a80 tstl %d0 4d3aa: 67ce beqs 4d37a return NULL; /* * Set the type specific information */ switch (type) { 4d3ac: 7207 moveq #7,%d1 4d3ae: b282 cmpl %d2,%d1 4d3b0: 641c bccs 4d3ce case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 4d3b2: 4879 0005 ce96 pea 5ce96 <== NOT EXECUTED 4d3b8: 4879 0005 cee1 pea 5cee1 <__FUNCTION__.5834> <== NOT EXECUTED 4d3be: 4878 005c pea 5c <== NOT EXECUTED 4d3c2: 4879 0005 ce98 pea 5ce98 <== NOT EXECUTED 4d3c8: 4eb9 0004 a49c jsr 4a49c <__assert_func> <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 4d3ce: 323b 2a08 movew %pc@(4d3d8 ,%d2:l:2),%d1 4d3d2: 48c1 extl %d1 4d3d4: 4efb 1802 jmp %pc@(4d3d8 ,%d1:l) 4d3d8: ffda 0177732 <== NOT EXECUTED 4d3da: 0134 00f0 btst %d0,%a4@(fffffff0,%d0:w) <== NOT EXECUTED 4d3de: 0010 020 <== NOT EXECUTED 4d3e0: 0010 020 <== NOT EXECUTED 4d3e2: 0068 0150 <== NOT EXECUTED 4d3e4: 0056 0126 <== NOT EXECUTED 4d3e6: 00b6 226e 0018 oril #577634328,%d6 <== NOT EXECUTED case IMFS_HARD_LINK: node->info.hard_link.link_node = info->hard_link.link_node; break; case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; 4d3ec: 2040 moveal %d0,%a0 4d3ee: 2151 004c movel %a1@,%a0@(76) */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d3f2: 2240 moveal %d0,%a1 /* * 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; 4d3f4: 206a 0010 moveal %a2@(16),%a0 4d3f8: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d3fc: 2210 movel %a0@,%d1 4d3fe: 5281 addql #1,%d1 4d400: 2081 movel %d1,%a0@ } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4d402: 2052 moveal %a2@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d404: 2341 0034 movel %d1,%a1@(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; 4d408: 2348 0008 movel %a0,%a1@(8) RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 4d40c: 2f00 movel %d0,%sp@- 4d40e: 4868 004c pea %a0@(76) 4d412: 2d40 fffc movel %d0,%fp@(-4) 4d416: 4eb9 0004 6798 jsr 46798 <_Chain_Append> node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 4d41c: 202e fffc movel %fp@(-4),%d0 4d420: 508f addql #8,%sp } 4d422: 242e fff4 movel %fp@(-12),%d2 4d426: 246e fff8 moveal %fp@(-8),%a2 4d42a: 4e5e unlk %fp 4d42c: 4e75 rts node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; 4d42e: 2040 moveal %d0,%a0 <== 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; 4d430: 4281 clrl %d1 <== NOT EXECUTED 4d432: 4282 clrl %d2 <== NOT EXECUTED node->info.linearfile.direct = 0; 4d434: 42a8 0054 clrl %a0@(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; 4d438: 2141 004c movel %d1,%a0@(76) <== NOT EXECUTED 4d43c: 2142 0050 movel %d2,%a0@(80) <== NOT EXECUTED node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 4d440: 2040 moveal %d0,%a0 node->info.file.indirect = 0; 4d442: 2240 moveal %d0,%a1 case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 4d444: 4281 clrl %d1 4d446: 4282 clrl %d2 node->info.file.indirect = 0; 4d448: 42a9 0054 clrl %a1@(84) case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 4d44c: 2141 004c movel %d1,%a0@(76) 4d450: 2142 0050 movel %d2,%a0@(80) node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; 4d454: 42a9 0058 clrl %a1@(88) */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d458: 2240 moveal %d0,%a1 case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 4d45a: 42a8 005c clrl %a0@(92) /* * 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; 4d45e: 206a 0010 moveal %a2@(16),%a0 4d462: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d466: 2210 movel %a0@,%d1 4d468: 5281 addql #1,%d1 4d46a: 2081 movel %d1,%a0@ } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4d46c: 2052 moveal %a2@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d46e: 2341 0034 movel %d1,%a1@(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; 4d472: 2348 0008 movel %a0,%a1@(8) 4d476: 2f00 movel %d0,%sp@- 4d478: 4868 004c pea %a0@(76) 4d47c: 2d40 fffc movel %d0,%fp@(-4) 4d480: 4eb9 0004 6798 jsr 46798 <_Chain_Append> node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 4d486: 202e fffc movel %fp@(-4),%d0 4d48a: 508f addql #8,%sp 4d48c: 6094 bras 4d422 node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; break; case IMFS_FIFO: node->info.fifo.pipe = NULL; 4d48e: 2240 moveal %d0,%a1 4d490: 42a9 004c clrl %a1@(76) /* * 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; 4d494: 206a 0010 moveal %a2@(16),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d498: 2240 moveal %d0,%a1 /* * 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; 4d49a: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d49e: 2210 movel %a0@,%d1 4d4a0: 5281 addql #1,%d1 4d4a2: 2081 movel %d1,%a0@ } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4d4a4: 2052 moveal %a2@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d4a6: 2341 0034 movel %d1,%a1@(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; 4d4aa: 2348 0008 movel %a0,%a1@(8) 4d4ae: 2f00 movel %d0,%sp@- 4d4b0: 4868 004c pea %a0@(76) 4d4b4: 2d40 fffc movel %d0,%fp@(-4) 4d4b8: 4eb9 0004 6798 jsr 46798 <_Chain_Append> node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 4d4be: 202e fffc movel %fp@(-4),%d0 4d4c2: 508f addql #8,%sp 4d4c4: 6000 ff5c braw 4d422 case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 4d4c8: 226e 0018 moveal %fp@(24),%a1 4d4cc: 2040 moveal %d0,%a0 4d4ce: 2151 004c movel %a1@,%a0@(76) node->info.device.minor = info->device.minor; 4d4d2: 5889 addql #4,%a1 4d4d4: 2151 0050 movel %a1@,%a0@(80) */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d4d8: 2240 moveal %d0,%a1 /* * 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; 4d4da: 206a 0010 moveal %a2@(16),%a0 4d4de: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d4e2: 2210 movel %a0@,%d1 4d4e4: 5281 addql #1,%d1 4d4e6: 2081 movel %d1,%a0@ } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4d4e8: 2052 moveal %a2@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d4ea: 2341 0034 movel %d1,%a1@(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; 4d4ee: 2348 0008 movel %a0,%a1@(8) 4d4f2: 2f00 movel %d0,%sp@- 4d4f4: 4868 004c pea %a0@(76) 4d4f8: 2d40 fffc movel %d0,%fp@(-4) 4d4fc: 4eb9 0004 6798 jsr 46798 <_Chain_Append> node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 4d502: 202e fffc movel %fp@(-4),%d0 4d506: 508f addql #8,%sp 4d508: 6000 ff18 braw 4d422 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4d50c: 2240 moveal %d0,%a1 the_chain->permanent_null = NULL; 4d50e: 2040 moveal %d0,%a0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4d510: 43e9 0050 lea %a1@(80),%a1 4d514: 2149 004c movel %a1,%a0@(76) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4d518: 5989 subql #4,%a1 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 4d51a: 42a8 0050 clrl %a0@(80) the_chain->last = _Chain_Head(the_chain); 4d51e: 2149 0054 movel %a1,%a0@(84) /* * 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; 4d522: 206a 0010 moveal %a2@(16),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d526: 2240 moveal %d0,%a1 /* * 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; 4d528: 2068 0034 moveal %a0@(52),%a0 node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d52c: 2210 movel %a0@,%d1 4d52e: 5281 addql #1,%d1 4d530: 2081 movel %d1,%a0@ } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 4d532: 2052 moveal %a2@,%a0 fs_info = parent_loc->mt_entry->fs_info; node->Parent = parent; node->st_ino = ++fs_info->ino_count; 4d534: 2341 0034 movel %d1,%a1@(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; 4d538: 2348 0008 movel %a0,%a1@(8) 4d53c: 2f00 movel %d0,%sp@- 4d53e: 4868 004c pea %a0@(76) 4d542: 2d40 fffc movel %d0,%fp@(-4) 4d546: 4eb9 0004 6798 jsr 46798 <_Chain_Append> node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 4d54c: 202e fffc movel %fp@(-4),%d0 4d550: 508f addql #8,%sp 4d552: 6000 fece braw 4d422 ... 00043d8a : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 43d8a: 4e56 ffe0 linkw %fp,#-32 43d8e: 206e 0008 moveal %fp@(8),%a0 43d92: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 43d96: 262e 000c movel %fp@(12),%d3 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 43d9a: 4a88 tstl %a0 43d9c: 6700 008c beqw 43e2a assert( level >= 0 ); 43da0: 4a83 tstl %d3 43da2: 6d00 00be bltw 43e62 assert( the_directory->type == IMFS_DIRECTORY ); 43da6: 7001 moveq #1,%d0 43da8: b0a8 0048 cmpl %a0@(72),%d0 43dac: 6600 0098 bnew 43e46 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 43db0: 2808 movel %a0,%d4 43db2: 0684 0000 0050 addil #80,%d4 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 43db8: 2668 004c moveal %a0@(76),%a3 43dbc: b88b cmpl %a3,%d4 43dbe: 6750 beqs 43e10 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 ); 43dc0: 2a03 movel %d3,%d5 43dc2: 45f9 0005 44f4 lea 544f4 ,%a2 43dc8: 49f9 0004 3b72 lea 43b72 ,%a4 43dce: 5285 addql #1,%d5 43dd0: 4bf9 0004 3d8a lea 43d8a ,%a5 for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 43dd6: 4282 clrl %d2 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 43dd8: 2079 0006 43e0 moveal 643e0 <_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++ ) 43dde: 5282 addql #1,%d2 fprintf(stdout, "...." ); 43de0: 2f28 0008 movel %a0@(8),%sp@- 43de4: 4878 0004 pea 4 43de8: 4878 0001 pea 1 43dec: 4879 0006 28f5 pea 628f5 43df2: 4e92 jsr %a2@ !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++ ) 43df4: 4fef 0010 lea %sp@(16),%sp 43df8: b483 cmpl %d3,%d2 43dfa: 6fdc bles 43dd8 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 43dfc: 2f0b movel %a3,%sp@- 43dfe: 4e94 jsr %a4@ if ( the_jnode->type == IMFS_DIRECTORY ) 43e00: 588f addql #4,%sp 43e02: 7001 moveq #1,%d0 43e04: b0ab 0048 cmpl %a3@(72),%d0 43e08: 6710 beqs 43e1a 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 ) { 43e0a: 2653 moveal %a3@,%a3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 43e0c: b88b cmpl %a3,%d4 43e0e: 66c6 bnes 43dd6 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 43e10: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 43e16: 4e5e unlk %fp 43e18: 4e75 rts 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 ); 43e1a: 2f05 movel %d5,%sp@- 43e1c: 2f0b movel %a3,%sp@- 43e1e: 4e95 jsr %a5@ 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 ) { 43e20: 2653 moveal %a3@,%a3 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 ); 43e22: 508f addql #8,%sp assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 43e24: b88b cmpl %a3,%d4 43e26: 66ae bnes 43dd6 43e28: 60e6 bras 43e10 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 43e2a: 4879 0006 28b6 pea 628b6 <== NOT EXECUTED 43e30: 4879 0006 2984 pea 62984 <__FUNCTION__.6585> <== NOT EXECUTED 43e36: 4878 0084 pea 84 <== NOT EXECUTED 43e3a: 4879 0006 280a pea 6280a <== NOT EXECUTED 43e40: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 43e46: 4879 0006 28cf pea 628cf <== NOT EXECUTED 43e4c: 4879 0006 2984 pea 62984 <__FUNCTION__.6585> <== NOT EXECUTED 43e52: 4878 0088 pea 88 <== NOT EXECUTED 43e56: 4879 0006 280a pea 6280a <== NOT EXECUTED 43e5c: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 43e62: 4879 0006 28c4 pea 628c4 <== NOT EXECUTED 43e68: 4879 0006 2984 pea 62984 <__FUNCTION__.6585> <== NOT EXECUTED 43e6e: 4878 0086 pea 86 <== NOT EXECUTED 43e72: 4879 0006 280a pea 6280a <== NOT EXECUTED 43e78: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED 000496d2 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 496d2: 4e56 ffb0 linkw %fp,#-80 496d6: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 496da: 286e 0014 moveal %fp@(20),%a4 496de: 2c0e movel %fp,%d6 496e0: 280e movel %fp,%d4 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 496e2: 4282 clrl %d2 496e4: 5986 subql #4,%d6 496e6: 0684 ffff ffdb addil #-37,%d4 496ec: 2a3c 0004 9fc4 movel #303044,%d5 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 496f2: 2e3c 0004 9f1c movel #302876,%d7 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 496f8: 2a6e 0008 moveal %fp@(8),%a5 496fc: 246e 000c moveal %fp@(12),%a2 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 49700: 2654 moveal %a4@,%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 ); 49702: 2f06 movel %d6,%sp@- 49704: 2045 moveal %d5,%a0 49706: 2f04 movel %d4,%sp@- 49708: 2f0a movel %a2,%sp@- 4970a: 4875 2800 pea %a5@(00000000,%d2:l) 4970e: 4e90 jsr %a0@ pathnamelen -= len; i += len; if ( !pathloc->node_access ) 49710: 2054 moveal %a4@,%a0 * 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 ); 49712: 2600 movel %d0,%d3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 49714: 4fef 0010 lea %sp@(16),%sp */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 49718: 202e fffc movel %fp@(-4),%d0 i += len; if ( !pathloc->node_access ) 4971c: 4a88 tstl %a0 4971e: 6700 00f8 beqw 49818 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 49722: d480 addl %d0,%d2 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 49724: 95c0 subal %d0,%a2 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 49726: 4a83 tstl %d3 49728: 6662 bnes 4978c * 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 ) { 4972a: 7201 moveq #1,%d1 4972c: b2a8 0048 cmpl %a0@(72),%d1 49730: 6600 0132 bnew 49864 if ( node->info.directory.mt_fs != NULL ) { 49734: 2068 0058 moveal %a0@(88),%a0 49738: 4a88 tstl %a0 4973a: 6700 0128 beqw 49864 newloc = node->info.directory.mt_fs->mt_fs_root; 4973e: 2268 0028 moveal %a0@(40),%a1 *pathloc = newloc; 49742: 2968 002c 0010 movel %a0@(44),%a4@(16) * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 49748: 2628 0024 movel %a0@(36),%d3 4974c: 2228 0020 movel %a0@(32),%d1 49750: 2028 001c movel %a0@(28),%d0 *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 49754: 2f0c movel %a4,%sp@- 49756: 206e fffc moveal %fp@(-4),%a0 4975a: 9488 subl %a0,%d2 4975c: 2f2e 0010 movel %fp@(16),%sp@- 49760: 4872 8800 pea %a2@(00000000,%a0:l) 49764: 4875 2800 pea %a5@(00000000,%d2:l) 49768: 2051 moveal %a1@,%a0 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 4976a: 2943 0008 movel %d3,%a4@(8) 4976e: 2941 0004 movel %d1,%a4@(4) 49772: 2880 movel %d0,%a4@ 49774: 2949 000c movel %a1,%a4@(12) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 49778: 4e90 jsr %a0@ 4977a: 4fef 0010 lea %sp@(16),%sp 4977e: 2600 movel %d0,%d3 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49780: 2003 movel %d3,%d0 49782: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 49788: 4e5e unlk %fp 4978a: 4e75 rts /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 4978c: 7001 moveq #1,%d0 4978e: b0ab 0048 cmpl %a3@(72),%d0 49792: 6700 00b8 beqw 4984c if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 49796: 2648 moveal %a0,%a3 switch( type ) { 49798: 7003 moveq #3,%d0 4979a: b083 cmpl %d3,%d0 4979c: 671c beqs 497ba 4979e: 7204 moveq #4,%d1 497a0: b283 cmpl %d3,%d1 497a2: 6700 008e beqw 49832 497a6: 103c 0002 moveb #2,%d0 497aa: b083 cmpl %d3,%d0 497ac: 6748 beqs 497f6 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 497ae: 7004 moveq #4,%d0 497b0: b083 cmpl %d3,%d0 497b2: 6600 ff4e bnew 49702 497b6: 6000 ff72 braw 4972a <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 497ba: 2028 0048 movel %a0@(72),%d0 497be: 7203 moveq #3,%d1 497c0: b280 cmpl %d0,%d1 497c2: 6700 00d8 beqw 4989c node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 497c6: 7204 moveq #4,%d1 497c8: b280 cmpl %d0,%d1 497ca: 6700 00ea beqw 498b6 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 497ce: 7201 moveq #1,%d1 497d0: b280 cmpl %d0,%d1 497d2: 6600 0104 bnew 498d8 /* * 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 ) { 497d6: 206b 0058 moveal %a3@(88),%a0 497da: 4a88 tstl %a0 497dc: 6600 ff60 bnew 4973e /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 497e0: 2f04 movel %d4,%sp@- 497e2: 2047 moveal %d7,%a0 497e4: 2f0b movel %a3,%sp@- 497e6: 4e90 jsr %a0@ if ( !node ) 497e8: 508f addql #8,%sp /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 497ea: 2640 moveal %d0,%a3 if ( !node ) 497ec: 4a80 tstl %d0 497ee: 6728 beqs 49818 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 497f0: 288b movel %a3,%a4@ break; 497f2: 6000 ff0e braw 49702 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 497f6: 2279 0005 da04 moveal 5da04 ,%a1 497fc: b1e9 0018 cmpal %a1@(24),%a0 49800: 6700 ff00 beqw 49702 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 49804: 226c 0010 moveal %a4@(16),%a1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 49808: b1e9 001c cmpal %a1@(28),%a0 4980c: 6700 00e4 beqw 498f2 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 49810: 2668 0008 moveal %a0@(8),%a3 49814: 4a8b tstl %a3 49816: 66d8 bnes 497f0 * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 49818: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4981e: 76ff moveq #-1,%d3 49820: 7c02 moveq #2,%d6 49822: 2040 moveal %d0,%a0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49824: 2003 movel %d3,%d0 * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 49826: 2086 movel %d6,%a0@ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49828: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 4982e: 4e5e unlk %fp 49830: 4e75 rts case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 49832: 4eb9 0004 ede0 jsr 4ede0 <__errno> 49838: 76ff moveq #-1,%d3 4983a: 7a5b moveq #91,%d5 4983c: 2040 moveal %d0,%a0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 4983e: 2003 movel %d3,%d0 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 49840: 2085 movel %d5,%a0@ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49842: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 49848: 4e5e unlk %fp 4984a: 4e75 rts /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 4984c: 4878 0001 pea 1 49850: 2f0c movel %a4,%sp@- 49852: 4eb9 0004 94da jsr 494da 49858: 508f addql #8,%sp 4985a: 4a80 tstl %d0 4985c: 6724 beqs 49882 4985e: 2054 moveal %a4@,%a0 49860: 6000 ff34 braw 49796 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 49864: 2f0c movel %a4,%sp@- 49866: 4eb9 0004 944c jsr 4944c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 4986c: 2eae 0010 movel %fp@(16),%sp@ flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 49870: 2600 movel %d0,%d3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 49872: 2f0c movel %a4,%sp@- 49874: 4eb9 0004 94da jsr 494da 4987a: 508f addql #8,%sp 4987c: 4a80 tstl %d0 4987e: 6600 ff00 bnew 49780 rtems_set_errno_and_return_minus_one( EACCES ); 49882: 4eb9 0004 ede0 jsr 4ede0 <__errno> 49888: 76ff moveq #-1,%d3 4988a: 780d moveq #13,%d4 4988c: 2040 moveal %d0,%a0 return result; } 4988e: 2003 movel %d3,%d0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 49890: 2084 movel %d4,%a0@ return result; } 49892: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 49898: 4e5e unlk %fp 4989a: 4e75 rts * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 4989c: 42a7 clrl %sp@- 4989e: 2f0c movel %a4,%sp@- 498a0: 4eb9 0004 9566 jsr 49566 node = pathloc->node_access; 498a6: 2654 moveal %a4@,%a3 if ( !node ) 498a8: 508f addql #8,%sp 498aa: 4a8b tstl %a3 498ac: 672a beqs 498d8 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 498ae: 202b 0048 movel %a3@(72),%d0 498b2: 6000 ff1a braw 497ce if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 498b6: 42a7 clrl %sp@- 498b8: 2f0c movel %a4,%sp@- 498ba: 4eb9 0004 95c6 jsr 495c6 node = pathloc->node_access; 498c0: 2654 moveal %a4@,%a3 if ( result == -1 ) 498c2: 508f addql #8,%sp 498c4: 72ff moveq #-1,%d1 498c6: b280 cmpl %d0,%d1 498c8: 66e4 bnes 498ae 498ca: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 498cc: 2003 movel %d3,%d0 <== NOT EXECUTED 498ce: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED 498d4: 4e5e unlk %fp <== NOT EXECUTED 498d6: 4e75 rts <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 498d8: 4eb9 0004 ede0 jsr 4ede0 <__errno> 498de: 76ff moveq #-1,%d3 498e0: 7e14 moveq #20,%d7 498e2: 2040 moveal %d0,%a0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 498e4: 2003 movel %d3,%d0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 498e6: 2087 movel %d7,%a0@ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 498e8: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 498ee: 4e5e unlk %fp 498f0: 4e75 rts */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 498f2: 2069 0014 moveal %a1@(20),%a0 *pathloc = newloc; 498f6: 2969 0018 0010 movel %a1@(24),%a4@(16) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 498fc: 2829 0010 movel %a1@(16),%d4 49900: 2629 000c movel %a1@(12),%d3 49904: 2229 0008 movel %a1@(8),%d1 *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 49908: 2f0c movel %a4,%sp@- 4990a: 226e fffc moveal %fp@(-4),%a1 4990e: 9489 subl %a1,%d2 49910: 2f2e 0010 movel %fp@(16),%sp@- 49914: 4872 9800 pea %a2@(00000000,%a1:l) 49918: 4875 2800 pea %a5@(00000000,%d2:l) 4991c: 2010 movel %a0@,%d0 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 4991e: 2943 0004 movel %d3,%a4@(4) 49922: 2948 000c movel %a0,%a4@(12) return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 49926: 2040 moveal %d0,%a0 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 49928: 2944 0008 movel %d4,%a4@(8) 4992c: 2881 movel %d1,%a4@ return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 4992e: 4e90 jsr %a0@ 49930: 4fef 0010 lea %sp@(16),%sp 49934: 2600 movel %d0,%d3 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49936: 2003 movel %d3,%d0 49938: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 4993e: 4e5e unlk %fp 49940: 4e75 rts 00049566 : /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 49566: 7003 moveq #3,%d0 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 49568: 4e56 0000 linkw %fp,#0 4956c: 2f0a movel %a2,%sp@- 4956e: 246e 0008 moveal %fp@(8),%a2 IMFS_jnode_t *jnode = node->node_access; 49572: 2052 moveal %a2@,%a0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 49574: b0a8 0048 cmpl %a0@(72),%d0 49578: 6640 bnes 495ba /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 4957a: 24a8 004c movel %a0@(76),%a2@ IMFS_Set_handlers( node ); 4957e: 2f0a movel %a2,%sp@- 49580: 4eb9 0004 944c jsr 4944c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 49586: 2f2e 000c movel %fp@(12),%sp@- 4958a: 2f0a movel %a2,%sp@- 4958c: 4eb9 0004 94da jsr 494da 49592: 4fef 000c lea %sp@(12),%sp 49596: 4a80 tstl %d0 49598: 670a beqs 495a4 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 4959a: 246e fffc moveal %fp@(-4),%a2 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 4959e: 4280 clrl %d0 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 495a0: 4e5e unlk %fp 495a2: 4e75 rts /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 495a4: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED return result; } 495aa: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 495ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 495b0: 720d moveq #13,%d1 <== NOT EXECUTED 495b2: 70ff moveq #-1,%d0 <== NOT EXECUTED return result; } 495b4: 4e5e unlk %fp <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 495b6: 2081 movel %d1,%a0@ <== NOT EXECUTED return result; } 495b8: 4e75 rts <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 495ba: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 495c0: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 00049942 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 49942: 4e56 ffec linkw %fp,#-20 49946: 2079 0005 da04 moveal 5da04 ,%a0 4994c: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ 49950: 266e 0008 moveal %fp@(8),%a3 if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); 49954: 4bf9 0004 95c6 lea 495c6 ,%a5 /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); 4995a: 49f9 0004 9566 lea 49566 ,%a4 int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 49960: 242e 000c movel %fp@(12),%d2 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 49964: 4281 clrl %d1 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 49966: 3028 0030 movew %a0@(48),%d0 { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 4996a: 2453 moveal %a3@,%a2 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 4996c: 5280 addql #1,%d0 if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 4996e: 3200 movew %d0,%d1 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 49970: 3140 0030 movew %d0,%a0@(48) if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 49974: 7005 moveq #5,%d0 49976: b081 cmpl %d1,%d0 49978: 6564 bcss 499de /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 4997a: 202a 0048 movel %a2@(72),%d0 4997e: 7203 moveq #3,%d1 49980: b280 cmpl %d0,%d1 49982: 6740 beqs 499c4 result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 49984: 7204 moveq #4,%d1 49986: b280 cmpl %d0,%d1 49988: 671a beqs 499a4 result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 4998a: 5780 subql #3,%d0 4998c: 7201 moveq #1,%d1 4998e: b280 cmpl %d0,%d1 49990: 64d2 bccs 49964 49992: 4280 clrl %d0 /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 49994: 4241 clrw %d1 49996: 3141 0030 movew %d1,%a0@(48) return result; } 4999a: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 499a0: 4e5e unlk %fp 499a2: 4e75 rts if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); 499a4: 2f02 movel %d2,%sp@- 499a6: 2f0b movel %a3,%sp@- 499a8: 4e95 jsr %a5@ 499aa: 508f addql #8,%sp } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 499ac: 4a80 tstl %d0 499ae: 6620 bnes 499d0 499b0: 202a 0048 movel %a2@(72),%d0 499b4: 7201 moveq #1,%d1 499b6: 5780 subql #3,%d0 499b8: 2079 0005 da04 moveal 5da04 ,%a0 499be: b280 cmpl %d0,%d1 499c0: 64a2 bccs 49964 499c2: 60ce bras 49992 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); 499c4: 2f02 movel %d2,%sp@- 499c6: 2f0b movel %a3,%sp@- 499c8: 4e94 jsr %a4@ 499ca: 508f addql #8,%sp else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 499cc: 4a80 tstl %d0 499ce: 67e0 beqs 499b0 499d0: 2079 0005 da04 moveal 5da04 ,%a0 /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 499d6: 4241 clrw %d1 499d8: 3141 0030 movew %d1,%a0@(48) 499dc: 60bc bras 4999a * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; 499de: 4241 clrw %d1 499e0: 3141 0030 movew %d1,%a0@(48) rtems_set_errno_and_return_minus_one( ELOOP ); 499e4: 4eb9 0004 ede0 jsr 4ede0 <__errno> 499ea: 725c moveq #92,%d1 499ec: 2040 moveal %d0,%a0 499ee: 70ff moveq #-1,%d0 */ rtems_filesystem_link_counts = 0; return result; } 499f0: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 499f6: 2081 movel %d1,%a0@ */ rtems_filesystem_link_counts = 0; return result; } 499f8: 4e5e unlk %fp 499fa: 4e75 rts 000494da : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 494da: 4e56 fff4 linkw %fp,#-12 494de: 206e 0008 moveal %fp@(8),%a0 494e2: 48d7 040c moveml %d2-%d3/%a2,%sp@ if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 494e6: 2450 moveal %a0@,%a2 int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 494e8: 262e 000c movel %fp@(12),%d3 } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 494ec: 4eb9 0004 a814 jsr 4a814 494f2: 3400 movew %d0,%d2 st_gid = getegid(); 494f4: 4eb9 0004 a800 jsr 4a800 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 494fa: 4281 clrl %d1 494fc: 0282 0000 ffff andil #65535,%d2 49502: 322a 0038 movew %a2@(56),%d1 49506: b282 cmpl %d2,%d1 49508: 6742 beqs 4954c flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 4950a: 4281 clrl %d1 4950c: 0280 0000 ffff andil #65535,%d0 49512: 322a 003a movew %a2@(58),%d1 49516: b280 cmpl %d0,%d1 49518: 6718 beqs 49532 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 4951a: 2003 movel %d3,%d0 <== NOT EXECUTED 4951c: c0aa 002e andl %a2@(46),%d0 <== NOT EXECUTED 49520: b083 cmpl %d3,%d0 <== NOT EXECUTED 49522: 57c0 seq %d0 <== NOT EXECUTED return 1; return 0; } 49524: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4952a: 4e5e unlk %fp <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 4952c: 49c0 extbl %d0 <== NOT EXECUTED return 1; return 0; } 4952e: 4480 negl %d0 <== NOT EXECUTED 49530: 4e75 rts <== NOT EXECUTED flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) flags_to_test <<= 3; 49532: e78b lsll #3,%d3 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 49534: 2003 movel %d3,%d0 49536: c0aa 002e andl %a2@(46),%d0 4953a: b083 cmpl %d3,%d0 4953c: 57c0 seq %d0 return 1; return 0; } 4953e: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 49544: 4e5e unlk %fp /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 49546: 49c0 extbl %d0 return 1; return 0; } 49548: 4480 negl %d0 4954a: 4e75 rts */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 4954c: ed8b lsll #6,%d3 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 4954e: 2003 movel %d3,%d0 49550: c0aa 002e andl %a2@(46),%d0 49554: b083 cmpl %d3,%d0 49556: 57c0 seq %d0 return 1; return 0; } 49558: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4955e: 4e5e unlk %fp /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 49560: 49c0 extbl %d0 return 1; return 0; } 49562: 4480 negl %d0 49564: 4e75 rts 000495c6 : /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 495c6: 7004 moveq #4,%d0 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 495c8: 4e56 fff0 linkw %fp,#-16 495cc: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 495d0: 246e 0008 moveal %fp@(8),%a2 495d4: 242e 000c movel %fp@(12),%d2 IMFS_jnode_t *jnode = node->node_access; 495d8: 2252 moveal %a2@,%a1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 495da: b0a9 0048 cmpl %a1@(72),%d0 495de: 6600 00e6 bnew 496c6 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 495e2: 2029 0008 movel %a1@(8),%d0 495e6: 6700 00d2 beqw 496ba /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 495ea: 2480 movel %d0,%a2@ rtems_filesystem_get_sym_start_loc( 495ec: 2069 004c moveal %a1@(76),%a0 495f0: 762f moveq #47,%d3 495f2: 1210 moveb %a0@,%d1 495f4: 1001 moveb %d1,%d0 495f6: 49c0 extbl %d0 495f8: b680 cmpl %d0,%d3 495fa: 670c beqs 49608 495fc: 163c 005c moveb #92,%d3 49600: b680 cmpl %d0,%d3 49602: 6704 beqs 49608 49604: 4a01 tstb %d1 49606: 6662 bnes 4966a 49608: 2679 0005 da04 moveal 5da04 ,%a3 4960e: 204a moveal %a2,%a0 49610: 7601 moveq #1,%d3 49612: 20eb 0018 movel %a3@(24),%a0@+ 49616: 20eb 001c movel %a3@(28),%a0@+ 4961a: 20eb 0020 movel %a3@(32),%a0@+ 4961e: 20eb 0024 movel %a3@(36),%a0@+ 49622: 20ab 0028 movel %a3@(40),%a0@ 49626: 2069 004c moveal %a1@(76),%a0 * 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] ), 4962a: d688 addl %a0,%d3 4962c: 2f03 movel %d3,%sp@- 4962e: 4eb9 0005 01ac jsr 501ac /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 49634: 2e8a movel %a2,%sp@ 49636: 2f02 movel %d2,%sp@- 49638: 2f00 movel %d0,%sp@- 4963a: 2f03 movel %d3,%sp@- 4963c: 4eb9 0004 96d2 jsr 496d2 49642: 2600 movel %d0,%d3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 49644: 2f0a movel %a2,%sp@- 49646: 4eb9 0004 944c jsr 4944c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 4964c: 2f02 movel %d2,%sp@- 4964e: 2f0a movel %a2,%sp@- 49650: 4eb9 0004 94da jsr 494da 49656: 4fef 001c lea %sp@(28),%sp 4965a: 4a80 tstl %d0 4965c: 6742 beqs 496a0 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 4965e: 2003 movel %d3,%d0 49660: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 49666: 4e5e unlk %fp 49668: 4e75 rts * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 4966a: 4203 clrb %d3 * 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] ), 4966c: d688 addl %a0,%d3 4966e: 2f03 movel %d3,%sp@- 49670: 4eb9 0005 01ac jsr 501ac /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 49676: 2e8a movel %a2,%sp@ 49678: 2f02 movel %d2,%sp@- 4967a: 2f00 movel %d0,%sp@- 4967c: 2f03 movel %d3,%sp@- 4967e: 4eb9 0004 96d2 jsr 496d2 49684: 2600 movel %d0,%d3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 49686: 2f0a movel %a2,%sp@- 49688: 4eb9 0004 944c jsr 4944c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 4968e: 2f02 movel %d2,%sp@- 49690: 2f0a movel %a2,%sp@- 49692: 4eb9 0004 94da jsr 494da 49698: 4fef 001c lea %sp@(28),%sp 4969c: 4a80 tstl %d0 4969e: 66be bnes 4965e rtems_set_errno_and_return_minus_one( EACCES ); 496a0: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 496a6: 76ff moveq #-1,%d3 <== NOT EXECUTED 496a8: 740d moveq #13,%d2 <== NOT EXECUTED 496aa: 2040 moveal %d0,%a0 <== NOT EXECUTED return result; } 496ac: 2003 movel %d3,%d0 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 496ae: 2082 movel %d2,%a0@ <== NOT EXECUTED return result; } 496b0: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 496b6: 4e5e unlk %fp <== NOT EXECUTED 496b8: 4e75 rts <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 496ba: 2f3c bad0 0000 movel #-1160773632,%sp@- <== NOT EXECUTED 496c0: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 496c6: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 496cc: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 0004d558 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4d558: 4e56 fff8 linkw %fp,#-8 4d55c: 206e 0008 moveal %fp@(8),%a0 4d560: 2f0a movel %a2,%sp@- IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 4d562: 2450 moveal %a0@,%a2 int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4d564: 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 ) ) 4d566: 4282 clrl %d2 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 4d568: 4eb9 0004 a814 jsr 4a814 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4d56e: 4281 clrl %d1 4d570: 3400 movew %d0,%d2 4d572: 322a 0038 movew %a2@(56),%d1 4d576: b282 cmpl %d2,%d1 4d578: 6704 beqs 4d57e 4d57a: 4a40 tstw %d0 <== NOT EXECUTED 4d57c: 663c bnes 4d5ba <== 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); 4d57e: 222e 000c movel %fp@(12),%d1 4d582: 202a 002e movel %a2@(46),%d0 4d586: 0281 0000 0fff andil #4095,%d1 4d58c: 0280 ffff f000 andil #-4096,%d0 4d592: 8280 orl %d0,%d1 4d594: 2541 002e movel %d1,%a2@(46) IMFS_update_ctime( jnode ); 4d598: 42a7 clrl %sp@- 4d59a: 486e fff8 pea %fp@(-8) 4d59e: 4eb9 0004 a828 jsr 4a828 4d5a4: 256e fff8 0044 movel %fp@(-8),%a2@(68) return 0; 4d5aa: 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 ); 4d5ac: 4280 clrl %d0 return 0; } 4d5ae: 242e fff0 movel %fp@(-16),%d2 4d5b2: 246e fff4 moveal %fp@(-12),%a2 4d5b6: 4e5e unlk %fp 4d5b8: 4e75 rts */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4d5ba: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); return 0; } 4d5c0: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4d5c4: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d5c6: 7201 moveq #1,%d1 <== NOT EXECUTED 4d5c8: 70ff moveq #-1,%d0 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); return 0; } 4d5ca: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 4d5ce: 4e5e unlk %fp <== NOT EXECUTED */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4d5d0: 2081 movel %d1,%a0@ <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); return 0; } 4d5d2: 4e75 rts 00049e58 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 49e58: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 49e5c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 49e60: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 49e64: 266a 0038 moveal %a2@(56),%a3 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 49e68: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49e6a: 486b 004c pea %a3@(76) <== NOT EXECUTED 49e6e: 4eb9 0004 cce8 jsr 4cce8 <== NOT EXECUTED if (! err) { 49e74: 508f addql #8,%sp <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 49e76: 2400 movel %d0,%d2 <== NOT EXECUTED if (! err) { 49e78: 670e beqs 49e88 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) free(jnode); } IMFS_FIFO_RETURN(err); 49e7a: 6d40 blts 49ebc <== NOT EXECUTED } 49e7c: 2002 movel %d2,%d0 <== NOT EXECUTED 49e7e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 49e84: 4e5e unlk %fp <== NOT EXECUTED 49e86: 4e75 rts <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 49e88: 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) 49e8e: 2f0b movel %a3,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 49e90: c1aa 0014 andl %d0,%a2@(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) 49e94: 4eb9 0004 a902 jsr 4a902 <== NOT EXECUTED 49e9a: 588f addql #4,%sp <== NOT EXECUTED 49e9c: 4a80 tstl %d0 <== NOT EXECUTED 49e9e: 66dc bnes 49e7c <== NOT EXECUTED 49ea0: 4a6b 0032 tstw %a3@(50) <== NOT EXECUTED 49ea4: 66d6 bnes 49e7c <== NOT EXECUTED free(jnode); 49ea6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49ea8: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED 49eae: 588f addql #4,%sp <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 49eb0: 2002 movel %d2,%d0 <== NOT EXECUTED 49eb2: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 49eb8: 4e5e unlk %fp <== NOT EXECUTED 49eba: 4e75 rts <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) free(jnode); } IMFS_FIFO_RETURN(err); 49ebc: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 49ec2: 4482 negl %d2 <== NOT EXECUTED 49ec4: 2040 moveal %d0,%a0 <== NOT EXECUTED 49ec6: 2082 movel %d2,%a0@ <== NOT EXECUTED 49ec8: 74ff moveq #-1,%d2 <== NOT EXECUTED } 49eca: 2002 movel %d2,%d0 <== NOT EXECUTED 49ecc: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 49ed2: 4e5e unlk %fp <== NOT EXECUTED 49ed4: 4e75 rts 00049ce8 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 49ce8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49cec: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49cf0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 49cf4: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 49cf8: 2f02 movel %d2,%sp@- <== NOT EXECUTED int err; if (command == FIONBIO) { 49cfa: 0c80 8004 667e cmpil #-2147195266,%d0 <== NOT EXECUTED 49d00: 6724 beqs 49d26 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 49d02: 2f08 movel %a0,%sp@- <== NOT EXECUTED 49d04: 2068 0038 moveal %a0@(56),%a0 <== NOT EXECUTED 49d08: 2f09 movel %a1,%sp@- <== NOT EXECUTED 49d0a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49d0c: 2f28 004c movel %a0@(76),%sp@- <== NOT EXECUTED 49d10: 4eb9 0004 c882 jsr 4c882 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 49d16: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 49d1a: 4a80 tstl %d0 <== NOT EXECUTED 49d1c: 6d46 blts 49d64 <== NOT EXECUTED } 49d1e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 49d22: 4e5e unlk %fp <== NOT EXECUTED 49d24: 4e75 rts <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 49d26: 4a89 tstl %a1 <== NOT EXECUTED 49d28: 6724 beqs 49d4e <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 49d2a: 4a91 tstl %a1@ <== NOT EXECUTED 49d2c: 6710 beqs 49d3e <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 49d2e: 7201 moveq #1,%d1 <== NOT EXECUTED 49d30: 4280 clrl %d0 <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 49d32: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 49d36: 4e5e unlk %fp <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 49d38: 83a8 0014 orl %d1,%a0@(20) <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 49d3c: 4e75 rts <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 49d3e: 72fe moveq #-2,%d1 <== NOT EXECUTED 49d40: 4280 clrl %d0 <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 49d42: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 49d46: 4e5e unlk %fp <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 49d48: c3a8 0014 andl %d1,%a0@(20) <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 49d4c: 4e75 rts <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 49d4e: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 49d54: 740e moveq #14,%d2 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 49d56: 2040 moveal %d0,%a0 <== NOT EXECUTED 49d58: 70ff moveq #-1,%d0 <== NOT EXECUTED 49d5a: 2082 movel %d2,%a0@ <== NOT EXECUTED } 49d5c: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 49d60: 4e5e unlk %fp <== NOT EXECUTED 49d62: 4e75 rts <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 49d64: 2400 movel %d0,%d2 <== NOT EXECUTED 49d66: 4482 negl %d2 <== NOT EXECUTED 49d68: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 49d6e: 2040 moveal %d0,%a0 <== NOT EXECUTED 49d70: 70ff moveq #-1,%d0 <== NOT EXECUTED 49d72: 2082 movel %d2,%a0@ <== NOT EXECUTED 49d74: 60e6 bras 49d5c <== NOT EXECUTED 00049c84 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 49c84: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 49c88: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49c8c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 49c90: 2f08 movel %a0,%sp@- <== NOT EXECUTED 49c92: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 49c96: 2068 0038 moveal %a0@(56),%a0 <== NOT EXECUTED 49c9a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 49c9e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 49ca2: 2f28 004c movel %a0@(76),%sp@- <== NOT EXECUTED 49ca6: 4eb9 0004 c824 jsr 4c824 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 49cac: 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); 49cb0: 2800 movel %d0,%d4 <== NOT EXECUTED 49cb2: 2600 movel %d0,%d3 <== NOT EXECUTED 49cb4: 5bc2 smi %d2 <== NOT EXECUTED 49cb6: 49c2 extbl %d2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 49cb8: 4a82 tstl %d2 <== NOT EXECUTED 49cba: 6b0e bmis 49cca <== NOT EXECUTED } 49cbc: 2203 movel %d3,%d1 <== NOT EXECUTED 49cbe: 2002 movel %d2,%d0 <== NOT EXECUTED 49cc0: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 49cc6: 4e5e unlk %fp <== NOT EXECUTED 49cc8: 4e75 rts <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 49cca: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 49cd0: 4484 negl %d4 <== NOT EXECUTED 49cd2: 2040 moveal %d0,%a0 <== NOT EXECUTED 49cd4: 74ff moveq #-1,%d2 <== NOT EXECUTED 49cd6: 76ff moveq #-1,%d3 <== NOT EXECUTED 49cd8: 2084 movel %d4,%a0@ <== NOT EXECUTED } 49cda: 2203 movel %d3,%d1 <== NOT EXECUTED 49cdc: 2002 movel %d2,%d0 <== NOT EXECUTED 49cde: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 49ce4: 4e5e unlk %fp <== NOT EXECUTED 49ce6: 4e75 rts 00049ed6 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 49ed6: 4e56 0000 linkw %fp,#0 49eda: 206e 0008 moveal %fp@(8),%a0 49ede: 2f02 movel %d2,%sp@- IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 49ee0: 2f08 movel %a0,%sp@- 49ee2: 2068 0038 moveal %a0@(56),%a0 49ee6: 41e8 004c lea %a0@(76),%a0 49eea: 2f08 movel %a0,%sp@- 49eec: 4eb9 0004 ce08 jsr 4ce08 IMFS_FIFO_RETURN(err); 49ef2: 508f addql #8,%sp uint32_t mode ) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 49ef4: 2400 movel %d0,%d2 IMFS_FIFO_RETURN(err); 49ef6: 6d0a blts 49f02 } 49ef8: 2002 movel %d2,%d0 <== NOT EXECUTED 49efa: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 49efe: 4e5e unlk %fp <== NOT EXECUTED 49f00: 4e75 rts <== NOT EXECUTED ) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); 49f02: 4eb9 0004 ede0 jsr 4ede0 <__errno> 49f08: 4482 negl %d2 49f0a: 2040 moveal %d0,%a0 49f0c: 2082 movel %d2,%a0@ 49f0e: 74ff moveq #-1,%d2 } 49f10: 2002 movel %d2,%d0 49f12: 242e fffc movel %fp@(-4),%d2 49f16: 4e5e unlk %fp 49f18: 4e75 rts ... 00049dea : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 49dea: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 49dee: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49df2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49df4: 2f02 movel %d2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 49df6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 49df8: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 49dfc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED rtems_libio_t *iop, void *buffer, size_t count ) { IMFS_jnode_t *jnode = iop->file_info; 49e00: 2468 0038 moveal %a0@(56),%a2 <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 49e04: 2f2a 004c movel %a2@(76),%sp@- <== NOT EXECUTED 49e08: 4eb9 0004 c8e2 jsr 4c8e2 <== NOT EXECUTED if (err > 0) 49e0e: 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); 49e12: 2400 movel %d0,%d2 <== NOT EXECUTED if (err > 0) 49e14: 6f22 bles 49e38 <== NOT EXECUTED IMFS_update_atime(jnode); 49e16: 42a7 clrl %sp@- <== NOT EXECUTED 49e18: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 49e1c: 4eb9 0004 a828 jsr 4a828 <== NOT EXECUTED 49e22: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED 49e28: 508f addql #8,%sp <== NOT EXECUTED IMFS_FIFO_RETURN(err); } 49e2a: 2002 movel %d2,%d0 <== NOT EXECUTED 49e2c: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 49e30: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 49e34: 4e5e unlk %fp <== NOT EXECUTED 49e36: 4e75 rts <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 49e38: 4a80 tstl %d0 <== NOT EXECUTED 49e3a: 67ee beqs 49e2a <== NOT EXECUTED 49e3c: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 49e42: 4482 negl %d2 <== NOT EXECUTED 49e44: 2040 moveal %d0,%a0 <== NOT EXECUTED 49e46: 2082 movel %d2,%a0@ <== NOT EXECUTED 49e48: 74ff moveq #-1,%d2 <== NOT EXECUTED } 49e4a: 2002 movel %d2,%d0 <== NOT EXECUTED 49e4c: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 49e50: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 49e54: 4e5e unlk %fp <== NOT EXECUTED 49e56: 4e75 rts 00049d76 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 49d76: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 49d7a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49d7e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49d80: 2f02 movel %d2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 49d82: 2f08 movel %a0,%sp@- <== NOT EXECUTED 49d84: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 49d88: 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; 49d8c: 2468 0038 moveal %a0@(56),%a2 <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 49d90: 2f2a 004c movel %a2@(76),%sp@- <== NOT EXECUTED 49d94: 4eb9 0004 cad8 jsr 4cad8 <== NOT EXECUTED if (err > 0) { 49d9a: 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); 49d9e: 2400 movel %d0,%d2 <== NOT EXECUTED if (err > 0) { 49da0: 6f28 bles 49dca <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 49da2: 42a7 clrl %sp@- <== NOT EXECUTED 49da4: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 49da8: 4eb9 0004 a828 jsr 4a828 <== NOT EXECUTED 49dae: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 49db2: 508f addql #8,%sp <== NOT EXECUTED 49db4: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED 49db8: 2540 0040 movel %d0,%a2@(64) <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 49dbc: 2002 movel %d2,%d0 <== NOT EXECUTED 49dbe: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 49dc2: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 49dc6: 4e5e unlk %fp <== NOT EXECUTED 49dc8: 4e75 rts <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); 49dca: 4a80 tstl %d0 <== NOT EXECUTED 49dcc: 67ee beqs 49dbc <== NOT EXECUTED 49dce: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 49dd4: 4482 negl %d2 <== NOT EXECUTED 49dd6: 2040 moveal %d0,%a0 <== NOT EXECUTED 49dd8: 2082 movel %d2,%a0@ <== NOT EXECUTED 49dda: 74ff moveq #-1,%d2 <== NOT EXECUTED } 49ddc: 2002 movel %d2,%d0 <== NOT EXECUTED 49dde: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 49de2: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 49de6: 4e5e unlk %fp <== NOT EXECUTED 49de8: 4e75 rts 00049f1c : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 49f1c: 4e56 fff0 linkw %fp,#-16 49f20: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ 49f24: 246e 0008 moveal %fp@(8),%a2 49f28: 242e 000c movel %fp@(12),%d2 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 49f2c: 4a8a tstl %a2 49f2e: 6776 beqs 49fa6 if ( !name ) 49f30: 4a82 tstl %d2 49f32: 6756 beqs 49f8a /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 49f34: 4879 0005 cacc pea 5cacc 49f3a: 47f9 0004 fce8 lea 4fce8 ,%a3 49f40: 2f02 movel %d2,%sp@- 49f42: 4e93 jsr %a3@ 49f44: 508f addql #8,%sp 49f46: 4a80 tstl %d0 49f48: 6714 beqs 49f5e return directory; if ( !strcmp( name, dotdotname ) ) 49f4a: 4879 0005 cace pea 5cace 49f50: 2f02 movel %d2,%sp@- 49f52: 4e93 jsr %a3@ 49f54: 508f addql #8,%sp 49f56: 4a80 tstl %d0 49f58: 6610 bnes 49f6a return directory->Parent; 49f5a: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 49f5e: 200a movel %a2,%d0 <== NOT EXECUTED 49f60: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 49f66: 4e5e unlk %fp <== NOT EXECUTED 49f68: 4e75 rts <== NOT EXECUTED if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 49f6a: 286a 004c moveal %a2@(76),%a4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49f6e: 45ea 0050 lea %a2@(80),%a2 49f72: b5cc cmpal %a4,%a2 49f74: 6714 beqs 49f8a !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 ) ) 49f76: 486c 000c pea %a4@(12) 49f7a: 2f02 movel %d2,%sp@- 49f7c: 4e93 jsr %a3@ 49f7e: 508f addql #8,%sp 49f80: 4a80 tstl %d0 49f82: 6714 beqs 49f98 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 ) { 49f84: 2854 moveal %a4@,%a4 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 49f86: b5cc cmpal %a4,%a2 49f88: 66ec bnes 49f76 49f8a: 95ca subal %a2,%a2 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 49f8c: 200a movel %a2,%d0 49f8e: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 49f94: 4e5e unlk %fp 49f96: 4e75 rts !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 ) ) 49f98: 244c moveal %a4,%a2 return the_jnode; } return 0; } 49f9a: 200a movel %a2,%d0 49f9c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 49fa2: 4e5e unlk %fp 49fa4: 4e75 rts /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 49fa6: 4879 0005 d29f pea 5d29f <_global_impure_ptr+0x1b1> <== NOT EXECUTED 49fac: 4879 0005 cad1 pea 5cad1 <__FUNCTION__.5379> <== NOT EXECUTED 49fb2: 4878 002a pea 2a <== NOT EXECUTED 49fb6: 4879 0005 ca80 pea 5ca80 <== NOT EXECUTED 49fbc: 4eb9 0004 a49c jsr 4a49c <__assert_func> <== NOT EXECUTED ... 0004f820 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4f820: 4e56 ffd8 linkw %fp,#-40 4f824: 206e 0008 moveal %fp@(8),%a0 4f828: 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; 4f82c: 47ee ffec lea %fp@(-20),%a3 4f830: 49f9 0004 ed44 lea 4ed44 ,%a4 next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( NULL, &loc ); 4f836: 4bf9 0004 36c8 lea 436c8 ,%a5 * 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; 4f83c: 26a8 001c movel %a0@(28),%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; 4f840: 2468 001c moveal %a0@(28),%a2 /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 4f844: 42a8 001c clrl %a0@(28) * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; 4f848: 2d68 0020 fff0 movel %a0@(32),%fp@(-16) 4f84e: 2d68 0024 fff4 movel %a0@(36),%fp@(-12) 4f854: 2d68 0028 fff8 movel %a0@(40),%fp@(-8) 4f85a: 2d68 002c fffc movel %a0@(44),%fp@(-4) */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 4f860: 242a 0008 movel %a2@(8),%d2 loc.node_access = (void *)jnode; 4f864: 2d4a ffec movel %a2,%fp@(-20) IMFS_Set_handlers( &loc ); 4f868: 2f0b movel %a3,%sp@- 4f86a: 4e94 jsr %a4@ if ( jnode->type != IMFS_DIRECTORY ) { 4f86c: 588f addql #4,%sp */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4f86e: 200a movel %a2,%d0 4f870: 0680 0000 0050 addil #80,%d0 4f876: 7201 moveq #1,%d1 4f878: b2aa 0048 cmpl %a2@(72),%d1 4f87c: 6634 bnes 4f8b2 4f87e: b0aa 004c cmpl %a2@(76),%d0 4f882: 672e beqs 4f8b2 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 4f884: 4a8a tstl %a2 4f886: 671e beqs 4f8a6 if ( jnode->type == IMFS_DIRECTORY ) { 4f888: 7001 moveq #1,%d0 4f88a: b0aa 0048 cmpl %a2@(72),%d0 4f88e: 66d0 bnes 4f860 4f890: 200a movel %a2,%d0 4f892: 0680 0000 0050 addil #80,%d0 4f898: b0aa 004c cmpl %a2@(76),%d0 4f89c: 67c2 beqs 4f860 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); 4f89e: 246a 004c moveal %a2@(76),%a2 } } } while (jnode != NULL); 4f8a2: 4a8a tstl %a2 4f8a4: 66ba bnes 4f860 4f8a6: 4280 clrl %d0 return 0; } 4f8a8: 4cee 3c04 ffd8 moveml %fp@(-40),%d2/%a2-%a5 4f8ae: 4e5e unlk %fp 4f8b0: 4e75 rts result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 4f8b2: 2f0b movel %a3,%sp@- 4f8b4: 42a7 clrl %sp@- 4f8b6: 4e95 jsr %a5@ if (result != 0) 4f8b8: 508f addql #8,%sp 4f8ba: 4a80 tstl %d0 4f8bc: 6604 bnes 4f8c2 4f8be: 2442 moveal %d2,%a2 4f8c0: 60c2 bras 4f884 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 4f8c2: 70ff moveq #-1,%d0 <== NOT EXECUTED return 0; } 4f8c4: 4cee 3c04 ffd8 moveml %fp@(-40),%d2/%a2-%a5 <== NOT EXECUTED 4f8ca: 4e5e unlk %fp <== NOT EXECUTED 4f8cc: 4e75 rts <== NOT EXECUTED ... 0004a0bc : int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 4a0bc: 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 ) { 4a0be: 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, 4a0c2: 2079 0005 d8f8 moveal 5d8f8 ,%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 ) { 4a0c8: 48d7 040c moveml %d2-%d3/%a2,%sp@ 4a0cc: 246e 0008 moveal %fp@(8),%a2 4a0d0: 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) { 4a0d4: b088 cmpl %a0,%d0 4a0d6: 6716 beqs 4a0ee 4a0d8: 4200 clrb %d0 4a0da: 7220 moveq #32,%d1 4a0dc: 5280 addql #1,%d0 4a0de: b288 cmpl %a0,%d1 4a0e0: 670c beqs 4a0ee 4a0e2: 7605 moveq #5,%d3 4a0e4: d281 addl %d1,%d1 4a0e6: b680 cmpl %d0,%d3 4a0e8: 66f2 bnes 4a0dc 4a0ea: 307c 0080 moveaw #128,%a0 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 4a0ee: 23c8 0005 e8fc movel %a0,5e8fc /* * 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(); 4a0f4: 4eb9 0004 d32a jsr 4d32a 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 ) ); 4a0fa: 4878 000c pea c * 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; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 4a0fe: 41f9 0005 ce66 lea 5ce66 ,%a0 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 4a104: 4878 0001 pea 1 * 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; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 4a108: 2550 0038 movel %a0@,%a2@(56) 4a10c: 41f9 0005 ce6a lea 5ce6a ,%a0 4a112: 2550 003c movel %a0@,%a2@(60) 4a116: 41f9 0005 ce6e lea 5ce6e ,%a0 4a11c: 2550 0040 movel %a0@,%a2@(64) 4a120: 41f9 0005 ce72 lea 5ce72 ,%a0 4a126: 2550 0044 movel %a0@,%a2@(68) 4a12a: 41f9 0005 ce76 lea 5ce76 ,%a0 4a130: 2550 0048 movel %a0@,%a2@(72) 4a134: 41f9 0005 ce7a lea 5ce7a ,%a0 4a13a: 2550 004c movel %a0@,%a2@(76) 4a13e: 41f9 0005 ce7e lea 5ce7e ,%a0 4a144: 2550 0050 movel %a0@,%a2@(80) 4a148: 41f9 0005 ce82 lea 5ce82 ,%a0 4a14e: 2550 0054 movel %a0@,%a2@(84) 4a152: 41f9 0005 ce86 lea 5ce86 ,%a0 4a158: 2550 0058 movel %a0@,%a2@(88) 4a15c: 41f9 0005 ce8a lea 5ce8a ,%a0 4a162: 2550 005c movel %a0@,%a2@(92) 4a166: 41f9 0005 ce8e lea 5ce8e ,%a0 4a16c: 2550 0060 movel %a0@,%a2@(96) 4a170: 41f9 0005 ce92 lea 5ce92 ,%a0 * * 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; 4a176: 256e 000c 0028 movel %fp@(12),%a2@(40) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 4a17c: 2550 0064 movel %a0@,%a2@(100) /* * 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(); 4a180: 2540 001c movel %d0,%a2@(28) temp_mt_entry->mt_fs_root.handlers = directory_handlers; 4a184: 2542 0024 movel %d2,%a2@(36) 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 ) ); 4a188: 4eb9 0004 a59c jsr 4a59c if ( !fs_info ) { 4a18e: 508f addql #8,%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 ) ); 4a190: 2040 moveal %d0,%a0 if ( !fs_info ) { 4a192: 4a80 tstl %d0 4a194: 672e beqs 4a1c4 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 4a196: 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; 4a198: 226a 001c moveal %a2@(28),%a1 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 4a19c: 2080 movel %d0,%a0@ fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 4a19e: 7001 moveq #1,%d0 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 4a1a0: 216e 0010 0004 movel %fp@(16),%a0@(4) fs_info->directory_handlers = directory_handlers; 4a1a6: 2142 0008 movel %d2,%a0@(8) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 4a1aa: 2340 0034 movel %d0,%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; 4a1ae: 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(); 4a1b2: 4eb9 0004 c82e jsr 4c82e return 0; } 4a1b8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 4a1be: 4280 clrl %d0 return 0; } 4a1c0: 4e5e unlk %fp 4a1c2: 4e75 rts /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); 4a1c4: 2f2a 001c movel %a2@(28),%sp@- <== NOT EXECUTED 4a1c8: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 4a1ce: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4a1d4: 588f addql #4,%sp <== NOT EXECUTED 4a1d6: 720c moveq #12,%d1 <== NOT EXECUTED 4a1d8: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a1da: 70ff moveq #-1,%d0 <== NOT EXECUTED /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); return 0; } 4a1dc: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); 4a1e2: 2081 movel %d1,%a0@ <== NOT EXECUTED /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); return 0; } 4a1e4: 4e5e unlk %fp <== NOT EXECUTED 4a1e6: 4e75 rts 00043348 : /* * 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 ) 43348: 4280 clrl %d0 4334a: 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 */ ) { 4334c: 4e56 ffbc linkw %fp,#-68 43350: 206e 0008 moveal %fp@(8),%a0 43354: 2f03 movel %d3,%sp@- int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 43356: 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 */ ) { 43358: 2f02 movel %d2,%sp@- 4335a: 242e 0010 movel %fp@(16),%d2 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 4335e: 2d48 ffe0 movel %a0,%fp@(-32) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 43362: 3028 0032 movew %a0@(50),%d0 43366: b280 cmpl %d0,%d1 43368: 6578 bcss 433e2 rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 4336a: 2f02 movel %d2,%sp@- 4336c: 260e movel %fp,%d3 4336e: 0683 ffff ffbf addil #-65,%d3 43374: 4eb9 0005 5990 jsr 55990 4337a: 588f addql #4,%sp 4337c: 486e fffc pea %fp@(-4) 43380: 2f03 movel %d3,%sp@- 43382: 2f00 movel %d0,%sp@- 43384: 2f02 movel %d2,%sp@- 43386: 4eb9 0004 f978 jsr 4f978 * 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( 4338c: 486e ffe0 pea %fp@(-32) 43390: 2f3c 0000 a1ff movel #41471,%sp@- 43396: 2f03 movel %d3,%sp@- 43398: 4878 0003 pea 3 4339c: 2f2e 000c movel %fp@(12),%sp@- 433a0: 4eb9 0004 eb50 jsr 4eb50 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 433a6: 4fef 0024 lea %sp@(36),%sp 433aa: 4a80 tstl %d0 433ac: 674e beqs 433fc rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 433ae: 206e ffe0 moveal %fp@(-32),%a0 433b2: 3028 0032 movew %a0@(50),%d0 433b6: 5280 addql #1,%d0 433b8: 3140 0032 movew %d0,%a0@(50) IMFS_update_ctime( info.hard_link.link_node ); 433bc: 42a7 clrl %sp@- 433be: 486e fff4 pea %fp@(-12) 433c2: 4eb9 0004 404c jsr 4404c 433c8: 206e ffe0 moveal %fp@(-32),%a0 return 0; 433cc: 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 ); 433ce: 4280 clrl %d0 433d0: 216e fff4 0044 movel %fp@(-12),%a0@(68) return 0; } 433d6: 242e ffb4 movel %fp@(-76),%d2 433da: 262e ffb8 movel %fp@(-72),%d3 433de: 4e5e unlk %fp 433e0: 4e75 rts /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) rtems_set_errno_and_return_minus_one( EMLINK ); 433e2: 4eb9 0005 4614 jsr 54614 <__errno> 433e8: 741f moveq #31,%d2 433ea: 2040 moveal %d0,%a0 433ec: 70ff moveq #-1,%d0 433ee: 2082 movel %d2,%a0@ */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 433f0: 242e ffb4 movel %fp@(-76),%d2 433f4: 262e ffb8 movel %fp@(-72),%d3 433f8: 4e5e unlk %fp 433fa: 4e75 rts ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 433fc: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 43402: 242e ffb4 movel %fp@(-76),%d2 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 43406: 2040 moveal %d0,%a0 <== NOT EXECUTED 43408: 720c moveq #12,%d1 <== NOT EXECUTED 4340a: 70ff moveq #-1,%d0 <== NOT EXECUTED */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 4340c: 262e ffb8 movel %fp@(-72),%d3 <== NOT EXECUTED 43410: 4e5e unlk %fp <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 43412: 2081 movel %d1,%a0@ <== NOT EXECUTED */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 43414: 4e75 rts <== NOT EXECUTED ... 00052698 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 52698: 4e56 0000 linkw %fp,#0 5269c: 206e 0008 moveal %fp@(8),%a0 526a0: 2f0a movel %a2,%sp@- block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 526a2: 4a88 tstl %a0 526a4: 6764 beqs 5270a if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 526a6: 7005 moveq #5,%d0 526a8: b0a8 0048 cmpl %a0@(72),%d0 526ac: 6640 bnes 526ee 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 ); 526ae: 4878 0001 pea 1 526b2: 2f2e 000c movel %fp@(12),%sp@- 526b6: 2f08 movel %a0,%sp@- 526b8: 4eb9 0005 21b4 jsr 521b4 if ( *block_entry_ptr ) 526be: 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 ); 526c2: 2440 moveal %d0,%a2 if ( *block_entry_ptr ) 526c4: 4a92 tstl %a2@ 526c6: 670a beqs 526d2 #endif memory = memfile_alloc_block(); if ( !memory ) return 1; *block_entry_ptr = memory; 526c8: 4280 clrl %d0 return 0; } 526ca: 246e fffc moveal %fp@(-4),%a2 526ce: 4e5e unlk %fp 526d0: 4e75 rts #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 526d2: 4eb9 0005 2190 jsr 52190 if ( !memory ) 526d8: 4a80 tstl %d0 526da: 6706 beqs 526e2 return 1; *block_entry_ptr = memory; 526dc: 2480 movel %d0,%a2@ 526de: 4280 clrl %d0 526e0: 60e8 bras 526ca return 0; } 526e2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 526e6: 103c 0001 moveb #1,%d0 <== NOT EXECUTED return 1; *block_entry_ptr = memory; return 0; } 526ea: 4e5e unlk %fp <== NOT EXECUTED 526ec: 4e75 rts <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 526ee: 4879 0006 2e30 pea 62e30 <== NOT EXECUTED 526f4: 4879 0006 2f49 pea 62f49 <__FUNCTION__.6005> <== NOT EXECUTED 526fa: 4878 016d pea 16d <== NOT EXECUTED 526fe: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52704: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 5270a: 4879 0006 2de0 pea 62de0 <== NOT EXECUTED 52710: 4879 0006 2f49 pea 62f49 <__FUNCTION__.6005> <== NOT EXECUTED 52716: 4878 0169 pea 169 <== NOT EXECUTED 5271a: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52720: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 00052726 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 52726: 4e56 ffdc linkw %fp,#-36 5272a: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@ 5272e: 246e 0008 moveal %fp@(8),%a2 52732: 262e 000c movel %fp@(12),%d3 52736: 282e 0010 movel %fp@(16),%d4 /* * Perform internal consistency checks */ assert( the_jnode ); 5273a: 4a8a tstl %a2 5273c: 6700 0102 beqw 52840 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 52740: 7005 moveq #5,%d0 52742: b0aa 0048 cmpl %a2@(72),%d0 52746: 6600 0114 bnew 5285c if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 5274a: 2439 0006 48a4 movel 648a4 ,%d2 52750: 2202 movel %d2,%d1 52752: e489 lsrl #2,%d1 52754: 2001 movel %d1,%d0 52756: 5280 addql #1,%d0 52758: 4c01 0800 mulsl %d1,%d0 5275c: 4285 clrl %d5 5275e: 5280 addql #1,%d0 52760: 4c01 0800 mulsl %d1,%d0 52764: 5380 subql #1,%d0 52766: 4c02 0800 mulsl %d2,%d0 5276a: 2c00 movel %d0,%d6 5276c: 2005 movel %d5,%d0 5276e: 2206 movel %d6,%d1 52770: 9284 subl %d4,%d1 52772: 9183 subxl %d3,%d0 52774: 6f00 00b2 blew 52828 rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 52778: 2a2a 004c movel %a2@(76),%d5 5277c: 2c2a 0050 movel %a2@(80),%d6 52780: 2003 movel %d3,%d0 52782: 2204 movel %d4,%d1 52784: 9286 subl %d6,%d1 52786: 9185 subxl %d5,%d0 52788: 6f62 bles 527ec /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 5278a: 47f9 0006 01e0 lea 601e0 <__divdi3>,%a3 52790: 2202 movel %d2,%d1 52792: 5bc0 smi %d0 52794: 49c0 extbl %d0 52796: 2840 moveal %d0,%a4 52798: 2a41 moveal %d1,%a5 5279a: 2f0d movel %a5,%sp@- 5279c: 2f00 movel %d0,%sp@- 5279e: 2f04 movel %d4,%sp@- 527a0: 2f03 movel %d3,%sp@- 527a2: 4e93 jsr %a3@ 527a4: 4fef 0010 lea %sp@(16),%sp 527a8: 2401 movel %d1,%d2 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 527aa: 2f0d movel %a5,%sp@- 527ac: 2f0c movel %a4,%sp@- 527ae: 2f06 movel %d6,%sp@- 527b0: 2f05 movel %d5,%sp@- 527b2: 4e93 jsr %a3@ 527b4: 4fef 0010 lea %sp@(16),%sp 527b8: 2841 moveal %d1,%a4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 527ba: b282 cmpl %d2,%d1 527bc: 621a bhis 527d8 527be: 2a01 movel %d1,%d5 527c0: 47f9 0005 2698 lea 52698 ,%a3 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 527c6: 2f05 movel %d5,%sp@- 527c8: 2f0a movel %a2,%sp@- 527ca: 4e93 jsr %a3@ 527cc: 508f addql #8,%sp 527ce: 4a80 tstl %d0 527d0: 6626 bnes 527f8 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 527d2: 5285 addql #1,%d5 527d4: ba82 cmpl %d2,%d5 527d6: 63ee blss 527c6 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 527d8: 4280 clrl %d0 527da: 2543 004c movel %d3,%a2@(76) 527de: 2544 0050 movel %d4,%a2@(80) return 0; } 527e2: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 527e8: 4e5e unlk %fp 527ea: 4e75 rts rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 527ec: 4280 clrl %d0 * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 527ee: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 527f4: 4e5e unlk %fp 527f6: 4e75 rts * 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-- ) { 527f8: ba8c cmpl %a4,%d5 <== NOT EXECUTED 527fa: 6514 bcss 52810 <== NOT EXECUTED 527fc: 47f9 0005 2418 lea 52418 ,%a3 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 52802: 2f05 movel %d5,%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-- ) { 52804: 5385 subql #1,%d5 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 52806: 2f0a movel %a2,%sp@- <== NOT EXECUTED 52808: 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-- ) { 5280a: 508f addql #8,%sp <== NOT EXECUTED 5280c: ba8c cmpl %a4,%d5 <== NOT EXECUTED 5280e: 64f2 bccs 52802 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 52810: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 52816: 721c moveq #28,%d1 <== NOT EXECUTED 52818: 2040 moveal %d0,%a0 <== NOT EXECUTED 5281a: 70ff moveq #-1,%d0 <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 5281c: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 52822: 2081 movel %d1,%a0@ <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 52824: 4e5e unlk %fp <== NOT EXECUTED 52826: 4e75 rts <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); 52828: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 5282e: 7416 moveq #22,%d2 <== NOT EXECUTED 52830: 2040 moveal %d0,%a0 <== NOT EXECUTED 52832: 70ff moveq #-1,%d0 <== NOT EXECUTED 52834: 2082 movel %d2,%a0@ <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 52836: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 5283c: 4e5e unlk %fp <== NOT EXECUTED 5283e: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 52840: 4879 0006 2de0 pea 62de0 <== NOT EXECUTED 52846: 4879 0006 2f5f pea 62f5f <__FUNCTION__.5956> <== NOT EXECUTED 5284c: 4878 0131 pea 131 <== NOT EXECUTED 52850: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52856: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 5285c: 4879 0006 2e30 pea 62e30 <== NOT EXECUTED 52862: 4879 0006 2f5f pea 62f5f <__FUNCTION__.5956> <== NOT EXECUTED 52868: 4878 0135 pea 135 <== NOT EXECUTED 5286c: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52872: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 000521b4 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 521b4: 4e56 fff0 linkw %fp,#-16 521b8: 48d7 041c moveml %d2-%d4/%a2,%sp@ 521bc: 246e 0008 moveal %fp@(8),%a2 521c0: 242e 000c movel %fp@(12),%d2 /* * Perform internal consistency checks */ assert( the_jnode ); 521c4: 4a8a tstl %a2 521c6: 6700 01b2 beqw 5237a if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 521ca: 7005 moveq #5,%d0 521cc: b0aa 0048 cmpl %a2@(72),%d0 521d0: 6600 01c4 bnew 52396 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 521d4: 2239 0006 48a4 movel 648a4 ,%d1 521da: e489 lsrl #2,%d1 521dc: 2001 movel %d1,%d0 521de: 5380 subql #1,%d0 521e0: b082 cmpl %d2,%d0 521e2: 6446 bccs 5222a /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 521e4: 2001 movel %d1,%d0 <== NOT EXECUTED 521e6: 5280 addql #1,%d0 <== NOT EXECUTED 521e8: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 521ec: 2040 moveal %d0,%a0 <== NOT EXECUTED 521ee: 5388 subql #1,%a0 <== NOT EXECUTED 521f0: b1c2 cmpal %d2,%a0 <== NOT EXECUTED 521f2: 6500 00c2 bcsw 522b6 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 521f6: 9481 subl %d1,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 521f8: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 521fc: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 52200: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { 52204: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 52208: 6700 0086 beqw 52290 <== NOT EXECUTED if ( !p ) { 5220c: 4a88 tstl %a0 <== NOT EXECUTED 5220e: 6750 beqs 52260 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 52210: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 52214: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 52216: 4a88 tstl %a0 <== NOT EXECUTED 52218: 6760 beqs 5227a <== 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 ]; 5221a: 41f0 3c00 lea %a0@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 5221e: 2008 movel %a0,%d0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 52220: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 52226: 4e5e unlk %fp <== NOT EXECUTED 52228: 4e75 rts <== NOT EXECUTED if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 5222a: 206a 0054 moveal %a2@(84),%a0 if ( malloc_it ) { 5222e: 4aae 0010 tstl %fp@(16) 52232: 6776 beqs 522aa if ( !p ) { 52234: 4a88 tstl %a0 52236: 6710 beqs 52248 } if ( !p ) return 0; return &info->indirect[ my_block ]; 52238: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 5223c: 2008 movel %a0,%d0 /* * This means the requested block number is out of range. */ return 0; } 5223e: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 52244: 4e5e unlk %fp 52246: 4e75 rts p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 52248: 4eb9 0005 2190 jsr 52190 5224e: 2040 moveal %d0,%a0 if ( !p ) 52250: 4a80 tstl %d0 52252: 674a beqs 5229e return 0; info->indirect = p; 52254: 2540 0054 movel %d0,%a2@(84) } if ( !p ) return 0; return &info->indirect[ my_block ]; 52258: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 5225c: 2008 movel %a0,%d0 5225e: 60de bras 5223e p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 52260: 4eb9 0005 2190 jsr 52190 <== NOT EXECUTED 52266: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p ) 52268: 4a80 tstl %d0 <== NOT EXECUTED 5226a: 6732 beqs 5229e <== NOT EXECUTED return 0; info->doubly_indirect = p; 5226c: 2540 0058 movel %d0,%a2@(88) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 52270: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 52274: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 52276: 4a88 tstl %a0 <== NOT EXECUTED 52278: 66a0 bnes 5221a <== NOT EXECUTED p1 = memfile_alloc_block(); 5227a: 4eb9 0005 2190 jsr 52190 <== NOT EXECUTED 52280: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p1 ) 52282: 4a80 tstl %d0 <== NOT EXECUTED 52284: 6718 beqs 5229e <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 52286: 2480 movel %d0,%a2@ <== 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 ]; 52288: 41f0 3c00 lea %a0@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 5228c: 2008 movel %a0,%d0 <== NOT EXECUTED 5228e: 6090 bras 52220 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 52290: 4a88 tstl %a0 <== NOT EXECUTED 52292: 670a beqs 5229e <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 52294: 2070 2c00 moveal %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED if ( !p ) 52298: 4a88 tstl %a0 <== NOT EXECUTED 5229a: 6600 ff7e bnew 5221a <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 5229e: 4280 clrl %d0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 522a0: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 522a6: 4e5e unlk %fp <== NOT EXECUTED 522a8: 4e75 rts <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 522aa: 4a88 tstl %a0 522ac: 67f0 beqs 5229e return 0; return &info->indirect[ my_block ]; 522ae: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 522b2: 2008 movel %a0,%d0 522b4: 6088 bras 5223e #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 522b6: 2600 movel %d0,%d3 <== NOT EXECUTED 522b8: 5283 addql #1,%d3 <== NOT EXECUTED 522ba: 4c01 3800 mulsl %d1,%d3 <== NOT EXECUTED 522be: 5383 subql #1,%d3 <== NOT EXECUTED 522c0: b682 cmpl %d2,%d3 <== NOT EXECUTED 522c2: 65da bcss 5229e <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 522c4: 9480 subl %d0,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 522c6: 4c41 2004 remul %d1,%d4,%d2 <== NOT EXECUTED 522ca: 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; 522ce: 206a 005c moveal %a2@(92),%a0 <== 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; 522d2: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 522d6: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { 522da: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 522de: 6778 beqs 52358 <== NOT EXECUTED if ( !p ) { 522e0: 4a88 tstl %a0 <== NOT EXECUTED 522e2: 6756 beqs 5233a <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 522e4: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 522e8: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 522ea: 4a88 tstl %a0 <== NOT EXECUTED 522ec: 6730 beqs 5231e <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 522ee: 45f0 3c00 lea %a0@(00000000,%d3:l:4),%a2 <== NOT EXECUTED 522f2: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p2 ) { 522f4: 4a88 tstl %a0 <== NOT EXECUTED 522f6: 6710 beqs 52308 <== NOT EXECUTED p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 522f8: 41f0 4c00 lea %a0@(00000000,%d4:l:4),%a0 <== NOT EXECUTED 522fc: 2008 movel %a0,%d0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 522fe: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 52304: 4e5e unlk %fp <== NOT EXECUTED 52306: 4e75 rts <== NOT EXECUTED p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); 52308: 4eb9 0005 2190 jsr 52190 <== NOT EXECUTED 5230e: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p2 ) 52310: 4a80 tstl %d0 <== NOT EXECUTED 52312: 678a beqs 5229e <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 52314: 2480 movel %d0,%a2@ <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 52316: 41f0 4c00 lea %a0@(00000000,%d4:l:4),%a0 <== NOT EXECUTED 5231a: 2008 movel %a0,%d0 <== NOT EXECUTED 5231c: 60e0 bras 522fe <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 5231e: 4eb9 0005 2190 jsr 52190 <== NOT EXECUTED 52324: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p1 ) 52326: 4a80 tstl %d0 <== NOT EXECUTED 52328: 6700 ff74 beqw 5229e <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 5232c: 2480 movel %d0,%a2@ <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 5232e: 45f0 3c00 lea %a0@(00000000,%d3:l:4),%a2 <== NOT EXECUTED 52332: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p2 ) { 52334: 4a88 tstl %a0 <== NOT EXECUTED 52336: 66c0 bnes 522f8 <== NOT EXECUTED 52338: 60ce bras 52308 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 5233a: 4eb9 0005 2190 jsr 52190 <== NOT EXECUTED 52340: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p ) 52342: 4a80 tstl %d0 <== NOT EXECUTED 52344: 6700 ff58 beqw 5229e <== NOT EXECUTED return 0; info->triply_indirect = p; 52348: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 5234c: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 52350: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 52352: 4a88 tstl %a0 <== NOT EXECUTED 52354: 6698 bnes 522ee <== NOT EXECUTED 52356: 60c6 bras 5231e <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 52358: 4a88 tstl %a0 <== NOT EXECUTED 5235a: 6700 ff42 beqw 5229e <== 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 ]; 5235e: 2070 2c00 moveal %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED if ( !p1 ) 52362: 4a88 tstl %a0 <== NOT EXECUTED 52364: 6700 ff38 beqw 5229e <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 52368: 2004 movel %d4,%d0 <== NOT EXECUTED 5236a: e588 lsll #2,%d0 <== NOT EXECUTED 5236c: d0b0 3c00 addl %a0@(00000000,%d3:l:4),%d0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 52370: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 52376: 4e5e unlk %fp <== NOT EXECUTED 52378: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 5237a: 4879 0006 2de0 pea 62de0 <== NOT EXECUTED 52380: 4879 0006 2eba pea 62eba <__FUNCTION__.6315> <== NOT EXECUTED 52386: 4878 0388 pea 388 <== NOT EXECUTED 5238a: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52390: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 52396: 4879 0006 2e30 pea 62e30 <== NOT EXECUTED 5239c: 4879 0006 2eba pea 62eba <__FUNCTION__.6315> <== NOT EXECUTED 523a2: 4878 038c pea 38c <== NOT EXECUTED 523a6: 4879 0006 2dea pea 62dea <== NOT EXECUTED 523ac: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 00052d30 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 52d30: 4e56 ffc0 linkw %fp,#-64 52d34: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 52d38: 246e 0008 moveal %fp@(8),%a2 52d3c: 2a6e 0014 moveal %fp@(20),%a5 52d40: 262e 0018 movel %fp@(24),%d3 52d44: 282e 000c movel %fp@(12),%d4 52d48: 2a2e 0010 movel %fp@(16),%d5 /* * Perform internal consistency checks */ assert( the_jnode ); 52d4c: 4a8a tstl %a2 52d4e: 6700 0266 beqw 52fb6 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 52d52: 202a 0048 movel %a2@(72),%d0 52d56: 2040 moveal %d0,%a0 52d58: 5b88 subql #5,%a0 52d5a: 7c01 moveq #1,%d6 52d5c: bc88 cmpl %a0,%d6 52d5e: 6500 023a bcsw 52f9a /* * Error checks on arguments */ assert( dest ); 52d62: 4a8d tstl %a5 52d64: 6700 01fc beqw 52f62 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 52d68: 4a83 tstl %d3 52d6a: 6700 01c2 beqw 52f2e /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 52d6e: 7e06 moveq #6,%d7 52d70: be80 cmpl %d0,%d7 52d72: 6700 0136 beqw 52eaa * 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 ) 52d76: 2043 moveal %d3,%a0 52d78: d1c5 addal %d5,%a0 52d7a: 2408 movel %a0,%d2 52d7c: 4281 clrl %d1 52d7e: 206a 004c moveal %a2@(76),%a0 52d82: 226a 0050 moveal %a2@(80),%a1 52d86: 2c08 movel %a0,%d6 52d88: 2e09 movel %a1,%d7 52d8a: 9e82 subl %d2,%d7 52d8c: 9d81 subxl %d1,%d6 52d8e: 6c04 bges 52d94 my_length = the_jnode->info.file.size - start; 52d90: 2609 movel %a1,%d3 52d92: 9685 subl %d5,%d3 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 52d94: 2439 0006 48a4 movel 648a4 ,%d2 52d9a: 2202 movel %d2,%d1 52d9c: 5bc0 smi %d0 52d9e: 49c0 extbl %d0 52da0: 2640 moveal %d0,%a3 52da2: 2841 moveal %d1,%a4 52da4: 2f0c movel %a4,%sp@- 52da6: 2f00 movel %d0,%sp@- 52da8: 2f05 movel %d5,%sp@- 52daa: 2f04 movel %d4,%sp@- 52dac: 4eb9 0006 0598 jsr 60598 <__moddi3> 52db2: 4fef 0010 lea %sp@(16),%sp 52db6: 2e01 movel %d1,%d7 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 52db8: 2f0c movel %a4,%sp@- 52dba: 2f0b movel %a3,%sp@- 52dbc: 2f05 movel %d5,%sp@- 52dbe: 2f04 movel %d4,%sp@- 52dc0: 4eb9 0006 01e0 jsr 601e0 <__divdi3> 52dc6: 4fef 0010 lea %sp@(16),%sp 52dca: 2801 movel %d1,%d4 if ( start_offset ) { 52dcc: 4a87 tstl %d7 52dce: 6700 00d2 beqw 52ea2 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 ); 52dd2: 42a7 clrl %sp@- 52dd4: 2f01 movel %d1,%sp@- 52dd6: 2f0a movel %a2,%sp@- 52dd8: 4eb9 0005 21b4 jsr 521b4 assert( block_ptr ); 52dde: 4fef 000c lea %sp@(12),%sp 52de2: 4a80 tstl %d0 52de4: 6700 01ec beqw 52fd2 */ 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; 52de8: 9487 subl %d7,%d2 52dea: 2643 moveal %d3,%a3 52dec: b483 cmpl %d3,%d2 52dee: 6500 0116 bcsw 52f06 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 ); 52df2: 2f0b movel %a3,%sp@- 52df4: 2040 moveal %d0,%a0 52df6: de90 addl %a0@,%d7 dest += to_copy; block++; 52df8: 5284 addql #1,%d4 my_length -= to_copy; 52dfa: 968b subl %a3,%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 ); 52dfc: 2f07 movel %d7,%sp@- dest += to_copy; 52dfe: 2e0d movel %a5,%d7 52e00: de8b addl %a3,%d7 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 ); 52e02: 2f0d movel %a5,%sp@- 52e04: 4eb9 0005 4e34 jsr 54e34 dest += to_copy; block++; my_length -= to_copy; 52e0a: 2439 0006 48a4 movel 648a4 ,%d2 52e10: 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 ) { 52e14: b483 cmpl %d3,%d2 52e16: 623c bhis 52e54 52e18: 49f9 0005 21b4 lea 521b4 ,%a4 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 ); 52e1e: 4bf9 0005 4e34 lea 54e34 ,%a5 * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 52e24: 42a7 clrl %sp@- 52e26: 2f04 movel %d4,%sp@- 52e28: 2f0a movel %a2,%sp@- 52e2a: 4e94 jsr %a4@ assert( block_ptr ); 52e2c: 4fef 000c lea %sp@(12),%sp 52e30: 4a80 tstl %d0 52e32: 6700 0112 beqw 52f46 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 52e36: 2040 moveal %d0,%a0 dest += to_copy; block++; 52e38: 5284 addql #1,%d4 my_length -= to_copy; 52e3a: 9682 subl %d2,%d3 copied += to_copy; 52e3c: d7c2 addal %d2,%a3 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 ); 52e3e: 2f02 movel %d2,%sp@- 52e40: 2f10 movel %a0@,%sp@- 52e42: 2f07 movel %d7,%sp@- dest += to_copy; 52e44: de82 addl %d2,%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 ); 52e46: 4e95 jsr %a5@ /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 52e48: 4fef 000c lea %sp@(12),%sp 52e4c: b6b9 0006 48a4 cmpl 648a4 ,%d3 52e52: 64d0 bccs 52e24 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 52e54: 4a83 tstl %d3 52e56: 672a beqs 52e82 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 52e58: 42a7 clrl %sp@- 52e5a: 2f04 movel %d4,%sp@- 52e5c: 2f0a movel %a2,%sp@- 52e5e: 4eb9 0005 21b4 jsr 521b4 assert( block_ptr ); 52e64: 4fef 000c lea %sp@(12),%sp 52e68: 4a80 tstl %d0 52e6a: 6700 0112 beqw 52f7e if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 52e6e: 2040 moveal %d0,%a0 copied += my_length; 52e70: d7c3 addal %d3,%a3 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 ); 52e72: 2f03 movel %d3,%sp@- 52e74: 2f10 movel %a0@,%sp@- 52e76: 2f07 movel %d7,%sp@- 52e78: 4eb9 0005 4e34 jsr 54e34 copied += my_length; 52e7e: 4fef 000c lea %sp@(12),%sp } IMFS_update_atime( the_jnode ); 52e82: 42a7 clrl %sp@- 52e84: 486e fff8 pea %fp@(-8) 52e88: 4eb9 0004 404c jsr 4404c 52e8e: 256e fff8 003c movel %fp@(-8),%a2@(60) return copied; 52e94: 200b movel %a3,%d0 52e96: 508f addql #8,%sp } 52e98: 4cee 3cfc ffc0 moveml %fp@(-64),%d2-%d7/%a2-%a5 52e9e: 4e5e unlk %fp 52ea0: 4e75 rts * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { 52ea2: 2e0d movel %a5,%d7 52ea4: 97cb subal %a3,%a3 52ea6: 6000 ff6c braw 52e14 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 52eaa: 2843 moveal %d3,%a4 <== NOT EXECUTED 52eac: 97cb subal %a3,%a3 <== NOT EXECUTED 52eae: 202a 004c movel %a2@(76),%d0 <== NOT EXECUTED 52eb2: 222a 0050 movel %a2@(80),%d1 <== NOT EXECUTED 52eb6: 2c0b movel %a3,%d6 <== NOT EXECUTED 52eb8: 2e0c movel %a4,%d7 <== NOT EXECUTED 52eba: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED 52ebe: 2d41 ffec movel %d1,%fp@(-20) <== NOT EXECUTED 52ec2: 9285 subl %d5,%d1 <== NOT EXECUTED 52ec4: 9184 subxl %d4,%d0 <== 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; 52ec6: 206a 0054 moveal %a2@(84),%a0 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 52eca: 9e81 subl %d1,%d7 <== NOT EXECUTED 52ecc: 9d80 subxl %d0,%d6 <== NOT EXECUTED 52ece: 6f06 bles 52ed6 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 52ed0: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 52ed4: 9685 subl %d5,%d3 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 52ed6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 52ed8: 4870 5800 pea %a0@(00000000,%d5:l) <== NOT EXECUTED 52edc: 2f0d movel %a5,%sp@- <== NOT EXECUTED 52ede: 4eb9 0005 4e34 jsr 54e34 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 52ee4: 42a7 clrl %sp@- <== NOT EXECUTED 52ee6: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 52eea: 4eb9 0004 404c jsr 4404c <== NOT EXECUTED 52ef0: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED return my_length; 52ef6: 2003 movel %d3,%d0 <== NOT EXECUTED 52ef8: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 52efc: 4cee 3cfc ffc0 moveml %fp@(-64),%d2-%d7/%a2-%a5 <== NOT EXECUTED 52f02: 4e5e unlk %fp <== NOT EXECUTED 52f04: 4e75 rts <== 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; 52f06: 2642 moveal %d2,%a3 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 ); 52f08: 2040 moveal %d0,%a0 dest += to_copy; block++; 52f0a: 5284 addql #1,%d4 my_length -= to_copy; 52f0c: 968b subl %a3,%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 ); 52f0e: 2f0b movel %a3,%sp@- 52f10: de90 addl %a0@,%d7 52f12: 2f07 movel %d7,%sp@- dest += to_copy; 52f14: 2e0d movel %a5,%d7 52f16: de8b addl %a3,%d7 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 ); 52f18: 2f0d movel %a5,%sp@- 52f1a: 4eb9 0005 4e34 jsr 54e34 dest += to_copy; block++; my_length -= to_copy; 52f20: 2439 0006 48a4 movel 648a4 ,%d2 52f26: 4fef 000c lea %sp@(12),%sp 52f2a: 6000 fee8 braw 52e14 * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 52f2e: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 52f34: 7e16 moveq #22,%d7 <== NOT EXECUTED 52f36: 2040 moveal %d0,%a0 <== NOT EXECUTED 52f38: 70ff moveq #-1,%d0 <== NOT EXECUTED 52f3a: 2087 movel %d7,%a0@ <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 52f3c: 4cee 3cfc ffc0 moveml %fp@(-64),%d2-%d7/%a2-%a5 <== NOT EXECUTED 52f42: 4e5e unlk %fp <== NOT EXECUTED 52f44: 4e75 rts <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52f46: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 52f4c: 4879 0006 2eec pea 62eec <__FUNCTION__.6142> <== NOT EXECUTED 52f52: 4878 02a7 pea 2a7 <== NOT EXECUTED 52f56: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52f5c: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 52f62: 4879 0006 2eb5 pea 62eb5 <== NOT EXECUTED 52f68: 4879 0006 2eec pea 62eec <__FUNCTION__.6142> <== NOT EXECUTED 52f6e: 4878 025a pea 25a <== NOT EXECUTED 52f72: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52f78: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52f7e: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 52f84: 4879 0006 2eec pea 62eec <__FUNCTION__.6142> <== NOT EXECUTED 52f8a: 4878 02b9 pea 2b9 <== NOT EXECUTED 52f8e: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52f94: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 52f9a: 4879 0006 2e6a pea 62e6a <== NOT EXECUTED 52fa0: 4879 0006 2eec pea 62eec <__FUNCTION__.6142> <== NOT EXECUTED 52fa6: 4878 0251 pea 251 <== NOT EXECUTED 52faa: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52fb0: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 52fb6: 4879 0006 2de0 pea 62de0 <== NOT EXECUTED 52fbc: 4879 0006 2eec pea 62eec <__FUNCTION__.6142> <== NOT EXECUTED 52fc2: 4878 024c pea 24c <== NOT EXECUTED 52fc6: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52fcc: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52fd2: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 52fd8: 4879 0006 2eec pea 62eec <__FUNCTION__.6142> <== NOT EXECUTED 52fde: 4878 0296 pea 296 <== NOT EXECUTED 52fe2: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52fe8: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 00052464 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 52464: 4e56 ffe0 linkw %fp,#-32 52468: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 5246c: 286e 0008 moveal %fp@(8),%a4 /* * Perform internal consistency checks */ assert( the_jnode ); 52470: 4a8c tstl %a4 52472: 6700 010c beqw 52580 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 52476: 7005 moveq #5,%d0 52478: b0ac 0048 cmpl %a4@(72),%d0 5247c: 6600 011e bnew 5259c /* * 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; 52480: 2839 0006 48a4 movel 648a4 ,%d4 52486: e48c lsrl #2,%d4 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 52488: 4aac 0054 tstl %a4@(84) 5248c: 670e beqs 5249c if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 5248e: 2f04 movel %d4,%sp@- 52490: 486c 0054 pea %a4@(84) 52494: 4eb9 0005 23b2 jsr 523b2 5249a: 508f addql #8,%sp } if ( info->doubly_indirect ) { 5249c: 206c 0058 moveal %a4@(88),%a0 524a0: 4a88 tstl %a0 524a2: 674a beqs 524ee for ( i=0 ; i,%d1 <== NOT EXECUTED 524aa: 2001 movel %d1,%d0 <== NOT EXECUTED 524ac: 47f9 0005 23b2 lea 523b2 ,%a3 <== NOT EXECUTED 524b2: e488 lsrl #2,%d0 <== NOT EXECUTED 524b4: 672e beqs 524e4 <== NOT EXECUTED 524b6: 4280 clrl %d0 <== NOT EXECUTED 524b8: 4282 clrl %d2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 524ba: e588 lsll #2,%d0 <== NOT EXECUTED 524bc: 4ab0 0800 tstl %a0@(00000000,%d0:l) <== NOT EXECUTED 524c0: 6710 beqs 524d2 <== NOT EXECUTED memfile_free_blocks_in_table( 524c2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 524c4: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 524c8: 4e93 jsr %a3@ <== NOT EXECUTED 524ca: 2239 0006 48a4 movel 648a4 ,%d1 <== NOT EXECUTED 524d0: 508f addql #8,%sp <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 524de: 206c 0058 moveal %a4@(88),%a0 <== NOT EXECUTED 524e2: 60d6 bras 524ba <== 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 ); 524e4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 524e6: 486c 0058 pea %a4@(88) <== NOT EXECUTED 524ea: 4e93 jsr %a3@ <== NOT EXECUTED 524ec: 508f addql #8,%sp <== NOT EXECUTED } if ( info->triply_indirect ) { 524ee: 206c 005c moveal %a4@(92),%a0 524f2: 4a88 tstl %a0 524f4: 677e beqs 52574 for ( i=0 ; i,%d1 <== NOT EXECUTED 524fc: 2001 movel %d1,%d0 <== NOT EXECUTED 524fe: 47f9 0005 23b2 lea 523b2 ,%a3 <== NOT EXECUTED 52504: e488 lsrl #2,%d0 <== NOT EXECUTED 52506: 6762 beqs 5256a <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 52508: 2450 moveal %a0@,%a2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 5250a: 4a8a tstl %a2 <== NOT EXECUTED 5250c: 675c beqs 5256a <== NOT EXECUTED 5250e: 4286 clrl %d6 <== NOT EXECUTED 52510: 4285 clrl %d5 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 52516: 4280 clrl %d0 <== NOT EXECUTED 52518: 4282 clrl %d2 <== NOT EXECUTED if ( p[j] ) { 5251a: e588 lsll #2,%d0 <== NOT EXECUTED 5251c: 4ab2 0800 tstl %a2@(00000000,%d0:l) <== NOT EXECUTED 52520: 6710 beqs 52532 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 52522: 2f04 movel %d4,%sp@- <== NOT EXECUTED 52524: 4872 0800 pea %a2@(00000000,%d0:l) <== NOT EXECUTED 52528: 4e93 jsr %a3@ <== NOT EXECUTED 5252a: 2239 0006 48a4 movel 648a4 ,%d1 <== NOT EXECUTED 52530: 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 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 5253e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 52540: dcac 005c addl %a4@(92),%d6 <== 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,%d1 <== NOT EXECUTED 52550: 2001 movel %d1,%d0 <== NOT EXECUTED 52552: 508f addql #8,%sp <== NOT EXECUTED 52554: e488 lsrl #2,%d0 <== NOT EXECUTED 52556: ba80 cmpl %d0,%d5 <== NOT EXECUTED 52558: 6410 bccs 5256a <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ 5255a: 2c05 movel %d5,%d6 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 5255c: 206c 005c moveal %a4@(92),%a0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 52560: e58e lsll #2,%d6 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 52562: 2470 6800 moveal %a0@(00000000,%d6:l),%a2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 52566: 4a8a tstl %a2 <== NOT EXECUTED 52568: 66a8 bnes 52512 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 5256a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5256c: 486c 005c pea %a4@(92) <== NOT EXECUTED 52570: 4e93 jsr %a3@ <== NOT EXECUTED 52572: 508f addql #8,%sp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 52574: 4280 clrl %d0 52576: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 5257c: 4e5e unlk %fp 5257e: 4e75 rts /* * Perform internal consistency checks */ assert( the_jnode ); 52580: 4879 0006 2de0 pea 62de0 <== NOT EXECUTED 52586: 4879 0006 2efe pea 62efe <__FUNCTION__.6067> <== NOT EXECUTED 5258c: 4878 01ee pea 1ee <== NOT EXECUTED 52590: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52596: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 5259c: 4879 0006 2e30 pea 62e30 <== NOT EXECUTED 525a2: 4879 0006 2efe pea 62efe <__FUNCTION__.6067> <== NOT EXECUTED 525a8: 4878 01f2 pea 1f2 <== NOT EXECUTED 525ac: 4879 0006 2dea pea 62dea <== NOT EXECUTED 525b2: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 00052418 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 52418: 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 ); 5241c: 42a7 clrl %sp@- <== NOT EXECUTED 5241e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52422: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52426: 4eb9 0005 21b4 jsr 521b4 <== NOT EXECUTED assert( block_ptr ); 5242c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 52430: 4a80 tstl %d0 <== NOT EXECUTED 52432: 6714 beqs 52448 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 52434: 2040 moveal %d0,%a0 <== NOT EXECUTED 52436: 2210 movel %a0@,%d1 <== NOT EXECUTED *block_ptr = 0; 52438: 4290 clrl %a0@ <== NOT EXECUTED memfile_free_block( ptr ); 5243a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 5243c: 4eb9 0005 2176 jsr 52176 <== NOT EXECUTED } return 1; } 52442: 7001 moveq #1,%d0 <== NOT EXECUTED 52444: 4e5e unlk %fp <== NOT EXECUTED 52446: 4e75 rts <== NOT EXECUTED { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52448: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 5244e: 4879 0006 2f2f pea 62f2f <__FUNCTION__.6031> <== NOT EXECUTED 52454: 4878 0196 pea 196 <== NOT EXECUTED 52458: 4879 0006 2dea pea 62dea <== NOT EXECUTED 5245e: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 0005299e : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 5299e: 4e56 ffd0 linkw %fp,#-48 529a2: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 529a6: 246e 0008 moveal %fp@(8),%a2 529aa: 2a6e 0014 moveal %fp@(20),%a5 529ae: 262e 0018 movel %fp@(24),%d3 529b2: 282e 000c movel %fp@(12),%d4 529b6: 2a2e 0010 movel %fp@(16),%d5 /* * Perform internal consistency checks */ assert( the_jnode ); 529ba: 4a8a tstl %a2 529bc: 6700 01f8 beqw 52bb6 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 529c0: 7405 moveq #5,%d2 529c2: b4aa 0048 cmpl %a2@(72),%d2 529c6: 6600 01d2 bnew 52b9a /* * Error check arguments */ assert( source ); 529ca: 4a8d tstl %a5 529cc: 6700 0204 beqw 52bd2 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 529d0: 4a83 tstl %d3 529d2: 6700 0190 beqw 52b64 * 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 ) { 529d6: 2043 moveal %d3,%a0 529d8: d1c5 addal %d5,%a0 529da: 2208 movel %a0,%d1 529dc: 4280 clrl %d0 529de: 2c2a 004c movel %a2@(76),%d6 529e2: 2e2a 0050 movel %a2@(80),%d7 529e6: 9e81 subl %d1,%d7 529e8: 9d80 subxl %d0,%d6 529ea: 6d00 011e bltw 52b0a /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 529ee: 2439 0006 48a4 movel 648a4 ,%d2 529f4: 2202 movel %d2,%d1 529f6: 5bc0 smi %d0 529f8: 49c0 extbl %d0 529fa: 2640 moveal %d0,%a3 529fc: 2841 moveal %d1,%a4 529fe: 2f0c movel %a4,%sp@- 52a00: 2f00 movel %d0,%sp@- 52a02: 2f05 movel %d5,%sp@- 52a04: 2f04 movel %d4,%sp@- 52a06: 4eb9 0006 0598 jsr 60598 <__moddi3> 52a0c: 4fef 0010 lea %sp@(16),%sp 52a10: 2e01 movel %d1,%d7 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 52a12: 2f0c movel %a4,%sp@- 52a14: 2f0b movel %a3,%sp@- 52a16: 2f05 movel %d5,%sp@- 52a18: 2f04 movel %d4,%sp@- 52a1a: 4eb9 0006 01e0 jsr 601e0 <__divdi3> 52a20: 4fef 0010 lea %sp@(16),%sp 52a24: 2801 movel %d1,%d4 if ( start_offset ) { 52a26: 4a87 tstl %d7 52a28: 6700 00d8 beqw 52b02 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 ); 52a2c: 42a7 clrl %sp@- 52a2e: 2f01 movel %d1,%sp@- 52a30: 2f0a movel %a2,%sp@- 52a32: 4eb9 0005 21b4 jsr 521b4 assert( block_ptr ); 52a38: 4fef 000c lea %sp@(12),%sp 52a3c: 4a80 tstl %d0 52a3e: 6700 01ca beqw 52c0a */ 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; 52a42: 9487 subl %d7,%d2 52a44: b682 cmpl %d2,%d3 52a46: 6500 00f2 bcsw 52b3a 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 ); 52a4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52a4c: 2040 moveal %d0,%a0 <== NOT EXECUTED src += to_copy; 52a4e: 47f5 2800 lea %a5@(00000000,%d2:l),%a3 <== NOT EXECUTED block++; my_length -= to_copy; 52a52: 9682 subl %d2,%d3 <== NOT EXECUTED copied += to_copy; 52a54: 2a02 movel %d2,%d5 <== NOT EXECUTED #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; block++; 52a56: 5284 addql #1,%d4 <== NOT EXECUTED 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 ); 52a58: 2f0d movel %a5,%sp@- <== NOT EXECUTED 52a5a: de90 addl %a0@,%d7 <== NOT EXECUTED 52a5c: 2f07 movel %d7,%sp@- <== NOT EXECUTED 52a5e: 4eb9 0005 4e34 jsr 54e34 <== NOT EXECUTED src += to_copy; block++; my_length -= to_copy; copied += to_copy; 52a64: 2439 0006 48a4 movel 648a4 ,%d2 <== NOT EXECUTED 52a6a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 52a6e: b483 cmpl %d3,%d2 52a70: 623c bhis 52aae 52a72: 49f9 0005 21b4 lea 521b4 ,%a4 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 ); 52a78: 4bf9 0005 4e34 lea 54e34 ,%a5 * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 52a7e: 42a7 clrl %sp@- 52a80: 2f04 movel %d4,%sp@- 52a82: 2f0a movel %a2,%sp@- 52a84: 4e94 jsr %a4@ assert( block_ptr ); 52a86: 4fef 000c lea %sp@(12),%sp 52a8a: 4a80 tstl %d0 52a8c: 6700 00f0 beqw 52b7e 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 ); 52a90: 2f02 movel %d2,%sp@- 52a92: 2040 moveal %d0,%a0 src += to_copy; block++; 52a94: 5284 addql #1,%d4 my_length -= to_copy; 52a96: 9682 subl %d2,%d3 * * 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( 52a98: da82 addl %d2,%d5 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 ); 52a9a: 2f0b movel %a3,%sp@- 52a9c: 2f10 movel %a0@,%sp@- src += to_copy; 52a9e: d7c2 addal %d2,%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 ); 52aa0: 4e95 jsr %a5@ /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 52aa2: 4fef 000c lea %sp@(12),%sp 52aa6: b6b9 0006 48a4 cmpl 648a4 ,%d3 52aac: 64d0 bccs 52a7e */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 52aae: 4a83 tstl %d3 52ab0: 672a beqs 52adc block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 52ab2: 42a7 clrl %sp@- 52ab4: 2f04 movel %d4,%sp@- 52ab6: 2f0a movel %a2,%sp@- 52ab8: 4eb9 0005 21b4 jsr 521b4 assert( block_ptr ); 52abe: 4fef 000c lea %sp@(12),%sp 52ac2: 4a80 tstl %d0 52ac4: 6700 0128 beqw 52bee 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 ); 52ac8: 2f03 movel %d3,%sp@- 52aca: 2040 moveal %d0,%a0 my_length = 0; copied += to_copy; 52acc: da83 addl %d3,%d5 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 ); 52ace: 2f0b movel %a3,%sp@- 52ad0: 2f10 movel %a0@,%sp@- 52ad2: 4eb9 0005 4e34 jsr 54e34 my_length = 0; copied += to_copy; 52ad8: 4fef 000c lea %sp@(12),%sp } IMFS_mtime_ctime_update( the_jnode ); 52adc: 42a7 clrl %sp@- 52ade: 486e fff8 pea %fp@(-8) 52ae2: 4eb9 0004 404c jsr 4404c 52ae8: 202e fff8 movel %fp@(-8),%d0 return copied; 52aec: 508f addql #8,%sp memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 52aee: 2540 0044 movel %d0,%a2@(68) 52af2: 2540 0040 movel %d0,%a2@(64) return copied; } 52af6: 2005 movel %d5,%d0 52af8: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 52afe: 4e5e unlk %fp 52b00: 4e75 rts * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { 52b02: 264d moveal %a5,%a3 52b04: 4285 clrl %d5 52b06: 6000 ff66 braw 52a6e * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { status = IMFS_memfile_extend( the_jnode, last_byte ); 52b0a: 2f08 movel %a0,%sp@- 52b0c: 2f00 movel %d0,%sp@- 52b0e: 2f0a movel %a2,%sp@- 52b10: 4eb9 0005 2726 jsr 52726 if ( status ) 52b16: 4fef 000c lea %sp@(12),%sp 52b1a: 4a80 tstl %d0 52b1c: 6700 fed0 beqw 529ee rtems_set_errno_and_return_minus_one( ENOSPC ); 52b20: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 52b26: 7aff moveq #-1,%d5 <== NOT EXECUTED 52b28: 781c moveq #28,%d4 <== NOT EXECUTED 52b2a: 2040 moveal %d0,%a0 <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); return copied; } 52b2c: 2005 movel %d5,%d0 <== NOT EXECUTED last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { status = IMFS_memfile_extend( the_jnode, last_byte ); if ( status ) rtems_set_errno_and_return_minus_one( ENOSPC ); 52b2e: 2084 movel %d4,%a0@ <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); return copied; } 52b30: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 52b36: 4e5e unlk %fp <== NOT EXECUTED 52b38: 4e75 rts <== 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; 52b3a: 2403 movel %d3,%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 ); 52b3c: 2040 moveal %d0,%a0 src += to_copy; 52b3e: 47f5 2800 lea %a5@(00000000,%d2:l),%a3 block++; my_length -= to_copy; 52b42: 9682 subl %d2,%d3 copied += to_copy; 52b44: 2a02 movel %d2,%d5 #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; block++; 52b46: 5284 addql #1,%d4 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 ); 52b48: 2f02 movel %d2,%sp@- 52b4a: 2f0d movel %a5,%sp@- 52b4c: de90 addl %a0@,%d7 52b4e: 2f07 movel %d7,%sp@- 52b50: 4eb9 0005 4e34 jsr 54e34 src += to_copy; block++; my_length -= to_copy; copied += to_copy; 52b56: 2439 0006 48a4 movel 648a4 ,%d2 52b5c: 4fef 000c lea %sp@(12),%sp 52b60: 6000 ff0c braw 52a6e * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 52b64: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 52b6a: 7aff moveq #-1,%d5 <== NOT EXECUTED 52b6c: 7c16 moveq #22,%d6 <== NOT EXECUTED 52b6e: 2040 moveal %d0,%a0 <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); return copied; } 52b70: 2005 movel %d5,%d0 <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 52b72: 2086 movel %d6,%a0@ <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); return copied; } 52b74: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 52b7a: 4e5e unlk %fp <== NOT EXECUTED 52b7c: 4e75 rts <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52b7e: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 52b84: 4879 0006 2ed9 pea 62ed9 <__FUNCTION__.6234> <== NOT EXECUTED 52b8a: 4878 0330 pea 330 <== NOT EXECUTED 52b8e: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52b94: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 52b9a: 4879 0006 2e30 pea 62e30 <== NOT EXECUTED 52ba0: 4879 0006 2ed9 pea 62ed9 <__FUNCTION__.6234> <== NOT EXECUTED 52ba6: 4878 02e7 pea 2e7 <== NOT EXECUTED 52baa: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52bb0: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 52bb6: 4879 0006 2de0 pea 62de0 <== NOT EXECUTED 52bbc: 4879 0006 2ed9 pea 62ed9 <__FUNCTION__.6234> <== NOT EXECUTED 52bc2: 4878 02e3 pea 2e3 <== NOT EXECUTED 52bc6: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52bcc: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 52bd2: 4879 0006 2543 pea 62543 <== NOT EXECUTED 52bd8: 4879 0006 2ed9 pea 62ed9 <__FUNCTION__.6234> <== NOT EXECUTED 52bde: 4878 02ef pea 2ef <== NOT EXECUTED 52be2: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52be8: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52bee: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 52bf4: 4879 0006 2ed9 pea 62ed9 <__FUNCTION__.6234> <== NOT EXECUTED 52bfa: 4878 0346 pea 346 <== NOT EXECUTED 52bfe: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52c04: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 52c0a: 4879 0006 2e60 pea 62e60 <== NOT EXECUTED 52c10: 4879 0006 2ed9 pea 62ed9 <__FUNCTION__.6234> <== NOT EXECUTED 52c16: 4878 031c pea 31c <== NOT EXECUTED 52c1a: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52c20: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 0004a1e8 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 4a1e8: 4e56 ffb0 linkw %fp,#-80 4a1ec: 48d7 007c moveml %d2-%d6,%sp@ 4a1f0: 242e 0008 movel %fp@(8),%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 ); 4a1f4: 260e movel %fp,%d3 4a1f6: 0683 ffff ffc7 addil #-57,%d3 4a1fc: 2f02 movel %d2,%sp@- const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 4a1fe: 282e 000c movel %fp@(12),%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 ); 4a202: 4eb9 0005 01ac jsr 501ac 4a208: 588f addql #4,%sp 4a20a: 486e fffc pea %fp@(-4) const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 4a20e: 2c2e 0010 movel %fp@(16),%d6 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 ); 4a212: 2f03 movel %d3,%sp@- const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 4a214: 2a2e 0014 movel %fp@(20),%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 ); 4a218: 2f00 movel %d0,%sp@- 4a21a: 2f02 movel %d2,%sp@- 4a21c: 4eb9 0004 9fc4 jsr 49fc4 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 4a222: 4fef 0010 lea %sp@(16),%sp 4a226: 2004 movel %d4,%d0 4a228: 0280 0000 f000 andil #61440,%d0 4a22e: 0c80 0000 4000 cmpil #16384,%d0 4a234: 675e beqs 4a294 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 4a236: 0c80 0000 8000 cmpil #32768,%d0 4a23c: 6750 beqs 4a28e type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 4a23e: 0c80 0000 6000 cmpil #24576,%d0 4a244: 673c beqs 4a282 4a246: 0c80 0000 2000 cmpil #8192,%d0 4a24c: 6734 beqs 4a282 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 4a24e: 0c80 0000 1000 cmpil #4096,%d0 4a254: 6642 bnes 4a298 4a256: 303c 0007 movew #7,%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( 4a25a: 486e ffe8 pea %fp@(-24) 4a25e: 2f04 movel %d4,%sp@- 4a260: 2f03 movel %d3,%sp@- 4a262: 2f00 movel %d0,%sp@- 4a264: 2f2e 0018 movel %fp@(24),%sp@- 4a268: 4eb9 0004 d364 jsr 4d364 new_name, mode, &info ); if ( !new_node ) 4a26e: 4fef 0014 lea %sp@(20),%sp 4a272: 4a80 tstl %d0 4a274: 673a beqs 4a2b0 4a276: 4280 clrl %d0 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 4a278: 4cee 007c ffb0 moveml %fp@(-80),%d2-%d6 4a27e: 4e5e unlk %fp 4a280: 4e75 rts type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 4a282: 2d46 ffe8 movel %d6,%fp@(-24) 4a286: 7002 moveq #2,%d0 4a288: 2d45 ffec movel %d5,%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) ) { 4a28c: 60cc bras 4a25a /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 4a28e: 303c 0005 movew #5,%d0 4a292: 60c6 bras 4a25a rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 4a294: 7001 moveq #1,%d0 4a296: 60c2 bras 4a25a 4a298: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4a29e: 7416 moveq #22,%d2 <== NOT EXECUTED 4a2a0: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a2a2: 70ff moveq #-1,%d0 <== NOT EXECUTED 4a2a4: 2082 movel %d2,%a0@ <== NOT EXECUTED if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 4a2a6: 4cee 007c ffb0 moveml %fp@(-80),%d2-%d6 <== NOT EXECUTED 4a2ac: 4e5e unlk %fp <== NOT EXECUTED 4a2ae: 4e75 rts <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 4a2b0: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4a2b6: 720c moveq #12,%d1 <== NOT EXECUTED 4a2b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a2ba: 70ff moveq #-1,%d0 <== NOT EXECUTED return 0; } 4a2bc: 4cee 007c ffb0 moveml %fp@(-80),%d2-%d6 <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 4a2c2: 2081 movel %d1,%a0@ <== NOT EXECUTED return 0; } 4a2c4: 4e5e unlk %fp <== NOT EXECUTED 4a2c6: 4e75 rts 000434f8 : /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 434f8: 7001 moveq #1,%d0 #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 434fa: 4e56 0000 linkw %fp,#0 434fe: 226e 0008 moveal %fp@(8),%a1 IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 43502: 2069 0008 moveal %a1@(8),%a0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 43506: b0a8 0048 cmpl %a0@(72),%d0 4350a: 660a bnes 43516 /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 4350c: 2149 0058 movel %a1,%a0@(88) 43510: 4280 clrl %d0 return 0; } 43512: 4e5e unlk %fp 43514: 4e75 rts /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 43516: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 4351c: 7214 moveq #20,%d1 <== NOT EXECUTED 4351e: 2040 moveal %d0,%a0 <== NOT EXECUTED 43520: 70ff moveq #-1,%d0 <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 43522: 4e5e unlk %fp <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 43524: 2081 movel %d1,%a0@ <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 43526: 4e75 rts 00043b72 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 43b72: 4e56 0000 linkw %fp,#0 43b76: 2f0a movel %a2,%sp@- 43b78: 246e 0008 moveal %fp@(8),%a2 assert( the_jnode ); 43b7c: 4a8a tstl %a2 43b7e: 6700 01ee beqw 43d6e fprintf(stdout, "%s", the_jnode->name ); 43b82: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 43b88: 2f28 0008 movel %a0@(8),%sp@- 43b8c: 486a 000c pea %a2@(12) 43b90: 4eb9 0005 392c jsr 5392c switch( the_jnode->type ) { 43b96: 202a 0048 movel %a2@(72),%d0 43b9a: 508f addql #8,%sp 43b9c: 7207 moveq #7,%d1 43b9e: b280 cmpl %d0,%d1 43ba0: 6434 bccs 43bd6 fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 43ba2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43ba4: 4879 0006 28a8 pea 628a8 <== NOT EXECUTED 43baa: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 <== NOT EXECUTED 43bb0: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43bb4: 4eb9 0005 37c0 jsr 537c0 <== NOT EXECUTED assert(0); 43bba: 4879 0006 1f69 pea 61f69 <== NOT EXECUTED 43bc0: 4879 0006 2998 pea 62998 <__FUNCTION__.6554> <== NOT EXECUTED 43bc6: 4878 006c pea 6c <== NOT EXECUTED 43bca: 4879 0006 280a pea 6280a <== NOT EXECUTED 43bd0: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { 43bd6: 323b 0a08 movew %pc@(43be0 ,%d0:l:2),%d1 43bda: 48c1 extl %d1 43bdc: 4efb 1802 jmp %pc@(43be0 ,%d1:l) 43be0: ffc2 0177702 <== NOT EXECUTED 43be2: 0162 bchg %d0,%a2@- <== NOT EXECUTED 43be4: 012a 00f0 btst %d0,%a2@(240) <== NOT EXECUTED 43be8: 00b6 0082 004a oril #8519754,%d6 <== NOT EXECUTED 43bee: 0010 020 <== NOT EXECUTED fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 43bf0: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 <== NOT EXECUTED 43bf6: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43bfa: 4878 0012 pea 12 <== NOT EXECUTED 43bfe: 4878 0001 pea 1 <== NOT EXECUTED 43c02: 4879 0006 2895 pea 62895 <== NOT EXECUTED 43c08: 4eb9 0005 44f4 jsr 544f4 <== NOT EXECUTED assert(0); 43c0e: 4879 0006 1f69 pea 61f69 <== NOT EXECUTED 43c14: 4879 0006 2998 pea 62998 <__FUNCTION__.6554> <== NOT EXECUTED 43c1a: 4878 0067 pea 67 <== NOT EXECUTED 43c1e: 4879 0006 280a pea 6280a <== NOT EXECUTED 43c24: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 43c2a: 2f2a 0054 movel %a2@(84),%sp@- <== NOT EXECUTED 43c2e: 2f2a 0050 movel %a2@(80),%sp@- <== NOT EXECUTED 43c32: 4879 0006 2866 pea 62866 <== NOT EXECUTED 43c38: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 <== NOT EXECUTED 43c3e: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43c42: 4eb9 0005 37c0 jsr 537c0 <== NOT EXECUTED fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); } 43c48: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43c4c: 203c 0006 2f72 movel #405362,%d0 <== NOT EXECUTED case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 43c52: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43c56: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 43c5a: 4e5e unlk %fp <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43c5c: 4ef9 0005 5224 jmp 55224 <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 43c62: 2f2a 0050 movel %a2@(80),%sp@- 43c66: 4879 0006 2875 pea 62875 43c6c: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 43c72: 2f28 0008 movel %a0@(8),%sp@- 43c76: 4eb9 0005 37c0 jsr 537c0 fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); } 43c7c: 246e fffc moveal %fp@(-4),%a2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43c80: 203c 0006 2f72 movel #405362,%d0 ); #else fprintf(stdout, " (file %" PRId32 ")", (uint32_t)the_jnode->info.file.size ); #endif break; 43c86: 4fef 000c lea %sp@(12),%sp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43c8a: 2d40 0008 movel %d0,%fp@(8) } 43c8e: 4e5e unlk %fp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43c90: 4ef9 0005 5224 jmp 55224 fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 43c96: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 <== NOT EXECUTED 43c9c: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43ca0: 4878 0013 pea 13 <== NOT EXECUTED 43ca4: 4878 0001 pea 1 <== NOT EXECUTED 43ca8: 4879 0006 2881 pea 62881 <== NOT EXECUTED 43cae: 4eb9 0005 44f4 jsr 544f4 <== NOT EXECUTED assert(0); 43cb4: 4879 0006 1f69 pea 61f69 <== NOT EXECUTED 43cba: 4879 0006 2998 pea 62998 <__FUNCTION__.6554> <== NOT EXECUTED 43cc0: 4878 0062 pea 62 <== NOT EXECUTED 43cc4: 4879 0006 280a pea 6280a <== NOT EXECUTED 43cca: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 43cd0: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 <== NOT EXECUTED 43cd6: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 43cda: 4878 0013 pea 13 <== NOT EXECUTED 43cde: 4878 0001 pea 1 <== NOT EXECUTED 43ce2: 4879 0006 2881 pea 62881 <== NOT EXECUTED 43ce8: 4eb9 0005 44f4 jsr 544f4 <== NOT EXECUTED assert(0); 43cee: 4879 0006 1f69 pea 61f69 <== NOT EXECUTED 43cf4: 4879 0006 2998 pea 62998 <__FUNCTION__.6554> <== NOT EXECUTED 43cfa: 4878 005d pea 5d <== NOT EXECUTED 43cfe: 4879 0006 280a pea 6280a <== NOT EXECUTED 43d04: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 43d0a: 2f2a 0050 movel %a2@(80),%sp@- 43d0e: 2f2a 004c movel %a2@(76),%sp@- 43d12: 4879 0006 2853 pea 62853 43d18: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 43d1e: 2f28 0008 movel %a0@(8),%sp@- 43d22: 4eb9 0005 37c0 jsr 537c0 fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); } 43d28: 246e fffc moveal %fp@(-4),%a2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43d2c: 203c 0006 2f72 movel #405362,%d0 break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; 43d32: 4fef 0010 lea %sp@(16),%sp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43d36: 2d40 0008 movel %d0,%fp@(8) } 43d3a: 4e5e unlk %fp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43d3c: 4ef9 0005 5224 jmp 55224 assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 43d42: 2079 0006 43e0 moveal 643e0 <_impure_ptr>,%a0 43d48: 2f28 0008 movel %a0@(8),%sp@- 43d4c: 4878 002f pea 2f 43d50: 4eb9 0005 3800 jsr 53800 fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); } 43d56: 246e fffc moveal %fp@(-4),%a2 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43d5a: 203c 0006 2f72 movel #405362,%d0 fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; 43d60: 508f addql #8,%sp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43d62: 2d40 0008 movel %d0,%fp@(8) } 43d66: 4e5e unlk %fp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 43d68: 4ef9 0005 5224 jmp 55224 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 43d6e: 4879 0006 2800 pea 62800 <== NOT EXECUTED 43d74: 4879 0006 2998 pea 62998 <__FUNCTION__.6554> <== NOT EXECUTED 43d7a: 4878 0038 pea 38 <== NOT EXECUTED 43d7e: 4879 0006 280a pea 6280a <== NOT EXECUTED 43d84: 4eb9 0004 4648 jsr 44648 <__assert_func> <== NOT EXECUTED 0004353c : IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 4353c: 7004 moveq #4,%d0 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 4353e: 4e56 fff4 linkw %fp,#-12 43542: 206e 0008 moveal %fp@(8),%a0 43546: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ IMFS_jnode_t *node; int i; node = loc->node_access; 4354a: 2450 moveal %a0@,%a2 int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 4354c: 266e 000c moveal %fp@(12),%a3 43550: 242e 0010 movel %fp@(16),%d2 IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 43554: b0aa 0048 cmpl %a2@(72),%d0 43558: 663c bnes 43596 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 4355a: 4a82 tstl %d2 4355c: 672c beqs 4358a 4355e: 206a 004c moveal %a2@(76),%a0 43562: 1210 moveb %a0@,%d1 43564: 6724 beqs 4358a int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 43566: 91c8 subal %a0,%a0 43568: 4280 clrl %d0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 4356a: 5280 addql #1,%d0 buf[i] = node->info.sym_link.name[i]; 4356c: 1781 8800 moveb %d1,%a3@(00000000,%a0: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++ ) 43570: 2040 moveal %d0,%a0 43572: b082 cmpl %d2,%d0 43574: 640a bccs 43580 43576: 226a 004c moveal %a2@(76),%a1 4357a: 1231 0800 moveb %a1@(00000000,%d0:l),%d1 4357e: 66ea bnes 4356a buf[i] = node->info.sym_link.name[i]; return i; } 43580: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 43586: 4e5e unlk %fp 43588: 4e75 rts 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++ ) 4358a: 4280 clrl %d0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 4358c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 43592: 4e5e unlk %fp <== NOT EXECUTED 43594: 4e75 rts <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 43596: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 4359c: 7216 moveq #22,%d1 <== NOT EXECUTED 4359e: 2040 moveal %d0,%a0 <== NOT EXECUTED 435a0: 70ff moveq #-1,%d0 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; return i; } 435a2: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 435a8: 2081 movel %d1,%a0@ <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; return i; } 435aa: 4e5e unlk %fp <== NOT EXECUTED 435ac: 4e75 rts <== NOT EXECUTED ... 000435b0 : 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 */ ) { 435b0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 435b4: 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 */ ) { 435b8: 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 ); 435ba: 4878 0020 pea 20 <== NOT EXECUTED 435be: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED ) { IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 435c2: 2450 moveal %a0@,%a2 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 435c4: 486a 000c pea %a2@(12) <== NOT EXECUTED 435c8: 4eb9 0005 59a8 jsr 559a8 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 435ce: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 435d2: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 435d6: 670a beqs 435e2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 435d8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 435da: 4eb9 0004 870c jsr 4870c <_Chain_Extract> <== NOT EXECUTED 435e0: 588f addql #4,%sp <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 435e2: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 435e6: 2050 moveal %a0@,%a0 <== NOT EXECUTED the_jnode->Parent = new_parent; 435e8: 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 ); 435ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 435ee: 4868 004c pea %a0@(76) <== NOT EXECUTED 435f2: 4eb9 0004 86d4 jsr 486d4 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 435f8: 42a7 clrl %sp@- <== NOT EXECUTED 435fa: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 435fe: 4eb9 0004 404c jsr 4404c <== NOT EXECUTED 43604: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED return 0; } 4360a: 4280 clrl %d0 <== NOT EXECUTED 4360c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 43610: 4e5e unlk %fp <== NOT EXECUTED 43612: 4e75 rts 0004a2dc : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 4a2dc: 4e56 fff8 linkw %fp,#-8 4a2e0: 2f0b movel %a3,%sp@- 4a2e2: 266e 000c moveal %fp@(12),%a3 4a2e6: 2f0a movel %a2,%sp@- IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 4a2e8: 2453 moveal %a3@,%a2 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 4a2ea: 4aaa 0008 tstl %a2@(8) 4a2ee: 670e beqs 4a2fe */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 4a2f0: 2f0a movel %a2,%sp@- 4a2f2: 4eb9 0004 ba7c jsr 4ba7c <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 4a2f8: 588f addql #4,%sp 4a2fa: 42aa 0008 clrl %a2@(8) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 4a2fe: 302a 0032 movew %a2@(50),%d0 4a302: 5380 subql #1,%d0 4a304: 3540 0032 movew %d0,%a2@(50) IMFS_update_ctime( the_jnode ); 4a308: 42a7 clrl %sp@- 4a30a: 486e fff8 pea %fp@(-8) 4a30e: 4eb9 0004 a828 jsr 4a828 4a314: 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) ) { 4a31a: 2f0a movel %a2,%sp@- 4a31c: 4eb9 0004 a902 jsr 4a902 4a322: 4fef 000c lea %sp@(12),%sp 4a326: 4a80 tstl %d0 4a328: 6628 bnes 4a352 4a32a: 4a6a 0032 tstw %a2@(50) 4a32e: 6622 bnes 4a352 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 4a330: 2079 0005 da04 moveal 5da04 ,%a0 4a336: 2653 moveal %a3@,%a3 4a338: b7e8 0004 cmpal %a0@(4),%a3 4a33c: 6736 beqs 4a374 4a33e: 47f9 0004 a688 lea 4a688 ,%a3 /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 4a344: 7004 moveq #4,%d0 4a346: b0aa 0048 cmpl %a2@(72),%d0 4a34a: 6714 beqs 4a360 if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 4a34c: 2f0a movel %a2,%sp@- 4a34e: 4e93 jsr %a3@ 4a350: 588f addql #4,%sp } return 0; } 4a352: 246e fff0 moveal %fp@(-16),%a2 4a356: 4280 clrl %d0 4a358: 266e fff4 moveal %fp@(-12),%a3 4a35c: 4e5e unlk %fp 4a35e: 4e75 rts /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 4a360: 202a 004c movel %a2@(76),%d0 4a364: 67e6 beqs 4a34c free( (void*) the_jnode->info.sym_link.name ); 4a366: 2f00 movel %d0,%sp@- 4a368: 4e93 jsr %a3@ 4a36a: 588f addql #4,%sp } free( the_jnode ); 4a36c: 2f0a movel %a2,%sp@- 4a36e: 4e93 jsr %a3@ 4a370: 588f addql #4,%sp 4a372: 60de bras 4a352 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; 4a374: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED 4a378: 47f9 0004 a688 lea 4a688 ,%a3 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 4a37e: 7004 moveq #4,%d0 <== NOT EXECUTED 4a380: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 4a384: 66c6 bnes 4a34c <== NOT EXECUTED 4a386: 60d8 bras 4a360 <== NOT EXECUTED 0004a388 : IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 4a388: 7007 moveq #7,%d0 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 4a38a: 4e56 0000 linkw %fp,#0 4a38e: 206e 0008 moveal %fp@(8),%a0 4a392: 226e 000c moveal %fp@(12),%a1 IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 4a396: 2050 moveal %a0@,%a0 switch ( the_jnode->type ) { 4a398: b0a8 0048 cmpl %a0@(72),%d0 4a39c: 6414 bccs 4a3b2 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a39e: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 4a3a4: 4e5e unlk %fp <== NOT EXECUTED case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a3a6: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a3a8: 70ff moveq #-1,%d0 <== NOT EXECUTED 4a3aa: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 4a3b0: 4e75 rts <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 4a3b2: 2028 0048 movel %a0@(72),%d0 4a3b6: d080 addl %d0,%d0 4a3b8: 303b 0808 movew %pc@(4a3c2 ,%d0:l),%d0 4a3bc: 48c0 extl %d0 4a3be: 4efb 0802 jmp %pc@(4a3c2 ,%d0:l) 4a3c2: ffdc 0177734 <== NOT EXECUTED 4a3c4: ffdc 0177734 <== NOT EXECUTED 4a3c6: 0096 ffdc 0010 oril #-2359280,%d6 <== NOT EXECUTED 4a3cc: 0052 0122 <== NOT EXECUTED 4a3ce: 0052 0122 <== NOT EXECUTED 4a3d0: 0010 020 <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4a3d2: 2368 0034 0008 movel %a0@(52),%a1@(8) <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 4a3d8: 2368 003c 0026 movel %a0@(60),%a1@(38) <== NOT EXECUTED buf->st_mtime = the_jnode->stat_mtime; 4a3de: 2368 0040 002e movel %a0@(64),%a1@(46) <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 4a3e4: 2368 002e 000c movel %a0@(46),%a1@(12) <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; 4a3ea: 3368 0032 0010 movew %a0@(50),%a1@(16) <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 4a3f0: 4280 clrl %d0 <== NOT EXECUTED 4a3f2: 4281 clrl %d1 <== NOT EXECUTED } 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; 4a3f4: 3368 0038 0012 movew %a0@(56),%a1@(18) <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 4a3fa: 2340 001e movel %d0,%a1@(30) <== NOT EXECUTED 4a3fe: 2341 0022 movel %d1,%a1@(34) <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 4a402: 4280 clrl %d0 <== NOT EXECUTED 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; 4a404: 3368 003a 0014 movew %a0@(58),%a1@(20) <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 4a40a: 2368 0044 0036 movel %a0@(68),%a1@(54) <== NOT EXECUTED return 0; } 4a410: 4e5e unlk %fp 4a412: 4e75 rts buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 4a414: 2028 004c movel %a0@(76),%d0 4a418: 2228 0050 movel %a0@(80),%d1 break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4a41c: 2368 0034 0008 movel %a0@(52),%a1@(8) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 4a422: 2368 003c 0026 movel %a0@(60),%a1@(38) buf->st_mtime = the_jnode->stat_mtime; 4a428: 2368 0040 002e movel %a0@(64),%a1@(46) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 4a42e: 3368 0032 0010 movew %a0@(50),%a1@(16) 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; 4a434: 2368 0044 0036 movel %a0@(68),%a1@(54) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 4a43a: 2368 002e 000c movel %a0@(46),%a1@(12) buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 4a440: 3368 0038 0012 movew %a0@(56),%a1@(18) buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 4a446: 2340 001e movel %d0,%a1@(30) 4a44a: 2341 0022 movel %d1,%a1@(34) 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; 4a44e: 4280 clrl %d0 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; 4a450: 3368 003a 0014 movew %a0@(58),%a1@(20) 4a456: 60b8 bras 4a410 switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 4a458: 2028 0050 movel %a0@(80),%d0 4a45c: 2368 004c 0016 movel %a0@(76),%a1@(22) break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4a462: 2368 0034 0008 movel %a0@(52),%a1@(8) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 4a468: 2368 003c 0026 movel %a0@(60),%a1@(38) buf->st_mtime = the_jnode->stat_mtime; 4a46e: 2368 0040 002e movel %a0@(64),%a1@(46) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 4a474: 3368 0032 0010 movew %a0@(50),%a1@(16) 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; 4a47a: 2368 0044 0036 movel %a0@(68),%a1@(54) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 4a480: 2368 002e 000c movel %a0@(46),%a1@(12) buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 4a486: 3368 0038 0012 movew %a0@(56),%a1@(18) switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 4a48c: 2340 001a movel %d0,%a1@(26) 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; 4a490: 4280 clrl %d0 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; 4a492: 3368 003a 0014 movew %a0@(58),%a1@(20) 4a498: 6000 ff76 braw 4a410 00043614 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 43614: 4e56 ffc4 linkw %fp,#-60 43618: 2f03 movel %d3,%sp@- int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 4361a: 260e movel %fp,%d3 4361c: 0683 ffff ffc7 addil #-57,%d3 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 43622: 2f02 movel %d2,%sp@- 43624: 242e 0010 movel %fp@(16),%d2 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 43628: 2f02 movel %d2,%sp@- 4362a: 4eb9 0005 5990 jsr 55990 43630: 588f addql #4,%sp 43632: 486e fffc pea %fp@(-4) 43636: 2f03 movel %d3,%sp@- 43638: 2f00 movel %d0,%sp@- 4363a: 2f02 movel %d2,%sp@- 4363c: 4eb9 0004 f978 jsr 4f978 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 43642: 2f2e 000c movel %fp@(12),%sp@- 43646: 4eb9 0005 5500 jsr 55500 if (info.sym_link.name == NULL) { 4364c: 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); 43650: 2d40 ffe8 movel %d0,%fp@(-24) if (info.sym_link.name == NULL) { 43654: 6730 beqs 43686 * 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( 43656: 486e ffe8 pea %fp@(-24) 4365a: 2f3c 0000 a1ff movel #41471,%sp@- 43660: 2f03 movel %d3,%sp@- 43662: 4878 0004 pea 4 43666: 2f2e 0008 movel %fp@(8),%sp@- 4366a: 4eb9 0004 eb50 jsr 4eb50 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 43670: 4fef 0014 lea %sp@(20),%sp 43674: 4a80 tstl %d0 43676: 6728 beqs 436a0 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 43678: 242e ffbc movel %fp@(-68),%d2 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 4367c: 4280 clrl %d0 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 4367e: 262e ffc0 movel %fp@(-64),%d3 43682: 4e5e unlk %fp 43684: 4e75 rts /* * Duplicate link name */ info.sym_link.name = strdup(link_name); if (info.sym_link.name == NULL) { rtems_set_errno_and_return_minus_one(ENOMEM); 43686: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 4368c: 740c moveq #12,%d2 <== NOT EXECUTED 4368e: 2040 moveal %d0,%a0 <== NOT EXECUTED 43690: 70ff moveq #-1,%d0 <== NOT EXECUTED 43692: 2082 movel %d2,%a0@ <== NOT EXECUTED free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 43694: 242e ffbc movel %fp@(-68),%d2 <== NOT EXECUTED 43698: 262e ffc0 movel %fp@(-64),%d3 <== NOT EXECUTED 4369c: 4e5e unlk %fp <== NOT EXECUTED 4369e: 4e75 rts <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); 436a0: 2f2e ffe8 movel %fp@(-24),%sp@- <== NOT EXECUTED 436a4: 4eb9 0004 3fbc jsr 43fbc <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 436aa: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED } return 0; } 436b0: 242e ffbc movel %fp@(-68),%d2 <== NOT EXECUTED &info ); if (new_node == NULL) { free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); 436b4: 2040 moveal %d0,%a0 <== NOT EXECUTED 436b6: 720c moveq #12,%d1 <== NOT EXECUTED 436b8: 588f addql #4,%sp <== NOT EXECUTED 436ba: 70ff moveq #-1,%d0 <== NOT EXECUTED } return 0; } 436bc: 262e ffc0 movel %fp@(-64),%d3 <== NOT EXECUTED 436c0: 4e5e unlk %fp <== NOT EXECUTED &info ); if (new_node == NULL) { free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); 436c2: 2081 movel %d1,%a0@ <== NOT EXECUTED } return 0; } 436c4: 4e75 rts <== NOT EXECUTED ... 000436c8 : /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 436c8: 7003 moveq #3,%d0 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 436ca: 4e56 ffd0 linkw %fp,#-48 436ce: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 436d2: 246e 000c moveal %fp@(12),%a2 436d6: 242e 0008 movel %fp@(8),%d2 IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 436da: 2652 moveal %a2@,%a3 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 436dc: b0ab 0048 cmpl %a3@(72),%d0 436e0: 671a beqs 436fc /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 436e2: 2f0a movel %a2,%sp@- 436e4: 206a 0008 moveal %a2@(8),%a0 436e8: 2f02 movel %d2,%sp@- 436ea: 2068 0034 moveal %a0@(52),%a0 436ee: 4e90 jsr %a0@ return result; 436f0: 508f addql #8,%sp } 436f2: 4cee 0c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a3 436f8: 4e5e unlk %fp 436fa: 4e75 rts * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 436fc: 202b 004c movel %a3@(76),%d0 43700: 6700 0090 beqw 43792 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 43704: 41ea 0004 lea %a2@(4),%a0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 43708: 260e movel %fp,%d3 4370a: 0683 ffff ffe4 addil #-28,%d3 /* * 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) 43710: 7801 moveq #1,%d4 if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 43712: 2d58 ffe8 movel %a0@+,%fp@(-24) 43716: 2d58 ffec movel %a0@+,%fp@(-20) 4371a: 2d58 fff0 movel %a0@+,%fp@(-16) 4371e: 2d50 fff4 movel %a0@,%fp@(-12) the_link.node_access = node->info.hard_link.link_node; 43722: 2d40 ffe4 movel %d0,%fp@(-28) IMFS_Set_handlers( &the_link ); 43726: 2f03 movel %d3,%sp@- 43728: 4eb9 0004 ed44 jsr 4ed44 /* * 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) 4372e: 206b 004c moveal %a3@(76),%a0 43732: 4281 clrl %d1 43734: 588f addql #4,%sp 43736: 3028 0032 movew %a0@(50),%d0 4373a: 3200 movew %d0,%d1 4373c: b881 cmpl %d1,%d4 4373e: 6730 beqs 43770 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 43740: 5380 subql #1,%d0 43742: 3140 0032 movew %d0,%a0@(50) IMFS_update_ctime( node->info.hard_link.link_node ); 43746: 42a7 clrl %sp@- 43748: 486e fff8 pea %fp@(-8) 4374c: 4eb9 0004 404c jsr 4404c 43752: 206b 004c moveal %a3@(76),%a0 43756: 508f addql #8,%sp 43758: 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 ); 4375e: 2f0a movel %a2,%sp@- 43760: 206a 0008 moveal %a2@(8),%a0 43764: 2f02 movel %d2,%sp@- 43766: 2068 0034 moveal %a0@(52),%a0 4376a: 4e90 jsr %a0@ return result; 4376c: 508f addql #8,%sp 4376e: 6082 bras 436f2 * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 43770: 2f03 movel %d3,%sp@- 43772: 2f02 movel %d2,%sp@- 43774: 206e ffec moveal %fp@(-20),%a0 43778: 2068 0034 moveal %a0@(52),%a0 4377c: 4e90 jsr %a0@ if ( result != 0 ) 4377e: 508f addql #8,%sp 43780: 4a80 tstl %d0 43782: 6700 ff5e beqw 436e2 43786: 70ff moveq #-1,%d0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 43788: 4cee 0c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a3 4378e: 4e5e unlk %fp 43790: 4e75 rts */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 43792: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 43798: 7216 moveq #22,%d1 <== NOT EXECUTED 4379a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4379c: 70ff moveq #-1,%d0 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 4379e: 4cee 0c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a3 <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 437a4: 2081 movel %d1,%a0@ <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 437a6: 4e5e unlk %fp <== NOT EXECUTED 437a8: 4e75 rts <== NOT EXECUTED ... 000437ac : /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 437ac: 7001 moveq #1,%d0 #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 437ae: 4e56 0000 linkw %fp,#0 437b2: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 437b6: 2068 0008 moveal %a0@(8),%a0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 437ba: b0a8 0048 cmpl %a0@(72),%d0 437be: 6610 bnes 437d0 /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 437c0: 4aa8 0058 tstl %a0@(88) 437c4: 671c beqs 437e2 /* * 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; 437c6: 42a8 0058 clrl %a0@(88) 437ca: 4280 clrl %d0 return 0; } 437cc: 4e5e unlk %fp 437ce: 4e75 rts /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 437d0: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 437d6: 7214 moveq #20,%d1 <== NOT EXECUTED 437d8: 2040 moveal %d0,%a0 <== NOT EXECUTED 437da: 70ff moveq #-1,%d0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 437dc: 4e5e unlk %fp <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 437de: 2081 movel %d1,%a0@ <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 437e0: 4e75 rts <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 437e2: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 437e8: 7216 moveq #22,%d1 <== NOT EXECUTED 437ea: 2040 moveal %d0,%a0 <== NOT EXECUTED 437ec: 70ff moveq #-1,%d0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 437ee: 4e5e unlk %fp <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 437f0: 2081 movel %d1,%a0@ <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 437f2: 4e75 rts 000428b4 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 428b4: 4e56 0000 linkw %fp,#0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 428b8: 2079 0005 df86 moveal 5df86 ,%a0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 428be: 2f03 movel %d3,%sp@- 428c0: 262e 0008 movel %fp@(8),%d3 428c4: 2f02 movel %d2,%sp@- 428c6: 242e 000c movel %fp@(12),%d2 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 428ca: 4a88 tstl %a0 428cc: 6704 beqs 428d2 (*rtems_malloc_statistics_helpers->initialize)(); 428ce: 2050 moveal %a0@,%a0 <== NOT EXECUTED 428d0: 4e90 jsr %a0@ <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 428d2: 4eb9 0004 aba4 jsr 4aba4 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 428d8: 2079 0005 df8a moveal 5df8a ,%a0 428de: 4a88 tstl %a0 428e0: 6712 beqs 428f4 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 428e2: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 428e6: 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)( 428e8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 428ea: 2050 moveal %a0@,%a0 <== NOT EXECUTED 428ec: 4e90 jsr %a0@ <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 428ee: 508f addql #8,%sp <== NOT EXECUTED 428f0: 9480 subl %d0,%d2 <== NOT EXECUTED 428f2: 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 ( 428f4: 4a39 0005 df85 tstb 5df85 428fa: 6624 bnes 42920 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 428fc: 4a39 0005 d9cc tstb 5d9cc 42902: 6644 bnes 42948 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 42904: 4878 0004 pea 4 42908: 2f02 movel %d2,%sp@- 4290a: 2f03 movel %d3,%sp@- 4290c: 2f39 0005 d900 movel 5d900 ,%sp@- 42912: 4eb9 0004 6c60 jsr 46c60 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 42918: 4fef 0010 lea %sp@(16),%sp 4291c: 4a80 tstl %d0 4291e: 675c beqs 4297c rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 42920: 2f39 0005 d900 movel 5d900 ,%sp@- 42926: 2439 0005 f000 movel 5f000 ,%d2 4292c: 4eb9 0004 7824 jsr 47824 <_Protected_heap_Get_size> printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 42932: 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) ); 42936: d082 addl %d2,%d0 42938: 588f addql #4,%sp printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 4293a: 242e fff8 movel %fp@(-8),%d2 4293e: 4e5e unlk %fp if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 42940: 23c0 0005 f000 movel %d0,5f000 printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 42946: 4e75 rts if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 42948: 2f02 movel %d2,%sp@- 4294a: 42a7 clrl %sp@- 4294c: 2f03 movel %d3,%sp@- 4294e: 4eb9 0004 f670 jsr 4f670 * 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 ) { 42954: 4fef 000c lea %sp@(12),%sp 42958: 4a39 0005 df85 tstb 5df85 4295e: 66c0 bnes 42920 42960: 4878 0004 pea 4 42964: 2f02 movel %d2,%sp@- 42966: 2f03 movel %d3,%sp@- 42968: 2f39 0005 d900 movel 5d900 ,%sp@- 4296e: 4eb9 0004 6c60 jsr 46c60 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 42974: 4fef 0010 lea %sp@(16),%sp 42978: 4a80 tstl %d0 4297a: 66a4 bnes 42920 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 4297c: 4878 001a pea 1a <== NOT EXECUTED 42980: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED ... 000458ca : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 458ca: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 458ce: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 458d2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 458d6: 4a8a tstl %a2 <== NOT EXECUTED 458d8: 6700 00c2 beqw 4599c <== NOT EXECUTED return; if ( !print_handler ) 458dc: 2879 000a 3c18 moveal a3c18 ,%a4 <== NOT EXECUTED 458e2: 4a8c tstl %a4 <== NOT EXECUTED 458e4: 6700 00b6 beqw 4599c <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 458e8: 70ff moveq #-1,%d0 <== NOT EXECUTED 458ea: b08a cmpl %a2,%d0 <== NOT EXECUTED 458ec: 6700 00d8 beqw 459c6 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 458f0: 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); 458f4: 2413 movel %a3@,%d2 <== NOT EXECUTED 458f6: 0682 ffff fff0 addil #-16,%d2 <== 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); 458fc: 262b 0004 movel %a3@(4),%d3 <== NOT EXECUTED 45900: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 45906: 282a 00fe movel %a2@(254),%d4 <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); 4590a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4590c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4590e: 4eb9 0004 5896 jsr 45896 <== NOT EXECUTED if ( high_water_mark ) 45914: 508f addql #8,%sp <== NOT EXECUTED 45916: 4a80 tstl %d0 <== NOT EXECUTED 45918: 6700 00e2 beqw 459fc <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 4591c: d682 addl %d2,%d3 <== NOT EXECUTED 4591e: 9680 subl %d0,%d3 <== NOT EXECUTED else used = 0; if ( the_thread ) { 45920: 4a8a tstl %a2 <== NOT EXECUTED 45922: 6700 00e0 beqw 45a04 <== NOT EXECUTED (*print_handler)( 45926: 486e fffb pea %fp@(-5) <== NOT EXECUTED 4592a: 4878 0005 pea 5 <== NOT EXECUTED 4592e: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 45932: 4eb9 0004 be3c jsr 4be3c <== NOT EXECUTED 45938: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4593a: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 4593e: 4879 0009 960d pea 9960d <== NOT EXECUTED 45944: 2f39 000a 3c14 movel a3c14 ,%sp@- <== NOT EXECUTED 4594a: 4e94 jsr %a4@ <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 4594c: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { (*print_handler)( 45950: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 45954: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45956: 2f04 movel %d4,%sp@- <== NOT EXECUTED 45958: 2013 movel %a3@,%d0 <== NOT EXECUTED 4595a: 5380 subql #1,%d0 <== NOT EXECUTED 4595c: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 45960: 2f08 movel %a0,%sp@- <== NOT EXECUTED 45962: 4879 0009 9628 pea 99628 <== NOT EXECUTED 45968: 2f39 000a 3c14 movel a3c14 ,%sp@- <== NOT EXECUTED 4596e: 2079 000a 3c18 moveal a3c18 ,%a0 <== NOT EXECUTED 45974: 4e90 jsr %a0@ <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 45976: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4597a: 4ab9 000a 3c10 tstl a3c10 <== NOT EXECUTED 45980: 6724 beqs 459a6 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 45982: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45984: 4879 0009 9653 pea 99653 <== NOT EXECUTED 4598a: 2f39 000a 3c14 movel a3c14 ,%sp@- <== NOT EXECUTED 45990: 2079 000a 3c18 moveal a3c18 ,%a0 <== NOT EXECUTED 45996: 4e90 jsr %a0@ <== NOT EXECUTED 45998: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } } 4599c: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 459a2: 4e5e unlk %fp <== NOT EXECUTED 459a4: 4e75 rts <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 459a6: 4879 0009 9646 pea 99646 <== NOT EXECUTED 459ac: 2f39 000a 3c14 movel a3c14 ,%sp@- <== NOT EXECUTED 459b2: 2079 000a 3c18 moveal a3c18 ,%a0 <== NOT EXECUTED 459b8: 4e90 jsr %a0@ <== NOT EXECUTED 459ba: 508f addql #8,%sp <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } } 459bc: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 459c2: 4e5e unlk %fp <== NOT EXECUTED 459c4: 4e75 rts <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 459c6: 4ab9 000a 6b64 tstl a6b64 <== NOT EXECUTED 459cc: 67ce beqs 4599c <== NOT EXECUTED 459ce: 47f9 000a 6b60 lea a6b60 ,%a3 <== NOT EXECUTED 459d4: 4284 clrl %d4 <== NOT EXECUTED 459d6: 95ca subal %a2,%a2 <== NOT EXECUTED stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); 459d8: 2413 movel %a3@,%d2 <== NOT EXECUTED 459da: 0682 ffff fff0 addil #-16,%d2 <== 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); 459e0: 262b 0004 movel %a3@(4),%d3 <== NOT EXECUTED 459e4: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); 459ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 459ec: 2f03 movel %d3,%sp@- <== NOT EXECUTED 459ee: 4eb9 0004 5896 jsr 45896 <== NOT EXECUTED if ( high_water_mark ) 459f4: 508f addql #8,%sp <== NOT EXECUTED 459f6: 4a80 tstl %d0 <== NOT EXECUTED 459f8: 6600 ff22 bnew 4591c <== NOT EXECUTED 459fc: 4283 clrl %d3 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { 459fe: 4a8a tstl %a2 <== NOT EXECUTED 45a00: 6600 ff24 bnew 45926 <== 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 ); 45a04: 4878 ffff pea ffffffff <== NOT EXECUTED 45a08: 4879 0009 961a pea 9961a <== NOT EXECUTED 45a0e: 2f39 000a 3c14 movel a3c14 ,%sp@- <== NOT EXECUTED 45a14: 4e94 jsr %a4@ <== NOT EXECUTED } (*print_handler)( 45a16: 206b 0004 moveal %a3@(4),%a0 <== 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 ); 45a1a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } (*print_handler)( 45a1e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45a20: 2f04 movel %d4,%sp@- <== NOT EXECUTED 45a22: 2013 movel %a3@,%d0 <== NOT EXECUTED 45a24: 5380 subql #1,%d0 <== NOT EXECUTED 45a26: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 45a2a: 2f08 movel %a0,%sp@- <== NOT EXECUTED 45a2c: 4879 0009 9628 pea 99628 <== NOT EXECUTED 45a32: 2f39 000a 3c14 movel a3c14 ,%sp@- <== NOT EXECUTED 45a38: 2079 000a 3c18 moveal a3c18 ,%a0 <== NOT EXECUTED 45a3e: 4e90 jsr %a0@ <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 45a40: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 45a44: 4ab9 000a 3c10 tstl a3c10 <== NOT EXECUTED 45a4a: 6600 ff36 bnew 45982 <== NOT EXECUTED 45a4e: 6000 ff56 braw 459a6 <== NOT EXECUTED 00045896 : * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 45896: 70fc moveq #-4,%d0 <== NOT EXECUTED */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 45898: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 4589c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 458a0: 41e8 0010 lea %a0@(16),%a0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 458a4: c0ae 000c andl %fp@(12),%d0 <== NOT EXECUTED 458a8: d088 addl %a0,%d0 <== NOT EXECUTED 458aa: b088 cmpl %a0,%d0 <== NOT EXECUTED 458ac: 6310 blss 458be <== NOT EXECUTED if (*base != U32_PATTERN) 458ae: 223c a5a5 a5a5 movel #-1515870811,%d1 <== NOT EXECUTED 458b4: b290 cmpl %a0@,%d1 <== NOT EXECUTED 458b6: 660c bnes 458c4 <== 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++) 458b8: 5888 addql #4,%a0 <== NOT EXECUTED 458ba: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 458bc: 65f0 bcss 458ae <== NOT EXECUTED 458be: 4280 clrl %d0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 458c0: 4e5e unlk %fp <== NOT EXECUTED 458c2: 4e75 rts <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; 458c4: 2008 movel %a0,%d0 <== NOT EXECUTED #endif return (void *)0; } 458c6: 4e5e unlk %fp <== NOT EXECUTED 458c8: 4e75 rts 00045acc : * * 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) { 45acc: 4e56 ffd0 linkw %fp,#-48 45ad0: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); 45ad4: 4879 0009 96ba pea 996ba 45ada: 47f9 0004 8a74 lea 48a74 ,%a3 * * 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) { 45ae0: 246e 0008 moveal %fp@(8),%a2 45ae4: 242e 000c movel %fp@(12),%d2 Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 45ae8: 286a 00c2 moveal %a2@(194),%a4 char name [32]; printk("BLOWN STACK!!!\n"); 45aec: 4e93 jsr %a3@ printk("task control block: 0x%08" PRIxPTR "\n", running); 45aee: 2f0a movel %a2,%sp@- 45af0: 4879 0009 96ca pea 996ca 45af6: 4e93 jsr %a3@ printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 45af8: 2f2a 0008 movel %a2@(8),%sp@- 45afc: 4879 0009 96e7 pea 996e7 45b02: 4e93 jsr %a3@ printk( 45b04: 2f2a 000c movel %a2@(12),%sp@- 45b08: 4879 0009 96f9 pea 996f9 45b0e: 4e93 jsr %a3@ "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 45b10: 486e ffe0 pea %fp@(-32) 45b14: 4878 0020 pea 20 45b18: 2f2a 0008 movel %a2@(8),%sp@- 45b1c: 4eb9 0004 be3c jsr 4be3c 45b22: 4fef 0024 lea %sp@(36),%sp 45b26: 2e80 movel %d0,%sp@ 45b28: 4879 0009 970d pea 9970d 45b2e: 4e93 jsr %a3@ "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 45b30: 202a 00be movel %a2@(190),%d0 45b34: 206a 00c2 moveal %a2@(194),%a0 45b38: 4870 0800 pea %a0@(00000000,%d0:l) 45b3c: 2f08 movel %a0,%sp@- 45b3e: 2f00 movel %d0,%sp@- 45b40: 4879 0009 9723 pea 99723 45b46: 4e93 jsr %a3@ "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) { 45b48: 4fef 0018 lea %sp@(24),%sp 45b4c: 4a02 tstb %d2 45b4e: 670a beqs 45b5a rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 45b50: 4878 0081 pea 81 <== NOT EXECUTED 45b54: 4eb9 0004 c7c4 jsr 4c7c4 <== NOT EXECUTED (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 45b5a: 486c 0018 pea %a4@(24) 45b5e: 486c 0008 pea %a4@(8) 45b62: 4878 0010 pea 10 45b66: 4879 0009 9754 pea 99754 45b6c: 4e93 jsr %a3@ 45b6e: 4fef 0010 lea %sp@(16),%sp rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 45b72: 4878 0081 pea 81 45b76: 4eb9 0004 c7c4 jsr 4c7c4 00059828 <_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 ) { 59828: 4e56 ffe0 linkw %fp,#-32 5982c: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 59830: 266e 0008 moveal %fp@(8),%a3 59834: 282e 000c movel %fp@(12),%d4 59838: 242e 0010 movel %fp@(16),%d2 5983c: 2a2e 001c movel %fp@(28),%d5 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 59840: b4ab 004c cmpl %a3@(76),%d2 59844: 6262 bhis 598a8 <_CORE_message_queue_Broadcast+0x80> * 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 ) { 59846: 4aab 0048 tstl %a3@(72) 5984a: 664c bnes 59898 <_CORE_message_queue_Broadcast+0x70> * 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))) { 5984c: 2f0b movel %a3,%sp@- 5984e: 49f9 0005 bf74 lea 5bf74 <_Thread_queue_Dequeue>,%a4 59854: 4283 clrl %d3 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 59856: 4bf9 0006 30d8 lea 630d8 ,%a5 5985c: 4e94 jsr %a4@ /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 5985e: 588f addql #4,%sp _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 59860: 2440 moveal %d0,%a2 /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 59862: 4a80 tstl %d0 59864: 6722 beqs 59888 <_CORE_message_queue_Broadcast+0x60> 59866: 2f02 movel %d2,%sp@- _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 59868: 5283 addql #1,%d3 5986a: 2f04 movel %d4,%sp@- 5986c: 2f2a 002c movel %a2@(44),%sp@- 59870: 4e95 jsr %a5@ buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 59872: 206a 0028 moveal %a2@(40),%a0 59876: 4fef 000c lea %sp@(12),%sp 5987a: 2082 movel %d2,%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))) { 5987c: 2f0b movel %a3,%sp@- 5987e: 4e94 jsr %a4@ /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 59880: 588f addql #4,%sp _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 59882: 2440 moveal %d0,%a2 /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 59884: 4a80 tstl %d0 59886: 66de bnes 59866 <_CORE_message_queue_Broadcast+0x3e> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 59888: 2045 moveal %d5,%a0 5988a: 4280 clrl %d0 5988c: 2083 movel %d3,%a0@ return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 5988e: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 59894: 4e5e unlk %fp 59896: 4e75 rts * 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; 59898: 2045 moveal %d5,%a0 5989a: 4280 clrl %d0 #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 5989c: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 * 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; 598a2: 4290 clrl %a0@ #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 598a4: 4e5e unlk %fp 598a6: 4e75 rts { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 598a8: 7001 moveq #1,%d0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 598aa: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 598b0: 4e5e unlk %fp <== NOT EXECUTED 598b2: 4e75 rts 0004fe54 <_CORE_message_queue_Initialize>: /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 4fe54: 7203 moveq #3,%d1 CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { 4fe56: 4e56 fff4 linkw %fp,#-12 4fe5a: 202e 0014 movel %fp@(20),%d0 4fe5e: 48d7 040c moveml %d2-%d3/%a2,%sp@ 4fe62: 246e 0008 moveal %fp@(8),%a2 4fe66: 242e 0010 movel %fp@(16),%d2 /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 4fe6a: c280 andl %d0,%d1 ) { size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; 4fe6c: 2542 0044 movel %d2,%a2@(68) the_message_queue->number_of_pending_messages = 0; 4fe70: 42aa 0048 clrl %a2@(72) the_message_queue->maximum_message_size = maximum_message_size; 4fe74: 2540 004c movel %d0,%a2@(76) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 4fe78: 42aa 0060 clrl %a2@(96) the_message_queue->notify_argument = the_argument; 4fe7c: 42aa 0064 clrl %a2@(100) /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 4fe80: 4a81 tstl %d1 4fe82: 6620 bnes 4fea4 <_CORE_message_queue_Initialize+0x50> 4fe84: 2200 movel %d0,%d1 /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); 4fe86: 2601 movel %d1,%d3 4fe88: 0683 0000 0014 addil #20,%d3 /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * 4fe8e: 2003 movel %d3,%d0 4fe90: 4c02 0800 mulsl %d2,%d0 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 4fe94: b280 cmpl %d0,%d1 4fe96: 631c blss 4feb4 <_CORE_message_queue_Initialize+0x60> THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 4fe98: 4200 clrb %d0 } 4fe9a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4fea0: 4e5e unlk %fp 4fea2: 4e75 rts * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { allocated_message_size += sizeof(uint32_t); 4fea4: 2200 movel %d0,%d1 4fea6: 5881 addql #4,%d1 allocated_message_size &= ~(sizeof(uint32_t) - 1); 4fea8: 76fc moveq #-4,%d3 4feaa: c283 andl %d3,%d1 } if (allocated_message_size < maximum_message_size) 4feac: b280 cmpl %d0,%d1 4feae: 64d6 bccs 4fe86 <_CORE_message_queue_Initialize+0x32> THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 4feb0: 4200 clrb %d0 <== NOT EXECUTED 4feb2: 60e6 bras 4fe9a <_CORE_message_queue_Initialize+0x46> <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 4feb4: 2f00 movel %d0,%sp@- 4feb6: 4eb9 0005 2cd4 jsr 52cd4 <_Workspace_Allocate> _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 4febc: 588f addql #4,%sp return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 4febe: 2540 005c movel %d0,%a2@(92) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 4fec2: 67d4 beqs 4fe98 <_CORE_message_queue_Initialize+0x44> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 4fec4: 2f03 movel %d3,%sp@- 4fec6: 2f02 movel %d2,%sp@- 4fec8: 2f00 movel %d0,%sp@- 4feca: 486a 0068 pea %a2@(104) 4fece: 4eb9 0005 5338 jsr 55338 <_Chain_Initialize> allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 4fed4: 4878 0006 pea 6 4fed8: 7001 moveq #1,%d0 4feda: 206e 000c moveal %fp@(12),%a0 4fede: b090 cmpl %a0@,%d0 4fee0: 57c0 seq %d0 4fee2: 4878 0080 pea 80 4fee6: 49c0 extbl %d0 4fee8: 4480 negl %d0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4feea: 41ea 0054 lea %a2@(84),%a0 4feee: 2f00 movel %d0,%sp@- 4fef0: 2548 0050 movel %a0,%a2@(80) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4fef4: 41ea 0050 lea %a2@(80),%a0 4fef8: 2548 0058 movel %a0,%a2@(88) 4fefc: 2f0a movel %a2,%sp@- RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 4fefe: 42aa 0054 clrl %a2@(84) 4ff02: 4eb9 0005 2074 jsr 52074 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 4ff08: 4fef 0020 lea %sp@(32),%sp } 4ff0c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 4ff12: 7001 moveq #1,%d0 STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 4ff14: 4e5e unlk %fp 4ff16: 4e75 rts 00046b6c <_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 ) { 46b6c: 4e56 0000 linkw %fp,#0 46b70: 2f0a movel %a2,%sp@- 46b72: 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)) ) { 46b76: 2f0a movel %a2,%sp@- 46b78: 4eb9 0004 81a8 jsr 481a8 <_Thread_queue_Dequeue> 46b7e: 588f addql #4,%sp 46b80: 4a80 tstl %d0 46b82: 670a beqs 46b8e <_CORE_semaphore_Surrender+0x22> status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 46b84: 246e fffc moveal %fp@(-4),%a2 ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { 46b88: 4280 clrl %d0 status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 46b8a: 4e5e unlk %fp 46b8c: 4e75 rts if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); 46b8e: 203c 0000 0700 movel #1792,%d0 46b94: 40c1 movew %sr,%d1 46b96: 8081 orl %d1,%d0 46b98: 46c0 movew %d0,%sr if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 46b9a: 202a 0048 movel %a2@(72),%d0 46b9e: b0aa 0040 cmpl %a2@(64),%d0 46ba2: 6412 bccs 46bb6 <_CORE_semaphore_Surrender+0x4a> the_semaphore->count += 1; 46ba4: 5280 addql #1,%d0 46ba6: 2540 0048 movel %d0,%a2@(72) 46baa: 4280 clrl %d0 else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 46bac: 46c1 movew %d1,%sr } return status; } 46bae: 246e fffc moveal %fp@(-4),%a2 46bb2: 4e5e unlk %fp 46bb4: 4e75 rts (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 46bb6: 7004 moveq #4,%d0 <== NOT EXECUTED the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 46bb8: 46c1 movew %d1,%sr <== NOT EXECUTED 46bba: 60f2 bras 46bae <_CORE_semaphore_Surrender+0x42> <== NOT EXECUTED 00050e38 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 50e38: 4e56 fff4 linkw %fp,#-12 50e3c: 206e 0008 moveal %fp@(8),%a0 50e40: 202e 000c movel %fp@(12),%d0 Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; 50e44: 2228 001c movel %a0@(28),%d1 uintptr_t const new_heap_area_end = heap_area_end + area_size; uintptr_t extend_size = 0; Heap_Block *const last_block = heap->last_block; 50e48: 2268 0024 moveal %a0@(36),%a1 Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 50e4c: 48d7 040c moveml %d2-%d3/%a2,%sp@ Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; 50e50: b0a8 0018 cmpl %a0@(24),%d0 50e54: 6410 bccs 50e66 <_Heap_Extend+0x2e> * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { 50e56: b280 cmpl %d0,%d1 50e58: 671c beqs 50e76 <_Heap_Extend+0x3e> 50e5a: 7002 moveq #2,%d0 _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 50e5c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 50e62: 4e5e unlk %fp 50e64: 4e75 rts * 5. non-contiguous higher address (NOT SUPPORTED) * * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { 50e66: b280 cmpl %d0,%d1 50e68: 63ec blss 50e56 <_Heap_Extend+0x1e> 50e6a: 7001 moveq #1,%d0 _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 50e6c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 50e72: 4e5e unlk %fp 50e74: 4e75 rts { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; 50e76: 2200 movel %d0,%d1 50e78: d2ae 0010 addl %fp@(16),%d1 * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end 50e7c: 70f8 moveq #-8,%d0 50e7e: 9089 subl %a1,%d0 50e80: d081 addl %d1,%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 50e82: 2600 movel %d0,%d3 50e84: 4c68 3002 0010 remul %a0@(16),%d2,%d3 * Currently only case 4 should make it to this point. * The basic trick is to make the extend area look like a used * block and free it. */ heap->area_end = new_heap_area_end; 50e8a: 2141 001c movel %d1,%a0@(28) extend_size = new_heap_area_end - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE; extend_size = _Heap_Align_down( extend_size, heap->page_size ); *amount_extended = extend_size; 50e8e: 246e 0014 moveal %fp@(20),%a2 50e92: 9082 subl %d2,%d0 50e94: 2480 movel %d0,%a2@ if( extend_size >= heap->min_block_size ) { 50e96: b0a8 0014 cmpl %a0@(20),%d0 50e9a: 640c bccs 50ea8 <_Heap_Extend+0x70> /* Statistics */ stats->size += extend_size; ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 50e9c: 4280 clrl %d0 <== NOT EXECUTED } return HEAP_EXTEND_SUCCESSFUL; } 50e9e: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 50ea4: 4e5e unlk %fp 50ea6: 4e75 rts uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 50ea8: 7401 moveq #1,%d2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 50eaa: 45f1 0800 lea %a1@(00000000,%d0:l),%a2 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 50eae: c4a9 0004 andl %a1@(4),%d2 if( extend_size >= heap->min_block_size ) { Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = 50eb2: 2228 0020 movel %a0@(32),%d1 50eb6: 928a subl %a2,%d1 50eb8: 8480 orl %d0,%d2 ((uintptr_t) heap->first_block - (uintptr_t) new_last_block) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; 50eba: 214a 0024 movel %a2,%a0@(36) 50ebe: 2342 0004 movel %d2,%a1@(4) if( extend_size >= heap->min_block_size ) { Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = 50ec2: 7401 moveq #1,%d2 50ec4: 8481 orl %d1,%d2 50ec6: 2542 0004 movel %d2,%a2@(4) /* Statistics */ stats->size += extend_size; ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 50eca: 4869 0008 pea %a1@(8) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; 50ece: d1a8 002c addl %d0,%a0@(44) ++stats->used_blocks; 50ed2: 52a8 0040 addql #1,%a0@(64) --stats->frees; /* Do not count subsequent call as actual free() */ 50ed6: 53a8 0050 subql #1,%a0@(80) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 50eda: 2f08 movel %a0,%sp@- 50edc: 4eb9 0004 b578 jsr 4b578 <_Heap_Free> 50ee2: 508f addql #8,%sp 50ee4: 4280 clrl %d0 50ee6: 60b6 bras 50e9e <_Heap_Extend+0x66> 0007c1f4 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 7c1f4: 4e56 fff4 linkw %fp,#-12 7c1f8: 206e 0008 moveal %fp@(8),%a0 7c1fc: 48d7 040c moveml %d2-%d3/%a2,%sp@ 7c200: 246e 000c moveal %fp@(12),%a2 Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; 7c204: 2428 0024 movel %a0@(36),%d2 void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; 7c208: 2268 0020 moveal %a0@(32),%a1 Heap_Block *const end = the_heap->last_block; _HAssert(the_block->prev_size == the_heap->page_size); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; 7c20c: 4292 clrl %a2@ the_info->Free.total = 0; 7c20e: 42aa 0008 clrl %a2@(8) the_info->Free.largest = 0; 7c212: 42aa 0004 clrl %a2@(4) the_info->Used.number = 0; 7c216: 42aa 000c clrl %a2@(12) the_info->Used.total = 0; 7c21a: 42aa 0014 clrl %a2@(20) the_info->Used.largest = 0; 7c21e: 42aa 0010 clrl %a2@(16) while ( the_block != end ) { 7c222: b489 cmpl %a1,%d2 7c224: 6746 beqs 7c26c <_Heap_Get_information+0x78> uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; 7c226: 260a movel %a2,%d3 7c228: 0683 0000 000c addil #12,%d3 the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 7c22e: 2229 0004 movel %a1@(4),%d1 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 7c232: 70fe moveq #-2,%d0 uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) 7c234: 204a moveal %a2,%a0 7c236: c081 andl %d1,%d0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 7c238: d3c0 addal %d0,%a1 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 7c23a: 2229 0004 movel %a1@(4),%d1 7c23e: 0801 0000 btst #0,%d1 7c242: 6702 beqs 7c246 <_Heap_Get_information+0x52> 7c244: 2043 moveal %d3,%a0 info = &the_info->Used; else info = &the_info->Free; info->number++; 7c246: 5290 addql #1,%a0@ info->total += the_size; 7c248: d1a8 0008 addl %d0,%a0@(8) if ( info->largest < the_size ) 7c24c: b0a8 0004 cmpl %a0@(4),%d0 7c250: 6304 blss 7c256 <_Heap_Get_information+0x62> info->largest = the_size; 7c252: 2140 0004 movel %d0,%a0@(4) the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 7c256: b3c2 cmpal %d2,%a1 7c258: 66d8 bnes 7c232 <_Heap_Get_information+0x3e> 7c25a: 202a 0014 movel %a2@(20),%d0 7c25e: 5080 addql #8,%d0 /* * Handle the last dummy block. Don't consider this block to be * "used" as client never allocated it. Make 'Used.total' contain this * blocks' overhead though. */ the_info->Used.total += HEAP_BLOCK_HEADER_SIZE; 7c260: 2540 0014 movel %d0,%a2@(20) } 7c264: 4cd7 040c moveml %sp@,%d2-%d3/%a2 7c268: 4e5e unlk %fp 7c26a: 4e75 rts the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 7c26c: 7008 moveq #8,%d0 <== NOT EXECUTED /* * Handle the last dummy block. Don't consider this block to be * "used" as client never allocated it. Make 'Used.total' contain this * blocks' overhead though. */ the_info->Used.total += HEAP_BLOCK_HEADER_SIZE; 7c26e: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED } 7c272: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 7c276: 4e5e unlk %fp <== NOT EXECUTED 7c278: 4e75 rts <== NOT EXECUTED ... 00046fcc <_Internal_error_Occurred>: _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 ); 46fcc: 4280 clrl %d0 void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 46fce: 4e56 0000 linkw %fp,#0 46fd2: 222e 000c movel %fp@(12),%d1 _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 ); 46fd6: 1001 moveb %d1,%d0 46fd8: 2040 moveal %d0,%a0 void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 46fda: 2f03 movel %d3,%sp@- 46fdc: 202e 0008 movel %fp@(8),%d0 46fe0: 2f02 movel %d2,%sp@- 46fe2: 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 ); 46fe6: 2f02 movel %d2,%sp@- Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; 46fe8: 13c1 0005 f1fe moveb %d1,5f1fe <_Internal_errors_What_happened+0x4> _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 46fee: 2f08 movel %a0,%sp@- bool is_internal, Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; 46ff0: 23c0 0005 f1fa movel %d0,5f1fa <_Internal_errors_What_happened> _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 ); 46ff6: 2f00 movel %d0,%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; 46ff8: 23c2 0005 f200 movel %d2,5f200 <_Internal_errors_What_happened+0x6> _User_extensions_Fatal( the_source, is_internal, the_error ); 46ffe: 4eb9 0004 8de2 jsr 48de2 <_User_extensions_Fatal> _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 47004: 307c 0700 moveaw #1792,%a0 47008: 2608 movel %a0,%d3 4700a: 40c0 movew %sr,%d0 4700c: 8083 orl %d3,%d0 4700e: 46c0 movew %d0,%sr 47010: 2002 movel %d2,%d0 <== NOT EXECUTED 47012: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED 47018: 4ac8 halt <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 4701a: 7005 moveq #5,%d0 4701c: 4fef 000c lea %sp@(12),%sp 47020: 23c0 0005 f2dc movel %d0,5f2dc <_System_state_Current> 47026: 60fe bras 47026 <_Internal_error_Occurred+0x5a> 00047090 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 47090: 4e56 fff0 linkw %fp,#-16 47094: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 47098: 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 ) 4709c: 4aaa 0014 tstl %a2@(20) 470a0: 660c bnes 470ae <_Objects_Allocate+0x1e> 470a2: 4280 clrl %d0 <== NOT EXECUTED information->inactive--; } } return the_object; } 470a4: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 470aa: 4e5e unlk %fp 470ac: 4e75 rts /* * 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 ); 470ae: 240a movel %a2,%d2 470b0: 0682 0000 001c addil #28,%d2 470b6: 47f9 0004 baa4 lea 4baa4 <_Chain_Get>,%a3 470bc: 2f02 movel %d2,%sp@- 470be: 4e93 jsr %a3@ if ( information->auto_extend ) { 470c0: 588f addql #4,%sp 470c2: 4a2a 0010 tstb %a2@(16) 470c6: 67dc beqs 470a4 <_Objects_Allocate+0x14> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 470c8: 4a80 tstl %d0 470ca: 6738 beqs 47104 <_Objects_Allocate+0x74> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 470cc: 2040 moveal %d0,%a0 470ce: 4281 clrl %d1 470d0: 4283 clrl %d3 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 470d2: 4282 clrl %d2 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 470d4: 362a 0008 movew %a2@(8),%d3 470d8: 3228 000a movew %a0@(10),%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; information->inactive--; 470dc: 306a 0028 moveaw %a2@(40),%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 ]--; 470e0: 342a 0012 movew %a2@(18),%d2 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 470e4: 9283 subl %d3,%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; information->inactive--; 470e6: 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 ]--; 470e8: 4c42 1001 remul %d2,%d1,%d1 information->inactive--; 470ec: 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 ]--; 470f0: 206a 002a moveal %a2@(42),%a0 470f4: e589 lsll #2,%d1 information->inactive--; } } return the_object; } 470f6: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 470fc: 4e5e unlk %fp block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 470fe: d1c1 addal %d1,%a0 47100: 5390 subql #1,%a0@ information->inactive--; } } return the_object; } 47102: 4e75 rts * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); 47104: 2f0a movel %a2,%sp@- 47106: 4eb9 0004 714c jsr 4714c <_Objects_Extend_information> the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 4710c: 2f02 movel %d2,%sp@- 4710e: 4e93 jsr %a3@ } if ( the_object ) { 47110: 508f addql #8,%sp 47112: 4a80 tstl %d0 47114: 66b6 bnes 470cc <_Objects_Allocate+0x3c> information->inactive--; } } return the_object; } 47116: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 4711c: 4e5e unlk %fp 4711e: 4e75 rts 0004714c <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 4714c: 4e56 ffcc linkw %fp,#-52 47150: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 47154: 246e 0008 moveal %fp@(8),%a2 /* * Search for a free block of indexes. The block variable ends up set * to block_count + 1 if the table needs to be extended. */ minimum_index = _Objects_Get_index( information->minimum_id ); 47158: 4285 clrl %d5 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 4715a: 206a 002e moveal %a2@(46),%a0 /* * Search for a free block of indexes. The block variable ends up set * to block_count + 1 if the table needs to be extended. */ minimum_index = _Objects_Get_index( information->minimum_id ); 4715e: 3a2a 0008 movew %a2@(8),%d5 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 47162: 4a88 tstl %a0 47164: 6700 022c beqw 47392 <_Objects_Extend_information+0x246> block_count = 0; else { block_count = information->maximum / information->allocation_size; 47168: 322a 000e movew %a2@(14),%d1 4716c: 302a 0012 movew %a2@(18),%d0 47170: 3801 movew %d1,%d4 47172: 0284 0000 ffff andil #65535,%d4 47178: 88c0 divuw %d0,%d4 4717a: 0284 0000 ffff andil #65535,%d4 for ( ; block < block_count; block++ ) { 47180: 6700 0224 beqw 473a6 <_Objects_Extend_information+0x25a> if ( information->object_blocks[ block ] == NULL ) 47184: 4a90 tstl %a0@ 47186: 6700 021e beqw 473a6 <_Objects_Extend_information+0x25a> 4718a: 5888 addql #4,%a0 4718c: 2605 movel %d5,%d3 4718e: 4282 clrl %d2 47190: 0280 0000 ffff andil #65535,%d0 break; else index_base += information->allocation_size; 47196: d680 addl %d0,%d3 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 47198: 5282 addql #1,%d2 4719a: b484 cmpl %d4,%d2 4719c: 6404 bccs 471a2 <_Objects_Extend_information+0x56> if ( information->object_blocks[ block ] == NULL ) 4719e: 4a98 tstl %a0@+ 471a0: 66f4 bnes 47196 <_Objects_Extend_information+0x4a> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 471a2: 0281 0000 ffff andil #65535,%d1 471a8: 2641 moveal %d1,%a3 471aa: d7c0 addal %d0,%a3 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 471ac: b7fc 0000 ffff cmpal #65535,%a3 471b2: 6200 0186 bhiw 4733a <_Objects_Extend_information+0x1ee> /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 471b6: 41ea 0014 lea %a2@(20),%a0 471ba: 4c10 0800 mulsl %a0@,%d0 if ( information->auto_extend ) { 471be: 4a2a 0010 tstb %a2@(16) 471c2: 6700 0180 beqw 47344 <_Objects_Extend_information+0x1f8> new_object_block = _Workspace_Allocate( block_size ); 471c6: 2f00 movel %d0,%sp@- 471c8: 4eb9 0004 91e4 jsr 491e4 <_Workspace_Allocate> if ( !new_object_block ) 471ce: 588f addql #4,%sp * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); 471d0: 2c00 movel %d0,%d6 if ( !new_object_block ) 471d2: 6700 0166 beqw 4733a <_Objects_Extend_information+0x1ee> } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 471d6: 4280 clrl %d0 471d8: 302a 000e movew %a2@(14),%d0 471dc: b083 cmpl %d3,%d0 471de: 6200 00c4 bhiw 472a4 <_Objects_Extend_information+0x158> */ /* * Up the block count and maximum */ block_count++; 471e2: 2a44 moveal %d4,%a5 471e4: 528d addql #1,%a5 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 471e6: 200b movel %a3,%d0 471e8: 41f5 da00 lea %a5@(00000000,%a5:l:2),%a0 471ec: d088 addl %a0,%d0 471ee: d085 addl %d5,%d0 471f0: e588 lsll #2,%d0 471f2: 2f00 movel %d0,%sp@- 471f4: 4eb9 0004 91e4 jsr 491e4 <_Workspace_Allocate> if ( !object_blocks ) { 471fa: 588f addql #4,%sp * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 471fc: 2840 moveal %d0,%a4 if ( !object_blocks ) { 471fe: 4a80 tstl %d0 47200: 6700 01b2 beqw 473b4 <_Objects_Extend_information+0x268> } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 47204: 2e0d movel %a5,%d7 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 47206: 4280 clrl %d0 } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 47208: e58f lsll #2,%d7 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 4720a: 302a 000e movew %a2@(14),%d0 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 4720e: 4bf4 7800 lea %a4@(00000000,%d7:l),%a5 47212: de8d addl %a5,%d7 47214: b085 cmpl %d5,%d0 47216: 6200 013c bhiw 47354 <_Objects_Extend_information+0x208> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 4721a: 4a85 tstl %d5 4721c: 670c beqs 4722a <_Objects_Extend_information+0xde> information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 4721e: 2047 moveal %d7,%a0 47220: 4280 clrl %d0 /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 47222: 4298 clrl %a0@+ } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 47224: 5280 addql #1,%d0 47226: b085 cmpl %d5,%d0 47228: 65f8 bcss 47222 <_Objects_Extend_information+0xd6> 4722a: e58c lsll #2,%d4 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 4722c: 4281 clrl %d1 4722e: 322a 0012 movew %a2@(18),%d1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 47232: 42b5 4800 clrl %a5@(00000000,%d4:l) for ( index=index_base ; index < ( information->allocation_size + index_base ); 47236: d283 addl %d3,%d1 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 47238: 42b4 4800 clrl %a4@(00000000,%d4:l) inactive_per_block[block_count] = 0; for ( index=index_base ; 4723c: b283 cmpl %d3,%d1 4723e: 6310 blss 47250 <_Objects_Extend_information+0x104> 47240: 2247 moveal %d7,%a1 47242: 2003 movel %d3,%d0 47244: 41f1 3c00 lea %a1@(00000000,%d3:l:4),%a0 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 47248: 4298 clrl %a0@+ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 4724a: 5280 addql #1,%d0 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 4724c: b280 cmpl %d0,%d1 4724e: 62f8 bhis 47248 <_Objects_Extend_information+0xfc> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 47250: 203c 0000 0700 movel #1792,%d0 47256: 40c4 movew %sr,%d4 47258: 8084 orl %d4,%d0 4725a: 46c0 movew %d0,%sr information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 4725c: 2012 movel %a2@,%d0 4725e: 7218 moveq #24,%d1 47260: 4285 clrl %d5 47262: e3a8 lsll %d1,%d0 47264: 3a0b movew %a3,%d5 47266: 4281 clrl %d1 47268: 2245 moveal %d5,%a1 4726a: 7a1b moveq #27,%d5 4726c: 322a 0004 movew %a2@(4),%d1 47270: 08c0 0010 bset #16,%d0 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 47274: 206a 002e moveal %a2@(46),%a0 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 47278: eba9 lsll %d5,%d1 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 4727a: 354b 000e movew %a3,%a2@(14) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 4727e: 254c 002e movel %a4,%a2@(46) information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 47282: 8081 orl %d1,%d0 47284: 2209 movel %a1,%d1 47286: 8280 orl %d0,%d1 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 47288: 254d 002a movel %a5,%a2@(42) information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 4728c: 2541 000a movel %d1,%a2@(10) old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; 47290: 2547 0018 movel %d7,%a2@(24) information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 47294: 46c4 movew %d4,%sr if ( old_tables ) 47296: 4a88 tstl %a0 47298: 670a beqs 472a4 <_Objects_Extend_information+0x158> _Workspace_Free( old_tables ); 4729a: 2f08 movel %a0,%sp@- 4729c: 4eb9 0004 9200 jsr 49200 <_Workspace_Free> 472a2: 588f addql #4,%sp } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 472a4: 206a 002e moveal %a2@(46),%a0 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 472a8: 4280 clrl %d0 472aa: 280e movel %fp,%d4 472ac: 0684 ffff fff4 addil #-12,%d4 472b2: 47f9 0004 baa4 lea 4baa4 <_Chain_Get>,%a3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 472b8: 2a0a movel %a2,%d5 472ba: 0685 0000 001c addil #28,%d5 472c0: 49f9 0004 6798 lea 46798 <_Chain_Append>,%a4 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 472c6: e58a lsll #2,%d2 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 472c8: 302a 0012 movew %a2@(18),%d0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 472cc: 2186 2800 movel %d6,%a0@(00000000,%d2:l) /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 472d0: 2f2a 0014 movel %a2@(20),%sp@- 472d4: 2f00 movel %d0,%sp@- 472d6: 2f06 movel %d6,%sp@- 472d8: 2f04 movel %d4,%sp@- 472da: 4eb9 0004 bae0 jsr 4bae0 <_Chain_Initialize> /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 472e0: 4fef 0010 lea %sp@(16),%sp 472e4: 2f04 movel %d4,%sp@- 472e6: 4e93 jsr %a3@ 472e8: 588f addql #4,%sp 472ea: 4a80 tstl %d0 472ec: 6732 beqs 47320 <_Objects_Extend_information+0x1d4> the_object->id = _Objects_Build_id( 472ee: 2212 movel %a2@,%d1 472f0: 7c18 moveq #24,%d6 472f2: 7e1b moveq #27,%d7 472f4: 2040 moveal %d0,%a0 472f6: eda9 lsll %d6,%d1 472f8: 4286 clrl %d6 472fa: 3c2a 0004 movew %a2@(4),%d6 472fe: 08c1 0010 bset #16,%d1 47302: efae lsll %d7,%d6 47304: 8286 orl %d6,%d1 47306: 8283 orl %d3,%d1 index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 47308: 5283 addql #1,%d3 */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( 4730a: 2141 0008 movel %d1,%a0@(8) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 4730e: 2f00 movel %d0,%sp@- 47310: 2f05 movel %d5,%sp@- 47312: 4e94 jsr %a4@ index++; 47314: 508f addql #8,%sp /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 47316: 2f04 movel %d4,%sp@- 47318: 4e93 jsr %a3@ 4731a: 588f addql #4,%sp 4731c: 4a80 tstl %d0 4731e: 66ce bnes 472ee <_Objects_Extend_information+0x1a2> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47320: 4280 clrl %d0 information->inactive = 47322: 322a 0028 movew %a2@(40),%d1 47326: 326a 0012 moveaw %a2@(18),%a1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 4732a: 206a 002a moveal %a2@(42),%a0 information->inactive = 4732e: d289 addl %a1,%d1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47330: 3009 movew %a1,%d0 information->inactive = 47332: 3541 0028 movew %d1,%a2@(40) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47336: 2180 2800 movel %d0,%a0@(00000000,%d2:l) information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } 4733a: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 47340: 4e5e unlk %fp 47342: 4e75 rts if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 47344: 2f00 movel %d0,%sp@- 47346: 4eb9 0004 91b0 jsr 491b0 <_Workspace_Allocate_or_fatal_error> 4734c: 588f addql #4,%sp 4734e: 2c00 movel %d0,%d6 47350: 6000 fe84 braw 471d6 <_Objects_Extend_information+0x8a> /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, 47354: e58c lsll #2,%d4 47356: 2f04 movel %d4,%sp@- 47358: 2f2a 002e movel %a2@(46),%sp@- 4735c: 2f0c movel %a4,%sp@- 4735e: 4eb9 0004 f600 jsr 4f600 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 47364: 2f04 movel %d4,%sp@- 47366: 2f2a 002a movel %a2@(42),%sp@- 4736a: 2f0d movel %a5,%sp@- 4736c: 4eb9 0004 f600 jsr 4f600 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 47372: 4280 clrl %d0 47374: 302a 000e movew %a2@(14),%d0 47378: da80 addl %d0,%d5 4737a: e58d lsll #2,%d5 4737c: 2f05 movel %d5,%sp@- 4737e: 2f2a 0018 movel %a2@(24),%sp@- 47382: 2f07 movel %d7,%sp@- 47384: 4eb9 0004 f600 jsr 4f600 4738a: 4fef 0024 lea %sp@(36),%sp 4738e: 6000 fe9c braw 4722c <_Objects_Extend_information+0xe0> minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 47392: 4280 clrl %d0 47394: 2605 movel %d5,%d3 47396: 4282 clrl %d2 47398: 4284 clrl %d4 4739a: 322a 000e movew %a2@(14),%d1 4739e: 302a 0012 movew %a2@(18),%d0 473a2: 6000 fdfe braw 471a2 <_Objects_Extend_information+0x56> block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 473a6: 2605 movel %d5,%d3 <== NOT EXECUTED 473a8: 4282 clrl %d2 <== NOT EXECUTED 473aa: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 473b0: 6000 fdf0 braw 471a2 <_Objects_Extend_information+0x56> <== NOT EXECUTED (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); 473b4: 2f06 movel %d6,%sp@- 473b6: 4eb9 0004 9200 jsr 49200 <_Workspace_Free> return; 473bc: 588f addql #4,%sp } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } 473be: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 473c4: 4e5e unlk %fp 473c6: 4e75 rts 00047acc <_Objects_Set_name>: { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 47acc: 4280 clrl %d0 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 47ace: 4e56 fff0 linkw %fp,#-16 47ad2: 48d7 3c00 moveml %a2-%a5,%sp@ 47ad6: 286e 0008 moveal %fp@(8),%a4 47ada: 246e 0010 moveal %fp@(16),%a2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 47ade: 302c 0034 movew %a4@(52),%d0 47ae2: 2f00 movel %d0,%sp@- bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 47ae4: 2a6e 000c moveal %fp@(12),%a5 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 47ae8: 2f0a movel %a2,%sp@- 47aea: 4eb9 0005 0a80 jsr 50a80 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 47af0: 508f addql #8,%sp { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 47af2: 2640 moveal %d0,%a3 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 47af4: 4a2c 0032 tstb %a4@(50) 47af8: 6662 bnes 47b5c <_Objects_Set_name+0x90> d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 47afa: 7018 moveq #24,%d0 47afc: 1212 moveb %a2@,%d1 47afe: 49c1 extbl %d1 47b00: e1a9 lsll %d0,%d1 47b02: 103c 0001 moveb #1,%d0 47b06: b08b cmpl %a3,%d0 47b08: 643c bccs 47b46 <_Objects_Set_name+0x7a> 47b0a: 102a 0001 moveb %a2@(1),%d0 47b0e: 49c0 extbl %d0 47b10: 4840 swap %d0 47b12: 4240 clrw %d0 47b14: 8081 orl %d1,%d0 47b16: 7202 moveq #2,%d1 47b18: b28b cmpl %a3,%d1 47b1a: 6730 beqs 47b4c <_Objects_Set_name+0x80> 47b1c: 122a 0002 moveb %a2@(2),%d1 47b20: 49c1 extbl %d1 47b22: e189 lsll #8,%d1 47b24: 8081 orl %d1,%d0 47b26: 7203 moveq #3,%d1 47b28: b28b cmpl %a3,%d1 47b2a: 6700 0088 beqw 47bb4 <_Objects_Set_name+0xe8> 47b2e: 122a 0003 moveb %a2@(3),%d1 47b32: 49c1 extbl %d1 47b34: 8081 orl %d1,%d0 47b36: 2b40 000c movel %d0,%a5@(12) 47b3a: 7001 moveq #1,%d0 ); } return true; } 47b3c: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 47b42: 4e5e unlk %fp 47b44: 4e75 rts d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 47b46: 2001 movel %d1,%d0 47b48: 08c0 0015 bset #21,%d0 47b4c: 7220 moveq #32,%d1 47b4e: 08c0 000d bset #13,%d0 47b52: 8081 orl %d1,%d0 47b54: 2b40 000c movel %d0,%a5@(12) 47b58: 7001 moveq #1,%d0 47b5a: 60e0 bras 47b3c <_Objects_Set_name+0x70> #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); 47b5c: 486b 0001 pea %a3@(1) 47b60: 4eb9 0004 9650 jsr 49650 <_Workspace_Allocate> if ( !d ) 47b66: 588f addql #4,%sp #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); 47b68: 2840 moveal %d0,%a4 if ( !d ) 47b6a: 4a80 tstl %d0 47b6c: 673a beqs 47ba8 <_Objects_Set_name+0xdc> return false; if ( the_object->name.name_p ) { 47b6e: 202d 000c movel %a5@(12),%d0 47b72: 670e beqs 47b82 <_Objects_Set_name+0xb6> _Workspace_Free( (void *)the_object->name.name_p ); 47b74: 2f00 movel %d0,%sp@- 47b76: 4eb9 0004 966c jsr 4966c <_Workspace_Free> the_object->name.name_p = NULL; 47b7c: 588f addql #4,%sp 47b7e: 42ad 000c clrl %a5@(12) } strncpy( d, name, length ); 47b82: 2f0b movel %a3,%sp@- 47b84: 2f0a movel %a2,%sp@- 47b86: 2f0c movel %a4,%sp@- 47b88: 4eb9 0005 09f8 jsr 509f8 d[length] = '\0'; the_object->name.name_p = d; 47b8e: 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'; 47b92: 4200 clrb %d0 47b94: 1980 b800 moveb %d0,%a4@(00000000,%a3:l) the_object->name.name_p = d; 47b98: 7001 moveq #1,%d0 47b9a: 2b4c 000c movel %a4,%a5@(12) ); } return true; } 47b9e: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 47ba4: 4e5e unlk %fp 47ba6: 4e75 rts 47ba8: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 <== NOT EXECUTED #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); if ( !d ) 47bae: 4200 clrb %d0 <== NOT EXECUTED ); } return true; } 47bb0: 4e5e unlk %fp <== NOT EXECUTED 47bb2: 4e75 rts <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 47bb4: 123c 0020 moveb #32,%d1 47bb8: 8081 orl %d1,%d0 47bba: 2b40 000c movel %d0,%a5@(12) 47bbe: 7001 moveq #1,%d0 47bc0: 6000 ff7a braw 47b3c <_Objects_Set_name+0x70> 00047758 <_Objects_Shrink_information>: /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / 47758: 4281 clrl %d1 */ void _Objects_Shrink_information( Objects_Information *information ) { 4775a: 4e56 ffec linkw %fp,#-20 4775e: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 47762: 246e 0008 moveal %fp@(8),%a2 /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); 47766: 4283 clrl %d3 block_count = (information->maximum - index_base) / 47768: 4284 clrl %d4 /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); 4776a: 362a 0008 movew %a2@(8),%d3 block_count = (information->maximum - index_base) / 4776e: 382a 000e movew %a2@(14),%d4 47772: 322a 0012 movew %a2@(18),%d1 47776: 9883 subl %d3,%d4 47778: 4c41 4004 remul %d1,%d4,%d4 information->allocation_size; for ( block = 0; block < block_count; block++ ) { 4777c: 672c beqs 477aa <_Objects_Shrink_information+0x52> if ( information->inactive_per_block[ block ] == 4777e: 226a 002a moveal %a2@(42),%a1 47782: b291 cmpl %a1@,%d1 47784: 672e beqs 477b4 <_Objects_Shrink_information+0x5c> information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 47786: 7404 moveq #4,%d2 47788: 4280 clrl %d0 } index_base += information->allocation_size; 4778a: 2042 moveal %d2,%a0 4778c: d681 addl %d1,%d3 4778e: 5888 addql #4,%a0 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 47790: 5280 addql #1,%d0 47792: b084 cmpl %d4,%d0 47794: 6414 bccs 477aa <_Objects_Shrink_information+0x52> if ( information->inactive_per_block[ block ] == 47796: b2b1 2800 cmpl %a1@(00000000,%d2:l),%d1 4779a: 671a beqs 477b6 <_Objects_Shrink_information+0x5e> 4779c: 2408 movel %a0,%d2 information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 4779e: 2042 moveal %d2,%a0 477a0: d681 addl %d1,%d3 477a2: 5888 addql #4,%a0 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 477a4: 5280 addql #1,%d0 477a6: b084 cmpl %d4,%d0 477a8: 65ec bcss 47796 <_Objects_Shrink_information+0x3e> return; } index_base += information->allocation_size; } } 477aa: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 477b0: 4e5e unlk %fp 477b2: 4e75 rts index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == 477b4: 4282 clrl %d2 <== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; 477b6: 206a 001c moveal %a2@(28),%a0 */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); 477ba: 47f9 0004 ba7c lea 4ba7c <_Chain_Extract>,%a3 * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; do { index = _Objects_Get_index( the_object->id ); 477c0: 4280 clrl %d0 477c2: 3028 000a movew %a0@(10),%d0 /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; 477c6: 2810 movel %a0@,%d4 if ((index >= index_base) && 477c8: b680 cmpl %d0,%d3 477ca: 620c bhis 477d8 <_Objects_Shrink_information+0x80> (index < (index_base + information->allocation_size))) { 477cc: 4281 clrl %d1 477ce: 322a 0012 movew %a2@(18),%d1 477d2: d283 addl %d3,%d1 477d4: b280 cmpl %d0,%d1 477d6: 623e bhis 47816 <_Objects_Shrink_information+0xbe> _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 477d8: 2044 moveal %d4,%a0 477da: 4a84 tstl %d4 477dc: 66e2 bnes 477c0 <_Objects_Shrink_information+0x68> /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 477de: 206a 002e moveal %a2@(46),%a0 477e2: 2f30 2800 movel %a0@(00000000,%d2:l),%sp@- 477e6: 4eb9 0004 9200 jsr 49200 <_Workspace_Free> information->object_blocks[ block ] = NULL; 477ec: 206a 002e moveal %a2@(46),%a0 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 477f0: 588f addql #4,%sp _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 477f2: 302a 0028 movew %a2@(40),%d0 477f6: 322a 0012 movew %a2@(18),%d1 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 477fa: 226a 002a moveal %a2@(42),%a1 information->inactive -= information->allocation_size; 477fe: 9081 subl %d1,%d0 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 47800: 42b1 2800 clrl %a1@(00000000,%d2:l) /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 47804: 42b0 2800 clrl %a0@(00000000,%d2:l) information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 47808: 3540 0028 movew %d0,%a2@(40) return; } index_base += information->allocation_size; } } 4780c: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 47812: 4e5e unlk %fp 47814: 4e75 rts */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); 47816: 2f08 movel %a0,%sp@- 47818: 4e93 jsr %a3@ 4781a: 588f addql #4,%sp } } while ( the_object ); 4781c: 2044 moveal %d4,%a0 4781e: 4a84 tstl %d4 47820: 669e bnes 477c0 <_Objects_Shrink_information+0x68> 47822: 60ba bras 477de <_Objects_Shrink_information+0x86> 00046bc8 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 46bc8: 4e56 ffe8 linkw %fp,#-24 46bcc: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 46bd0: 240e movel %fp,%d2 46bd2: 5982 subql #4,%d2 46bd4: 2f02 movel %d2,%sp@- pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 46bd6: 246e 000c moveal %fp@(12),%a2 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 46bda: 2f0a movel %a2,%sp@- pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 46bdc: 266e 0008 moveal %fp@(8),%a3 46be0: 162e 0017 moveb %fp@(23),%d3 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 46be4: 4eb9 0004 6dbe jsr 46dbe <_POSIX_Mutex_Get> 46bea: 508f addql #8,%sp 46bec: 4a80 tstl %d0 46bee: 6764 beqs 46c54 <_POSIX_Condition_variables_Wait_support+0x8c> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 46bf0: 2039 0006 1b74 movel 61b74 <_Thread_Dispatch_disable_level>,%d0 46bf6: 5380 subql #1,%d0 return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 46bf8: 2f02 movel %d2,%sp@- 46bfa: 23c0 0006 1b74 movel %d0,61b74 <_Thread_Dispatch_disable_level> 46c00: 2f0b movel %a3,%sp@- 46c02: 4eb9 0004 69b4 jsr 469b4 <_POSIX_Condition_variables_Get> switch ( location ) { 46c08: 508f addql #8,%sp return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 46c0a: 2840 moveal %d0,%a4 switch ( location ) { 46c0c: 4aae fffc tstl %fp@(-4) 46c10: 6642 bnes 46c54 <_POSIX_Condition_variables_Wait_support+0x8c> case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { 46c12: 202c 0014 movel %a4@(20),%d0 46c16: 6718 beqs 46c30 <_POSIX_Condition_variables_Wait_support+0x68> 46c18: b092 cmpl %a2@,%d0 46c1a: 6714 beqs 46c30 <_POSIX_Condition_variables_Wait_support+0x68> _Thread_Enable_dispatch(); 46c1c: 4eb9 0004 a008 jsr 4a008 <_Thread_Enable_dispatch> 46c22: 7416 moveq #22,%d2 case OBJECTS_ERROR: break; } return EINVAL; } 46c24: 2002 movel %d2,%d0 46c26: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 46c2c: 4e5e unlk %fp 46c2e: 4e75 rts if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { _Thread_Enable_dispatch(); return EINVAL; } (void) pthread_mutex_unlock( mutex ); 46c30: 2f0a movel %a2,%sp@- 46c32: 4eb9 0004 700c jsr 4700c _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { 46c38: 588f addql #4,%sp 46c3a: 4a03 tstb %d3 46c3c: 6724 beqs 46c62 <_POSIX_Condition_variables_Wait_support+0x9a> status = _Thread_Executing->Wait.return_code; if ( status && status != ETIMEDOUT ) return status; } else { _Thread_Enable_dispatch(); 46c3e: 4eb9 0004 a008 jsr 4a008 <_Thread_Enable_dispatch> 46c44: 7474 moveq #116,%d2 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); 46c46: 2f0a movel %a2,%sp@- 46c48: 4eb9 0004 6f70 jsr 46f70 if ( mutex_status ) 46c4e: 588f addql #4,%sp 46c50: 4a80 tstl %d0 46c52: 67d0 beqs 46c24 <_POSIX_Condition_variables_Wait_support+0x5c> 46c54: 7416 moveq #22,%d2 case OBJECTS_ERROR: break; } return EINVAL; } 46c56: 2002 movel %d2,%d0 46c58: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 46c5e: 4e5e unlk %fp 46c60: 4e75 rts return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 46c62: 2952 0014 movel %a2@,%a4@(20) _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; 46c66: 200c movel %a4,%d0 46c68: 0680 0000 0018 addil #24,%d0 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; 46c6e: 7201 moveq #1,%d1 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 46c70: 2079 0006 1c2e moveal 61c2e <_Thread_Executing>,%a0 46c76: 42a8 0034 clrl %a0@(52) _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; 46c7a: 2153 0020 movel %a3@,%a0@(32) if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; 46c7e: 2140 0044 movel %d0,%a0@(68) 46c82: 2941 0048 movel %d1,%a4@(72) _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); 46c86: 4879 0004 a910 pea 4a910 <_Thread_queue_Timeout> 46c8c: 2f2e 0010 movel %fp@(16),%sp@- 46c90: 2f00 movel %d0,%sp@- 46c92: 4eb9 0004 a554 jsr 4a554 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 46c98: 4eb9 0004 a008 jsr 4a008 <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 46c9e: 2079 0006 1c2e moveal 61c2e <_Thread_Executing>,%a0 if ( status && status != ETIMEDOUT ) 46ca4: 4fef 000c lea %sp@(12),%sp /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 46ca8: 2428 0034 movel %a0@(52),%d2 if ( status && status != ETIMEDOUT ) 46cac: 6798 beqs 46c46 <_POSIX_Condition_variables_Wait_support+0x7e> 46cae: 7074 moveq #116,%d0 46cb0: b082 cmpl %d2,%d0 46cb2: 6792 beqs 46c46 <_POSIX_Condition_variables_Wait_support+0x7e> case OBJECTS_ERROR: break; } return EINVAL; } 46cb4: 2002 movel %d2,%d0 <== NOT EXECUTED 46cb6: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 <== NOT EXECUTED 46cbc: 4e5e unlk %fp <== NOT EXECUTED 46cbe: 4e75 rts 0004b8a0 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { 4b8a0: 4e56 ffe8 linkw %fp,#-24 4b8a4: 48d7 041c moveml %d2-%d4/%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( 4b8a8: 486e fffc pea %fp@(-4) 4b8ac: 242e 0008 movel %fp@(8),%d2 4b8b0: 2f02 movel %d2,%sp@- 4b8b2: 4879 0006 8f4c pea 68f4c <_POSIX_Message_queue_Information_fds> 4b8b8: 246e 0014 moveal %fp@(20),%a2 4b8bc: 262e 0018 movel %fp@(24),%d3 4b8c0: 4eb9 0004 ecb4 jsr 4ecb4 <_Objects_Get> Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 4b8c6: 4fef 000c lea %sp@(12),%sp 4b8ca: 2040 moveal %d0,%a0 4b8cc: 4aae fffc tstl %fp@(-4) 4b8d0: 671a beqs 4b8ec <_POSIX_Message_queue_Receive_support+0x4c> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 4b8d2: 4eb9 0005 66b4 jsr 566b4 <__errno> 4b8d8: 72ff moveq #-1,%d1 4b8da: 2040 moveal %d0,%a0 4b8dc: 7009 moveq #9,%d0 } 4b8de: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 4b8e4: 2080 movel %d0,%a0@ } 4b8e6: 2001 movel %d1,%d0 4b8e8: 4e5e unlk %fp 4b8ea: 4e75 rts the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { 4b8ec: 2028 0014 movel %a0@(20),%d0 4b8f0: 7203 moveq #3,%d1 4b8f2: 7801 moveq #1,%d4 4b8f4: c280 andl %d0,%d1 4b8f6: b881 cmpl %d1,%d4 4b8f8: 6700 00f2 beqw 4b9ec <_POSIX_Message_queue_Receive_support+0x14c> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; 4b8fc: 2068 0010 moveal %a0@(16),%a0 if ( msg_len < the_mq->Message_queue.maximum_message_size ) { 4b900: 222e 0010 movel %fp@(16),%d1 4b904: b2a8 0066 cmpl %a0@(102),%d1 4b908: 6500 0098 bcsw 4b9a2 <_POSIX_Message_queue_Receive_support+0x102> length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 4b90c: 4a03 tstb %d3 4b90e: 6756 beqs 4b966 <_POSIX_Message_queue_Receive_support+0xc6> 4b910: 720e moveq #14,%d1 4b912: e2a8 lsrl %d1,%d0 4b914: 7801 moveq #1,%d4 4b916: b980 eorl %d4,%d0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b918: 2f2e 001c movel %fp@(28),%sp@- length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 4b91c: c084 andl %d4,%d0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b91e: 2f00 movel %d0,%sp@- 4b920: 486e fff8 pea %fp@(-8) /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 4b924: 70ff moveq #-1,%d0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b926: 2f2e 000c movel %fp@(12),%sp@- 4b92a: 2f02 movel %d2,%sp@- 4b92c: 4868 001a pea %a0@(26) /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 4b930: 2d40 fff8 movel %d0,%fp@(-8) do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b934: 4eb9 0004 dc1c jsr 4dc1c <_CORE_message_queue_Seize> &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); 4b93a: 4eb9 0004 f594 jsr 4f594 <_Thread_Enable_dispatch> *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); 4b940: 2079 0006 8bca moveal 68bca <_Thread_Executing>,%a0 do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = 4b946: 24a8 0024 movel %a0@(36),%a2@ 4b94a: 6d4e blts 4b99a <_POSIX_Message_queue_Receive_support+0xfa> _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) 4b94c: 4fef 0018 lea %sp@(24),%sp 4b950: 4aa8 0034 tstl %a0@(52) 4b954: 666c bnes 4b9c2 <_POSIX_Message_queue_Receive_support+0x122> return length_out; 4b956: 222e fff8 movel %fp@(-8),%d1 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 4b95a: 2001 movel %d1,%d0 4b95c: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4b962: 4e5e unlk %fp 4b964: 4e75 rts do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b966: 2f2e 001c movel %fp@(28),%sp@- <== NOT EXECUTED length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 4b96a: 4280 clrl %d0 <== NOT EXECUTED do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b96c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b96e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 4b972: 70ff moveq #-1,%d0 <== NOT EXECUTED do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b974: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4b978: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b97a: 4868 001a pea %a0@(26) <== NOT EXECUTED /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 4b97e: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 4b982: 4eb9 0004 dc1c jsr 4dc1c <_CORE_message_queue_Seize> <== NOT EXECUTED &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); 4b988: 4eb9 0004 f594 jsr 4f594 <_Thread_Enable_dispatch> <== NOT EXECUTED *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); 4b98e: 2079 0006 8bca moveal 68bca <_Thread_Executing>,%a0 <== NOT EXECUTED do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = 4b994: 24a8 0024 movel %a0@(36),%a2@ <== NOT EXECUTED 4b998: 6cb2 bges 4b94c <_POSIX_Message_queue_Receive_support+0xac> <== NOT EXECUTED 4b99a: 2212 movel %a2@,%d1 4b99c: 4481 negl %d1 4b99e: 2481 movel %d1,%a2@ 4b9a0: 60aa bras 4b94c <_POSIX_Message_queue_Receive_support+0xac> } the_mq = the_mq_fd->Queue; if ( msg_len < the_mq->Message_queue.maximum_message_size ) { _Thread_Enable_dispatch(); 4b9a2: 4eb9 0004 f594 jsr 4f594 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EMSGSIZE ); 4b9a8: 747a moveq #122,%d2 4b9aa: 4eb9 0005 66b4 jsr 566b4 <__errno> 4b9b0: 72ff moveq #-1,%d1 4b9b2: 2040 moveal %d0,%a0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 4b9b4: 2001 movel %d1,%d0 the_mq = the_mq_fd->Queue; if ( msg_len < the_mq->Message_queue.maximum_message_size ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EMSGSIZE ); 4b9b6: 2082 movel %d2,%a0@ case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 4b9b8: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4b9be: 4e5e unlk %fp 4b9c0: 4e75 rts _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) return length_out; rtems_set_errno_and_return_minus_one( 4b9c2: 4eb9 0005 66b4 jsr 566b4 <__errno> 4b9c8: 2079 0006 8bca moveal 68bca <_Thread_Executing>,%a0 4b9ce: 2440 moveal %d0,%a2 4b9d0: 2f28 0034 movel %a0@(52),%sp@- 4b9d4: 4eb9 0004 bca0 jsr 4bca0 <_POSIX_Message_queue_Translate_core_message_queue_return_code> 4b9da: 588f addql #4,%sp 4b9dc: 72ff moveq #-1,%d1 4b9de: 2480 movel %d0,%a2@ case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 4b9e0: 2001 movel %d1,%d0 4b9e2: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4b9e8: 4e5e unlk %fp 4b9ea: 4e75 rts the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { _Thread_Enable_dispatch(); 4b9ec: 4eb9 0004 f594 jsr 4f594 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EBADF ); 4b9f2: 7609 moveq #9,%d3 4b9f4: 4eb9 0005 66b4 jsr 566b4 <__errno> 4b9fa: 72ff moveq #-1,%d1 4b9fc: 2040 moveal %d0,%a0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 4b9fe: 2001 movel %d1,%d0 switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EBADF ); 4ba00: 2083 movel %d3,%a0@ case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 4ba02: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4ba08: 4e5e unlk %fp 4ba0a: 4e75 rts 0004b31c <_POSIX_Threads_Sporadic_budget_callout>: RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 4b31c: 4280 clrl %d0 /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ 4b31e: 72ff moveq #-1,%d1 * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) { 4b320: 4e56 0000 linkw %fp,#0 4b324: 206e 0008 moveal %fp@(8),%a0 4b328: 1039 0005 d9a2 moveb 5d9a2 ,%d0 POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4b32e: 2268 010e moveal %a0@(270),%a1 4b332: 90a9 0088 subl %a1@(136),%d0 /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ 4b336: 2141 0076 movel %d1,%a0@(118) new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority); the_thread->real_priority = new_priority; 4b33a: 2140 0018 movel %d0,%a0@(24) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 4b33e: 4aa8 001c tstl %a0@(28) 4b342: 6606 bnes 4b34a <_POSIX_Threads_Sporadic_budget_callout+0x2e> /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { 4b344: b0a8 0014 cmpl %a0@(20),%d0 4b348: 6204 bhis 4b34e <_POSIX_Threads_Sporadic_budget_callout+0x32> #if 0 printk( "lower priority\n" ); #endif } } } 4b34a: 4e5e unlk %fp <== NOT EXECUTED 4b34c: 4e75 rts <== NOT EXECUTED * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { _Thread_Change_priority( the_thread, new_priority, true ); 4b34e: 4878 0001 pea 1 4b352: 2f00 movel %d0,%sp@- 4b354: 2f08 movel %a0,%sp@- 4b356: 4eb9 0004 789c jsr 4789c <_Thread_Change_priority> 4b35c: 4fef 000c lea %sp@(12),%sp #if 0 printk( "lower priority\n" ); #endif } } } 4b360: 4e5e unlk %fp 4b362: 4e75 rts 00045cb4 <_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) { 45cb4: 4e56 0000 linkw %fp,#0 45cb8: 2f0a movel %a2,%sp@- 45cba: 246e 000c moveal %fp@(12),%a2 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 45cbe: 52aa 0066 addql #1,%a2@(102) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 45cc2: 4aaa 0052 tstl %a2@(82) 45cc6: 6606 bnes 45cce <_POSIX_Timer_TSR+0x1a> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 45cc8: 4aaa 0056 tstl %a2@(86) 45ccc: 672a beqs 45cf8 <_POSIX_Timer_TSR+0x44> activated = _POSIX_Timer_Insert_helper( 45cce: 2f0a movel %a2,%sp@- 45cd0: 4879 0004 5cb4 pea 45cb4 <_POSIX_Timer_TSR> 45cd6: 2f2a 0008 movel %a2@(8),%sp@- 45cda: 2f2a 0062 movel %a2@(98),%sp@- 45cde: 486a 0010 pea %a2@(16) 45ce2: 4eb9 0004 bed0 jsr 4bed0 <_POSIX_Timer_Insert_helper> ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 45ce8: 4fef 0014 lea %sp@(20),%sp 45cec: 4a00 tstb %d0 45cee: 662a bnes 45d1a <_POSIX_Timer_TSR+0x66> /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; } 45cf0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 45cf4: 4e5e unlk %fp <== NOT EXECUTED 45cf6: 4e75 rts <== NOT EXECUTED /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; 45cf8: 7004 moveq #4,%d0 <== NOT EXECUTED 45cfa: 1540 003c moveb %d0,%a2@(60) <== NOT EXECUTED /* * 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 ) ) { 45cfe: 2f2a 0042 movel %a2@(66),%sp@- <== NOT EXECUTED 45d02: 2f2a 0038 movel %a2@(56),%sp@- <== NOT EXECUTED 45d06: 4eb9 0004 b9e4 jsr 4b9e4 <== NOT EXECUTED } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 45d0c: 508f addql #8,%sp <== NOT EXECUTED 45d0e: 42aa 0066 clrl %a2@(102) <== NOT EXECUTED } 45d12: 246e fffc moveal %fp@(-4),%a2 45d16: 4e5e unlk %fp 45d18: 4e75 rts ); if ( !activated ) return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 45d1a: 486a 006a pea %a2@(106) 45d1e: 4eb9 0004 7464 jsr 47464 <_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 ) || 45d24: 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; 45d26: 7003 moveq #3,%d0 45d28: 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 ) ) { 45d2c: 2f2a 0042 movel %a2@(66),%sp@- 45d30: 2f2a 0038 movel %a2@(56),%sp@- 45d34: 4eb9 0004 b9e4 jsr 4b9e4 } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 45d3a: 508f addql #8,%sp 45d3c: 42aa 0066 clrl %a2@(102) 45d40: 60d0 bras 45d12 <_POSIX_Timer_TSR+0x5e> ... 0004eac8 <_POSIX_signals_Clear_process_signals>: clear_signal = true; mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); 4eac8: 203c 0000 0700 movel #1792,%d0 */ void _POSIX_signals_Clear_process_signals( int signo ) { 4eace: 4e56 0000 linkw %fp,#0 4ead2: 222e 0008 movel %fp@(8),%d1 4ead6: 2f03 movel %d3,%sp@- 4ead8: 2f02 movel %d2,%sp@- clear_signal = true; mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); 4eada: 40c2 movew %sr,%d2 4eadc: 8082 orl %d2,%d0 4eade: 46c0 movew %d0,%sr if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 4eae0: 2601 movel %d1,%d3 4eae2: 2001 movel %d1,%d0 4eae4: 41f9 0005 f602 lea 5f602 <_POSIX_signals_Vectors>,%a0 4eaea: e58b lsll #2,%d3 4eaec: e988 lsll #4,%d0 4eaee: 9083 subl %d3,%d0 4eaf0: 7602 moveq #2,%d3 4eaf2: b6b0 0800 cmpl %a0@(00000000,%d0:l),%d3 4eaf6: 6726 beqs 4eb1e <_POSIX_signals_Clear_process_signals+0x56> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 4eaf8: 5381 subql #1,%d1 4eafa: 7001 moveq #1,%d0 4eafc: e3a8 lsll %d1,%d0 4eafe: 4680 notl %d0 4eb00: c0b9 0005 f7ce andl 5f7ce <_POSIX_signals_Pending>,%d0 4eb06: 23c0 0005 f7ce movel %d0,5f7ce <_POSIX_signals_Pending> if ( !_POSIX_signals_Pending ) 4eb0c: 6606 bnes 4eb14 <_POSIX_signals_Clear_process_signals+0x4c> _Thread_Do_post_task_switch_extension--; 4eb0e: 53b9 0005 f1f6 subql #1,5f1f6 <_Thread_Do_post_task_switch_extension> } _ISR_Enable( level ); 4eb14: 46c2 movew %d2,%sr } 4eb16: 241f movel %sp@+,%d2 4eb18: 261f movel %sp@+,%d3 4eb1a: 4e5e unlk %fp 4eb1c: 4e75 rts ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) 4eb1e: 0680 0005 f7d2 addil #391122,%d0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4eb24: 2040 moveal %d0,%a0 4eb26: 5888 addql #4,%a0 4eb28: 2240 moveal %d0,%a1 4eb2a: b1d1 cmpal %a1@,%a0 4eb2c: 67ca beqs 4eaf8 <_POSIX_signals_Clear_process_signals+0x30> if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); 4eb2e: 46c2 movew %d2,%sr <== NOT EXECUTED } 4eb30: 241f movel %sp@+,%d2 <== NOT EXECUTED 4eb32: 261f movel %sp@+,%d3 <== NOT EXECUTED 4eb34: 4e5e unlk %fp <== NOT EXECUTED 4eb36: 4e75 rts 0004eb68 <_POSIX_signals_Unblock_thread>: 4eb68: 7001 moveq #1,%d0 bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 4eb6a: 4e56 fff4 linkw %fp,#-12 4eb6e: 222e 000c movel %fp@(12),%d1 4eb72: 48d7 040c moveml %d2-%d3/%a2,%sp@ 4eb76: 246e 0008 moveal %fp@(8),%a2 4eb7a: 2601 movel %d1,%d3 4eb7c: 5383 subql #1,%d3 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { 4eb7e: 242a 0010 movel %a2@(16),%d2 4eb82: 0282 1000 8000 andil #268468224,%d2 bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 4eb88: 226e 0010 moveal %fp@(16),%a1 POSIX_API_Control *api; sigset_t mask; siginfo_t *the_info = NULL; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4eb8c: 206a 010e moveal %a2@(270),%a0 4eb90: e7a8 lsll %d3,%d0 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { 4eb92: 0c82 1000 8000 cmpil #268468224,%d2 4eb98: 6772 beqs 4ec0c <_POSIX_signals_Unblock_thread+0xa4> } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { 4eb9a: 2228 00cc movel %a0@(204),%d1 4eb9e: 4681 notl %d1 4eba0: c081 andl %d1,%d0 4eba2: 675c beqs 4ec00 <_POSIX_signals_Unblock_thread+0x98> * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { 4eba4: 202a 0010 movel %a2@(16),%d0 * it is not blocked, THEN * we need to dispatch at the end of this ISR. * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; 4eba8: 7201 moveq #1,%d1 4ebaa: 1541 0074 moveb %d1,%a2@(116) if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { 4ebae: 0800 001c btst #28,%d0 4ebb2: 6736 beqs 4ebea <_POSIX_signals_Unblock_thread+0x82> the_thread->Wait.return_code = EINTR; 4ebb4: 7004 moveq #4,%d0 4ebb6: 2540 0034 movel %d0,%a2@(52) #if 0 if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ 4ebba: 103c 0008 moveb #8,%d0 4ebbe: c0aa 0010 andl %a2@(16),%d0 4ebc2: 673c beqs 4ec00 <_POSIX_signals_Unblock_thread+0x98> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 4ebc4: 7202 moveq #2,%d1 4ebc6: b2aa 0050 cmpl %a2@(80),%d1 4ebca: 6700 00a4 beqw 4ec70 <_POSIX_signals_Unblock_thread+0x108> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4ebce: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4ebd4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ebd6: 4eb9 0004 79e8 jsr 479e8 <_Thread_Clear_state> <== NOT EXECUTED 4ebdc: 508f addql #8,%sp <== NOT EXECUTED 4ebde: 4200 clrb %d0 <== NOT EXECUTED if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } 4ebe0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4ebe6: 4e5e unlk %fp 4ebe8: 4e75 rts if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { 4ebea: 4a80 tstl %d0 4ebec: 6612 bnes 4ec00 <_POSIX_signals_Unblock_thread+0x98> if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 4ebee: 2039 0005 f1ee movel 5f1ee <_ISR_Nest_level>,%d0 4ebf4: 670a beqs 4ec00 <_POSIX_signals_Unblock_thread+0x98> 4ebf6: b5f9 0005 f20e cmpal 5f20e <_Thread_Executing>,%a2 4ebfc: 6700 0094 beqw 4ec92 <_POSIX_signals_Unblock_thread+0x12a> _ISR_Signals_to_thread_executing = true; } } return false; } 4ec00: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 4ec06: 4200 clrb %d0 } } return false; } 4ec08: 4e5e unlk %fp 4ec0a: 4e75 rts * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 4ec0c: 2400 movel %d0,%d2 4ec0e: c4aa 0030 andl %a2@(48),%d2 4ec12: 672a beqs 4ec3e <_POSIX_signals_Unblock_thread+0xd6> the_thread->Wait.return_code = EINTR; 4ec14: 7004 moveq #4,%d0 the_info = (siginfo_t *) the_thread->Wait.return_argument; 4ec16: 206a 0028 moveal %a2@(40),%a0 */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { the_thread->Wait.return_code = EINTR; 4ec1a: 2540 0034 movel %d0,%a2@(52) the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { 4ec1e: 4a89 tstl %a1 4ec20: 6734 beqs 4ec56 <_POSIX_signals_Unblock_thread+0xee> the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; } else { *the_info = *info; 4ec22: 20d9 movel %a1@+,%a0@+ 4ec24: 20d9 movel %a1@+,%a0@+ 4ec26: 2091 movel %a1@,%a0@ } _Thread_queue_Extract_with_proxy( the_thread ); 4ec28: 2f0a movel %a2,%sp@- 4ec2a: 4eb9 0004 851c jsr 4851c <_Thread_queue_Extract_with_proxy> return true; 4ec30: 588f addql #4,%sp the_info->si_value.sival_int = 0; } else { *the_info = *info; } _Thread_queue_Extract_with_proxy( the_thread ); 4ec32: 7001 moveq #1,%d0 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } 4ec34: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4ec3a: 4e5e unlk %fp 4ec3c: 4e75 rts * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 4ec3e: 2428 00cc movel %a0@(204),%d2 4ec42: 4682 notl %d2 4ec44: c082 andl %d2,%d0 4ec46: 67b8 beqs 4ec00 <_POSIX_signals_Unblock_thread+0x98> the_thread->Wait.return_code = EINTR; 4ec48: 7004 moveq #4,%d0 the_info = (siginfo_t *) the_thread->Wait.return_argument; 4ec4a: 206a 0028 moveal %a2@(40),%a0 */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { the_thread->Wait.return_code = EINTR; 4ec4e: 2540 0034 movel %d0,%a2@(52) the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { 4ec52: 4a89 tstl %a1 4ec54: 66cc bnes 4ec22 <_POSIX_signals_Unblock_thread+0xba> the_info->si_signo = signo; 4ec56: 2081 movel %d1,%a0@ the_info->si_code = SI_USER; 4ec58: 7201 moveq #1,%d1 the_info->si_value.sival_int = 0; 4ec5a: 42a8 0008 clrl %a0@(8) the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; the_info->si_code = SI_USER; 4ec5e: 2141 0004 movel %d1,%a0@(4) the_info->si_value.sival_int = 0; } else { *the_info = *info; } _Thread_queue_Extract_with_proxy( the_thread ); 4ec62: 2f0a movel %a2,%sp@- 4ec64: 4eb9 0004 851c jsr 4851c <_Thread_queue_Extract_with_proxy> return true; 4ec6a: 588f addql #4,%sp the_info->si_value.sival_int = 0; } else { *the_info = *info; } _Thread_queue_Extract_with_proxy( the_thread ); 4ec6c: 7001 moveq #1,%d0 4ec6e: 60c4 bras 4ec34 <_POSIX_signals_Unblock_thread+0xcc> _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 4ec70: 486a 0048 pea %a2@(72) 4ec74: 4eb9 0004 9094 jsr 49094 <_Watchdog_Remove> 4ec7a: 588f addql #4,%sp 4ec7c: 2f3c 1003 fff8 movel #268697592,%sp@- 4ec82: 2f0a movel %a2,%sp@- 4ec84: 4eb9 0004 79e8 jsr 479e8 <_Thread_Clear_state> 4ec8a: 508f addql #8,%sp 4ec8c: 4200 clrb %d0 4ec8e: 6000 ff50 braw 4ebe0 <_POSIX_signals_Unblock_thread+0x78> _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 4ec92: 7001 moveq #1,%d0 } } return false; } 4ec94: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4ec9a: 4e5e unlk %fp (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 4ec9c: 13c0 0005 f29c moveb %d0,5f29c <_ISR_Signals_to_thread_executing> 4eca2: 4200 clrb %d0 } } return false; } 4eca4: 4e75 rts ... 000479e8 <_Thread_Clear_state>: ) { ISR_Level level; States_Control current_state; _ISR_Disable( level ); 479e8: 327c 0700 moveaw #1792,%a1 479ec: 2009 movel %a1,%d0 void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 479ee: 4e56 ffec linkw %fp,#-20 479f2: 206e 0008 moveal %fp@(8),%a0 479f6: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 479fa: 242e 000c movel %fp@(12),%d2 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 479fe: 40c3 movew %sr,%d3 47a00: 8083 orl %d3,%d0 47a02: 46c0 movew %d0,%sr current_state = the_thread->current_state; 47a04: 2228 0010 movel %a0@(16),%d1 if ( current_state & state ) { 47a08: 2002 movel %d2,%d0 47a0a: c081 andl %d1,%d0 47a0c: 6776 beqs 47a84 <_Thread_Clear_state+0x9c> RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 47a0e: 2002 movel %d2,%d0 47a10: 4680 notl %d0 47a12: c081 andl %d1,%d0 current_state = 47a14: 2140 0010 movel %d0,%a0@(16) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { 47a18: 666a bnes 47a84 <_Thread_Clear_state+0x9c> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 47a1a: 2868 008e moveal %a0@(142),%a4 47a1e: 3028 0094 movew %a0@(148),%d0 47a22: 3214 movew %a4@,%d1 _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 47a24: 2468 008a moveal %a0@(138),%a2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 47a28: 240a movel %a2,%d2 47a2a: 5882 addql #4,%d2 47a2c: 8081 orl %d1,%d0 47a2e: 2082 movel %d2,%a0@ old_last_node = the_chain->last; 47a30: 266a 0008 moveal %a2@(8),%a3 47a34: 3880 movew %d0,%a4@ the_chain->last = the_node; 47a36: 2548 0008 movel %a0,%a2@(8) _Priority_Major_bit_map |= the_priority_map->ready_major; 47a3a: 3239 0005 f204 movew 5f204 <_Priority_Major_bit_map>,%d1 47a40: 3028 0092 movew %a0@(146),%d0 old_last_node->next = the_node; the_node->previous = old_last_node; 47a44: 214b 0004 movel %a3,%a0@(4) 47a48: 8081 orl %d1,%d0 Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 47a4a: 2688 movel %a0,%a3@ 47a4c: 33c0 0005 f204 movew %d0,5f204 <_Priority_Major_bit_map> _ISR_Flash( level ); 47a52: 2009 movel %a1,%d0 47a54: 46c3 movew %d3,%sr 47a56: 8083 orl %d3,%d0 47a58: 46c0 movew %d0,%sr * a context switch. * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 47a5a: 2028 0014 movel %a0@(20),%d0 47a5e: 2279 0005 f1e2 moveal 5f1e2 <_Thread_Heir>,%a1 47a64: b0a9 0014 cmpl %a1@(20),%d0 47a68: 641a bccs 47a84 <_Thread_Clear_state+0x9c> _Thread_Heir = the_thread; 47a6a: 23c8 0005 f1e2 movel %a0,5f1e2 <_Thread_Heir> if ( _Thread_Executing->is_preemptible || 47a70: 2079 0005 f20e moveal 5f20e <_Thread_Executing>,%a0 47a76: 4a28 0075 tstb %a0@(117) 47a7a: 6712 beqs 47a8e <_Thread_Clear_state+0xa6> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 47a7c: 7001 moveq #1,%d0 47a7e: 13c0 0005 f21e moveb %d0,5f21e <_Context_Switch_necessary> } } } _ISR_Enable( level ); 47a84: 46c3 movew %d3,%sr } 47a86: 4cd7 1c0c moveml %sp@,%d2-%d3/%a2-%a4 47a8a: 4e5e unlk %fp 47a8c: 4e75 rts * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 47a8e: 4a80 tstl %d0 47a90: 66f2 bnes 47a84 <_Thread_Clear_state+0x9c> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 47a92: 7001 moveq #1,%d0 <== NOT EXECUTED 47a94: 13c0 0005 f21e moveb %d0,5f21e <_Context_Switch_necessary> <== NOT EXECUTED 47a9a: 60e8 bras 47a84 <_Thread_Clear_state+0x9c> <== NOT EXECUTED 00047a9c <_Thread_Close>: 47a9c: 4280 clrl %d0 void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 47a9e: 4e56 0000 linkw %fp,#0 47aa2: 2f0b movel %a3,%sp@- 47aa4: 266e 0008 moveal %fp@(8),%a3 47aa8: 2f0a movel %a2,%sp@- 47aaa: 246e 000c moveal %fp@(12),%a2 47aae: 206b 0018 moveal %a3@(24),%a0 47ab2: 302a 000a movew %a2@(10),%d0 47ab6: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 47aba: 2039 0005 f154 movel 5f154 <_Thread_Dispatch_disable_level>,%d0 47ac0: 5380 subql #1,%d0 * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); 47ac2: 2f0a movel %a2,%sp@- 47ac4: 23c0 0005 f154 movel %d0,5f154 <_Thread_Dispatch_disable_level> 47aca: 4eb9 0004 8e80 jsr 48e80 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 47ad0: 2039 0005 f154 movel 5f154 <_Thread_Dispatch_disable_level>,%d0 47ad6: 5280 addql #1,%d0 47ad8: 23c0 0005 f154 movel %d0,5f154 <_Thread_Dispatch_disable_level> /* * Now we are in a dispatching critical section again and we * can take the thread OUT of the published set. It is invalid * to use this thread's Id OR name after this call. */ _Objects_Close( information, &the_thread->Object ); 47ade: 2f0a movel %a2,%sp@- 47ae0: 2f0b movel %a3,%sp@- 47ae2: 4eb9 0004 7120 jsr 47120 <_Objects_Close> /* * By setting the dormant state, the thread will not be considered * for scheduling when we remove any blocking states. */ _Thread_Set_state( the_thread, STATES_DORMANT ); 47ae8: 4878 0001 pea 1 47aec: 2f0a movel %a2,%sp@- 47aee: 4eb9 0004 8710 jsr 48710 <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 47af4: 2f0a movel %a2,%sp@- 47af6: 4eb9 0004 851c jsr 4851c <_Thread_queue_Extract_with_proxy> 47afc: 4fef 0018 lea %sp@(24),%sp 47b00: 4a00 tstb %d0 47b02: 6608 bnes 47b0c <_Thread_Close+0x70> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 47b04: 7002 moveq #2,%d0 47b06: b0aa 0050 cmpl %a2@(80),%d0 47b0a: 6756 beqs 47b62 <_Thread_Close+0xc6> /* * The thread might have been FP. So deal with that. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) 47b0c: b5f9 0005 f1da cmpal 5f1da <_Thread_Allocated_fp>,%a2 47b12: 6746 beqs 47b5a <_Thread_Close+0xbe> _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) 47b14: 202a 00c6 movel %a2@(198),%d0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; 47b18: 42aa 0102 clrl %a2@(258) if ( the_thread->Start.fp_context ) 47b1c: 4a80 tstl %d0 47b1e: 670a beqs 47b2a <_Thread_Close+0x8e> (void) _Workspace_Free( the_thread->Start.fp_context ); 47b20: 2f00 movel %d0,%sp@- 47b22: 4eb9 0004 9200 jsr 49200 <_Workspace_Free> 47b28: 588f addql #4,%sp /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); 47b2a: 2f0a movel %a2,%sp@- 47b2c: 4eb9 0004 890c jsr 4890c <_Thread_Stack_Free> the_thread->Start.stack = NULL; if ( the_thread->extensions ) 47b32: 202a 0116 movel %a2@(278),%d0 47b36: 588f addql #4,%sp /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); the_thread->Start.stack = NULL; 47b38: 42aa 00ca clrl %a2@(202) if ( the_thread->extensions ) 47b3c: 4a80 tstl %d0 47b3e: 670a beqs 47b4a <_Thread_Close+0xae> (void) _Workspace_Free( the_thread->extensions ); 47b40: 2f00 movel %d0,%sp@- 47b42: 4eb9 0004 9200 jsr 49200 <_Workspace_Free> 47b48: 588f addql #4,%sp the_thread->extensions = NULL; 47b4a: 42aa 0116 clrl %a2@(278) } 47b4e: 246e fff8 moveal %fp@(-8),%a2 47b52: 266e fffc moveal %fp@(-4),%a3 47b56: 4e5e unlk %fp 47b58: 4e75 rts */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void ) { _Thread_Allocated_fp = NULL; 47b5a: 42b9 0005 f1da clrl 5f1da <_Thread_Allocated_fp> 47b60: 60b2 bras 47b14 <_Thread_Close+0x78> */ _Thread_Set_state( the_thread, STATES_DORMANT ); if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 47b62: 486a 0048 pea %a2@(72) 47b66: 4eb9 0004 9094 jsr 49094 <_Watchdog_Remove> 47b6c: 588f addql #4,%sp /* * The thread might have been FP. So deal with that. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) 47b6e: b5f9 0005 f1da cmpal 5f1da <_Thread_Allocated_fp>,%a2 47b74: 669e bnes 47b14 <_Thread_Close+0x78> 47b76: 60e2 bras 47b5a <_Thread_Close+0xbe> <== NOT EXECUTED 0004e1ec <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 4e1ec: 4e56 0000 linkw %fp,#0 4e1f0: 2f0a movel %a2,%sp@- #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 4e1f2: 2479 0005 f20e moveal 5f20e <_Thread_Executing>,%a2 * * Output parameters: NONE */ void _Thread_Handler( void ) { 4e1f8: 2f02 movel %d2,%sp@- /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 4e1fa: 222a 00b4 movel %a2@(180),%d1 _ISR_Set_level(level); 4e1fe: 40c0 movew %sr,%d0 4e200: e189 lsll #8,%d1 4e202: 0280 0000 f8ff andil #63743,%d0 4e208: 8081 orl %d1,%d0 4e20a: 46c0 movew %d0,%sr #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; doneConstructors = 1; 4e20c: 7001 moveq #1,%d0 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 4e20e: 1439 0005 e904 moveb 5e904 ,%d2 doneConstructors = 1; 4e214: 13c0 0005 e904 moveb %d0,5e904 #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 4e21a: 4aaa 0102 tstl %a2@(258) 4e21e: 6720 beqs 4e240 <_Thread_Handler+0x54> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 4e220: 2079 0005 f1da moveal 5f1da <_Thread_Allocated_fp>,%a0 4e226: b1ca cmpal %a2,%a0 4e228: 6716 beqs 4e240 <_Thread_Handler+0x54> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 4e22a: 4a88 tstl %a0 4e22c: 670c beqs 4e23a <_Thread_Handler+0x4e> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 4e22e: 4868 0102 pea %a0@(258) 4e232: 4eb9 0004 93b6 jsr 493b6 <_CPU_Context_save_fp> 4e238: 588f addql #4,%sp _Thread_Allocated_fp = executing; 4e23a: 23ca 0005 f1da movel %a2,5f1da <_Thread_Allocated_fp> /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); 4e240: 2f0a movel %a2,%sp@- 4e242: 4eb9 0004 8d64 jsr 48d64 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 4e248: 4eb9 0004 7dbc jsr 47dbc <_Thread_Enable_dispatch> /* * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { 4e24e: 588f addql #4,%sp 4e250: 4a02 tstb %d2 4e252: 6724 beqs 4e278 <_Thread_Handler+0x8c> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 4e254: 202a 009e movel %a2@(158),%d0 4e258: 672a beqs 4e284 <_Thread_Handler+0x98> (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { 4e25a: 7201 moveq #1,%d1 4e25c: b280 cmpl %d0,%d1 4e25e: 674c beqs 4e2ac <_Thread_Handler+0xc0> * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 4e260: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e262: 4eb9 0004 8da2 jsr 48da2 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4e268: 4878 0006 pea 6 <== NOT EXECUTED 4e26c: 4878 0001 pea 1 <== NOT EXECUTED 4e270: 42a7 clrl %sp@- <== NOT EXECUTED 4e272: 4eb9 0004 6fcc jsr 46fcc <_Internal_error_Occurred> <== NOT EXECUTED * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { INIT_NAME (); 4e278: 4eb9 0005 be18 jsr 5be18 <_init> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 4e27e: 202a 009e movel %a2@(158),%d0 4e282: 66d6 bnes 4e25a <_Thread_Handler+0x6e> executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 4e284: 2f2a 00a6 movel %a2@(166),%sp@- 4e288: 206a 009a moveal %a2@(154),%a0 4e28c: 4e90 jsr %a0@ INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 4e28e: 588f addql #4,%sp 4e290: 2540 0028 movel %d0,%a2@(40) * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 4e294: 2f0a movel %a2,%sp@- 4e296: 4eb9 0004 8da2 jsr 48da2 <_User_extensions_Thread_exitted> _Internal_error_Occurred( 4e29c: 4878 0006 pea 6 4e2a0: 4878 0001 pea 1 4e2a4: 42a7 clrl %sp@- 4e2a6: 4eb9 0004 6fcc jsr 46fcc <_Internal_error_Occurred> ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = (*(Thread_Entry_pointer) executing->Start.entry_point)( 4e2ac: 2f2a 00a2 movel %a2@(162),%sp@- 4e2b0: 206a 009a moveal %a2@(154),%a0 4e2b4: 4e90 jsr %a0@ executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = 4e2b6: 588f addql #4,%sp 4e2b8: 2540 0028 movel %d0,%a2@(40) * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 4e2bc: 2f0a movel %a2,%sp@- 4e2be: 4eb9 0004 8da2 jsr 48da2 <_User_extensions_Thread_exitted> _Internal_error_Occurred( 4e2c4: 4878 0006 pea 6 <== NOT EXECUTED 4e2c8: 4878 0001 pea 1 <== NOT EXECUTED 4e2cc: 42a7 clrl %sp@- <== NOT EXECUTED 4e2ce: 4eb9 0004 6fcc jsr 46fcc <_Internal_error_Occurred> <== NOT EXECUTED 00049258 <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 49258: 7001 moveq #1,%d0 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 4925a: 4e56 0000 linkw %fp,#0 4925e: 2f0a movel %a2,%sp@- 49260: 246e 0008 moveal %fp@(8),%a2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 49264: c0aa 0010 andl %a2@(16),%d0 49268: 4a00 tstb %d0 4926a: 670a beqs 49276 <_Thread_Restart+0x1e> return true; } return false; } 4926c: 246e fffc moveal %fp@(-4),%a2 49270: 4e5e unlk %fp Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 49272: 4200 clrb %d0 return true; } return false; } 49274: 4e75 rts Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 49276: 2f0a movel %a2,%sp@- 49278: 4eb9 0004 9468 jsr 49468 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 4927e: 2f2e 0010 movel %fp@(16),%sp@- 49282: 2f2e 000c movel %fp@(12),%sp@- 49286: 2f0a movel %a2,%sp@- 49288: 4eb9 0004 d188 jsr 4d188 <_Thread_Reset> _Thread_Load_environment( the_thread ); 4928e: 2f0a movel %a2,%sp@- 49290: 4eb9 0004 cddc jsr 4cddc <_Thread_Load_environment> _Thread_Ready( the_thread ); 49296: 2f0a movel %a2,%sp@- 49298: 4eb9 0004 d0c8 jsr 4d0c8 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 4929e: 2f0a movel %a2,%sp@- 492a0: 4eb9 0004 9b0c jsr 49b0c <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 492a6: 4fef 001c lea %sp@(28),%sp 492aa: b5f9 0006 0146 cmpal 60146 <_Thread_Executing>,%a2 492b0: 670a beqs 492bc <_Thread_Restart+0x64> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) _Context_Restore_fp( &_Thread_Executing->fp_context ); #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 492b2: 7001 moveq #1,%d0 return true; } return false; } 492b4: 246e fffc moveal %fp@(-4),%a2 492b8: 4e5e unlk %fp 492ba: 4e75 rts */ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) 492bc: 4aaa 0102 tstl %a2@(258) 492c0: 6712 beqs 492d4 <_Thread_Restart+0x7c> _Context_Restore_fp( &_Thread_Executing->fp_context ); 492c2: 486a 0102 pea %a2@(258) 492c6: 4eb9 0004 a076 jsr 4a076 <_CPU_Context_restore_fp> 492cc: 2479 0006 0146 moveal 60146 <_Thread_Executing>,%a2 492d2: 588f addql #4,%sp #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 492d4: 486a 00ce pea %a2@(206) 492d8: 4eb9 0004 9f1e jsr 49f1e <_CPU_Context_Restart_self> 492de: 588f addql #4,%sp <== NOT EXECUTED 492e0: 7001 moveq #1,%d0 <== NOT EXECUTED 492e2: 60d0 bras 492b4 <_Thread_Restart+0x5c> <== NOT EXECUTED 0004c7c0 <_Thread_Resume>: { ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4c7c0: 327c 0700 moveaw #1792,%a1 4c7c4: 2009 movel %a1,%d0 void _Thread_Resume( Thread_Control *the_thread, bool force ) { 4c7c6: 4e56 ffec linkw %fp,#-20 4c7ca: 206e 0008 moveal %fp@(8),%a0 4c7ce: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4c7d2: 40c1 movew %sr,%d1 4c7d4: 8081 orl %d1,%d0 4c7d6: 46c0 movew %d0,%sr _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 4c7d8: 2028 0010 movel %a0@(16),%d0 if ( current_state & STATES_SUSPENDED ) { 4c7dc: 0800 0001 btst #1,%d0 4c7e0: 6774 beqs 4c856 <_Thread_Resume+0x96> 4c7e2: 74fd moveq #-3,%d2 4c7e4: c082 andl %d2,%d0 current_state = 4c7e6: 2140 0010 movel %d0,%a0@(16) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 4c7ea: 666a bnes 4c856 <_Thread_Resume+0x96> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4c7ec: 2868 008e moveal %a0@(142),%a4 4c7f0: 3028 0094 movew %a0@(148),%d0 4c7f4: 3414 movew %a4@,%d2 _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 4c7f6: 2468 008a moveal %a0@(138),%a2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4c7fa: 260a movel %a2,%d3 4c7fc: 5883 addql #4,%d3 4c7fe: 8082 orl %d2,%d0 4c800: 2083 movel %d3,%a0@ old_last_node = the_chain->last; 4c802: 266a 0008 moveal %a2@(8),%a3 4c806: 3880 movew %d0,%a4@ the_chain->last = the_node; 4c808: 2548 0008 movel %a0,%a2@(8) _Priority_Major_bit_map |= the_priority_map->ready_major; 4c80c: 3439 0006 4e7c movew 64e7c <_Priority_Major_bit_map>,%d2 4c812: 3028 0092 movew %a0@(146),%d0 old_last_node->next = the_node; the_node->previous = old_last_node; 4c816: 214b 0004 movel %a3,%a0@(4) 4c81a: 8082 orl %d2,%d0 Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 4c81c: 2688 movel %a0,%a3@ 4c81e: 33c0 0006 4e7c movew %d0,64e7c <_Priority_Major_bit_map> _ISR_Flash( level ); 4c824: 2009 movel %a1,%d0 4c826: 46c1 movew %d1,%sr 4c828: 8081 orl %d1,%d0 4c82a: 46c0 movew %d0,%sr if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 4c82c: 2028 0014 movel %a0@(20),%d0 4c830: 2279 0006 4e5a moveal 64e5a <_Thread_Heir>,%a1 4c836: b0a9 0014 cmpl %a1@(20),%d0 4c83a: 641a bccs 4c856 <_Thread_Resume+0x96> _Thread_Heir = the_thread; 4c83c: 23c8 0006 4e5a movel %a0,64e5a <_Thread_Heir> if ( _Thread_Executing->is_preemptible || 4c842: 2079 0006 4e86 moveal 64e86 <_Thread_Executing>,%a0 4c848: 4a28 0075 tstb %a0@(117) 4c84c: 6712 beqs 4c860 <_Thread_Resume+0xa0> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 4c84e: 7001 moveq #1,%d0 4c850: 13c0 0006 4e96 moveb %d0,64e96 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 4c856: 46c1 movew %d1,%sr } 4c858: 4cd7 1c0c moveml %sp@,%d2-%d3/%a2-%a4 4c85c: 4e5e unlk %fp 4c85e: 4e75 rts _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 4c860: 4a80 tstl %d0 4c862: 66f2 bnes 4c856 <_Thread_Resume+0x96> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 4c864: 7001 moveq #1,%d0 <== NOT EXECUTED 4c866: 13c0 0006 4e96 moveb %d0,64e96 <_Context_Switch_necessary> <== NOT EXECUTED 4c86c: 60e8 bras 4c856 <_Thread_Resume+0x96> <== NOT EXECUTED ... 00048b78 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 48b78: 4e56 fff4 linkw %fp,#-12 ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 48b7c: 2079 0005 f20e moveal 5f20e <_Thread_Executing>,%a0 * ready chain * select heir */ void _Thread_Yield_processor( void ) { 48b82: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); 48b86: 243c 0000 0700 movel #1792,%d2 48b8c: 2002 movel %d2,%d0 ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; 48b8e: 2268 008a moveal %a0@(138),%a1 _ISR_Disable( level ); 48b92: 40c1 movew %sr,%d1 48b94: 8081 orl %d1,%d0 48b96: 46c0 movew %d0,%sr if ( !_Chain_Has_only_one_node( ready ) ) { 48b98: 2029 0008 movel %a1@(8),%d0 48b9c: b091 cmpl %a1@,%d0 48b9e: 6750 beqs 48bf0 <_Thread_Yield_processor+0x78> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 48ba0: 2450 moveal %a0@,%a2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 48ba2: 2009 movel %a1,%d0 48ba4: 5880 addql #4,%d0 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 48ba6: 2668 0004 moveal %a0@(4),%a3 next->previous = previous; previous->next = next; 48baa: 268a movel %a2,%a3@ Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 48bac: 254b 0004 movel %a3,%a2@(4) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 48bb0: 2080 movel %d0,%a0@ old_last_node = the_chain->last; 48bb2: 2469 0008 moveal %a1@(8),%a2 the_chain->last = the_node; 48bb6: 2348 0008 movel %a0,%a1@(8) old_last_node->next = the_node; the_node->previous = old_last_node; 48bba: 214a 0004 movel %a2,%a0@(4) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 48bbe: 2488 movel %a0,%a2@ _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 48bc0: 46c1 movew %d1,%sr 48bc2: 8481 orl %d1,%d2 48bc4: 46c2 movew %d2,%sr if ( _Thread_Is_heir( executing ) ) 48bc6: b1f9 0005 f1e2 cmpal 5f1e2 <_Thread_Heir>,%a0 48bcc: 6712 beqs 48be0 <_Thread_Yield_processor+0x68> _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; 48bce: 7001 moveq #1,%d0 <== NOT EXECUTED 48bd0: 13c0 0005 f21e moveb %d0,5f21e <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 48bd6: 46c1 movew %d1,%sr } 48bd8: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 48bdc: 4e5e unlk %fp 48bde: 4e75 rts _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 48be0: 23d1 0005 f1e2 movel %a1@,5f1e2 <_Thread_Heir> _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; 48be6: 7001 moveq #1,%d0 48be8: 13c0 0005 f21e moveb %d0,5f21e <_Context_Switch_necessary> 48bee: 60e6 bras 48bd6 <_Thread_Yield_processor+0x5e> if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 48bf0: b1f9 0005 f1e2 cmpal 5f1e2 <_Thread_Heir>,%a0 48bf6: 67de beqs 48bd6 <_Thread_Yield_processor+0x5e> _Context_Switch_necessary = true; 48bf8: 7001 moveq #1,%d0 <== NOT EXECUTED 48bfa: 13c0 0005 f21e moveb %d0,5f21e <_Context_Switch_necessary> <== NOT EXECUTED 48c00: 60d4 bras 48bd6 <_Thread_Yield_processor+0x5e> <== NOT EXECUTED ... 000483a4 <_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 ) { 483a4: 4e56 ffe4 linkw %fp,#-28 483a8: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 483ac: 266e 000c moveal %fp@(12),%a3 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 483b0: 41eb 003c lea %a3@(60),%a0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 483b4: 263c 0000 0700 movel #1792,%d3 Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 483ba: 222b 0014 movel %a3@(20),%d1 header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 483be: 2401 movel %d1,%d2 483c0: ec8a lsrl #6,%d2 483c2: 2002 movel %d2,%d0 483c4: e58a lsll #2,%d2 483c6: e988 lsll #4,%d0 Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 483c8: 286e 0008 moveal %fp@(8),%a4 _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 ]; 483cc: 9082 subl %d2,%d0 483ce: 45f4 0800 lea %a4@(00000000,%d0:l),%a2 483d2: 2748 0038 movel %a0,%a3@(56) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 483d6: 41eb 0038 lea %a3@(56),%a0 block_state = the_thread_queue->state; 483da: 242c 0038 movel %a4@(56),%d2 483de: 2748 0040 movel %a0,%a3@(64) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 483e2: 42ab 003c clrl %a3@(60) if ( _Thread_queue_Is_reverse_search( priority ) ) 483e6: 0801 0005 btst #5,%d1 483ea: 6656 bnes 48442 <_Thread_queue_Enqueue_priority+0x9e> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 483ec: 2a0a movel %a2,%d5 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 483ee: 2803 movel %d3,%d4 483f0: 5885 addql #4,%d5 483f2: 2004 movel %d4,%d0 483f4: 40c3 movew %sr,%d3 483f6: 8083 orl %d3,%d0 483f8: 46c0 movew %d0,%sr search_thread = (Thread_Control *) header->first; 483fa: 2052 moveal %a2@,%a0 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 483fc: ba88 cmpl %a0,%d5 483fe: 6700 010a beqw 4850a <_Thread_queue_Enqueue_priority+0x166> search_priority = search_thread->current_priority; 48402: 2268 0014 moveal %a0@(20),%a1 if ( priority <= search_priority ) 48406: b3c1 cmpal %d1,%a1 48408: 6418 bccs 48422 <_Thread_queue_Enqueue_priority+0x7e> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 4840a: 2004 movel %d4,%d0 4840c: 46c3 movew %d3,%sr 4840e: 8083 orl %d3,%d0 48410: 46c0 movew %d0,%sr if ( !_States_Are_set( search_thread->current_state, block_state) ) { 48412: 2002 movel %d2,%d0 48414: c0a8 0010 andl %a0@(16),%d0 48418: 6700 0092 beqw 484ac <_Thread_queue_Enqueue_priority+0x108> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 4841c: 2050 moveal %a0@,%a0 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 ) ) { 4841e: ba88 cmpl %a0,%d5 48420: 66e0 bnes 48402 <_Thread_queue_Enqueue_priority+0x5e> 48422: 2403 movel %d3,%d2 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48424: 7001 moveq #1,%d0 48426: b0ac 0030 cmpl %a4@(48),%d0 4842a: 6700 0094 beqw 484c0 <_Thread_queue_Enqueue_priority+0x11c> * 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; 4842e: 206e 0010 moveal %fp@(16),%a0 return the_thread_queue->sync_state; 48432: 202c 0030 movel %a4@(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; 48436: 2082 movel %d2,%a0@ return the_thread_queue->sync_state; } 48438: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 4843c: 4e5e unlk %fp 4843e: 4e75 rts if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 48440: 46c4 movew %d4,%sr the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48442: 4284 clrl %d4 48444: 1839 0005 d9a2 moveb 5d9a2 ,%d4 _ISR_Disable( level ); 4844a: 2003 movel %d3,%d0 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 4844c: 2244 moveal %d4,%a1 4844e: 5289 addql #1,%a1 _ISR_Disable( level ); 48450: 40c4 movew %sr,%d4 48452: 8084 orl %d4,%d0 48454: 46c0 movew %d0,%sr search_thread = (Thread_Control *) header->last; 48456: 206a 0008 moveal %a2@(8),%a0 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 4845a: b5c8 cmpal %a0,%a2 4845c: 6720 beqs 4847e <_Thread_queue_Enqueue_priority+0xda> search_priority = search_thread->current_priority; 4845e: 2268 0014 moveal %a0@(20),%a1 if ( priority >= search_priority ) 48462: b3c1 cmpal %d1,%a1 48464: 6318 blss 4847e <_Thread_queue_Enqueue_priority+0xda> break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 48466: 2003 movel %d3,%d0 48468: 46c4 movew %d4,%sr 4846a: 8084 orl %d4,%d0 4846c: 46c0 movew %d0,%sr if ( !_States_Are_set( search_thread->current_state, block_state) ) { 4846e: 2002 movel %d2,%d0 48470: c0a8 0010 andl %a0@(16),%d0 48474: 67ca beqs 48440 <_Thread_queue_Enqueue_priority+0x9c> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 48476: 2068 0004 moveal %a0@(4),%a0 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 ) ) { 4847a: b5c8 cmpal %a0,%a2 4847c: 66e0 bnes 4845e <_Thread_queue_Enqueue_priority+0xba> 4847e: 2404 movel %d4,%d2 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 48480: 7001 moveq #1,%d0 48482: b0ac 0030 cmpl %a4@(48),%d0 48486: 66a6 bnes 4842e <_Thread_queue_Enqueue_priority+0x8a> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48488: 42ac 0030 clrl %a4@(48) if ( priority == search_priority ) 4848c: b3c1 cmpal %d1,%a1 4848e: 6756 beqs 484e6 <_Thread_queue_Enqueue_priority+0x142> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 48490: 2250 moveal %a0@,%a1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 48492: 2748 0004 movel %a0,%a3@(4) search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 48496: 2689 movel %a1,%a3@ the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 48498: 274c 0044 movel %a4,%a3@(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; 4849c: 208b movel %a3,%a0@ next_node->previous = the_node; 4849e: 234b 0004 movel %a3,%a1@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 484a2: 46c4 movew %d4,%sr * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 484a4: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 484a8: 4e5e unlk %fp 484aa: 4e75 rts if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 484ac: 46c3 movew %d3,%sr <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 484ae: 2004 movel %d4,%d0 <== NOT EXECUTED 484b0: 40c3 movew %sr,%d3 <== NOT EXECUTED 484b2: 8083 orl %d3,%d0 <== NOT EXECUTED 484b4: 46c0 movew %d0,%sr <== NOT EXECUTED search_thread = (Thread_Control *) header->first; 484b6: 2052 moveal %a2@,%a0 <== NOT EXECUTED while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 484b8: ba88 cmpl %a0,%d5 <== NOT EXECUTED 484ba: 6600 ff46 bnew 48402 <_Thread_queue_Enqueue_priority+0x5e> <== NOT EXECUTED 484be: 604a bras 4850a <_Thread_queue_Enqueue_priority+0x166> <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 484c0: 42ac 0030 clrl %a4@(48) if ( priority == search_priority ) 484c4: b3c1 cmpal %d1,%a1 484c6: 671e beqs 484e6 <_Thread_queue_Enqueue_priority+0x142> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 484c8: 2268 0004 moveal %a0@(4),%a1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 484cc: 2688 movel %a0,%a3@ the_node->previous = previous_node; 484ce: 2749 0004 movel %a1,%a3@(4) previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 484d2: 274c 0044 movel %a4,%a3@(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; 484d6: 228b movel %a3,%a1@ search_node->previous = the_node; 484d8: 214b 0004 movel %a3,%a0@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 484dc: 46c3 movew %d3,%sr * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 484de: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 484e2: 4e5e unlk %fp 484e4: 4e75 rts 484e6: 41e8 003c lea %a0@(60),%a0 _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; 484ea: 2268 0004 moveal %a0@(4),%a1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 484ee: 2688 movel %a0,%a3@ the_node->previous = previous_node; 484f0: 2749 0004 movel %a1,%a3@(4) previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 484f4: 274c 0044 movel %a4,%a3@(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; 484f8: 228b movel %a3,%a1@ search_node->previous = the_node; 484fa: 214b 0004 movel %a3,%a0@(4) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 484fe: 46c2 movew %d2,%sr 48500: 7001 moveq #1,%d0 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48502: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 48506: 4e5e unlk %fp 48508: 4e75 rts 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 ) ) { 4850a: 2403 movel %d3,%d2 4850c: 327c ffff moveaw #-1,%a1 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48510: 7001 moveq #1,%d0 48512: b0ac 0030 cmpl %a4@(48),%d0 48516: 6600 ff16 bnew 4842e <_Thread_queue_Enqueue_priority+0x8a> 4851a: 60a4 bras 484c0 <_Thread_queue_Enqueue_priority+0x11c> 000485f4 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 485f4: 4e56 fff0 linkw %fp,#-16 485f8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 485fc: 246e 0008 moveal %fp@(8),%a2 48600: 266e 000c moveal %fp@(12),%a3 /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) 48604: 4a8a tstl %a2 48606: 6708 beqs 48610 <_Thread_queue_Requeue+0x1c> /* * If queueing by FIFO, there is nothing to do. This only applies to * priority blocking discipline. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 48608: 7001 moveq #1,%d0 4860a: b0aa 0034 cmpl %a2@(52),%d0 4860e: 670a beqs 4861a <_Thread_queue_Requeue+0x26> _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } 48610: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 48616: 4e5e unlk %fp <== NOT EXECUTED 48618: 4e75 rts <== NOT EXECUTED if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 4861a: 303c 0700 movew #1792,%d0 4861e: 40c2 movew %sr,%d2 48620: 8082 orl %d2,%d0 48622: 46c0 movew %d0,%sr if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 48624: 202b 0010 movel %a3@(16),%d0 48628: 0280 0003 bee0 andil #245472,%d0 4862e: 660c bnes 4863c <_Thread_queue_Requeue+0x48> _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); 48630: 46c2 movew %d2,%sr <== NOT EXECUTED } } 48632: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 48638: 4e5e unlk %fp 4863a: 4e75 rts ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); 4863c: 4878 0001 pea 1 48640: 7001 moveq #1,%d0 48642: 2f0b movel %a3,%sp@- 48644: 2540 0030 movel %d0,%a2@(48) 48648: 2f0a movel %a2,%sp@- 4864a: 4eb9 0004 c308 jsr 4c308 <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 48650: 486e fffc pea %fp@(-4) 48654: 2f0b movel %a3,%sp@- 48656: 2f0a movel %a2,%sp@- 48658: 4eb9 0004 83a4 jsr 483a4 <_Thread_queue_Enqueue_priority> 4865e: 4fef 0018 lea %sp@(24),%sp } _ISR_Enable( level ); 48662: 46c2 movew %d2,%sr 48664: 60cc bras 48632 <_Thread_queue_Requeue+0x3e> ... 00058ce8 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 58ce8: 4e56 ffb0 linkw %fp,#-80 58cec: 41ee ffec lea %fp@(-20),%a0 58cf0: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 58cf4: 246e 0008 moveal %fp@(8),%a2 58cf8: 2c0e movel %fp,%d6 58cfa: 260e movel %fp,%d3 58cfc: 5186 subql #8,%d6 58cfe: 0683 ffff ffe8 addil #-24,%d3 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 58d04: 240a movel %a2,%d2 /* * 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 ); 58d06: 2a0a movel %a2,%d5 58d08: 4bf9 0005 cf94 lea 5cf94 <_Watchdog_Adjust_to_chain>,%a5 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 58d0e: 0682 0000 0030 addil #48,%d2 /* * 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 ); 58d14: 0685 0000 0068 addil #104,%d5 58d1a: 47f9 0005 97a4 lea 597a4 <_Chain_Get>,%a3 58d20: 49f9 0005 d024 lea 5d024 <_Watchdog_Insert>,%a4 * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 58d26: 283c 0000 0700 movel #1792,%d4 58d2c: 2d48 ffd8 movel %a0,%fp@(-40) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 58d30: 41ea 0008 lea %a2@(8),%a0 58d34: 2d48 ffe0 movel %a0,%fp@(-32) static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 58d38: 41ea 0040 lea %a2@(64),%a0 58d3c: 2d48 ffe4 movel %a0,%fp@(-28) Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 58d40: 41ee fff4 lea %fp@(-12),%a0 58d44: 2d48 fffc movel %a0,%fp@(-4) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 58d48: 41ee ffec lea %fp@(-20),%a0 58d4c: 2d46 fff4 movel %d6,%fp@(-12) the_chain->permanent_null = NULL; 58d50: 42ae fff8 clrl %fp@(-8) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 58d54: 2d48 ffe8 movel %a0,%fp@(-24) the_chain->permanent_null = NULL; 58d58: 42ae ffec clrl %fp@(-20) the_chain->last = _Chain_Head(the_chain); 58d5c: 2d43 fff0 movel %d3,%fp@(-16) { /* * 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; 58d60: 41ee fff4 lea %fp@(-12),%a0 58d64: 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; 58d68: 2039 0007 e38c movel 7e38c <_Watchdog_Ticks_since_boot>,%d0 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 58d6e: 222a 003c movel %a2@(60),%d1 watchdogs->last_snapshot = snapshot; 58d72: 2540 003c movel %d0,%a2@(60) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 58d76: 9081 subl %d1,%d0 58d78: 2f03 movel %d3,%sp@- 58d7a: 2f00 movel %d0,%sp@- 58d7c: 2f02 movel %d2,%sp@- 58d7e: 4e95 jsr %a5@ static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 58d80: 2039 0007 e2da movel 7e2da <_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 ) { 58d86: 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; 58d8a: 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 ) { 58d8e: b280 cmpl %d0,%d1 58d90: 6500 0086 bcsw 58e18 <_Timer_server_Body+0x130> * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { 58d94: b280 cmpl %d0,%d1 58d96: 6200 00a4 bhiw 58e3c <_Timer_server_Body+0x154> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 58d9a: 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 ); 58d9e: 202a 0078 movel %a2@(120),%d0 58da2: 2f00 movel %d0,%sp@- 58da4: 4e93 jsr %a3@ if ( timer == NULL ) { 58da6: 588f addql #4,%sp 58da8: 4a80 tstl %d0 58daa: 672e beqs 58dda <_Timer_server_Body+0xf2> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 58dac: 2040 moveal %d0,%a0 <== NOT EXECUTED 58dae: 7e01 moveq #1,%d7 <== NOT EXECUTED 58db0: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED 58db4: be81 cmpl %d1,%d7 <== NOT EXECUTED 58db6: 6700 00a8 beqw 58e60 <_Timer_server_Body+0x178> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 58dba: 7e03 moveq #3,%d7 <== NOT EXECUTED 58dbc: be81 cmpl %d1,%d7 <== NOT EXECUTED 58dbe: 66de bnes 58d9e <_Timer_server_Body+0xb6> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 58dc0: 2040 moveal %d0,%a0 <== NOT EXECUTED 58dc2: 4868 0010 pea %a0@(16) <== NOT EXECUTED 58dc6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 58dc8: 4e94 jsr %a4@ <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 58dca: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED ) { 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 ); 58dce: 508f addql #8,%sp <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 58dd0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 58dd2: 4e93 jsr %a3@ <== NOT EXECUTED if ( timer == NULL ) { 58dd4: 588f addql #4,%sp <== NOT EXECUTED 58dd6: 4a80 tstl %d0 <== NOT EXECUTED 58dd8: 66d2 bnes 58dac <_Timer_server_Body+0xc4> <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 58dda: 2004 movel %d4,%d0 58ddc: 40c1 movew %sr,%d1 58dde: 8081 orl %d1,%d0 58de0: 46c0 movew %d0,%sr if ( _Chain_Is_empty( insert_chain ) ) { 58de2: bcae fff4 cmpl %fp@(-12),%d6 58de6: 6700 0086 beqw 58e6e <_Timer_server_Body+0x186> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 58dea: 46c1 movew %d1,%sr <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 58dec: 2039 0007 e38c movel 7e38c <_Watchdog_Ticks_since_boot>,%d0 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 58df2: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; 58df6: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 58dfa: 9081 subl %d1,%d0 <== NOT EXECUTED 58dfc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 58dfe: 2f00 movel %d0,%sp@- <== NOT EXECUTED 58e00: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58e02: 4e95 jsr %a5@ <== NOT EXECUTED static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 58e04: 2039 0007 e2da movel 7e2da <_TOD_Now>,%d0 <== NOT EXECUTED /* * 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 ) { 58e0a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 58e0e: 222a 0074 movel %a2@(116),%d1 <== NOT EXECUTED /* * 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 ) { 58e12: b280 cmpl %d0,%d1 <== NOT EXECUTED 58e14: 6400 ff7e bccw 58d94 <_Timer_server_Body+0xac> <== NOT EXECUTED /* * 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 ); 58e18: 2f03 movel %d3,%sp@- 58e1a: 2e00 movel %d0,%d7 58e1c: 9e81 subl %d1,%d7 58e1e: 2f07 movel %d7,%sp@- 58e20: 2d40 ffdc movel %d0,%fp@(-36) 58e24: 2f05 movel %d5,%sp@- 58e26: 4eb9 0005 cf94 jsr 5cf94 <_Watchdog_Adjust_to_chain> 58e2c: 202e ffdc movel %fp@(-36),%d0 58e30: 4fef 000c lea %sp@(12),%sp */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 58e34: 2540 0074 movel %d0,%a2@(116) 58e38: 6000 ff64 braw 58d9e <_Timer_server_Body+0xb6> /* * 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 ); 58e3c: 9280 subl %d0,%d1 58e3e: 2f01 movel %d1,%sp@- 58e40: 4878 0001 pea 1 58e44: 2d40 ffdc movel %d0,%fp@(-36) 58e48: 2f05 movel %d5,%sp@- 58e4a: 4eb9 0005 cf00 jsr 5cf00 <_Watchdog_Adjust> 58e50: 202e ffdc movel %fp@(-36),%d0 58e54: 4fef 000c lea %sp@(12),%sp } watchdogs->last_snapshot = snapshot; 58e58: 2540 0074 movel %d0,%a2@(116) 58e5c: 6000 ff40 braw 58d9e <_Timer_server_Body+0xb6> Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 58e60: 4868 0010 pea %a0@(16) <== NOT EXECUTED 58e64: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58e66: 4e94 jsr %a4@ <== NOT EXECUTED 58e68: 508f addql #8,%sp <== NOT EXECUTED 58e6a: 6000 ff32 braw 58d9e <_Timer_server_Body+0xb6> <== NOT EXECUTED */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 58e6e: 42aa 0078 clrl %a2@(120) _ISR_Enable( level ); 58e72: 46c1 movew %d1,%sr _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 ) ) { 58e74: 202e ffd8 movel %fp@(-40),%d0 58e78: b0ae ffe8 cmpl %fp@(-24),%d0 58e7c: 6752 beqs 58ed0 <_Timer_server_Body+0x1e8> /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 58e7e: 2204 movel %d4,%d1 58e80: 40c0 movew %sr,%d0 58e82: 8280 orl %d0,%d1 58e84: 46c1 movew %d1,%sr */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 58e86: 206e ffe8 moveal %fp@(-24),%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 58e8a: b1ee ffd8 cmpal %fp@(-40),%a0 58e8e: 6732 beqs 58ec2 <_Timer_server_Body+0x1da> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 58e90: 2250 moveal %a0@,%a1 the_chain->first = new_first; 58e92: 2d49 ffe8 movel %a1,%fp@(-24) watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 58e96: 42a8 0008 clrl %a0@(8) new_first->previous = _Chain_Head(the_chain); 58e9a: 2343 0004 movel %d3,%a1@(4) _ISR_Enable( level ); 58e9e: 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 ); 58ea0: 2f28 0024 movel %a0@(36),%sp@- 58ea4: 2f28 0020 movel %a0@(32),%sp@- 58ea8: 2068 001c moveal %a0@(28),%a0 58eac: 4e90 jsr %a0@ } 58eae: 508f addql #8,%sp /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 58eb0: 2204 movel %d4,%d1 58eb2: 40c0 movew %sr,%d0 58eb4: 8280 orl %d0,%d1 58eb6: 46c1 movew %d1,%sr */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 58eb8: 206e ffe8 moveal %fp@(-24),%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 58ebc: b1ee ffd8 cmpal %fp@(-40),%a0 58ec0: 66ce bnes 58e90 <_Timer_server_Body+0x1a8> watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 58ec2: 46c0 movew %d0,%sr { /* * 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; 58ec4: 41ee fff4 lea %fp@(-12),%a0 58ec8: 2548 0078 movel %a0,%a2@(120) 58ecc: 6000 fe9a braw 58d68 <_Timer_server_Body+0x80> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 58ed0: 4207 clrb %d7 58ed2: 1547 007c moveb %d7,%a2@(124) 58ed6: 2039 0007 e248 movel 7e248 <_Thread_Dispatch_disable_level>,%d0 58edc: 5280 addql #1,%d0 58ede: 23c0 0007 e248 movel %d0,7e248 <_Thread_Dispatch_disable_level> /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 58ee4: 4878 0008 pea 8 58ee8: 2f12 movel %a2@,%sp@- 58eea: 4eb9 0005 c618 jsr 5c618 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 58ef0: 2f0a movel %a2,%sp@- 58ef2: 4eba fd1c jsr %pc@(58c10 <_Timer_server_Reset_interval_system_watchdog>) _Timer_server_Reset_tod_system_watchdog( ts ); 58ef6: 2f0a movel %a2,%sp@- 58ef8: 4eba fd80 jsr %pc@(58c7a <_Timer_server_Reset_tod_system_watchdog>) _Thread_Enable_dispatch(); 58efc: 4eb9 0005 bb58 jsr 5bb58 <_Thread_Enable_dispatch> ts->active = true; 58f02: 7001 moveq #1,%d0 58f04: 1540 007c moveb %d0,%a2@(124) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 58f08: 2f2e ffe0 movel %fp@(-32),%sp@- 58f0c: 4eb9 0005 d16c jsr 5d16c <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 58f12: 2f2e ffe4 movel %fp@(-28),%sp@- 58f16: 4eb9 0005 d16c jsr 5d16c <_Watchdog_Remove> 58f1c: 4fef 0018 lea %sp@(24),%sp 58f20: 6000 fe3e braw 58d60 <_Timer_server_Body+0x78> 00058f24 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 58f24: 4e56 fff0 linkw %fp,#-16 58f28: 206e 000c moveal %fp@(12),%a0 58f2c: 48d7 041c moveml %d2-%d4/%a2,%sp@ 58f30: 246e 0008 moveal %fp@(8),%a2 if ( ts->insert_chain == NULL ) { 58f34: 202a 0078 movel %a2@(120),%d0 58f38: 671a beqs 58f54 <_Timer_server_Schedule_operation_method+0x30> * 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 ); 58f3a: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 58f3e: 2d48 000c movel %a0,%fp@(12) <== NOT EXECUTED } } 58f42: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 58f48: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } 58f4c: 4e5e unlk %fp <== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 58f4e: 4ef9 0005 976c jmp 5976c <_Chain_Append> <== NOT EXECUTED 58f54: 2039 0007 e248 movel 7e248 <_Thread_Dispatch_disable_level>,%d0 58f5a: 5280 addql #1,%d0 58f5c: 23c0 0007 e248 movel %d0,7e248 <_Thread_Dispatch_disable_level> * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 58f62: 2028 0038 movel %a0@(56),%d0 58f66: 7201 moveq #1,%d1 58f68: b280 cmpl %d0,%d1 58f6a: 6700 0088 beqw 58ff4 <_Timer_server_Schedule_operation_method+0xd0> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); if ( !ts->active ) { _Timer_server_Reset_interval_system_watchdog( ts ); } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 58f6e: 7203 moveq #3,%d1 58f70: b280 cmpl %d0,%d1 58f72: 670e beqs 58f82 <_Timer_server_Schedule_operation_method+0x5e> * 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 ); } } 58f74: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 58f7a: 4e5e unlk %fp if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 58f7c: 4ef9 0005 bb58 jmp 5bb58 <_Thread_Enable_dispatch> } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 58f82: 203c 0000 0700 movel #1792,%d0 58f88: 40c2 movew %sr,%d2 58f8a: 8082 orl %d2,%d0 58f8c: 46c0 movew %d0,%sr */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 58f8e: 260a movel %a2,%d3 58f90: 0683 0000 006c addil #108,%d3 snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 58f96: 2039 0007 e2da movel 7e2da <_TOD_Now>,%d0 last_snapshot = ts->TOD_watchdogs.last_snapshot; 58f9c: 222a 0074 movel %a2@(116),%d1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 58fa0: 226a 0068 moveal %a2@(104),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 58fa4: b689 cmpl %a1,%d3 58fa6: 671a beqs 58fc2 <_Timer_server_Schedule_operation_method+0x9e> if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; 58fa8: 2629 0010 movel %a1@(16),%d3 if ( snapshot > last_snapshot ) { 58fac: b280 cmpl %d0,%d1 58fae: 6400 00b8 bccw 59068 <_Timer_server_Schedule_operation_method+0x144> /* * We advanced in time. */ delta = snapshot - last_snapshot; 58fb2: 2800 movel %d0,%d4 58fb4: 9881 subl %d1,%d4 if (delta_interval > delta) { 58fb6: b883 cmpl %d3,%d4 58fb8: 6500 00ba bcsw 59074 <_Timer_server_Schedule_operation_method+0x150> 58fbc: 4281 clrl %d1 <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; 58fbe: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED } ts->TOD_watchdogs.last_snapshot = snapshot; 58fc2: 2540 0074 movel %d0,%a2@(116) _ISR_Enable( level ); 58fc6: 46c2 movew %d2,%sr _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 58fc8: 4868 0010 pea %a0@(16) 58fcc: 486a 0068 pea %a2@(104) 58fd0: 4eb9 0005 d024 jsr 5d024 <_Watchdog_Insert> if ( !ts->active ) { 58fd6: 508f addql #8,%sp 58fd8: 102a 007c moveb %a2@(124),%d0 58fdc: 6696 bnes 58f74 <_Timer_server_Schedule_operation_method+0x50> _Timer_server_Reset_tod_system_watchdog( ts ); 58fde: 2f0a movel %a2,%sp@- 58fe0: 4eba fc98 jsr %pc@(58c7a <_Timer_server_Reset_tod_system_watchdog>) 58fe4: 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 ); } } 58fe6: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 58fec: 4e5e unlk %fp if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 58fee: 4ef9 0005 bb58 jmp 5bb58 <_Thread_Enable_dispatch> if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 58ff4: 203c 0000 0700 movel #1792,%d0 58ffa: 40c3 movew %sr,%d3 58ffc: 8083 orl %d3,%d0 58ffe: 46c0 movew %d0,%sr snapshot = _Watchdog_Ticks_since_boot; 59000: 2039 0007 e38c movel 7e38c <_Watchdog_Ticks_since_boot>,%d0 59006: 240a movel %a2,%d2 59008: 0682 0000 0034 addil #52,%d2 last_snapshot = ts->Interval_watchdogs.last_snapshot; 5900e: 222a 003c movel %a2@(60),%d1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 59012: 226a 0030 moveal %a2@(48),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 59016: b489 cmpl %a1,%d2 59018: 6712 beqs 5902c <_Timer_server_Schedule_operation_method+0x108> first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; 5901a: 2800 movel %d0,%d4 5901c: 9881 subl %d1,%d4 delta_interval = first_watchdog->delta_interval; 5901e: 2429 0010 movel %a1@(16),%d2 if (delta_interval > delta) { 59022: b484 cmpl %d4,%d2 59024: 623a bhis 59060 <_Timer_server_Schedule_operation_method+0x13c> 59026: 4282 clrl %d2 delta_interval -= delta; } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 59028: 2342 0010 movel %d2,%a1@(16) } ts->Interval_watchdogs.last_snapshot = snapshot; 5902c: 2540 003c movel %d0,%a2@(60) _ISR_Enable( level ); 59030: 46c3 movew %d3,%sr _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 59032: 4868 0010 pea %a0@(16) 59036: 486a 0030 pea %a2@(48) 5903a: 4eb9 0005 d024 jsr 5d024 <_Watchdog_Insert> if ( !ts->active ) { 59040: 508f addql #8,%sp 59042: 102a 007c moveb %a2@(124),%d0 59046: 6600 ff2c bnew 58f74 <_Timer_server_Schedule_operation_method+0x50> _Timer_server_Reset_interval_system_watchdog( ts ); 5904a: 2f0a movel %a2,%sp@- 5904c: 4eba fbc2 jsr %pc@(58c10 <_Timer_server_Reset_interval_system_watchdog>) 59050: 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 ); } } 59052: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 59058: 4e5e unlk %fp if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 5905a: 4ef9 0005 bb58 jmp 5bb58 <_Thread_Enable_dispatch> */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { delta_interval -= delta; 59060: 9484 subl %d4,%d2 } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 59062: 2342 0010 movel %d2,%a1@(16) 59066: 60c4 bras 5902c <_Timer_server_Schedule_operation_method+0x108> } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 59068: d283 addl %d3,%d1 delta_interval += delta; 5906a: 9280 subl %d0,%d1 } first_watchdog->delta_interval = delta_interval; 5906c: 2341 0010 movel %d1,%a1@(16) 59070: 6000 ff50 braw 58fc2 <_Timer_server_Schedule_operation_method+0x9e> /* * We advanced in time. */ delta = snapshot - last_snapshot; if (delta_interval > delta) { delta_interval -= delta; 59074: 9684 subl %d4,%d3 59076: 2203 movel %d3,%d1 * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; 59078: 2341 0010 movel %d1,%a1@(16) 5907c: 6000 ff44 braw 58fc2 <_Timer_server_Schedule_operation_method+0x9e> 00042e0a <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 42e0a: 4e56 0000 linkw %fp,#0 42e0e: 4eb9 0005 be2c jsr 5be2c <_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(); 42e14: 4eb9 0004 2da4 jsr 42da4 rtems_shutdown_executive(status); 42e1a: 2f2e 0008 movel %fp@(8),%sp@- 42e1e: 4eb9 0004 63fc jsr 463fc 42e24: 588f addql #4,%sp <== NOT EXECUTED 42e26: 60fe bras 42e26 <_exit+0x1c> <== NOT EXECUTED 0007ab30 <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) { 7ab30: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 7ab34: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 7ab38: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return fcntl( fd, cmd, arg ); 7ab3c: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 7ab42: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 7ab46: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 7ab4a: 4e5e unlk %fp <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 7ab4c: 4ef9 0007 a90c jmp 7a90c <== NOT EXECUTED ... 0004d6d2 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 4d6d2: 7001 moveq #1,%d0 <== NOT EXECUTED #include pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { 4d6d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpid(); } 4d6d8: 4e5e unlk %fp <== NOT EXECUTED 4d6da: 4e75 rts 0004a88c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 4a88c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return gettimeofday( tp, tzp ); } 4a890: 4e5e unlk %fp <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 4a892: 4ef9 0004 a828 jmp 4a828 <== NOT EXECUTED 000683ec <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { 683ec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 683f0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return link( existing, new ); 683f4: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 683fa: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 683fe: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 68400: 4ef9 0006 81d0 jmp 681d0 <== NOT EXECUTED ... 00068690 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 68690: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 68694: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 68698: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 6869e: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 686a2: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 686a4: 4ef9 0006 85ac jmp 685ac <== NOT EXECUTED ... 0005b968 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { 5b968: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5b96c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return realloc( ptr, size ); 5b970: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 5b976: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 5b97a: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 5b97c: 4ef9 0005 b9c4 jmp 5b9c4 <== NOT EXECUTED ... 00098020 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 98020: 4e56 ffa0 linkw %fp,#-96 <== NOT EXECUTED 98024: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED 98028: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 9802c: 2f0a movel %a2,%sp@- <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 9802e: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 98032: 4eb9 0004 75d0 jsr 475d0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 98038: 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 ); 9803a: 2400 movel %d0,%d2 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 9803c: 6600 0338 bnew 98376 <_rename_r+0x356> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 98040: 762f moveq #47,%d3 <== NOT EXECUTED 98042: 1212 moveb %a2@,%d1 <== NOT EXECUTED 98044: 1001 moveb %d1,%d0 <== NOT EXECUTED 98046: 49c0 extbl %d0 <== NOT EXECUTED 98048: b680 cmpl %d0,%d3 <== NOT EXECUTED 9804a: 670e beqs 9805a <_rename_r+0x3a> <== NOT EXECUTED 9804c: 163c 005c moveb #92,%d3 <== NOT EXECUTED 98050: b680 cmpl %d0,%d3 <== NOT EXECUTED 98052: 6706 beqs 9805a <_rename_r+0x3a> <== NOT EXECUTED 98054: 4a01 tstb %d1 <== NOT EXECUTED 98056: 6600 01ac bnew 98204 <_rename_r+0x1e4> <== NOT EXECUTED 9805a: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 98060: 47ee ffd4 lea %fp@(-44),%a3 <== NOT EXECUTED 98064: 220e movel %fp,%d1 <== NOT EXECUTED 98066: 0681 ffff ffd8 addil #-40,%d1 <== NOT EXECUTED 9806c: 2841 moveal %d1,%a4 <== NOT EXECUTED 9806e: 200e movel %fp,%d0 <== NOT EXECUTED 98070: 0680 ffff ffdc addil #-36,%d0 <== NOT EXECUTED 98076: 4bee ffe0 lea %fp@(-32),%a5 <== NOT EXECUTED 9807a: 43ee ffe4 lea %fp@(-28),%a1 <== NOT EXECUTED 9807e: 26a8 0018 movel %a0@(24),%a3@ <== NOT EXECUTED 98082: 28a8 001c movel %a0@(28),%a4@ <== NOT EXECUTED 98086: 2840 moveal %d0,%a4 <== NOT EXECUTED 98088: 28a8 0020 movel %a0@(32),%a4@ <== NOT EXECUTED 9808c: 2aa8 0024 movel %a0@(36),%a5@ <== NOT EXECUTED 98090: 22a8 0028 movel %a0@(40),%a1@ <== NOT EXECUTED 98094: 4204 clrb %d4 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 98096: 2041 moveal %d1,%a0 <== NOT EXECUTED 98098: 2840 moveal %d0,%a4 <== NOT EXECUTED name = old + old_parent_pathlen; 9809a: d48a addl %a2,%d2 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 9809c: 45f9 0008 712c lea 8712c ,%a2 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 980a2: 260e movel %fp,%d3 <== NOT EXECUTED 980a4: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 980aa: 2d50 ffec movel %a0@,%fp@(-20) <== NOT EXECUTED 980ae: 2d51 fff8 movel %a1@,%fp@(-8) <== NOT EXECUTED 980b2: 2d54 fff0 movel %a4@,%fp@(-16) <== NOT EXECUTED 980b6: 2d55 fff4 movel %a5@,%fp@(-12) <== NOT EXECUTED 980ba: 2d53 ffe8 movel %a3@,%fp@(-24) <== NOT EXECUTED name = old + old_parent_pathlen; 980be: 2d42 fffc movel %d2,%fp@(-4) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 980c2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 980c4: 4e92 jsr %a2@ <== NOT EXECUTED 980c6: 2e80 movel %d0,%sp@ <== NOT EXECUTED 980c8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 980ca: 4eb9 0004 7588 jsr 47588 <== NOT EXECUTED 980d0: d480 addl %d0,%d2 <== NOT EXECUTED 980d2: 2d42 fffc movel %d2,%fp@(-4) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 980d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 980d8: 4e92 jsr %a2@ <== NOT EXECUTED 980da: 4297 clrl %sp@ <== NOT EXECUTED 980dc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 980de: 42a7 clrl %sp@- <== NOT EXECUTED 980e0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 980e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 980e4: 4eb9 0004 7642 jsr 47642 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 980ea: 4fef 001c lea %sp@(28),%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 ), 980ee: 2400 movel %d0,%d2 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 980f0: 6600 01ac bnew 9829e <_rename_r+0x27e> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 980f4: 2245 moveal %d5,%a1 <== NOT EXECUTED 980f6: 742f moveq #47,%d2 <== NOT EXECUTED 980f8: 1211 moveb %a1@,%d1 <== NOT EXECUTED 980fa: 1001 moveb %d1,%d0 <== NOT EXECUTED 980fc: 49c0 extbl %d0 <== NOT EXECUTED 980fe: b480 cmpl %d0,%d2 <== NOT EXECUTED 98100: 6700 00d6 beqw 981d8 <_rename_r+0x1b8> <== NOT EXECUTED 98104: 143c 005c moveb #92,%d2 <== NOT EXECUTED 98108: b480 cmpl %d0,%d2 <== NOT EXECUTED 9810a: 6700 00cc beqw 981d8 <_rename_r+0x1b8> <== NOT EXECUTED 9810e: 4a01 tstb %d1 <== NOT EXECUTED 98110: 6700 00c6 beqw 981d8 <_rename_r+0x1b8> <== NOT EXECUTED 98114: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 9811a: 45ee ffc0 lea %fp@(-64),%a2 <== NOT EXECUTED 9811e: 5888 addql #4,%a0 <== NOT EXECUTED 98120: 4280 clrl %d0 <== NOT EXECUTED 98122: 2498 movel %a0@+,%a2@ <== NOT EXECUTED 98124: 2d58 ffc4 movel %a0@+,%fp@(-60) <== NOT EXECUTED 98128: 2d58 ffc8 movel %a0@+,%fp@(-56) <== NOT EXECUTED 9812c: 2d58 ffcc movel %a0@+,%fp@(-52) <== NOT EXECUTED 98130: 2d50 ffd0 movel %a0@,%fp@(-48) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 98134: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 98138: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 9813c: 4a88 tstl %a0 <== NOT EXECUTED 9813e: 6700 01e8 beqw 98328 <_rename_r+0x308> <== 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 ); 98142: 486e fffc pea %fp@(-4) <== NOT EXECUTED 98146: 2245 moveal %d5,%a1 <== NOT EXECUTED 98148: 2f0a movel %a2,%sp@- <== NOT EXECUTED 9814a: 4871 0800 pea %a1@(00000000,%d0:l) <== NOT EXECUTED 9814e: 4e90 jsr %a0@ <== NOT EXECUTED if ( result != 0 ) { 98150: 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 ); 98154: 2400 movel %d0,%d2 <== NOT EXECUTED if ( result != 0 ) { 98156: 6600 017a bnew 982d2 <_rename_r+0x2b2> <== 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 ) { 9815a: 226e ffd0 moveal %fp@(-48),%a1 <== NOT EXECUTED 9815e: b3ee ffe4 cmpal %fp@(-28),%a1 <== NOT EXECUTED 98162: 6600 00d8 bnew 9823c <_rename_r+0x21c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { 98166: 226e ffcc moveal %fp@(-52),%a1 <== NOT EXECUTED 9816a: 2069 0040 moveal %a1@(64),%a0 <== NOT EXECUTED 9816e: 4a88 tstl %a0 <== NOT EXECUTED 98170: 6700 0240 beqw 983b2 <_rename_r+0x392> <== 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 ); 98174: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 98178: 2f0a movel %a2,%sp@- <== NOT EXECUTED 9817a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 9817c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 9817e: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 98180: 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 ); 98184: 2840 moveal %d0,%a4 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 98186: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 9818a: 4a88 tstl %a0 <== NOT EXECUTED 9818c: 670e beqs 9819c <_rename_r+0x17c> <== NOT EXECUTED 9818e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 98192: 4a88 tstl %a0 <== NOT EXECUTED 98194: 6706 beqs 9819c <_rename_r+0x17c> <== NOT EXECUTED 98196: 2f0a movel %a2,%sp@- <== NOT EXECUTED 98198: 4e90 jsr %a0@ <== NOT EXECUTED 9819a: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 9819c: 4a04 tstb %d4 <== NOT EXECUTED 9819e: 6716 beqs 981b6 <_rename_r+0x196> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 981a0: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 981a4: 4a88 tstl %a0 <== NOT EXECUTED 981a6: 670e beqs 981b6 <_rename_r+0x196> <== NOT EXECUTED 981a8: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 981ac: 4a88 tstl %a0 <== NOT EXECUTED 981ae: 6706 beqs 981b6 <_rename_r+0x196> <== NOT EXECUTED 981b0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 981b2: 4e90 jsr %a0@ <== NOT EXECUTED 981b4: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 981b6: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 981ba: 4a88 tstl %a0 <== NOT EXECUTED 981bc: 670e beqs 981cc <_rename_r+0x1ac> <== NOT EXECUTED 981be: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 981c2: 4a88 tstl %a0 <== NOT EXECUTED 981c4: 6706 beqs 981cc <_rename_r+0x1ac> <== NOT EXECUTED 981c6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 981c8: 4e90 jsr %a0@ <== NOT EXECUTED 981ca: 588f addql #4,%sp <== NOT EXECUTED return result; } 981cc: 200c movel %a4,%d0 <== NOT EXECUTED 981ce: 4cee 3c3c ffa0 moveml %fp@(-96),%d2-%d5/%a2-%a5 <== NOT EXECUTED 981d4: 4e5e unlk %fp <== NOT EXECUTED 981d6: 4e75 rts <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 981d8: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 981de: 45ee ffc0 lea %fp@(-64),%a2 <== NOT EXECUTED 981e2: 7001 moveq #1,%d0 <== NOT EXECUTED 981e4: 24a8 0018 movel %a0@(24),%a2@ <== NOT EXECUTED 981e8: 2d68 001c ffc4 movel %a0@(28),%fp@(-60) <== NOT EXECUTED 981ee: 2d68 0020 ffc8 movel %a0@(32),%fp@(-56) <== NOT EXECUTED 981f4: 2d68 0024 ffcc movel %a0@(36),%fp@(-52) <== NOT EXECUTED 981fa: 2d68 0028 ffd0 movel %a0@(40),%fp@(-48) <== NOT EXECUTED 98200: 6000 ff32 braw 98134 <_rename_r+0x114> <== NOT EXECUTED */ old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 98204: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 9820a: 47ee ffd4 lea %fp@(-44),%a3 <== NOT EXECUTED 9820e: 5888 addql #4,%a0 <== NOT EXECUTED 98210: 220e movel %fp,%d1 <== NOT EXECUTED 98212: 0681 ffff ffd8 addil #-40,%d1 <== NOT EXECUTED 98218: 2841 moveal %d1,%a4 <== NOT EXECUTED 9821a: 200e movel %fp,%d0 <== NOT EXECUTED 9821c: 0680 ffff ffdc addil #-36,%d0 <== NOT EXECUTED 98222: 4bee ffe0 lea %fp@(-32),%a5 <== NOT EXECUTED 98226: 43ee ffe4 lea %fp@(-28),%a1 <== NOT EXECUTED 9822a: 2698 movel %a0@+,%a3@ <== NOT EXECUTED 9822c: 2898 movel %a0@+,%a4@ <== NOT EXECUTED 9822e: 2840 moveal %d0,%a4 <== NOT EXECUTED 98230: 2898 movel %a0@+,%a4@ <== NOT EXECUTED 98232: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 98234: 2290 movel %a0@,%a1@ <== NOT EXECUTED 98236: 4204 clrb %d4 <== NOT EXECUTED 98238: 6000 fe5c braw 98096 <_rename_r+0x76> <== NOT EXECUTED * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { rtems_filesystem_freenode( &new_parent_loc ); 9823c: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 98240: 4a88 tstl %a0 <== NOT EXECUTED 98242: 670e beqs 98252 <_rename_r+0x232> <== NOT EXECUTED 98244: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 98248: 4a88 tstl %a0 <== NOT EXECUTED 9824a: 6706 beqs 98252 <_rename_r+0x232> <== NOT EXECUTED 9824c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 9824e: 4e90 jsr %a0@ <== NOT EXECUTED 98250: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 98252: 4a04 tstb %d4 <== NOT EXECUTED 98254: 6716 beqs 9826c <_rename_r+0x24c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 98256: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 9825a: 4a88 tstl %a0 <== NOT EXECUTED 9825c: 670e beqs 9826c <_rename_r+0x24c> <== NOT EXECUTED 9825e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 98262: 4a88 tstl %a0 <== NOT EXECUTED 98264: 6706 beqs 9826c <_rename_r+0x24c> <== NOT EXECUTED 98266: 2f0b movel %a3,%sp@- <== NOT EXECUTED 98268: 4e90 jsr %a0@ <== NOT EXECUTED 9826a: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 9826c: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 98270: 4a88 tstl %a0 <== NOT EXECUTED 98272: 670e beqs 98282 <_rename_r+0x262> <== NOT EXECUTED 98274: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 98278: 4a88 tstl %a0 <== NOT EXECUTED 9827a: 6706 beqs 98282 <_rename_r+0x262> <== NOT EXECUTED 9827c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 9827e: 4e90 jsr %a0@ <== NOT EXECUTED 98280: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 98282: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 98288: 387c ffff moveaw #-1,%a4 <== NOT EXECUTED 9828c: 2040 moveal %d0,%a0 <== NOT EXECUTED 9828e: 7012 moveq #18,%d0 <== NOT EXECUTED 98290: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 98292: 200c movel %a4,%d0 <== NOT EXECUTED 98294: 4cee 3c3c ffa0 moveml %fp@(-96),%d2-%d5/%a2-%a5 <== NOT EXECUTED 9829a: 4e5e unlk %fp <== NOT EXECUTED 9829c: 4e75 rts <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) 9829e: 4a04 tstb %d4 <== NOT EXECUTED 982a0: 6716 beqs 982b8 <_rename_r+0x298> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 982a2: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 982a6: 4a88 tstl %a0 <== NOT EXECUTED 982a8: 670e beqs 982b8 <_rename_r+0x298> <== NOT EXECUTED 982aa: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 982ae: 4a88 tstl %a0 <== NOT EXECUTED 982b0: 6706 beqs 982b8 <_rename_r+0x298> <== NOT EXECUTED 982b2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 982b4: 4e90 jsr %a0@ <== NOT EXECUTED 982b6: 588f addql #4,%sp <== NOT EXECUTED if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( result ); 982b8: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 982be: 387c ffff moveaw #-1,%a4 <== NOT EXECUTED 982c2: 2040 moveal %d0,%a0 <== NOT EXECUTED 982c4: 2082 movel %d2,%a0@ <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 982c6: 200c movel %a4,%d0 <== NOT EXECUTED 982c8: 4cee 3c3c ffa0 moveml %fp@(-96),%d2-%d5/%a2-%a5 <== NOT EXECUTED 982ce: 4e5e unlk %fp <== NOT EXECUTED 982d0: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); 982d2: 206e ffcc moveal %fp@(-52),%a0 <== NOT EXECUTED 982d6: 4a88 tstl %a0 <== NOT EXECUTED 982d8: 670e beqs 982e8 <_rename_r+0x2c8> <== NOT EXECUTED 982da: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 982de: 4a88 tstl %a0 <== NOT EXECUTED 982e0: 6706 beqs 982e8 <_rename_r+0x2c8> <== NOT EXECUTED 982e2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 982e4: 4e90 jsr %a0@ <== NOT EXECUTED 982e6: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 982e8: 4a04 tstb %d4 <== NOT EXECUTED 982ea: 6716 beqs 98302 <_rename_r+0x2e2> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 982ec: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 982f0: 4a88 tstl %a0 <== NOT EXECUTED 982f2: 670e beqs 98302 <_rename_r+0x2e2> <== NOT EXECUTED 982f4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 982f8: 4a88 tstl %a0 <== NOT EXECUTED 982fa: 6706 beqs 98302 <_rename_r+0x2e2> <== NOT EXECUTED 982fc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 982fe: 4e90 jsr %a0@ <== NOT EXECUTED 98300: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 98302: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 98306: 4a88 tstl %a0 <== NOT EXECUTED 98308: 67ae beqs 982b8 <_rename_r+0x298> <== NOT EXECUTED 9830a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 9830e: 4a88 tstl %a0 <== NOT EXECUTED 98310: 67a6 beqs 982b8 <_rename_r+0x298> <== NOT EXECUTED 98312: 2f03 movel %d3,%sp@- <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 98314: 387c ffff moveaw #-1,%a4 <== NOT EXECUTED result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 98318: 4e90 jsr %a0@ <== NOT EXECUTED 9831a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 9831c: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 98322: 2040 moveal %d0,%a0 <== NOT EXECUTED 98324: 2082 movel %d2,%a0@ <== NOT EXECUTED 98326: 609e bras 982c6 <_rename_r+0x2a6> <== NOT EXECUTED */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); if ( !new_parent_loc.ops->evalformake_h ) { if ( free_old_parentloc ) 98328: 4a04 tstb %d4 <== NOT EXECUTED 9832a: 6716 beqs 98342 <_rename_r+0x322> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 9832c: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 98330: 4a88 tstl %a0 <== NOT EXECUTED 98332: 670e beqs 98342 <_rename_r+0x322> <== NOT EXECUTED 98334: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 98338: 4a88 tstl %a0 <== NOT EXECUTED 9833a: 6706 beqs 98342 <_rename_r+0x322> <== NOT EXECUTED 9833c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 9833e: 4e90 jsr %a0@ <== NOT EXECUTED 98340: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 98342: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 98346: 4a88 tstl %a0 <== NOT EXECUTED 98348: 670e beqs 98358 <_rename_r+0x338> <== NOT EXECUTED 9834a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 9834e: 4a88 tstl %a0 <== NOT EXECUTED 98350: 6706 beqs 98358 <_rename_r+0x338> <== NOT EXECUTED 98352: 2f03 movel %d3,%sp@- <== NOT EXECUTED 98354: 4e90 jsr %a0@ <== NOT EXECUTED 98356: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 98358: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 9835e: 387c ffff moveaw #-1,%a4 <== NOT EXECUTED 98362: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 98364: 200c movel %a4,%d0 <== NOT EXECUTED 98366: 4cee 3c3c ffa0 moveml %fp@(-96),%d2-%d5/%a2-%a5 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 9836c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 98372: 4e5e unlk %fp <== NOT EXECUTED 98374: 4e75 rts <== NOT EXECUTED old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 98376: 42a7 clrl %sp@- <== NOT EXECUTED 98378: 47ee ffd4 lea %fp@(-44),%a3 <== NOT EXECUTED 9837c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 9837e: 4878 0002 pea 2 <== NOT EXECUTED 98382: 2f00 movel %d0,%sp@- <== NOT EXECUTED 98384: 2f0a movel %a2,%sp@- <== NOT EXECUTED 98386: 4eb9 0004 774c jsr 4774c <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 9838c: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 98390: 4a80 tstl %d0 <== NOT EXECUTED 98392: 667a bnes 9840e <_rename_r+0x3ee> <== NOT EXECUTED 98394: 220e movel %fp,%d1 <== NOT EXECUTED 98396: 200e movel %fp,%d0 <== NOT EXECUTED 98398: 0681 ffff ffd8 addil #-40,%d1 <== NOT EXECUTED 9839e: 0680 ffff ffdc addil #-36,%d0 <== NOT EXECUTED 983a4: 4bee ffe0 lea %fp@(-32),%a5 <== NOT EXECUTED 983a8: 43ee ffe4 lea %fp@(-28),%a1 <== NOT EXECUTED 983ac: 7801 moveq #1,%d4 <== NOT EXECUTED 983ae: 6000 fce6 braw 98096 <_rename_r+0x76> <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); 983b2: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 983b6: 4a88 tstl %a0 <== NOT EXECUTED 983b8: 6706 beqs 983c0 <_rename_r+0x3a0> <== NOT EXECUTED 983ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED 983bc: 4e90 jsr %a0@ <== NOT EXECUTED 983be: 588f addql #4,%sp <== NOT EXECUTED if ( free_old_parentloc ) 983c0: 4a04 tstb %d4 <== NOT EXECUTED 983c2: 6716 beqs 983da <_rename_r+0x3ba> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 983c4: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 983c8: 4a88 tstl %a0 <== NOT EXECUTED 983ca: 670e beqs 983da <_rename_r+0x3ba> <== NOT EXECUTED 983cc: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 983d0: 4a88 tstl %a0 <== NOT EXECUTED 983d2: 6706 beqs 983da <_rename_r+0x3ba> <== NOT EXECUTED 983d4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 983d6: 4e90 jsr %a0@ <== NOT EXECUTED 983d8: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 983da: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 983de: 4a88 tstl %a0 <== NOT EXECUTED 983e0: 670e beqs 983f0 <_rename_r+0x3d0> <== NOT EXECUTED 983e2: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 983e6: 4a88 tstl %a0 <== NOT EXECUTED 983e8: 6706 beqs 983f0 <_rename_r+0x3d0> <== NOT EXECUTED 983ea: 2f03 movel %d3,%sp@- <== NOT EXECUTED 983ec: 4e90 jsr %a0@ <== NOT EXECUTED 983ee: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 983f0: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 983f6: 387c ffff moveaw #-1,%a4 <== NOT EXECUTED 983fa: 2240 moveal %d0,%a1 <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 983fc: 200c movel %a4,%d0 <== NOT EXECUTED 983fe: 4cee 3c3c ffa0 moveml %fp@(-96),%d2-%d5/%a2-%a5 <== NOT EXECUTED if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 98404: 22bc 0000 0086 movel #134,%a1@ <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 9840a: 4e5e unlk %fp <== NOT EXECUTED 9840c: 4e75 rts <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 9840e: 387c ffff moveaw #-1,%a4 <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 98412: 200c movel %a4,%d0 <== NOT EXECUTED 98414: 4cee 3c3c ffa0 moveml %fp@(-96),%d2-%d5/%a2-%a5 <== NOT EXECUTED 9841a: 4e5e unlk %fp <== NOT EXECUTED 9841c: 4e75 rts <== NOT EXECUTED ... 00049016 <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 49016: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4901a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 4901e: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 49024: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 49028: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 4902a: 4ef9 0004 8f30 jmp 48f30 <== NOT EXECUTED 0004e81c <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { 4e81c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return unlink( path ); 4e820: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 4e826: 4e5e unlk %fp <== NOT EXECUTED int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 4e828: 4ef9 0004 e5b4 jmp 4e5b4 <== NOT EXECUTED ... 00067224 : #include int chdir( const char *pathname ) { 67224: 4e56 ffec linkw %fp,#-20 67228: 2f0a movel %a2,%sp@- /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 6722a: 45ee ffec lea %fp@(-20),%a2 #include int chdir( const char *pathname ) { 6722e: 2f02 movel %d2,%sp@- 67230: 242e 0008 movel %fp@(8),%d2 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 67234: 2f02 movel %d2,%sp@- 67236: 4eb9 0008 712c jsr 8712c /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 6723c: 7201 moveq #1,%d1 6723e: 2e81 movel %d1,%sp@ 67240: 2f0a movel %a2,%sp@- 67242: 4878 0001 pea 1 67246: 2f00 movel %d0,%sp@- 67248: 2f02 movel %d2,%sp@- 6724a: 4eb9 0004 774c jsr 4774c pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 67250: 4fef 0014 lea %sp@(20),%sp 67254: 4a80 tstl %d0 67256: 6660 bnes 672b8 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 67258: 226e fff8 moveal %fp@(-8),%a1 6725c: 2069 0010 moveal %a1@(16),%a0 67260: 4a88 tstl %a0 67262: 6700 0092 beqw 672f6 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 67266: 2f0a movel %a2,%sp@- 67268: 4e90 jsr %a0@ 6726a: 588f addql #4,%sp 6726c: 7201 moveq #1,%d1 6726e: b280 cmpl %d0,%d1 67270: 6654 bnes 672c6 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 67272: 2079 000a 21cc moveal a21cc ,%a0 67278: 2268 0010 moveal %a0@(16),%a1 6727c: 4a89 tstl %a1 6727e: 6716 beqs 67296 67280: 2269 001c moveal %a1@(28),%a1 67284: 4a89 tstl %a1 67286: 670e beqs 67296 67288: 4868 0004 pea %a0@(4) 6728c: 4e91 jsr %a1@ 6728e: 2079 000a 21cc moveal a21cc ,%a0 67294: 588f addql #4,%sp rtems_filesystem_current = loc; 67296: 5888 addql #4,%a0 67298: 4280 clrl %d0 6729a: 20d2 movel %a2@,%a0@+ 6729c: 20ee fff0 movel %fp@(-16),%a0@+ 672a0: 20ee fff4 movel %fp@(-12),%a0@+ 672a4: 20ee fff8 movel %fp@(-8),%a0@+ return 0; } 672a8: 242e ffe4 movel %fp@(-28),%d2 rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; 672ac: 20ae fffc movel %fp@(-4),%a0@ return 0; } 672b0: 246e ffe8 moveal %fp@(-24),%a2 672b4: 4e5e unlk %fp 672b6: 4e75 rts 672b8: 242e ffe4 movel %fp@(-28),%d2 * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 672bc: 70ff moveq #-1,%d0 rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 672be: 246e ffe8 moveal %fp@(-24),%a2 672c2: 4e5e unlk %fp 672c4: 4e75 rts rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 672c6: 206e fff8 moveal %fp@(-8),%a0 672ca: 4a88 tstl %a0 672cc: 670e beqs 672dc 672ce: 2068 001c moveal %a0@(28),%a0 672d2: 4a88 tstl %a0 672d4: 6706 beqs 672dc 672d6: 2f0a movel %a2,%sp@- 672d8: 4e90 jsr %a0@ 672da: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); 672dc: 4eb9 0008 1084 jsr 81084 <__errno> rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 672e2: 242e ffe4 movel %fp@(-28),%d2 rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); 672e6: 2040 moveal %d0,%a0 672e8: 7214 moveq #20,%d1 672ea: 70ff moveq #-1,%d0 rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 672ec: 246e ffe8 moveal %fp@(-24),%a2 672f0: 4e5e unlk %fp rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); 672f2: 2081 movel %d1,%a0@ rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 672f4: 4e75 rts /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 672f6: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 672fa: 4a88 tstl %a0 <== NOT EXECUTED 672fc: 6706 beqs 67304 <== NOT EXECUTED 672fe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 67300: 4e90 jsr %a0@ <== NOT EXECUTED 67302: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 67304: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 6730a: 242e ffe4 movel %fp@(-28),%d2 <== NOT EXECUTED * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 6730e: 2040 moveal %d0,%a0 <== NOT EXECUTED 67310: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 67312: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 67316: 4e5e unlk %fp <== NOT EXECUTED * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 67318: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 6731e: 4e75 rts 000471b8 : int chmod( const char *path, mode_t mode ) { 471b8: 4e56 ffec linkw %fp,#-20 471bc: 2f03 movel %d3,%sp@- 471be: 262e 0008 movel %fp@(8),%d3 471c2: 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 ); 471c4: 240e movel %fp,%d2 471c6: 0682 ffff ffec addil #-20,%d2 471cc: 2f03 movel %d3,%sp@- 471ce: 4eb9 0008 712c jsr 8712c 471d4: 7201 moveq #1,%d1 471d6: 2e81 movel %d1,%sp@ 471d8: 2f02 movel %d2,%sp@- 471da: 42a7 clrl %sp@- 471dc: 2f00 movel %d0,%sp@- 471de: 2f03 movel %d3,%sp@- 471e0: 4eb9 0004 774c jsr 4774c if ( status != 0 ) 471e6: 4fef 0014 lea %sp@(20),%sp 471ea: 4a80 tstl %d0 471ec: 6640 bnes 4722e return -1; if ( !loc.handlers ){ 471ee: 206e fff4 moveal %fp@(-12),%a0 471f2: 4a88 tstl %a0 471f4: 677c beqs 47272 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 471f6: 2068 001c moveal %a0@(28),%a0 471fa: 4a88 tstl %a0 471fc: 6740 beqs 4723e rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 471fe: 2f2e 000c movel %fp@(12),%sp@- 47202: 2f02 movel %d2,%sp@- 47204: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 47206: 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 ); 4720a: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 4720c: 508f addql #8,%sp 4720e: 4a88 tstl %a0 47210: 670e beqs 47220 47212: 2068 001c moveal %a0@(28),%a0 47216: 4a88 tstl %a0 47218: 6706 beqs 47220 4721a: 2f02 movel %d2,%sp@- 4721c: 4e90 jsr %a0@ 4721e: 588f addql #4,%sp return result; } 47220: 2003 movel %d3,%d0 47222: 242e ffe4 movel %fp@(-28),%d2 47226: 262e ffe8 movel %fp@(-24),%d3 4722a: 4e5e unlk %fp 4722c: 4e75 rts int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) 4722e: 76ff moveq #-1,%d3 result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 47230: 2003 movel %d3,%d0 47232: 242e ffe4 movel %fp@(-28),%d2 47236: 262e ffe8 movel %fp@(-24),%d3 4723a: 4e5e unlk %fp 4723c: 4e75 rts rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 4723e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 47242: 4a88 tstl %a0 <== NOT EXECUTED 47244: 670e beqs 47254 <== NOT EXECUTED 47246: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4724a: 4a88 tstl %a0 <== NOT EXECUTED 4724c: 6706 beqs 47254 <== NOT EXECUTED 4724e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47250: 4e90 jsr %a0@ <== NOT EXECUTED 47252: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 47254: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 4725a: 76ff moveq #-1,%d3 <== NOT EXECUTED 4725c: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 4725e: 2003 movel %d3,%d0 <== NOT EXECUTED 47260: 242e ffe4 movel %fp@(-28),%d2 <== NOT EXECUTED 47264: 262e ffe8 movel %fp@(-24),%d3 <== NOT EXECUTED 47268: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 4726a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 47270: 4e75 rts <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 47272: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 47276: 4a88 tstl %a0 <== NOT EXECUTED 47278: 670e beqs 47288 <== NOT EXECUTED 4727a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4727e: 4a88 tstl %a0 <== NOT EXECUTED 47280: 6706 beqs 47288 <== NOT EXECUTED 47282: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47284: 4e90 jsr %a0@ <== NOT EXECUTED 47286: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 47288: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 4728e: 76ff moveq #-1,%d3 <== NOT EXECUTED 47290: 2040 moveal %d0,%a0 <== NOT EXECUTED 47292: 7009 moveq #9,%d0 <== NOT EXECUTED 47294: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 47296: 2003 movel %d3,%d0 <== NOT EXECUTED 47298: 242e ffe4 movel %fp@(-28),%d2 <== NOT EXECUTED 4729c: 262e ffe8 movel %fp@(-24),%d3 <== NOT EXECUTED 472a0: 4e5e unlk %fp <== NOT EXECUTED 472a2: 4e75 rts 00067320 : int chown( const char *path, uid_t owner, gid_t group ) { 67320: 4e56 ffdc linkw %fp,#-36 67324: 48d7 003c moveml %d2-%d5,%sp@ 67328: 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 ) ) 6732c: 240e movel %fp,%d2 6732e: 0682 ffff ffec addil #-20,%d2 67334: 2f03 movel %d3,%sp@- int chown( const char *path, uid_t owner, gid_t group ) { 67336: 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 ) ) 6733a: 4eb9 0008 712c jsr 8712c 67340: 7201 moveq #1,%d1 67342: 2e81 movel %d1,%sp@ int chown( const char *path, uid_t owner, gid_t group ) { 67344: 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 ) ) 67348: 2f02 movel %d2,%sp@- 6734a: 42a7 clrl %sp@- 6734c: 2f00 movel %d0,%sp@- 6734e: 2f03 movel %d3,%sp@- 67350: 4eb9 0004 774c jsr 4774c 67356: 4fef 0014 lea %sp@(20),%sp 6735a: 4a80 tstl %d0 6735c: 6640 bnes 6739e return -1; if ( !loc.ops->chown_h ) { 6735e: 226e fff8 moveal %fp@(-8),%a1 67362: 2069 0018 moveal %a1@(24),%a0 67366: 4a88 tstl %a0 67368: 6742 beqs 673ac rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 6736a: 3f05 movew %d5,%sp@- 6736c: 4267 clrw %sp@- 6736e: 3f04 movew %d4,%sp@- 67370: 4267 clrw %sp@- 67372: 2f02 movel %d2,%sp@- 67374: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 67376: 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 ); 6737a: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 6737c: 4fef 000c lea %sp@(12),%sp 67380: 4a88 tstl %a0 67382: 670e beqs 67392 67384: 2068 001c moveal %a0@(28),%a0 67388: 4a88 tstl %a0 6738a: 6706 beqs 67392 6738c: 2f02 movel %d2,%sp@- 6738e: 4e90 jsr %a0@ 67390: 588f addql #4,%sp return result; } 67392: 2003 movel %d3,%d0 67394: 4cee 003c ffdc moveml %fp@(-36),%d2-%d5 6739a: 4e5e unlk %fp 6739c: 4e75 rts ) { rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 6739e: 76ff moveq #-1,%d3 result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 673a0: 2003 movel %d3,%d0 673a2: 4cee 003c ffdc moveml %fp@(-36),%d2-%d5 673a8: 4e5e unlk %fp 673aa: 4e75 rts if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 673ac: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 673b0: 4a88 tstl %a0 <== NOT EXECUTED 673b2: 6706 beqs 673ba <== NOT EXECUTED 673b4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 673b6: 4e90 jsr %a0@ <== NOT EXECUTED 673b8: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 673ba: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 673c0: 76ff moveq #-1,%d3 <== NOT EXECUTED 673c2: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 673c4: 2003 movel %d3,%d0 <== NOT EXECUTED 673c6: 4cee 003c ffdc moveml %fp@(-36),%d2-%d5 <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 673cc: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 673d2: 4e5e unlk %fp <== NOT EXECUTED 673d4: 4e75 rts <== NOT EXECUTED ... 000673d8 : #include int chroot( const char *pathname ) { 673d8: 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) { 673dc: 203c 000a 6bc8 movel #682952,%d0 #include int chroot( const char *pathname ) { 673e2: 2f0b movel %a3,%sp@- 673e4: 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) { 673e6: b0b9 000a 21cc cmpl a21cc ,%d0 673ec: 6700 0086 beqw 67474 rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); 673f0: 2f2e 0008 movel %fp@(8),%sp@- 673f4: 4eb9 0006 7224 jsr 67224 if (result) { 673fa: 588f addql #4,%sp 673fc: 4a80 tstl %d0 673fe: 6600 00a6 bnew 674a6 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 67402: 42a7 clrl %sp@- 67404: 45ee ffec lea %fp@(-20),%a2 67408: 2f0a movel %a2,%sp@- 6740a: 42a7 clrl %sp@- 6740c: 4878 0001 pea 1 67410: 4879 0009 b057 pea 9b057 67416: 4eb9 0004 774c jsr 4774c 6741c: 4fef 0014 lea %sp@(20),%sp 67420: 4a80 tstl %d0 67422: 6600 0082 bnew 674a6 /* 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); 67426: 2079 000a 21cc moveal a21cc ,%a0 6742c: 2268 0024 moveal %a0@(36),%a1 67430: 4a89 tstl %a1 67432: 6716 beqs 6744a 67434: 2269 001c moveal %a1@(28),%a1 67438: 4a89 tstl %a1 6743a: 670e beqs 6744a 6743c: 4868 0018 pea %a0@(24) 67440: 4e91 jsr %a1@ 67442: 2079 000a 21cc moveal a21cc ,%a0 67448: 588f addql #4,%sp rtems_filesystem_root = loc; 6744a: 2152 0018 movel %a2@,%a0@(24) 6744e: 4280 clrl %d0 67450: 216e fff0 001c movel %fp@(-16),%a0@(28) 67456: 216e fff4 0020 movel %fp@(-12),%a0@(32) 6745c: 216e fff8 0024 movel %fp@(-8),%a0@(36) return 0; } 67462: 246e ffe4 moveal %fp@(-28),%a2 67466: 266e ffe8 moveal %fp@(-24),%a3 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; 6746a: 216e fffc 0028 movel %fp@(-4),%a0@(40) return 0; } 67470: 4e5e unlk %fp 67472: 4e75 rts int result; rtems_filesystem_location_info_t loc; /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ 67474: 4eb9 0006 8910 jsr 68910 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 6747a: 203c 000a 6bc8 movel #682952,%d0 67480: b0b9 000a 21cc cmpl a21cc ,%d0 67486: 6600 ff68 bnew 673f0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 6748a: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 67490: 246e ffe4 moveal %fp@(-28),%a2 <== NOT EXECUTED /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); 67494: 2040 moveal %d0,%a0 <== NOT EXECUTED 67496: 70ff moveq #-1,%d0 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 67498: 266e ffe8 moveal %fp@(-24),%a3 <== NOT EXECUTED 6749c: 4e5e unlk %fp <== NOT EXECUTED /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); 6749e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 674a4: 4e75 rts <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 674a6: 45f9 0008 1084 lea 81084 <__errno>,%a2 <== NOT EXECUTED 674ac: 4e92 jsr %a2@ <== NOT EXECUTED 674ae: 2640 moveal %d0,%a3 <== NOT EXECUTED 674b0: 4e92 jsr %a2@ <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 674b2: 246e ffe4 moveal %fp@(-28),%a2 <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 674b6: 2040 moveal %d0,%a0 <== NOT EXECUTED 674b8: 70ff moveq #-1,%d0 <== NOT EXECUTED 674ba: 2690 movel %a0@,%a3@ <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 674bc: 266e ffe8 moveal %fp@(-24),%a3 <== NOT EXECUTED 674c0: 4e5e unlk %fp <== NOT EXECUTED 674c2: 4e75 rts 0004a5e8 : #include int close( int fd ) { 4a5e8: 4e56 0000 linkw %fp,#0 4a5ec: 202e 0008 movel %fp@(8),%d0 4a5f0: 2f0a movel %a2,%sp@- 4a5f2: 2f02 movel %d2,%sp@- rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 4a5f4: b0b9 0005 d8f4 cmpl 5d8f4 ,%d0 4a5fa: 645e bccs 4a65a iop = rtems_libio_iop(fd); 4a5fc: 2479 0005 eff4 moveal 5eff4 ,%a2 4a602: ed88 lsll #6,%d0 4a604: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 4a606: 202a 0014 movel %a2@(20),%d0 4a60a: 0280 0000 0100 andil #256,%d0 4a610: 6748 beqs 4a65a rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 4a612: 206a 003c moveal %a2@(60),%a0 4a616: 2068 0004 moveal %a0@(4),%a0 4a61a: 4a88 tstl %a0 4a61c: 6738 beqs 4a656 rc = (*iop->handlers->close_h)( iop ); 4a61e: 2f0a movel %a2,%sp@- 4a620: 4e90 jsr %a0@ 4a622: 588f addql #4,%sp 4a624: 2400 movel %d0,%d2 rtems_filesystem_freenode( &iop->pathinfo ); 4a626: 206a 0024 moveal %a2@(36),%a0 4a62a: 4a88 tstl %a0 4a62c: 6710 beqs 4a63e 4a62e: 2068 001c moveal %a0@(28),%a0 4a632: 4a88 tstl %a0 4a634: 6708 beqs 4a63e 4a636: 486a 0018 pea %a2@(24) 4a63a: 4e90 jsr %a0@ 4a63c: 588f addql #4,%sp rtems_libio_free( iop ); 4a63e: 2f0a movel %a2,%sp@- 4a640: 4eb9 0004 a9fe jsr 4a9fe return rc; } 4a646: 246e fffc moveal %fp@(-4),%a2 4a64a: 2002 movel %d2,%d0 rc = (*iop->handlers->close_h)( iop ); rtems_filesystem_freenode( &iop->pathinfo ); rtems_libio_free( iop ); return rc; 4a64c: 588f addql #4,%sp } 4a64e: 242e fff8 movel %fp@(-8),%d2 4a652: 4e5e unlk %fp 4a654: 4e75 rts rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 4a656: 4282 clrl %d2 <== NOT EXECUTED 4a658: 60cc bras 4a626 <== NOT EXECUTED rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 4a65a: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4a660: 74ff moveq #-1,%d2 4a662: 2040 moveal %d0,%a0 4a664: 7009 moveq #9,%d0 4a666: 2080 movel %d0,%a0@ rtems_filesystem_freenode( &iop->pathinfo ); rtems_libio_free( iop ); return rc; } 4a668: 2002 movel %d2,%d0 4a66a: 242e fff8 movel %fp@(-8),%d2 4a66e: 246e fffc moveal %fp@(-4),%a2 4a672: 4e5e unlk %fp 4a674: 4e75 rts 000497dc : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 497dc: 4e56 fff4 linkw %fp,#-12 497e0: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 497e4: 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; 497e8: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = 0; 497ec: 42ae fff8 clrl %fp@(-8) args.mode = 0; 497f0: 42ae fffc clrl %fp@(-4) status = rtems_io_close( 497f4: 2f29 000c movel %a1@(12),%sp@- 497f8: 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; 497fc: 2d48 fff4 movel %a0,%fp@(-12) args.flags = 0; args.mode = 0; status = rtems_io_close( 49800: 4eb9 0004 adbc jsr 4adbc np->major, np->minor, (void *) &args ); if ( status ) { 49806: 4fef 000c lea %sp@(12),%sp 4980a: 4a80 tstl %d0 4980c: 6604 bnes 49812 return rtems_deviceio_errno(status); } return 0; } 4980e: 4e5e unlk %fp 49810: 4e75 rts np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 49812: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49814: 4eb9 0004 98ec jsr 498ec <== NOT EXECUTED 4981a: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 4981c: 4e5e unlk %fp <== NOT EXECUTED 4981e: 4e75 rts 00049832 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 49832: 4e56 ffdc linkw %fp,#-36 49836: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@ 4983a: 286e 0014 moveal %fp@(20),%a4 4983e: 2c2e 0008 movel %fp@(8),%d6 49842: 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; 49846: 2814 movel %a4@,%d4 if (!device_name_table) 49848: 6700 008a beqw 498d4 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 4984c: 2a39 0005 af48 movel 5af48 ,%d5 49852: 673c beqs 49890 } /* 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 ); 49854: 4280 clrl %d0 49856: 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) 49858: 4bf9 0004 dabc lea 4dabc ,%a5 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 4985e: 2200 movel %d0,%d1 /* 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++) { 49860: 5282 addql #1,%d2 if (!device_name_table[i].device_name) 49862: e989 lsll #4,%d1 49864: 2041 moveal %d1,%a0 49866: 47f0 0c00 lea %a0@(00000000,%d0:l:4),%a3 4986a: 47f3 4800 lea %a3@(00000000,%d4:l),%a3 4986e: 2453 moveal %a3@,%a2 49870: 4a8a tstl %a2 49872: 6716 beqs 4988a continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 49874: 2f03 movel %d3,%sp@- 49876: 2f0a movel %a2,%sp@- 49878: 2f06 movel %d6,%sp@- 4987a: 4e95 jsr %a5@ 4987c: 4fef 000c lea %sp@(12),%sp 49880: 4a80 tstl %d0 49882: 6606 bnes 4988a continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 49884: 4a32 3800 tstb %a2@(00000000,%d3:l) 49888: 671e beqs 498a8 /* 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++) { 4988a: 2002 movel %d2,%d0 4988c: b485 cmpl %d5,%d2 4988e: 65ce bcss 4985e pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 49890: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> 49896: 7202 moveq #2,%d1 49898: 2040 moveal %d0,%a0 4989a: 70ff moveq #-1,%d0 } 4989c: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 498a2: 2081 movel %d1,%a0@ } 498a4: 4e5e unlk %fp 498a6: 4e75 rts /* 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; 498a8: 2079 0005 b0c0 moveal 5b0c0 ,%a0 498ae: 2968 0028 0010 movel %a0@(40),%a4@(16) if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; 498b4: 223c 0005 b074 movel #372852,%d1 pathloc->ops = &devFS_ops; 498ba: 41f9 0005 b02c lea 5b02c ,%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; 498c0: 2941 0008 movel %d1,%a4@(8) pathloc->ops = &devFS_ops; 498c4: 2948 000c movel %a0,%a4@(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]; 498c8: 288b movel %a3,%a4@ return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } 498ca: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 498d0: 4e5e unlk %fp 498d2: 4e75 rts } /* 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 ); 498d4: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED 498da: 740e moveq #14,%d2 <== NOT EXECUTED 498dc: 2040 moveal %d0,%a0 <== NOT EXECUTED 498de: 70ff moveq #-1,%d0 <== NOT EXECUTED 498e0: 2082 movel %d2,%a0@ <== NOT EXECUTED return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } 498e2: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 498e8: 4e5e unlk %fp <== NOT EXECUTED 498ea: 4e75 rts 00042028 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 42028: 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( 4202c: 2039 0005 af48 movel 5af48 ,%d0 42032: 2200 movel %d0,%d1 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 42034: 2f0a movel %a2,%sp@- 42036: 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( 4203a: e989 lsll #4,%d1 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4203c: 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( 4203e: 2041 moveal %d1,%a0 42040: 4870 0c00 pea %a0@(00000000,%d0:l:4) 42044: 4eb9 0004 9598 jsr 49598 <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 4204a: 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( 4204c: 2400 movel %d0,%d2 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 4204e: 6744 beqs 42094 rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 42050: 2039 0005 af48 movel 5af48 ,%d0 42056: 2200 movel %d0,%d1 42058: e989 lsll #4,%d1 4205a: 2041 moveal %d1,%a0 4205c: 4870 0c00 pea %a0@(00000000,%d0:l:4) 42060: 42a7 clrl %sp@- 42062: 2f02 movel %d2,%sp@- 42064: 4eb9 0004 d004 jsr 4d004 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; 4206a: 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; 4206e: 203c 0005 b074 movel #372852,%d0 temp_mt_entry->mt_fs_root.ops = &devFS_ops; 42074: 41f9 0005 b02c lea 5b02c ,%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; 4207a: 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; 4207e: 4280 clrl %d0 42080: 2542 001c movel %d2,%a2@(28) return 0; } 42084: 242e fff8 movel %fp@(-8),%d2 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; 42088: 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; return 0; } 4208c: 246e fffc moveal %fp@(-4),%a2 42090: 4e5e unlk %fp 42092: 4e75 rts sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); 42094: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } 4209a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); 4209e: 2040 moveal %d0,%a0 <== NOT EXECUTED 420a0: 720c moveq #12,%d1 <== NOT EXECUTED 420a2: 70ff moveq #-1,%d0 <== NOT EXECUTED /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } 420a4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 420a8: 4e5e unlk %fp <== NOT EXECUTED sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); 420aa: 2081 movel %d1,%a0@ <== NOT EXECUTED /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } 420ac: 4e75 rts <== NOT EXECUTED ... 00042224 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 42224: 4e56 fff0 linkw %fp,#-16 42228: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.command = command; args.buffer = buffer; status = rtems_io_control( 4222c: 486e fff0 pea %fp@(-16) { rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 42230: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.command = command; 42234: 2d6e 000c fff4 movel %fp@(12),%fp@(-12) args.buffer = buffer; status = rtems_io_control( 4223a: 2f29 000c movel %a1@(12),%sp@- 4223e: 2f29 0008 movel %a1@(8),%sp@- np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.command = command; args.buffer = buffer; 42242: 2d6e 0010 fff8 movel %fp@(16),%fp@(-8) rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 42248: 2d48 fff0 movel %a0,%fp@(-16) args.command = command; args.buffer = buffer; status = rtems_io_control( 4224c: 4eb9 0004 6730 jsr 46730 np->major, np->minor, (void *) &args ); if ( status ) 42252: 4fef 000c lea %sp@(12),%sp 42256: 4a80 tstl %d0 42258: 6608 bnes 42262 return rtems_deviceio_errno(status); return args.ioctl_return; 4225a: 202e fffc movel %fp@(-4),%d0 } 4225e: 4e5e unlk %fp 42260: 4e75 rts np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 42262: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42264: 4eb9 0004 98ec jsr 498ec <== NOT EXECUTED 4226a: 588f addql #4,%sp <== NOT EXECUTED return args.ioctl_return; } 4226c: 4e5e unlk %fp <== NOT EXECUTED 4226e: 4e75 rts 000420b0 : * 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') && 420b0: 7264 moveq #100,%d1 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 420b2: 4e56 ffdc linkw %fp,#-36 420b6: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ 420ba: 266e 0008 moveal %fp@(8),%a3 * 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') && 420be: 1013 moveb %a3@,%d0 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 420c0: 2a2e 000c movel %fp@(12),%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') && 420c4: 49c0 extbl %d0 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 420c6: 2e2e 0010 movel %fp@(16),%d7 420ca: 2c2e 0014 movel %fp@(20),%d6 * 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') && 420ce: b280 cmpl %d0,%d1 420d0: 6700 00d0 beqw 421a2 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 420d4: 2005 movel %d5,%d0 420d6: 0280 0000 f000 andil #61440,%d0 420dc: 0c80 0000 6000 cmpil #24576,%d0 420e2: 670a beqs 420ee 420e4: 0c80 0000 2000 cmpil #8192,%d0 420ea: 6600 00e2 bnew 421ce rtems_set_errno_and_return_minus_one( EINVAL ); else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 420ee: 206e 0018 moveal %fp@(24),%a0 420f2: 2450 moveal %a0@,%a2 if (!device_name_table) 420f4: 4a8a tstl %a2 420f6: 6700 0106 beqw 421fe rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 420fa: 2639 0005 af48 movel 5af48 ,%d3 42100: 6700 00e4 beqw 421e6 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 ); 42104: 4280 clrl %d0 42106: 78ff moveq #-1,%d4 42108: 4282 clrl %d2 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) 4210a: 49f9 0004 d5e0 lea 4d5e0 ,%a4 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) 42110: 2200 movel %d0,%d1 42112: e989 lsll #4,%d1 42114: 2241 moveal %d1,%a1 42116: 41f1 0c00 lea %a1@(00000000,%d0:l:4),%a0 4211a: 2030 a800 movel %a0@(00000000,%a2:l),%d0 4211e: 675e beqs 4217e slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 42120: 2f00 movel %d0,%sp@- 42122: 2f0b movel %a3,%sp@- 42124: 4e94 jsr %a4@ 42126: 508f addql #8,%sp 42128: 4a80 tstl %d0 4212a: 675e beqs 4218a /* 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++){ 4212c: 5282 addql #1,%d2 4212e: 2002 movel %d2,%d0 42130: b682 cmpl %d2,%d3 42132: 62dc bhis 42110 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 42134: 70ff moveq #-1,%d0 42136: b084 cmpl %d4,%d0 42138: 6700 00ac beqw 421e6 rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); 4213c: 203c 0000 0700 movel #1792,%d0 42142: 40c2 movew %sr,%d2 42144: 8082 orl %d2,%d0 42146: 46c0 movew %d0,%sr device_name_table[slot].device_name = (char *)path; 42148: 2004 movel %d4,%d0 4214a: e988 lsll #4,%d0 4214c: 2240 moveal %d0,%a1 4214e: 41f1 4c00 lea %a1@(00000000,%d4:l:4),%a0 42152: d5c8 addal %a0,%a2 42154: 248b movel %a3,%a2@ device_name_table[slot].device_name_length = strlen(path); 42156: 2f0b movel %a3,%sp@- 42158: 4eb9 0004 daa4 jsr 4daa4 4215e: 588f addql #4,%sp device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 42160: 2545 0010 movel %d5,%a2@(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); 42164: 2540 0004 movel %d0,%a2@(4) device_name_table[slot].major = major; 42168: 2547 0008 movel %d7,%a2@(8) device_name_table[slot].minor = minor; 4216c: 2546 000c movel %d6,%a2@(12) device_name_table[slot].mode = mode; _ISR_Enable(level); 42170: 46c2 movew %d2,%sr 42172: 4280 clrl %d0 return 0; } 42174: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 4217a: 4e5e unlk %fp 4217c: 4e75 rts for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 4217e: 2802 movel %d2,%d4 /* 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++){ 42180: 5282 addql #1,%d2 42182: 2002 movel %d2,%d0 42184: b682 cmpl %d2,%d3 42186: 6288 bhis 42110 42188: 60aa bras 42134 if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 4218a: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED 42190: 7411 moveq #17,%d2 <== NOT EXECUTED 42192: 2040 moveal %d0,%a0 <== NOT EXECUTED 42194: 70ff moveq #-1,%d0 <== NOT EXECUTED 42196: 2082 movel %d2,%a0@ <== NOT EXECUTED device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 42198: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 <== NOT EXECUTED 4219e: 4e5e unlk %fp <== NOT EXECUTED 421a0: 4e75 rts <== NOT EXECUTED * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 421a2: 123c 0065 moveb #101,%d1 421a6: 102b 0001 moveb %a3@(1),%d0 421aa: 49c0 extbl %d0 421ac: b280 cmpl %d0,%d1 421ae: 6600 ff24 bnew 420d4 (path[2] == 'v') && (path[3] == '\0')) 421b2: 123c 0076 moveb #118,%d1 421b6: 102b 0002 moveb %a3@(2),%d0 421ba: 49c0 extbl %d0 421bc: b280 cmpl %d0,%d1 421be: 6600 ff14 bnew 420d4 421c2: 4a2b 0003 tstb %a3@(3) 421c6: 6600 ff0c bnew 420d4 device_name_table[slot].device_name = (char *)path; device_name_table[slot].device_name_length = strlen(path); device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); 421ca: 4280 clrl %d0 421cc: 60a6 bras 42174 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) rtems_set_errno_and_return_minus_one( EINVAL ); 421ce: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED 421d4: 7816 moveq #22,%d4 <== NOT EXECUTED 421d6: 2040 moveal %d0,%a0 <== NOT EXECUTED 421d8: 70ff moveq #-1,%d0 <== NOT EXECUTED 421da: 2084 movel %d4,%a0@ <== NOT EXECUTED device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 421dc: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 <== NOT EXECUTED 421e2: 4e5e unlk %fp <== NOT EXECUTED 421e4: 4e75 rts <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); 421e6: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED 421ec: 720c moveq #12,%d1 <== NOT EXECUTED 421ee: 2040 moveal %d0,%a0 <== NOT EXECUTED 421f0: 70ff moveq #-1,%d0 <== NOT EXECUTED device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 421f2: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); 421f8: 2081 movel %d1,%a0@ <== NOT EXECUTED device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 421fa: 4e5e unlk %fp <== NOT EXECUTED 421fc: 4e75 rts <== NOT EXECUTED rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 421fe: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED 42204: 760e moveq #14,%d3 <== NOT EXECUTED 42206: 2040 moveal %d0,%a0 <== NOT EXECUTED 42208: 70ff moveq #-1,%d0 <== NOT EXECUTED 4220a: 2083 movel %d3,%a0@ <== NOT EXECUTED device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 4220c: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 <== NOT EXECUTED 42212: 4e5e unlk %fp <== NOT EXECUTED 42214: 4e75 rts <== NOT EXECUTED ... 00042270 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 42270: 4e56 fff4 linkw %fp,#-12 42274: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 42278: 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; 4227c: 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; 42282: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = iop->flags; args.mode = mode; 42286: 2d6e 0014 fffc movel %fp@(20),%fp@(-4) status = rtems_io_open( 4228c: 2f29 000c movel %a1@(12),%sp@- 42290: 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; 42294: 2d48 fff4 movel %a0,%fp@(-12) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 42298: 4eb9 0004 687c jsr 4687c np->major, np->minor, (void *) &args ); if ( status ) 4229e: 4fef 000c lea %sp@(12),%sp 422a2: 4a80 tstl %d0 422a4: 6604 bnes 422aa return rtems_deviceio_errno(status); return 0; } 422a6: 4e5e unlk %fp 422a8: 4e75 rts np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 422aa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 422ac: 4eb9 0004 98ec jsr 498ec <== NOT EXECUTED 422b2: 588f addql #4,%sp <== NOT EXECUTED return 0; } 422b4: 4e5e unlk %fp <== NOT EXECUTED 422b6: 4e75 rts 000422b8 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 422b8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 422bc: 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( 422c0: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 422c4: 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; 422ca: 2268 0038 moveal %a0@(56),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; 422ce: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 422d4: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_read( 422d8: 2f29 000c movel %a1@(12),%sp@- <== NOT EXECUTED 422dc: 2f29 0008 movel %a1@(8),%sp@- <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 422e0: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 422e6: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 422ea: 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; 422ee: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED args.offset = iop->offset; 422f2: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED 422f6: 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( 422fa: 4eb9 0004 68d8 jsr 468d8 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 42300: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42304: 4a80 tstl %d0 <== NOT EXECUTED 42306: 6608 bnes 42310 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 42308: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4230c: 4e5e unlk %fp <== NOT EXECUTED 4230e: 4e75 rts <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 42310: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42312: 4eb9 0004 98ec jsr 498ec <== NOT EXECUTED 42318: 588f addql #4,%sp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4231a: 4e5e unlk %fp <== NOT EXECUTED 4231c: 4e75 rts <== NOT EXECUTED ... 00042320 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 42320: 4e56 0000 linkw %fp,#0 42324: 206e 0008 moveal %fp@(8),%a0 42328: 226e 000c moveal %fp@(12),%a1 rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 4232c: 2050 moveal %a0@,%a0 if (!the_dev) 4232e: 4a88 tstl %a0 42330: 671a beqs 4234c rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 42332: 2228 000c movel %a0@(12),%d1 buf->st_mode = the_dev->mode; 42336: 4280 clrl %d0 return 0; } 42338: 4e5e unlk %fp 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 ); buf->st_mode = the_dev->mode; 4233a: 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 ); 42340: 2368 0008 0016 movel %a0@(8),%a1@(22) 42346: 2341 001a movel %d1,%a1@(26) buf->st_mode = the_dev->mode; return 0; } 4234a: 4e75 rts { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); 4234c: 4eb9 0004 c7b4 jsr 4c7b4 <__errno> <== NOT EXECUTED 42352: 720e moveq #14,%d1 <== NOT EXECUTED 42354: 2040 moveal %d0,%a0 <== NOT EXECUTED 42356: 70ff moveq #-1,%d0 <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; return 0; } 42358: 4e5e unlk %fp <== NOT EXECUTED { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); 4235a: 2081 movel %d1,%a0@ <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; return 0; } 4235c: 4e75 rts <== NOT EXECUTED ... 00042360 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 42360: 4e56 ffe4 linkw %fp,#-28 42364: 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( 42368: 486e ffe4 pea %fp@(-28) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 4236c: 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; 42372: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; 42376: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) args.flags = iop->flags; args.bytes_moved = 0; 4237c: 42ae fffc clrl %fp@(-4) status = rtems_io_write( 42380: 2f29 000c movel %a1@(12),%sp@- 42384: 2f29 0008 movel %a1@(8),%sp@- np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 42388: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 4238e: 2028 000c movel %a0@(12),%d0 42392: 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; 42396: 2d48 ffe4 movel %a0,%fp@(-28) args.offset = iop->offset; 4239a: 2d40 ffe8 movel %d0,%fp@(-24) 4239e: 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( 423a2: 4eb9 0004 6934 jsr 46934 np->major, np->minor, (void *) &args ); if ( status ) 423a8: 4fef 000c lea %sp@(12),%sp 423ac: 4a80 tstl %d0 423ae: 6608 bnes 423b8 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 423b0: 202e fffc movel %fp@(-4),%d0 } 423b4: 4e5e unlk %fp 423b6: 4e75 rts np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 423b8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 423ba: 4eb9 0004 98ec jsr 498ec <== NOT EXECUTED 423c0: 588f addql #4,%sp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 423c2: 4e5e unlk %fp <== NOT EXECUTED 423c4: 4e75 rts <== NOT EXECUTED ... 0004c796 : */ int device_close( rtems_libio_t *iop ) { 4c796: 4e56 fff4 linkw %fp,#-12 4c79a: 226e 0008 moveal %fp@(8),%a1 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 4c79e: 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; 4c7a2: 2069 0038 moveal %a1@(56),%a0 args.iop = iop; 4c7a6: 2d49 fff4 movel %a1,%fp@(-12) args.flags = 0; 4c7aa: 42ae fff8 clrl %fp@(-8) args.mode = 0; 4c7ae: 42ae fffc clrl %fp@(-4) status = rtems_io_close( 4c7b2: 2f28 0050 movel %a0@(80),%sp@- 4c7b6: 2f28 004c movel %a0@(76),%sp@- 4c7ba: 4eb9 0004 decc jsr 4decc the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 4c7c0: 4fef 000c lea %sp@(12),%sp 4c7c4: 4a80 tstl %d0 4c7c6: 6604 bnes 4c7cc return rtems_deviceio_errno(status); } return 0; } 4c7c8: 4e5e unlk %fp 4c7ca: 4e75 rts the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 4c7cc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c7ce: 4eb9 0004 e534 jsr 4e534 <== NOT EXECUTED 4c7d4: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 4c7d6: 4e5e unlk %fp <== NOT EXECUTED 4c7d8: 4e75 rts 0004c67e : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4c67e: 4e56 fff0 linkw %fp,#-16 4c682: 226e 0008 moveal %fp@(8),%a1 args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4c686: 486e fff0 pea %fp@(-16) rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; 4c68a: 2d6e 0010 fff8 movel %fp@(16),%fp@(-8) rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; 4c690: 2d6e 000c fff4 movel %fp@(12),%fp@(-12) args.buffer = buffer; the_jnode = iop->file_info; 4c696: 2069 0038 moveal %a1@(56),%a0 { rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; 4c69a: 2d49 fff0 movel %a1,%fp@(-16) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4c69e: 2f28 0050 movel %a0@(80),%sp@- 4c6a2: 2f28 004c movel %a0@(76),%sp@- 4c6a6: 4eb9 0004 df28 jsr 4df28 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4c6ac: 4fef 000c lea %sp@(12),%sp 4c6b0: 4a80 tstl %d0 4c6b2: 6608 bnes 4c6bc return rtems_deviceio_errno(status); return args.ioctl_return; 4c6b4: 202e fffc movel %fp@(-4),%d0 } 4c6b8: 4e5e unlk %fp 4c6ba: 4e75 rts the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4c6bc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c6be: 4eb9 0004 e534 jsr 4e534 <== NOT EXECUTED 4c6c4: 588f addql #4,%sp <== NOT EXECUTED return args.ioctl_return; } 4c6c6: 4e5e unlk %fp <== NOT EXECUTED 4c6c8: 4e75 rts 0004c7da : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4c7da: 4e56 fff4 linkw %fp,#-12 4c7de: 206e 0008 moveal %fp@(8),%a0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4c7e2: 486e fff4 pea %fp@(-12) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; 4c7e6: 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; 4c7ec: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.flags = iop->flags; args.mode = mode; 4c7f0: 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; 4c7f6: 2d48 fff4 movel %a0,%fp@(-12) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4c7fa: 2f29 0050 movel %a1@(80),%sp@- 4c7fe: 2f29 004c movel %a1@(76),%sp@- 4c802: 4eb9 0004 df84 jsr 4df84 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4c808: 4fef 000c lea %sp@(12),%sp 4c80c: 4a80 tstl %d0 4c80e: 6604 bnes 4c814 return rtems_deviceio_errno(status); return 0; } 4c810: 4e5e unlk %fp 4c812: 4e75 rts the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4c814: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c816: 4eb9 0004 e534 jsr 4e534 <== NOT EXECUTED 4c81c: 588f addql #4,%sp <== NOT EXECUTED return 0; } 4c81e: 4e5e unlk %fp <== NOT EXECUTED 4c820: 4e75 rts <== NOT EXECUTED ... 0004c730 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4c730: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4c734: 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( 4c738: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 4c73c: 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; 4c742: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED args.count = count; 4c748: 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; 4c74e: 2268 0038 moveal %a0@(56),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4c752: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 4c756: 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; 4c75a: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED args.offset = iop->offset; 4c75e: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED 4c762: 2d41 ffec movel %d1,%fp@(-20) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4c766: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_read( 4c76a: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4c76e: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4c772: 4eb9 0004 dfe0 jsr 4dfe0 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4c778: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4c77c: 4a80 tstl %d0 <== NOT EXECUTED 4c77e: 6608 bnes 4c788 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 4c780: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4c784: 4e5e unlk %fp <== NOT EXECUTED 4c786: 4e75 rts <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4c788: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c78a: 4eb9 0004 e534 jsr 4e534 <== NOT EXECUTED 4c790: 588f addql #4,%sp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4c792: 4e5e unlk %fp <== NOT EXECUTED 4c794: 4e75 rts 0004c6ca : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 4c6ca: 4e56 ffe4 linkw %fp,#-28 4c6ce: 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( 4c6d2: 486e ffe4 pea %fp@(-28) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 4c6d6: 2d68 0014 fff8 movel %a0@(20),%fp@(-8) the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 4c6dc: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) args.count = count; 4c6e2: 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; 4c6e8: 2268 0038 moveal %a0@(56),%a1 args.iop = iop; args.offset = iop->offset; 4c6ec: 2028 000c movel %a0@(12),%d0 4c6f0: 2228 0010 movel %a0@(16),%d1 rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4c6f4: 2d48 ffe4 movel %a0,%fp@(-28) args.offset = iop->offset; 4c6f8: 2d40 ffe8 movel %d0,%fp@(-24) 4c6fc: 2d41 ffec movel %d1,%fp@(-20) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4c700: 42ae fffc clrl %fp@(-4) status = rtems_io_write( 4c704: 2f29 0050 movel %a1@(80),%sp@- 4c708: 2f29 004c movel %a1@(76),%sp@- 4c70c: 4eb9 0004 e03c jsr 4e03c the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4c712: 4fef 000c lea %sp@(12),%sp 4c716: 4a80 tstl %d0 4c718: 6608 bnes 4c722 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 4c71a: 202e fffc movel %fp@(-4),%d0 } 4c71e: 4e5e unlk %fp 4c720: 4e75 rts the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4c722: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c724: 4eb9 0004 e534 jsr 4e534 <== NOT EXECUTED 4c72a: 588f addql #4,%sp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4c72c: 4e5e unlk %fp <== NOT EXECUTED 4c72e: 4e75 rts 000443aa : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 443aa: 4e56 fff4 linkw %fp,#-12 443ae: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 443b2: 246e 0008 moveal %fp@(8),%a2 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 443b6: 4aaa 00b4 tstl %a2@(180) 443ba: 6750 beqs 4440c rtems_interrupt_disable (level); 443bc: 243c 0000 0700 movel #1792,%d2 443c2: 2002 movel %d2,%d0 443c4: 40c1 movew %sr,%d1 443c6: 8081 orl %d1,%d0 443c8: 46c0 movew %d0,%sr while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 443ca: 206a 0084 moveal %a2@(132),%a0 443ce: 202a 0080 movel %a2@(128),%d0 443d2: b088 cmpl %a0,%d0 443d4: 6734 beqs 4440a 443d6: 47f9 0004 5d2c lea 45d2c ,%a3 tty->rawOutBufState = rob_wait; 443dc: 7002 moveq #2,%d0 443de: 2540 0094 movel %d0,%a2@(148) rtems_interrupt_enable (level); 443e2: 46c1 movew %d1,%sr sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 443e4: 42a7 clrl %sp@- 443e6: 42a7 clrl %sp@- 443e8: 2f2a 008c movel %a2@(140),%sp@- 443ec: 4e93 jsr %a3@ RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 443ee: 4fef 000c lea %sp@(12),%sp 443f2: 4a80 tstl %d0 443f4: 6620 bnes 44416 rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 443f6: 2002 movel %d2,%d0 443f8: 40c1 movew %sr,%d1 443fa: 8081 orl %d1,%d0 443fc: 46c0 movew %d0,%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) { 443fe: 206a 0084 moveal %a2@(132),%a0 44402: 202a 0080 movel %a2@(128),%d0 44406: b088 cmpl %a0,%d0 44408: 66d2 bnes 443dc RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 4440a: 46c1 movew %d1,%sr } } 4440c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 44412: 4e5e unlk %fp 44414: 4e75 rts rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 44416: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44418: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 00043380 : int dup2( int fildes, int fildes2 ) { 43380: 4e56 ffac linkw %fp,#-84 43384: 48d7 040c moveml %d2-%d3/%a2,%sp@ /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 43388: 240e movel %fp,%d2 4338a: 0682 ffff ffba addil #-70,%d2 43390: 45f9 0004 3d5c lea 43d5c ,%a2 43396: 2f02 movel %d2,%sp@- int dup2( int fildes, int fildes2 ) { 43398: 262e 0008 movel %fp@(8),%d3 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 4339c: 2f03 movel %d3,%sp@- 4339e: 4e92 jsr %a2@ if ( status == -1 ) 433a0: 508f addql #8,%sp 433a2: 72ff moveq #-1,%d1 433a4: b280 cmpl %d0,%d1 433a6: 660c bnes 433b4 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 433a8: 70ff moveq #-1,%d0 } 433aa: 4cee 040c ffac moveml %fp@(-84),%d2-%d3/%a2 433b0: 4e5e unlk %fp 433b2: 4e75 rts /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 433b4: 2f02 movel %d2,%sp@- 433b6: 2f2e 000c movel %fp@(12),%sp@- 433ba: 4e92 jsr %a2@ if ( status == -1 ) 433bc: 508f addql #8,%sp 433be: 72ff moveq #-1,%d1 433c0: b280 cmpl %d0,%d1 433c2: 67e4 beqs 433a8 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 433c4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 433c8: 42a7 clrl %sp@- <== NOT EXECUTED 433ca: 2f03 movel %d3,%sp@- <== NOT EXECUTED 433cc: 4eb9 0004 38f4 jsr 438f4 <== NOT EXECUTED 433d2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 433d6: 4cee 040c ffac moveml %fp@(-84),%d2-%d3/%a2 <== NOT EXECUTED 433dc: 4e5e unlk %fp <== NOT EXECUTED 433de: 4e75 rts 00043dcc : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 43dcc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 43dd0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43dd2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 43dd6: 2f02 movel %d2,%sp@- <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 43dd8: 242a 003c movel %a2@(60),%d2 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 43ddc: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 43de0: 0282 0000 0200 andil #512,%d2 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 43de6: 1001 moveb %d1,%d0 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 43de8: 4a82 tstl %d2 <== NOT EXECUTED 43dea: 673e beqs 43e2a <== NOT EXECUTED 43dec: 1001 moveb %d1,%d0 <== NOT EXECUTED 43dee: 2079 0005 dacc moveal 5dacc <__ctype_ptr__>,%a0 <== NOT EXECUTED 43df4: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43dfa: 1430 0801 moveb %a0@(00000001,%d0:l),%d2 <== NOT EXECUTED 43dfe: 49c2 extbl %d2 <== NOT EXECUTED 43e00: 0802 0005 btst #5,%d2 <== NOT EXECUTED 43e04: 670e beqs 43e14 <== NOT EXECUTED 43e06: 7409 moveq #9,%d2 <== NOT EXECUTED 43e08: b480 cmpl %d0,%d2 <== NOT EXECUTED 43e0a: 6708 beqs 43e14 <== NOT EXECUTED 43e0c: 143c 000a moveb #10,%d2 <== NOT EXECUTED 43e10: b480 cmpl %d0,%d2 <== NOT EXECUTED 43e12: 662a bnes 43e3e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 43e14: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43e16: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43e18: 4eba fdd2 jsr %pc@(43bec ) <== NOT EXECUTED 43e1c: 508f addql #8,%sp <== NOT EXECUTED } } 43e1e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 43e22: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 43e26: 4e5e unlk %fp <== NOT EXECUTED 43e28: 4e75 rts <== NOT EXECUTED 43e2a: 1001 moveb %d1,%d0 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 43e2c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43e2e: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43e34: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43e36: 4eba fdb4 jsr %pc@(43bec ) <== NOT EXECUTED 43e3a: 508f addql #8,%sp <== NOT EXECUTED 43e3c: 60e0 bras 43e1e <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 43e3e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43e40: 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; 43e44: 7040 moveq #64,%d0 <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 43e46: 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; 43e4a: b181 eorl %d0,%d1 <== 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] = '^'; 43e4c: 745e moveq #94,%d2 <== NOT EXECUTED echobuf[1] = c ^ 0x40; 43e4e: 1d41 ffff moveb %d1,%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] = '^'; 43e52: 1d42 fffe moveb %d2,%fp@(-2) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 43e56: 4eb9 0004 3ac4 jsr 43ac4 <== NOT EXECUTED tty->column += 2; } else { oproc (c, tty); } } 43e5c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; 43e60: 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')) { 43e64: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED tty->column += 2; } else { oproc (c, tty); } } 43e68: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 43e6c: 4e5e unlk %fp <== NOT EXECUTED 43e6e: 4e75 rts 00067894 : fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { 67894: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp != NULL) 67898: 2039 000a 62fe movel a62fe ,%d0 <== NOT EXECUTED 6789e: 670a beqs 678aa <== NOT EXECUTED fclose(group_fp); 678a0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 678a2: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED 678a8: 588f addql #4,%sp <== NOT EXECUTED } 678aa: 4e5e unlk %fp <== NOT EXECUTED 678ac: 4e75 rts 000678ae : fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 678ae: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp != NULL) 678b2: 2039 000a 6216 movel a6216 ,%d0 <== NOT EXECUTED 678b8: 670a beqs 678c4 <== NOT EXECUTED fclose(passwd_fp); 678ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED 678bc: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED 678c2: 588f addql #4,%sp <== NOT EXECUTED } 678c4: 4e5e unlk %fp <== NOT EXECUTED 678c6: 4e75 rts 00043e70 : * 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) { 43e70: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 43e74: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 43e78: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 43e7c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED if (tty->ccount == 0) 43e80: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 43e84: 6732 beqs 43eb8 <== NOT EXECUTED return; if (lineFlag) { 43e86: 4a84 tstl %d4 <== NOT EXECUTED 43e88: 6738 beqs 43ec2 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 43e8a: 262a 003c movel %a2@(60),%d3 <== NOT EXECUTED 43e8e: 44c3 movew %d3,%ccr <== NOT EXECUTED 43e90: 6a00 01ae bplw 44040 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 43e94: 0803 0004 btst #4,%d3 <== NOT EXECUTED 43e98: 662c bnes 43ec6 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 43e9a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43e9c: 4280 clrl %d0 <== NOT EXECUTED 43e9e: 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; 43ea2: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 43ea6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43ea8: 4eba ff22 jsr %pc@(43dcc ) <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 43eac: 508f addql #8,%sp <== NOT EXECUTED 43eae: 7020 moveq #32,%d0 <== NOT EXECUTED 43eb0: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 43eb4: 6600 0198 bnew 4404e <== NOT EXECUTED } } if (!lineFlag) break; } } 43eb8: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 43ebe: 4e5e unlk %fp <== NOT EXECUTED 43ec0: 4e75 rts <== NOT EXECUTED 43ec2: 262a 003c movel %a2@(60),%d3 <== NOT EXECUTED 43ec6: 47f9 0004 3ac4 lea 43ac4 ,%a3 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 43ecc: 5381 subql #1,%d1 <== NOT EXECUTED 43ece: 226a 001c moveal %a2@(28),%a1 <== NOT EXECUTED 43ed2: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED 43ed6: 1031 1800 moveb %a1@(00000000,%d1:l),%d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 43eda: 44c3 movew %d3,%ccr <== NOT EXECUTED 43edc: 6a36 bpls 43f14 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 43ede: 4a84 tstl %d4 <== NOT EXECUTED 43ee0: 6608 bnes 43eea <== NOT EXECUTED 43ee2: 0803 0004 btst #4,%d3 <== NOT EXECUTED 43ee6: 6700 013e beqw 44026 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 43eea: 7409 moveq #9,%d2 <== NOT EXECUTED 43eec: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43ef2: b480 cmpl %d0,%d2 <== NOT EXECUTED 43ef4: 6700 008e beqw 43f84 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 43ef8: 2400 movel %d0,%d2 <== NOT EXECUTED 43efa: 5282 addql #1,%d2 <== NOT EXECUTED 43efc: 2079 0005 dacc moveal 5dacc <__ctype_ptr__>,%a0 <== NOT EXECUTED 43f02: 1030 2800 moveb %a0@(00000000,%d2:l),%d0 <== NOT EXECUTED 43f06: 49c0 extbl %d0 <== NOT EXECUTED 43f08: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43f0c: 6752 beqs 43f60 <== NOT EXECUTED 43f0e: 0803 0009 btst #9,%d3 <== NOT EXECUTED 43f12: 6610 bnes 43f24 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 43f14: 4a84 tstl %d4 <== NOT EXECUTED 43f16: 67a0 beqs 43eb8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 43f18: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 43f1c: 679a beqs 43eb8 <== NOT EXECUTED 43f1e: 262a 003c movel %a2@(60),%d3 <== NOT EXECUTED 43f22: 60a8 bras 43ecc <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 43f24: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43f26: 4878 0003 pea 3 <== NOT EXECUTED 43f2a: 4879 0005 c85b pea 5c85b <== NOT EXECUTED 43f30: 4e93 jsr %a3@ <== NOT EXECUTED if (tty->column) 43f32: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43f36: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43f3a: 6706 beqs 43f42 <== NOT EXECUTED tty->column--; 43f3c: 5380 subql #1,%d0 <== NOT EXECUTED 43f3e: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 43f42: 2079 0005 dacc moveal 5dacc <__ctype_ptr__>,%a0 <== NOT EXECUTED 43f48: 1030 2800 moveb %a0@(00000000,%d2:l),%d0 <== NOT EXECUTED 43f4c: 49c0 extbl %d0 <== NOT EXECUTED 43f4e: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43f52: 670c beqs 43f60 <== NOT EXECUTED 43f54: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED 43f58: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED 43f5e: 67b4 beqs 43f14 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 43f60: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43f62: 4878 0003 pea 3 <== NOT EXECUTED 43f66: 4879 0005 c85b pea 5c85b <== NOT EXECUTED 43f6c: 4eb9 0004 3ac4 jsr 43ac4 <== NOT EXECUTED if (tty->column) 43f72: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43f76: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43f7a: 6798 beqs 43f14 <== NOT EXECUTED tty->column--; 43f7c: 5380 subql #1,%d0 <== NOT EXECUTED 43f7e: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 43f82: 6090 bras 43f14 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; 43f84: 242a 002c movel %a2@(44),%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 43f88: 4a81 tstl %d1 <== NOT EXECUTED 43f8a: 6734 beqs 43fc0 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 43f8c: 2879 0005 dacc moveal 5dacc <__ctype_ptr__>,%a4 <== NOT EXECUTED 43f92: 4280 clrl %d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 43f94: 0283 0000 0200 andil #512,%d3 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 43f9a: 4285 clrl %d5 <== NOT EXECUTED 43f9c: 1a31 0800 moveb %a1@(00000000,%d0:l),%d5 <== NOT EXECUTED 43fa0: 5280 addql #1,%d0 <== NOT EXECUTED 43fa2: 2045 moveal %d5,%a0 <== NOT EXECUTED if (c == '\t') { 43fa4: 7a09 moveq #9,%d5 <== NOT EXECUTED 43fa6: ba88 cmpl %a0,%d5 <== NOT EXECUTED 43fa8: 676c beqs 44016 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 43faa: 1a34 8801 moveb %a4@(00000001,%a0:l),%d5 <== NOT EXECUTED 43fae: 49c5 extbl %d5 <== NOT EXECUTED 43fb0: 0805 0005 btst #5,%d5 <== NOT EXECUTED 43fb4: 6758 beqs 4400e <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 43fb6: 4a83 tstl %d3 <== NOT EXECUTED 43fb8: 6702 beqs 43fbc <== NOT EXECUTED col += 2; 43fba: 5482 addql #2,%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 43fbc: b081 cmpl %d1,%d0 <== NOT EXECUTED 43fbe: 66da bnes 43f9a <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43fc0: b4aa 0028 cmpl %a2@(40),%d2 <== NOT EXECUTED 43fc4: 6c00 ff4e bgew 43f14 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 43fc8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43fca: 4878 0001 pea 1 <== NOT EXECUTED 43fce: 4879 0005 c85d pea 5c85d <== NOT EXECUTED 43fd4: 4e93 jsr %a3@ <== NOT EXECUTED tty->column--; 43fd6: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43fda: 5380 subql #1,%d0 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43fdc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; 43fe0: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43fe4: b082 cmpl %d2,%d0 <== NOT EXECUTED 43fe6: 6f00 ff2c blew 43f14 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 43fea: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43fec: 4878 0001 pea 1 <== NOT EXECUTED 43ff0: 4879 0005 c85d pea 5c85d <== NOT EXECUTED 43ff6: 4e93 jsr %a3@ <== NOT EXECUTED tty->column--; 43ff8: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43ffc: 5380 subql #1,%d0 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43ffe: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; 44002: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 44006: b082 cmpl %d2,%d0 <== NOT EXECUTED 44008: 6ebe bgts 43fc8 <== NOT EXECUTED 4400a: 6000 ff08 braw 43f14 <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 4400e: 5282 addql #1,%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 44010: b081 cmpl %d1,%d0 <== NOT EXECUTED 44012: 6686 bnes 43f9a <== NOT EXECUTED 44014: 60aa bras 43fc0 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 44016: 1a3c 0007 moveb #7,%d5 <== NOT EXECUTED 4401a: 8485 orl %d5,%d2 <== NOT EXECUTED 4401c: 5282 addql #1,%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 4401e: b081 cmpl %d1,%d0 <== NOT EXECUTED 44020: 6600 ff78 bnew 43f9a <== NOT EXECUTED 44024: 609a bras 43fc0 <== 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); 44026: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 4402a: 4280 clrl %d0 <== NOT EXECUTED 4402c: 102a 0043 moveb %a2@(67),%d0 <== NOT EXECUTED } } if (!lineFlag) break; } } 44030: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== 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); 44036: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } if (!lineFlag) break; } } 4403a: 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); 4403c: 6000 fd8e braw 43dcc <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 44040: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED } } if (!lineFlag) break; } } 44044: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 4404a: 4e5e unlk %fp <== NOT EXECUTED 4404c: 4e75 rts <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 4404e: 700a moveq #10,%d0 <== NOT EXECUTED 44050: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED } } if (!lineFlag) break; } } 44054: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 4405a: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } if (!lineFlag) break; } } 4405e: 4e5e unlk %fp <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 44060: 6000 fd6a braw 43dcc <== NOT EXECUTED 0007a770 : #include int fchdir( int fd ) { 7a770: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED 7a774: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 7a778: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@ <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 7a77c: b0b9 000a 1ec4 cmpl a1ec4 ,%d0 <== NOT EXECUTED 7a782: 6400 0116 bccw 7a89a <== NOT EXECUTED iop = rtems_libio_iop( fd ); 7a786: 2479 000a 6b6c moveal a6b6c ,%a2 <== NOT EXECUTED 7a78c: ed88 lsll #6,%d0 <== NOT EXECUTED 7a78e: d5c0 addal %d0,%a2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 7a790: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 7a794: 0800 0008 btst #8,%d0 <== NOT EXECUTED 7a798: 6700 0100 beqw 7a89a <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 7a79c: 0800 0001 btst #1,%d0 <== NOT EXECUTED 7a7a0: 6700 0138 beqw 7a8da <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 7a7a4: 206a 0024 moveal %a2@(36),%a0 <== NOT EXECUTED 7a7a8: 4a88 tstl %a0 <== NOT EXECUTED 7a7aa: 6700 0146 beqw 7a8f2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 7a7ae: 2068 0010 moveal %a0@(16),%a0 <== NOT EXECUTED 7a7b2: 4a88 tstl %a0 <== NOT EXECUTED 7a7b4: 6700 013c beqw 7a8f2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 7a7b8: 47ea 0018 lea %a2@(24),%a3 <== NOT EXECUTED 7a7bc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 7a7be: 4e90 jsr %a0@ <== NOT EXECUTED 7a7c0: 588f addql #4,%sp <== NOT EXECUTED 7a7c2: 7201 moveq #1,%d1 <== NOT EXECUTED 7a7c4: b280 cmpl %d0,%d1 <== NOT EXECUTED 7a7c6: 6600 00ba bnew 7a882 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 7a7ca: 2279 000a 21cc moveal a21cc ,%a1 <== NOT EXECUTED 7a7d0: 2c0e movel %fp,%d6 <== NOT EXECUTED 7a7d2: 41e9 0004 lea %a1@(4),%a0 <== NOT EXECUTED 7a7d6: 0686 ffff ffd8 addil #-40,%d6 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 7a7dc: 2248 moveal %a0,%a1 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 7a7de: 2a46 moveal %d6,%a5 <== NOT EXECUTED 7a7e0: 2a0e movel %fp,%d5 <== NOT EXECUTED 7a7e2: 0685 ffff ffdc addil #-36,%d5 <== NOT EXECUTED 7a7e8: 280e movel %fp,%d4 <== NOT EXECUTED 7a7ea: 0684 ffff ffe0 addil #-32,%d4 <== NOT EXECUTED 7a7f0: 260e movel %fp,%d3 <== NOT EXECUTED 7a7f2: 0683 ffff ffe4 addil #-28,%d3 <== NOT EXECUTED 7a7f8: 240e movel %fp,%d2 <== NOT EXECUTED 7a7fa: 0682 ffff ffe8 addil #-24,%d2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 7a800: 49ee ffec lea %fp@(-20),%a4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 7a804: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 7a806: 2a45 moveal %d5,%a5 <== NOT EXECUTED 7a808: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 7a80a: 2a44 moveal %d4,%a5 <== NOT EXECUTED 7a80c: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 7a80e: 2a43 moveal %d3,%a5 <== NOT EXECUTED 7a810: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 7a812: 2a42 moveal %d2,%a5 <== NOT EXECUTED 7a814: 2a90 movel %a0@,%a5@ <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 7a816: 22d3 movel %a3@,%a1@+ <== NOT EXECUTED 7a818: 22ea 001c movel %a2@(28),%a1@+ <== NOT EXECUTED 7a81c: 22ea 0020 movel %a2@(32),%a1@+ <== NOT EXECUTED 7a820: 22aa 0024 movel %a2@(36),%a1@ <== NOT EXECUTED 7a824: 20aa 0028 movel %a2@(40),%a0@ <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 7a828: 42a7 clrl %sp@- <== NOT EXECUTED 7a82a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 7a82c: 42a7 clrl %sp@- <== NOT EXECUTED 7a82e: 4878 0001 pea 1 <== NOT EXECUTED 7a832: 4879 0009 b057 pea 9b057 <== NOT EXECUTED 7a838: 4eb9 0004 774c jsr 4774c <== NOT EXECUTED 7a83e: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 7a842: 4a80 tstl %d0 <== NOT EXECUTED 7a844: 666c bnes 7a8b2 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 7a846: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 7a84a: 4a88 tstl %a0 <== NOT EXECUTED 7a84c: 670e beqs 7a85c <== NOT EXECUTED 7a84e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 7a852: 4a88 tstl %a0 <== NOT EXECUTED 7a854: 6706 beqs 7a85c <== NOT EXECUTED 7a856: 2f06 movel %d6,%sp@- <== NOT EXECUTED 7a858: 4e90 jsr %a0@ <== NOT EXECUTED 7a85a: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_current = loc; 7a85c: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 7a862: 5888 addql #4,%a0 <== NOT EXECUTED 7a864: 4280 clrl %d0 <== NOT EXECUTED 7a866: 20d4 movel %a4@,%a0@+ <== NOT EXECUTED 7a868: 20ee fff0 movel %fp@(-16),%a0@+ <== NOT EXECUTED 7a86c: 20ee fff4 movel %fp@(-12),%a0@+ <== NOT EXECUTED 7a870: 20ee fff8 movel %fp@(-8),%a0@+ <== NOT EXECUTED 7a874: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED return 0; } 7a878: 4cee 3c7c ffb4 moveml %fp@(-76),%d2-%d6/%a2-%a5 <== NOT EXECUTED 7a87e: 4e5e unlk %fp <== NOT EXECUTED 7a880: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 7a882: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 7a888: 7214 moveq #20,%d1 <== NOT EXECUTED 7a88a: 2040 moveal %d0,%a0 <== NOT EXECUTED 7a88c: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a88e: 4cee 3c7c ffb4 moveml %fp@(-76),%d2-%d6/%a2-%a5 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 7a894: 2081 movel %d1,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a896: 4e5e unlk %fp <== NOT EXECUTED 7a898: 4e75 rts <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 7a89a: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 7a8a0: 7609 moveq #9,%d3 <== NOT EXECUTED 7a8a2: 2040 moveal %d0,%a0 <== NOT EXECUTED 7a8a4: 70ff moveq #-1,%d0 <== NOT EXECUTED 7a8a6: 2083 movel %d3,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a8a8: 4cee 3c7c ffb4 moveml %fp@(-76),%d2-%d6/%a2-%a5 <== NOT EXECUTED 7a8ae: 4e5e unlk %fp <== NOT EXECUTED 7a8b0: 4e75 rts <== 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; 7a8b2: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 7a8b8: 2246 moveal %d6,%a1 <== NOT EXECUTED 7a8ba: 5888 addql #4,%a0 <== NOT EXECUTED 7a8bc: 2a45 moveal %d5,%a5 <== NOT EXECUTED 7a8be: 70ff moveq #-1,%d0 <== NOT EXECUTED 7a8c0: 20d1 movel %a1@,%a0@+ <== NOT EXECUTED 7a8c2: 2244 moveal %d4,%a1 <== NOT EXECUTED 7a8c4: 20d5 movel %a5@,%a0@+ <== NOT EXECUTED 7a8c6: 2a43 moveal %d3,%a5 <== NOT EXECUTED 7a8c8: 20d1 movel %a1@,%a0@+ <== NOT EXECUTED 7a8ca: 2242 moveal %d2,%a1 <== NOT EXECUTED 7a8cc: 20d5 movel %a5@,%a0@+ <== NOT EXECUTED 7a8ce: 2091 movel %a1@,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a8d0: 4cee 3c7c ffb4 moveml %fp@(-76),%d2-%d6/%a2-%a5 <== NOT EXECUTED 7a8d6: 4e5e unlk %fp <== NOT EXECUTED 7a8d8: 4e75 rts <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 7a8da: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 7a8e0: 7416 moveq #22,%d2 <== NOT EXECUTED 7a8e2: 2040 moveal %d0,%a0 <== NOT EXECUTED 7a8e4: 70ff moveq #-1,%d0 <== NOT EXECUTED 7a8e6: 2082 movel %d2,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a8e8: 4cee 3c7c ffb4 moveml %fp@(-76),%d2-%d6/%a2-%a5 <== NOT EXECUTED 7a8ee: 4e5e unlk %fp <== NOT EXECUTED 7a8f0: 4e75 rts <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 7a8f2: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 7a8f8: 2040 moveal %d0,%a0 <== NOT EXECUTED 7a8fa: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a8fc: 4cee 3c7c ffb4 moveml %fp@(-76),%d2-%d6/%a2-%a5 <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 7a902: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 7a908: 4e5e unlk %fp <== NOT EXECUTED 7a90a: 4e75 rts 000674c4 : int fchmod( int fd, mode_t mode ) { 674c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 674c8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 674cc: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 674d0: b0b9 000a 1ec4 cmpl a1ec4 ,%d0 <== NOT EXECUTED 674d6: 643a bccs 67512 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 674d8: 2079 000a 6b6c moveal a6b6c ,%a0 <== NOT EXECUTED 674de: ed88 lsll #6,%d0 <== NOT EXECUTED 674e0: d1c0 addal %d0,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 674e2: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED 674e6: 0800 0008 btst #8,%d0 <== NOT EXECUTED 674ea: 6726 beqs 67512 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 674ec: 44c0 movew %d0,%ccr <== NOT EXECUTED 674ee: 6634 bnes 67524 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 674f0: 2268 003c moveal %a0@(60),%a1 <== NOT EXECUTED 674f4: 4aa9 001c tstl %a1@(28) <== NOT EXECUTED 674f8: 673c beqs 67536 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 674fa: 2268 0020 moveal %a0@(32),%a1 <== NOT EXECUTED 674fe: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 67502: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 67506: 2269 001c moveal %a1@(28),%a1 <== NOT EXECUTED 6750a: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 6750e: 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 ); 67510: 4ed1 jmp %a1@ <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 67512: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 67518: 7209 moveq #9,%d1 <== NOT EXECUTED 6751a: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 6751c: 70ff moveq #-1,%d0 <== NOT EXECUTED 6751e: 4e5e unlk %fp <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 67520: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 67522: 4e75 rts <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 67524: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 6752a: 4e5e unlk %fp <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 6752c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6752e: 7016 moveq #22,%d0 <== NOT EXECUTED 67530: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 67532: 70ff moveq #-1,%d0 <== NOT EXECUTED 67534: 4e75 rts <== NOT EXECUTED */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 67536: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 6753c: 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 ); 6753e: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 67540: 70ff moveq #-1,%d0 <== NOT EXECUTED */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 67542: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 67548: 4e75 rts <== NOT EXECUTED ... 0006754c : int fchown( int fd, uid_t owner, gid_t group ) { 6754c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 67550: 302e 000e movew %fp@(14),%d0 <== NOT EXECUTED 67554: 2f02 movel %d2,%sp@- <== NOT EXECUTED 67556: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 6755a: 322e 0012 movew %fp@(18),%d1 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 6755e: b4b9 000a 1ec4 cmpl a1ec4 ,%d2 <== NOT EXECUTED 67564: 6448 bccs 675ae <== NOT EXECUTED iop = rtems_libio_iop( fd ); 67566: 2079 000a 6b6c moveal a6b6c ,%a0 <== NOT EXECUTED 6756c: ed8a lsll #6,%d2 <== NOT EXECUTED 6756e: d1c2 addal %d2,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 67570: 2428 0014 movel %a0@(20),%d2 <== NOT EXECUTED 67574: 0802 0008 btst #8,%d2 <== NOT EXECUTED 67578: 6734 beqs 675ae <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 6757a: 44c2 movew %d2,%ccr <== NOT EXECUTED 6757c: 6646 bnes 675c4 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 6757e: 2268 0024 moveal %a0@(36),%a1 <== NOT EXECUTED 67582: 2269 0018 moveal %a1@(24),%a1 <== NOT EXECUTED 67586: 4a89 tstl %a1 <== NOT EXECUTED 67588: 6750 beqs 675da <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 6758a: 41e8 0018 lea %a0@(24),%a0 <== NOT EXECUTED 6758e: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 67594: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED } 6759a: 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 ); 6759e: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED 675a2: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED 675a6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } 675aa: 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 ); 675ac: 4ed1 jmp %a1@ <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 675ae: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675b4: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 675b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 675ba: 7209 moveq #9,%d1 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675bc: 70ff moveq #-1,%d0 <== NOT EXECUTED 675be: 4e5e unlk %fp <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 675c0: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675c2: 4e75 rts <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 675c4: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675ca: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 675ce: 2040 moveal %d0,%a0 <== NOT EXECUTED 675d0: 7016 moveq #22,%d0 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675d2: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 675d4: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675d6: 70ff moveq #-1,%d0 <== NOT EXECUTED 675d8: 4e75 rts <== NOT EXECUTED rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 675da: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675e0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 675e4: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675e6: 70ff moveq #-1,%d0 <== NOT EXECUTED 675e8: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 675ea: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 675f0: 4e75 rts <== NOT EXECUTED ... 0007a90c : int fcntl( int fd, int cmd, ... ) { 7a90c: 4e56 fff4 linkw %fp,#-12 7a910: 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, ...)); 7a914: 41ee 0010 lea %fp@(16),%a0 7a918: 48d7 040c moveml %d2-%d3/%a2,%sp@ 7a91c: 242e 000c movel %fp@(12),%d2 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 7a920: 2239 000a 1ec4 movel a1ec4 ,%d1 7a926: b280 cmpl %d0,%d1 7a928: 6300 0192 blsw 7aabc iop = rtems_libio_iop( fd ); 7a92c: 2279 000a 6b6c moveal a6b6c ,%a1 7a932: ed88 lsll #6,%d0 7a934: 45f1 0800 lea %a1@(00000000,%d0:l),%a2 rtems_libio_check_is_open(iop); 7a938: 202a 0014 movel %a2@(20),%d0 7a93c: 0800 0008 btst #8,%d0 7a940: 6700 017a beqw 7aabc /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 7a944: 7609 moveq #9,%d3 7a946: b682 cmpl %d2,%d3 7a948: 641a bccs 7a964 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 7a94a: 4eb9 0008 1084 jsr 81084 <__errno> 7a950: 76ff moveq #-1,%d3 7a952: 2040 moveal %d0,%a0 7a954: 7016 moveq #22,%d0 7a956: 2080 movel %d0,%a0@ va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7a958: 2003 movel %d3,%d0 7a95a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 7a960: 4e5e unlk %fp 7a962: 4e75 rts /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 7a964: 363b 2a08 movew %pc@(7a96e ,%d2:l:2),%d3 7a968: 48c3 extl %d3 7a96a: 4efb 3802 jmp %pc@(7a96e ,%d3:l) 7a96e: 00b8 00ac 009c oril #11272348,%d0 <== NOT EXECUTED 7a974: 0082 0030 0014 oril #3145748,%d2 <== NOT EXECUTED 7a97a: 0014 024 <== NOT EXECUTED 7a97c: 0014 024 <== NOT EXECUTED 7a97e: 0014 024 <== NOT EXECUTED 7a980: 0014 024 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 7a982: 4eb9 0008 1084 jsr 81084 <__errno> 7a988: 76ff moveq #-1,%d3 7a98a: 2040 moveal %d0,%a0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7a98c: 2003 movel %d3,%d0 7a98e: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 7a994: 20bc 0000 0086 movel #134,%a0@ va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7a99a: 4e5e unlk %fp 7a99c: 4e75 rts 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 ) ); 7a99e: 2f10 movel %a0@,%sp@- /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 7a9a0: 4283 clrl %d3 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 ) ); 7a9a2: 4eb9 0004 7cb4 jsr 47cb4 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 7a9a8: 222a 0014 movel %a2@(20),%d1 7a9ac: 588f addql #4,%sp 7a9ae: 0280 0000 0201 andil #513,%d0 7a9b4: 0281 ffff fdfe andil #-514,%d1 7a9ba: 8081 orl %d1,%d0 7a9bc: 2540 0014 movel %d0,%a2@(20) * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 7a9c0: 206a 003c moveal %a2@(60),%a0 7a9c4: 2068 0030 moveal %a0@(48),%a0 7a9c8: 4a88 tstl %a0 7a9ca: 678c beqs 7a958 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 7a9cc: 2f0a movel %a2,%sp@- 7a9ce: 2f02 movel %d2,%sp@- 7a9d0: 4e90 jsr %a0@ if (err) { 7a9d2: 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 ); 7a9d4: 2400 movel %d0,%d2 if (err) { 7a9d6: 6780 beqs 7a958 errno = err; 7a9d8: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 7a9de: 76ff moveq #-1,%d3 <== NOT EXECUTED 7a9e0: 2040 moveal %d0,%a0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7a9e2: 2003 movel %d3,%d0 <== NOT EXECUTED if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 7a9e4: 2082 movel %d2,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7a9e6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 7a9ec: 4e5e unlk %fp <== NOT EXECUTED 7a9ee: 4e75 rts <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 7a9f0: 2f00 movel %d0,%sp@- 7a9f2: 4eb9 0004 7a24 jsr 47a24 7a9f8: 588f addql #4,%sp 7a9fa: 2600 movel %d0,%d3 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 7a9fc: 6cc2 bges 7a9c0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7a9fe: 2003 movel %d3,%d0 <== NOT EXECUTED 7aa00: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 7aa06: 4e5e unlk %fp <== NOT EXECUTED 7aa08: 4e75 rts <== NOT EXECUTED * 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 ) ) 7aa0a: 4a90 tstl %a0@ 7aa0c: 6766 beqs 7aa74 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 7aa0e: 4283 clrl %d3 7aa10: 08c0 000b bset #11,%d0 7aa14: 2540 0014 movel %d0,%a2@(20) 7aa18: 60a6 bras 7a9c0 diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 7aa1a: 2600 movel %d0,%d3 7aa1c: 720b moveq #11,%d1 7aa1e: e2ab lsrl %d1,%d3 7aa20: 7001 moveq #1,%d0 7aa22: c680 andl %d0,%d3 7aa24: 609a bras 7a9c0 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 7aa26: 2010 movel %a0@,%d0 if ( fd2 ) 7aa28: 6700 00ac beqw 7aad6 diop = rtems_libio_iop( fd2 ); 7aa2c: b081 cmpl %d1,%d0 <== NOT EXECUTED 7aa2e: 6452 bccs 7aa82 <== NOT EXECUTED 7aa30: ed88 lsll #6,%d0 <== NOT EXECUTED 7aa32: 41f1 0800 lea %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED 7aa36: 2608 movel %a0,%d3 <== 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); 7aa38: 9689 subl %a1,%d3 <== NOT EXECUTED 7aa3a: ec83 asrl #6,%d3 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 7aa3c: 216a 0018 0018 movel %a2@(24),%a0@(24) <== NOT EXECUTED 7aa42: 216a 001c 001c movel %a2@(28),%a0@(28) <== NOT EXECUTED 7aa48: 216a 0020 0020 movel %a2@(32),%a0@(32) <== NOT EXECUTED 7aa4e: 216a 0024 0024 movel %a2@(36),%a0@(36) <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 7aa54: 216a 003c 003c movel %a2@(60),%a0@(60) <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 7aa5a: 216a 0028 0028 movel %a2@(40),%a0@(40) <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 7aa60: 216a 0038 0038 movel %a2@(56),%a0@(56) <== NOT EXECUTED diop->flags = iop->flags; 7aa66: 216a 0014 0014 movel %a2@(20),%a0@(20) <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 7aa6c: 4a83 tstl %d3 7aa6e: 6c00 ff50 bgew 7a9c0 7aa72: 608a bras 7a9fe <== NOT EXECUTED */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 7aa74: 4283 clrl %d3 <== NOT EXECUTED 7aa76: 0880 000b bclr #11,%d0 <== NOT EXECUTED 7aa7a: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED 7aa7e: 6000 ff40 braw 7a9c0 <== NOT EXECUTED switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); 7aa82: 91c8 subal %a0,%a0 <== NOT EXECUTED 7aa84: 4283 clrl %d3 <== 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); 7aa86: 9689 subl %a1,%d3 <== NOT EXECUTED 7aa88: ec83 asrl #6,%d3 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 7aa8a: 216a 0018 0018 movel %a2@(24),%a0@(24) <== NOT EXECUTED 7aa90: 216a 001c 001c movel %a2@(28),%a0@(28) <== NOT EXECUTED 7aa96: 216a 0020 0020 movel %a2@(32),%a0@(32) <== NOT EXECUTED 7aa9c: 216a 0024 0024 movel %a2@(36),%a0@(36) <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 7aaa2: 216a 003c 003c movel %a2@(60),%a0@(60) <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 7aaa8: 216a 0028 0028 movel %a2@(40),%a0@(40) <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 7aaae: 216a 0038 0038 movel %a2@(56),%a0@(56) <== NOT EXECUTED diop->flags = iop->flags; 7aab4: 216a 0014 0014 movel %a2@(20),%a0@(20) <== NOT EXECUTED 7aaba: 60b0 bras 7aa6c <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 7aabc: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 7aac2: 76ff moveq #-1,%d3 <== NOT EXECUTED 7aac4: 7209 moveq #9,%d1 <== NOT EXECUTED 7aac6: 2040 moveal %d0,%a0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7aac8: 2003 movel %d3,%d0 <== NOT EXECUTED 7aaca: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 7aad0: 2081 movel %d1,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7aad2: 4e5e unlk %fp <== NOT EXECUTED 7aad4: 4e75 rts <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 7aad6: 4eb9 0004 7bfc jsr 47bfc 7aadc: 2040 moveal %d0,%a0 if ( diop == 0 ) { 7aade: 4a80 tstl %d0 7aae0: 6740 beqs 7ab22 7aae2: 2279 000a 6b6c moveal a6b6c ,%a1 7aae8: 2600 movel %d0,%d3 diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 7aaea: 9689 subl %a1,%d3 7aaec: ec83 asrl #6,%d3 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 7aaee: 216a 0018 0018 movel %a2@(24),%a0@(24) 7aaf4: 216a 001c 001c movel %a2@(28),%a0@(28) 7aafa: 216a 0020 0020 movel %a2@(32),%a0@(32) 7ab00: 216a 0024 0024 movel %a2@(36),%a0@(36) ret = -1; break; } } diop->handlers = iop->handlers; 7ab06: 216a 003c 003c movel %a2@(60),%a0@(60) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 7ab0c: 216a 0028 0028 movel %a2@(40),%a0@(40) break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 7ab12: 216a 0038 0038 movel %a2@(56),%a0@(56) diop->flags = iop->flags; 7ab18: 216a 0014 0014 movel %a2@(20),%a0@(20) 7ab1e: 6000 ff4c braw 7aa6c if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); if ( diop == 0 ) { 7ab22: 76ff moveq #-1,%d3 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 7ab24: 2003 movel %d3,%d0 <== NOT EXECUTED 7ab26: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 7ab2c: 4e5e unlk %fp <== NOT EXECUTED 7ab2e: 4e75 rts 0004ce08 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4ce08: 4e56 ffdc linkw %fp,#-36 4ce0c: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4ce10: 42a7 clrl %sp@- */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4ce12: 286e 0008 moveal %fp@(8),%a4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4ce16: 47f9 0004 5d2c lea 45d2c ,%a3 4ce1c: 42a7 clrl %sp@- 4ce1e: 2f39 0005 e900 movel 5e900 ,%sp@- */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4ce24: 262e 000c movel %fp@(12),%d3 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4ce28: 4e93 jsr %a3@ 4ce2a: 4fef 000c lea %sp@(12),%sp 4ce2e: 4a80 tstl %d0 4ce30: 667e bnes 4ceb0 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 4ce32: 2414 movel %a4@,%d2 <== NOT EXECUTED if (pipe == NULL) { 4ce34: 6700 008a beqw 4cec0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4ce38: 42a7 clrl %sp@- <== NOT EXECUTED 4ce3a: 2042 moveal %d2,%a0 <== NOT EXECUTED 4ce3c: 42a7 clrl %sp@- <== NOT EXECUTED 4ce3e: 2f28 0028 movel %a0@(40),%sp@- <== NOT EXECUTED 4ce42: 4e93 jsr %a3@ <== NOT EXECUTED 4ce44: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ce48: 4a80 tstl %d0 <== NOT EXECUTED 4ce4a: 675a beqs 4cea6 <== NOT EXECUTED 4ce4c: 347c fffc moveaw #-4,%a2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4ce50: 4a94 tstl %a4@ <== NOT EXECUTED 4ce52: 6700 023a beqw 4d08e <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4ce56: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4ce5c: 4bf9 0004 5e68 lea 45e68 ,%a5 <== NOT EXECUTED 4ce62: 4e95 jsr %a5@ <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4ce64: 588f addql #4,%sp <== NOT EXECUTED 4ce66: 4a8a tstl %a2 <== NOT EXECUTED 4ce68: 6630 bnes 4ce9a <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4ce6a: 2043 moveal %d3,%a0 <== NOT EXECUTED 4ce6c: 7006 moveq #6,%d0 <== NOT EXECUTED 4ce6e: 7404 moveq #4,%d2 <== NOT EXECUTED 4ce70: 2228 0014 movel %a0@(20),%d1 <== NOT EXECUTED 4ce74: c081 andl %d1,%d0 <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 4ce76: 2454 moveal %a4@,%a2 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 4ce78: b480 cmpl %d0,%d2 <== NOT EXECUTED 4ce7a: 6700 023e beqw 4d0ba <== NOT EXECUTED 4ce7e: 7206 moveq #6,%d1 <== NOT EXECUTED 4ce80: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ce82: 6700 0310 beqw 4d194 <== NOT EXECUTED 4ce86: 143c 0002 moveb #2,%d2 <== NOT EXECUTED 4ce8a: b480 cmpl %d0,%d2 <== NOT EXECUTED 4ce8c: 6700 018a beqw 4d018 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 4ce90: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4ce94: 95ca subal %a2,%a2 <== NOT EXECUTED 4ce96: 4e95 jsr %a5@ <== NOT EXECUTED return 0; 4ce98: 588f addql #4,%sp <== NOT EXECUTED out_error: pipe_release(pipep, iop); return err; } 4ce9a: 200a movel %a2,%d0 <== NOT EXECUTED 4ce9c: 4cee 3c1c ffdc moveml %fp@(-36),%d2-%d4/%a2-%a5 <== NOT EXECUTED 4cea2: 4e5e unlk %fp <== NOT EXECUTED 4cea4: 4e75 rts <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4cea6: 95ca subal %a2,%a2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4cea8: 4a94 tstl %a4@ <== NOT EXECUTED 4ceaa: 66aa bnes 4ce56 <== NOT EXECUTED 4ceac: 6000 01e0 braw 4d08e <== NOT EXECUTED ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4ceb0: 347c fffc moveaw #-4,%a2 return 0; out_error: pipe_release(pipep, iop); return err; } 4ceb4: 200a movel %a2,%d0 4ceb6: 4cee 3c1c ffdc moveml %fp@(-36),%d2-%d4/%a2-%a5 4cebc: 4e5e unlk %fp 4cebe: 4e75 rts { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 4cec0: 4878 0034 pea 34 <== NOT EXECUTED 4cec4: 45f9 0004 ac20 lea 4ac20 ,%a2 <== NOT EXECUTED 4ceca: 4e92 jsr %a2@ <== NOT EXECUTED if (pipe == NULL) 4cecc: 588f addql #4,%sp <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 4cece: 2a40 moveal %d0,%a5 <== NOT EXECUTED 4ced0: 2400 movel %d0,%d2 <== NOT EXECUTED if (pipe == NULL) 4ced2: 6700 03a4 beqw 4d278 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); 4ced6: 4878 0200 pea 200 <== NOT EXECUTED int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); 4ceda: 2040 moveal %d0,%a0 <== NOT EXECUTED pipe->Size = PIPE_BUF; 4cedc: 203c 0000 0200 movel #512,%d0 <== NOT EXECUTED int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); 4cee2: 4298 clrl %a0@+ <== NOT EXECUTED 4cee4: 5888 addql #4,%a0 <== NOT EXECUTED 4cee6: 4298 clrl %a0@+ <== NOT EXECUTED 4cee8: 4298 clrl %a0@+ <== NOT EXECUTED 4ceea: 4298 clrl %a0@+ <== NOT EXECUTED 4ceec: 4298 clrl %a0@+ <== NOT EXECUTED 4ceee: 4298 clrl %a0@+ <== NOT EXECUTED 4cef0: 4298 clrl %a0@+ <== NOT EXECUTED 4cef2: 4298 clrl %a0@+ <== NOT EXECUTED 4cef4: 4298 clrl %a0@+ <== NOT EXECUTED 4cef6: 4298 clrl %a0@+ <== NOT EXECUTED 4cef8: 4298 clrl %a0@+ <== NOT EXECUTED 4cefa: 4290 clrl %a0@ <== NOT EXECUTED pipe->Size = PIPE_BUF; 4cefc: 2b40 0004 movel %d0,%a5@(4) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4cf00: 4e92 jsr %a2@ <== NOT EXECUTED if (! pipe->Buffer) 4cf02: 588f addql #4,%sp <== NOT EXECUTED if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); 4cf04: 2a80 movel %d0,%a5@ <== NOT EXECUTED if (! pipe->Buffer) 4cf06: 6700 038e beqw 4d296 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 4cf0a: 486d 002c pea %a5@(44) <== NOT EXECUTED 4cf0e: 45f9 0004 db04 lea 4db04 ,%a2 <== NOT EXECUTED 4cf14: 1039 0005 da90 moveb 5da90 ,%d0 <== NOT EXECUTED 4cf1a: 42a7 clrl %sp@- <== NOT EXECUTED 4cf1c: 49c0 extbl %d0 <== NOT EXECUTED 4cf1e: 42a7 clrl %sp@- <== NOT EXECUTED 4cf20: 0080 5049 7200 oril #1346990592,%d0 <== NOT EXECUTED 4cf26: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4cf28: 4e92 jsr %a2@ <== NOT EXECUTED 4cf2a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4cf2e: 4a80 tstl %d0 <== NOT EXECUTED 4cf30: 6600 01c4 bnew 4d0f6 <== 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( 4cf34: 486d 0030 pea %a5@(48) <== NOT EXECUTED 4cf38: 283c 0004 dc00 movel #318464,%d4 <== NOT EXECUTED 4cf3e: 1039 0005 da90 moveb 5da90 ,%d0 <== NOT EXECUTED 4cf44: 42a7 clrl %sp@- <== NOT EXECUTED 4cf46: 49c0 extbl %d0 <== NOT EXECUTED 4cf48: 42a7 clrl %sp@- <== NOT EXECUTED 4cf4a: 0080 5049 7700 oril #1346991872,%d0 <== NOT EXECUTED 4cf50: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4cf52: 4e92 jsr %a2@ <== NOT EXECUTED 4cf54: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4cf58: 4a80 tstl %d0 <== NOT EXECUTED 4cf5a: 6600 0190 bnew 4d0ec <== 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( 4cf5e: 486d 0028 pea %a5@(40) <== NOT EXECUTED 4cf62: 1039 0005 da90 moveb 5da90 ,%d0 <== NOT EXECUTED 4cf68: 42a7 clrl %sp@- <== NOT EXECUTED 4cf6a: 4878 0010 pea 10 <== NOT EXECUTED 4cf6e: 49c0 extbl %d0 <== NOT EXECUTED 4cf70: 4878 0001 pea 1 <== NOT EXECUTED 4cf74: 0080 5049 7300 oril #1346990848,%d0 <== NOT EXECUTED 4cf7a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4cf7c: 4eb9 0004 5a8c jsr 45a8c <== NOT EXECUTED 4cf82: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4cf86: 4a80 tstl %d0 <== NOT EXECUTED 4cf88: 6600 0158 bnew 4d0e2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 4cf8c: 280e movel %fp,%d4 <== NOT EXECUTED 4cf8e: 5184 subql #8,%d4 <== NOT EXECUTED 4cf90: 2042 moveal %d2,%a0 <== NOT EXECUTED 4cf92: 4bf9 0004 752c lea 4752c <_Objects_Get>,%a5 <== NOT EXECUTED { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4cf98: 45f9 0004 7dbc lea 47dbc <_Thread_Enable_dispatch>,%a2 <== NOT EXECUTED 4cf9e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4cfa0: 2f28 002c movel %a0@(44),%sp@- <== NOT EXECUTED 4cfa4: 4879 0005 f9e8 pea 5f9e8 <_Barrier_Information> <== NOT EXECUTED 4cfaa: 4e95 jsr %a5@ <== 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 4cfac: 223c 1000 0000 movel #268435456,%d1 <== NOT EXECUTED 4cfb2: 2040 moveal %d0,%a0 <== NOT EXECUTED 4cfb4: 83a8 004c orl %d1,%a0@(76) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4cfb8: 4e92 jsr %a2@ <== NOT EXECUTED 4cfba: 2042 moveal %d2,%a0 <== NOT EXECUTED 4cfbc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4cfbe: 2f28 0030 movel %a0@(48),%sp@- <== NOT EXECUTED 4cfc2: 4879 0005 f9e8 pea 5f9e8 <_Barrier_Information> <== NOT EXECUTED 4cfc8: 4e95 jsr %a5@ <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 4cfca: 223c 1000 0000 movel #268435456,%d1 <== NOT EXECUTED 4cfd0: 2040 moveal %d0,%a0 <== NOT EXECUTED 4cfd2: 83a8 004c orl %d1,%a0@(76) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4cfd6: 4e92 jsr %a2@ <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 4cfd8: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4cfdc: 1039 0005 da90 moveb 5da90 ,%d0 <== NOT EXECUTED 4cfe2: 49c0 extbl %d0 <== NOT EXECUTED 4cfe4: 2200 movel %d0,%d1 <== NOT EXECUTED 4cfe6: 5281 addql #1,%d1 <== NOT EXECUTED 4cfe8: 13c1 0005 da90 moveb %d1,5da90 <== NOT EXECUTED 4cfee: 727a moveq #122,%d1 <== NOT EXECUTED 4cff0: b280 cmpl %d0,%d1 <== NOT EXECUTED 4cff2: 6600 fe44 bnew 4ce38 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4cff6: 2042 moveal %d2,%a0 <== NOT EXECUTED pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') c = 'a'; 4cff8: 7061 moveq #97,%d0 <== NOT EXECUTED 4cffa: 13c0 0005 da90 moveb %d0,5da90 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4d000: 42a7 clrl %sp@- <== NOT EXECUTED 4d002: 42a7 clrl %sp@- <== NOT EXECUTED 4d004: 2f28 0028 movel %a0@(40),%sp@- <== NOT EXECUTED 4d008: 4e93 jsr %a3@ <== NOT EXECUTED 4d00a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d00e: 4a80 tstl %d0 <== NOT EXECUTED 4d010: 6700 fe94 beqw 4cea6 <== NOT EXECUTED 4d014: 6000 fe36 braw 4ce4c <== NOT EXECUTED pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4d018: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4d01c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d01e: 5288 addql #1,%a0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4d020: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED if (pipe->Readers ++ == 0) 4d024: 2548 0010 movel %a0,%a2@(16) <== NOT EXECUTED 4d028: 4a80 tstl %d0 <== NOT EXECUTED 4d02a: 6700 01c2 beqw 4d1ee <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 4d02e: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4d032: 6600 fe5c bnew 4ce90 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 4d036: 7001 moveq #1,%d0 <== NOT EXECUTED 4d038: 2043 moveal %d3,%a0 <== NOT EXECUTED 4d03a: c0a8 0014 andl %a0@(20),%d0 <== NOT EXECUTED 4d03e: 6600 fe50 bnew 4ce90 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 4d042: 282a 0024 movel %a2@(36),%d4 <== NOT EXECUTED 4d046: 243c 0004 dce8 movel #318696,%d2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4d04c: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d050: 4e95 jsr %a5@ <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4d052: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d054: 42a7 clrl %sp@- <== NOT EXECUTED 4d056: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4d05a: 4e90 jsr %a0@ <== NOT EXECUTED 4d05c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d060: 4a80 tstl %d0 <== NOT EXECUTED 4d062: 6600 01b2 bnew 4d216 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4d066: 42a7 clrl %sp@- <== NOT EXECUTED 4d068: 42a7 clrl %sp@- <== NOT EXECUTED 4d06a: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d06e: 4e93 jsr %a3@ <== NOT EXECUTED 4d070: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d074: 4a80 tstl %d0 <== NOT EXECUTED 4d076: 6600 019e bnew 4d216 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 4d07a: b8aa 0024 cmpl %a2@(36),%d4 <== NOT EXECUTED 4d07e: 67cc beqs 4d04c <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 4d080: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d084: 95ca subal %a2,%a2 <== NOT EXECUTED 4d086: 4e95 jsr %a5@ <== NOT EXECUTED return 0; 4d088: 588f addql #4,%sp <== NOT EXECUTED 4d08a: 6000 fe0e braw 4ce9a <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 4d08e: 4a8a tstl %a2 <== NOT EXECUTED 4d090: 6600 0198 bnew 4d22a <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d094: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4d09a: 4bf9 0004 5e68 lea 45e68 ,%a5 <== NOT EXECUTED if (*pipep == NULL) { if (err) pipe_free(pipe); else *pipep = pipe; 4d0a0: 2882 movel %d2,%a4@ <== NOT EXECUTED err = pipe_new(pipep); if (err) return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4d0a2: 7404 moveq #4,%d2 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d0a4: 4e95 jsr %a5@ <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 4d0a6: 2454 moveal %a4@,%a2 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 4d0a8: 2043 moveal %d3,%a0 <== NOT EXECUTED 4d0aa: 7006 moveq #6,%d0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d0ac: 588f addql #4,%sp <== NOT EXECUTED err = pipe_new(pipep); if (err) return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4d0ae: 2228 0014 movel %a0@(20),%d1 <== NOT EXECUTED 4d0b2: c081 andl %d1,%d0 <== NOT EXECUTED 4d0b4: b480 cmpl %d0,%d2 <== NOT EXECUTED 4d0b6: 6600 fdc6 bnew 4ce7e <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 4d0ba: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4d0be: 666a bnes 4d12a <== NOT EXECUTED 4d0c0: 0801 0000 btst #0,%d1 <== NOT EXECUTED 4d0c4: 6764 beqs 4d12a <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop); 4d0c6: 2f03 movel %d3,%sp@- <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 4d0c8: 347c fffa moveaw #-6,%a2 <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop); 4d0cc: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4d0ce: 4eb9 0004 cce8 jsr 4cce8 <== NOT EXECUTED return err; 4d0d4: 508f addql #8,%sp <== NOT EXECUTED } 4d0d6: 200a movel %a2,%d0 <== NOT EXECUTED 4d0d8: 4cee 3c1c ffdc moveml %fp@(-36),%d2-%d4/%a2-%a5 <== NOT EXECUTED 4d0de: 4e5e unlk %fp <== NOT EXECUTED 4d0e0: 4e75 rts <== NOT EXECUTED if (c ++ == 'z') c = 'a'; return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 4d0e2: 2f2d 0030 movel %a5@(48),%sp@- <== NOT EXECUTED 4d0e6: 2044 moveal %d4,%a0 <== NOT EXECUTED 4d0e8: 4e90 jsr %a0@ <== NOT EXECUTED 4d0ea: 588f addql #4,%sp <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 4d0ec: 2f2d 002c movel %a5@(44),%sp@- <== NOT EXECUTED 4d0f0: 2044 moveal %d4,%a0 <== NOT EXECUTED 4d0f2: 4e90 jsr %a0@ <== NOT EXECUTED 4d0f4: 588f addql #4,%sp <== NOT EXECUTED err_rbar: free(pipe->Buffer); 4d0f6: 2f15 movel %a5@,%sp@- <== NOT EXECUTED 4d0f8: 243c 0004 a688 movel #304776,%d2 <== NOT EXECUTED 4d0fe: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d100: 4e90 jsr %a0@ <== NOT EXECUTED 4d102: 588f addql #4,%sp <== NOT EXECUTED err_buf: free(pipe); 4d104: 2042 moveal %d2,%a0 <== NOT EXECUTED err_sem: rtems_barrier_delete(pipe->writeBarrier); err_wbar: rtems_barrier_delete(pipe->readBarrier); err_rbar: free(pipe->Buffer); 4d106: 347c fffc moveaw #-4,%a2 <== NOT EXECUTED err_buf: free(pipe); 4d10a: 2f0d movel %a5,%sp@- <== NOT EXECUTED 4d10c: 4e90 jsr %a0@ <== NOT EXECUTED 4d10e: 588f addql #4,%sp <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d110: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4d116: 4bf9 0004 5e68 lea 45e68 ,%a5 <== NOT EXECUTED 4d11c: 4e95 jsr %a5@ <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4d11e: 588f addql #4,%sp <== NOT EXECUTED 4d120: 4a8a tstl %a2 <== NOT EXECUTED 4d122: 6700 fd46 beqw 4ce6a <== NOT EXECUTED 4d126: 6000 fd72 braw 4ce9a <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4d12a: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 4d12e: 2200 movel %d0,%d1 <== NOT EXECUTED 4d130: 5281 addql #1,%d1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4d132: 52aa 0024 addql #1,%a2@(36) <== NOT EXECUTED if (pipe->Writers ++ == 0) 4d136: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED 4d13a: 4a80 tstl %d0 <== NOT EXECUTED 4d13c: 6700 00c4 beqw 4d202 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 4d140: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4d144: 6600 fd4a bnew 4ce90 <== NOT EXECUTED prevCounter = pipe->readerCounter; 4d148: 282a 0020 movel %a2@(32),%d4 <== NOT EXECUTED 4d14c: 243c 0004 dce8 movel #318696,%d2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 4d152: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d156: 4e95 jsr %a5@ <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4d158: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d15a: 42a7 clrl %sp@- <== NOT EXECUTED 4d15c: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4d160: 4e90 jsr %a0@ <== NOT EXECUTED 4d162: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d166: 4a80 tstl %d0 <== NOT EXECUTED 4d168: 6600 00ac bnew 4d216 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4d16c: 42a7 clrl %sp@- <== NOT EXECUTED 4d16e: 42a7 clrl %sp@- <== NOT EXECUTED 4d170: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d174: 4e93 jsr %a3@ <== NOT EXECUTED 4d176: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d17a: 4a80 tstl %d0 <== NOT EXECUTED 4d17c: 6600 0098 bnew 4d216 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 4d180: b8aa 0020 cmpl %a2@(32),%d4 <== NOT EXECUTED 4d184: 67cc beqs 4d152 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 4d186: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d18a: 95ca subal %a2,%a2 <== NOT EXECUTED 4d18c: 4e95 jsr %a5@ <== NOT EXECUTED return 0; 4d18e: 588f addql #4,%sp <== NOT EXECUTED 4d190: 6000 fd08 braw 4ce9a <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4d194: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4d198: 2200 movel %d0,%d1 <== NOT EXECUTED 4d19a: 5281 addql #1,%d1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4d19c: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED if (pipe->Readers ++ == 0) 4d1a0: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED 4d1a4: 4a80 tstl %d0 <== NOT EXECUTED 4d1a6: 6734 beqs 4d1dc <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4d1a8: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 4d1ac: 2400 movel %d0,%d2 <== NOT EXECUTED 4d1ae: 5282 addql #1,%d2 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 4d1b0: 52aa 0024 addql #1,%a2@(36) <== NOT EXECUTED if (pipe->Writers ++ == 0) 4d1b4: 2542 0014 movel %d2,%a2@(20) <== NOT EXECUTED 4d1b8: 4a80 tstl %d0 <== NOT EXECUTED 4d1ba: 6600 fcd4 bnew 4ce90 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4d1be: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d1c2: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4d1c6: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED 4d1cc: 508f addql #8,%sp <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 4d1ce: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4d1d2: 95ca subal %a2,%a2 <== NOT EXECUTED 4d1d4: 4e95 jsr %a5@ <== NOT EXECUTED return 0; 4d1d6: 588f addql #4,%sp <== NOT EXECUTED 4d1d8: 6000 fcc0 braw 4ce9a <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 4d1dc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d1e0: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4d1e4: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED 4d1ea: 508f addql #8,%sp <== NOT EXECUTED 4d1ec: 60ba bras 4d1a8 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 4d1ee: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d1f2: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4d1f6: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED 4d1fc: 508f addql #8,%sp <== NOT EXECUTED 4d1fe: 6000 fe2e braw 4d02e <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 4d202: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d206: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4d20a: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED 4d210: 508f addql #8,%sp <== NOT EXECUTED 4d212: 6000 ff2c braw 4d140 <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop); 4d216: 2f03 movel %d3,%sp@- <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 4d218: 347c fffc moveaw #-4,%a2 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 4d21c: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4d21e: 4eb9 0004 cce8 jsr 4cce8 <== NOT EXECUTED return err; 4d224: 508f addql #8,%sp <== NOT EXECUTED 4d226: 6000 feae braw 4d0d6 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 4d22a: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d22c: 49f9 0004 dc00 lea 4dc00 ,%a4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); rtems_semaphore_delete(pipe->Semaphore); free(pipe->Buffer); 4d232: 47f9 0004 a688 lea 4a688 ,%a3 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 4d238: 2f28 002c movel %a0@(44),%sp@- <== NOT EXECUTED 4d23c: 4e94 jsr %a4@ <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 4d23e: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d240: 2f28 0030 movel %a0@(48),%sp@- <== NOT EXECUTED 4d244: 4e94 jsr %a4@ <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 4d246: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d248: 2f28 0028 movel %a0@(40),%sp@- <== NOT EXECUTED 4d24c: 4eb9 0004 5c54 jsr 45c54 <== NOT EXECUTED free(pipe->Buffer); 4d252: 2042 moveal %d2,%a0 <== NOT EXECUTED 4d254: 2f10 movel %a0@,%sp@- <== NOT EXECUTED 4d256: 4e93 jsr %a3@ <== NOT EXECUTED free(pipe); 4d258: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4d25a: 4e93 jsr %a3@ <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d25c: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4d262: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED 4d268: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED return 0; out_error: pipe_release(pipep, iop); return err; } 4d26c: 200a movel %a2,%d0 <== NOT EXECUTED 4d26e: 4cee 3c1c ffdc moveml %fp@(-36),%d2-%d4/%a2-%a5 <== NOT EXECUTED 4d274: 4e5e unlk %fp <== NOT EXECUTED 4d276: 4e75 rts <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d278: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4d27e: 4bf9 0004 5e68 lea 45e68 ,%a5 <== NOT EXECUTED static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) 4d284: 347c fff4 moveaw #-12,%a2 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4d288: 4e95 jsr %a5@ <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4d28a: 588f addql #4,%sp <== NOT EXECUTED 4d28c: 4a8a tstl %a2 <== NOT EXECUTED 4d28e: 6700 fbda beqw 4ce6a <== NOT EXECUTED 4d292: 6000 fc06 braw 4ce9a <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); err_rbar: free(pipe->Buffer); err_buf: free(pipe); 4d296: 2f0d movel %a5,%sp@- <== NOT EXECUTED 4d298: 243c 0004 a688 movel #304776,%d2 <== NOT EXECUTED 4d29e: 2042 moveal %d2,%a0 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); if (! pipe->Buffer) 4d2a0: 347c fff4 moveaw #-12,%a2 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); err_rbar: free(pipe->Buffer); err_buf: free(pipe); 4d2a4: 4e90 jsr %a0@ <== NOT EXECUTED 4d2a6: 588f addql #4,%sp <== NOT EXECUTED 4d2a8: 6000 fe66 braw 4d110 <== NOT EXECUTED 0004b138 : 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)) ) { 4b138: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4b13c: 2079 000a 6bb0 moveal a6bb0 ,%a0 <== NOT EXECUTED 4b142: b1fc 000a 6bb4 cmpal #682932,%a0 <== NOT EXECUTED 4b148: 6724 beqs 4b16e <== 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 ) { 4b14a: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4b14e: 2029 0010 movel %a1@(16),%d0 <== NOT EXECUTED 4b152: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 4b156: 6710 beqs 4b168 <== 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 ) { 4b158: 2050 moveal %a0@,%a0 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4b15a: b1fc 000a 6bb4 cmpal #682932,%a0 <== NOT EXECUTED 4b160: 670c beqs 4b16e <== 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 ) { 4b162: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 4b166: 66f0 bnes 4b158 <== NOT EXECUTED return true; } } return false; } 4b168: 4e5e unlk %fp <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4b16a: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } } return false; } 4b16c: 4e75 rts <== NOT EXECUTED 4b16e: 4e5e unlk %fp <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4b170: 4200 clrb %d0 <== NOT EXECUTED return true; } } return false; } 4b172: 4e75 rts 00043bb0 : long fpathconf( int fd, int name ) { 43bb0: 4e56 0000 linkw %fp,#0 43bb4: 202e 0008 movel %fp@(8),%d0 43bb8: 222e 000c movel %fp@(12),%d1 43bbc: 2f02 movel %d2,%sp@- long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 43bbe: b0b9 0006 1844 cmpl 61844 ,%d0 43bc4: 6400 00f0 bccw 43cb6 iop = rtems_libio_iop(fd); 43bc8: 2079 0006 2f48 moveal 62f48 ,%a0 43bce: ed88 lsll #6,%d0 43bd0: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 43bd2: 2428 0014 movel %a0@(20),%d2 43bd6: 0802 0008 btst #8,%d2 43bda: 6700 00da beqw 43cb6 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 43bde: 0802 0001 btst #1,%d2 43be2: 670a beqs 43bee /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 43be4: 2068 0028 moveal %a0@(40),%a0 switch ( name ) { 43be8: 700b moveq #11,%d0 43bea: b081 cmpl %d1,%d0 43bec: 6416 bccs 43c04 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 43bee: 4eb9 0005 1804 jsr 51804 <__errno> break; } return return_value; } 43bf4: 242e fffc movel %fp@(-4),%d2 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 43bf8: 2040 moveal %d0,%a0 43bfa: 7216 moveq #22,%d1 43bfc: 70ff moveq #-1,%d0 break; } return return_value; } 43bfe: 4e5e unlk %fp break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 43c00: 2081 movel %d1,%a0@ break; } return return_value; } 43c02: 4e75 rts * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 43c04: 303b 1a08 movew %pc@(43c0e ,%d1:l:2),%d0 43c08: 48c0 extl %d0 43c0a: 4efb 0802 jmp %pc@(43c0e ,%d0:l) 43c0e: 0090 0084 0078 oril #8650872,%d0 <== NOT EXECUTED 43c14: 006c 0154 <== NOT EXECUTED 43c16: 0060 0140 <== NOT EXECUTED 43c18: 0054 0124 <== NOT EXECUTED 43c1a: 0048 0110 <== NOT EXECUTED 43c1c: 003c 074 <== NOT EXECUTED 43c1e: 0030 060 <== NOT EXECUTED 43c20: 0024 044 <== NOT EXECUTED 43c22: 0018 030 <== NOT EXECUTED 43c24: 009c 242e fffc oril #607059964,%d4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c2a: 4e5e unlk %fp break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 43c2c: 2028 005c movel %a0@(92),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c30: 4e75 rts 43c32: 242e fffc movel %fp@(-4),%d2 43c36: 4e5e unlk %fp break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 43c38: 2028 0050 movel %a0@(80),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c3c: 4e75 rts 43c3e: 242e fffc movel %fp@(-4),%d2 43c42: 4e5e unlk %fp break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 43c44: 2028 0064 movel %a0@(100),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c48: 4e75 rts 43c4a: 242e fffc movel %fp@(-4),%d2 43c4e: 4e5e unlk %fp break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 43c50: 2028 0058 movel %a0@(88),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c54: 4e75 rts 43c56: 242e fffc movel %fp@(-4),%d2 43c5a: 4e5e unlk %fp break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 43c5c: 2028 0054 movel %a0@(84),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c60: 4e75 rts 43c62: 242e fffc movel %fp@(-4),%d2 43c66: 4e5e unlk %fp break; case _PC_PATH_MAX: return_value = the_limits->path_max; break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 43c68: 2028 004c movel %a0@(76),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c6c: 4e75 rts 43c6e: 242e fffc movel %fp@(-4),%d2 43c72: 4e5e unlk %fp break; case _PC_NAME_MAX: return_value = the_limits->name_max; break; case _PC_PATH_MAX: return_value = the_limits->path_max; 43c74: 2028 0048 movel %a0@(72),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c78: 4e75 rts 43c7a: 242e fffc movel %fp@(-4),%d2 43c7e: 4e5e unlk %fp break; case _PC_MAX_INPUT: return_value = the_limits->max_input; break; case _PC_NAME_MAX: return_value = the_limits->name_max; 43c80: 2028 0044 movel %a0@(68),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c84: 4e75 rts 43c86: 242e fffc movel %fp@(-4),%d2 43c8a: 4e5e unlk %fp break; case _PC_MAX_CANON: return_value = the_limits->max_canon; break; case _PC_MAX_INPUT: return_value = the_limits->max_input; 43c8c: 2028 0040 movel %a0@(64),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c90: 4e75 rts 43c92: 242e fffc movel %fp@(-4),%d2 43c96: 4e5e unlk %fp switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; break; case _PC_MAX_CANON: return_value = the_limits->max_canon; 43c98: 2028 003c movel %a0@(60),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43c9c: 4e75 rts 43c9e: 242e fffc movel %fp@(-4),%d2 43ca2: 4e5e unlk %fp the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; 43ca4: 2028 0038 movel %a0@(56),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43ca8: 4e75 rts 43caa: 242e fffc movel %fp@(-4),%d2 43cae: 4e5e unlk %fp break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 43cb0: 2028 0060 movel %a0@(96),%d0 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43cb4: 4e75 rts rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 43cb6: 4eb9 0005 1804 jsr 51804 <__errno> 43cbc: 7409 moveq #9,%d2 43cbe: 2040 moveal %d0,%a0 43cc0: 70ff moveq #-1,%d0 43cc2: 2082 movel %d2,%a0@ rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 43cc4: 242e fffc movel %fp@(-4),%d2 43cc8: 4e5e unlk %fp 43cca: 4e75 rts 0004a688 : void free( void *ptr ) { MSBUMP(free_calls, 1); 4a688: 4e56 0000 linkw %fp,#0 4a68c: 52b9 0005 f00c addql #1,5f00c 4a692: 2f02 movel %d2,%sp@- 4a694: 242e 0008 movel %fp@(8),%d2 if ( !ptr ) 4a698: 6732 beqs 4a6cc /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 4a69a: 7003 moveq #3,%d0 4a69c: b0b9 0005 f2dc cmpl 5f2dc <_System_state_Current>,%d0 4a6a2: 6758 beqs 4a6fc #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4a6a4: 2079 0005 df86 moveal 5df86 ,%a0 4a6aa: 4a88 tstl %a0 4a6ac: 670a beqs 4a6b8 (*rtems_malloc_statistics_helpers->at_free)(ptr); 4a6ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a6b0: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED 4a6b4: 4e90 jsr %a0@ <== NOT EXECUTED 4a6b6: 588f addql #4,%sp <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 4a6b8: 2f02 movel %d2,%sp@- 4a6ba: 2f39 0005 d900 movel 5d900 ,%sp@- 4a6c0: 4eb9 0004 c11c jsr 4c11c <_Protected_heap_Free> 4a6c6: 508f addql #8,%sp 4a6c8: 4a00 tstb %d0 4a6ca: 6708 beqs 4a6d4 RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 4a6cc: 242e fffc movel %fp@(-4),%d2 4a6d0: 4e5e unlk %fp 4a6d2: 4e75 rts if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end 4a6d4: 2079 0005 d900 moveal 5d900 ,%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", 4a6da: 2f28 001c movel %a0@(28),%sp@- <== NOT EXECUTED 4a6de: 2f28 0018 movel %a0@(24),%sp@- <== NOT EXECUTED 4a6e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a6e4: 4879 0005 cba2 pea 5cba2 <== NOT EXECUTED 4a6ea: 4eb9 0004 33ac jsr 433ac <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 4a6f0: 242e fffc movel %fp@(-4),%d2 <== 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", 4a6f4: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 4a6f8: 4e5e unlk %fp <== NOT EXECUTED 4a6fa: 4e75 rts <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 4a6fc: 4eb9 0004 ab84 jsr 4ab84 4a702: 4a00 tstb %d0 4a704: 669e bnes 4a6a4 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 4a706: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 4a70a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a70e: 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); 4a710: 4ef9 0004 abc4 jmp 4abc4 <== NOT EXECUTED ... 000687f8 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 687f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 687fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 687fe: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 68802: b5fc 000a 6bc8 cmpal #682952,%a2 <== NOT EXECUTED 68808: 6740 beqs 6884a <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 6880a: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED 6880e: 4a88 tstl %a0 <== NOT EXECUTED 68810: 6710 beqs 68822 <== NOT EXECUTED 68812: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 68816: 4a88 tstl %a0 <== NOT EXECUTED 68818: 6708 beqs 68822 <== NOT EXECUTED 6881a: 486a 0004 pea %a2@(4) <== NOT EXECUTED 6881e: 4e90 jsr %a0@ <== NOT EXECUTED 68820: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 68822: 206a 0024 moveal %a2@(36),%a0 <== NOT EXECUTED 68826: 4a88 tstl %a0 <== NOT EXECUTED 68828: 6710 beqs 6883a <== NOT EXECUTED 6882a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6882e: 4a88 tstl %a0 <== NOT EXECUTED 68830: 6708 beqs 6883a <== NOT EXECUTED 68832: 486a 0018 pea %a2@(24) <== NOT EXECUTED 68836: 4e90 jsr %a0@ <== NOT EXECUTED 68838: 588f addql #4,%sp <== NOT EXECUTED free(env); 6883a: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 6883e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 68842: 4e5e unlk %fp <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 68844: 4ef9 0004 7840 jmp 47840 <== NOT EXECUTED } } 6884a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 6884e: 4e5e unlk %fp <== NOT EXECUTED 68850: 4e75 rts 0005b5d0 : int fstat( int fd, struct stat *sbuf ) { 5b5d0: 4e56 0000 linkw %fp,#0 5b5d4: 202e 0008 movel %fp@(8),%d0 5b5d8: 2f0a movel %a2,%sp@- 5b5da: 2f02 movel %d2,%sp@- 5b5dc: 242e 000c movel %fp@(12),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 5b5e0: 6700 0096 beqw 5b678 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 5b5e4: b0b9 0005 d8f4 cmpl 5d8f4 ,%d0 5b5ea: 6456 bccs 5b642 5b5ec: 2479 0005 eff4 moveal 5eff4 ,%a2 5b5f2: ed88 lsll #6,%d0 5b5f4: d5c0 addal %d0,%a2 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 5b5f6: 202a 0014 movel %a2@(20),%d0 5b5fa: 0280 0000 0100 andil #256,%d0 5b600: 6740 beqs 5b642 if ( !iop->handlers ) 5b602: 206a 003c moveal %a2@(60),%a0 5b606: 4a88 tstl %a0 5b608: 6738 beqs 5b642 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 5b60a: 4aa8 0018 tstl %a0@(24) 5b60e: 674c beqs 5b65c /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 5b610: 4878 0046 pea 46 5b614: 42a7 clrl %sp@- 5b616: 2f02 movel %d2,%sp@- 5b618: 4eb9 0004 f670 jsr 4f670 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 5b61e: 206a 003c moveal %a2@(60),%a0 5b622: 45ea 0018 lea %a2@(24),%a2 5b626: 4fef 000c lea %sp@(12),%sp 5b62a: 2d42 000c movel %d2,%fp@(12) } 5b62e: 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 ); 5b632: 2d4a 0008 movel %a2,%fp@(8) } 5b636: 246e fffc moveal %fp@(-4),%a2 5b63a: 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 ); 5b63c: 2268 0018 moveal %a0@(24),%a1 5b640: 4ed1 jmp %a1@ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 5b642: 4eb9 0004 ede0 jsr 4ede0 <__errno> * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b648: 242e fff8 movel %fp@(-8),%d2 iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 5b64c: 2040 moveal %d0,%a0 5b64e: 7009 moveq #9,%d0 * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b650: 246e fffc moveal %fp@(-4),%a2 5b654: 4e5e unlk %fp iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 5b656: 2080 movel %d0,%a0@ * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b658: 70ff moveq #-1,%d0 5b65a: 4e75 rts if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5b65c: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b662: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5b666: 2040 moveal %d0,%a0 <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b668: 70ff moveq #-1,%d0 <== NOT EXECUTED 5b66a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 5b66e: 4e5e unlk %fp <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5b670: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b676: 4e75 rts <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 5b678: 4eb9 0004 ede0 jsr 4ede0 <__errno> * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b67e: 242e fff8 movel %fp@(-8),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 5b682: 2040 moveal %d0,%a0 5b684: 720e moveq #14,%d1 * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b686: 70ff moveq #-1,%d0 5b688: 246e fffc moveal %fp@(-4),%a2 5b68c: 4e5e unlk %fp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 5b68e: 2081 movel %d1,%a0@ * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 5b690: 4e75 rts 000676d0 : #include int fsync( int fd ) { 676d0: 4e56 0000 linkw %fp,#0 676d4: 202e 0008 movel %fp@(8),%d0 rtems_libio_t *iop; rtems_libio_check_fd( fd ); 676d8: b0b9 000a 1ec4 cmpl a1ec4 ,%d0 676de: 6430 bccs 67710 iop = rtems_libio_iop( fd ); 676e0: 2079 000a 6b6c moveal a6b6c ,%a0 676e6: ed88 lsll #6,%d0 676e8: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 676ea: 2028 0014 movel %a0@(20),%d0 676ee: 0800 0008 btst #8,%d0 676f2: 671c beqs 67710 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 676f4: 44c0 movew %d0,%ccr 676f6: 662a bnes 67722 /* * Now process the fsync(). */ if ( !iop->handlers ) 676f8: 2268 003c moveal %a0@(60),%a1 676fc: 4a89 tstl %a1 676fe: 6710 beqs 67710 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 67700: 2269 0028 moveal %a1@(40),%a1 67704: 4a89 tstl %a1 67706: 672c beqs 67734 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 67708: 2d48 0008 movel %a0,%fp@(8) } 6770c: 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 ); 6770e: 4ed1 jmp %a1@ /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 67710: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 67716: 4e5e unlk %fp <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 67718: 2040 moveal %d0,%a0 <== NOT EXECUTED 6771a: 7009 moveq #9,%d0 <== NOT EXECUTED 6771c: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 6771e: 70ff moveq #-1,%d0 <== NOT EXECUTED 67720: 4e75 rts <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 67722: 4eb9 0008 1084 jsr 81084 <__errno> 67728: 7216 moveq #22,%d1 6772a: 2040 moveal %d0,%a0 if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 6772c: 70ff moveq #-1,%d0 6772e: 4e5e unlk %fp rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 67730: 2081 movel %d1,%a0@ if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 67732: 4e75 rts if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 67734: 4eb9 0008 1084 jsr 81084 <__errno> return (*iop->handlers->fsync_h)( iop ); } 6773a: 4e5e unlk %fp if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 6773c: 2040 moveal %d0,%a0 return (*iop->handlers->fsync_h)( iop ); } 6773e: 70ff moveq #-1,%d0 if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 67740: 20bc 0000 0086 movel #134,%a0@ return (*iop->handlers->fsync_h)( iop ); } 67746: 4e75 rts 0004a718 : int ftruncate( int fd, off_t length ) { 4a718: 4e56 ffec linkw %fp,#-20 4a71c: 202e 0008 movel %fp@(8),%d0 4a720: 2f0a movel %a2,%sp@- rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 4a722: b0b9 0005 d8f4 cmpl 5d8f4 ,%d0 4a728: 647a bccs 4a7a4 iop = rtems_libio_iop( fd ); 4a72a: 2479 0005 eff4 moveal 5eff4 ,%a2 4a730: ed88 lsll #6,%d0 4a732: d5c0 addal %d0,%a2 rtems_libio_check_is_open(iop); 4a734: 202a 0014 movel %a2@(20),%d0 4a738: 0280 0000 0100 andil #256,%d0 4a73e: 6764 beqs 4a7a4 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4a740: 43ee ffec lea %fp@(-20),%a1 4a744: 22aa 0018 movel %a2@(24),%a1@ 4a748: 2d6a 001c fff0 movel %a2@(28),%fp@(-16) 4a74e: 2d6a 0020 fff4 movel %a2@(32),%fp@(-12) 4a754: 2d6a 0024 fff8 movel %a2@(36),%fp@(-8) if ( !loc.ops->node_type_h ) 4a75a: 206e fff8 moveal %fp@(-8),%a0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4a75e: 2d6a 0028 fffc movel %a2@(40),%fp@(-4) if ( !loc.ops->node_type_h ) 4a764: 2068 0010 moveal %a0@(16),%a0 4a768: 4a88 tstl %a0 4a76a: 6764 beqs 4a7d0 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 4a76c: 2f09 movel %a1,%sp@- 4a76e: 4e90 jsr %a0@ 4a770: 588f addql #4,%sp 4a772: 7201 moveq #1,%d1 4a774: b280 cmpl %d0,%d1 4a776: 6770 beqs 4a7e8 rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4a778: 7004 moveq #4,%d0 4a77a: c0aa 0014 andl %a2@(20),%d0 4a77e: 673a beqs 4a7ba if ( !iop->handlers->ftruncate_h ) 4a780: 206a 003c moveal %a2@(60),%a0 4a784: 2068 0020 moveal %a0@(32),%a0 4a788: 4a88 tstl %a0 4a78a: 6744 beqs 4a7d0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 4a78c: 2f2e 0010 movel %fp@(16),%sp@- 4a790: 2f2e 000c movel %fp@(12),%sp@- 4a794: 2f0a movel %a2,%sp@- 4a796: 4e90 jsr %a0@ } 4a798: 246e ffe8 moveal %fp@(-24),%a2 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 4a79c: 4fef 000c lea %sp@(12),%sp } 4a7a0: 4e5e unlk %fp 4a7a2: 4e75 rts rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 4a7a4: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7aa: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 4a7ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a7b0: 7209 moveq #9,%d1 <== NOT EXECUTED 4a7b2: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7b4: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 4a7b6: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7b8: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4a7ba: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7c0: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4a7c4: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a7c6: 7216 moveq #22,%d1 <== NOT EXECUTED 4a7c8: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7ca: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4a7cc: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7ce: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a7d0: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7d6: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a7da: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a7dc: 70ff moveq #-1,%d0 <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7de: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a7e0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7e6: 4e75 rts <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 4a7e8: 4eb9 0004 ede0 jsr 4ede0 <__errno> if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7ee: 246e ffe8 moveal %fp@(-24),%a2 loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 4a7f2: 2040 moveal %d0,%a0 4a7f4: 7215 moveq #21,%d1 4a7f6: 70ff moveq #-1,%d0 if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7f8: 4e5e unlk %fp loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 4a7fa: 2081 movel %d1,%a0@ if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a7fc: 4e75 rts ... 00097f30 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 97f30: 4e56 ffec linkw %fp,#-20 97f34: 202e 0008 movel %fp@(8),%d0 97f38: 2f0a movel %a2,%sp@- /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 97f3a: b0b9 000a 1ec4 cmpl a1ec4 ,%d0 97f40: 655e bcss 97fa0 97f42: 95ca subal %a2,%a2 <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 97f44: 43ee ffec lea %fp@(-20),%a1 97f48: 22aa 0018 movel %a2@(24),%a1@ 97f4c: 2d6a 001c fff0 movel %a2@(28),%fp@(-16) 97f52: 2d6a 0020 fff4 movel %a2@(32),%fp@(-12) 97f58: 2d6a 0024 fff8 movel %a2@(36),%fp@(-8) if ( !loc.ops->node_type_h ) 97f5e: 206e fff8 moveal %fp@(-8),%a0 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 97f62: 2d6a 0028 fffc movel %a2@(40),%fp@(-4) if ( !loc.ops->node_type_h ) 97f68: 2068 0010 moveal %a0@(16),%a0 97f6c: 4a88 tstl %a0 97f6e: 6752 beqs 97fc2 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 97f70: 2f09 movel %a1,%sp@- 97f72: 4e90 jsr %a0@ 97f74: 588f addql #4,%sp 97f76: 7201 moveq #1,%d1 97f78: b280 cmpl %d0,%d1 97f7a: 6630 bnes 97fac /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 97f7c: 206a 003c moveal %a2@(60),%a0 97f80: 2068 0008 moveal %a0@(8),%a0 97f84: 4a88 tstl %a0 97f86: 673a beqs 97fc2 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 97f88: 2f2e 0010 movel %fp@(16),%sp@- 97f8c: 2f2e 000c movel %fp@(12),%sp@- 97f90: 2f0a movel %a2,%sp@- 97f92: 4e90 jsr %a0@ } 97f94: 246e ffe8 moveal %fp@(-24),%a2 */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 97f98: 4fef 000c lea %sp@(12),%sp } 97f9c: 4e5e unlk %fp 97f9e: 4e75 rts /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 97fa0: 2479 000a 6b6c moveal a6b6c ,%a2 97fa6: ed88 lsll #6,%d0 97fa8: d5c0 addal %d0,%a2 97faa: 6098 bras 97f44 loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 97fac: 4eb9 0008 1084 jsr 81084 <__errno> if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 97fb2: 246e ffe8 moveal %fp@(-24),%a2 loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 97fb6: 2040 moveal %d0,%a0 97fb8: 7214 moveq #20,%d1 97fba: 70ff moveq #-1,%d0 if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 97fbc: 4e5e unlk %fp loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 97fbe: 2081 movel %d1,%a0@ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 97fc0: 4e75 rts * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 97fc2: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 97fc8: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 97fcc: 2040 moveal %d0,%a0 <== NOT EXECUTED 97fce: 70ff moveq #-1,%d0 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 97fd0: 4e5e unlk %fp <== NOT EXECUTED * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 97fd2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 97fd8: 4e75 rts <== NOT EXECUTED ... 00067858 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 67858: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6785c: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED return _POSIX_types_Gid; } 67862: 4e5e unlk %fp <== NOT EXECUTED 67864: 3028 0034 movew %a0@(52),%d0 <== NOT EXECUTED 67868: 4e75 rts 00067e02 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 67e02: 4e56 ffe0 linkw %fp,#-32 67e06: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 67e0a: 242e 0008 movel %fp@(8),%d2 67e0e: 47fa fc26 lea %pc@(67a36 ),%a3 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 67e12: 49f9 0008 6bb4 lea 86bb4 ,%a4 struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 67e18: 2c2e 000c movel %fp@(12),%d6 67e1c: 246e 0010 moveal %fp@(16),%a2 67e20: 2a2e 0014 movel %fp@(20),%d5 67e24: 282e 0018 movel %fp@(24),%d4 FILE *fp; int match; init_etc_passwd_group(); 67e28: 4eb9 0006 7cbe jsr 67cbe if ((fp = fopen("/etc/group", "r")) == NULL) { 67e2e: 4879 0009 a7d7 pea 9a7d7 67e34: 4879 0009 8f15 pea 98f15 <_rodata_start+0x845> 67e3a: 4eb9 0008 1a28 jsr 81a28 67e40: 508f addql #8,%sp 67e42: 2600 movel %d0,%d3 67e44: 6778 beqs 67ebe errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 67e46: 2f04 movel %d4,%sp@- 67e48: 2f05 movel %d5,%sp@- 67e4a: 2f0a movel %a2,%sp@- 67e4c: 2f03 movel %d3,%sp@- 67e4e: 4e93 jsr %a3@ 67e50: 4fef 0010 lea %sp@(16),%sp 67e54: 4a80 tstl %d0 67e56: 6744 beqs 67e9c errno = EINVAL; fclose(fp); return -1; } if (name) { 67e58: 4a82 tstl %d2 67e5a: 672e beqs 67e8a match = (strcmp(grp->gr_name, name) == 0); 67e5c: 2f02 movel %d2,%sp@- 67e5e: 2f12 movel %a2@,%sp@- 67e60: 4e94 jsr %a4@ 67e62: 508f addql #8,%sp 67e64: 4a80 tstl %d0 67e66: 57c0 seq %d0 67e68: 49c0 extbl %d0 67e6a: 4480 negl %d0 } else { match = (grp->gr_gid == gid); } if (match) { 67e6c: 67d8 beqs 67e46 fclose(fp); 67e6e: 2f03 movel %d3,%sp@- 67e70: 4eb9 0008 11c2 jsr 811c2 *result = grp; 67e76: 206e 001c moveal %fp@(28),%a0 return 0; 67e7a: 588f addql #4,%sp else { match = (grp->gr_gid == gid); } if (match) { fclose(fp); *result = grp; 67e7c: 4280 clrl %d0 67e7e: 208a movel %a2,%a0@ } } fclose(fp); errno = EINVAL; return -1; } 67e80: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 67e86: 4e5e unlk %fp 67e88: 4e75 rts } if (name) { match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 67e8a: 4280 clrl %d0 <== NOT EXECUTED 67e8c: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 67e90: bc80 cmpl %d0,%d6 <== NOT EXECUTED 67e92: 57c0 seq %d0 <== NOT EXECUTED 67e94: 49c0 extbl %d0 <== NOT EXECUTED 67e96: 4480 negl %d0 <== NOT EXECUTED } if (match) { 67e98: 67ac beqs 67e46 <== NOT EXECUTED 67e9a: 60d2 bras 67e6e <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 67e9c: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 67ea2: 2040 moveal %d0,%a0 <== NOT EXECUTED 67ea4: 7016 moveq #22,%d0 <== NOT EXECUTED 67ea6: 2080 movel %d0,%a0@ <== NOT EXECUTED fclose(fp); 67ea8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 67eaa: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED return -1; 67eb0: 588f addql #4,%sp <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); 67eb2: 70ff moveq #-1,%d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 67eb4: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 67eba: 4e5e unlk %fp <== NOT EXECUTED 67ebc: 4e75 rts <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 67ebe: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 67ec4: 7216 moveq #22,%d1 <== NOT EXECUTED 67ec6: 2040 moveal %d0,%a0 <== NOT EXECUTED 67ec8: 70ff moveq #-1,%d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 67eca: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 67ed0: 2081 movel %d1,%a0@ <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 67ed2: 4e5e unlk %fp <== NOT EXECUTED 67ed4: 4e75 rts 00067b52 : return NULL; return p; } struct group *getgrent(void) { 67b52: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp == NULL) 67b56: 2039 000a 62fe movel a62fe ,%d0 <== NOT EXECUTED 67b5c: 6608 bnes 67b66 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 67b5e: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &grent; } 67b60: 2001 movel %d1,%d0 <== NOT EXECUTED 67b62: 4e5e unlk %fp <== NOT EXECUTED 67b64: 4e75 rts <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 67b66: 4878 00c8 pea c8 <== NOT EXECUTED 67b6a: 4879 000a 6302 pea a6302 <== NOT EXECUTED 67b70: 4879 000a 63ca pea a63ca <== NOT EXECUTED 67b76: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67b78: 4eba febc jsr %pc@(67a36 ) <== NOT EXECUTED 67b7c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 67b80: 223c 000a 63ca movel #680906,%d1 <== NOT EXECUTED 67b86: 4a80 tstl %d0 <== NOT EXECUTED 67b88: 67d4 beqs 67b5e <== NOT EXECUTED return NULL; return &grent; } 67b8a: 2001 movel %d1,%d0 <== NOT EXECUTED 67b8c: 4e5e unlk %fp <== NOT EXECUTED 67b8e: 4e75 rts 00067efc : gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 67efc: 4280 clrl %d0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 67efe: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 67f02: 486e fffc pea %fp@(-4) <== NOT EXECUTED 67f06: 4878 00c8 pea c8 <== NOT EXECUTED 67f0a: 4879 000a 6302 pea a6302 <== NOT EXECUTED 67f10: 4879 000a 63ca pea a63ca <== NOT EXECUTED 67f16: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 67f1a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67f1c: 4eb9 0006 7ed6 jsr 67ed6 <== NOT EXECUTED 67f22: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 67f26: 4a80 tstl %d0 <== NOT EXECUTED 67f28: 6608 bnes 67f32 <== NOT EXECUTED return NULL; return p; 67f2a: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 67f2e: 4e5e unlk %fp <== NOT EXECUTED 67f30: 4e75 rts <== NOT EXECUTED gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 67f32: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 67f34: 4e5e unlk %fp <== NOT EXECUTED 67f36: 4e75 rts 00067ed6 : char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result); 67ed6: 4280 clrl %d0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 67ed8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 67edc: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 67ee0: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 67ee4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 67ee8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 67eec: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 67ef0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67ef2: 42a7 clrl %sp@- <== NOT EXECUTED 67ef4: 4eba ff0c jsr %pc@(67e02 ) <== NOT EXECUTED } 67ef8: 4e5e unlk %fp <== NOT EXECUTED 67efa: 4e75 rts 00067f5a : struct group *getgrnam( const char *name ) { 67f5a: 4e56 fffc linkw %fp,#-4 struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 67f5e: 486e fffc pea %fp@(-4) 67f62: 4878 00c8 pea c8 67f66: 4879 000a 6302 pea a6302 67f6c: 4879 000a 63ca pea a63ca 67f72: 2f2e 0008 movel %fp@(8),%sp@- 67f76: 4eb9 0006 7f38 jsr 67f38 67f7c: 4fef 0014 lea %sp@(20),%sp 67f80: 4a80 tstl %d0 67f82: 6608 bnes 67f8c return NULL; return p; 67f84: 202e fffc movel %fp@(-4),%d0 } 67f88: 4e5e unlk %fp 67f8a: 4e75 rts const char *name ) { struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 67f8c: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 67f8e: 4e5e unlk %fp <== NOT EXECUTED 67f90: 4e75 rts 00067fcc : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 67fcc: 4e56 ffe0 linkw %fp,#-32 67fd0: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 67fd4: 242e 0008 movel %fp@(8),%d2 67fd8: 47fa fbb6 lea %pc@(67b90 ),%a3 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 67fdc: 49f9 0008 6bb4 lea 86bb4 ,%a4 struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 67fe2: 2c2e 000c movel %fp@(12),%d6 67fe6: 246e 0010 moveal %fp@(16),%a2 67fea: 2a2e 0014 movel %fp@(20),%d5 67fee: 282e 0018 movel %fp@(24),%d4 FILE *fp; int match; init_etc_passwd_group(); 67ff2: 4eb9 0006 7cbe jsr 67cbe if ((fp = fopen("/etc/passwd", "r")) == NULL) { 67ff8: 4879 0009 a7d7 pea 9a7d7 67ffe: 4879 0009 8ed0 pea 98ed0 <_rodata_start+0x800> 68004: 4eb9 0008 1a28 jsr 81a28 6800a: 508f addql #8,%sp 6800c: 2600 movel %d0,%d3 6800e: 6778 beqs 68088 errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 68010: 2f04 movel %d4,%sp@- 68012: 2f05 movel %d5,%sp@- 68014: 2f0a movel %a2,%sp@- 68016: 2f03 movel %d3,%sp@- 68018: 4e93 jsr %a3@ 6801a: 4fef 0010 lea %sp@(16),%sp 6801e: 4a80 tstl %d0 68020: 6744 beqs 68066 errno = EINVAL; fclose(fp); return -1; } if (name) { 68022: 4a82 tstl %d2 68024: 672e beqs 68054 match = (strcmp(pwd->pw_name, name) == 0); 68026: 2f02 movel %d2,%sp@- 68028: 2f12 movel %a2@,%sp@- 6802a: 4e94 jsr %a4@ 6802c: 508f addql #8,%sp 6802e: 4a80 tstl %d0 68030: 57c0 seq %d0 68032: 49c0 extbl %d0 68034: 4480 negl %d0 } else { match = (pwd->pw_uid == uid); } if (match) { 68036: 67d8 beqs 68010 fclose(fp); 68038: 2f03 movel %d3,%sp@- 6803a: 4eb9 0008 11c2 jsr 811c2 *result = pwd; 68040: 206e 001c moveal %fp@(28),%a0 return 0; 68044: 588f addql #4,%sp else { match = (pwd->pw_uid == uid); } if (match) { fclose(fp); *result = pwd; 68046: 4280 clrl %d0 68048: 208a movel %a2,%a0@ } } fclose(fp); errno = EINVAL; return -1; } 6804a: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 68050: 4e5e unlk %fp 68052: 4e75 rts } if (name) { match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 68054: 4280 clrl %d0 <== NOT EXECUTED 68056: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 6805a: bc80 cmpl %d0,%d6 <== NOT EXECUTED 6805c: 57c0 seq %d0 <== NOT EXECUTED 6805e: 49c0 extbl %d0 <== NOT EXECUTED 68060: 4480 negl %d0 <== NOT EXECUTED } if (match) { 68062: 67ac beqs 68010 <== NOT EXECUTED 68064: 60d2 bras 68038 <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 68066: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 6806c: 7416 moveq #22,%d2 <== NOT EXECUTED 6806e: 2040 moveal %d0,%a0 <== NOT EXECUTED 68070: 2082 movel %d2,%a0@ <== NOT EXECUTED fclose(fp); 68072: 2f03 movel %d3,%sp@- <== NOT EXECUTED 68074: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED return -1; 6807a: 588f addql #4,%sp <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); 6807c: 70ff moveq #-1,%d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 6807e: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 68084: 4e5e unlk %fp <== NOT EXECUTED 68086: 4e75 rts <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 68088: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 6808e: 7616 moveq #22,%d3 <== NOT EXECUTED 68090: 2040 moveal %d0,%a0 <== NOT EXECUTED 68092: 70ff moveq #-1,%d0 <== NOT EXECUTED 68094: 2083 movel %d3,%a0@ <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 68096: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 6809c: 4e5e unlk %fp <== NOT EXECUTED 6809e: 4e75 rts 00067c80 : return NULL; return p; } struct passwd *getpwent(void) { 67c80: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp == NULL) 67c84: 2039 000a 6216 movel a6216 ,%d0 <== NOT EXECUTED 67c8a: 6608 bnes 67c94 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 67c8c: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &pwent; } 67c8e: 2001 movel %d1,%d0 <== NOT EXECUTED 67c90: 4e5e unlk %fp <== NOT EXECUTED 67c92: 4e75 rts <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 67c94: 4878 00c8 pea c8 <== NOT EXECUTED 67c98: 4879 000a 621a pea a621a <== NOT EXECUTED 67c9e: 4879 000a 62e2 pea a62e2 <== NOT EXECUTED 67ca4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67ca6: 4eba fee8 jsr %pc@(67b90 ) <== NOT EXECUTED 67caa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 67cae: 223c 000a 62e2 movel #680674,%d1 <== NOT EXECUTED 67cb4: 4a80 tstl %d0 <== NOT EXECUTED 67cb6: 67d4 beqs 67c8c <== NOT EXECUTED return NULL; return &pwent; } 67cb8: 2001 movel %d1,%d0 <== NOT EXECUTED 67cba: 4e5e unlk %fp <== NOT EXECUTED 67cbc: 4e75 rts 00068124 : struct passwd *getpwnam( const char *name ) { 68124: 4e56 fffc linkw %fp,#-4 struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 68128: 486e fffc pea %fp@(-4) 6812c: 4878 00c8 pea c8 68130: 4879 000a 621a pea a621a 68136: 4879 000a 62e2 pea a62e2 6813c: 2f2e 0008 movel %fp@(8),%sp@- 68140: 4eb9 0006 8102 jsr 68102 68146: 4fef 0014 lea %sp@(20),%sp 6814a: 4a80 tstl %d0 6814c: 6608 bnes 68156 return NULL; return p; 6814e: 202e fffc movel %fp@(-4),%d0 } 68152: 4e5e unlk %fp 68154: 4e75 rts const char *name ) { struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 68156: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 68158: 4e5e unlk %fp <== NOT EXECUTED 6815a: 4e75 rts 000680c6 : uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 680c6: 4280 clrl %d0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 680c8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 680cc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 680d0: 4878 00c8 pea c8 <== NOT EXECUTED 680d4: 4879 000a 621a pea a621a <== NOT EXECUTED 680da: 4879 000a 62e2 pea a62e2 <== NOT EXECUTED 680e0: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 680e4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 680e6: 4eb9 0006 80a0 jsr 680a0 <== NOT EXECUTED 680ec: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 680f0: 4a80 tstl %d0 <== NOT EXECUTED 680f2: 6608 bnes 680fc <== NOT EXECUTED return NULL; return p; 680f4: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 680f8: 4e5e unlk %fp <== NOT EXECUTED 680fa: 4e75 rts <== NOT EXECUTED uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 680fc: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 680fe: 4e5e unlk %fp <== NOT EXECUTED 68100: 4e75 rts 000680a0 : char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 680a0: 4280 clrl %d0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 680a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 680a6: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 680aa: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 680ae: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 680b2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 680b6: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 680ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED 680bc: 42a7 clrl %sp@- <== NOT EXECUTED 680be: 4eba ff0c jsr %pc@(67fcc ) <== NOT EXECUTED } 680c2: 4e5e unlk %fp <== NOT EXECUTED 680c4: 4e75 rts 0004a828 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 4a828: 4e56 ffec linkw %fp,#-20 4a82c: 48d7 040c moveml %d2-%d3/%a2,%sp@ 4a830: 246e 0008 moveal %fp@(8),%a2 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 4a834: 4a8a tstl %a2 4a836: 673c beqs 4a874 { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 4a838: 203c 0000 0700 movel #1792,%d0 4a83e: 40c2 movew %sr,%d2 4a840: 8082 orl %d2,%d0 4a842: 46c0 movew %d0,%sr _TOD_Get( &now ); 4a844: 486e fff8 pea %fp@(-8) 4a848: 4eb9 0004 bc6c jsr 4bc6c <_TOD_Get> _ISR_Enable(level); 4a84e: 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; 4a850: 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; 4a856: 588f addql #4,%sp 4a858: 4280 clrl %d0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 4a85a: 222e fffc movel %fp@(-4),%d1 useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 4a85e: 4c43 1801 remsl %d3,%d1,%d1 4a862: 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; 4a866: 24ae fff8 movel %fp@(-8),%a2@ } 4a86a: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 4a870: 4e5e unlk %fp 4a872: 4e75 rts void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 4a874: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4a87a: 720e moveq #14,%d1 <== NOT EXECUTED 4a87c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a87e: 70ff moveq #-1,%d0 <== NOT EXECUTED * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 4a880: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 4a886: 2081 movel %d1,%a0@ <== NOT EXECUTED * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 4a888: 4e5e unlk %fp <== NOT EXECUTED 4a88a: 4e75 rts 0004795c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 4795c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47960: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED return _POSIX_types_Uid; } 47966: 4e5e unlk %fp <== NOT EXECUTED 47968: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED 4796c: 4e75 rts 000533a4 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 533a4: 7001 moveq #1,%d0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 533a6: 4e56 0000 linkw %fp,#0 533aa: 206e 0008 moveal %fp@(8),%a0 IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 533ae: 2268 0038 moveal %a0@(56),%a1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 533b2: 2f02 movel %d2,%sp@- IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 533b4: b0a9 0048 cmpl %a1@(72),%d0 533b8: 6708 beqs 533c2 if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; return 0; } 533ba: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; 533bc: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; return 0; } 533be: 4e5e unlk %fp <== NOT EXECUTED 533c0: 4e75 rts <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 533c2: 4280 clrl %d0 533c4: 4281 clrl %d1 533c6: 4282 clrl %d2 533c8: 2141 000c movel %d1,%a0@(12) 533cc: 2142 0010 movel %d2,%a0@(16) return 0; } 533d0: 241f movel %sp@+,%d2 533d2: 4e5e unlk %fp 533d4: 4e75 rts 00053512 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 53512: 4e56 fff8 linkw %fp,#-8 53516: 2f0b movel %a3,%sp@- 53518: 266e 000c moveal %fp@(12),%a3 5351c: 2f0a movel %a2,%sp@- IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 5351e: 2453 moveal %a3@,%a2 53520: 200a movel %a2,%d0 53522: 0680 0000 0050 addil #80,%d0 53528: b0aa 004c cmpl %a2@(76),%d0 5352c: 6600 0090 bnew 535be /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 53530: 206b 0010 moveal %a3@(16),%a0 53534: b5e8 001c cmpal %a0@(28),%a2 53538: 6700 009e beqw 535d8 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 5353c: 4aaa 0058 tstl %a2@(88) 53540: 6600 0096 bnew 535d8 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 53544: 4aaa 0008 tstl %a2@(8) 53548: 670e beqs 53558 5354a: 2f0a movel %a2,%sp@- 5354c: 4eb9 0004 870c jsr 4870c <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 53552: 588f addql #4,%sp 53554: 42aa 0008 clrl %a2@(8) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 53558: 302a 0032 movew %a2@(50),%d0 5355c: 5380 subql #1,%d0 5355e: 3540 0032 movew %d0,%a2@(50) IMFS_update_ctime( the_jnode ); 53562: 42a7 clrl %sp@- 53564: 486e fff8 pea %fp@(-8) 53568: 4eb9 0004 404c jsr 4404c 5356e: 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) ) { 53574: 2f0a movel %a2,%sp@- 53576: 4eb9 0004 ff42 jsr 4ff42 5357c: 4fef 000c lea %sp@(12),%sp 53580: 4a80 tstl %d0 53582: 662c bnes 535b0 53584: 4a6a 0032 tstw %a2@(50) 53588: 6626 bnes 535b0 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 5358a: 2079 0006 3a6c moveal 63a6c ,%a0 53590: 2653 moveal %a3@,%a3 53592: b7e8 0004 cmpal %a0@(4),%a3 53596: 675a beqs 535f2 /* * Free memory associated with a memory file. */ free( the_jnode ); 53598: 2f0a movel %a2,%sp@- 5359a: 4eb9 0004 3fbc jsr 43fbc 535a0: 588f addql #4,%sp 535a2: 4280 clrl %d0 } return 0; } 535a4: 246e fff0 moveal %fp@(-16),%a2 535a8: 266e fff4 moveal %fp@(-12),%a3 535ac: 4e5e unlk %fp 535ae: 4e75 rts 535b0: 246e fff0 moveal %fp@(-16),%a2 /* * Free memory associated with a memory file. */ free( the_jnode ); 535b4: 4280 clrl %d0 } return 0; } 535b6: 266e fff4 moveal %fp@(-12),%a3 535ba: 4e5e unlk %fp 535bc: 4e75 rts /* * 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 ); 535be: 4eb9 0005 4614 jsr 54614 <__errno> free( the_jnode ); } return 0; } 535c4: 246e fff0 moveal %fp@(-16),%a2 /* * 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 ); 535c8: 2040 moveal %d0,%a0 535ca: 725a moveq #90,%d1 535cc: 70ff moveq #-1,%d0 free( the_jnode ); } return 0; } 535ce: 266e fff4 moveal %fp@(-12),%a3 535d2: 4e5e unlk %fp /* * 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 ); 535d4: 2081 movel %d1,%a0@ free( the_jnode ); } return 0; } 535d6: 4e75 rts /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 535d8: 4eb9 0005 4614 jsr 54614 <__errno> free( the_jnode ); } return 0; } 535de: 246e fff0 moveal %fp@(-16),%a2 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 535e2: 2040 moveal %d0,%a0 535e4: 7210 moveq #16,%d1 535e6: 70ff moveq #-1,%d0 free( the_jnode ); } return 0; } 535e8: 266e fff4 moveal %fp@(-12),%a3 535ec: 4e5e unlk %fp /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 535ee: 2081 movel %d1,%a0@ free( the_jnode ); } return 0; } 535f0: 4e75 rts /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; 535f2: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 535f6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 535f8: 4eb9 0004 3fbc jsr 43fbc <== NOT EXECUTED 535fe: 588f addql #4,%sp <== NOT EXECUTED 53600: 4280 clrl %d0 <== NOT EXECUTED 53602: 60a0 bras 535a4 <== NOT EXECUTED 00067cbe : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 67cbe: 4e56 0000 linkw %fp,#0 67cc2: 2f0a movel %a2,%sp@- 67cc4: 2f02 movel %d2,%sp@- FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 67cc6: 4a39 000a 6214 tstb a6214 67ccc: 670c beqs 67cda fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 67cce: 242e fff8 movel %fp@(-8),%d2 67cd2: 246e fffc moveal %fp@(-4),%a2 67cd6: 4e5e unlk %fp 67cd8: 4e75 rts static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); 67cda: 4878 01ff pea 1ff /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 67cde: 45f9 0008 1a28 lea 81a28 ,%a2 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); 67ce4: 4879 0009 8db6 pea 98db6 <_rodata_start+0x6e6> FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 67cea: 7001 moveq #1,%d0 67cec: 13c0 000a 6214 moveb %d0,a6214 mkdir("/etc", 0777); 67cf2: 4eb9 0004 8050 jsr 48050 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 67cf8: 4879 0009 a7d7 pea 9a7d7 67cfe: 4879 0009 8ed0 pea 98ed0 <_rodata_start+0x800> 67d04: 4e92 jsr %a2@ 67d06: 4fef 0010 lea %sp@(16),%sp 67d0a: 4a80 tstl %d0 67d0c: 677e beqs 67d8c fclose(fp); 67d0e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67d10: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED 67d16: 588f addql #4,%sp <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 67d18: 4879 0009 a7d7 pea 9a7d7 67d1e: 4879 0009 8f15 pea 98f15 <_rodata_start+0x845> 67d24: 4e92 jsr %a2@ 67d26: 508f addql #8,%sp 67d28: 4a80 tstl %d0 67d2a: 6716 beqs 67d42 fclose(fp); 67d2c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67d2e: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 67d34: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); 67d38: 588f addql #4,%sp <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 67d3a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 67d3e: 4e5e unlk %fp <== NOT EXECUTED 67d40: 4e75 rts <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 67d42: 4879 0009 a448 pea 9a448 67d48: 4879 0009 8f15 pea 98f15 <_rodata_start+0x845> 67d4e: 4eb9 0008 1a28 jsr 81a28 67d54: 508f addql #8,%sp 67d56: 2440 moveal %d0,%a2 67d58: 4a80 tstl %d0 67d5a: 6700 ff72 beqw 67cce fprintf( fp, "root:x:0:root\n" 67d5e: 2f00 movel %d0,%sp@- 67d60: 4878 002a pea 2a 67d64: 4878 0001 pea 1 67d68: 4879 0009 d5d1 pea 9d5d1 67d6e: 4eb9 0008 2ca4 jsr 82ca4 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 67d74: 2f0a movel %a2,%sp@- 67d76: 4eb9 0008 11c2 jsr 811c2 } } 67d7c: 242e fff8 movel %fp@(-8),%d2 } else if ((fp = fopen("/etc/group", "w")) != NULL) { fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 67d80: 4fef 0014 lea %sp@(20),%sp } } 67d84: 246e fffc moveal %fp@(-4),%a2 67d88: 4e5e unlk %fp 67d8a: 4e75 rts * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 67d8c: 4879 0009 a448 pea 9a448 67d92: 4879 0009 8ed0 pea 98ed0 <_rodata_start+0x800> 67d98: 4e92 jsr %a2@ 67d9a: 508f addql #8,%sp 67d9c: 2400 movel %d0,%d2 67d9e: 6700 ff78 beqw 67d18 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 67da2: 2f00 movel %d0,%sp@- 67da4: 4878 0066 pea 66 67da8: 4878 0001 pea 1 67dac: 4879 0009 d56a pea 9d56a 67db2: 4eb9 0008 2ca4 jsr 82ca4 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 67db8: 2f02 movel %d2,%sp@- 67dba: 4eb9 0008 11c2 jsr 811c2 67dc0: 4fef 0014 lea %sp@(20),%sp 67dc4: 6000 ff52 braw 67d18 00046580 : int ioctl( int fd, ioctl_command_t command, ... ) { 46580: 4e56 0000 linkw %fp,#0 46584: 202e 0008 movel %fp@(8),%d0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 46588: b0b9 0006 3ba4 cmpl 63ba4 ,%d0 4658e: 643c bccs 465cc iop = rtems_libio_iop( fd ); 46590: 2079 0006 5374 moveal 65374 ,%a0 46596: ed88 lsll #6,%d0 46598: d1c0 addal %d0,%a0 rtems_libio_check_is_open(iop); 4659a: 2028 0014 movel %a0@(20),%d0 4659e: 0280 0000 0100 andil #256,%d0 465a4: 6726 beqs 465cc va_start(ap, command); buffer = va_arg(ap, void *); 465a6: 202e 0010 movel %fp@(16),%d0 /* * Now process the ioctl(). */ if ( !iop->handlers ) 465aa: 2268 003c moveal %a0@(60),%a1 465ae: 4a89 tstl %a1 465b0: 671a beqs 465cc rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 465b2: 2269 0010 moveal %a1@(16),%a1 465b6: 4a89 tstl %a1 465b8: 6724 beqs 465de rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 465ba: 2f00 movel %d0,%sp@- 465bc: 2f2e 000c movel %fp@(12),%sp@- 465c0: 2f08 movel %a0,%sp@- 465c2: 4e91 jsr %a1@ return rc; 465c4: 4fef 000c lea %sp@(12),%sp } 465c8: 4e5e unlk %fp 465ca: 4e75 rts /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 465cc: 4eb9 0005 47f0 jsr 547f0 <__errno> 465d2: 7209 moveq #9,%d1 465d4: 2040 moveal %d0,%a0 465d6: 70ff moveq #-1,%d0 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 465d8: 4e5e unlk %fp /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 465da: 2081 movel %d1,%a0@ rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 465dc: 4e75 rts if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 465de: 4eb9 0005 47f0 jsr 547f0 <__errno> <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 465e4: 4e5e unlk %fp <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 465e6: 2040 moveal %d0,%a0 <== NOT EXECUTED 465e8: 70ff moveq #-1,%d0 <== NOT EXECUTED 465ea: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 465f0: 4e75 rts <== NOT EXECUTED ... 00044064 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 44064: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 44068: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 4406c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 44070: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 44074: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 44078: 1401 moveb %d1,%d2 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 4407a: 0800 0005 btst #5,%d0 <== NOT EXECUTED 4407e: 6704 beqs 44084 <== NOT EXECUTED c &= 0x7f; 44080: 747f moveq #127,%d2 <== NOT EXECUTED 44082: c481 andl %d1,%d2 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 44084: 0800 0009 btst #9,%d0 <== NOT EXECUTED 44088: 6720 beqs 440aa <== NOT EXECUTED c = tolower (c); 4408a: 2079 0005 dacc moveal 5dacc <__ctype_ptr__>,%a0 <== NOT EXECUTED 44090: 7603 moveq #3,%d3 <== NOT EXECUTED 44092: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED 44098: 1230 2801 moveb %a0@(00000001,%d2:l),%d1 <== NOT EXECUTED 4409c: 49c1 extbl %d1 <== NOT EXECUTED 4409e: c283 andl %d3,%d1 <== NOT EXECUTED 440a0: 163c 0001 moveb #1,%d3 <== NOT EXECUTED 440a4: b681 cmpl %d1,%d3 <== NOT EXECUTED 440a6: 6700 00e0 beqw 44188 <== NOT EXECUTED if (c == '\r') { 440aa: 4281 clrl %d1 <== NOT EXECUTED 440ac: 1202 moveb %d2,%d1 <== NOT EXECUTED 440ae: 760d moveq #13,%d3 <== NOT EXECUTED 440b0: b681 cmpl %d1,%d3 <== NOT EXECUTED 440b2: 6740 beqs 440f4 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 440b4: 760a moveq #10,%d3 <== NOT EXECUTED 440b6: b681 cmpl %d1,%d3 <== NOT EXECUTED 440b8: 6700 00c4 beqw 4417e <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 440bc: 4a02 tstb %d2 <== NOT EXECUTED 440be: 664c bnes 4410c <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 440c0: 2039 0005 d9f4 movel 5d9f4 ,%d0 <== NOT EXECUTED 440c6: 5380 subql #1,%d0 <== NOT EXECUTED 440c8: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 440cc: b081 cmpl %d1,%d0 <== NOT EXECUTED 440ce: 6f28 bles 440f8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 440d0: 7008 moveq #8,%d0 <== NOT EXECUTED 440d2: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 440d6: 6600 00ba bnew 44192 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 440da: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 440de: 4280 clrl %d0 <== NOT EXECUTED 440e0: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 440e4: 5281 addql #1,%d1 <== NOT EXECUTED 440e6: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED } return 0; } 440ea: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 440f0: 4e5e unlk %fp <== NOT EXECUTED 440f2: 4e75 rts <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) 440f4: 4a00 tstb %d0 <== NOT EXECUTED 440f6: 6c0c bges 44104 <== NOT EXECUTED * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; 440f8: 4280 clrl %d0 <== NOT EXECUTED } return 0; } 440fa: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44100: 4e5e unlk %fp <== NOT EXECUTED 44102: 4e75 rts <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) 44104: 0800 0008 btst #8,%d0 <== NOT EXECUTED 44108: 6702 beqs 4410c <== NOT EXECUTED 4410a: 740a moveq #10,%d2 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 4410c: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED 44110: 0801 0001 btst #1,%d1 <== NOT EXECUTED 44114: 67aa beqs 440c0 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 44116: 4283 clrl %d3 <== NOT EXECUTED 44118: 162a 0043 moveb %a2@(67),%d3 <== NOT EXECUTED 4411c: 4280 clrl %d0 <== NOT EXECUTED 4411e: 1002 moveb %d2,%d0 <== NOT EXECUTED 44120: b083 cmpl %d3,%d0 <== NOT EXECUTED 44122: 6700 0122 beqw 44246 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 44126: 4283 clrl %d3 <== NOT EXECUTED 44128: 162a 0044 moveb %a2@(68),%d3 <== NOT EXECUTED 4412c: b083 cmpl %d3,%d0 <== NOT EXECUTED 4412e: 6700 00a8 beqw 441d8 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 44132: 4283 clrl %d3 <== NOT EXECUTED 44134: 162a 0045 moveb %a2@(69),%d3 <== NOT EXECUTED 44138: b083 cmpl %d3,%d0 <== NOT EXECUTED 4413a: 6700 00fe beqw 4423a <== NOT EXECUTED return 1; } else if (c == '\n') { 4413e: 760a moveq #10,%d3 <== NOT EXECUTED 44140: b680 cmpl %d0,%d3 <== NOT EXECUTED 44142: 6700 00ac beqw 441f0 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) 44146: 4283 clrl %d3 <== NOT EXECUTED 44148: 162a 004c moveb %a2@(76),%d3 <== NOT EXECUTED 4414c: b083 cmpl %d3,%d0 <== NOT EXECUTED 4414e: 670c beqs 4415c <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 44150: 4283 clrl %d3 <== NOT EXECUTED 44152: 162a 0051 moveb %a2@(81),%d3 <== NOT EXECUTED 44156: b083 cmpl %d3,%d0 <== NOT EXECUTED 44158: 6600 ff66 bnew 440c0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 4415c: 44c1 movew %d1,%ccr <== NOT EXECUTED 4415e: 6b58 bmis 441b8 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 44160: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 44164: 7001 moveq #1,%d0 <== NOT EXECUTED 44166: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 4416a: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 4416e: 5281 addql #1,%d1 <== NOT EXECUTED 44170: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 44174: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4417a: 4e5e unlk %fp <== NOT EXECUTED 4417c: 4e75 rts <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 4417e: 0800 0006 btst #6,%d0 <== NOT EXECUTED 44182: 6788 beqs 4410c <== NOT EXECUTED 44184: 740d moveq #13,%d2 <== NOT EXECUTED 44186: 6084 bras 4410c <== NOT EXECUTED iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); 44188: 0682 0000 0020 addil #32,%d2 <== NOT EXECUTED 4418e: 6000 ff1a braw 440aa <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 44192: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44194: 4280 clrl %d0 <== NOT EXECUTED 44196: 1002 moveb %d2,%d0 <== NOT EXECUTED 44198: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4419a: 4eba fc30 jsr %pc@(43dcc ) <== NOT EXECUTED 4419e: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 441a2: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 441a4: 4280 clrl %d0 <== NOT EXECUTED 441a6: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 441aa: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 441ae: 5281 addql #1,%d1 <== NOT EXECUTED 441b0: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED 441b4: 6000 ff34 braw 440ea <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 441b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 441ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED 441bc: 4eba fc0e jsr %pc@(43dcc ) <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 441c0: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 441c4: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 441c6: 7001 moveq #1,%d0 <== NOT EXECUTED 441c8: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 441cc: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 441d0: 5281 addql #1,%d1 <== NOT EXECUTED 441d2: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED 441d6: 609c bras 44174 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 441d8: 4878 0001 pea 1 <== NOT EXECUTED 441dc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 441de: 4eba fc90 jsr %pc@(43e70 ) <== NOT EXECUTED return 0; 441e2: 508f addql #8,%sp <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 441e4: 4280 clrl %d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 441e6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 441ec: 4e5e unlk %fp <== NOT EXECUTED 441ee: 4e75 rts <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 441f0: 7048 moveq #72,%d0 <== NOT EXECUTED 441f2: c280 andl %d0,%d1 <== NOT EXECUTED 441f4: 6620 bnes 44216 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 441f6: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 441fa: 7001 moveq #1,%d0 <== NOT EXECUTED 441fc: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 44200: 740a moveq #10,%d2 <== NOT EXECUTED 44202: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 44206: 5281 addql #1,%d1 <== NOT EXECUTED 44208: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 4420c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44212: 4e5e unlk %fp <== NOT EXECUTED 44214: 4e75 rts <== NOT EXECUTED else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); 44216: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44218: 4878 000a pea a <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 4421c: 740a moveq #10,%d2 <== NOT EXECUTED else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); 4421e: 4eba fbac jsr %pc@(43dcc ) <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 44222: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); 44226: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 44228: 7001 moveq #1,%d0 <== NOT EXECUTED 4422a: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 4422e: 1182 1800 moveb %d2,%a0@(00000000,%d1:l) <== NOT EXECUTED 44232: 5281 addql #1,%d1 <== NOT EXECUTED 44234: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED 44238: 60d2 bras 4420c <== NOT EXECUTED } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 4423a: 7001 moveq #1,%d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 4423c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44242: 4e5e unlk %fp <== NOT EXECUTED 44244: 4e75 rts <== NOT EXECUTED else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); 44246: 42a7 clrl %sp@- <== NOT EXECUTED 44248: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4424a: 4eba fc24 jsr %pc@(43e70 ) <== NOT EXECUTED return 0; 4424e: 508f addql #8,%sp <== NOT EXECUTED else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); 44250: 4280 clrl %d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 44252: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44258: 4e5e unlk %fp <== NOT EXECUTED 4425a: 4e75 rts 0004e830 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 4e830: 4e56 ffd0 linkw %fp,#-48 4e834: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ 4e838: 262e 000c movel %fp@(12),%d3 4e83c: 246e 0010 moveal %fp@(16),%a2 POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) 4e840: 4eb9 0004 d6c8 jsr 4d6c8 4e846: b0ae 0008 cmpl %fp@(8),%d0 4e84a: 6600 022c bnew 4ea78 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) 4e84e: 4a83 tstl %d3 4e850: 6700 023e beqw 4ea90 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); 4e854: 2003 movel %d3,%d0 4e856: 5380 subql #1,%d0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 4e858: 721f moveq #31,%d1 4e85a: b280 cmpl %d0,%d1 4e85c: 6500 0232 bcsw 4ea90 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) 4e860: 2203 movel %d3,%d1 4e862: 2803 movel %d3,%d4 4e864: 7e01 moveq #1,%d7 4e866: e589 lsll #2,%d1 4e868: e98c lsll #4,%d4 4e86a: 9881 subl %d1,%d4 4e86c: 2044 moveal %d4,%a0 4e86e: d1fc 0005 f60a addal #390666,%a0 4e874: be90 cmpl %a0@,%d7 4e876: 6700 00d4 beqw 4e94c /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) 4e87a: 7208 moveq #8,%d1 4e87c: b283 cmpl %d3,%d1 4e87e: 6700 00d8 beqw 4e958 4e882: 7e04 moveq #4,%d7 4e884: be83 cmpl %d3,%d7 4e886: 6700 00d0 beqw 4e958 4e88a: 123c 000b moveb #11,%d1 4e88e: b283 cmpl %d3,%d1 4e890: 6700 00c6 beqw 4e958 static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); 4e894: 7401 moveq #1,%d2 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; 4e896: 7e01 moveq #1,%d7 4e898: e1aa lsll %d0,%d2 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 4e89a: 2d43 fff4 movel %d3,%fp@(-12) siginfo->si_code = SI_USER; 4e89e: 2d47 fff8 movel %d7,%fp@(-8) if ( !value ) { 4e8a2: 4a8a tstl %a2 4e8a4: 6700 01ca beqw 4ea70 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; 4e8a8: 2d52 fffc movel %a2@,%fp@(-4) 4e8ac: 2039 0005 f154 movel 5f154 <_Thread_Dispatch_disable_level>,%d0 4e8b2: 5280 addql #1,%d0 4e8b4: 23c0 0005 f154 movel %d0,5f154 <_Thread_Dispatch_disable_level> /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; 4e8ba: 2479 0005 f20e moveal 5f20e <_Thread_Executing>,%a2 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4e8c0: 206a 010e moveal %a2@(270),%a0 4e8c4: 2028 00cc movel %a0@(204),%d0 4e8c8: 4680 notl %d0 4e8ca: c082 andl %d2,%d0 4e8cc: 6642 bnes 4e910 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 4e8ce: 2079 0005 f78e moveal 5f78e <_POSIX_signals_Wait_queue>,%a0 4e8d4: b1fc 0005 f792 cmpal #391058,%a0 4e8da: 6700 00ec beqw 4e9c8 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 4e8de: 2002 movel %d2,%d0 for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; 4e8e0: 2448 moveal %a0,%a2 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 4e8e2: c0a8 0030 andl %a0@(48),%d0 for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4e8e6: 2268 010e moveal %a0@(270),%a1 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 4e8ea: 6624 bnes 4e910 /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 4e8ec: 2029 00cc movel %a1@(204),%d0 4e8f0: 4680 notl %d0 4e8f2: c082 andl %d2,%d0 4e8f4: 661a bnes 4e910 the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 4e8f6: 2050 moveal %a0@,%a0 the_thread = (Thread_Control *)the_node; 4e8f8: 2448 moveal %a0,%a2 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 4e8fa: b1fc 0005 f792 cmpal #391058,%a0 4e900: 6700 00c6 beqw 4e9c8 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 4e904: 2002 movel %d2,%d0 <== NOT EXECUTED 4e906: c0a8 0030 andl %a0@(48),%d0 <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4e90a: 2268 010e moveal %a0@(270),%a1 <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 4e90e: 67dc beqs 4e8ec <== NOT EXECUTED * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 4e910: 7001 moveq #1,%d0 4e912: 1540 0074 moveb %d0,%a2@(116) /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 4e916: 486e fff4 pea %fp@(-12) 4e91a: 2f03 movel %d3,%sp@- 4e91c: 2f0a movel %a2,%sp@- 4e91e: 4eb9 0004 eb68 jsr 4eb68 <_POSIX_signals_Unblock_thread> 4e924: 4fef 000c lea %sp@(12),%sp 4e928: 4a00 tstb %d0 4e92a: 6600 008a bnew 4e9b6 /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); 4e92e: 2f02 movel %d2,%sp@- 4e930: 4eb9 0004 eb38 jsr 4eb38 <_POSIX_signals_Set_process_signals> if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 4e936: 588f addql #4,%sp 4e938: 41f9 0005 f602 lea 5f602 <_POSIX_signals_Vectors>,%a0 4e93e: 7202 moveq #2,%d1 4e940: b2b0 4800 cmpl %a0@(00000000,%d4:l),%d1 4e944: 672e beqs 4e974 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 4e946: 4eb9 0004 7dbc jsr 47dbc <_Thread_Enable_dispatch> 4e94c: 4280 clrl %d0 return 0; } 4e94e: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 4e954: 4e5e unlk %fp 4e956: 4e75 rts * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) return pthread_kill( pthread_self(), sig ); 4e958: 4eb9 0004 ed84 jsr 4ed84 4e95e: 2f03 movel %d3,%sp@- 4e960: 2f00 movel %d0,%sp@- 4e962: 4eb9 0004 eca8 jsr 4eca8 4e968: 508f addql #8,%sp } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 4e96a: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 4e970: 4e5e unlk %fp 4e972: 4e75 rts */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) 4e974: 4879 0005 f782 pea 5f782 <_POSIX_signals_Inactive_siginfo> 4e97a: 4eb9 0004 baa4 jsr 4baa4 <_Chain_Get> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 4e980: 588f addql #4,%sp */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) 4e982: 2040 moveal %d0,%a0 _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 4e984: 4a80 tstl %d0 4e986: 6700 0120 beqw 4eaa8 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; 4e98a: 216e fff4 0008 movel %fp@(-12),%a0@(8) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 4e990: 0684 0005 f7d2 addil #391122,%d4 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; 4e996: 216e fff8 000c movel %fp@(-8),%a0@(12) 4e99c: 216e fffc 0010 movel %fp@(-4),%a0@(16) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 4e9a2: 2f00 movel %d0,%sp@- 4e9a4: 2f04 movel %d4,%sp@- 4e9a6: 4eb9 0004 6798 jsr 46798 <_Chain_Append> 4e9ac: 508f addql #8,%sp } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 4e9ae: 4eb9 0004 7dbc jsr 47dbc <_Thread_Enable_dispatch> 4e9b4: 6096 bras 4e94c /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { _Thread_Enable_dispatch(); 4e9b6: 4eb9 0004 7dbc jsr 47dbc <_Thread_Enable_dispatch> 4e9bc: 4280 clrl %d0 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 4e9be: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 4e9c4: 4e5e unlk %fp 4e9c6: 4e75 rts * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 4e9c8: 4285 clrl %d5 4e9ca: 1a39 0005 d9a2 moveb 5d9a2 ,%d5 4e9d0: 49f9 0005 f114 lea 5f114 <_Objects_Information_table+0x8>,%a4 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 4e9d6: 95ca subal %a2,%a2 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 4e9d8: 5285 addql #1,%d5 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) 4e9da: 2054 moveal %a4@,%a0 4e9dc: 4a88 tstl %a0 4e9de: 675e beqs 4ea3e continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 4e9e0: 2068 0004 moveal %a0@(4),%a0 */ if ( !the_info ) continue; #endif maximum = the_info->maximum; 4e9e4: 4286 clrl %d6 4e9e6: 3c28 000e movew %a0@(14),%d6 object_table = the_info->local_table; 4e9ea: 2268 0018 moveal %a0@(24),%a1 for ( index = 1 ; index <= maximum ; index++ ) { 4e9ee: 4a86 tstl %d6 4e9f0: 674c beqs 4ea3e 4e9f2: 5889 addql #4,%a1 4e9f4: 7001 moveq #1,%d0 the_thread = (Thread_Control *) object_table[ index ]; 4e9f6: 2051 moveal %a1@,%a0 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 4e9f8: 5280 addql #1,%d0 4e9fa: 5889 addql #4,%a1 the_thread = (Thread_Control *) object_table[ index ]; if ( !the_thread ) 4e9fc: 4a88 tstl %a0 4e9fe: 673a beqs 4ea3a /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 4ea00: 2228 0014 movel %a0@(20),%d1 4ea04: ba81 cmpl %d1,%d5 4ea06: 6532 bcss 4ea3a DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4ea08: 2668 010e moveal %a0@(270),%a3 4ea0c: 2e2b 00cc movel %a3@(204),%d7 4ea10: 4687 notl %d7 4ea12: ce82 andl %d2,%d7 4ea14: 6724 beqs 4ea3a * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { 4ea16: ba81 cmpl %d1,%d5 4ea18: 621c bhis 4ea36 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 4ea1a: 2e2a 0010 movel %a2@(16),%d7 4ea1e: 671a beqs 4ea3a /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 4ea20: 2668 0010 moveal %a0@(16),%a3 4ea24: 4a8b tstl %a3 4ea26: 670e beqs 4ea36 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 4ea28: 0807 001c btst #28,%d7 4ea2c: 660c bnes 4ea3a DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 4ea2e: 2e0b movel %a3,%d7 4ea30: 0807 001c btst #28,%d7 4ea34: 6704 beqs 4ea3a 4ea36: 2a01 movel %d1,%d5 4ea38: 2448 moveal %a0,%a2 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 4ea3a: b086 cmpl %d6,%d0 4ea3c: 63b8 blss 4e9f6 4ea3e: 588c addql #4,%a4 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { 4ea40: b9fc 0005 f120 cmpal #389408,%a4 4ea46: 6692 bnes 4e9da } } } } if ( interested ) { 4ea48: 4a8a tstl %a2 4ea4a: 6700 fee2 beqw 4e92e * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 4ea4e: 7001 moveq #1,%d0 4ea50: 1540 0074 moveb %d0,%a2@(116) /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 4ea54: 486e fff4 pea %fp@(-12) 4ea58: 2f03 movel %d3,%sp@- 4ea5a: 2f0a movel %a2,%sp@- 4ea5c: 4eb9 0004 eb68 jsr 4eb68 <_POSIX_signals_Unblock_thread> 4ea62: 4fef 000c lea %sp@(12),%sp 4ea66: 4a00 tstb %d0 4ea68: 6700 fec4 beqw 4e92e 4ea6c: 6000 ff48 braw 4e9b6 <== NOT EXECUTED */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; 4ea70: 42ae fffc clrl %fp@(-4) 4ea74: 6000 fe36 braw 4e8ac /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); 4ea78: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4ea7e: 7603 moveq #3,%d3 4ea80: 2040 moveal %d0,%a0 4ea82: 70ff moveq #-1,%d0 4ea84: 2083 movel %d3,%a0@ } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 4ea86: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 4ea8c: 4e5e unlk %fp 4ea8e: 4e75 rts */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); 4ea90: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4ea96: 7416 moveq #22,%d2 4ea98: 2040 moveal %d0,%a0 4ea9a: 70ff moveq #-1,%d0 4ea9c: 2082 movel %d2,%a0@ } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 4ea9e: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 4eaa4: 4e5e unlk %fp 4eaa6: 4e75 rts if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); 4eaa8: 4eb9 0004 7dbc jsr 47dbc <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); 4eaae: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4eab4: 720b moveq #11,%d1 4eab6: 2040 moveal %d0,%a0 4eab8: 70ff moveq #-1,%d0 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 4eaba: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); 4eac0: 2081 movel %d1,%a0@ } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 4eac2: 4e5e unlk %fp 4eac4: 4e75 rts ... 000681d0 : int link( const char *existing, const char *new ) { 681d0: 4e56 ffc4 linkw %fp,#-60 681d4: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 681d8: 242e 0008 movel %fp@(8),%d2 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 681dc: 260e movel %fp,%d3 681de: 0683 ffff ffe8 addil #-24,%d3 681e4: 2f02 movel %d2,%sp@- int link( const char *existing, const char *new ) { 681e6: 266e 000c moveal %fp@(12),%a3 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 681ea: 4eb9 0008 712c jsr 8712c 681f0: 7201 moveq #1,%d1 681f2: 2e81 movel %d1,%sp@ 681f4: 2f03 movel %d3,%sp@- 681f6: 42a7 clrl %sp@- 681f8: 2f00 movel %d0,%sp@- 681fa: 2f02 movel %d2,%sp@- 681fc: 4eb9 0004 774c jsr 4774c 0, &existing_loc, true ); if ( result != 0 ) 68202: 4fef 0014 lea %sp@(20),%sp 68206: 4a80 tstl %d0 68208: 6600 00cc bnew 682d6 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 6820c: 742f moveq #47,%d2 6820e: 1213 moveb %a3@,%d1 68210: 1001 moveb %d1,%d0 68212: 49c0 extbl %d0 68214: b480 cmpl %d0,%d2 68216: 670e beqs 68226 68218: 143c 005c moveb #92,%d2 6821c: b480 cmpl %d0,%d2 6821e: 6706 beqs 68226 68220: 4a01 tstb %d1 68222: 6600 00c0 bnew 682e4 68226: 2079 000a 21cc moveal a21cc ,%a0 6822c: 45ee ffd4 lea %fp@(-44),%a2 68230: 7001 moveq #1,%d0 68232: 24a8 0018 movel %a0@(24),%a2@ 68236: 2d68 001c ffd8 movel %a0@(28),%fp@(-40) 6823c: 2d68 0020 ffdc movel %a0@(32),%fp@(-36) 68242: 2d68 0024 ffe0 movel %a0@(36),%fp@(-32) 68248: 2d68 0028 ffe4 movel %a0@(40),%fp@(-28) if ( !parent_loc.ops->evalformake_h ) { 6824e: 206e ffe0 moveal %fp@(-32),%a0 68252: 2068 0004 moveal %a0@(4),%a0 68256: 4a88 tstl %a0 68258: 6700 0122 beqw 6837c 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 ); 6825c: 486e fffc pea %fp@(-4) 68260: 2f0a movel %a2,%sp@- 68262: 4873 0800 pea %a3@(00000000,%d0:l) 68266: 4e90 jsr %a0@ if ( result != 0 ) { 68268: 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 ); 6826c: 2640 moveal %d0,%a3 if ( result != 0 ) { 6826e: 4a80 tstl %d0 68270: 6600 00dc bnew 6834e /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 68274: 202e fff8 movel %fp@(-8),%d0 68278: b0ae ffe4 cmpl %fp@(-28),%d0 6827c: 6600 008a bnew 68308 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 68280: 226e ffe0 moveal %fp@(-32),%a1 68284: 2069 0008 moveal %a1@(8),%a0 68288: 4a88 tstl %a0 6828a: 6700 0122 beqw 683ae 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 ); 6828e: 2f2e fffc movel %fp@(-4),%sp@- 68292: 2f0a movel %a2,%sp@- 68294: 2f03 movel %d3,%sp@- 68296: 4e90 jsr %a0@ rtems_filesystem_freenode( &existing_loc ); 68298: 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 ); 6829c: 2400 movel %d0,%d2 rtems_filesystem_freenode( &existing_loc ); 6829e: 4fef 000c lea %sp@(12),%sp 682a2: 4a88 tstl %a0 682a4: 670e beqs 682b4 682a6: 2068 001c moveal %a0@(28),%a0 682aa: 4a88 tstl %a0 682ac: 6706 beqs 682b4 682ae: 2f03 movel %d3,%sp@- 682b0: 4e90 jsr %a0@ 682b2: 588f addql #4,%sp rtems_filesystem_freenode( &parent_loc ); 682b4: 206e ffe0 moveal %fp@(-32),%a0 682b8: 4a88 tstl %a0 682ba: 670e beqs 682ca 682bc: 2068 001c moveal %a0@(28),%a0 682c0: 4a88 tstl %a0 682c2: 6706 beqs 682ca 682c4: 2f0a movel %a2,%sp@- 682c6: 4e90 jsr %a0@ 682c8: 588f addql #4,%sp return result; } 682ca: 2002 movel %d2,%d0 682cc: 4cee 0c0c ffc4 moveml %fp@(-60),%d2-%d3/%a2-%a3 682d2: 4e5e unlk %fp 682d4: 4e75 rts * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 0, &existing_loc, true ); if ( result != 0 ) 682d6: 74ff moveq #-1,%d2 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 682d8: 2002 movel %d2,%d0 682da: 4cee 0c0c ffc4 moveml %fp@(-60),%d2-%d3/%a2-%a3 682e0: 4e5e unlk %fp 682e2: 4e75 rts /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 682e4: 2079 000a 21cc moveal a21cc ,%a0 682ea: 45ee ffd4 lea %fp@(-44),%a2 682ee: 5888 addql #4,%a0 682f0: 4280 clrl %d0 682f2: 2498 movel %a0@+,%a2@ 682f4: 2d58 ffd8 movel %a0@+,%fp@(-40) 682f8: 2d58 ffdc movel %a0@+,%fp@(-36) 682fc: 2d58 ffe0 movel %a0@+,%fp@(-32) 68300: 2d50 ffe4 movel %a0@,%fp@(-28) 68304: 6000 ff48 braw 6824e * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { rtems_filesystem_freenode( &existing_loc ); 68308: 206e fff4 moveal %fp@(-12),%a0 6830c: 4a88 tstl %a0 6830e: 670e beqs 6831e 68310: 2068 001c moveal %a0@(28),%a0 68314: 4a88 tstl %a0 68316: 6706 beqs 6831e 68318: 2f03 movel %d3,%sp@- 6831a: 4e90 jsr %a0@ 6831c: 588f addql #4,%sp rtems_filesystem_freenode( &parent_loc ); 6831e: 206e ffe0 moveal %fp@(-32),%a0 68322: 4a88 tstl %a0 68324: 670e beqs 68334 68326: 2068 001c moveal %a0@(28),%a0 6832a: 4a88 tstl %a0 6832c: 6706 beqs 68334 6832e: 2f0a movel %a2,%sp@- 68330: 4e90 jsr %a0@ 68332: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EXDEV ); 68334: 4eb9 0008 1084 jsr 81084 <__errno> 6833a: 74ff moveq #-1,%d2 6833c: 2040 moveal %d0,%a0 6833e: 7012 moveq #18,%d0 68340: 2080 movel %d0,%a0@ rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 68342: 2002 movel %d2,%d0 68344: 4cee 0c0c ffc4 moveml %fp@(-60),%d2-%d3/%a2-%a3 6834a: 4e5e unlk %fp 6834c: 4e75 rts rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); 6834e: 206e fff4 moveal %fp@(-12),%a0 68352: 4a88 tstl %a0 68354: 670e beqs 68364 68356: 2068 001c moveal %a0@(28),%a0 6835a: 4a88 tstl %a0 6835c: 6706 beqs 68364 6835e: 2f03 movel %d3,%sp@- 68360: 4e90 jsr %a0@ 68362: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( result ); 68364: 4eb9 0008 1084 jsr 81084 <__errno> 6836a: 74ff moveq #-1,%d2 6836c: 2040 moveal %d0,%a0 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 6836e: 2002 movel %d2,%d0 } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); rtems_set_errno_and_return_minus_one( result ); 68370: 208b movel %a3,%a0@ rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 68372: 4cee 0c0c ffc4 moveml %fp@(-60),%d2-%d3/%a2-%a3 68378: 4e5e unlk %fp 6837a: 4e75 rts */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 6837c: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 68380: 4a88 tstl %a0 <== NOT EXECUTED 68382: 670e beqs 68392 <== NOT EXECUTED 68384: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 68388: 4a88 tstl %a0 <== NOT EXECUTED 6838a: 6706 beqs 68392 <== NOT EXECUTED 6838c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6838e: 4e90 jsr %a0@ <== NOT EXECUTED 68390: 588f addql #4,%sp <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 68392: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 68398: 74ff moveq #-1,%d2 <== NOT EXECUTED 6839a: 2040 moveal %d0,%a0 <== NOT EXECUTED 6839c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 683a2: 2002 movel %d2,%d0 <== NOT EXECUTED 683a4: 4cee 0c0c ffc4 moveml %fp@(-60),%d2-%d3/%a2-%a3 <== NOT EXECUTED 683aa: 4e5e unlk %fp <== NOT EXECUTED 683ac: 4e75 rts <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 683ae: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 683b2: 4a88 tstl %a0 <== NOT EXECUTED 683b4: 6712 beqs 683c8 <== NOT EXECUTED 683b6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 683ba: 4a88 tstl %a0 <== NOT EXECUTED 683bc: 670a beqs 683c8 <== NOT EXECUTED 683be: 2f03 movel %d3,%sp@- <== NOT EXECUTED 683c0: 4e90 jsr %a0@ <== NOT EXECUTED 683c2: 226e ffe0 moveal %fp@(-32),%a1 <== NOT EXECUTED 683c6: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 683c8: 4a89 tstl %a1 <== NOT EXECUTED 683ca: 67c6 beqs 68392 <== NOT EXECUTED 683cc: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 683d0: 4a88 tstl %a0 <== NOT EXECUTED 683d2: 67be beqs 68392 <== NOT EXECUTED 683d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 683d6: 74ff moveq #-1,%d2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); 683d8: 4e90 jsr %a0@ <== NOT EXECUTED 683da: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 683dc: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 683e2: 2040 moveal %d0,%a0 <== NOT EXECUTED 683e4: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 683ea: 60b6 bras 683a2 <== NOT EXECUTED 0005b6c0 : off_t lseek( int fd, off_t offset, int whence ) { 5b6c0: 4e56 ffe4 linkw %fp,#-28 5b6c4: 222e 0008 movel %fp@(8),%d1 5b6c8: 48d7 04fc moveml %d2-%d7/%a2,%sp@ 5b6cc: 202e 0014 movel %fp@(20),%d0 5b6d0: 282e 000c movel %fp@(12),%d4 5b6d4: 2a2e 0010 movel %fp@(16),%d5 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 5b6d8: b2b9 0005 d8f4 cmpl 5d8f4 ,%d1 5b6de: 6400 0118 bccw 5b7f8 iop = rtems_libio_iop( fd ); 5b6e2: 2479 0005 eff4 moveal 5eff4 ,%a2 5b6e8: ed89 lsll #6,%d1 5b6ea: d5c1 addal %d1,%a2 rtems_libio_check_is_open(iop); 5b6ec: 222a 0014 movel %a2@(20),%d1 5b6f0: 0281 0000 0100 andil #256,%d1 5b6f6: 6700 0100 beqw 5b7f8 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 5b6fa: 206a 003c moveal %a2@(60),%a0 5b6fe: 4aa8 0014 tstl %a0@(20) 5b702: 6700 0112 beqw 5b816 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 5b706: 7201 moveq #1,%d1 /* * Now process the lseek(). */ old_offset = iop->offset; 5b708: 242a 000c movel %a2@(12),%d2 5b70c: 262a 0010 movel %a2@(16),%d3 switch ( whence ) { 5b710: b280 cmpl %d0,%d1 5b712: 6700 00ae beqw 5b7c2 5b716: 7c02 moveq #2,%d6 5b718: bc80 cmpl %d0,%d6 5b71a: 6752 beqs 5b76e 5b71c: 4a80 tstl %d0 5b71e: 6600 0084 bnew 5b7a4 case SEEK_SET: iop->offset = offset; 5b722: 2544 000c movel %d4,%a2@(12) 5b726: 2545 0010 movel %d5,%a2@(16) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 5b72a: 2f00 movel %d0,%sp@- 5b72c: 2f05 movel %d5,%sp@- 5b72e: 2f04 movel %d4,%sp@- 5b730: 2f0a movel %a2,%sp@- 5b732: 2068 0014 moveal %a0@(20),%a0 5b736: 4e90 jsr %a0@ if ( status == (off_t) -1 ) 5b738: 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 ); 5b73c: 2800 movel %d0,%d4 5b73e: 2a01 movel %d1,%d5 if ( status == (off_t) -1 ) 5b740: 70ff moveq #-1,%d0 5b742: 72ff moveq #-1,%d1 5b744: 9285 subl %d5,%d1 5b746: 9184 subxl %d4,%d0 5b748: 670e beqs 5b758 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 5b74a: 2205 movel %d5,%d1 5b74c: 2004 movel %d4,%d0 5b74e: 4cee 04fc ffe4 moveml %fp@(-28),%d2-%d7/%a2 5b754: 4e5e unlk %fp 5b756: 4e75 rts 5b758: 2205 movel %d5,%d1 5b75a: 2004 movel %d4,%d0 * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); if ( status == (off_t) -1 ) iop->offset = old_offset; 5b75c: 2542 000c movel %d2,%a2@(12) 5b760: 2543 0010 movel %d3,%a2@(16) /* * So if the operation failed, we have to restore iop->offset. */ return status; } 5b764: 4cee 04fc ffe4 moveml %fp@(-28),%d2-%d7/%a2 5b76a: 4e5e unlk %fp 5b76c: 4e75 rts case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 5b76e: 2c2a 0004 movel %a2@(4),%d6 5b772: 2e2a 0008 movel %a2@(8),%d7 5b776: de85 addl %d5,%d7 5b778: dd84 addxl %d4,%d6 5b77a: 2546 000c movel %d6,%a2@(12) 5b77e: 2547 0010 movel %d7,%a2@(16) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 5b782: 2f00 movel %d0,%sp@- 5b784: 2f05 movel %d5,%sp@- 5b786: 2f04 movel %d4,%sp@- 5b788: 2f0a movel %a2,%sp@- 5b78a: 2068 0014 moveal %a0@(20),%a0 5b78e: 4e90 jsr %a0@ if ( status == (off_t) -1 ) 5b790: 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 ); 5b794: 2800 movel %d0,%d4 5b796: 2a01 movel %d1,%d5 if ( status == (off_t) -1 ) 5b798: 70ff moveq #-1,%d0 5b79a: 72ff moveq #-1,%d1 5b79c: 9285 subl %d5,%d1 5b79e: 9184 subxl %d4,%d0 5b7a0: 66a8 bnes 5b74a 5b7a2: 60b4 bras 5b758 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 5b7a4: 4eb9 0004 ede0 jsr 4ede0 <__errno> 5b7aa: 2040 moveal %d0,%a0 5b7ac: 7016 moveq #22,%d0 5b7ae: 78ff moveq #-1,%d4 5b7b0: 7aff moveq #-1,%d5 5b7b2: 2080 movel %d0,%a0@ /* * So if the operation failed, we have to restore iop->offset. */ return status; } 5b7b4: 2205 movel %d5,%d1 5b7b6: 2004 movel %d4,%d0 5b7b8: 4cee 04fc ffe4 moveml %fp@(-28),%d2-%d7/%a2 5b7be: 4e5e unlk %fp 5b7c0: 4e75 rts case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 5b7c2: 2c04 movel %d4,%d6 5b7c4: 2e05 movel %d5,%d7 5b7c6: de83 addl %d3,%d7 5b7c8: dd82 addxl %d2,%d6 5b7ca: 2546 000c movel %d6,%a2@(12) 5b7ce: 2547 0010 movel %d7,%a2@(16) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 5b7d2: 2f00 movel %d0,%sp@- 5b7d4: 2f05 movel %d5,%sp@- 5b7d6: 2f04 movel %d4,%sp@- 5b7d8: 2f0a movel %a2,%sp@- 5b7da: 2068 0014 moveal %a0@(20),%a0 5b7de: 4e90 jsr %a0@ if ( status == (off_t) -1 ) 5b7e0: 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 ); 5b7e4: 2800 movel %d0,%d4 5b7e6: 2a01 movel %d1,%d5 if ( status == (off_t) -1 ) 5b7e8: 70ff moveq #-1,%d0 5b7ea: 72ff moveq #-1,%d1 5b7ec: 9285 subl %d5,%d1 5b7ee: 9184 subxl %d4,%d0 5b7f0: 6600 ff58 bnew 5b74a 5b7f4: 6000 ff62 braw 5b758 <== NOT EXECUTED off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5b7f8: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5b7fe: 7209 moveq #9,%d1 <== NOT EXECUTED 5b800: 2040 moveal %d0,%a0 <== NOT EXECUTED 5b802: 78ff moveq #-1,%d4 <== NOT EXECUTED 5b804: 7aff moveq #-1,%d5 <== NOT EXECUTED 5b806: 2081 movel %d1,%a0@ <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 5b808: 2205 movel %d5,%d1 <== NOT EXECUTED 5b80a: 2004 movel %d4,%d0 <== NOT EXECUTED 5b80c: 4cee 04fc ffe4 moveml %fp@(-28),%d2-%d7/%a2 <== NOT EXECUTED 5b812: 4e5e unlk %fp <== NOT EXECUTED 5b814: 4e75 rts <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5b816: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5b81c: 2040 moveal %d0,%a0 <== NOT EXECUTED 5b81e: 78ff moveq #-1,%d4 <== NOT EXECUTED 5b820: 7aff moveq #-1,%d5 <== NOT EXECUTED 5b822: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 5b828: 2205 movel %d5,%d1 <== NOT EXECUTED 5b82a: 2004 movel %d4,%d0 <== NOT EXECUTED 5b82c: 4cee 04fc ffe4 moveml %fp@(-28),%d2-%d7/%a2 <== NOT EXECUTED 5b832: 4e5e unlk %fp <== NOT EXECUTED 5b834: 4e75 rts 000685ac : int _STAT_NAME( const char *path, struct stat *buf ) { 685ac: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 685b0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 685b4: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 685b8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 685bc: 6700 0086 beqw 68644 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 685c0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 685c2: 280e movel %fp,%d4 <== NOT EXECUTED 685c4: 0684 ffff ffec addil #-20,%d4 <== NOT EXECUTED 685ca: 4eb9 0008 712c jsr 8712c <== NOT EXECUTED 685d0: 4297 clrl %sp@ <== NOT EXECUTED 685d2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 685d4: 42a7 clrl %sp@- <== NOT EXECUTED 685d6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 685d8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 685da: 4eb9 0004 774c jsr 4774c <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 685e0: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 685e4: 4a80 tstl %d0 <== NOT EXECUTED 685e6: 664e bnes 68636 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 685e8: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 685ec: 4aa8 0018 tstl %a0@(24) <== NOT EXECUTED 685f0: 676c beqs 6865e <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 685f2: 4878 0046 pea 46 <== NOT EXECUTED 685f6: 42a7 clrl %sp@- <== NOT EXECUTED 685f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 685fa: 4eb9 0008 4228 jsr 84228 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 68600: 2f02 movel %d2,%sp@- <== NOT EXECUTED 68602: 2f04 movel %d4,%sp@- <== NOT EXECUTED 68604: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 68608: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 6860c: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 6860e: 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 ); 68612: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 68614: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 68618: 4a88 tstl %a0 <== NOT EXECUTED 6861a: 670e beqs 6862a <== NOT EXECUTED 6861c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 68620: 4a88 tstl %a0 <== NOT EXECUTED 68622: 6706 beqs 6862a <== NOT EXECUTED 68624: 2f04 movel %d4,%sp@- <== NOT EXECUTED 68626: 4e90 jsr %a0@ <== NOT EXECUTED 68628: 588f addql #4,%sp <== NOT EXECUTED return status; } 6862a: 2002 movel %d2,%d0 <== NOT EXECUTED 6862c: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 68632: 4e5e unlk %fp <== NOT EXECUTED 68634: 4e75 rts <== NOT EXECUTED if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 68636: 74ff moveq #-1,%d2 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 68638: 2002 movel %d2,%d0 <== NOT EXECUTED 6863a: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 68640: 4e5e unlk %fp <== NOT EXECUTED 68642: 4e75 rts <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 68644: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 6864a: 74ff moveq #-1,%d2 <== NOT EXECUTED 6864c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6864e: 700e moveq #14,%d0 <== NOT EXECUTED 68650: 2080 movel %d0,%a0@ <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 68652: 2002 movel %d2,%d0 <== NOT EXECUTED 68654: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 6865a: 4e5e unlk %fp <== NOT EXECUTED 6865c: 4e75 rts <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 6865e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 68662: 4a88 tstl %a0 <== NOT EXECUTED 68664: 670e beqs 68674 <== NOT EXECUTED 68666: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6866a: 4a88 tstl %a0 <== NOT EXECUTED 6866c: 6706 beqs 68674 <== NOT EXECUTED 6866e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 68670: 4e90 jsr %a0@ <== NOT EXECUTED 68672: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 68674: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 6867a: 74ff moveq #-1,%d2 <== NOT EXECUTED 6867c: 2040 moveal %d0,%a0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 6867e: 2002 movel %d2,%d0 <== NOT EXECUTED 68680: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 68686: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 6868c: 4e5e unlk %fp <== NOT EXECUTED 6868e: 4e75 rts 0004ac20 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 4ac20: 4e56 fff4 linkw %fp,#-12 4ac24: 52b9 0005 f004 addql #1,5f004 4ac2a: 48d7 001c moveml %d2-%d4,%sp@ 4ac2e: 262e 0008 movel %fp@(8),%d3 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4ac32: 4eb9 0004 abde jsr 4abde /* * Validate the parameters */ if ( !size ) 4ac38: 4a83 tstl %d3 4ac3a: 6766 beqs 4aca2 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4ac3c: 7003 moveq #3,%d0 4ac3e: b0b9 0005 f2dc cmpl 5f2dc <_System_state_Current>,%d0 4ac44: 6752 beqs 4ac98 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 4ac46: 42a7 clrl %sp@- 4ac48: 42a7 clrl %sp@- 4ac4a: 2f03 movel %d3,%sp@- 4ac4c: 2f39 0005 d900 movel 5d900 ,%sp@- 4ac52: 4eb9 0004 c0dc jsr 4c0dc <_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 ) { 4ac58: 4fef 0010 lea %sp@(16),%sp 4ac5c: 2400 movel %d0,%d2 4ac5e: 675e beqs 4acbe if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; 4ac60: 2800 movel %d0,%d4 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 4ac62: 2079 0005 df8e moveal 5df8e ,%a0 4ac68: 4a88 tstl %a0 4ac6a: 670a beqs 4ac76 (*rtems_malloc_dirty_helper)( return_this, size ); 4ac6c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ac6e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4ac70: 2050 moveal %a0@,%a0 <== NOT EXECUTED 4ac72: 4e90 jsr %a0@ <== NOT EXECUTED 4ac74: 508f addql #8,%sp <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4ac76: 2079 0005 df86 moveal 5df86 ,%a0 4ac7c: 4a88 tstl %a0 4ac7e: 6730 beqs 4acb0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4ac80: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4ac82: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4ac86: 2404 movel %d4,%d2 <== NOT EXECUTED 4ac88: 4e90 jsr %a0@ <== NOT EXECUTED 4ac8a: 588f addql #4,%sp <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4ac8c: 2002 movel %d2,%d0 <== NOT EXECUTED 4ac8e: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4ac94: 4e5e unlk %fp <== NOT EXECUTED 4ac96: 4e75 rts <== NOT EXECUTED return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4ac98: 4eb9 0004 ab84 jsr 4ab84 4ac9e: 4a00 tstb %d0 4aca0: 66a4 bnes 4ac46 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4aca2: 4282 clrl %d2 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4aca4: 2002 movel %d2,%d0 <== NOT EXECUTED 4aca6: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4acac: 4e5e unlk %fp <== NOT EXECUTED 4acae: 4e75 rts <== NOT EXECUTED (*rtems_malloc_dirty_helper)( return_this, size ); /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4acb0: 2404 movel %d4,%d2 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4acb2: 2002 movel %d2,%d0 4acb4: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 4acba: 4e5e unlk %fp 4acbc: 4e75 rts */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 4acbe: 2079 0005 df8a moveal 5df8a ,%a0 4acc4: 4a88 tstl %a0 4acc6: 670e beqs 4acd6 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 4acc8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4acca: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4acce: 4e90 jsr %a0@ <== NOT EXECUTED if ( !return_this ) { 4acd0: 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 ); 4acd2: 2800 movel %d0,%d4 <== NOT EXECUTED if ( !return_this ) { 4acd4: 668c bnes 4ac62 <== NOT EXECUTED errno = ENOMEM; 4acd6: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4acdc: 2040 moveal %d0,%a0 4acde: 700c moveq #12,%d0 4ace0: 2080 movel %d0,%a0@ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4ace2: 2002 movel %d2,%d0 4ace4: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 4acea: 4e5e unlk %fp 4acec: 4e75 rts ... 0004abc4 : } void malloc_deferred_free( void *pointer ) { 4abc4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4abc8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4abcc: 4879 0005 f5f6 pea 5f5f6 <== NOT EXECUTED 4abd2: 4eb9 0004 6798 jsr 46798 <_Chain_Append> <== NOT EXECUTED 4abd8: 508f addql #8,%sp <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } 4abda: 4e5e unlk %fp <== NOT EXECUTED 4abdc: 4e75 rts 0004abde : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 4abde: 4e56 0000 linkw %fp,#0 4abe2: 2f0b movel %a3,%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); 4abe4: 47f9 0004 a688 lea 4a688 ,%a3 { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 4abea: 2f0a movel %a2,%sp@- */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 4abec: 4879 0005 f5f6 pea 5f5f6 4abf2: 45f9 0004 baa4 lea 4baa4 <_Chain_Get>,%a2 4abf8: 4e92 jsr %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) 4abfa: 588f addql #4,%sp 4abfc: 4a80 tstl %d0 4abfe: 6714 beqs 4ac14 free(to_be_freed); 4ac00: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ac02: 4e93 jsr %a3@ <== NOT EXECUTED 4ac04: 588f addql #4,%sp <== NOT EXECUTED 4ac06: 4879 0005 f5f6 pea 5f5f6 <== NOT EXECUTED 4ac0c: 4e92 jsr %a2@ <== NOT EXECUTED 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) 4ac0e: 588f addql #4,%sp <== NOT EXECUTED 4ac10: 4a80 tstl %d0 <== NOT EXECUTED 4ac12: 66ec bnes 4ac00 <== NOT EXECUTED free(to_be_freed); } 4ac14: 246e fff8 moveal %fp@(-8),%a2 4ac18: 266e fffc moveal %fp@(-4),%a3 4ac1c: 4e5e unlk %fp 4ac1e: 4e75 rts 0004ab84 : #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { 4ab84: 4e56 0000 linkw %fp,#0 if ( _Thread_Dispatch_disable_level > 0 ) 4ab88: 2039 0005 f154 movel 5f154 <_Thread_Dispatch_disable_level>,%d0 4ab8e: 660e bnes 4ab9e return false; if ( _ISR_Nest_level > 0 ) 4ab90: 2039 0005 f1ee movel 5f1ee <_ISR_Nest_level>,%d0 #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 4ab96: 57c0 seq %d0 if ( _ISR_Nest_level > 0 ) return false; return true; } 4ab98: 4e5e unlk %fp #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 4ab9a: 4480 negl %d0 if ( _ISR_Nest_level > 0 ) return false; return true; } 4ab9c: 4e75 rts 4ab9e: 4e5e unlk %fp <== NOT EXECUTED rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 4aba0: 4200 clrb %d0 <== NOT EXECUTED if ( _ISR_Nest_level > 0 ) return false; return true; } 4aba2: 4e75 rts 000525b8 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 525b8: 4e56 0000 linkw %fp,#0 525bc: 2f0a movel %a2,%sp@- 525be: 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) ) { 525c2: 2f0a movel %a2,%sp@- 525c4: 4eb9 0004 ff42 jsr 4ff42 525ca: 588f addql #4,%sp 525cc: 4a80 tstl %d0 525ce: 662e bnes 525fe 525d0: 4a6a 0032 tstw %a2@(50) 525d4: 6628 bnes 525fe /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 525d6: 2079 0006 3a6c moveal 63a6c ,%a0 525dc: b5e8 0004 cmpal %a0@(4),%a2 525e0: 6726 beqs 52608 rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 525e2: 7006 moveq #6,%d0 525e4: b0aa 0048 cmpl %a2@(72),%d0 525e8: 670a beqs 525f4 IMFS_memfile_remove( the_jnode ); 525ea: 2f0a movel %a2,%sp@- 525ec: 4eb9 0005 2464 jsr 52464 525f2: 588f addql #4,%sp free( the_jnode ); 525f4: 2f0a movel %a2,%sp@- 525f6: 4eb9 0004 3fbc jsr 43fbc 525fc: 588f addql #4,%sp } return 0; } 525fe: 246e fffc moveal %fp@(-4),%a2 52602: 4280 clrl %d0 52604: 4e5e unlk %fp 52606: 4e75 rts /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) rtems_filesystem_current.node_access = NULL; 52608: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 5260c: 7006 moveq #6,%d0 <== NOT EXECUTED 5260e: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 52612: 66d6 bnes 525ea <== NOT EXECUTED 52614: 60de bras 525f4 <== NOT EXECUTED 000523b2 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 523b2: 4e56 ffec linkw %fp,#-20 523b6: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 523ba: 286e 0008 moveal %fp@(8),%a4 523be: 262e 000c movel %fp@(12),%d3 /* * Perform internal consistency checks */ assert( block_table ); 523c2: 4a8c tstl %a4 523c4: 6736 beqs 523fc /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 523c6: 2454 moveal %a4@,%a2 523c8: 47f9 0005 2176 lea 52176 ,%a3 for ( i=0 ; i 523d2: 4282 clrl %d2 if ( b[i] ) { 523d4: 2012 movel %a2@,%d0 523d6: 6708 beqs 523e0 memfile_free_block( b[i] ); 523d8: 2f00 movel %d0,%sp@- 523da: 4e93 jsr %a3@ b[i] = 0; 523dc: 588f addql #4,%sp 523de: 4292 clrl %a2@ * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 523e8: 2454 moveal %a4@,%a2 /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 523ea: 2f0a movel %a2,%sp@- 523ec: 4e93 jsr %a3@ *block_table = 0; 523ee: 588f addql #4,%sp 523f0: 4294 clrl %a4@ } 523f2: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 523f8: 4e5e unlk %fp 523fa: 4e75 rts /* * Perform internal consistency checks */ assert( block_table ); 523fc: 4879 0006 2e54 pea 62e54 <== NOT EXECUTED 52402: 4879 0006 2f12 pea 62f12 <__FUNCTION__.6044> <== NOT EXECUTED 52408: 4878 01b3 pea 1b3 <== NOT EXECUTED 5240c: 4879 0006 2dea pea 62dea <== NOT EXECUTED 52412: 4eb9 0004 fc30 jsr 4fc30 <__assert_func> <== NOT EXECUTED 00052878 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 52878: 4e56 ffec linkw %fp,#-20 5287c: 206e 0008 moveal %fp@(8),%a0 52880: 48d7 040c moveml %d2-%d3/%a2,%sp@ IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 52884: 2468 0038 moveal %a0@(56),%a2 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 52888: 202e 000c movel %fp@(12),%d0 5288c: 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 ) 52890: 242a 004c movel %a2@(76),%d2 52894: 262a 0050 movel %a2@(80),%d3 52898: 9681 subl %d1,%d3 5289a: 9580 subxl %d0,%d2 5289c: 6d30 blts 528ce * 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; 5289e: 2540 004c movel %d0,%a2@(76) 528a2: 2541 0050 movel %d1,%a2@(80) iop->size = the_jnode->info.file.size; 528a6: 2140 0004 movel %d0,%a0@(4) 528aa: 2141 0008 movel %d1,%a0@(8) IMFS_update_atime( the_jnode ); 528ae: 42a7 clrl %sp@- 528b0: 486e fff8 pea %fp@(-8) 528b4: 4eb9 0004 404c jsr 4404c 528ba: 256e fff8 003c movel %fp@(-8),%a2@(60) return 0; 528c0: 508f addql #8,%sp */ the_jnode->info.file.size = length; iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); 528c2: 4280 clrl %d0 return 0; } 528c4: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 528ca: 4e5e unlk %fp 528cc: 4e75 rts * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) return IMFS_memfile_extend( the_jnode, length ); 528ce: 2f01 movel %d1,%sp@- <== NOT EXECUTED 528d0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 528d2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 528d4: 4eb9 0005 2726 jsr 52726 <== NOT EXECUTED 528da: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 528de: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 528e4: 4e5e unlk %fp <== NOT EXECUTED 528e6: 4e75 rts 000528e8 : { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 528e8: 7006 moveq #6,%d0 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 528ea: 4e56 ffe8 linkw %fp,#-24 528ee: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 528f2: 246e 0008 moveal %fp@(8),%a2 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 528f6: 266a 0038 moveal %a2@(56),%a3 if (the_jnode->type == IMFS_LINEAR_FILE) { 528fa: b0ab 0048 cmpl %a3@(72),%d0 528fe: 673e beqs 5293e if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 52900: 2f2a 0010 movel %a2@(16),%sp@- 52904: 2f2a 000c movel %a2@(12),%sp@- 52908: 2f0b movel %a3,%sp@- 5290a: 4eb9 0005 2726 jsr 52726 52910: 4fef 000c lea %sp@(12),%sp 52914: 4a80 tstl %d0 52916: 6668 bnes 52980 rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 52918: 202b 004c movel %a3@(76),%d0 5291c: 222b 0050 movel %a3@(80),%d1 52920: 242a 000c movel %a2@(12),%d2 52924: 262a 0010 movel %a2@(16),%d3 52928: 2540 0004 movel %d0,%a2@(4) 5292c: 2541 0008 movel %d1,%a2@(8) } return iop->offset; } 52930: 2203 movel %d3,%d1 52932: 2002 movel %d2,%d0 52934: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 5293a: 4e5e unlk %fp 5293c: 4e75 rts IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 5293e: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 52942: 222a 0010 movel %a2@(16),%d1 <== NOT EXECUTED 52946: 242b 004c movel %a3@(76),%d2 <== NOT EXECUTED 5294a: 262b 0050 movel %a3@(80),%d3 <== NOT EXECUTED 5294e: 2800 movel %d0,%d4 <== NOT EXECUTED 52950: 2a01 movel %d1,%d5 <== NOT EXECUTED 52952: 9a83 subl %d3,%d5 <== NOT EXECUTED 52954: 9982 subxl %d2,%d4 <== NOT EXECUTED 52956: 6e12 bgts 5296a <== NOT EXECUTED 52958: 2400 movel %d0,%d2 <== NOT EXECUTED 5295a: 2601 movel %d1,%d3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 5295c: 2203 movel %d3,%d1 <== NOT EXECUTED 5295e: 2002 movel %d2,%d0 <== NOT EXECUTED 52960: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 52966: 4e5e unlk %fp <== NOT EXECUTED 52968: 4e75 rts <== NOT EXECUTED 5296a: 2203 movel %d3,%d1 <== NOT EXECUTED 5296c: 2002 movel %d2,%d0 <== NOT EXECUTED the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; 5296e: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED 52972: 2543 0010 movel %d3,%a2@(16) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 52976: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 5297c: 4e5e unlk %fp <== NOT EXECUTED 5297e: 4e75 rts <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); 52980: 4eb9 0005 4614 jsr 54614 <__errno> <== NOT EXECUTED 52986: 761c moveq #28,%d3 <== NOT EXECUTED 52988: 2040 moveal %d0,%a0 <== NOT EXECUTED 5298a: 2083 movel %d3,%a0@ <== NOT EXECUTED 5298c: 74ff moveq #-1,%d2 <== NOT EXECUTED 5298e: 76ff moveq #-1,%d3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; } return iop->offset; } 52990: 2203 movel %d3,%d1 <== NOT EXECUTED 52992: 2002 movel %d2,%d0 <== NOT EXECUTED 52994: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 5299a: 4e5e unlk %fp <== NOT EXECUTED 5299c: 4e75 rts 00052c68 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 52c68: 4e56 fff0 linkw %fp,#-16 52c6c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 52c70: 246e 0008 moveal %fp@(8),%a2 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 52c74: 202a 0014 movel %a2@(20),%d0 52c78: 2200 movel %d0,%d1 52c7a: 0281 0000 0204 andil #516,%d1 uint32_t mode ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 52c80: 266a 0038 moveal %a2@(56),%a3 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 52c84: 6708 beqs 52c8e && (the_jnode->type == IMFS_LINEAR_FILE)) { 52c86: 7206 moveq #6,%d1 52c88: b2ab 0048 cmpl %a3@(72),%d1 52c8c: 6732 beqs 52cc0 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) 52c8e: 222b 004c movel %a3@(76),%d1 52c92: 242b 0050 movel %a3@(80),%d2 && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 52c96: 0800 0009 btst #9,%d0 52c9a: 6710 beqs 52cac iop->offset = the_jnode->info.file.size; 52c9c: 2541 000c movel %d1,%a2@(12) 52ca0: 2542 0010 movel %d2,%a2@(16) 52ca4: 222b 004c movel %a3@(76),%d1 52ca8: 242b 0050 movel %a3@(80),%d2 iop->size = the_jnode->info.file.size; 52cac: 4280 clrl %d0 52cae: 2541 0004 movel %d1,%a2@(4) 52cb2: 2542 0008 movel %d2,%a2@(8) return 0; } 52cb6: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 52cbc: 4e5e unlk %fp 52cbe: 4e75 rts /* * 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; 52cc0: 202b 0050 movel %a3@(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; 52cc4: 4282 clrl %d2 <== NOT EXECUTED 52cc6: 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; 52cc8: 222b 0054 movel %a3@(84),%d1 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 52ccc: 2742 004c movel %d2,%a3@(76) <== NOT EXECUTED 52cd0: 2743 0050 movel %d3,%a3@(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; 52cd4: 7605 moveq #5,%d3 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 52cd6: 42ab 0054 clrl %a3@(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; 52cda: 2743 0048 movel %d3,%a3@(72) <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 52cde: 42ab 0058 clrl %a3@(88) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 52ce2: 42ab 005c clrl %a3@(92) <== NOT EXECUTED if ((count != 0) 52ce6: 4a80 tstl %d0 <== NOT EXECUTED 52ce8: 6610 bnes 52cfa <== NOT EXECUTED 52cea: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 52cee: 4281 clrl %d1 <== NOT EXECUTED 52cf0: 4282 clrl %d2 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 52cf2: 0800 0009 btst #9,%d0 <== NOT EXECUTED 52cf6: 67b4 beqs 52cac <== NOT EXECUTED 52cf8: 60a2 bras 52c9c <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 52cfa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 52cfc: 2f01 movel %d1,%sp@- <== NOT EXECUTED 52cfe: 42a7 clrl %sp@- <== NOT EXECUTED 52d00: 42a7 clrl %sp@- <== NOT EXECUTED 52d02: 2f0b movel %a3,%sp@- <== NOT EXECUTED 52d04: 4eb9 0005 299e jsr 5299e <== 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) 52d0a: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 52d0e: 72ff moveq #-1,%d1 <== NOT EXECUTED 52d10: b280 cmpl %d0,%d1 <== NOT EXECUTED 52d12: 6710 beqs 52d24 <== NOT EXECUTED 52d14: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED 52d18: 222b 004c movel %a3@(76),%d1 <== NOT EXECUTED 52d1c: 242b 0050 movel %a3@(80),%d2 <== NOT EXECUTED 52d20: 6000 ff74 braw 52c96 <== NOT EXECUTED 52d24: 70ff moveq #-1,%d0 <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; return 0; } 52d26: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 52d2c: 4e5e unlk %fp <== NOT EXECUTED 52d2e: 4e75 rts 000429a8 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 429a8: 4e56 ffdc linkw %fp,#-36 429ac: 226e 0008 moveal %fp@(8),%a1 429b0: 48d7 040c moveml %d2-%d3/%a2,%sp@ 429b4: 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) ) ) 429b8: 2002 movel %d2,%d0 429ba: 0280 0000 f000 andil #61440,%d0 429c0: 6700 0108 beqw 42aca rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 429c4: 762f moveq #47,%d3 429c6: 1211 moveb %a1@,%d1 429c8: 1001 moveb %d1,%d0 429ca: 49c0 extbl %d0 429cc: b680 cmpl %d0,%d3 429ce: 670e beqs 429de 429d0: 163c 005c moveb #92,%d3 429d4: b680 cmpl %d0,%d3 429d6: 6706 beqs 429de 429d8: 4a01 tstb %d1 429da: 6600 0096 bnew 42a72 429de: 2079 0005 da04 moveal 5da04 ,%a0 429e4: 45ee ffe8 lea %fp@(-24),%a2 429e8: 7001 moveq #1,%d0 429ea: 24a8 0018 movel %a0@(24),%a2@ 429ee: 2d68 001c ffec movel %a0@(28),%fp@(-20) 429f4: 2d68 0020 fff0 movel %a0@(32),%fp@(-16) 429fa: 2d68 0024 fff4 movel %a0@(36),%fp@(-12) 42a00: 2d68 0028 fff8 movel %a0@(40),%fp@(-8) if ( !temp_loc.ops->evalformake_h ) { 42a06: 206e fff4 moveal %fp@(-12),%a0 42a0a: 2068 0004 moveal %a0@(4),%a0 42a0e: 4a88 tstl %a0 42a10: 6700 008e beqw 42aa0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 42a14: 486e fffc pea %fp@(-4) 42a18: 2f0a movel %a2,%sp@- 42a1a: 4871 0800 pea %a1@(00000000,%d0:l) 42a1e: 4e90 jsr %a0@ &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 42a20: 4fef 000c lea %sp@(12),%sp 42a24: 4a80 tstl %d0 42a26: 6600 0094 bnew 42abc return -1; if ( !temp_loc.ops->mknod_h ) { 42a2a: 226e fff4 moveal %fp@(-12),%a1 42a2e: 2069 0014 moveal %a1@(20),%a0 42a32: 4a88 tstl %a0 42a34: 6700 00ae beqw 42ae4 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 ); 42a38: 2f0a movel %a2,%sp@- 42a3a: 2f2e 0014 movel %fp@(20),%sp@- 42a3e: 2f2e 0010 movel %fp@(16),%sp@- 42a42: 2f02 movel %d2,%sp@- 42a44: 2f2e fffc movel %fp@(-4),%sp@- 42a48: 4e90 jsr %a0@ rtems_filesystem_freenode( &temp_loc ); 42a4a: 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 ); 42a4e: 2400 movel %d0,%d2 rtems_filesystem_freenode( &temp_loc ); 42a50: 4fef 0014 lea %sp@(20),%sp 42a54: 4a88 tstl %a0 42a56: 670e beqs 42a66 42a58: 2068 001c moveal %a0@(28),%a0 42a5c: 4a88 tstl %a0 42a5e: 6706 beqs 42a66 42a60: 2f0a movel %a2,%sp@- 42a62: 4e90 jsr %a0@ 42a64: 588f addql #4,%sp return result; } 42a66: 2002 movel %d2,%d0 42a68: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 42a6e: 4e5e unlk %fp 42a70: 4e75 rts int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 42a72: 2079 0005 da04 moveal 5da04 ,%a0 42a78: 45ee ffe8 lea %fp@(-24),%a2 42a7c: 5888 addql #4,%a0 42a7e: 4280 clrl %d0 42a80: 2498 movel %a0@+,%a2@ 42a82: 2d58 ffec movel %a0@+,%fp@(-20) 42a86: 2d58 fff0 movel %a0@+,%fp@(-16) 42a8a: 2d58 fff4 movel %a0@+,%fp@(-12) 42a8e: 2d50 fff8 movel %a0@,%fp@(-8) if ( !temp_loc.ops->evalformake_h ) { 42a92: 206e fff4 moveal %fp@(-12),%a0 42a96: 2068 0004 moveal %a0@(4),%a0 42a9a: 4a88 tstl %a0 42a9c: 6600 ff76 bnew 42a14 if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 42aa0: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 42aa6: 74ff moveq #-1,%d2 <== NOT EXECUTED 42aa8: 2040 moveal %d0,%a0 <== NOT EXECUTED 42aaa: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } 42ab0: 2002 movel %d2,%d0 <== NOT EXECUTED 42ab2: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 42ab8: 4e5e unlk %fp <== NOT EXECUTED 42aba: 4e75 rts <== NOT EXECUTED result = (*temp_loc.ops->evalformake_h)( &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 42abc: 74ff moveq #-1,%d2 result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } 42abe: 2002 movel %d2,%d0 42ac0: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 42ac6: 4e5e unlk %fp 42ac8: 4e75 rts int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); 42aca: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 42ad0: 74ff moveq #-1,%d2 <== NOT EXECUTED 42ad2: 2040 moveal %d0,%a0 <== NOT EXECUTED 42ad4: 7016 moveq #22,%d0 <== NOT EXECUTED 42ad6: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } 42ad8: 2002 movel %d2,%d0 <== NOT EXECUTED 42ada: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 42ae0: 4e5e unlk %fp <== NOT EXECUTED 42ae2: 4e75 rts <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 42ae4: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 42ae8: 4a88 tstl %a0 <== NOT EXECUTED 42aea: 67b4 beqs 42aa0 <== NOT EXECUTED 42aec: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 42aee: 74ff moveq #-1,%d2 <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 42af0: 4e90 jsr %a0@ <== NOT EXECUTED 42af2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 42af4: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 42afa: 2040 moveal %d0,%a0 <== NOT EXECUTED 42afc: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 42b02: 60ac bras 42ab0 <== NOT EXECUTED 00042b26 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 42b26: 4e56 ffd0 linkw %fp,#-48 42b2a: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 42b2e: 286e 0008 moveal %fp@(8),%a4 42b32: 266e 000c moveal %fp@(12),%a3 42b36: 282e 0010 movel %fp@(16),%d4 42b3a: 242e 0014 movel %fp@(20),%d2 42b3e: 262e 0018 movel %fp@(24),%d3 /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 42b42: 4a8b tstl %a3 42b44: 6700 01d2 beqw 42d18 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 42b48: 7001 moveq #1,%d0 42b4a: b084 cmpl %d4,%d0 42b4c: 6500 01ca bcsw 42d18 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 42b50: 4aab 0024 tstl %a3@(36) 42b54: 6700 01f4 beqw 42d4a /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 42b58: 4a82 tstl %d2 42b5a: 6700 0188 beqw 42ce4 size += strlen( device ) + 1; 42b5e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42b60: 4eb9 0005 01ac jsr 501ac <== NOT EXECUTED 42b66: 588f addql #4,%sp <== NOT EXECUTED 42b68: 0680 0000 006d addil #109,%d0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 42b6e: 2f00 movel %d0,%sp@- 42b70: 4eb9 0004 ac20 jsr 4ac20 if ( !temp_mt_entry ) { 42b76: 588f addql #4,%sp */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 42b78: 2440 moveal %d0,%a2 42b7a: 2a00 movel %d0,%d5 if ( !temp_mt_entry ) { 42b7c: 6700 020e beqw 42d8c errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 42b80: 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; 42b84: 2540 002c movel %d0,%a2@(44) temp_mt_entry->options = options; if ( device ) { 42b88: 4a82 tstl %d2 42b8a: 6700 0150 beqw 42cdc temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 42b8e: 2f02 movel %d2,%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 ); 42b90: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 42b96: 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 = 42b98: 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 ); 42b9c: 4eb9 0004 fd60 jsr 4fd60 <== NOT EXECUTED 42ba2: 508f addql #8,%sp <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 42ba4: 4a83 tstl %d3 42ba6: 6700 0114 beqw 42cbc if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 42baa: 2f03 movel %d3,%sp@- * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 42bac: 7801 moveq #1,%d4 42bae: 240e movel %fp,%d2 42bb0: 0682 ffff ffec addil #-20,%d2 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 42bb6: 4eb9 0005 01ac jsr 501ac * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 42bbc: 2e84 movel %d4,%sp@ 42bbe: 2f02 movel %d2,%sp@- 42bc0: 4878 0007 pea 7 42bc4: 2f00 movel %d0,%sp@- 42bc6: 2f03 movel %d3,%sp@- 42bc8: 4eb9 0004 2720 jsr 42720 42bce: 4fef 0014 lea %sp@(20),%sp 42bd2: 72ff moveq #-1,%d1 42bd4: b280 cmpl %d0,%d1 42bd6: 6700 0182 beqw 42d5a /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 42bda: 206e fff8 moveal %fp@(-8),%a0 42bde: 2068 0010 moveal %a0@(16),%a0 42be2: 4a88 tstl %a0 42be4: 6700 018a beqw 42d70 /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 42be8: 2f02 movel %d2,%sp@- 42bea: 4e90 jsr %a0@ 42bec: 588f addql #4,%sp 42bee: 7201 moveq #1,%d1 42bf0: b280 cmpl %d0,%d1 42bf2: 6600 013c bnew 42d30 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 42bf6: 2079 0005 f02c moveal 5f02c ,%a0 42bfc: b1fc 0005 f030 cmpal #389168,%a0 42c02: 6758 beqs 42c5c !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 ) 42c04: 222e ffec movel %fp@(-20),%d1 42c08: b2a8 001c cmpl %a0@(28),%d1 42c0c: 6710 beqs 42c1e * 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 ) { 42c0e: 2050 moveal %a0@,%a0 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 42c10: b1fc 0005 f030 cmpal #389168,%a0 42c16: 6748 beqs 42c60 !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 ) 42c18: b2a8 001c cmpl %a0@(28),%d1 42c1c: 66f0 bnes 42c0e /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 42c1e: 4eb9 0004 ede0 jsr 4ede0 <__errno> 42c24: 2240 moveal %d0,%a1 42c26: 7010 moveq #16,%d0 42c28: 2280 movel %d0,%a1@ return 0; cleanup_and_bail: free( temp_mt_entry ); 42c2a: 2f0a movel %a2,%sp@- 42c2c: 4eb9 0004 a688 jsr 4a688 42c32: 588f addql #4,%sp if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 42c34: 2242 moveal %d2,%a1 42c36: 2069 000c moveal %a1@(12),%a0 42c3a: 4a88 tstl %a0 42c3c: 6700 00ce beqw 42d0c 42c40: 2028 001c movel %a0@(28),%d0 42c44: 6700 00c6 beqw 42d0c 42c48: 2f02 movel %d2,%sp@- 42c4a: 2040 moveal %d0,%a0 42c4c: 4e90 jsr %a0@ 42c4e: 588f addql #4,%sp 42c50: 70ff moveq #-1,%d0 return -1; } 42c52: 4cee 1c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a4 42c58: 4e5e unlk %fp 42c5a: 4e75 rts cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 42c5c: 222e ffec movel %fp@(-20),%d1 <== NOT EXECUTED * 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; 42c60: 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; 42c64: 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; 42c6a: 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 ){ 42c70: 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; 42c74: 2541 0008 movel %d1,%a2@(8) temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 42c78: 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 ){ 42c7c: 4a88 tstl %a0 42c7e: 6700 00f0 beqw 42d70 errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 42c82: 2f0a movel %a2,%sp@- 42c84: 4e90 jsr %a0@ 42c86: 588f addql #4,%sp 42c88: 4a80 tstl %d0 42c8a: 669e bnes 42c2a temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 42c8c: 2f0a movel %a2,%sp@- 42c8e: 206b 0024 moveal %a3@(36),%a0 42c92: 4e90 jsr %a0@ 42c94: 588f addql #4,%sp 42c96: 4a80 tstl %d0 42c98: 6650 bnes 42cea RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 42c9a: 2f0a movel %a2,%sp@- 42c9c: 4879 0005 f02c pea 5f02c 42ca2: 4eb9 0004 6798 jsr 46798 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 42ca8: 508f addql #8,%sp 42caa: 4a8c tstl %a4 42cac: 6702 beqs 42cb0 *mt_entry = temp_mt_entry; 42cae: 288a movel %a2,%a4@ 42cb0: 4280 clrl %d0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 42cb2: 4cee 1c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a4 42cb8: 4e5e unlk %fp 42cba: 4e75 rts * 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; 42cbc: 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; 42cc0: 4282 clrl %d2 * 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; 42cc2: 42aa 0024 clrl %a2@(36) temp_mt_entry->mt_fs_root.ops = NULL; 42cc6: 42aa 0028 clrl %a2@(40) temp_mt_entry->mt_point_node.node_access = NULL; 42cca: 42aa 0008 clrl %a2@(8) temp_mt_entry->mt_point_node.handlers = NULL; 42cce: 42aa 0010 clrl %a2@(16) temp_mt_entry->mt_point_node.ops = NULL; 42cd2: 42aa 0014 clrl %a2@(20) temp_mt_entry->mt_point_node.mt_entry = NULL; 42cd6: 42aa 0018 clrl %a2@(24) 42cda: 60b0 bras 42c8c if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); } else temp_mt_entry->dev = 0; 42cdc: 42aa 0068 clrl %a2@(104) 42ce0: 6000 fec2 braw 42ba4 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 42ce4: 706c moveq #108,%d0 42ce6: 6000 fe86 braw 42b6e temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 42cea: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 42cee: 2068 0028 moveal %a0@(40),%a0 <== NOT EXECUTED 42cf2: 4a88 tstl %a0 <== NOT EXECUTED 42cf4: 6706 beqs 42cfc <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 42cf6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42cf8: 4e90 jsr %a0@ <== NOT EXECUTED 42cfa: 588f addql #4,%sp <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 42cfc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42cfe: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED if ( loc_to_free ) 42d04: 588f addql #4,%sp <== NOT EXECUTED 42d06: 4a82 tstl %d2 <== NOT EXECUTED 42d08: 6600 ff2a bnew 42c34 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 42d0c: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; } 42d0e: 4cee 1c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a4 <== NOT EXECUTED 42d14: 4e5e unlk %fp <== NOT EXECUTED 42d16: 4e75 rts <== NOT EXECUTED * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 42d18: 4eb9 0004 ede0 jsr 4ede0 <__errno> 42d1e: 7216 moveq #22,%d1 42d20: 2040 moveal %d0,%a0 42d22: 70ff moveq #-1,%d0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 42d24: 4cee 1c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a4 * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 42d2a: 2081 movel %d1,%a0@ if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 42d2c: 4e5e unlk %fp 42d2e: 4e75 rts /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 42d30: 4eb9 0004 ede0 jsr 4ede0 <__errno> 42d36: 7214 moveq #20,%d1 42d38: 2040 moveal %d0,%a0 42d3a: 2081 movel %d1,%a0@ return 0; cleanup_and_bail: free( temp_mt_entry ); 42d3c: 2f0a movel %a2,%sp@- 42d3e: 4eb9 0004 a688 jsr 4a688 42d44: 588f addql #4,%sp 42d46: 6000 feec braw 42c34 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 42d4a: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 42d50: 4285 clrl %d5 <== NOT EXECUTED 42d52: 2040 moveal %d0,%a0 <== NOT EXECUTED 42d54: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 42d5a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 42d5c: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED 42d62: 588f addql #4,%sp <== NOT EXECUTED 42d64: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 42d66: 4cee 1c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a4 <== NOT EXECUTED 42d6c: 4e5e unlk %fp <== NOT EXECUTED 42d6e: 4e75 rts <== NOT EXECUTED * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ errno = ENOTSUP; 42d70: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 42d76: 2040 moveal %d0,%a0 <== NOT EXECUTED 42d78: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 42d7e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42d80: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED 42d86: 588f addql #4,%sp <== NOT EXECUTED 42d88: 6000 feaa braw 42c34 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 42d8c: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 42d92: 7a0c moveq #12,%d5 <== NOT EXECUTED 42d94: 2040 moveal %d0,%a0 <== NOT EXECUTED 42d96: 70ff moveq #-1,%d0 <== NOT EXECUTED 42d98: 2085 movel %d5,%a0@ <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 42d9a: 4cee 1c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a4 <== NOT EXECUTED 42da0: 4e5e unlk %fp <== NOT EXECUTED 42da2: 4e75 rts 00042e98 : */ int newlib_free_buffers( FILE *fp ) { 42e98: 4e56 0000 linkw %fp,#0 42e9c: 2f0a movel %a2,%sp@- 42e9e: 246e 0008 moveal %fp@(8),%a2 switch ( fileno(fp) ) { 42ea2: 2f0a movel %a2,%sp@- 42ea4: 4eb9 0004 f174 jsr 4f174 42eaa: 588f addql #4,%sp 42eac: 7202 moveq #2,%d1 42eae: b280 cmpl %d0,%d1 42eb0: 6414 bccs 42ec6 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 42eb2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42eb4: 4eb9 0004 ef1e jsr 4ef1e <== NOT EXECUTED 42eba: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 42ebc: 246e fffc moveal %fp@(-4),%a2 42ec0: 4280 clrl %d0 42ec2: 4e5e unlk %fp 42ec4: 4e75 rts { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 42ec6: 302a 000c movew %a2@(12),%d0 42eca: 48c0 extl %d0 42ecc: 4a00 tstb %d0 42ece: 6cec bges 42ebc free( fp->_bf._base ); 42ed0: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 42ed4: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; 42eda: 588f addql #4,%sp <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 42edc: 302a 000c movew %a2@(12),%d0 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 42ee0: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 42ee4: 0880 0007 bclr #7,%d0 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 42ee8: 4292 clrl %a2@ <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 42eea: 3540 000c movew %d0,%a2@(12) <== NOT EXECUTED break; default: fclose(fp); } return 0; } 42eee: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 42ef2: 4280 clrl %d0 <== NOT EXECUTED 42ef4: 4e5e unlk %fp <== NOT EXECUTED 42ef6: 4e75 rts 000432a4 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 432a4: 4e56 0000 linkw %fp,#0 432a8: 2f02 movel %d2,%sp@- 432aa: 242e 0008 movel %fp@(8),%d2 rtems_device_driver status; if ( !initialized ) { 432ae: 4a39 0006 021c tstb 6021c 432b4: 670a beqs 432c0 NULL_major = major; } return RTEMS_SUCCESSFUL; } 432b6: 242e fffc movel %fp@(-4),%d2 432ba: 4280 clrl %d0 432bc: 4e5e unlk %fp 432be: 4e75 rts rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( 432c0: 42a7 clrl %sp@- ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 432c2: 7001 moveq #1,%d0 432c4: 13c0 0006 021c moveb %d0,6021c status = rtems_io_register_name( 432ca: 2f02 movel %d2,%sp@- 432cc: 4879 0005 dd84 pea 5dd84 432d2: 4eb9 0004 33fa jsr 433fa "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 432d8: 4fef 000c lea %sp@(12),%sp 432dc: 4a80 tstl %d0 432de: 6610 bnes 432f0 rtems_fatal_error_occurred(status); NULL_major = major; 432e0: 23c2 0006 0a3c movel %d2,60a3c } return RTEMS_SUCCESSFUL; } 432e6: 242e fffc movel %fp@(-4),%d2 432ea: 4280 clrl %d0 432ec: 4e5e unlk %fp 432ee: 4e75 rts major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 432f0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 432f2: 4eb9 0004 764c jsr 4764c <== NOT EXECUTED 00043282 : rtems_device_driver null_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp ) { 43282: 4e56 0000 linkw %fp,#0 43286: 206e 0010 moveal %fp@(16),%a0 rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 4328a: 4a88 tstl %a0 4328c: 6706 beqs 43294 rw_args->bytes_moved = rw_args->count; 4328e: 2168 0010 0018 movel %a0@(16),%a0@(24) <== NOT EXECUTED return NULL_SUCCESSFUL; } 43294: 4280 clrl %d0 43296: 4e5e unlk %fp 43298: 4e75 rts 00043124 : int open( const char *pathname, int flags, ... ) { 43124: 4e56 ffcc linkw %fp,#-52 43128: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ 4312c: 242e 000c movel %fp@(12),%d2 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 43130: 2002 movel %d2,%d0 43132: 5280 addql #1,%d0 int open( const char *pathname, int flags, ... ) { 43134: 282e 0008 movel %fp@(8),%d4 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 43138: 0800 0000 btst #0,%d0 4313c: 6600 00dc bnew 4321a 43140: 4283 clrl %d3 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 43142: 0800 0001 btst #1,%d0 43146: 6704 beqs 4314c eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 43148: 7002 moveq #2,%d0 4314a: 8680 orl %d0,%d3 va_start(ap, flags); mode = va_arg( ap, int ); 4314c: 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(); 43150: 4eb9 0004 aa8c jsr 4aa8c 43156: 2440 moveal %d0,%a2 if ( iop == 0 ) { 43158: 4a80 tstl %d0 4315a: 6700 00c4 beqw 43220 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 4315e: 2f04 movel %d4,%sp@- 43160: 4bf9 0005 01ac lea 501ac ,%a5 43166: 4e95 jsr %a5@ /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 43168: 47ee ffec lea %fp@(-20),%a3 4316c: 7201 moveq #1,%d1 4316e: 49f9 0004 2720 lea 42720 ,%a4 43174: 2e81 movel %d1,%sp@ 43176: 2f0b movel %a3,%sp@- 43178: 2f03 movel %d3,%sp@- 4317a: 2f00 movel %d0,%sp@- 4317c: 2f04 movel %d4,%sp@- 4317e: 4e94 jsr %a4@ pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 43180: 4fef 0014 lea %sp@(20),%sp 43184: 72ff moveq #-1,%d1 43186: b280 cmpl %d0,%d1 43188: 6700 016c beqw 432f6 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 4318c: 2002 movel %d2,%d0 4318e: 0280 0000 0a00 andil #2560,%d0 43194: 0c80 0000 0a00 cmpil #2560,%d0 4319a: 6700 00a0 beqw 4323c * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 4319e: 262a 0014 movel %a2@(20),%d3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 431a2: 256e fff4 003c movel %fp@(-12),%a2@(60) iop->file_info = loc.node_access; 431a8: 256e ffec 0038 movel %fp@(-20),%a2@(56) iop->flags |= rtems_libio_fcntl_flags( flags ); 431ae: 2f02 movel %d2,%sp@- 431b0: 4eb9 0004 ab44 jsr 4ab44 iop->pathinfo = loc; 431b6: 2553 0018 movel %a3@,%a2@(24) if ( !iop->handlers || !iop->handlers->open_h ) { 431ba: 588f addql #4,%sp */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 431bc: 256e fff0 001c movel %fp@(-16),%a2@(28) 431c2: 256e fff4 0020 movel %fp@(-12),%a2@(32) 431c8: 256e fff8 0024 movel %fp@(-8),%a2@(36) if ( !iop->handlers || !iop->handlers->open_h ) { 431ce: 206a 003c moveal %a2@(60),%a0 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 431d2: 8083 orl %d3,%d0 iop->pathinfo = loc; 431d4: 256e fffc 0028 movel %fp@(-4),%a2@(40) * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 431da: 2540 0014 movel %d0,%a2@(20) iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { 431de: 4a88 tstl %a0 431e0: 6700 0104 beqw 432e6 431e4: 2050 moveal %a0@,%a0 431e6: 4a88 tstl %a0 431e8: 6700 00fc beqw 432e6 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 431ec: 2f05 movel %d5,%sp@- 431ee: 2f02 movel %d2,%sp@- 431f0: 2f04 movel %d4,%sp@- 431f2: 2f0a movel %a2,%sp@- 431f4: 4e90 jsr %a0@ if ( rc ) { 431f6: 4fef 0010 lea %sp@(16),%sp 431fa: 4a80 tstl %d0 431fc: 667a bnes 43278 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 431fe: 0802 000a btst #10,%d2 43202: 6600 0092 bnew 43296 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 43206: 200a movel %a2,%d0 43208: 90b9 0005 eff4 subl 5eff4 ,%d0 4320e: ec80 asrl #6,%d0 } 43210: 4cee 3c3c ffcc moveml %fp@(-52),%d2-%d5/%a2-%a5 43216: 4e5e unlk %fp 43218: 4e75 rts * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 4321a: 7604 moveq #4,%d3 4321c: 6000 ff24 braw 43142 * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) { 43220: 7417 moveq #23,%d2 43222: 263c 0004 ede0 movel #323040,%d3 if ( rc ) { if ( iop ) rtems_libio_free( iop ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); 43228: 2043 moveal %d3,%a0 4322a: 4e90 jsr %a0@ 4322c: 2040 moveal %d0,%a0 4322e: 70ff moveq #-1,%d0 43230: 2082 movel %d2,%a0@ } return iop - rtems_libio_iops; } 43232: 4cee 3c3c ffcc moveml %fp@(-52),%d2-%d5/%a2-%a5 43238: 4e5e unlk %fp 4323a: 4e75 rts if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 4323c: 7411 moveq #17,%d2 4323e: 263c 0004 ede0 movel #323040,%d3 done: va_end(ap); if ( rc ) { if ( iop ) 43244: 4a8a tstl %a2 43246: 670a beqs 43252 rtems_libio_free( iop ); 43248: 2f0a movel %a2,%sp@- 4324a: 4eb9 0004 a9fe jsr 4a9fe 43250: 588f addql #4,%sp if ( loc_to_free ) 43252: 4a8b tstl %a3 43254: 67d2 beqs 43228 rtems_filesystem_freenode( loc_to_free ); 43256: 206b 000c moveal %a3@(12),%a0 4325a: 4a88 tstl %a0 4325c: 67ca beqs 43228 4325e: 2068 001c moveal %a0@(28),%a0 43262: 4a88 tstl %a0 43264: 67c2 beqs 43228 43266: 2f0b movel %a3,%sp@- 43268: 4e90 jsr %a0@ 4326a: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( rc ); 4326c: 2043 moveal %d3,%a0 4326e: 4e90 jsr %a0@ 43270: 2040 moveal %d0,%a0 43272: 70ff moveq #-1,%d0 43274: 2082 movel %d2,%a0@ 43276: 60ba bras 43232 goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 43278: 263c 0004 ede0 movel #323040,%d3 4327e: 2043 moveal %d3,%a0 43280: 4e90 jsr %a0@ 43282: 2040 moveal %d0,%a0 43284: 2410 movel %a0@,%d2 */ done: va_end(ap); if ( rc ) { 43286: 66bc bnes 43244 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 43288: 200a movel %a2,%d0 <== NOT EXECUTED 4328a: 90b9 0005 eff4 subl 5eff4 ,%d0 <== NOT EXECUTED 43290: ec80 asrl #6,%d0 <== NOT EXECUTED 43292: 6000 ff7c braw 43210 <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 43296: 200a movel %a2,%d0 43298: 90b9 0005 eff4 subl 5eff4 ,%d0 4329e: ec80 asrl #6,%d0 432a0: 42a7 clrl %sp@- 432a2: 42a7 clrl %sp@- 432a4: 2f00 movel %d0,%sp@- 432a6: 4eb9 0004 a718 jsr 4a718 if ( rc ) { 432ac: 4fef 000c lea %sp@(12),%sp /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 432b0: 2400 movel %d0,%d2 if ( rc ) { 432b2: 6700 ff52 beqw 43206 if(errno) rc = errno; 432b6: 263c 0004 ede0 movel #323040,%d3 <== NOT EXECUTED 432bc: 2043 moveal %d3,%a0 <== NOT EXECUTED 432be: 4e90 jsr %a0@ <== NOT EXECUTED 432c0: 2040 moveal %d0,%a0 <== NOT EXECUTED 432c2: 4a90 tstl %a0@ <== NOT EXECUTED 432c4: 6662 bnes 43328 <== NOT EXECUTED close( iop - rtems_libio_iops ); 432c6: 200a movel %a2,%d0 <== NOT EXECUTED 432c8: 90b9 0005 eff4 subl 5eff4 ,%d0 <== NOT EXECUTED 432ce: 97cb subal %a3,%a3 <== NOT EXECUTED 432d0: ec80 asrl #6,%d0 <== NOT EXECUTED 432d2: 95ca subal %a2,%a2 <== NOT EXECUTED 432d4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 432d6: 4eb9 0004 a5e8 jsr 4a5e8 <== NOT EXECUTED 432dc: 588f addql #4,%sp <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 432de: 4a82 tstl %d2 <== NOT EXECUTED 432e0: 67a6 beqs 43288 <== NOT EXECUTED 432e2: 6000 ff60 braw 43244 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 432e6: 243c 0000 0086 movel #134,%d2 <== NOT EXECUTED 432ec: 263c 0004 ede0 movel #323040,%d3 <== NOT EXECUTED 432f2: 6000 ff50 braw 43244 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 432f6: 263c 0004 ede0 movel #323040,%d3 432fc: 2043 moveal %d3,%a0 432fe: 4e90 jsr %a0@ 43300: 7202 moveq #2,%d1 43302: 2040 moveal %d0,%a0 43304: b290 cmpl %a0@,%d1 43306: 6712 beqs 4331a } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 43308: 2043 moveal %d3,%a0 4330a: 97cb subal %a3,%a3 4330c: 4e90 jsr %a0@ 4330e: 2040 moveal %d0,%a0 43310: 2410 movel %a0@,%d2 */ done: va_end(ap); if ( rc ) { 43312: 6700 ff74 beqw 43288 43316: 6000 ff2c braw 43244 rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 4331a: 0802 0009 btst #9,%d2 4331e: 662a bnes 4334a 43320: 97cb subal %a3,%a3 43322: 7402 moveq #2,%d2 43324: 6000 ff1e braw 43244 */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 43328: 2043 moveal %d3,%a0 <== NOT EXECUTED close( iop - rtems_libio_iops ); 4332a: 97cb subal %a3,%a3 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 4332c: 4e90 jsr %a0@ <== NOT EXECUTED 4332e: 2040 moveal %d0,%a0 <== NOT EXECUTED close( iop - rtems_libio_iops ); 43330: 200a movel %a2,%d0 <== NOT EXECUTED 43332: 90b9 0005 eff4 subl 5eff4 ,%d0 <== NOT EXECUTED 43338: 95ca subal %a2,%a2 <== NOT EXECUTED 4333a: ec80 asrl #6,%d0 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 4333c: 2410 movel %a0@,%d2 <== NOT EXECUTED close( iop - rtems_libio_iops ); 4333e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43340: 4eb9 0004 a5e8 jsr 4a5e8 <== NOT EXECUTED 43346: 588f addql #4,%sp <== NOT EXECUTED 43348: 6094 bras 432de <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 4334a: 42a7 clrl %sp@- 4334c: 2005 movel %d5,%d0 4334e: 42a7 clrl %sp@- 43350: 08c0 000f bset #15,%d0 43354: 2f00 movel %d0,%sp@- 43356: 2f04 movel %d4,%sp@- 43358: 4eb9 0004 29a8 jsr 429a8 if ( rc ) { 4335e: 4fef 0010 lea %sp@(16),%sp 43362: 4a80 tstl %d0 43364: 66a2 bnes 43308 rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); 43366: 2f04 movel %d4,%sp@- 43368: 4e95 jsr %a5@ 4336a: 7201 moveq #1,%d1 4336c: 2e81 movel %d1,%sp@ 4336e: 2f0b movel %a3,%sp@- 43370: 42a7 clrl %sp@- 43372: 2f00 movel %d0,%sp@- 43374: 2f04 movel %d4,%sp@- 43376: 4e94 jsr %a4@ if ( status != 0 ) { /* The file did not exist */ 43378: 4fef 0014 lea %sp@(20),%sp 4337c: 4a80 tstl %d0 4337e: 6700 fe1e beqw 4319e 43382: 97cb subal %a3,%a3 <== NOT EXECUTED 43384: 740d moveq #13,%d2 <== NOT EXECUTED 43386: 6000 febc braw 43244 <== NOT EXECUTED 000430b0 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 430b0: 4e56 0000 linkw %fp,#0 430b4: 2f0a movel %a2,%sp@- int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 430b6: 45f9 0004 3124 lea 43124 ,%a2 430bc: 42a7 clrl %sp@- 430be: 42a7 clrl %sp@- 430c0: 4879 0005 c33c pea 5c33c 430c6: 4e92 jsr %a2@ 430c8: 4fef 000c lea %sp@(12),%sp 430cc: 72ff moveq #-1,%d1 430ce: b280 cmpl %d0,%d1 430d0: 6730 beqs 43102 /* * 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) 430d2: 42a7 clrl %sp@- 430d4: 4878 0001 pea 1 430d8: 4879 0005 c33c pea 5c33c 430de: 4e92 jsr %a2@ 430e0: 4fef 000c lea %sp@(12),%sp 430e4: 72ff moveq #-1,%d1 430e6: b280 cmpl %d0,%d1 430e8: 672c beqs 43116 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 430ea: 42a7 clrl %sp@- 430ec: 4878 0001 pea 1 430f0: 4879 0005 c33c pea 5c33c 430f6: 4e92 jsr %a2@ 430f8: 4fef 000c lea %sp@(12),%sp 430fc: 72ff moveq #-1,%d1 430fe: b280 cmpl %d0,%d1 43100: 6708 beqs 4310a rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ } 43102: 246e fffc moveal %fp@(-4),%a2 43106: 4e5e unlk %fp 43108: 4e75 rts */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 4310a: 2f3c 5554 4432 movel #1431585842,%sp@- <== NOT EXECUTED 43110: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 43116: 2f3c 5554 4431 movel #1431585841,%sp@- <== NOT EXECUTED 4311c: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED ... 00043bec : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 43bec: 4e56 fff0 linkw %fp,#-16 43bf0: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 43bf4: 246e 000c moveal %fp@(12),%a2 43bf8: 47f9 0004 3ac4 lea 43ac4 ,%a3 43bfe: 202e 0008 movel %fp@(8),%d0 int i; if (tty->termios.c_oflag & OPOST) { 43c02: 222a 0034 movel %a2@(52),%d1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 43c06: 1d40 fffe moveb %d0,%fp@(-2) int i; if (tty->termios.c_oflag & OPOST) { 43c0a: 0801 0000 btst #0,%d1 43c0e: 6744 beqs 43c54 switch (c) { 43c10: 7409 moveq #9,%d2 43c12: 0280 0000 00ff andil #255,%d0 43c18: b480 cmpl %d0,%d2 43c1a: 6700 00f8 beqw 43d14 43c1e: 644e bccs 43c6e 43c20: 740a moveq #10,%d2 43c22: b480 cmpl %d0,%d2 43c24: 6774 beqs 43c9a 43c26: 143c 000d moveb #13,%d2 43c2a: b480 cmpl %d0,%d2 43c2c: 6700 00a8 beqw 43cd6 if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 43c30: 0801 0001 btst #1,%d1 43c34: 6600 011a bnew 43d50 43c38: 2079 0005 dacc moveal 5dacc <__ctype_ptr__>,%a0 43c3e: 47f9 0004 3ac4 lea 43ac4 ,%a3 c = toupper(c); if (!iscntrl(c)) 43c44: 1030 0801 moveb %a0@(00000001,%d0:l),%d0 43c48: 49c0 extbl %d0 43c4a: 0800 0005 btst #5,%d0 43c4e: 6604 bnes 43c54 tty->column++; 43c50: 52aa 0028 addql #1,%a2@(40) break; } } rtems_termios_puts (&c, 1, tty); 43c54: 2f0a movel %a2,%sp@- 43c56: 4878 0001 pea 1 43c5a: 486e fffe pea %fp@(-2) 43c5e: 4e93 jsr %a3@ 43c60: 4fef 000c lea %sp@(12),%sp } 43c64: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 43c6a: 4e5e unlk %fp 43c6c: 4e75 rts oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 43c6e: 143c 0008 moveb #8,%d2 <== NOT EXECUTED 43c72: b480 cmpl %d0,%d2 <== NOT EXECUTED 43c74: 66ba bnes 43c30 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 43c76: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43c7a: 47f9 0004 3ac4 lea 43ac4 ,%a3 <== NOT EXECUTED 43c80: 6fd2 bles 43c54 <== NOT EXECUTED tty->column--; 43c82: 5380 subql #1,%d0 <== NOT EXECUTED 43c84: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43c88: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43c8a: 4878 0001 pea 1 <== NOT EXECUTED 43c8e: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43c92: 4e93 jsr %a3@ <== NOT EXECUTED 43c94: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43c98: 60ca bras 43c64 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 43c9a: 0801 0005 btst #5,%d1 43c9e: 6704 beqs 43ca4 tty->column = 0; 43ca0: 42aa 0028 clrl %a2@(40) <== NOT EXECUTED 43ca4: 47f9 0004 3ac4 lea 43ac4 ,%a3 if (tty->termios.c_oflag & ONLCR) { 43caa: 44c1 movew %d1,%ccr 43cac: 66a6 bnes 43c54 rtems_termios_puts ("\r", 1, tty); 43cae: 2f0a movel %a2,%sp@- 43cb0: 4878 0001 pea 1 43cb4: 4879 0005 c850 pea 5c850 43cba: 4e93 jsr %a3@ tty->column = 0; 43cbc: 4fef 000c lea %sp@(12),%sp 43cc0: 42aa 0028 clrl %a2@(40) if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43cc4: 2f0a movel %a2,%sp@- 43cc6: 4878 0001 pea 1 43cca: 486e fffe pea %fp@(-2) 43cce: 4e93 jsr %a3@ 43cd0: 4fef 000c lea %sp@(12),%sp 43cd4: 608e bras 43c64 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 43cd6: 0801 0004 btst #4,%d1 <== NOT EXECUTED 43cda: 6706 beqs 43ce2 <== NOT EXECUTED 43cdc: 4aaa 0028 tstl %a2@(40) <== NOT EXECUTED 43ce0: 6782 beqs 43c64 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 43ce2: 44c1 movew %d1,%ccr <== NOT EXECUTED 43ce4: 6a00 0090 bplw 43d76 <== NOT EXECUTED 43ce8: 47f9 0004 3ac4 lea 43ac4 ,%a3 <== NOT EXECUTED c = '\n'; 43cee: 700a moveq #10,%d0 <== NOT EXECUTED 43cf0: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 43cf4: 0801 0005 btst #5,%d1 <== NOT EXECUTED 43cf8: 6700 ff5a beqw 43c54 <== NOT EXECUTED tty->column = 0; 43cfc: 42aa 0028 clrl %a2@(40) <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43d00: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43d02: 4878 0001 pea 1 <== NOT EXECUTED 43d06: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43d0a: 4e93 jsr %a3@ <== NOT EXECUTED 43d0c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43d10: 6000 ff52 braw 43c64 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 43d14: 202a 0028 movel %a2@(40),%d0 43d18: 7407 moveq #7,%d2 43d1a: 307c 0008 moveaw #8,%a0 43d1e: c480 andl %d0,%d2 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 43d20: 0281 0000 1800 andil #6144,%d1 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 43d26: 91c2 subal %d2,%a0 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 43d28: 0c81 0000 1800 cmpil #6144,%d1 43d2e: 6778 beqs 43da8 tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 43d30: d1c0 addal %d0,%a0 <== NOT EXECUTED 43d32: 47f9 0004 3ac4 lea 43ac4 ,%a3 <== NOT EXECUTED 43d38: 2548 0028 movel %a0,%a2@(40) <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43d3c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43d3e: 4878 0001 pea 1 <== NOT EXECUTED 43d42: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43d46: 4e93 jsr %a3@ <== NOT EXECUTED 43d48: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43d4c: 6000 ff16 braw 43c64 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 43d50: 2079 0005 dacc moveal 5dacc <__ctype_ptr__>,%a0 <== NOT EXECUTED 43d56: 7403 moveq #3,%d2 <== NOT EXECUTED 43d58: 1230 0801 moveb %a0@(00000001,%d0:l),%d1 <== NOT EXECUTED 43d5c: 49c1 extbl %d1 <== NOT EXECUTED 43d5e: c282 andl %d2,%d1 <== NOT EXECUTED 43d60: 143c 0002 moveb #2,%d2 <== NOT EXECUTED 43d64: b481 cmpl %d1,%d2 <== NOT EXECUTED 43d66: 672c beqs 43d94 <== NOT EXECUTED 43d68: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED 43d6c: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43d72: 6000 feca braw 43c3e <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 43d76: 42aa 0028 clrl %a2@(40) <== NOT EXECUTED 43d7a: 47f9 0004 3ac4 lea 43ac4 ,%a3 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43d80: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43d82: 4878 0001 pea 1 <== NOT EXECUTED 43d86: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43d8a: 4e93 jsr %a3@ <== NOT EXECUTED 43d8c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43d90: 6000 fed2 braw 43c64 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 43d94: 0680 ffff ffe0 addil #-32,%d0 <== NOT EXECUTED 43d9a: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED 43d9e: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43da4: 6000 fe98 braw 43c3e <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); 43da8: 2f0a movel %a2,%sp@- break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 43daa: d088 addl %a0,%d0 43dac: 2540 0028 movel %d0,%a2@(40) rtems_termios_puts ( " ", i, tty); 43db0: 2f08 movel %a0,%sp@- 43db2: 4879 0005 c852 pea 5c852 43db8: 4eb9 0004 3ac4 jsr 43ac4 return; 43dbe: 4fef 000c lea %sp@(12),%sp tty->column++; break; } } rtems_termios_puts (&c, 1, tty); } 43dc2: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 43dc8: 4e5e unlk %fp 43dca: 4e75 rts 0004e364 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4e364: 4e56 ffcc linkw %fp,#-52 4e368: 48d7 3c00 moveml %a2-%a5,%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) 4e36c: 4878 0001 pea 1 4e370: 45ee ffdc lea %fp@(-36),%a2 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4e374: 286e 0008 moveal %fp@(8),%a4 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) 4e378: 2f0a movel %a2,%sp@- 4e37a: 4878 0007 pea 7 4e37e: 4878 0003 pea 3 4e382: 4879 0005 cef2 pea 5cef2 <__FUNCTION__.5834+0x11> 4e388: 4eb9 0004 2720 jsr 42720 4e38e: 4fef 0014 lea %sp@(20),%sp 4e392: 4a80 tstl %d0 4e394: 6600 00e0 bnew 4e476 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 4e398: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED 4e39c: 47f9 0004 ede0 lea 4ede0 <__errno>,%a3 <== NOT EXECUTED 4e3a2: 4a88 tstl %a0 <== NOT EXECUTED 4e3a4: 670e beqs 4e3b4 <== NOT EXECUTED 4e3a6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4e3aa: 4a88 tstl %a0 <== NOT EXECUTED 4e3ac: 6706 beqs 4e3b4 <== NOT EXECUTED 4e3ae: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e3b0: 4e90 jsr %a0@ <== NOT EXECUTED 4e3b2: 588f addql #4,%sp <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e3b4: 45ee fff1 lea %fp@(-15),%a2 <== NOT EXECUTED sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e3b8: 3039 0005 e908 movew 5e908 ,%d0 <== NOT EXECUTED else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e3be: 24bc 2f74 6d70 movel #796159344,%a2@ <== NOT EXECUTED sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e3c4: 2200 movel %d0,%d1 <== NOT EXECUTED 4e3c6: 5281 addql #1,%d1 <== NOT EXECUTED 4e3c8: 3f00 movew %d0,%sp@- <== NOT EXECUTED else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e3ca: 203c 2f2e 6669 movel #791570025,%d0 <== NOT EXECUTED 4e3d0: 2d40 fff5 movel %d0,%fp@(-11) <== NOT EXECUTED sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e3d4: 4267 clrw %sp@- <== NOT EXECUTED 4e3d6: 33c1 0005 e908 movew %d1,5e908 <== NOT EXECUTED else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e3dc: 323c 666f movew #26223,%d1 <== NOT EXECUTED sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e3e0: 4879 0005 cef7 pea 5cef7 <__FUNCTION__.5834+0x16> <== NOT EXECUTED 4e3e6: 486e fffb pea %fp@(-5) <== NOT EXECUTED else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e3ea: 3d41 fff9 movew %d1,%fp@(-7) <== NOT EXECUTED sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e3ee: 4eb9 0004 fad8 jsr 4fad8 <== NOT EXECUTED /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 4e3f4: 4878 0180 pea 180 <== NOT EXECUTED 4e3f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e3fa: 4eb9 0004 e594 jsr 4e594 <== NOT EXECUTED 4e400: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4e404: 4a80 tstl %d0 <== NOT EXECUTED 4e406: 6660 bnes 4e468 <== 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); 4e408: 4878 4000 pea 4000 4e40c: 4bf9 0004 3124 lea 43124 ,%a5 4e412: 2f0a movel %a2,%sp@- 4e414: 4e95 jsr %a5@ if (filsdes[0] < 0) { 4e416: 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); 4e418: 2880 movel %d0,%a4@ if (filsdes[0] < 0) { 4e41a: 6d00 00e0 bltw 4e4fc the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 4e41e: b0b9 0005 d8f4 cmpl 5d8f4 ,%d0 <== NOT EXECUTED 4e424: 6400 00d0 bccw 4e4f6 <== NOT EXECUTED 4e428: 2079 0005 eff4 moveal 5eff4 ,%a0 <== NOT EXECUTED 4e42e: ed88 lsll #6,%d0 <== NOT EXECUTED 4e430: d1c0 addal %d0,%a0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 4e432: 70fe moveq #-2,%d0 <== NOT EXECUTED 4e434: c1a8 0014 andl %d0,%a0@(20) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4e438: 4878 0001 pea 1 <== NOT EXECUTED 4e43c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e43e: 4e95 jsr %a5@ <== NOT EXECUTED if (filsdes[1] < 0) { 4e440: 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); 4e442: 2940 0004 movel %d0,%a4@(4) <== NOT EXECUTED if (filsdes[1] < 0) { 4e446: 6d00 00ce bltw 4e516 <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 4e44a: 2f0a movel %a2,%sp@- <== NOT EXECUTED iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { 4e44c: 9bcd subal %a5,%a5 <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 4e44e: 4eb9 0004 e5b4 jsr 4e5b4 <== NOT EXECUTED 4e454: 588f addql #4,%sp <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 4e456: 4e93 jsr %a3@ <== NOT EXECUTED 4e458: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e45a: 208d movel %a5,%a0@ <== NOT EXECUTED } 4e45c: 70ff moveq #-1,%d0 4e45e: 4cee 3c00 ffcc moveml %fp@(-52),%a2-%a5 4e464: 4e5e unlk %fp 4e466: 4e75 rts memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { if (errno != EEXIST){ 4e468: 4e93 jsr %a3@ <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 4e46a: 4cee 3c00 ffcc moveml %fp@(-52),%a2-%a5 <== NOT EXECUTED 4e470: 70ff moveq #-1,%d0 <== NOT EXECUTED 4e472: 4e5e unlk %fp <== NOT EXECUTED 4e474: 4e75 rts <== NOT EXECUTED rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) != 0) { if (errno != ENOENT) 4e476: 47f9 0004 ede0 lea 4ede0 <__errno>,%a3 4e47c: 4e93 jsr %a3@ 4e47e: 7202 moveq #2,%d1 4e480: 2040 moveal %d0,%a0 4e482: b290 cmpl %a0@,%d1 4e484: 66d6 bnes 4e45c return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 4e486: 4878 03ff pea 3ff 4e48a: 4879 0005 cef2 pea 5cef2 <__FUNCTION__.5834+0x11> 4e490: 4eb9 0004 2988 jsr 42988 4e496: 508f addql #8,%sp 4e498: 4a80 tstl %d0 4e49a: 66c0 bnes 4e45c else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e49c: 45ee fff1 lea %fp@(-15),%a2 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e4a0: 3039 0005 e908 movew 5e908 ,%d0 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e4a6: 24bc 2f74 6d70 movel #796159344,%a2@ sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e4ac: 2200 movel %d0,%d1 4e4ae: 5281 addql #1,%d1 4e4b0: 3f00 movew %d0,%sp@- else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e4b2: 203c 2f2e 6669 movel #791570025,%d0 4e4b8: 2d40 fff5 movel %d0,%fp@(-11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e4bc: 4267 clrw %sp@- 4e4be: 33c1 0005 e908 movew %d1,5e908 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e4c4: 323c 666f movew #26223,%d1 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e4c8: 4879 0005 cef7 pea 5cef7 <__FUNCTION__.5834+0x16> 4e4ce: 486e fffb pea %fp@(-5) else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4e4d2: 3d41 fff9 movew %d1,%fp@(-7) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4e4d6: 4eb9 0004 fad8 jsr 4fad8 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 4e4dc: 4878 0180 pea 180 4e4e0: 2f0a movel %a2,%sp@- 4e4e2: 4eb9 0004 e594 jsr 4e594 4e4e8: 4fef 0014 lea %sp@(20),%sp 4e4ec: 4a80 tstl %d0 4e4ee: 6700 ff18 beqw 4e408 4e4f2: 6000 ff74 braw 4e468 <== NOT EXECUTED the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 4e4f6: 91c8 subal %a0,%a0 <== NOT EXECUTED 4e4f8: 6000 ff38 braw 4e432 <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; 4e4fc: 4e93 jsr %a3@ 4e4fe: 2040 moveal %d0,%a0 4e500: 2a50 moveal %a0@,%a5 /* 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); 4e502: 2f0a movel %a2,%sp@- 4e504: 4eb9 0004 e5b4 jsr 4e5b4 4e50a: 588f addql #4,%sp close(filsdes[0]); } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); 4e50c: 4e93 jsr %a3@ 4e50e: 2040 moveal %d0,%a0 4e510: 208d movel %a5,%a0@ 4e512: 6000 ff48 braw 4e45c iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; 4e516: 4e93 jsr %a3@ <== NOT EXECUTED 4e518: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e51a: 2a50 moveal %a0@,%a5 <== NOT EXECUTED close(filsdes[0]); 4e51c: 2f14 movel %a4@,%sp@- <== NOT EXECUTED 4e51e: 4eb9 0004 a5e8 jsr 4a5e8 <== NOT EXECUTED 4e524: 588f addql #4,%sp <== NOT EXECUTED } unlink(fifopath); 4e526: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e528: 4eb9 0004 e5b4 jsr 4e5b4 <== NOT EXECUTED 4e52e: 588f addql #4,%sp <== NOT EXECUTED 4e530: 6000 ff24 braw 4e456 <== NOT EXECUTED 0004c882 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4c882: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (cmd == FIONREAD) { 4c886: 203c 4004 667f movel #1074030207,%d0 <== NOT EXECUTED 4c88c: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 4c890: 6706 beqs 4c898 <== NOT EXECUTED 4c892: 70ea moveq #-22,%d0 <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } 4c894: 4e5e unlk %fp <== NOT EXECUTED 4c896: 4e75 rts <== NOT EXECUTED void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL) 4c898: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 4c89c: 6606 bnes 4c8a4 <== NOT EXECUTED 4c89e: 70f2 moveq #-14,%d0 <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } 4c8a0: 4e5e unlk %fp <== NOT EXECUTED 4c8a2: 4e75 rts <== NOT EXECUTED { if (cmd == FIONREAD) { if (buffer == NULL) return -EFAULT; if (! PIPE_LOCK(pipe)) 4c8a4: 42a7 clrl %sp@- <== NOT EXECUTED 4c8a6: 42a7 clrl %sp@- <== NOT EXECUTED 4c8a8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4c8ac: 2f28 0028 movel %a0@(40),%sp@- <== NOT EXECUTED 4c8b0: 4eb9 0004 5d2c jsr 45d2c <== NOT EXECUTED 4c8b6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4c8ba: 4a80 tstl %d0 <== NOT EXECUTED 4c8bc: 6706 beqs 4c8c4 <== NOT EXECUTED 4c8be: 70fc moveq #-4,%d0 <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } 4c8c0: 4e5e unlk %fp <== NOT EXECUTED 4c8c2: 4e75 rts <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; PIPE_UNLOCK(pipe); 4c8c4: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4c8c8: 2f29 0028 movel %a1@(40),%sp@- <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4c8cc: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 4c8d0: 20a9 000c movel %a1@(12),%a0@ <== NOT EXECUTED PIPE_UNLOCK(pipe); 4c8d4: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return 0; 4c8da: 588f addql #4,%sp <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; PIPE_UNLOCK(pipe); 4c8dc: 4280 clrl %d0 <== NOT EXECUTED return 0; } return -EINVAL; } 4c8de: 4e5e unlk %fp <== NOT EXECUTED 4c8e0: 4e75 rts 0004c824 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 4c824: 70e3 moveq #-29,%d0 <== NOT EXECUTED pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) { 4c826: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* Seek on pipe is not supported */ return -ESPIPE; } 4c82a: 4e5e unlk %fp <== NOT EXECUTED 4c82c: 4e75 rts 0004c8e2 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4c8e2: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 4c8e6: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4c8ea: 42a7 clrl %sp@- <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4c8ec: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4c8f0: 47f9 0004 5d2c lea 45d2c ,%a3 <== NOT EXECUTED 4c8f6: 42a7 clrl %sp@- <== NOT EXECUTED 4c8f8: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4c8fc: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED 4c900: 2a6e 0014 moveal %fp@(20),%a5 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4c904: 4e93 jsr %a3@ <== NOT EXECUTED 4c906: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4c90a: 4a80 tstl %d0 <== NOT EXECUTED 4c90c: 6600 00ac bnew 4c9ba <== NOT EXECUTED return -EINTR; while (read < count) { 4c910: 4a84 tstl %d4 <== NOT EXECUTED 4c912: 6700 01ac beqw 4cac0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 4c916: 4285 clrl %d5 <== NOT EXECUTED 4c918: 4283 clrl %d3 <== NOT EXECUTED 4c91a: 49f9 0004 5e68 lea 45e68 ,%a4 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 4c920: 243c 0004 dce8 movel #318696,%d2 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 4c926: 2e3c 0004 dc70 movel #318576,%d7 <== NOT EXECUTED if (chunk > chunk1) { memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 4c92c: 2c3c 0004 f600 movel #325120,%d6 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4c932: 222a 000c movel %a2@(12),%d1 <== NOT EXECUTED 4c936: 6600 0090 bnew 4c9c8 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 4c93a: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4c93e: 6700 010a beqw 4ca4a <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 4c942: 7001 moveq #1,%d0 <== NOT EXECUTED 4c944: c0ad 0014 andl %a5@(20),%d0 <== NOT EXECUTED 4c948: 6600 0110 bnew 4ca5a <== NOT EXECUTED goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); 4c94c: 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 ++; 4c950: 52aa 0018 addql #1,%a2@(24) <== NOT EXECUTED PIPE_UNLOCK(pipe); 4c954: 4e94 jsr %a4@ <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4c956: 2042 moveal %d2,%a0 <== NOT EXECUTED 4c958: 42a7 clrl %sp@- <== NOT EXECUTED 4c95a: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4c95e: 4e90 jsr %a0@ <== NOT EXECUTED 4c960: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4c964: 4a80 tstl %d0 <== NOT EXECUTED 4c966: 673c beqs 4c9a4 <== NOT EXECUTED 4c968: 70fc moveq #-4,%d0 <== NOT EXECUTED 4c96a: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4c96e: 42a7 clrl %sp@- <== NOT EXECUTED 4c970: 42a7 clrl %sp@- <== NOT EXECUTED 4c972: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4c976: 4e93 jsr %a3@ <== NOT EXECUTED 4c978: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4c97c: 4a80 tstl %d0 <== NOT EXECUTED 4c97e: 6600 00ec bnew 4ca6c <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 4c982: 53aa 0018 subql #1,%a2@(24) <== NOT EXECUTED if (ret != 0) 4c986: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED 4c98a: 67a6 beqs 4c932 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4c98c: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4c990: 4e94 jsr %a4@ <== NOT EXECUTED 4c992: 588f addql #4,%sp <== NOT EXECUTED out_nolock: if (read > 0) 4c994: 4a83 tstl %d3 <== NOT EXECUTED 4c996: 6f12 bles 4c9aa <== NOT EXECUTED return read; return ret; } 4c998: 2003 movel %d3,%d0 <== NOT EXECUTED 4c99a: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4c9a0: 4e5e unlk %fp <== NOT EXECUTED 4c9a2: 4e75 rts <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 4c9a4: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED 4c9a8: 60c4 bras 4c96e <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) 4c9aa: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED return read; return ret; } 4c9ae: 2003 movel %d3,%d0 <== NOT EXECUTED 4c9b0: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4c9b6: 4e5e unlk %fp <== NOT EXECUTED 4c9b8: 4e75 rts <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4c9ba: 76fc moveq #-4,%d3 <== NOT EXECUTED out_nolock: if (read > 0) return read; return ret; } 4c9bc: 2003 movel %d3,%d0 <== NOT EXECUTED 4c9be: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4c9c4: 4e5e unlk %fp <== NOT EXECUTED 4c9c6: 4e75 rts <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 4c9c8: 2004 movel %d4,%d0 <== NOT EXECUTED 4c9ca: 9085 subl %d5,%d0 <== NOT EXECUTED 4c9cc: b081 cmpl %d1,%d0 <== NOT EXECUTED 4c9ce: 6402 bccs 4c9d2 <== NOT EXECUTED 4c9d0: 2200 movel %d0,%d1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 4c9d2: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED 4c9d6: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 4c9da: 91c0 subal %d0,%a0 <== NOT EXECUTED if (chunk > chunk1) { 4c9dc: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 4c9de: 6d00 009c bltw 4ca7c <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 4c9e2: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4c9e4: d092 addl %a2@,%d0 <== NOT EXECUTED 4c9e6: 2246 moveal %d6,%a1 <== NOT EXECUTED 4c9e8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c9ea: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4c9ee: 4870 5800 pea %a0@(00000000,%d5:l) <== NOT EXECUTED 4c9f2: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED 4c9f6: 4e91 jsr %a1@ <== NOT EXECUTED 4c9f8: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 4c9fc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED pipe->Start += chunk; 4ca00: 2041 moveal %d1,%a0 <== NOT EXECUTED 4ca02: d1ea 0008 addal %a2@(8),%a0 <== NOT EXECUTED pipe->Start %= pipe->Size; 4ca06: 2008 movel %a0,%d0 <== NOT EXECUTED pipe->Length -= chunk; 4ca08: 226a 000c moveal %a2@(12),%a1 <== NOT EXECUTED 4ca0c: 93c1 subal %d1,%a1 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 4ca0e: 4c6a 0005 0004 remul %a2@(4),%d5,%d0 <== NOT EXECUTED pipe->Length -= chunk; 4ca14: 2549 000c movel %a1,%a2@(12) <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 4ca18: 2545 0008 movel %d5,%a2@(8) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 4ca1c: 4a89 tstl %a1 <== NOT EXECUTED 4ca1e: 6604 bnes 4ca24 <== NOT EXECUTED pipe->Start = 0; 4ca20: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED if (pipe->waitingWriters > 0) 4ca24: 4aaa 001c tstl %a2@(28) <== NOT EXECUTED 4ca28: 6716 beqs 4ca40 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4ca2a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4ca2e: 2047 moveal %d7,%a0 <== NOT EXECUTED 4ca30: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4ca34: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED 4ca38: 4e90 jsr %a0@ <== NOT EXECUTED 4ca3a: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 4ca3e: 508f addql #8,%sp <== NOT EXECUTED read += chunk; 4ca40: d681 addl %d1,%d3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 4ca42: 2a03 movel %d3,%d5 <== NOT EXECUTED 4ca44: b883 cmpl %d3,%d4 <== NOT EXECUTED 4ca46: 6200 feea bhiw 4c932 <== NOT EXECUTED 4ca4a: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4ca4e: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4ca52: 4e94 jsr %a4@ <== NOT EXECUTED 4ca54: 588f addql #4,%sp <== NOT EXECUTED 4ca56: 6000 ff3c braw 4c994 <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { 4ca5a: 70f5 moveq #-11,%d0 <== NOT EXECUTED 4ca5c: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4ca60: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4ca64: 4e94 jsr %a4@ <== NOT EXECUTED 4ca66: 588f addql #4,%sp <== NOT EXECUTED 4ca68: 6000 ff2a braw 4c994 <== NOT EXECUTED /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4ca6c: 7afc moveq #-4,%d5 <== NOT EXECUTED 4ca6e: 2d45 fff8 movel %d5,%fp@(-8) <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) 4ca72: 4a83 tstl %d3 <== NOT EXECUTED 4ca74: 6e00 ff22 bgtw 4c998 <== NOT EXECUTED 4ca78: 6000 ff30 braw 4c9aa <== NOT EXECUTED /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 4ca7c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4ca7e: d092 addl %a2@,%d0 <== NOT EXECUTED 4ca80: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ca82: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4ca86: 4871 5800 pea %a1@(00000000,%d5:l) <== NOT EXECUTED 4ca8a: 2246 moveal %d6,%a1 <== NOT EXECUTED 4ca8c: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED 4ca90: 2d48 fff0 movel %a0,%fp@(-16) <== NOT EXECUTED 4ca94: 4e91 jsr %a1@ <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 4ca96: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 4ca9a: 2001 movel %d1,%d0 <== NOT EXECUTED 4ca9c: 2246 moveal %d6,%a1 <== NOT EXECUTED 4ca9e: 206e fff0 moveal %fp@(-16),%a0 <== NOT EXECUTED 4caa2: 9088 subl %a0,%d0 <== NOT EXECUTED 4caa4: da88 addl %a0,%d5 <== NOT EXECUTED 4caa6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4caa8: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4caaa: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4caae: 4870 5800 pea %a0@(00000000,%d5:l) <== NOT EXECUTED 4cab2: 4e91 jsr %a1@ <== NOT EXECUTED 4cab4: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 4cab8: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4cabc: 6000 ff42 braw 4ca00 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 4cac0: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4cac4: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cac8: 49f9 0004 5e68 lea 45e68 ,%a4 <== NOT EXECUTED 4cace: 4e94 jsr %a4@ <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 4cad0: 4283 clrl %d3 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4cad2: 588f addql #4,%sp <== NOT EXECUTED 4cad4: 6000 febe braw 4c994 <== NOT EXECUTED 0004cce8 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 4cce8: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4ccec: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED 4ccf0: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4ccf4: 47f9 0004 5d2c lea 45d2c ,%a3 <== NOT EXECUTED 4ccfa: 42a7 clrl %sp@- <== NOT EXECUTED int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { pipe_control_t *pipe = *pipep; 4ccfc: 2454 moveal %a4@,%a2 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4ccfe: 42a7 clrl %sp@- <== NOT EXECUTED 4cd00: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cd04: 4e93 jsr %a3@ <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 4cd06: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4cd0a: 4a80 tstl %d0 <== NOT EXECUTED 4cd0c: 6600 00f2 bnew 4ce00 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 4cd10: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4cd14: 7406 moveq #6,%d2 <== NOT EXECUTED 4cd16: c4a8 0014 andl %a0@(20),%d2 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 4cd1a: 0802 0001 btst #1,%d2 <== NOT EXECUTED 4cd1e: 6704 beqs 4cd24 <== NOT EXECUTED pipe->Readers --; 4cd20: 53aa 0010 subql #1,%a2@(16) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 4cd24: 44c2 movew %d2,%ccr <== NOT EXECUTED 4cd26: 675a beqs 4cd82 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 4cd28: 42a7 clrl %sp@- <== NOT EXECUTED 4cd2a: 42a7 clrl %sp@- <== NOT EXECUTED 4cd2c: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4cd32: 4e93 jsr %a3@ <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 4cd34: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4cd38: 4a80 tstl %d0 <== NOT EXECUTED 4cd3a: 6600 00c4 bnew 4ce00 <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 4cd3e: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cd42: 47f9 0004 5e68 lea 45e68 ,%a3 <== NOT EXECUTED 4cd48: 4e93 jsr %a3@ <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 4cd4a: 588f addql #4,%sp <== NOT EXECUTED 4cd4c: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4cd50: 6736 beqs 4cd88 <== NOT EXECUTED *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 4cd52: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4cd56: 6616 bnes 4cd6e <== NOT EXECUTED 4cd58: 7002 moveq #2,%d0 <== NOT EXECUTED 4cd5a: b082 cmpl %d2,%d0 <== NOT EXECUTED 4cd5c: 6710 beqs 4cd6e <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4cd5e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4cd62: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4cd66: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED 4cd6c: 508f addql #8,%sp <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 4cd6e: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4cd74: 4e93 jsr %a3@ <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4cd76: 4cee 3c04 ffe8 moveml %fp@(-24),%d2/%a2-%a5 <== NOT EXECUTED 4cd7c: 4280 clrl %d0 <== NOT EXECUTED 4cd7e: 4e5e unlk %fp <== NOT EXECUTED 4cd80: 4e75 rts <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; 4cd82: 53aa 0014 subql #1,%a2@(20) <== NOT EXECUTED 4cd86: 60a0 bras 4cd28 <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 4cd88: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED 4cd8c: 672a beqs 4cdb8 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 4cd8e: 7004 moveq #4,%d0 <== NOT EXECUTED 4cd90: b082 cmpl %d2,%d0 <== NOT EXECUTED 4cd92: 67da beqs 4cd6e <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 4cd94: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4cd98: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4cd9c: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 4cda2: 508f addql #8,%sp <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); 4cda4: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4cdaa: 4e93 jsr %a3@ <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4cdac: 4cee 3c04 ffe8 moveml %fp@(-24),%d2/%a2-%a5 <== NOT EXECUTED 4cdb2: 4280 clrl %d0 <== NOT EXECUTED 4cdb4: 4e5e unlk %fp <== NOT EXECUTED 4cdb6: 4e75 rts <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 4cdb8: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); rtems_semaphore_delete(pipe->Semaphore); free(pipe->Buffer); 4cdbc: 4bf9 0004 a688 lea 4a688 ,%a5 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 4cdc2: 243c 0004 dc00 movel #318464,%d2 <== NOT EXECUTED 4cdc8: 2042 moveal %d2,%a0 <== NOT EXECUTED 4cdca: 4e90 jsr %a0@ <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 4cdcc: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4cdd0: 2042 moveal %d2,%a0 <== NOT EXECUTED 4cdd2: 4e90 jsr %a0@ <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 4cdd4: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cdd8: 4eb9 0004 5c54 jsr 45c54 <== NOT EXECUTED free(pipe->Buffer); 4cdde: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4cde0: 4e95 jsr %a5@ <== NOT EXECUTED free(pipe); 4cde2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4cde4: 4e95 jsr %a5@ <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 4cde6: 4fef 0014 lea %sp@(20),%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; 4cdea: 4294 clrl %a4@ <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); 4cdec: 2f39 0005 e900 movel 5e900 ,%sp@- <== NOT EXECUTED 4cdf2: 4e93 jsr %a3@ <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4cdf4: 4cee 3c04 ffe8 moveml %fp@(-24),%d2/%a2-%a5 <== NOT EXECUTED 4cdfa: 4280 clrl %d0 <== NOT EXECUTED 4cdfc: 4e5e unlk %fp <== NOT EXECUTED 4cdfe: 4e75 rts <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); 4ce00: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ce02: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 0004cad8 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 4cad8: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 4cadc: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4cae0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4cae4: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 4cae8: 660e bnes 4caf8 <== NOT EXECUTED 4caea: 4282 clrl %d2 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 4caec: 2002 movel %d2,%d0 <== NOT EXECUTED 4caee: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4caf4: 4e5e unlk %fp <== NOT EXECUTED 4caf6: 4e75 rts <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 4caf8: 42a7 clrl %sp@- <== NOT EXECUTED 4cafa: 47f9 0004 5d2c lea 45d2c ,%a3 <== NOT EXECUTED 4cb00: 42a7 clrl %sp@- <== NOT EXECUTED 4cb02: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cb06: 4e93 jsr %a3@ <== NOT EXECUTED 4cb08: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4cb0c: 4a80 tstl %d0 <== NOT EXECUTED 4cb0e: 6600 00d2 bnew 4cbe2 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 4cb12: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4cb16: 6700 0088 beqw 4cba0 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 4cb1a: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED 4cb1e: b083 cmpl %d3,%d0 <== NOT EXECUTED 4cb20: 6500 00e0 bcsw 4cc02 <== NOT EXECUTED 4cb24: 2a03 movel %d3,%d5 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 4cb26: 4286 clrl %d6 <== NOT EXECUTED 4cb28: 4282 clrl %d2 <== NOT EXECUTED 4cb2a: 49f9 0004 5e68 lea 45e68 ,%a4 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 4cb30: 4bf9 0004 dce8 lea 4dce8 ,%a5 <== NOT EXECUTED if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4cb36: 2e3c 0004 f600 movel #325120,%d7 <== 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) { 4cb3c: 222a 000c movel %a2@(12),%d1 <== NOT EXECUTED 4cb40: 2800 movel %d0,%d4 <== NOT EXECUTED 4cb42: 9881 subl %d1,%d4 <== NOT EXECUTED 4cb44: ba84 cmpl %d4,%d5 <== NOT EXECUTED 4cb46: 6300 00d6 blsw 4cc1e <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 4cb4a: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 4cb4e: 7001 moveq #1,%d0 <== NOT EXECUTED 4cb50: c0a8 0014 andl %a0@(20),%d0 <== NOT EXECUTED 4cb54: 6600 0144 bnew 4cc9a <== NOT EXECUTED goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); 4cb58: 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 ++; 4cb5c: 52aa 001c addql #1,%a2@(28) <== NOT EXECUTED PIPE_UNLOCK(pipe); 4cb60: 4e94 jsr %a4@ <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4cb62: 42a7 clrl %sp@- <== NOT EXECUTED 4cb64: 2f2a 0030 movel %a2@(48),%sp@- <== NOT EXECUTED 4cb68: 4e95 jsr %a5@ <== NOT EXECUTED 4cb6a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4cb6e: 4a80 tstl %d0 <== NOT EXECUTED 4cb70: 672a beqs 4cb9c <== NOT EXECUTED 4cb72: 78fc moveq #-4,%d4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4cb74: 42a7 clrl %sp@- <== NOT EXECUTED 4cb76: 42a7 clrl %sp@- <== NOT EXECUTED 4cb78: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cb7c: 4e93 jsr %a3@ <== NOT EXECUTED 4cb7e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4cb82: 4a80 tstl %d0 <== NOT EXECUTED 4cb84: 6600 010e bnew 4cc94 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 4cb88: 53aa 001c subql #1,%a2@(28) <== NOT EXECUTED if (ret != 0) 4cb8c: 4a84 tstl %d4 <== NOT EXECUTED 4cb8e: 661a bnes 4cbaa <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 4cb90: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4cb94: 675a beqs 4cbf0 <== NOT EXECUTED 4cb96: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED 4cb9a: 60a0 bras 4cb3c <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 4cb9c: 4284 clrl %d4 <== NOT EXECUTED 4cb9e: 60d4 bras 4cb74 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 4cba0: 78e0 moveq #-32,%d4 <== NOT EXECUTED 4cba2: 4282 clrl %d2 <== NOT EXECUTED 4cba4: 49f9 0004 5e68 lea 45e68 ,%a4 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4cbaa: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED 4cbae: 4e94 jsr %a4@ <== NOT EXECUTED 4cbb0: 588f addql #4,%sp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4cbb2: 70e0 moveq #-32,%d0 <== NOT EXECUTED 4cbb4: b084 cmpl %d4,%d0 <== NOT EXECUTED 4cbb6: 6714 beqs 4cbcc <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) 4cbb8: 4a82 tstl %d2 <== NOT EXECUTED 4cbba: 6e00 ff30 bgtw 4caec <== NOT EXECUTED 4cbbe: 2404 movel %d4,%d2 <== NOT EXECUTED return written; return ret; } 4cbc0: 2002 movel %d2,%d0 <== NOT EXECUTED 4cbc2: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4cbc8: 4e5e unlk %fp <== NOT EXECUTED 4cbca: 4e75 rts <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); 4cbcc: 4eb9 0004 d6c8 jsr 4d6c8 <== NOT EXECUTED 4cbd2: 4878 000d pea d <== NOT EXECUTED 4cbd6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4cbd8: 4eb9 0004 d898 jsr 4d898 <== NOT EXECUTED 4cbde: 508f addql #8,%sp <== NOT EXECUTED 4cbe0: 60d6 bras 4cbb8 <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 4cbe2: 74fc moveq #-4,%d2 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 4cbe4: 2002 movel %d2,%d0 <== NOT EXECUTED 4cbe6: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4cbec: 4e5e unlk %fp <== NOT EXECUTED 4cbee: 4e75 rts <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4cbf0: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 4cbf4: 78e0 moveq #-32,%d4 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4cbf6: 4e94 jsr %a4@ <== NOT EXECUTED 4cbf8: 588f addql #4,%sp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4cbfa: 70e0 moveq #-32,%d0 <== NOT EXECUTED 4cbfc: b084 cmpl %d4,%d0 <== NOT EXECUTED 4cbfe: 66b8 bnes 4cbb8 <== NOT EXECUTED 4cc00: 60ca bras 4cbcc <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 4cc02: 7a01 moveq #1,%d5 <== NOT EXECUTED 4cc04: 4286 clrl %d6 <== NOT EXECUTED 4cc06: 4282 clrl %d2 <== NOT EXECUTED 4cc08: 49f9 0004 5e68 lea 45e68 ,%a4 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 4cc0e: 4bf9 0004 dce8 lea 4dce8 ,%a5 <== NOT EXECUTED if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4cc14: 2e3c 0004 f600 movel #325120,%d7 <== NOT EXECUTED 4cc1a: 6000 ff20 braw 4cb3c <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 4cc1e: 2043 moveal %d3,%a0 <== NOT EXECUTED 4cc20: 91c6 subal %d6,%a0 <== NOT EXECUTED 4cc22: b1c4 cmpal %d4,%a0 <== NOT EXECUTED 4cc24: 6402 bccs 4cc28 <== NOT EXECUTED 4cc26: 2808 movel %a0,%d4 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 4cc28: 2a01 movel %d1,%d5 <== NOT EXECUTED 4cc2a: daaa 0008 addl %a2@(8),%d5 <== NOT EXECUTED 4cc2e: 4c40 5001 remul %d0,%d1,%d5 <== NOT EXECUTED 4cc32: 2a00 movel %d0,%d5 <== NOT EXECUTED 4cc34: 9a81 subl %d1,%d5 <== NOT EXECUTED if (chunk > chunk1) { 4cc36: ba84 cmpl %d4,%d5 <== NOT EXECUTED 4cc38: 6c76 bges 4ccb0 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 4cc3a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4cc3c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4cc40: 4870 6800 pea %a0@(00000000,%d6:l) <== NOT EXECUTED 4cc44: d292 addl %a2@,%d1 <== NOT EXECUTED 4cc46: 2047 moveal %d7,%a0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 4cc48: dc85 addl %d5,%d6 <== NOT EXECUTED } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 4cc4a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4cc4c: 4e90 jsr %a0@ <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 4cc4e: 2004 movel %d4,%d0 <== NOT EXECUTED 4cc50: 9085 subl %d5,%d0 <== NOT EXECUTED 4cc52: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4cc54: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4cc58: 4870 6800 pea %a0@(00000000,%d6:l) <== NOT EXECUTED 4cc5c: 2047 moveal %d7,%a0 <== NOT EXECUTED 4cc5e: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4cc60: 4e90 jsr %a0@ <== NOT EXECUTED 4cc62: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 4cc66: d9aa 000c addl %d4,%a2@(12) <== NOT EXECUTED if (pipe->waitingReaders > 0) 4cc6a: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 4cc6e: 6612 bnes 4cc82 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 4cc70: d484 addl %d4,%d2 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 4cc72: 2c02 movel %d2,%d6 <== NOT EXECUTED 4cc74: b483 cmpl %d3,%d2 <== NOT EXECUTED 4cc76: 645a bccs 4ccd2 <== NOT EXECUTED 4cc78: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED 4cc7c: 7a01 moveq #1,%d5 <== NOT EXECUTED 4cc7e: 6000 febc braw 4cb3c <== NOT EXECUTED else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 4cc82: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4cc86: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 4cc8a: 4eb9 0004 dc70 jsr 4dc70 <== NOT EXECUTED 4cc90: 508f addql #8,%sp <== NOT EXECUTED 4cc92: 60dc bras 4cc70 <== NOT EXECUTED /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4cc94: 78fc moveq #-4,%d4 <== NOT EXECUTED 4cc96: 6000 ff20 braw 4cbb8 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4cc9a: 2f2a 0028 movel %a2@(40),%sp@- <== 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)) { 4cc9e: 78f5 moveq #-11,%d4 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4cca0: 4e94 jsr %a4@ <== NOT EXECUTED 4cca2: 588f addql #4,%sp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4cca4: 70e0 moveq #-32,%d0 <== NOT EXECUTED 4cca6: b084 cmpl %d4,%d0 <== NOT EXECUTED 4cca8: 6600 ff0e bnew 4cbb8 <== NOT EXECUTED 4ccac: 6000 ff1e braw 4cbcc <== NOT EXECUTED if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4ccb0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4ccb2: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4ccb6: 4870 6800 pea %a0@(00000000,%d6:l) <== NOT EXECUTED 4ccba: d292 addl %a2@,%d1 <== NOT EXECUTED 4ccbc: 2047 moveal %d7,%a0 <== NOT EXECUTED 4ccbe: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4ccc0: 4e90 jsr %a0@ <== NOT EXECUTED 4ccc2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED pipe->Length += chunk; 4ccc6: d9aa 000c addl %d4,%a2@(12) <== NOT EXECUTED if (pipe->waitingReaders > 0) 4ccca: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 4ccce: 67a0 beqs 4cc70 <== NOT EXECUTED 4ccd0: 60b0 bras 4cc82 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4ccd2: 2f2a 0028 movel %a2@(40),%sp@- <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 4ccd6: 4284 clrl %d4 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 4ccd8: 4e94 jsr %a4@ <== NOT EXECUTED 4ccda: 588f addql #4,%sp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4ccdc: 70e0 moveq #-32,%d0 <== NOT EXECUTED 4ccde: b084 cmpl %d4,%d0 <== NOT EXECUTED 4cce0: 6600 fed6 bnew 4cbb8 <== NOT EXECUTED 4cce4: 6000 fee6 braw 4cbcc <== NOT EXECUTED 000460fc : int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) { 460fc: 4e56 ffe0 linkw %fp,#-32 46100: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 46104: 246e 0008 moveal %fp@(8),%a2 46108: 262e 000c movel %fp@(12),%d3 4610c: 242e 0010 movel %fp@(16),%d2 const pthread_barrierattr_t *the_attr; /* * Error check parameters */ if ( !barrier ) 46110: 4a8a tstl %a2 46112: 677a beqs 4618e return EINVAL; if ( count == 0 ) 46114: 4a82 tstl %d2 46116: 6776 beqs 4618e return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { 46118: 4a83 tstl %d3 4611a: 6700 0090 beqw 461ac 4611e: 2043 moveal %d3,%a0 } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) 46120: 4a90 tstl %a0@ 46122: 676a beqs 4618e return EINVAL; switch ( the_attr->process_shared ) { 46124: 4aa8 0004 tstl %a0@(4) 46128: 6664 bnes 4618e rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4612a: 2039 0006 0898 movel 60898 <_Thread_Dispatch_disable_level>,%d0 46130: 5280 addql #1,%d0 /* * Convert from POSIX attributes to Core Barrier attributes */ the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; the_attributes.maximum_count = count; 46132: 2d42 fffc movel %d2,%fp@(-4) 46136: 23c0 0006 0898 movel %d0,60898 <_Thread_Dispatch_disable_level> } /* * Convert from POSIX attributes to Core Barrier attributes */ the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 4613c: 42ae fff8 clrl %fp@(-8) * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void ) { return (POSIX_Barrier_Control *) 46140: 4879 0006 0bda pea 60bda <_POSIX_Barrier_Information> 46146: 4eb9 0004 83e0 jsr 483e0 <_Objects_Allocate> */ _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { 4614c: 588f addql #4,%sp 4614e: 2640 moveal %d0,%a3 46150: 4a80 tstl %d0 46152: 6746 beqs 4619a _Thread_Enable_dispatch(); return EAGAIN; } _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 46154: 486e fff8 pea %fp@(-8) 46158: 486b 0010 pea %a3@(16) 4615c: 4eb9 0004 7a50 jsr 47a50 <_CORE_barrier_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46162: 202b 0008 movel %a3@(8),%d0 46166: 4281 clrl %d1 46168: 2079 0006 0bf2 moveal 60bf2 <_POSIX_Barrier_Information+0x18>,%a0 4616e: 3200 movew %d0,%d1 46170: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 46174: 42ab 000c clrl %a3@(12) ); /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; 46178: 2480 movel %d0,%a2@ _Thread_Enable_dispatch(); 4617a: 4eb9 0004 908c jsr 4908c <_Thread_Enable_dispatch> return 0; 46180: 508f addql #8,%sp /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); 46182: 4280 clrl %d0 return 0; } 46184: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 4618a: 4e5e unlk %fp 4618c: 4e75 rts /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); return 0; 4618e: 7016 moveq #22,%d0 } 46190: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 46196: 4e5e unlk %fp 46198: 4e75 rts _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); 4619a: 4eb9 0004 908c jsr 4908c <_Thread_Enable_dispatch> 461a0: 700b moveq #11,%d0 * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); return 0; } 461a2: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 461a8: 4e5e unlk %fp 461aa: 4e75 rts * If the user passed in NULL, use the default attributes */ if ( attr ) { the_attr = attr; } else { (void) pthread_barrierattr_init( &my_attr ); 461ac: 260e movel %fp,%d3 461ae: 0683 ffff fff0 addil #-16,%d3 461b4: 2f03 movel %d3,%sp@- 461b6: 4eb9 0004 6038 jsr 46038 461bc: 588f addql #4,%sp 461be: 2043 moveal %d3,%a0 } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) 461c0: 4a90 tstl %a0@ 461c2: 6600 ff60 bnew 46124 461c6: 60c6 bras 4618e <== NOT EXECUTED 0004dae8 : } void pthread_exit( void *value_ptr ) { 4dae8: 4e56 0000 linkw %fp,#0 _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); 4daec: 2f2e 0008 movel %fp@(8),%sp@- 4daf0: 2f39 0005 f20e movel 5f20e <_Thread_Executing>,%sp@- 4daf6: 4eb9 0004 da78 jsr 4da78 <_POSIX_Thread_Exit> 4dafc: 508f addql #8,%sp <== NOT EXECUTED } 4dafe: 4e5e unlk %fp <== NOT EXECUTED 4db00: 4e75 rts <== NOT EXECUTED ... 00046768 : int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { 46768: 4e56 ffec linkw %fp,#-20 4676c: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ 46770: 246e 0008 moveal %fp@(8),%a2 46774: 266e 000c moveal %fp@(12),%a3 if ( !once_control || !init_routine ) 46778: 4a8a tstl %a2 4677a: 6766 beqs 467e2 4677c: 4a8b tstl %a3 4677e: 6762 beqs 467e2 return EINVAL; if ( !once_control->init_executed ) { 46780: 4aaa 0004 tstl %a2@(4) 46784: 670c beqs 46792 if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 46786: 4280 clrl %d0 } return 0; } 46788: 4cee 1c04 ffec moveml %fp@(-20),%d2/%a2-%a4 4678e: 4e5e unlk %fp 46790: 4e75 rts if ( !once_control || !init_routine ) return EINVAL; if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 46792: 240e movel %fp,%d2 46794: 5982 subql #4,%d2 46796: 49f9 0004 7428 lea 47428 ,%a4 4679c: 2f02 movel %d2,%sp@- 4679e: 4878 0100 pea 100 467a2: 4878 0100 pea 100 467a6: 4e94 jsr %a4@ if ( !once_control->init_executed ) { 467a8: 4fef 000c lea %sp@(12),%sp 467ac: 4aaa 0004 tstl %a2@(4) 467b0: 6714 beqs 467c6 once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 467b2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 467b4: 4878 0100 pea 100 <== NOT EXECUTED 467b8: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 467bc: 4e94 jsr %a4@ <== NOT EXECUTED 467be: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 467c2: 4280 clrl %d0 467c4: 60c2 bras 46788 if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; 467c6: 7001 moveq #1,%d0 467c8: 2540 0004 movel %d0,%a2@(4) if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { once_control->is_initialized = true; 467cc: 2480 movel %d0,%a2@ once_control->init_executed = true; (*init_routine)(); 467ce: 4e93 jsr %a3@ } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 467d0: 2f02 movel %d2,%sp@- 467d2: 4878 0100 pea 100 467d6: 2f2e fffc movel %fp@(-4),%sp@- 467da: 4e94 jsr %a4@ 467dc: 4fef 000c lea %sp@(12),%sp 467e0: 60e0 bras 467c2 467e2: 7016 moveq #22,%d0 } return 0; } 467e4: 4cee 1c04 ffec moveml %fp@(-20),%d2/%a2-%a4 467ea: 4e5e unlk %fp 467ec: 4e75 rts ... 0004897c : int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { 4897c: 4e56 ffe0 linkw %fp,#-32 48980: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 48984: 282e 000c movel %fp@(12),%d4 48988: 242e 0010 movel %fp@(16),%d2 int rc; /* * Check all the parameters */ if ( !param ) 4898c: 6700 00c4 beqw 48a52 return EINVAL; rc = _POSIX_Thread_Translate_sched_param( 48990: 486e fff8 pea %fp@(-8) 48994: 486e fffc pea %fp@(-4) 48998: 2f02 movel %d2,%sp@- 4899a: 2f04 movel %d4,%sp@- 4899c: 4eb9 0004 e798 jsr 4e798 <_POSIX_Thread_Translate_sched_param> policy, param, &budget_algorithm, &budget_callout ); if ( rc ) 489a2: 4fef 0010 lea %sp@(16),%sp * Check all the parameters */ if ( !param ) return EINVAL; rc = _POSIX_Thread_Translate_sched_param( 489a6: 2600 movel %d0,%d3 policy, param, &budget_algorithm, &budget_callout ); if ( rc ) 489a8: 670c beqs 489b6 case OBJECTS_ERROR: break; } return ESRCH; } 489aa: 2003 movel %d3,%d0 489ac: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 489b2: 4e5e unlk %fp 489b4: 4e75 rts 489b6: 486e fff4 pea %fp@(-12) 489ba: 2f2e 0008 movel %fp@(8),%sp@- 489be: 4879 0006 45da pea 645da <_POSIX_Threads_Information> 489c4: 4eb9 0004 aab8 jsr 4aab8 <_Objects_Get> /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 489ca: 4fef 000c lea %sp@(12),%sp 489ce: 2440 moveal %d0,%a2 489d0: 4aae fff4 tstl %fp@(-12) 489d4: 6600 008a bnew 48a60 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 489d8: 266a 010e moveal %a2@(270),%a3 if ( api->schedpolicy == SCHED_SPORADIC ) 489dc: 7004 moveq #4,%d0 489de: b0ab 0080 cmpl %a3@(128),%d0 489e2: 6700 00ba beqw 48a9e (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; api->schedparam = *param; 489e6: 2242 moveal %d2,%a1 489e8: 41eb 0084 lea %a3@(132),%a0 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; 489ec: 2744 0080 movel %d4,%a3@(128) api->schedparam = *param; 489f0: 20d9 movel %a1@+,%a0@+ 489f2: 20d9 movel %a1@+,%a0@+ 489f4: 20d9 movel %a1@+,%a0@+ 489f6: 20d9 movel %a1@+,%a0@+ 489f8: 20d9 movel %a1@+,%a0@+ 489fa: 20d9 movel %a1@+,%a0@+ the_thread->budget_algorithm = budget_algorithm; 489fc: 256e fffc 007a movel %fp@(-4),%a2@(122) if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; api->schedparam = *param; 48a02: 2091 movel %a1@,%a0@ the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; 48a04: 256e fff8 007e movel %fp@(-8),%a2@(126) switch ( api->schedpolicy ) { 48a0a: 4a84 tstl %d4 48a0c: 6d32 blts 48a40 48a0e: 7002 moveq #2,%d0 48a10: b084 cmpl %d4,%d0 48a12: 6d5c blts 48a70 48a14: 4280 clrl %d0 48a16: 1039 0006 2c06 moveb 62c06 ,%d0 case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 48a1c: 41f9 0006 43a4 lea 643a4 <_Thread_Ticks_per_timeslice>,%a0 48a22: 90ab 0084 subl %a3@(132),%d0 48a26: 2550 0076 movel %a0@,%a2@(118) the_thread->real_priority = 48a2a: 2540 0018 movel %d0,%a2@(24) _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( 48a2e: 4878 0001 pea 1 48a32: 2f00 movel %d0,%sp@- 48a34: 2f0a movel %a2,%sp@- 48a36: 4eb9 0004 ada8 jsr 4ada8 <_Thread_Change_priority> the_thread, the_thread->real_priority, true ); break; 48a3c: 4fef 000c lea %sp@(12),%sp _Watchdog_Remove( &api->Sporadic_timer ); _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); break; } _Thread_Enable_dispatch(); 48a40: 4eb9 0004 b2c8 jsr 4b2c8 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return ESRCH; } 48a46: 2003 movel %d3,%d0 48a48: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 48a4e: 4e5e unlk %fp 48a50: 4e75 rts int rc; /* * Check all the parameters */ if ( !param ) 48a52: 7616 moveq #22,%d3 case OBJECTS_ERROR: break; } return ESRCH; } 48a54: 2003 movel %d3,%d0 48a56: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 48a5c: 4e5e unlk %fp 48a5e: 4e75 rts /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 48a60: 163c 0003 moveb #3,%d3 case OBJECTS_ERROR: break; } return ESRCH; } 48a64: 2003 movel %d3,%d0 48a66: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 48a6c: 4e5e unlk %fp 48a6e: 4e75 rts api->schedpolicy = policy; api->schedparam = *param; the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; switch ( api->schedpolicy ) { 48a70: 103c 0004 moveb #4,%d0 48a74: b084 cmpl %d4,%d0 48a76: 66c8 bnes 48a40 true ); break; case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; 48a78: 276b 0084 00a0 movel %a3@(132),%a3@(160) _Watchdog_Remove( &api->Sporadic_timer ); 48a7e: 486b 00a4 pea %a3@(164) 48a82: 4eb9 0004 c738 jsr 4c738 <_Watchdog_Remove> _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); 48a88: 2f0a movel %a2,%sp@- 48a8a: 42a7 clrl %sp@- 48a8c: 4eb9 0004 88c0 jsr 488c0 <_POSIX_Threads_Sporadic_budget_TSR> 48a92: 4fef 000c lea %sp@(12),%sp break; } _Thread_Enable_dispatch(); 48a96: 4eb9 0004 b2c8 jsr 4b2c8 <_Thread_Enable_dispatch> 48a9c: 60a8 bras 48a46 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); 48a9e: 486b 00a4 pea %a3@(164) 48aa2: 4eb9 0004 c738 jsr 4c738 <_Watchdog_Remove> api->schedpolicy = policy; api->schedparam = *param; the_thread->budget_algorithm = budget_algorithm; 48aa8: 256e fffc 007a movel %fp@(-4),%a2@(122) if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; api->schedparam = *param; 48aae: 2242 moveal %d2,%a1 48ab0: 41eb 0084 lea %a3@(132),%a0 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); 48ab4: 588f addql #4,%sp api->schedpolicy = policy; 48ab6: 2744 0080 movel %d4,%a3@(128) api->schedparam = *param; 48aba: 20d9 movel %a1@+,%a0@+ 48abc: 20d9 movel %a1@+,%a0@+ 48abe: 20d9 movel %a1@+,%a0@+ 48ac0: 20d9 movel %a1@+,%a0@+ 48ac2: 20d9 movel %a1@+,%a0@+ 48ac4: 20d9 movel %a1@+,%a0@+ the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; 48ac6: 256e fff8 007e movel %fp@(-8),%a2@(126) if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; api->schedparam = *param; 48acc: 2091 movel %a1@,%a0@ the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; switch ( api->schedpolicy ) { 48ace: 4a84 tstl %d4 48ad0: 6c00 ff3c bgew 48a0e 48ad4: 6000 ff6a braw 48a40 <== NOT EXECUTED 00046434 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 46434: 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() ) 46438: 2039 0006 03aa movel 603aa <_ISR_Nest_level>,%d0 4643e: 663c bnes 4647c return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 46440: 2079 0006 03ca moveal 603ca <_Thread_Executing>,%a0 46446: 2039 0006 0310 movel 60310 <_Thread_Dispatch_disable_level>,%d0 4644c: 5280 addql #1,%d0 4644e: 2068 010e moveal %a0@(270),%a0 46452: 23c0 0006 0310 movel %d0,60310 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 46458: 4aa8 00d4 tstl %a0@(212) 4645c: 6622 bnes 46480 thread_support->cancelation_requested ) 4645e: 4aa8 00dc tstl %a0@(220) 46462: 671c beqs 46480 cancel = true; _Thread_Enable_dispatch(); 46464: 4eb9 0004 8b08 jsr 48b08 <_Thread_Enable_dispatch> if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); 4646a: 4878 ffff pea ffffffff 4646e: 2f39 0006 03ca movel 603ca <_Thread_Executing>,%sp@- 46474: 4eb9 0004 c160 jsr 4c160 <_POSIX_Thread_Exit> 4647a: 508f addql #8,%sp <== NOT EXECUTED } 4647c: 4e5e unlk %fp <== NOT EXECUTED 4647e: 4e75 rts <== NOT EXECUTED 46480: 4e5e unlk %fp _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); 46482: 4ef9 0004 8b08 jmp 48b08 <_Thread_Enable_dispatch> 000429a4 : * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) { 429a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 429a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 429aa: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED const char *p = s; for (p=s ; *p ; p++ ) 429ae: 1012 moveb %a2@,%d0 <== NOT EXECUTED 429b0: 6714 beqs 429c6 <== NOT EXECUTED BSP_output_char(*p); 429b2: 49c0 extbl %d0 <== NOT EXECUTED */ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ ) 429b4: 528a addql #1,%a2 <== NOT EXECUTED BSP_output_char(*p); 429b6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 429b8: 2079 0005 e000 moveal 5e000 ,%a0 <== NOT EXECUTED 429be: 4e90 jsr %a0@ <== NOT EXECUTED */ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ ) 429c0: 588f addql #4,%sp <== NOT EXECUTED 429c2: 1012 moveb %a2@,%d0 <== NOT EXECUTED 429c4: 66ec bnes 429b2 <== NOT EXECUTED BSP_output_char(*p); BSP_output_char('\n'); 429c6: 2279 0005 e000 moveal 5e000 ,%a1 <== NOT EXECUTED 429cc: 700a moveq #10,%d0 <== NOT EXECUTED } 429ce: 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'); 429d2: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 429d6: 4e5e unlk %fp <== NOT EXECUTED { const char *p = s; for (p=s ; *p ; p++ ) BSP_output_char(*p); BSP_output_char('\n'); 429d8: 4ed1 jmp %a1@ <== NOT EXECUTED ... 0005b878 : ssize_t read( int fd, void *buffer, size_t count ) { 5b878: 4e56 fff4 linkw %fp,#-12 5b87c: 202e 0008 movel %fp@(8),%d0 5b880: 222e 000c movel %fp@(12),%d1 5b884: 206e 0010 moveal %fp@(16),%a0 5b888: 48d7 040c moveml %d2-%d3/%a2,%sp@ ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 5b88c: b0b9 0005 d8f4 cmpl 5d8f4 ,%d0 5b892: 6468 bccs 5b8fc iop = rtems_libio_iop( fd ); 5b894: 2479 0005 eff4 moveal 5eff4 ,%a2 5b89a: ed88 lsll #6,%d0 5b89c: d5c0 addal %d0,%a2 rtems_libio_check_is_open( iop ); 5b89e: 202a 0014 movel %a2@(20),%d0 5b8a2: 0800 0008 btst #8,%d0 5b8a6: 6754 beqs 5b8fc rtems_libio_check_buffer( buffer ); 5b8a8: 4a81 tstl %d1 5b8aa: 6768 beqs 5b914 rtems_libio_check_count( count ); 5b8ac: 4a88 tstl %a0 5b8ae: 6740 beqs 5b8f0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 5b8b0: 0800 0001 btst #1,%d0 5b8b4: 675e beqs 5b914 /* * Now process the read(). */ if ( !iop->handlers->read_h ) 5b8b6: 226a 003c moveal %a2@(60),%a1 5b8ba: 2269 0008 moveal %a1@(8),%a1 5b8be: 4a89 tstl %a1 5b8c0: 676a beqs 5b92c rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 5b8c2: 2f08 movel %a0,%sp@- 5b8c4: 2f01 movel %d1,%sp@- 5b8c6: 2f0a movel %a2,%sp@- 5b8c8: 4e91 jsr %a1@ if ( rc > 0 ) 5b8ca: 4fef 000c lea %sp@(12),%sp 5b8ce: 4a80 tstl %d0 5b8d0: 6f14 bles 5b8e6 iop->offset += rc; 5b8d2: 2400 movel %d0,%d2 5b8d4: 5bc1 smi %d1 5b8d6: 49c1 extbl %d1 5b8d8: d5aa 0010 addl %d2,%a2@(16) 5b8dc: 262a 000c movel %a2@(12),%d3 5b8e0: d781 addxl %d1,%d3 5b8e2: 2543 000c movel %d3,%a2@(12) return rc; } 5b8e6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 5b8ec: 4e5e unlk %fp 5b8ee: 4e75 rts rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); 5b8f0: 4280 clrl %d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5b8f2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 5b8f8: 4e5e unlk %fp <== NOT EXECUTED 5b8fa: 4e75 rts <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 5b8fc: 4eb9 0004 ede0 jsr 4ede0 <__errno> 5b902: 7409 moveq #9,%d2 5b904: 2040 moveal %d0,%a0 5b906: 70ff moveq #-1,%d0 5b908: 2082 movel %d2,%a0@ if ( rc > 0 ) iop->offset += rc; return rc; } 5b90a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 5b910: 4e5e unlk %fp 5b912: 4e75 rts rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 5b914: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5b91a: 7216 moveq #22,%d1 <== NOT EXECUTED 5b91c: 2040 moveal %d0,%a0 <== NOT EXECUTED 5b91e: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5b920: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 5b926: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5b928: 4e5e unlk %fp <== NOT EXECUTED 5b92a: 4e75 rts <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5b92c: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5b932: 2040 moveal %d0,%a0 <== NOT EXECUTED 5b934: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5b936: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5b93c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5b942: 4e5e unlk %fp <== NOT EXECUTED 5b944: 4e75 rts 00068b14 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 68b14: 4e56 ffe0 linkw %fp,#-32 68b18: 48d7 001c moveml %d2-%d4,%sp@ 68b1c: 262e 0008 movel %fp@(8),%d3 68b20: 282e 000c movel %fp@(12),%d4 rtems_filesystem_location_info_t loc; int result; if (!buf) 68b24: 6700 0092 beqw 68bb8 rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 68b28: 2f03 movel %d3,%sp@- 68b2a: 240e movel %fp,%d2 68b2c: 0682 ffff ffec addil #-20,%d2 68b32: 4eb9 0008 712c jsr 8712c 68b38: 4297 clrl %sp@ 68b3a: 2f02 movel %d2,%sp@- 68b3c: 42a7 clrl %sp@- 68b3e: 2f00 movel %d0,%sp@- 68b40: 2f03 movel %d3,%sp@- 68b42: 4eb9 0004 774c jsr 4774c 0, &loc, false ); if ( result != 0 ) 68b48: 4fef 0014 lea %sp@(20),%sp 68b4c: 4a80 tstl %d0 68b4e: 665a bnes 68baa return -1; if ( !loc.ops->node_type_h ){ 68b50: 226e fff8 moveal %fp@(-8),%a1 68b54: 2069 0010 moveal %a1@(16),%a0 68b58: 4a88 tstl %a0 68b5a: 6700 00a6 beqw 68c02 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 68b5e: 2f02 movel %d2,%sp@- 68b60: 4e90 jsr %a0@ 68b62: 588f addql #4,%sp 68b64: 7204 moveq #4,%d1 68b66: b280 cmpl %d0,%d1 68b68: 6668 bnes 68bd2 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 68b6a: 226e fff8 moveal %fp@(-8),%a1 68b6e: 2069 003c moveal %a1@(60),%a0 68b72: 4a88 tstl %a0 68b74: 6700 008c beqw 68c02 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 68b78: 2f2e 0010 movel %fp@(16),%sp@- 68b7c: 2f04 movel %d4,%sp@- 68b7e: 2f02 movel %d2,%sp@- 68b80: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 68b82: 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 ); 68b86: 2600 movel %d0,%d3 rtems_filesystem_freenode( &loc ); 68b88: 4fef 000c lea %sp@(12),%sp 68b8c: 4a88 tstl %a0 68b8e: 670e beqs 68b9e 68b90: 2068 001c moveal %a0@(28),%a0 68b94: 4a88 tstl %a0 68b96: 6706 beqs 68b9e 68b98: 2f02 movel %d2,%sp@- 68b9a: 4e90 jsr %a0@ 68b9c: 588f addql #4,%sp return result; } 68b9e: 2003 movel %d3,%d0 68ba0: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 68ba6: 4e5e unlk %fp 68ba8: 4e75 rts if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0, &loc, false ); if ( result != 0 ) 68baa: 76ff moveq #-1,%d3 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 68bac: 2003 movel %d3,%d0 <== NOT EXECUTED 68bae: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 68bb4: 4e5e unlk %fp <== NOT EXECUTED 68bb6: 4e75 rts <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 68bb8: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 68bbe: 76ff moveq #-1,%d3 <== NOT EXECUTED 68bc0: 720e moveq #14,%d1 <== NOT EXECUTED 68bc2: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 68bc4: 2003 movel %d3,%d0 <== NOT EXECUTED 68bc6: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 68bcc: 2081 movel %d1,%a0@ <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 68bce: 4e5e unlk %fp <== NOT EXECUTED 68bd0: 4e75 rts <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); 68bd2: 206e fff8 moveal %fp@(-8),%a0 68bd6: 4a88 tstl %a0 68bd8: 670e beqs 68be8 68bda: 2068 001c moveal %a0@(28),%a0 68bde: 4a88 tstl %a0 68be0: 6706 beqs 68be8 68be2: 2f02 movel %d2,%sp@- 68be4: 4e90 jsr %a0@ 68be6: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EINVAL ); 68be8: 4eb9 0008 1084 jsr 81084 <__errno> 68bee: 76ff moveq #-1,%d3 68bf0: 2040 moveal %d0,%a0 68bf2: 7016 moveq #22,%d0 68bf4: 2080 movel %d0,%a0@ result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 68bf6: 2003 movel %d3,%d0 68bf8: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 68bfe: 4e5e unlk %fp 68c00: 4e75 rts rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 68c02: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 68c06: 4a88 tstl %a0 <== NOT EXECUTED 68c08: 6706 beqs 68c10 <== NOT EXECUTED 68c0a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 68c0c: 4e90 jsr %a0@ <== NOT EXECUTED 68c0e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 68c10: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 68c16: 76ff moveq #-1,%d3 <== NOT EXECUTED 68c18: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 68c1a: 2003 movel %d3,%d0 <== NOT EXECUTED 68c1c: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 68c22: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 68c28: 4e5e unlk %fp <== NOT EXECUTED 68c2a: 4e75 rts 00044950 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 44950: 4e56 ffe0 linkw %fp,#-32 44954: 202e 0008 movel %fp@(8),%d0 44958: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 4495c: 246e 000c moveal %fp@(12),%a2 44960: 242e 0010 movel %fp@(16),%d2 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 44964: b0b9 0006 1584 cmpl 61584 ,%d0 4496a: 6400 00c6 bccw 44a32 iop = rtems_libio_iop( fd ); 4496e: 2679 0006 3458 moveal 63458 ,%a3 44974: ed88 lsll #6,%d0 44976: d7c0 addal %d0,%a3 rtems_libio_check_is_open( iop ); 44978: 202b 0014 movel %a3@(20),%d0 4497c: 0800 0008 btst #8,%d0 44980: 6700 00b0 beqw 44a32 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 44984: 0800 0001 btst #1,%d0 44988: 6700 008e beqw 44a18 /* * Argument validation on IO vector */ if ( !iov ) 4498c: 4a8a tstl %a2 4498e: 6700 0088 beqw 44a18 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 44992: 4a82 tstl %d2 44994: 6f00 0082 blew 44a18 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 44998: 0c82 0000 0400 cmpil #1024,%d2 4499e: 6e78 bgts 44a18 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 449a0: 206b 003c moveal %a3@(60),%a0 449a4: 2868 0008 moveal %a0@(8),%a4 449a8: 4a8c tstl %a4 449aa: 6700 00ae beqw 44a5a rtems_set_errno_and_return_minus_one( ENOTSUP ); 449ae: 204a moveal %a2,%a0 449b0: 4281 clrl %d1 449b2: 93c9 subal %a1,%a1 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) 449b4: 4a90 tstl %a0@ 449b6: 6760 beqs 44a18 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 449b8: 2628 0004 movel %a0@(4),%d3 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 449bc: 2809 movel %a1,%d4 449be: d883 addl %d3,%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++ ) { 449c0: 5281 addql #1,%d1 449c2: 5088 addql #8,%a0 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 449c4: 4a83 tstl %d3 449c6: 6750 beqs 44a18 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) 449c8: b889 cmpl %a1,%d4 449ca: 6d4c blts 44a18 * 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++ ) { 449cc: 2244 moveal %d4,%a1 449ce: b282 cmpl %d2,%d1 449d0: 6de2 blts 449b4 449d2: 588a addql #4,%a2 449d4: 4283 clrl %d3 449d6: 4284 clrl %d4 /* * 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 ); 449d8: 2f12 movel %a2@,%sp@- } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 449da: 5283 addql #1,%d3 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 449dc: 2f2a fffc movel %a2@(-4),%sp@- 449e0: 2f0b movel %a3,%sp@- 449e2: 4e94 jsr %a4@ if ( bytes < 0 ) 449e4: 4fef 000c lea %sp@(12),%sp 449e8: 4a80 tstl %d0 449ea: 6d60 blts 44a4c return -1; if ( bytes > 0 ) { 449ec: 6716 beqs 44a04 iop->offset += bytes; total += bytes; 449ee: d880 addl %d0,%d4 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 449f0: 2c00 movel %d0,%d6 <== NOT EXECUTED 449f2: 5bc5 smi %d5 <== NOT EXECUTED 449f4: 49c5 extbl %d5 <== NOT EXECUTED 449f6: ddab 0010 addl %d6,%a3@(16) <== NOT EXECUTED 449fa: 222b 000c movel %a3@(12),%d1 <== NOT EXECUTED 449fe: d385 addxl %d5,%d1 <== NOT EXECUTED 44a00: 2741 000c movel %d1,%a3@(12) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 44a04: b092 cmpl %a2@,%d0 44a06: 661e bnes 44a26 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 44a08: 508a addql #8,%a2 <== NOT EXECUTED 44a0a: b682 cmpl %d2,%d3 <== NOT EXECUTED 44a0c: 6c18 bges 44a26 <== NOT EXECUTED 44a0e: 206b 003c moveal %a3@(60),%a0 <== NOT EXECUTED 44a12: 2868 0008 moveal %a0@(8),%a4 <== NOT EXECUTED 44a16: 60c0 bras 449d8 <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); 44a18: 4eb9 0005 1334 jsr 51334 <__errno> 44a1e: 78ff moveq #-1,%d4 44a20: 2040 moveal %d0,%a0 44a22: 7016 moveq #22,%d0 44a24: 2080 movel %d0,%a0@ if (bytes != iov[ v ].iov_len) break; } return total; } 44a26: 2004 movel %d4,%d0 44a28: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 44a2e: 4e5e unlk %fp 44a30: 4e75 rts rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 44a32: 4eb9 0005 1334 jsr 51334 <__errno> <== NOT EXECUTED 44a38: 78ff moveq #-1,%d4 <== NOT EXECUTED 44a3a: 7209 moveq #9,%d1 <== NOT EXECUTED 44a3c: 2040 moveal %d0,%a0 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 44a3e: 2004 movel %d4,%d0 <== NOT EXECUTED 44a40: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 44a46: 2081 movel %d1,%a0@ <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 44a48: 4e5e unlk %fp <== NOT EXECUTED 44a4a: 4e75 rts <== NOT EXECUTED } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 44a4c: 78ff moveq #-1,%d4 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 44a4e: 2004 movel %d4,%d0 <== NOT EXECUTED 44a50: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 44a56: 4e5e unlk %fp <== NOT EXECUTED 44a58: 4e75 rts <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 44a5a: 4eb9 0005 1334 jsr 51334 <__errno> <== NOT EXECUTED 44a60: 78ff moveq #-1,%d4 <== NOT EXECUTED 44a62: 2040 moveal %d0,%a0 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 44a64: 2004 movel %d4,%d0 <== NOT EXECUTED 44a66: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 44a6c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 44a72: 4e5e unlk %fp <== NOT EXECUTED 44a74: 4e75 rts <== NOT EXECUTED ... 0005b9c4 : /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 5b9c4: 7003 moveq #3,%d0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 5b9c6: 4e56 fff0 linkw %fp,#-16 5b9ca: 52b9 0005 f010 addql #1,5f010 5b9d0: 48d7 001c moveml %d2-%d4,%sp@ 5b9d4: 242e 0008 movel %fp@(8),%d2 5b9d8: 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())) { 5b9dc: b0b9 0005 f2dc cmpl 5f2dc <_System_state_Current>,%d0 5b9e2: 677a beqs 5ba5e } /* * Continue with realloc(). */ if ( !ptr ) 5b9e4: 4a82 tstl %d2 5b9e6: 6700 00de beqw 5bac6 return malloc( size ); if ( !size ) { 5b9ea: 4a83 tstl %d3 5b9ec: 673e beqs 5ba2c free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 5b9ee: 486e fffc pea %fp@(-4) 5b9f2: 2f02 movel %d2,%sp@- 5b9f4: 2f39 0005 d900 movel 5d900 ,%sp@- 5b9fa: 4eb9 0005 bbac jsr 5bbac <_Protected_heap_Get_block_size> 5ba00: 4fef 000c lea %sp@(12),%sp 5ba04: 4a00 tstb %d0 5ba06: 673c beqs 5ba44 #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 ) ) { 5ba08: 2f03 movel %d3,%sp@- 5ba0a: 2f02 movel %d2,%sp@- 5ba0c: 2f39 0005 d900 movel 5d900 ,%sp@- 5ba12: 4eb9 0005 bbe8 jsr 5bbe8 <_Protected_heap_Resize_block> 5ba18: 4fef 000c lea %sp@(12),%sp 5ba1c: 4a00 tstb %d0 5ba1e: 6754 beqs 5ba74 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 5ba20: 2002 movel %d2,%d0 5ba22: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 5ba28: 4e5e unlk %fp 5ba2a: 4e75 rts */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 5ba2c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5ba2e: 4282 clrl %d2 <== NOT EXECUTED 5ba30: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED return (void *) 0; 5ba36: 588f addql #4,%sp <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 5ba38: 2002 movel %d2,%d0 <== NOT EXECUTED 5ba3a: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 5ba40: 4e5e unlk %fp <== NOT EXECUTED 5ba42: 4e75 rts <== NOT EXECUTED free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 5ba44: 4eb9 0004 ede0 jsr 4ede0 <__errno> 5ba4a: 4282 clrl %d2 5ba4c: 2040 moveal %d0,%a0 5ba4e: 7016 moveq #22,%d0 5ba50: 2080 movel %d0,%a0@ memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 5ba52: 2002 movel %d2,%d0 5ba54: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 5ba5a: 4e5e unlk %fp 5ba5c: 4e75 rts /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) 5ba5e: 2039 0005 f154 movel 5f154 <_Thread_Dispatch_disable_level>,%d0 5ba64: 6752 beqs 5bab8 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 5ba66: 4282 clrl %d2 <== NOT EXECUTED } 5ba68: 2002 movel %d2,%d0 <== NOT EXECUTED 5ba6a: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 5ba70: 4e5e unlk %fp <== NOT EXECUTED 5ba72: 4e75 rts <== NOT EXECUTED * There used to be a free on this error case but it is wrong to * free the memory per OpenGroup Single UNIX Specification V2 * and the C Standard. */ new_area = malloc( size ); 5ba74: 2f03 movel %d3,%sp@- 5ba76: 4eb9 0004 ac20 jsr 4ac20 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ if ( !new_area ) { 5ba7c: 588f addql #4,%sp * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 5ba7e: 53b9 0005 f004 subql #1,5f004 * 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 ); 5ba84: 2800 movel %d0,%d4 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ if ( !new_area ) { 5ba86: 67de beqs 5ba66 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 5ba88: 202e fffc movel %fp@(-4),%d0 5ba8c: b083 cmpl %d3,%d0 5ba8e: 6402 bccs 5ba92 5ba90: 2600 movel %d0,%d3 5ba92: 2f03 movel %d3,%sp@- 5ba94: 2f02 movel %d2,%sp@- 5ba96: 2f04 movel %d4,%sp@- 5ba98: 4eb9 0004 f600 jsr 4f600 free( ptr ); 5ba9e: 2f02 movel %d2,%sp@- 5baa0: 2404 movel %d4,%d2 5baa2: 4eb9 0004 a688 jsr 4a688 return new_area; 5baa8: 4fef 0010 lea %sp@(16),%sp } 5baac: 2002 movel %d2,%d0 5baae: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 5bab4: 4e5e unlk %fp 5bab6: 4e75 rts if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 5bab8: 2039 0005 f1ee movel 5f1ee <_ISR_Nest_level>,%d0 5babe: 6700 ff24 beqw 5b9e4 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 5bac2: 4282 clrl %d2 <== NOT EXECUTED 5bac4: 60a2 bras 5ba68 <== NOT EXECUTED /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 5bac6: 2f03 movel %d3,%sp@- 5bac8: 4eb9 0004 ac20 jsr 4ac20 5bace: 588f addql #4,%sp 5bad0: 2400 movel %d0,%d2 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 5bad2: 2002 movel %d2,%d0 5bad4: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 5bada: 4e5e unlk %fp 5badc: 4e75 rts ... 00048cb0 : #include int rmdir( const char *pathname ) { 48cb0: 4e56 ffbc linkw %fp,#-68 48cb4: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 48cb8: 282e 0008 movel %fp@(8),%d4 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 48cbc: 2f04 movel %d4,%sp@- 48cbe: 4eb9 0004 75d0 jsr 475d0 if ( parentpathlen == 0 ) 48cc4: 588f addql #4,%sp /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 48cc6: 2400 movel %d0,%d2 if ( parentpathlen == 0 ) 48cc8: 6600 01ce bnew 48e98 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 48ccc: 2044 moveal %d4,%a0 48cce: 762f moveq #47,%d3 48cd0: 1210 moveb %a0@,%d1 48cd2: 1001 moveb %d1,%d0 48cd4: 49c0 extbl %d0 48cd6: b680 cmpl %d0,%d3 48cd8: 670e beqs 48ce8 48cda: 163c 005c moveb #92,%d3 <== NOT EXECUTED 48cde: b680 cmpl %d0,%d3 <== NOT EXECUTED 48ce0: 6706 beqs 48ce8 <== NOT EXECUTED 48ce2: 4a01 tstb %d1 <== NOT EXECUTED 48ce4: 6600 00fc bnew 48de2 <== NOT EXECUTED 48ce8: 2079 000a 21cc moveal a21cc ,%a0 48cee: 45ee ffec lea %fp@(-20),%a2 48cf2: 49ee fff0 lea %fp@(-16),%a4 48cf6: 200e movel %fp,%d0 48cf8: 0680 ffff fff4 addil #-12,%d0 48cfe: 2640 moveal %d0,%a3 48d00: 4bee fff8 lea %fp@(-8),%a5 48d04: 224e moveal %fp,%a1 48d06: 24a8 0018 movel %a0@(24),%a2@ 48d0a: 28a8 001c movel %a0@(28),%a4@ 48d0e: 26a8 0020 movel %a0@(32),%a3@ 48d12: 2aa8 0024 movel %a0@(36),%a5@ 48d16: 2328 0028 movel %a0@(40),%a1@- 48d1a: 4203 clrb %d3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 48d1c: 2040 moveal %d0,%a0 name = pathname + parentpathlen; 48d1e: 2644 moveal %d4,%a3 48d20: d7c2 addal %d2,%a3 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 48d22: 240e movel %fp,%d2 48d24: 0682 ffff ffd8 addil #-40,%d2 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 48d2a: 2d50 ffe0 movel %a0@,%fp@(-32) 48d2e: 2d51 ffe8 movel %a1@,%fp@(-24) 48d32: 2d54 ffdc movel %a4@,%fp@(-36) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 48d36: 49f9 0008 712c lea 8712c ,%a4 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 48d3c: 2d55 ffe4 movel %a5@,%fp@(-28) 48d40: 2d52 ffd8 movel %a2@,%fp@(-40) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 48d44: 2f0b movel %a3,%sp@- 48d46: 4e94 jsr %a4@ 48d48: 2e80 movel %d0,%sp@ 48d4a: 2f0b movel %a3,%sp@- 48d4c: 4eb9 0004 7588 jsr 47588 48d52: d7c0 addal %d0,%a3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 48d54: 2f0b movel %a3,%sp@- 48d56: 4e94 jsr %a4@ 48d58: 4297 clrl %sp@ 48d5a: 2f02 movel %d2,%sp@- 48d5c: 42a7 clrl %sp@- 48d5e: 2f00 movel %d0,%sp@- 48d60: 2f0b movel %a3,%sp@- 48d62: 4eb9 0004 7642 jsr 47642 0, &loc, false ); if ( result != 0 ) { 48d68: 4fef 001c lea %sp@(28),%sp 48d6c: 4a80 tstl %d0 48d6e: 6600 00ee bnew 48e5e /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 48d72: 226e ffe4 moveal %fp@(-28),%a1 48d76: 2069 0010 moveal %a1@(16),%a0 48d7a: 4a88 tstl %a0 48d7c: 6700 01a0 beqw 48f1e 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 ){ 48d80: 2f02 movel %d2,%sp@- 48d82: 4e90 jsr %a0@ 48d84: 588f addql #4,%sp 48d86: 7201 moveq #1,%d1 48d88: b280 cmpl %d0,%d1 48d8a: 6600 0086 bnew 48e12 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 48d8e: 206e ffe0 moveal %fp@(-32),%a0 48d92: 2068 0034 moveal %a0@(52),%a0 48d96: 4a88 tstl %a0 48d98: 6700 0136 beqw 48ed0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 48d9c: 2f02 movel %d2,%sp@- 48d9e: 2f0a movel %a2,%sp@- 48da0: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 48da2: 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 ); 48da6: 2640 moveal %d0,%a3 rtems_filesystem_freenode( &loc ); 48da8: 508f addql #8,%sp 48daa: 4a88 tstl %a0 48dac: 670e beqs 48dbc 48dae: 2068 001c moveal %a0@(28),%a0 48db2: 4a88 tstl %a0 48db4: 6706 beqs 48dbc 48db6: 2f02 movel %d2,%sp@- 48db8: 4e90 jsr %a0@ 48dba: 588f addql #4,%sp if ( free_parentloc ) 48dbc: 4a03 tstb %d3 48dbe: 6716 beqs 48dd6 rtems_filesystem_freenode( &parentloc ); 48dc0: 206e fff8 moveal %fp@(-8),%a0 48dc4: 4a88 tstl %a0 48dc6: 670e beqs 48dd6 48dc8: 2068 001c moveal %a0@(28),%a0 48dcc: 4a88 tstl %a0 48dce: 6706 beqs 48dd6 48dd0: 2f0a movel %a2,%sp@- 48dd2: 4e90 jsr %a0@ 48dd4: 588f addql #4,%sp return result; } 48dd6: 200b movel %a3,%d0 48dd8: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 48dde: 4e5e unlk %fp 48de0: 4e75 rts */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 48de2: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 48de8: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 48dec: 5888 addql #4,%a0 <== NOT EXECUTED 48dee: 49ee fff0 lea %fp@(-16),%a4 <== NOT EXECUTED 48df2: 200e movel %fp,%d0 <== NOT EXECUTED 48df4: 0680 ffff fff4 addil #-12,%d0 <== NOT EXECUTED 48dfa: 2640 moveal %d0,%a3 <== NOT EXECUTED 48dfc: 4bee fff8 lea %fp@(-8),%a5 <== NOT EXECUTED 48e00: 224e moveal %fp,%a1 <== NOT EXECUTED 48e02: 2498 movel %a0@+,%a2@ <== NOT EXECUTED 48e04: 2898 movel %a0@+,%a4@ <== NOT EXECUTED 48e06: 2698 movel %a0@+,%a3@ <== NOT EXECUTED 48e08: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 48e0a: 2310 movel %a0@,%a1@- <== NOT EXECUTED 48e0c: 4203 clrb %d3 <== NOT EXECUTED 48e0e: 6000 ff0c braw 48d1c <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); 48e12: 206e ffe4 moveal %fp@(-28),%a0 48e16: 4a88 tstl %a0 48e18: 670e beqs 48e28 48e1a: 2068 001c moveal %a0@(28),%a0 48e1e: 4a88 tstl %a0 48e20: 6706 beqs 48e28 48e22: 2f02 movel %d2,%sp@- 48e24: 4e90 jsr %a0@ 48e26: 588f addql #4,%sp if ( free_parentloc ) 48e28: 4a03 tstb %d3 48e2a: 6716 beqs 48e42 rtems_filesystem_freenode( &parentloc ); 48e2c: 206e fff8 moveal %fp@(-8),%a0 48e30: 4a88 tstl %a0 48e32: 670e beqs 48e42 48e34: 2068 001c moveal %a0@(28),%a0 48e38: 4a88 tstl %a0 48e3a: 6706 beqs 48e42 48e3c: 2f0a movel %a2,%sp@- 48e3e: 4e90 jsr %a0@ 48e40: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( ENOTDIR ); 48e42: 4eb9 0008 1084 jsr 81084 <__errno> 48e48: 367c ffff moveaw #-1,%a3 48e4c: 2040 moveal %d0,%a0 48e4e: 7014 moveq #20,%d0 48e50: 2080 movel %d0,%a0@ rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 48e52: 200b movel %a3,%d0 48e54: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 48e5a: 4e5e unlk %fp 48e5c: 4e75 rts name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 48e5e: 4a03 tstb %d3 48e60: 6610 bnes 48e72 result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 48e62: 367c ffff moveaw #-1,%a3 return result; } 48e66: 200b movel %a3,%d0 48e68: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 48e6e: 4e5e unlk %fp 48e70: 4e75 rts result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 48e72: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 48e76: 4a88 tstl %a0 <== NOT EXECUTED 48e78: 67e8 beqs 48e62 <== NOT EXECUTED 48e7a: 2028 001c movel %a0@(28),%d0 <== NOT EXECUTED 48e7e: 67e2 beqs 48e62 <== NOT EXECUTED 48e80: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48e82: 2040 moveal %d0,%a0 <== NOT EXECUTED 48e84: 367c ffff moveaw #-1,%a3 <== NOT EXECUTED 48e88: 4e90 jsr %a0@ <== NOT EXECUTED 48e8a: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 48e8c: 200b movel %a3,%d0 <== NOT EXECUTED 48e8e: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 <== NOT EXECUTED 48e94: 4e5e unlk %fp <== NOT EXECUTED 48e96: 4e75 rts <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 48e98: 42a7 clrl %sp@- 48e9a: 45ee ffec lea %fp@(-20),%a2 48e9e: 2f0a movel %a2,%sp@- 48ea0: 4878 0002 pea 2 48ea4: 2f00 movel %d0,%sp@- 48ea6: 2f04 movel %d4,%sp@- 48ea8: 4eb9 0004 774c jsr 4774c RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 48eae: 4fef 0014 lea %sp@(20),%sp 48eb2: 4a80 tstl %d0 48eb4: 66ac bnes 48e62 48eb6: 200e movel %fp,%d0 48eb8: 49ee fff0 lea %fp@(-16),%a4 48ebc: 0680 ffff fff4 addil #-12,%d0 48ec2: 4bee fff8 lea %fp@(-8),%a5 48ec6: 43ee fffc lea %fp@(-4),%a1 48eca: 7601 moveq #1,%d3 48ecc: 6000 fe4e braw 48d1c /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 48ed0: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 48ed4: 4a88 tstl %a0 <== NOT EXECUTED 48ed6: 670e beqs 48ee6 <== NOT EXECUTED 48ed8: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 48edc: 4a88 tstl %a0 <== NOT EXECUTED 48ede: 6706 beqs 48ee6 <== NOT EXECUTED 48ee0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48ee2: 4e90 jsr %a0@ <== NOT EXECUTED 48ee4: 588f addql #4,%sp <== NOT EXECUTED if ( free_parentloc ) 48ee6: 4a03 tstb %d3 <== NOT EXECUTED 48ee8: 6716 beqs 48f00 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 48eea: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 48eee: 4a88 tstl %a0 <== NOT EXECUTED 48ef0: 670e beqs 48f00 <== NOT EXECUTED 48ef2: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 48ef6: 4a88 tstl %a0 <== NOT EXECUTED 48ef8: 6706 beqs 48f00 <== NOT EXECUTED 48efa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48efc: 4e90 jsr %a0@ <== NOT EXECUTED 48efe: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 48f00: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 48f06: 367c ffff moveaw #-1,%a3 <== NOT EXECUTED 48f0a: 2040 moveal %d0,%a0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 48f0c: 200b movel %a3,%d0 <== NOT EXECUTED 48f0e: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 <== NOT EXECUTED if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 48f14: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 48f1a: 4e5e unlk %fp <== NOT EXECUTED 48f1c: 4e75 rts <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 48f1e: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 48f22: 4a88 tstl %a0 <== NOT EXECUTED 48f24: 67c0 beqs 48ee6 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 48f26: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48f28: 4e90 jsr %a0@ <== NOT EXECUTED 48f2a: 588f addql #4,%sp <== NOT EXECUTED 48f2c: 60b8 bras 48ee6 <== NOT EXECUTED ... 0004d5e0 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 4d5e0: 4e56 ffe8 linkw %fp,#-24 4d5e4: 48d7 047c moveml %d2-%d6/%a2,%sp@ 4d5e8: 2c2e 0008 movel %fp@(8),%d6 4d5ec: 4283 clrl %d3 4d5ee: 4285 clrl %d5 4d5f0: 7401 moveq #1,%d2 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 4d5f2: 45f9 0004 d62c lea 4d62c ,%a2 uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 4d5f8: 282e 000c movel %fp@(12),%d4 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) 4d5fc: 2002 movel %d2,%d0 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4d5fe: 5283 addql #1,%d3 if (b & remote_value) 4d600: c084 andl %d4,%d0 4d602: 6614 bnes 4d618 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4d604: 7020 moveq #32,%d0 4d606: d482 addl %d2,%d2 4d608: b083 cmpl %d3,%d0 4d60a: 66f0 bnes 4d5fc if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 4d60c: 2005 movel %d5,%d0 4d60e: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 4d614: 4e5e unlk %fp 4d616: 4e75 rts uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 4d618: 2f02 movel %d2,%sp@- ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4d61a: d482 addl %d2,%d2 if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 4d61c: 2f06 movel %d6,%sp@- 4d61e: 4e92 jsr %a2@ 4d620: 508f addql #8,%sp 4d622: 8a80 orl %d0,%d5 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4d624: 7020 moveq #32,%d0 4d626: b083 cmpl %d3,%d0 4d628: 66d2 bnes 4d5fc 4d62a: 60e0 bras 4d60c <== NOT EXECUTED 0004d650 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 4d650: 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; } 4d654: 203c 0005 da94 movel #383636,%d0 <== NOT EXECUTED 4d65a: 4e5e unlk %fp <== NOT EXECUTED 4d65c: 4e75 rts <== NOT EXECUTED ... 0004a4fc : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4a4fc: 4e56 0000 linkw %fp,#0 4a500: 2f02 movel %d2,%sp@- 4a502: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4a506: 2f02 movel %d2,%sp@- 4a508: 2f2e 0008 movel %fp@(8),%sp@- 4a50c: 4eb9 0004 a534 jsr 4a534 if (nap) 4a512: 508f addql #8,%sp 4a514: 4a80 tstl %d0 4a516: 670c beqs 4a524 return nap->name; return rtems_assoc_name_bad(local_value); } 4a518: 2040 moveal %d0,%a0 4a51a: 242e fffc movel %fp@(-4),%d2 4a51e: 4e5e unlk %fp 4a520: 2010 movel %a0@,%d0 4a522: 4e75 rts nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 4a524: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4a528: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a52c: 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); 4a52e: 4ef9 0004 d650 jmp 4d650 <== NOT EXECUTED 0004a534 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4a534: 4e56 0000 linkw %fp,#0 4a538: 2f0a movel %a2,%sp@- 4a53a: 246e 0008 moveal %fp@(8),%a2 4a53e: 2f02 movel %d2,%sp@- 4a540: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4a544: 2012 movel %a2@,%d0 4a546: 6742 beqs 4a58a 4a548: 4879 0005 cb98 pea 5cb98 4a54e: 2f00 movel %d0,%sp@- 4a550: 4eb9 0004 fce8 jsr 4fce8 4a556: 508f addql #8,%sp 4a558: 4a80 tstl %d0 4a55a: 662a bnes 4a586 default_ap = ap++; 4a55c: 41ea 000c lea %a2@(12),%a0 <== NOT EXECUTED for ( ; ap->name; ap++) 4a560: 4a90 tstl %a0@ <== NOT EXECUTED 4a562: 6714 beqs 4a578 <== NOT EXECUTED 4a564: 200a movel %a2,%d0 <== NOT EXECUTED 4a566: 2448 moveal %a0,%a2 <== NOT EXECUTED if (ap->local_value == local_value) 4a568: b4aa 0004 cmpl %a2@(4),%d2 4a56c: 670a beqs 4a578 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 4a56e: 45ea 000c lea %a2@(12),%a2 4a572: 4a92 tstl %a2@ 4a574: 66f2 bnes 4a568 4a576: 2440 moveal %d0,%a2 if (ap->local_value == local_value) return ap; return default_ap; } 4a578: 200a movel %a2,%d0 4a57a: 242e fff8 movel %fp@(-8),%d2 4a57e: 246e fffc moveal %fp@(-4),%a2 4a582: 4e5e unlk %fp 4a584: 4e75 rts uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4a586: 4280 clrl %d0 4a588: 60de bras 4a568 4a58a: 95ca subal %a2,%a2 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } 4a58c: 200a movel %a2,%d0 <== NOT EXECUTED 4a58e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a592: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a596: 4e5e unlk %fp <== NOT EXECUTED 4a598: 4e75 rts <== NOT EXECUTED ... 0004d660 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 4d660: 4e56 0000 linkw %fp,#0 4d664: 2f0a movel %a2,%sp@- 4d666: 246e 0008 moveal %fp@(8),%a2 4d66a: 2f02 movel %d2,%sp@- 4d66c: 242e 000c movel %fp@(12),%d2 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4d670: 2012 movel %a2@,%d0 4d672: 6742 beqs 4d6b6 4d674: 4879 0005 cb98 pea 5cb98 4d67a: 2f00 movel %d0,%sp@- 4d67c: 4eb9 0004 fce8 jsr 4fce8 4d682: 508f addql #8,%sp 4d684: 4a80 tstl %d0 4d686: 662a bnes 4d6b2 default_ap = ap++; 4d688: 41ea 000c lea %a2@(12),%a0 <== NOT EXECUTED for ( ; ap->name; ap++) 4d68c: 4a90 tstl %a0@ <== NOT EXECUTED 4d68e: 6714 beqs 4d6a4 <== NOT EXECUTED 4d690: 200a movel %a2,%d0 <== NOT EXECUTED 4d692: 2448 moveal %a0,%a2 <== NOT EXECUTED if (ap->remote_value == remote_value) 4d694: b4aa 0008 cmpl %a2@(8),%d2 4d698: 670a beqs 4d6a4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 4d69a: 45ea 000c lea %a2@(12),%a2 4d69e: 4a92 tstl %a2@ 4d6a0: 66f2 bnes 4d694 4d6a2: 2440 moveal %d0,%a2 if (ap->remote_value == remote_value) return ap; return default_ap; } 4d6a4: 200a movel %a2,%d0 4d6a6: 242e fff8 movel %fp@(-8),%d2 4d6aa: 246e fffc moveal %fp@(-4),%a2 4d6ae: 4e5e unlk %fp 4d6b0: 4e75 rts uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4d6b2: 4280 clrl %d0 4d6b4: 60de bras 4d694 4d6b6: 95ca subal %a2,%a2 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } 4d6b8: 200a movel %a2,%d0 <== NOT EXECUTED 4d6ba: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4d6be: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d6c2: 4e5e unlk %fp <== NOT EXECUTED 4d6c4: 4e75 rts <== NOT EXECUTED ... 0004e570 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4e570: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4e574: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4e578: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4e57c: 4eb9 0004 a534 jsr 4a534 <== NOT EXECUTED if (nap) 4e582: 508f addql #8,%sp <== NOT EXECUTED 4e584: 4a80 tstl %d0 <== NOT EXECUTED 4e586: 6706 beqs 4e58e <== NOT EXECUTED return nap->remote_value; 4e588: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e58a: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED return 0; } 4e58e: 4e5e unlk %fp <== NOT EXECUTED 4e590: 4e75 rts <== NOT EXECUTED ... 00042708 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 42708: 4e56 ffec linkw %fp,#-20 4270c: 202e 0008 movel %fp@(8),%d0 42710: 48d7 043c moveml %d2-%d5/%a2,%sp@ 42714: 246e 000c moveal %fp@(12),%a2 const char *p; if ( !name ) 42718: 4a80 tstl %d0 4271a: 660e bnes 4272a int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i return NULL; if ( !length ) 4272e: 4aae 0010 tstl %fp@(16) 42732: 67e8 beqs 4271c return NULL; value[0] = '\0'; 42734: 4212 clrb %a2@ p = rtems_bsp_cmdline_get_param_raw( name ); 42736: 2f00 movel %d0,%sp@- 42738: 4eb9 0004 2798 jsr 42798 if ( !p ) 4273e: 588f addql #4,%sp if ( !length ) return NULL; value[0] = '\0'; p = rtems_bsp_cmdline_get_param_raw( name ); 42740: 2240 moveal %d0,%a1 if ( !p ) 42742: 4a80 tstl %d0 42744: 67d6 beqs 4271c int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 4274a: 202e 0010 movel %fp@(16),%d0 4274e: 5380 subql #1,%d0 42750: 67cc beqs 4271e 42752: 91c8 subal %a0,%a0 42754: 4281 clrl %d1 42756: 4284 clrl %d4 if ( *p == '\"' ) { 42758: 7a22 moveq #34,%d5 4275a: 1602 moveb %d2,%d3 4275c: 49c3 extbl %d3 4275e: ba83 cmpl %d3,%d5 42760: 6730 beqs 42792 quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) 42762: 0804 0000 btst #0,%d4 42766: 6606 bnes 4276e 42768: 7a20 moveq #32,%d5 4276a: ba83 cmpl %d3,%d5 4276c: 67b0 beqs 4271e break; value[i++] = *p++; 4276e: 5281 addql #1,%d1 42770: 1582 8800 moveb %d2,%a2@(00000000,%a0:l) value[i] = '\0'; 42774: 4202 clrb %d2 for (i=0 ; *p && i 42782: b081 cmpl %d1,%d0 42784: 62d2 bhis 42758 return NULL; copy_string( p, value, length ); return value; } 42786: 200a movel %a2,%d0 <== NOT EXECUTED 42788: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 4278e: 4e5e unlk %fp <== NOT EXECUTED 42790: 4e75 rts <== NOT EXECUTED const char *p = start; quotes=0; for (i=0 ; *p && i <== NOT EXECUTED ... 000427c0 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 427c0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 427c4: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 427c8: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 427cc: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 427d0: 2f02 movel %d2,%sp@- <== NOT EXECUTED const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 427d2: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 427d6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 427d8: 4eb9 0004 2708 jsr 42708 <== NOT EXECUTED if ( !p ) 427de: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED { const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 427e2: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !p ) 427e4: 660e bnes 427f4 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; 427e6: 4282 clrl %d2 <== NOT EXECUTED } 427e8: 2002 movel %d2,%d0 <== NOT EXECUTED 427ea: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 427f0: 4e5e unlk %fp <== NOT EXECUTED 427f2: 4e75 rts <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 427f4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 427f6: 4eb9 0005 07c8 jsr 507c8 <== NOT EXECUTED 427fc: 588f addql #4,%sp <== NOT EXECUTED 427fe: 2043 moveal %d3,%a0 <== NOT EXECUTED 42800: d1c0 addal %d0,%a0 <== NOT EXECUTED if ( *rhs != '=' ) 42802: 723d moveq #61,%d1 <== NOT EXECUTED 42804: 1010 moveb %a0@,%d0 <== NOT EXECUTED 42806: 49c0 extbl %d0 <== NOT EXECUTED 42808: b280 cmpl %d0,%d1 <== NOT EXECUTED 4280a: 66da bnes 427e6 <== NOT EXECUTED return NULL; rhs++; 4280c: 5288 addql #1,%a0 <== NOT EXECUTED if ( *rhs == '\"' ) 4280e: 7622 moveq #34,%d3 <== NOT EXECUTED 42810: 1010 moveb %a0@,%d0 <== NOT EXECUTED 42812: 1200 moveb %d0,%d1 <== NOT EXECUTED 42814: 49c1 extbl %d1 <== NOT EXECUTED 42816: b681 cmpl %d1,%d3 <== NOT EXECUTED 42818: 672a beqs 42844 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) 4281a: 4a00 tstb %d0 <== NOT EXECUTED 4281c: 672c beqs 4284a <== NOT EXECUTED 4281e: 2242 moveal %d2,%a1 <== NOT EXECUTED *d++ = *rhs++; 42820: 5288 addql #1,%a0 <== NOT EXECUTED 42822: 12c0 moveb %d0,%a1@+ <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 42824: 1010 moveb %a0@,%d0 <== NOT EXECUTED 42826: 66f8 bnes 42820 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 42828: 2049 moveal %a1,%a0 <== NOT EXECUTED 4282a: 7222 moveq #34,%d1 <== NOT EXECUTED 4282c: 1020 moveb %a0@-,%d0 <== NOT EXECUTED 4282e: 49c0 extbl %d0 <== NOT EXECUTED 42830: b280 cmpl %d0,%d1 <== NOT EXECUTED 42832: 6702 beqs 42836 <== NOT EXECUTED 42834: 2049 moveal %a1,%a0 <== NOT EXECUTED d--; *d = '\0'; return value; } 42836: 2002 movel %d2,%d0 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; 42838: 4210 clrb %a0@ <== NOT EXECUTED return value; } 4283a: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 42840: 4e5e unlk %fp <== NOT EXECUTED 42842: 4e75 rts <== NOT EXECUTED if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++; 42844: 5288 addql #1,%a0 <== NOT EXECUTED 42846: 1010 moveb %a0@,%d0 <== NOT EXECUTED 42848: 60d0 bras 4281a <== NOT EXECUTED for ( d=value ; *rhs ; ) 4284a: 2242 moveal %d2,%a1 <== NOT EXECUTED 4284c: 60da bras 42828 <== NOT EXECUTED ... 0004e534 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 4e534: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4e538: 2f02 movel %d2,%sp@- <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 4e53a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4e53e: 4879 0005 cf68 pea 5cf68 <== NOT EXECUTED 4e544: 4eb9 0004 e570 jsr 4e570 <== NOT EXECUTED 4e54a: 508f addql #8,%sp <== NOT EXECUTED 4e54c: 2400 movel %d0,%d2 <== NOT EXECUTED 4e54e: 660a bnes 4e55a <== NOT EXECUTED { errno = rc; return -1; } return -1; } 4e550: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4e554: 70ff moveq #-1,%d0 <== NOT EXECUTED 4e556: 4e5e unlk %fp <== NOT EXECUTED 4e558: 4e75 rts <== NOT EXECUTED { int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) { errno = rc; 4e55a: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4e560: 2040 moveal %d0,%a0 <== NOT EXECUTED return -1; } return -1; } 4e562: 70ff moveq #-1,%d0 <== NOT EXECUTED { int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) { errno = rc; 4e564: 2082 movel %d2,%a0@ <== NOT EXECUTED return -1; } return -1; } 4e566: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4e56a: 4e5e unlk %fp <== NOT EXECUTED 4e56c: 4e75 rts <== NOT EXECUTED ... 00042544 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 42544: 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); 42548: 486e 0010 pea %fp@(16) <== NOT EXECUTED 4254c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 42550: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42554: 4eba fdda jsr %pc@(42330 ) <== NOT EXECUTED va_end(arglist); return chars_written; } 42558: 4e5e unlk %fp <== NOT EXECUTED 4255a: 4e75 rts 000425a4 : } int rtems_filesystem_dirname( const char *pathname ) { 425a4: 4e56 fff0 linkw %fp,#-16 425a8: 48d7 041c moveml %d2-%d4/%a2,%sp@ 425ac: 246e 0008 moveal %fp@(8),%a2 int len = strlen( pathname ); 425b0: 2f0a movel %a2,%sp@- 425b2: 4eb9 0005 01ac jsr 501ac 425b8: 588f addql #4,%sp while ( len ) { 425ba: 4a80 tstl %d0 425bc: 6742 beqs 42600 len--; 425be: 2200 movel %d0,%d1 425c0: 5381 subql #1,%d1 if ( rtems_filesystem_is_separator( pathname[len] ) ) 425c2: 782f moveq #47,%d4 425c4: 1632 1800 moveb %a2@(00000000,%d1:l),%d3 425c8: 1403 moveb %d3,%d2 425ca: 49c2 extbl %d2 425cc: b882 cmpl %d2,%d4 425ce: 673a beqs 4260a 425d0: 183c 005c moveb #92,%d4 425d4: b882 cmpl %d2,%d4 425d6: 6732 beqs 4260a 425d8: 4a03 tstb %d3 425da: 672e beqs 4260a 425dc: 41f2 08fe lea %a2@(fffffffe,%d0:l),%a0 425e0: 2001 movel %d1,%d0 const char *pathname ) { int len = strlen( pathname ); while ( len ) { 425e2: 4a80 tstl %d0 425e4: 671a beqs 42600 len--; 425e6: 5380 subql #1,%d0 if ( rtems_filesystem_is_separator( pathname[len] ) ) 425e8: 762f moveq #47,%d3 425ea: 1410 moveb %a0@,%d2 425ec: 5388 subql #1,%a0 425ee: 1202 moveb %d2,%d1 425f0: 49c1 extbl %d1 425f2: b681 cmpl %d1,%d3 425f4: 670a beqs 42600 425f6: 785c moveq #92,%d4 425f8: b881 cmpl %d1,%d4 425fa: 6704 beqs 42600 425fc: 4a02 tstb %d2 425fe: 66e2 bnes 425e2 break; } return len; } 42600: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 42606: 4e5e unlk %fp 42608: 4e75 rts const char *pathname ) { int len = strlen( pathname ); while ( len ) { 4260a: 2001 movel %d1,%d0 <== NOT EXECUTED if ( rtems_filesystem_is_separator( pathname[len] ) ) break; } return len; } 4260c: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 42612: 4e5e unlk %fp <== NOT EXECUTED 42614: 4e75 rts 00042720 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 42720: 4e56 ffe8 linkw %fp,#-24 42724: 202e 0014 movel %fp@(20),%d0 42728: 48d7 047c moveml %d2-%d6/%a2,%sp@ 4272c: 246e 0008 moveal %fp@(8),%a2 42730: 2a2e 000c movel %fp@(12),%d5 42734: 262e 0010 movel %fp@(16),%d3 42738: 282e 0018 movel %fp@(24),%d4 /* * Verify Input parameters. */ if ( !pathname ) 4273c: 4a8a tstl %a2 4273e: 6700 00bc beqw 427fc rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 42742: 4a80 tstl %d0 42744: 6700 009e beqw 427e4 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 42748: 7c2f moveq #47,%d6 4274a: 1412 moveb %a2@,%d2 4274c: 1202 moveb %d2,%d1 4274e: 49c1 extbl %d1 42750: bc81 cmpl %d1,%d6 42752: 670c beqs 42760 42754: 1c3c 005c moveb #92,%d6 42758: bc81 cmpl %d1,%d6 4275a: 6704 beqs 42760 4275c: 4a02 tstb %d2 4275e: 6646 bnes 427a6 42760: 2279 0005 da04 moveal 5da04 ,%a1 42766: 2040 moveal %d0,%a0 42768: 7401 moveq #1,%d2 4276a: 7201 moveq #1,%d1 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 4276c: 9a82 subl %d2,%d5 4276e: d5c1 addal %d1,%a2 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 42770: 20e9 0018 movel %a1@(24),%a0@+ 42774: 20e9 001c movel %a1@(28),%a0@+ 42778: 20e9 0020 movel %a1@(32),%a0@+ 4277c: 20e9 0024 movel %a1@(36),%a0@+ 42780: 20a9 0028 movel %a1@(40),%a0@ /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 42784: 2d45 000c movel %d5,%fp@(12) 42788: 2d4a 0008 movel %a2,%fp@(8) 4278c: 2d44 0018 movel %d4,%fp@(24) 42790: 2d43 0010 movel %d3,%fp@(16) pathnamelen - i, flags, pathloc, follow_link ); } 42794: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 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], 4279a: 2d40 0014 movel %d0,%fp@(20) pathnamelen - i, flags, pathloc, follow_link ); } 4279e: 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], 427a0: 4ef9 0004 2616 jmp 42616 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 427a6: 2279 0005 da04 moveal 5da04 ,%a1 427ac: 2040 moveal %d0,%a0 427ae: 5889 addql #4,%a1 427b0: 4282 clrl %d2 427b2: 4281 clrl %d1 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 427b4: 9a82 subl %d2,%d5 427b6: d5c1 addal %d1,%a2 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 427b8: 20d9 movel %a1@+,%a0@+ 427ba: 20d9 movel %a1@+,%a0@+ 427bc: 20d9 movel %a1@+,%a0@+ 427be: 20d9 movel %a1@+,%a0@+ 427c0: 2091 movel %a1@,%a0@ /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 427c2: 2d45 000c movel %d5,%fp@(12) 427c6: 2d4a 0008 movel %a2,%fp@(8) 427ca: 2d44 0018 movel %d4,%fp@(24) 427ce: 2d43 0010 movel %d3,%fp@(16) pathnamelen - i, flags, pathloc, follow_link ); } 427d2: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 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], 427d8: 2d40 0014 movel %d0,%fp@(20) pathnamelen - i, flags, pathloc, follow_link ); } 427dc: 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], 427de: 4ef9 0004 2616 jmp 42616 if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 427e4: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 427ea: 7405 moveq #5,%d2 <== NOT EXECUTED 427ec: 2040 moveal %d0,%a0 <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 427ee: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 427f0: 2082 movel %d2,%a0@ <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 427f2: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 427f8: 4e5e unlk %fp <== NOT EXECUTED 427fa: 4e75 rts <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 427fc: 4eb9 0004 ede0 jsr 4ede0 <__errno> 42802: 760e moveq #14,%d3 42804: 2040 moveal %d0,%a0 return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 42806: 70ff moveq #-1,%d0 /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 42808: 2083 movel %d3,%a0@ return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 4280a: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 42810: 4e5e unlk %fp 42812: 4e75 rts 00042616 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 42616: 4e56 fff0 linkw %fp,#-16 4261a: 222e 0008 movel %fp@(8),%d1 4261e: 48d7 041c moveml %d2-%d4/%a2,%sp@ 42622: 202e 000c movel %fp@(12),%d0 42626: 242e 0010 movel %fp@(16),%d2 4262a: 246e 0014 moveal %fp@(20),%a2 4262e: 282e 0018 movel %fp@(24),%d4 /* * Verify Input parameters. */ if ( !pathname ) 42632: 4a81 tstl %d1 42634: 6700 00d0 beqw 42706 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 42638: 4a8a tstl %a2 4263a: 6700 00b0 beqw 426ec rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 4263e: 206a 000c moveal %a2@(12),%a0 42642: 2050 moveal %a0@,%a0 42644: 4a88 tstl %a0 42646: 6768 beqs 426b0 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 42648: 2f0a movel %a2,%sp@- 4264a: 2f02 movel %d2,%sp@- 4264c: 2f00 movel %d0,%sp@- 4264e: 2f01 movel %d1,%sp@- 42650: 4e90 jsr %a0@ /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 42652: 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 ); 42656: 2600 movel %d0,%d3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 42658: 661e bnes 42678 4265a: 4a84 tstl %d4 4265c: 671a beqs 42678 if ( !pathloc->ops->node_type_h ){ 4265e: 226a 000c moveal %a2@(12),%a1 42662: 2069 0010 moveal %a1@(16),%a0 42666: 4a88 tstl %a0 42668: 6762 beqs 426cc rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 4266a: 2f0a movel %a2,%sp@- 4266c: 4e90 jsr %a0@ if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 4266e: 588f addql #4,%sp 42670: 7201 moveq #1,%d1 42672: 5780 subql #3,%d0 42674: b280 cmpl %d0,%d1 42676: 640c bccs 42684 result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 42678: 2003 movel %d3,%d0 4267a: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 42680: 4e5e unlk %fp 42682: 4e75 rts type = (*pathloc->ops->node_type_h)( pathloc ); if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 42684: 206a 000c moveal %a2@(12),%a0 42688: 2268 0034 moveal %a0@(52),%a1 4268c: 4a89 tstl %a1 4268e: 6712 beqs 426a2 * 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 ); 42690: 2d42 000c movel %d2,%fp@(12) 42694: 2d4a 0008 movel %a2,%fp@(8) } } return result; } 42698: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 4269e: 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 ); 426a0: 4ed1 jmp %a1@ if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 426a2: 2028 001c movel %a0@(28),%d0 <== NOT EXECUTED 426a6: 6708 beqs 426b0 <== NOT EXECUTED 426a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 426aa: 2040 moveal %d0,%a0 <== NOT EXECUTED 426ac: 4e90 jsr %a0@ <== NOT EXECUTED 426ae: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 426b0: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 426b6: 76ff moveq #-1,%d3 <== NOT EXECUTED 426b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 426ba: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 426c0: 2003 movel %d3,%d0 <== NOT EXECUTED 426c2: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 426c8: 4e5e unlk %fp <== NOT EXECUTED 426ca: 4e75 rts <== NOT EXECUTED */ if ( (result == 0) && follow_link ) { if ( !pathloc->ops->node_type_h ){ rtems_filesystem_freenode( pathloc ); 426cc: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 426d0: 4a88 tstl %a0 <== NOT EXECUTED 426d2: 67dc beqs 426b0 <== NOT EXECUTED 426d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 426d6: 76ff moveq #-1,%d3 <== NOT EXECUTED */ if ( (result == 0) && follow_link ) { if ( !pathloc->ops->node_type_h ){ rtems_filesystem_freenode( pathloc ); 426d8: 4e90 jsr %a0@ <== NOT EXECUTED 426da: 588f addql #4,%sp <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 426dc: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 426e2: 2040 moveal %d0,%a0 <== NOT EXECUTED 426e4: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 426ea: 60d4 bras 426c0 <== NOT EXECUTED if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 426ec: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 426f2: 76ff moveq #-1,%d3 <== NOT EXECUTED 426f4: 2040 moveal %d0,%a0 <== NOT EXECUTED 426f6: 7005 moveq #5,%d0 <== NOT EXECUTED 426f8: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 426fa: 2003 movel %d3,%d0 <== NOT EXECUTED 426fc: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 42702: 4e5e unlk %fp <== NOT EXECUTED 42704: 4e75 rts <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 42706: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4270c: 76ff moveq #-1,%d3 <== NOT EXECUTED 4270e: 720e moveq #14,%d1 <== NOT EXECUTED 42710: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 42712: 2003 movel %d3,%d0 <== NOT EXECUTED 42714: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 4271a: 2081 movel %d1,%a0@ <== NOT EXECUTED result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 4271c: 4e5e unlk %fp <== NOT EXECUTED 4271e: 4e75 rts 000421e8 : /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 421e8: 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 ) { 421ea: 4e56 ffdc linkw %fp,#-36 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 421ee: 2079 0005 da04 moveal 5da04 ,%a0 421f4: 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 ) { 421f8: 48d7 1c00 moveml %a2-%a4,%sp@ */ rtems_filesystem_umask = 022; init_fs_mount_table(); 421fc: 4eb9 0004 2b04 jsr 42b04 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 42202: 4ab9 0005 c068 tstl 5c068 42208: 6700 00e8 beqw 422f2 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 4220c: 2079 0005 d8fc moveal 5d8fc ,%a0 status = mount( 42212: 2f28 000c movel %a0@(12),%sp@- 42216: 2f28 0008 movel %a0@(8),%sp@- 4221a: 2f28 0004 movel %a0@(4),%sp@- 4221e: 2f10 movel %a0@,%sp@- 42220: 486e fffc pea %fp@(-4) 42224: 4eb9 0004 2b26 jsr 42b26 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 4222a: 4fef 0014 lea %sp@(20),%sp 4222e: 72ff moveq #-1,%d1 42230: b280 cmpl %d0,%d1 42232: 6700 00d6 beqw 4230a rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 42236: 2079 0005 da04 moveal 5da04 ,%a0 * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 4223c: 45ee ffe8 lea %fp@(-24),%a2 42240: 49f9 0004 2720 lea 42720 ,%a4 rtems_filesystem_root = loc; 42246: 47ee fff8 lea %fp@(-8),%a3 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 4224a: 226e fffc moveal %fp@(-4),%a1 4224e: 2169 001c 0018 movel %a1@(28),%a0@(24) 42254: 2169 0020 001c movel %a1@(32),%a0@(28) 4225a: 2169 0024 0020 movel %a1@(36),%a0@(32) 42260: 2169 0028 0024 movel %a1@(40),%a0@(36) 42266: 2169 002c 0028 movel %a1@(44),%a0@(40) &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 4226c: 4240 clrw %d0 4226e: 3140 0030 movew %d0,%a0@(48) * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 42272: 42a7 clrl %sp@- 42274: 2f0a movel %a2,%sp@- 42276: 42a7 clrl %sp@- 42278: 4878 0001 pea 1 4227c: 4879 0005 c3d2 pea 5c3d2 42282: 4e94 jsr %a4@ rtems_filesystem_root = loc; 42284: 2079 0005 da04 moveal 5da04 ,%a0 4228a: 2152 0018 movel %a2@,%a0@(24) 4228e: 216e ffec 001c movel %fp@(-20),%a0@(28) 42294: 216e fff0 0020 movel %fp@(-16),%a0@(32) 4229a: 216e fff4 0024 movel %fp@(-12),%a0@(36) 422a0: 2153 0028 movel %a3@,%a0@(40) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 422a4: 42a7 clrl %sp@- 422a6: 2f0a movel %a2,%sp@- 422a8: 42a7 clrl %sp@- 422aa: 4878 0001 pea 1 422ae: 4879 0005 c3d2 pea 5c3d2 422b4: 4e94 jsr %a4@ rtems_filesystem_current = loc; 422b6: 2079 0005 da04 moveal 5da04 ,%a0 422bc: 5888 addql #4,%a0 * * 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); 422be: 4fef 0028 lea %sp@(40),%sp /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 422c2: 20d2 movel %a2@,%a0@+ 422c4: 20ee ffec movel %fp@(-20),%a0@+ 422c8: 20ee fff0 movel %fp@(-16),%a0@+ 422cc: 20ee fff4 movel %fp@(-12),%a0@+ 422d0: 2093 movel %a3@,%a0@ * * 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); 422d2: 4878 01ff pea 1ff 422d6: 4879 0005 c3d4 pea 5c3d4 422dc: 4eb9 0004 2988 jsr 42988 if ( status != 0 ) 422e2: 508f addql #8,%sp 422e4: 4a80 tstl %d0 422e6: 6616 bnes 422fe * 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. */ } 422e8: 4cee 1c00 ffdc moveml %fp@(-36),%a2-%a4 422ee: 4e5e unlk %fp 422f0: 4e75 rts /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 422f2: 2f3c abcd 0001 movel #-1412628479,%sp@- <== NOT EXECUTED 422f8: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 422fe: 2f3c abcd 0003 movel #-1412628477,%sp@- <== NOT EXECUTED 42304: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 4230a: 2f3c abcd 0002 movel #-1412628478,%sp@- <== NOT EXECUTED 42310: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED ... 0004b120 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 4b120: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b124: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4b128: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 4b12c: 4e5e unlk %fp <== NOT EXECUTED ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 4b12e: 2050 moveal %a0@,%a0 <== NOT EXECUTED 4b130: b1d1 cmpal %a1@,%a0 <== NOT EXECUTED 4b132: 57c0 seq %d0 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 4b134: 4480 negl %d0 <== NOT EXECUTED 4b136: 4e75 rts 0004255c : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 4255c: 4e56 0000 linkw %fp,#0 42560: 206e 0008 moveal %fp@(8),%a0 42564: 2f02 movel %d2,%sp@- 42566: 226e 000c moveal %fp@(12),%a1 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 4256a: 1210 moveb %a0@,%d1 4256c: 672e beqs 4259c 4256e: 4a89 tstl %a1 42570: 672a beqs 4259c 42572: 4280 clrl %d0 42574: 49c1 extbl %d1 42576: 742f moveq #47,%d2 42578: b481 cmpl %d1,%d2 4257a: 670e beqs 4258a 4257c: 143c 005c moveb #92,%d2 42580: b481 cmpl %d1,%d2 42582: 6706 beqs 4258a pathname++; pathnamelen--; stripped++; } return stripped; } 42584: 241f movel %sp@+,%d2 42586: 4e5e unlk %fp 42588: 4e75 rts int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) { pathname++; pathnamelen--; stripped++; 4258a: 5280 addql #1,%d0 { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 4258c: 1230 0800 moveb %a0@(00000000,%d0:l),%d1 42590: 67f2 beqs 42584 42592: b089 cmpl %a1,%d0 42594: 66de bnes 42574 pathname++; pathnamelen--; stripped++; } return stripped; } 42596: 241f movel %sp@+,%d2 <== NOT EXECUTED 42598: 4e5e unlk %fp <== NOT EXECUTED 4259a: 4e75 rts <== NOT EXECUTED 4259c: 241f movel %sp@+,%d2 <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 4259e: 4280 clrl %d0 <== NOT EXECUTED pathname++; pathnamelen--; stripped++; } return stripped; } 425a0: 4e5e unlk %fp <== NOT EXECUTED 425a2: 4e75 rts 000420b4 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 420b4: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 420b8: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 420bc: 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 ); 420c0: 45f9 0005 01ac lea 501ac ,%a2 <== NOT EXECUTED 420c6: 240e movel %fp,%d2 <== NOT EXECUTED 420c8: 0682 ffff ffec addil #-20,%d2 <== NOT EXECUTED 420ce: 2f03 movel %d3,%sp@- <== NOT EXECUTED 420d0: 4e92 jsr %a2@ <== NOT EXECUTED 420d2: 7201 moveq #1,%d1 <== NOT EXECUTED 420d4: 2e81 movel %d1,%sp@ <== NOT EXECUTED 420d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 420d8: 42a7 clrl %sp@- <== NOT EXECUTED 420da: 2f00 movel %d0,%sp@- <== NOT EXECUTED 420dc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 420de: 4eb9 0004 2720 jsr 42720 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 420e4: 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 ); 420e8: 2800 movel %d0,%d4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 420ea: 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; 420ee: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 420f2: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 420f6: 4a88 tstl %a0 <== NOT EXECUTED 420f8: 6730 beqs 4212a <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 420fa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 420fc: 4e90 jsr %a0@ <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 420fe: 588f addql #4,%sp <== NOT EXECUTED 42100: 4a84 tstl %d4 <== NOT EXECUTED 42102: 674e beqs 42152 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 42104: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 42108: 4a88 tstl %a0 <== NOT EXECUTED 4210a: 6700 0092 beqw 4219e <== NOT EXECUTED 4210e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 42112: 4a88 tstl %a0 <== NOT EXECUTED 42114: 6700 0088 beqw 4219e <== NOT EXECUTED 42118: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4211a: 4e90 jsr %a0@ <== NOT EXECUTED 4211c: 588f addql #4,%sp <== NOT EXECUTED 4211e: 700d moveq #13,%d0 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } 42120: 4cee 0c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a3 <== NOT EXECUTED 42126: 4e5e unlk %fp <== NOT EXECUTED 42128: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 4212a: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 4212e: 4a88 tstl %a0 <== NOT EXECUTED 42130: 6706 beqs 42138 <== NOT EXECUTED 42132: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42134: 4e90 jsr %a0@ <== NOT EXECUTED 42136: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 42138: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4213e: 2040 moveal %d0,%a0 <== NOT EXECUTED 42140: 70ff moveq #-1,%d0 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } 42142: 4cee 0c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a3 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 42148: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } 4214e: 4e5e unlk %fp <== NOT EXECUTED 42150: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 42152: 7202 moveq #2,%d1 <== NOT EXECUTED 42154: b280 cmpl %d0,%d1 <== NOT EXECUTED 42156: 66ac bnes 42104 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 42158: 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; 4215a: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4215e: 2083 movel %d3,%a0@ <== NOT EXECUTED device_info->device_name_length = strlen( name ); 42160: 4e92 jsr %a2@ <== NOT EXECUTED 42162: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 42166: 41eb 004c lea %a3@(76),%a0 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 4216a: 47eb 0050 lea %a3@(80),%a3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 4216e: 588f addql #4,%sp <== NOT EXECUTED 42170: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 42174: 2350 0008 movel %a0@,%a1@(8) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 42178: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; 4217c: 2353 000c movel %a3@,%a1@(12) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 42180: 4a88 tstl %a0 <== NOT EXECUTED 42182: 6726 beqs 421aa <== NOT EXECUTED 42184: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 42188: 4a88 tstl %a0 <== NOT EXECUTED 4218a: 671e beqs 421aa <== NOT EXECUTED 4218c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4218e: 4e90 jsr %a0@ <== NOT EXECUTED 42190: 588f addql #4,%sp <== NOT EXECUTED 42192: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 42194: 4cee 0c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4219a: 4e5e unlk %fp <== NOT EXECUTED 4219c: 4e75 rts <== NOT EXECUTED device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 4219e: 700d moveq #13,%d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 421a0: 4cee 0c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a3 <== NOT EXECUTED 421a6: 4e5e unlk %fp <== NOT EXECUTED 421a8: 4e75 rts <== NOT EXECUTED device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 421aa: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 421ac: 4cee 0c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a3 <== NOT EXECUTED 421b2: 4e5e unlk %fp <== NOT EXECUTED 421b4: 4e75 rts 000482d4 : 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 ) { 482d4: 4e56 fff4 linkw %fp,#-12 482d8: 226e 000c moveal %fp@(12),%a1 482dc: 48d7 040c moveml %d2-%d3/%a2,%sp@ 482e0: 242e 0008 movel %fp@(8),%d2 482e4: 246e 0010 moveal %fp@(16),%a2 rtems_device_major_number major_limit = _IO_Number_of_drivers; 482e8: 2039 0006 5b2e movel 65b2e <_IO_Number_of_drivers>,%d0 if ( rtems_interrupt_is_in_progress() ) 482ee: 2239 0006 5336 movel 65336 <_ISR_Nest_level>,%d1 482f4: 6600 009c bnew 48392 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 482f8: 4a8a tstl %a2 482fa: 6700 00ea beqw 483e6 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 482fe: 2480 movel %d0,%a2@ if ( driver_table == NULL ) 48300: 4a89 tstl %a1 48302: 6700 00e2 beqw 483e6 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 48306: 4a91 tstl %a1@ 48308: 6700 00d4 beqw 483de return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 4830c: b480 cmpl %d0,%d2 4830e: 6476 bccs 48386 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 48310: 2039 0006 529c movel 6529c <_Thread_Dispatch_disable_level>,%d0 48316: 5280 addql #1,%d0 48318: 23c0 0006 529c movel %d0,6529c <_Thread_Dispatch_disable_level> return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 4831e: 4a82 tstl %d2 48320: 667c bnes 4839e static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 48322: 2039 0006 5b2e movel 65b2e <_IO_Number_of_drivers>,%d0 rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 48328: 6700 00fc beqw 48426 4832c: 2239 0006 5b32 movel 65b32 <_IO_Driver_address_table>,%d1 48332: 2041 moveal %d1,%a0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 48334: 4a90 tstl %a0@ 48336: 6700 008e beqw 483c6 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 ) { 4833a: 5282 addql #1,%d2 4833c: 41e8 0018 lea %a0@(24),%a0 48340: b480 cmpl %d0,%d2 48342: 65f0 bcss 48334 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 48344: 2482 movel %d2,%a2@ if ( m != n ) 48346: b480 cmpl %d0,%d2 48348: 6700 00de beqw 48428 4834c: 2602 movel %d2,%d3 4834e: 2002 movel %d2,%d0 48350: 2041 moveal %d1,%a0 48352: e78b lsll #3,%d3 48354: eb88 lsll #5,%d0 48356: 9083 subl %d3,%d0 48358: d1c0 addal %d0,%a0 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 4835a: 20d9 movel %a1@+,%a0@+ 4835c: 20d9 movel %a1@+,%a0@+ 4835e: 20d9 movel %a1@+,%a0@+ 48360: 20d9 movel %a1@+,%a0@+ 48362: 20d9 movel %a1@+,%a0@+ 48364: 2091 movel %a1@,%a0@ _Thread_Enable_dispatch(); 48366: 4eb9 0004 9e78 jsr 49e78 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 4836c: 2d42 0008 movel %d2,%fp@(8) } 48370: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 48376: 42ae 0010 clrl %fp@(16) 4837a: 42ae 000c clrl %fp@(12) } 4837e: 4e5e unlk %fp _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 48380: 4ef9 0005 13e8 jmp 513e8 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 48386: 700a moveq #10,%d0 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48388: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4838e: 4e5e unlk %fp 48390: 4e75 rts rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 48392: 7012 moveq #18,%d0 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48394: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 4839a: 4e5e unlk %fp 4839c: 4e75 rts _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 4839e: 2202 movel %d2,%d1 483a0: 2002 movel %d2,%d0 483a2: e789 lsll #3,%d1 483a4: eb88 lsll #5,%d0 483a6: 2079 0006 5b32 moveal 65b32 <_IO_Driver_address_table>,%a0 483ac: 9081 subl %d1,%d0 483ae: d1c0 addal %d0,%a0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 483b0: 4a90 tstl %a0@ 483b2: 673e beqs 483f2 major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); 483b4: 4eb9 0004 9e78 jsr 49e78 <_Thread_Enable_dispatch> 483ba: 700c moveq #12,%d0 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 483bc: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 483c2: 4e5e unlk %fp 483c4: 4e75 rts static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 483c6: 4aa8 0004 tstl %a0@(4) 483ca: 6700 ff78 beqw 48344 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 ) { 483ce: 5282 addql #1,%d2 483d0: 41e8 0018 lea %a0@(24),%a0 483d4: b480 cmpl %d0,%d2 483d6: 6500 ff5c bcsw 48334 483da: 6000 ff68 braw 48344 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 483de: 4aa9 0004 tstl %a1@(4) 483e2: 6600 ff28 bnew 4830c _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 483e6: 7009 moveq #9,%d0 } 483e8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 483ee: 4e5e unlk %fp 483f0: 4e75 rts static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 483f2: 4aa8 0004 tstl %a0@(4) 483f6: 66bc bnes 483b4 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 483f8: 20d9 movel %a1@+,%a0@+ 483fa: 20d9 movel %a1@+,%a0@+ 483fc: 20d9 movel %a1@+,%a0@+ 483fe: 20d9 movel %a1@+,%a0@+ 48400: 20d9 movel %a1@+,%a0@+ 48402: 2091 movel %a1@,%a0@ if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 48404: 2482 movel %d2,%a2@ } _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); 48406: 4eb9 0004 9e78 jsr 49e78 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 4840c: 2d42 0008 movel %d2,%fp@(8) } 48410: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 48416: 42ae 0010 clrl %fp@(16) 4841a: 42ae 000c clrl %fp@(12) } 4841e: 4e5e unlk %fp _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 48420: 4ef9 0005 13e8 jmp 513e8 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 48426: 4292 clrl %a2@ <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); 48428: 4eb9 0004 9e78 jsr 49e78 <_Thread_Enable_dispatch> 4842e: 7005 moveq #5,%d0 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48430: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 48436: 4e5e unlk %fp 48438: 4e75 rts ... 0004a9fe : */ void rtems_libio_free( rtems_libio_t *iop ) { 4a9fe: 4e56 0000 linkw %fp,#0 4aa02: 2f0a movel %a2,%sp@- rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4aa04: 42a7 clrl %sp@- */ void rtems_libio_free( rtems_libio_t *iop ) { 4aa06: 246e 0008 moveal %fp@(8),%a2 rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4aa0a: 42a7 clrl %sp@- 4aa0c: 2f39 0005 effc movel 5effc ,%sp@- 4aa12: 4eb9 0004 5d2c jsr 45d2c if (iop->sem) 4aa18: 202a 002c movel %a2@(44),%d0 4aa1c: 4fef 000c lea %sp@(12),%sp 4aa20: 6630 bnes 4aa52 rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; 4aa22: 41f9 0005 eff8 lea 5eff8 ,%a0 <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4aa28: 203c ffff feff movel #-257,%d0 <== NOT EXECUTED iop->data1 = rtems_libio_iop_freelist; 4aa2e: 2550 0034 movel %a0@,%a2@(52) <== NOT EXECUTED rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4aa32: 41f9 0005 effc lea 5effc ,%a0 <== NOT EXECUTED 4aa38: 2d50 0008 movel %a0@,%fp@(8) <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4aa3c: c1aa 0014 andl %d0,%a2@(20) <== NOT EXECUTED iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; 4aa40: 23ca 0005 eff8 movel %a2,5eff8 <== NOT EXECUTED rtems_semaphore_release(rtems_libio_semaphore); } 4aa46: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4aa4a: 4e5e unlk %fp <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4aa4c: 4ef9 0004 5e68 jmp 45e68 <== NOT EXECUTED ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); 4aa52: 2f00 movel %d0,%sp@- 4aa54: 4eb9 0004 5c54 jsr 45c54 4aa5a: 588f addql #4,%sp iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; 4aa5c: 41f9 0005 eff8 lea 5eff8 ,%a0 rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4aa62: 203c ffff feff movel #-257,%d0 iop->data1 = rtems_libio_iop_freelist; 4aa68: 2550 0034 movel %a0@,%a2@(52) rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4aa6c: 41f9 0005 effc lea 5effc ,%a0 4aa72: 2d50 0008 movel %a0@,%fp@(8) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4aa76: c1aa 0014 andl %d0,%a2@(20) iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; 4aa7a: 23ca 0005 eff8 movel %a2,5eff8 rtems_semaphore_release(rtems_libio_semaphore); } 4aa80: 246e fffc moveal %fp@(-4),%a2 4aa84: 4e5e unlk %fp iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4aa86: 4ef9 0004 5e68 jmp 45e68 00042814 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 42814: 4e56 0000 linkw %fp,#0 rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 42818: 2039 0005 d8f4 movel 5d8f4 ,%d0 4281e: 674a beqs 4286a { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 42820: 4878 0040 pea 40 42824: 2f00 movel %d0,%sp@- 42826: 4eb9 0004 a59c jsr 4a59c sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 4282c: 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, 4282e: 2040 moveal %d0,%a0 42830: 23c0 0005 eff4 movel %d0,5eff4 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 42836: 6770 beqs 428a8 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++) 42838: 2279 0005 d8f4 moveal 5d8f4 ,%a1 4283e: 7201 moveq #1,%d1 rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 42840: 23c0 0005 eff8 movel %d0,5eff8 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 42846: b289 cmpl %a1,%d1 42848: 641c bccs 42866 4284a: 2040 moveal %d0,%a0 4284c: 41e8 0040 lea %a0@(64),%a0 iop->data1 = iop + 1; 42850: 2148 fff4 movel %a0,%a0@(-12) 42854: 41e8 0040 lea %a0@(64),%a0 42858: 5281 addql #1,%d1 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++) 4285a: b3c1 cmpal %d1,%a1 4285c: 66f2 bnes 42850 4285e: ed89 lsll #6,%d1 42860: 2241 moveal %d1,%a1 42862: 41f1 08c0 lea %a1@(ffffffc0,%d0:l),%a0 iop->data1 = iop + 1; iop->data1 = NULL; 42866: 42a8 0034 clrl %a0@(52) /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 4286a: 4879 0005 effc pea 5effc 42870: 42a7 clrl %sp@- 42872: 4878 0054 pea 54 42876: 4878 0001 pea 1 4287a: 2f3c 4c42 494f movel #1279412559,%sp@- 42880: 4eb9 0004 5a8c jsr 45a8c 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 42886: 4fef 0014 lea %sp@(20),%sp 4288a: 4a80 tstl %d0 4288c: 6612 bnes 428a0 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 4288e: 2279 0005 d8f0 moveal 5d8f0 ,%a1 42894: 4a89 tstl %a1 42896: 6704 beqs 4289c (* rtems_fs_init_helper)(); } 42898: 4e5e unlk %fp /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) (* rtems_fs_init_helper)(); 4289a: 4ed1 jmp %a1@ } 4289c: 4e5e unlk %fp <== NOT EXECUTED 4289e: 4e75 rts <== NOT EXECUTED RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); 428a0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 428a2: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 428a8: 4878 001a pea 1a <== NOT EXECUTED 428ac: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED ... 00068910 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 68910: 4e56 ffd4 linkw %fp,#-44 68914: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 68918: 486e fffc pea %fp@(-4) 6891c: 42a7 clrl %sp@- 6891e: 42a7 clrl %sp@- 68920: 4eb9 0006 a410 jsr 6a410 if (sc != RTEMS_SUCCESSFUL) return sc; 68926: 4fef 000c lea %sp@(12),%sp 6892a: 4a80 tstl %d0 6892c: 6600 00cc bnew 689fa /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 68930: 2479 000a 21cc moveal a21cc ,%a2 68936: b5fc 000a 6bc8 cmpal #682952,%a2 6893c: 6700 00ca beqw 68a08 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 68940: 4878 0048 pea 48 * 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); 68944: 47ee ffe8 lea %fp@(-24),%a3 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 68948: 4879 000a 6bc8 pea a6bc8 * 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); 6894e: 4bf9 0004 774c lea 4774c ,%a5 rtems_filesystem_root = loc; 68954: 49ee fff8 lea %fp@(-8),%a4 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 68958: 4282 clrl %d2 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 6895a: 2f0a movel %a2,%sp@- 6895c: 4eb9 0008 40bc jsr 840bc rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 68962: 2079 000a 6bb0 moveal a6bb0 ,%a0 68968: 2568 001c 0018 movel %a0@(28),%a2@(24) 6896e: 2568 0020 001c movel %a0@(32),%a2@(28) 68974: 2568 0024 0020 movel %a0@(36),%a2@(32) 6897a: 2568 0028 0024 movel %a0@(40),%a2@(36) } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 68980: 24ae fffc movel %fp@(-4),%a2@ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 68984: 2568 002c 0028 movel %a0@(44),%a2@(40) * 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); 6898a: 42a7 clrl %sp@- 6898c: 2f0b movel %a3,%sp@- 6898e: 42a7 clrl %sp@- 68990: 4878 0001 pea 1 68994: 4879 000a 1c08 pea a1c08 6899a: 4e95 jsr %a5@ rtems_filesystem_root = loc; 6899c: 2079 000a 21cc moveal a21cc ,%a0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 689a2: 4fef 0020 lea %sp@(32),%sp * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 689a6: 2153 0018 movel %a3@,%a0@(24) 689aa: 216e ffec 001c movel %fp@(-20),%a0@(28) 689b0: 216e fff0 0020 movel %fp@(-16),%a0@(32) 689b6: 216e fff4 0024 movel %fp@(-12),%a0@(36) 689bc: 2154 0028 movel %a4@,%a0@(40) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 689c0: 42a7 clrl %sp@- 689c2: 2f0b movel %a3,%sp@- 689c4: 42a7 clrl %sp@- 689c6: 4878 0001 pea 1 689ca: 4879 000a 1c08 pea a1c08 689d0: 4e95 jsr %a5@ rtems_filesystem_current = loc; 689d2: 2079 000a 21cc moveal a21cc ,%a0 689d8: 5888 addql #4,%a0 return RTEMS_SUCCESSFUL; 689da: 4fef 0014 lea %sp@(20),%sp */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 689de: 20d3 movel %a3@,%a0@+ 689e0: 20ee ffec movel %fp@(-20),%a0@+ 689e4: 20ee fff0 movel %fp@(-16),%a0@+ 689e8: 20ee fff4 movel %fp@(-12),%a0@+ 689ec: 2094 movel %a4@,%a0@ return RTEMS_SUCCESSFUL; } 689ee: 2002 movel %d2,%d0 689f0: 4cee 3c04 ffd4 moveml %fp@(-44),%d2/%a2-%a5 689f6: 4e5e unlk %fp 689f8: 4e75 rts rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; 689fa: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 689fc: 2002 movel %d2,%d0 <== NOT EXECUTED 689fe: 4cee 3c04 ffd4 moveml %fp@(-44),%d2/%a2-%a5 <== NOT EXECUTED 68a04: 4e5e unlk %fp <== NOT EXECUTED 68a06: 4e75 rts <== NOT EXECUTED 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)); 68a08: 4878 0048 pea 48 68a0c: 4eb9 0004 7e80 jsr 47e80 if (!tmp) 68a12: 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)); 68a14: 2440 moveal %d0,%a2 if (!tmp) 68a16: 4a80 tstl %d0 68a18: 6700 00d6 beqw 68af0 #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); 68a1c: 487a fdda pea %pc@(687f8 ) 68a20: 4879 000a 21cc pea a21cc 68a26: 42a7 clrl %sp@- 68a28: 4eb9 0006 a7f0 jsr 6a7f0 if (sc != RTEMS_SUCCESSFUL) { 68a2e: 4fef 000c lea %sp@(12),%sp #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); 68a32: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) { 68a34: 6600 00c8 bnew 68afe * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 68a38: 23ca 000a 21cc movel %a2,a21cc }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 68a3e: 4878 0048 pea 48 * 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); 68a42: 47ee ffe8 lea %fp@(-24),%a3 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 68a46: 4879 000a 6bc8 pea a6bc8 * 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); 68a4c: 4bf9 0004 774c lea 4774c ,%a5 rtems_filesystem_root = loc; 68a52: 49ee fff8 lea %fp@(-8),%a4 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 68a56: 2f0a movel %a2,%sp@- */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 68a58: 4282 clrl %d2 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 68a5a: 4eb9 0008 40bc jsr 840bc rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 68a60: 2079 000a 6bb0 moveal a6bb0 ,%a0 68a66: 2568 001c 0018 movel %a0@(28),%a2@(24) 68a6c: 2568 0020 001c movel %a0@(32),%a2@(28) 68a72: 2568 0024 0020 movel %a0@(36),%a2@(32) 68a78: 2568 0028 0024 movel %a0@(40),%a2@(36) } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 68a7e: 24ae fffc movel %fp@(-4),%a2@ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 68a82: 2568 002c 0028 movel %a0@(44),%a2@(40) * 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); 68a88: 42a7 clrl %sp@- 68a8a: 2f0b movel %a3,%sp@- 68a8c: 42a7 clrl %sp@- 68a8e: 4878 0001 pea 1 68a92: 4879 000a 1c08 pea a1c08 68a98: 4e95 jsr %a5@ rtems_filesystem_root = loc; 68a9a: 2079 000a 21cc moveal a21cc ,%a0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 68aa0: 4fef 0020 lea %sp@(32),%sp * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 68aa4: 2153 0018 movel %a3@,%a0@(24) 68aa8: 216e ffec 001c movel %fp@(-20),%a0@(28) 68aae: 216e fff0 0020 movel %fp@(-16),%a0@(32) 68ab4: 216e fff4 0024 movel %fp@(-12),%a0@(36) 68aba: 2154 0028 movel %a4@,%a0@(40) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 68abe: 42a7 clrl %sp@- 68ac0: 2f0b movel %a3,%sp@- 68ac2: 42a7 clrl %sp@- 68ac4: 4878 0001 pea 1 68ac8: 4879 000a 1c08 pea a1c08 68ace: 4e95 jsr %a5@ rtems_filesystem_current = loc; 68ad0: 2079 000a 21cc moveal a21cc ,%a0 68ad6: 5888 addql #4,%a0 return RTEMS_SUCCESSFUL; 68ad8: 4fef 0014 lea %sp@(20),%sp */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 68adc: 20d3 movel %a3@,%a0@+ 68ade: 20ee ffec movel %fp@(-20),%a0@+ 68ae2: 20ee fff0 movel %fp@(-16),%a0@+ 68ae6: 20ee fff4 movel %fp@(-12),%a0@+ 68aea: 2094 movel %a4@,%a0@ 68aec: 6000 ff00 braw 689ee 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)); if (!tmp) 68af0: 741a moveq #26,%d2 <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 68af2: 2002 movel %d2,%d0 <== NOT EXECUTED 68af4: 4cee 3c04 ffd4 moveml %fp@(-44),%d2/%a2-%a5 <== NOT EXECUTED 68afa: 4e5e unlk %fp <== NOT EXECUTED 68afc: 4e75 rts <== NOT EXECUTED sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); if (sc != RTEMS_SUCCESSFUL) { /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 68afe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 68b00: 4eb9 0004 7840 jsr 47840 <== NOT EXECUTED return sc; 68b06: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 68b08: 2002 movel %d2,%d0 <== NOT EXECUTED 68b0a: 4cee 3c04 ffd4 moveml %fp@(-44),%d2/%a2-%a5 <== NOT EXECUTED 68b10: 4e5e unlk %fp <== NOT EXECUTED 68b12: 4e75 rts 00068852 : * 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) { 68852: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 68856: 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); 68858: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 6885c: 42a7 clrl %sp@- <== NOT EXECUTED 6885e: 42a7 clrl %sp@- <== NOT EXECUTED 68860: 4eb9 0006 a410 jsr 6a410 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 68866: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 6886a: 4a80 tstl %d0 <== NOT EXECUTED 6886c: 6636 bnes 688a4 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 6886e: 2479 000a 21cc moveal a21cc ,%a2 <== NOT EXECUTED 68874: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 68878: b092 cmpl %a2@,%d0 <== NOT EXECUTED 6887a: 6730 beqs 688ac <== NOT EXECUTED free_user_env(tmp); }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 6887c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 68880: 4879 000a 21cc pea a21cc <== NOT EXECUTED 68886: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 6888a: 4eb9 0006 a928 jsr 6a928 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 68890: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 68894: 4a80 tstl %d0 <== NOT EXECUTED 68896: 674c beqs 688e4 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 68898: 223c 000a 6bc8 movel #682952,%d1 <== NOT EXECUTED 6889e: 23c1 000a 21cc movel %d1,a21cc <== NOT EXECUTED return sc; } 688a4: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 688a8: 4e5e unlk %fp <== NOT EXECUTED 688aa: 4e75 rts <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_current_user_env->task_id==current_task_id) { /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 688ac: 4879 000a 21cc pea a21cc <== NOT EXECUTED 688b2: 42a7 clrl %sp@- <== NOT EXECUTED 688b4: 4eb9 0006 a894 jsr 6a894 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 688ba: 508f addql #8,%sp <== NOT EXECUTED 688bc: 4a80 tstl %d0 <== NOT EXECUTED 688be: 66e4 bnes 688a4 <== NOT EXECUTED free_user_env(tmp); 688c0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 688c2: 4eba ff34 jsr %pc@(687f8 ) <== NOT EXECUTED 688c6: 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, 688c8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 688cc: 4879 000a 21cc pea a21cc <== NOT EXECUTED 688d2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 688d6: 4eb9 0006 a928 jsr 6a928 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 688dc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 688e0: 4a80 tstl %d0 <== NOT EXECUTED 688e2: 66b4 bnes 68898 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 688e4: 487a ff12 pea %pc@(687f8 ) <== NOT EXECUTED 688e8: 4879 000a 21cc pea a21cc <== NOT EXECUTED 688ee: 42a7 clrl %sp@- <== NOT EXECUTED 688f0: 4eb9 0006 a7f0 jsr 6a7f0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 688f6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 688fa: 4a80 tstl %d0 <== NOT EXECUTED 688fc: 669a bnes 68898 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 688fe: 41ee fffc lea %fp@(-4),%a0 <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; return sc; } 68902: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 68906: 4e5e unlk %fp <== NOT EXECUTED sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); if (sc != RTEMS_SUCCESSFUL) goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 68908: 23d0 000a 21cc movel %a0@,a21cc <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; return sc; } 6890e: 4e75 rts 0004a8b4 : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4a8b4: 7006 moveq #6,%d0 */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 4a8b6: 4e56 0000 linkw %fp,#0 4a8ba: 222e 0008 movel %fp@(8),%d1 uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4a8be: c081 andl %d1,%d0 */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 4a8c0: 2f02 movel %d2,%sp@- uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4a8c2: 7406 moveq #6,%d2 4a8c4: b480 cmpl %d0,%d2 4a8c6: 6736 beqs 4a8fe fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 4a8c8: 0801 0001 btst #1,%d1 4a8cc: 6726 beqs 4a8f4 4a8ce: 4280 clrl %d0 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 ) { 4a8d0: 0801 0000 btst #0,%d1 4a8d4: 6704 beqs 4a8da fcntl_flags |= O_NONBLOCK; 4a8d6: 08c0 000e bset #14,%d0 } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 4a8da: 0801 0009 btst #9,%d1 4a8de: 6704 beqs 4a8e4 fcntl_flags |= O_APPEND; 4a8e0: 7408 moveq #8,%d2 4a8e2: 8082 orl %d2,%d0 } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 4a8e4: 0801 000a btst #10,%d1 4a8e8: 6704 beqs 4a8ee fcntl_flags |= O_CREAT; 4a8ea: 08c0 0009 bset #9,%d0 } return fcntl_flags; } 4a8ee: 241f movel %sp@+,%d2 4a8f0: 4e5e unlk %fp 4a8f2: 4e75 rts { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 4a8f4: 2001 movel %d1,%d0 <== NOT EXECUTED 4a8f6: e488 lsrl #2,%d0 <== NOT EXECUTED 4a8f8: 7401 moveq #1,%d2 <== NOT EXECUTED 4a8fa: c082 andl %d2,%d0 <== NOT EXECUTED 4a8fc: 60d2 bras 4a8d0 <== NOT EXECUTED uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4a8fe: 7002 moveq #2,%d0 <== NOT EXECUTED 4a900: 60ce bras 4a8d0 <== NOT EXECUTED 00047f50 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 47f50: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47f54: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47f56: 2f02 movel %d2,%sp@- <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 47f58: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47f5c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47f60: 2f39 000a 1ed0 movel a1ed0 ,%sp@- <== NOT EXECUTED 47f66: 4eb9 0004 dde8 jsr 4dde8 <_Protected_heap_Get_block_size> <== NOT EXECUTED 47f6c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47f70: 4a00 tstb %d0 <== NOT EXECUTED 47f72: 671a beqs 47f8e <== NOT EXECUTED MSBUMP(lifetime_freed, size); 47f74: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 47f78: 4282 clrl %d2 <== NOT EXECUTED 47f7a: d7b9 000a 6bac addl %d3,a6bac <== NOT EXECUTED 47f80: 2039 000a 6ba8 movel a6ba8 ,%d0 <== NOT EXECUTED 47f86: d182 addxl %d2,%d0 <== NOT EXECUTED 47f88: 23c0 000a 6ba8 movel %d0,a6ba8 <== NOT EXECUTED } } 47f8e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 47f92: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 47f96: 4e5e unlk %fp <== NOT EXECUTED 47f98: 4e75 rts 00047f9a : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 47f9a: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47f9e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 47fa2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47fa4: 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 ) 47fa6: 4a80 tstl %d0 <== NOT EXECUTED 47fa8: 674e beqs 47ff8 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 47faa: 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); 47fac: 4282 clrl %d2 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 47fae: 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); 47fb0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47fb2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47fb4: 2f39 000a 1ed0 movel a1ed0 ,%sp@- <== NOT EXECUTED 47fba: 4eb9 0004 dde8 jsr 4dde8 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 47fc0: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 47fc4: 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); 47fc8: 2039 000a 6ba0 movel a6ba0 ,%d0 <== NOT EXECUTED 47fce: d6b9 000a 6ba4 addl a6ba4 ,%d3 <== NOT EXECUTED 47fd4: d580 addxl %d0,%d2 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 47fd6: 2003 movel %d3,%d0 <== NOT EXECUTED 47fd8: 90b9 000a 6bac subl a6bac ,%d0 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 47fde: 23c2 000a 6ba0 movel %d2,a6ba0 <== NOT EXECUTED 47fe4: 23c3 000a 6ba4 movel %d3,a6ba4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 47fea: b0b9 000a 6b9c cmpl a6b9c ,%d0 <== NOT EXECUTED 47ff0: 6306 blss 47ff8 <== NOT EXECUTED s->max_depth = current_depth; 47ff2: 23c0 000a 6b9c movel %d0,a6b9c <== NOT EXECUTED } 47ff8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 47ffc: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 48000: 4e5e unlk %fp <== NOT EXECUTED 48002: 4e75 rts 00048004 : #include #include static void rtems_malloc_statistics_initialize( void ) { 48004: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); } 48008: 4e5e unlk %fp <== NOT EXECUTED static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 4800a: 42b9 000a 6b84 clrl a6b84 <== NOT EXECUTED 48010: 42b9 000a 6b88 clrl a6b88 <== NOT EXECUTED 48016: 42b9 000a 6b8c clrl a6b8c <== NOT EXECUTED 4801c: 42b9 000a 6b90 clrl a6b90 <== NOT EXECUTED 48022: 42b9 000a 6b94 clrl a6b94 <== NOT EXECUTED 48028: 42b9 000a 6b98 clrl a6b98 <== NOT EXECUTED 4802e: 42b9 000a 6b9c clrl a6b9c <== NOT EXECUTED 48034: 42b9 000a 6ba0 clrl a6ba0 <== NOT EXECUTED 4803a: 42b9 000a 6ba4 clrl a6ba4 <== NOT EXECUTED 48040: 42b9 000a 6ba8 clrl a6ba8 <== NOT EXECUTED 48046: 42b9 000a 6bac clrl a6bac <== NOT EXECUTED } 4804c: 4e75 rts <== NOT EXECUTED ... 000501c4 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 501c4: 4e56 0000 linkw %fp,#0 501c8: 2f0a movel %a2,%sp@- 501ca: 246e 0008 moveal %fp@(8),%a2 501ce: 2f02 movel %d2,%sp@- void *return_this; /* * Parameter error checks */ if ( !pointer ) 501d0: 4a8a tstl %a2 501d2: 675e beqs 50232 return EINVAL; *pointer = NULL; 501d4: 4292 clrl %a2@ /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 501d6: 7003 moveq #3,%d0 501d8: b0b9 0006 5424 cmpl 65424 <_System_state_Current>,%d0 501de: 6748 beqs 50228 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 501e0: 4eb9 0004 41d2 jsr 441d2 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 501e6: 42a7 clrl %sp@- 501e8: 2f2e 000c movel %fp@(12),%sp@- 501ec: 2f2e 0010 movel %fp@(16),%sp@- 501f0: 2f39 0006 3980 movel 63980 ,%sp@- 501f6: 4eb9 0004 97e0 jsr 497e0 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 501fc: 4fef 0010 lea %sp@(16),%sp 50200: 2400 movel %d0,%d2 50202: 673c beqs 50240 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 50204: 2079 0006 4026 moveal 64026 ,%a0 5020a: 4a88 tstl %a0 5020c: 670a beqs 50218 (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 5020e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50210: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 50214: 4e90 jsr %a0@ <== NOT EXECUTED 50216: 588f addql #4,%sp <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 50218: 2482 movel %d2,%a2@ return 0; } 5021a: 242e fff8 movel %fp@(-8),%d2 */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 5021e: 4280 clrl %d0 return 0; } 50220: 246e fffc moveal %fp@(-4),%a2 50224: 4e5e unlk %fp 50226: 4e75 rts *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 50228: 4eb9 0004 4178 jsr 44178 5022e: 4a00 tstb %d0 50230: 66ae bnes 501e0 (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; } 50232: 242e fff8 movel %fp@(-8),%d2 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 50236: 7016 moveq #22,%d0 } 50238: 246e fffc moveal %fp@(-4),%a2 5023c: 4e5e unlk %fp 5023e: 4e75 rts 50240: 242e fff8 movel %fp@(-8),%d2 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 50244: 700c moveq #12,%d0 (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; } 50246: 246e fffc moveal %fp@(-4),%a2 5024a: 4e5e unlk %fp 5024c: 4e75 rts ... 000476f4 : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { 476f4: 4e56 0000 linkw %fp,#0 476f8: 2f0a movel %a2,%sp@- 476fa: 246e 0010 moveal %fp@(16),%a2 476fe: 2f02 movel %d2,%sp@- int i; /* * Validate parameters and look up information structure. */ if ( !info ) 47700: 4a8a tstl %a2 47702: 6766 beqs 4776a return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47704: 2f2e 000c movel %fp@(12),%sp@- 47708: 2f2e 0008 movel %fp@(8),%sp@- 4770c: 4eb9 0004 9300 jsr 49300 <_Objects_Get_information> if ( !obj_info ) 47712: 508f addql #8,%sp * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47714: 2040 moveal %d0,%a0 if ( !obj_info ) 47716: 4a80 tstl %d0 47718: 675e beqs 47778 return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 4771a: 24a8 0006 movel %a0@(6),%a2@ info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 4771e: 4282 clrl %d2 /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; 47720: 2568 000a 0004 movel %a0@(10),%a2@(4) info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 47726: 3428 000e movew %a0@(14),%d2 /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; 4772a: 1568 0010 000c moveb %a0@(16),%a2@(12) info->maximum = obj_info->maximum; 47730: 2542 0008 movel %d2,%a2@(8) for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47734: 6750 beqs 47786 47736: 2068 0018 moveal %a0@(24),%a0 4773a: 7201 moveq #1,%d1 4773c: 7001 moveq #1,%d0 4773e: 93c9 subal %a1,%a1 47740: 5280 addql #1,%d0 if ( !obj_info->local_table[i] ) 47742: 4ab0 1c00 tstl %a0@(00000000,%d1:l:4) 47746: 6718 beqs 47760 info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47748: 2200 movel %d0,%d1 4774a: b082 cmpl %d2,%d0 4774c: 63f2 blss 47740 if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 4774e: 2549 000e movel %a1,%a2@(14) 47752: 4280 clrl %d0 return RTEMS_SUCCESSFUL; } 47754: 242e fff8 movel %fp@(-8),%d2 47758: 246e fffc moveal %fp@(-4),%a2 4775c: 4e5e unlk %fp 4775e: 4e75 rts info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) if ( !obj_info->local_table[i] ) unallocated++; 47760: 5289 addql #1,%a1 info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47762: 2200 movel %d0,%d1 47764: b082 cmpl %d2,%d0 47766: 63d8 blss 47740 47768: 60e4 bras 4774e unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 4776a: 242e fff8 movel %fp@(-8),%d2 int i; /* * Validate parameters and look up information structure. */ if ( !info ) 4776e: 7009 moveq #9,%d0 unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47770: 246e fffc moveal %fp@(-4),%a2 47774: 4e5e unlk %fp 47776: 4e75 rts 47778: 242e fff8 movel %fp@(-8),%d2 */ if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info ) 4777c: 700a moveq #10,%d0 unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 4777e: 246e fffc moveal %fp@(-4),%a2 47782: 4e5e unlk %fp 47784: 4e75 rts info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47786: 93c9 subal %a1,%a1 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 47788: 4280 clrl %d0 <== NOT EXECUTED 4778a: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED 4778e: 60c4 bras 47754 <== NOT EXECUTED 00042526 : void rtems_panic( const char *printf_format, ... ) { 42526: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 4252a: 486e 000c pea %fp@(12) <== NOT EXECUTED 4252e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42532: 2f3c 2000 0000 movel #536870912,%sp@- <== NOT EXECUTED 42538: 4eba fdf6 jsr %pc@(42330 ) <== NOT EXECUTED 4253c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED va_end(arglist); } 42540: 4e5e unlk %fp <== NOT EXECUTED 42542: 4e75 rts 0004c82e : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 4c82e: 4e56 0000 linkw %fp,#0 if (!rtems_pipe_configured) 4c832: 4a39 0005 df84 tstb 5df84 4c838: 6708 beqs 4c842 return; if (rtems_pipe_semaphore) 4c83a: 4ab9 0005 e900 tstl 5e900 <== NOT EXECUTED 4c840: 6704 beqs 4c846 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } 4c842: 4e5e unlk %fp 4c844: 4e75 rts if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( 4c846: 4879 0005 e900 pea 5e900 <== NOT EXECUTED 4c84c: 42a7 clrl %sp@- <== NOT EXECUTED 4c84e: 4878 0054 pea 54 <== NOT EXECUTED 4c852: 4878 0001 pea 1 <== NOT EXECUTED 4c856: 2f3c 5049 5045 movel #1346981957,%sp@- <== NOT EXECUTED 4c85c: 4eb9 0004 5a8c jsr 45a8c <== 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) 4c862: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4c866: 4a80 tstl %d0 <== NOT EXECUTED 4c868: 6610 bnes 4c87a <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 4c86a: 4eb9 0004 55fc jsr 455fc <== NOT EXECUTED rtems_pipe_no = now; } 4c870: 4e5e unlk %fp <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; 4c872: 33c0 0005 e908 movew %d0,5e908 <== NOT EXECUTED } 4c878: 4e75 rts <== NOT EXECUTED sc = rtems_semaphore_create( rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 4c87a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c87c: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 0007ba1c : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 7ba1c: 4e56 ffec linkw %fp,#-20 7ba20: 48d7 040c moveml %d2-%d3/%a2,%sp@ 7ba24: 486e fffc pea %fp@(-4) 7ba28: 242e 0008 movel %fp@(8),%d2 7ba2c: 2f02 movel %d2,%sp@- 7ba2e: 4879 000a 777c pea a777c <_Rate_monotonic_Information> 7ba34: 4eb9 0004 daf8 jsr 4daf8 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 7ba3a: 4fef 000c lea %sp@(12),%sp 7ba3e: 2440 moveal %d0,%a2 7ba40: 4aae fffc tstl %fp@(-4) 7ba44: 661e bnes 7ba64 case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 7ba46: 2039 000a 6d92 movel a6d92 <_Thread_Executing>,%d0 7ba4c: b0aa 0040 cmpl %a2@(64),%d0 7ba50: 671e beqs 7ba70 _Thread_Enable_dispatch(); 7ba52: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> 7ba58: 7017 moveq #23,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 7ba5a: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 7ba60: 4e5e unlk %fp 7ba62: 4e75 rts the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 7ba64: 7004 moveq #4,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 7ba66: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 7ba6c: 4e5e unlk %fp 7ba6e: 4e75 rts if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 7ba70: 4aae 000c tstl %fp@(12) 7ba74: 6700 00ce beqw 7bb44 } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 7ba78: 203c 0000 0700 movel #1792,%d0 7ba7e: 40c3 movew %sr,%d3 7ba80: 8083 orl %d3,%d0 7ba82: 46c0 movew %d0,%sr switch ( the_period->state ) { 7ba84: 202a 0038 movel %a2@(56),%d0 7ba88: 7202 moveq #2,%d1 7ba8a: b280 cmpl %d0,%d1 7ba8c: 6700 00dc beqw 7bb6a 7ba90: 123c 0004 moveb #4,%d1 7ba94: b280 cmpl %d0,%d1 7ba96: 6762 beqs 7bafa 7ba98: 4a80 tstl %d0 7ba9a: 66c8 bnes 7ba64 case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 7ba9c: 46c3 movew %d3,%sr /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 7ba9e: 2f0a movel %a2,%sp@- 7baa0: 2d40 fff8 movel %d0,%fp@(-8) 7baa4: 4eb9 0007 b7d4 jsr 7b7d4 <_Rate_monotonic_Initiate_statistics> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 7baaa: 223c 0007 bc08 movel #506888,%d1 the_watchdog->id = id; 7bab0: 2542 0030 movel %d2,%a2@(48) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 7bab4: 242e 000c movel %fp@(12),%d2 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 7bab8: 2541 002c movel %d1,%a2@(44) the_period->state = RATE_MONOTONIC_ACTIVE; 7babc: 7202 moveq #2,%d1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 7babe: 2542 001c movel %d2,%a2@(28) 7bac2: 2541 0038 movel %d1,%a2@(56) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 7bac6: 42aa 0018 clrl %a2@(24) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 7baca: 42aa 0034 clrl %a2@(52) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 7bace: 2542 003c movel %d2,%a2@(60) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 7bad2: 486a 0010 pea %a2@(16) 7bad6: 4879 000a 6db0 pea a6db0 <_Watchdog_Ticks_chain> 7badc: 4eb9 0004 f5c8 jsr 4f5c8 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 7bae2: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 7bae8: 202e fff8 movel %fp@(-8),%d0 7baec: 4fef 000c lea %sp@(12),%sp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 7baf0: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 7baf6: 4e5e unlk %fp 7baf8: 4e75 rts case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 7bafa: 2f0a movel %a2,%sp@- 7bafc: 4eb9 0007 b902 jsr 7b902 <_Rate_monotonic_Update_statistics> _ISR_Enable( level ); 7bb02: 46c3 movew %d3,%sr the_period->state = RATE_MONOTONIC_ACTIVE; 7bb04: 7202 moveq #2,%d1 the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 7bb06: 7006 moveq #6,%d0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 7bb08: 242e 000c movel %fp@(12),%d2 */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 7bb0c: 2541 0038 movel %d1,%a2@(56) 7bb10: 2542 001c movel %d2,%a2@(28) the_period->next_length = length; 7bb14: 2542 003c movel %d2,%a2@(60) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 7bb18: 486a 0010 pea %a2@(16) 7bb1c: 4879 000a 6db0 pea a6db0 <_Watchdog_Ticks_chain> 7bb22: 2d40 fff8 movel %d0,%fp@(-8) 7bb26: 4eb9 0004 f5c8 jsr 4f5c8 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 7bb2c: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> return RTEMS_TIMEOUT; 7bb32: 202e fff8 movel %fp@(-8),%d0 7bb36: 4fef 000c lea %sp@(12),%sp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 7bb3a: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 7bb40: 4e5e unlk %fp 7bb42: 4e75 rts _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 7bb44: 202a 0038 movel %a2@(56),%d0 7bb48: 7204 moveq #4,%d1 7bb4a: b280 cmpl %d0,%d1 7bb4c: 6400 009c bccw 7bbea 7bb50: 4280 clrl %d0 <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); 7bb52: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 7bb56: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> <== NOT EXECUTED return( return_value ); 7bb5c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 7bb60: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 7bb66: 4e5e unlk %fp 7bb68: 4e75 rts case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 7bb6a: 2f0a movel %a2,%sp@- 7bb6c: 4eb9 0007 b902 jsr 7b902 <_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; 7bb72: 242e 000c movel %fp@(12),%d2 /* * 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; 7bb76: 7001 moveq #1,%d0 the_period->next_length = length; 7bb78: 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; 7bb7c: 2540 0038 movel %d0,%a2@(56) the_period->next_length = length; _ISR_Enable( level ); 7bb80: 46c3 movew %d3,%sr _Thread_Executing->Wait.id = the_period->Object.id; 7bb82: 2079 000a 6d92 moveal a6d92 <_Thread_Executing>,%a0 7bb88: 216a 0008 0020 movel %a2@(8),%a0@(32) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 7bb8e: 4878 4000 pea 4000 7bb92: 2f08 movel %a0,%sp@- 7bb94: 4eb9 0004 ed8c jsr 4ed8c <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 7bb9a: 203c 0000 0700 movel #1792,%d0 7bba0: 40c1 movew %sr,%d1 7bba2: 8081 orl %d1,%d0 7bba4: 46c0 movew %d0,%sr local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; 7bba6: 7402 moveq #2,%d2 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; 7bba8: 202a 0038 movel %a2@(56),%d0 the_period->state = RATE_MONOTONIC_ACTIVE; 7bbac: 2542 0038 movel %d2,%a2@(56) _ISR_Enable( level ); 7bbb0: 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 ) 7bbb2: 7203 moveq #3,%d1 7bbb4: 4fef 000c lea %sp@(12),%sp 7bbb8: b280 cmpl %d0,%d1 7bbba: 6712 beqs 7bbce _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 7bbbc: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> 7bbc2: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 7bbc4: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 7bbca: 4e5e unlk %fp 7bbcc: 4e75 rts /* * 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 ) _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 7bbce: 4878 4000 pea 4000 7bbd2: 2f39 000a 6d92 movel a6d92 <_Thread_Executing>,%sp@- 7bbd8: 4eb9 0004 e064 jsr 4e064 <_Thread_Clear_state> 7bbde: 508f addql #8,%sp _Thread_Enable_dispatch(); 7bbe0: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> 7bbe6: 4280 clrl %d0 7bbe8: 60da bras 7bbc4 _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 7bbea: 41f9 000a 0d0e lea a0d0e ,%a0 7bbf0: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); 7bbf4: 2d40 fff8 movel %d0,%fp@(-8) 7bbf8: 4eb9 0004 e438 jsr 4e438 <_Thread_Enable_dispatch> return( return_value ); 7bbfe: 202e fff8 movel %fp@(-8),%d0 7bc02: 6000 ff5c braw 7bb60 ... 0006a084 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 6a084: 4e56 ff78 linkw %fp,#-136 6a088: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 6a08c: 262e 0008 movel %fp@(8),%d3 6a090: 246e 000c moveal %fp@(12),%a2 rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 6a094: 4a8a tstl %a2 6a096: 6700 0082 beqw 6a11a return; (*print)( context, "Period information by period\n" ); 6a09a: 4879 0009 d910 pea 9d910 <_TOD_Days_per_month+0x68> 6a0a0: 2f03 movel %d3,%sp@- 6a0a2: 4e92 jsr %a2@ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); 6a0a4: 4879 0009 d92e pea 9d92e <_TOD_Days_per_month+0x86> 6a0aa: 2f03 movel %d3,%sp@- 6a0ac: 4e92 jsr %a2@ (*print)( context, "--- Wall times are in seconds ---\n" ); 6a0ae: 4879 0009 d950 pea 9d950 <_TOD_Days_per_month+0xa8> 6a0b4: 2f03 movel %d3,%sp@- 6a0b6: 4e92 jsr %a2@ Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 6a0b8: 4879 0009 d973 pea 9d973 <_TOD_Days_per_month+0xcb> 6a0be: 2f03 movel %d3,%sp@- 6a0c0: 4e92 jsr %a2@ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " 6a0c2: 4fef 001c lea %sp@(28),%sp 6a0c6: 2ebc 0009 d9be movel #645566,%sp@ 6a0cc: 2f03 movel %d3,%sp@- 6a0ce: 4e92 jsr %a2@ /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 6a0d0: 2439 000a 7782 movel a7782 <_Rate_monotonic_Information+0x6>,%d2 6a0d6: 508f addql #8,%sp 6a0d8: b4b9 000a 7786 cmpl a7786 <_Rate_monotonic_Information+0xa>,%d2 6a0de: 623a bhis 6a11a 6a0e0: 280e movel %fp,%d4 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 6a0e2: 2a0e movel %fp,%d5 6a0e4: 0684 ffff ffa2 addil #-94,%d4 6a0ea: 47f9 0007 b64c lea 7b64c ,%a3 status = rtems_rate_monotonic_get_statistics( id, &the_stats ); if ( status != RTEMS_SUCCESSFUL ) continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 6a0f0: 4bf9 0007 b70c lea 7b70c ,%a5 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 6a0f6: 5b85 subql #5,%d5 6a0f8: 49f9 0004 be3c lea 4be3c ,%a4 struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); 6a0fe: 2e3c 0006 b8d4 movel #440532,%d7 * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 6a104: 2f04 movel %d4,%sp@- 6a106: 2f02 movel %d2,%sp@- 6a108: 4e93 jsr %a3@ if ( status != RTEMS_SUCCESSFUL ) 6a10a: 508f addql #8,%sp 6a10c: 4a80 tstl %d0 6a10e: 6714 beqs 6a124 * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 6a110: 5282 addql #1,%d2 /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 6a112: b4b9 000a 7786 cmpl a7786 <_Rate_monotonic_Information+0xa>,%d2 6a118: 63ea blss 6a104 the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 6a11a: 4cee 3cfc ff78 moveml %fp@(-136),%d2-%d7/%a2-%a5 6a120: 4e5e unlk %fp 6a122: 4e75 rts status = rtems_rate_monotonic_get_statistics( id, &the_stats ); if ( status != RTEMS_SUCCESSFUL ) continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 6a124: 486e ffda pea %fp@(-38) 6a128: 2f02 movel %d2,%sp@- 6a12a: 4e95 jsr %a5@ #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 6a12c: 2f05 movel %d5,%sp@- 6a12e: 4878 0005 pea 5 6a132: 2f2e ffda movel %fp@(-38),%sp@- 6a136: 4e94 jsr %a4@ /* * Print part of report line that is not dependent on granularity */ (*print)( context, 6a138: 2f2e ffa6 movel %fp@(-90),%sp@- 6a13c: 2f2e ffa2 movel %fp@(-94),%sp@- 6a140: 2f05 movel %d5,%sp@- 6a142: 2f02 movel %d2,%sp@- 6a144: 4879 0009 da0a pea 9da0a <_TOD_Days_per_month+0x162> 6a14a: 2f03 movel %d3,%sp@- 6a14c: 4e92 jsr %a2@ ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 6a14e: 202e ffa2 movel %fp@(-94),%d0 6a152: 4fef 002c lea %sp@(44),%sp 6a156: 6618 bnes 6a170 (*print)( context, "\n" ); 6a158: 4879 0009 f201 pea 9f201 <__FUNCTION__.5956+0x5d> * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 6a15e: 5282 addql #1,%d2 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 6a160: 2f03 movel %d3,%sp@- 6a162: 4e92 jsr %a2@ continue; 6a164: 508f addql #8,%sp /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 6a166: b4b9 000a 7786 cmpl a7786 <_Rate_monotonic_Information+0xa>,%d2 6a16c: 6396 blss 6a104 6a16e: 60aa bras 6a11a <== NOT EXECUTED struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); 6a170: 486e fff2 pea %fp@(-14) 6a174: 2047 moveal %d7,%a0 * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 6a176: 5282 addql #1,%d2 struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); 6a178: 2f00 movel %d0,%sp@- 6a17a: 486e ffba pea %fp@(-70) 6a17e: 4e90 jsr %a0@ (*print)( context, 6a180: 202e fff6 movel %fp@(-10),%d0 6a184: 223c 0000 03e8 movel #1000,%d1 6a18a: 4c41 0800 remsl %d1,%d0,%d0 6a18e: 2c2e ffb6 movel %fp@(-74),%d6 6a192: 2f00 movel %d0,%sp@- 6a194: 2001 movel %d1,%d0 6a196: 2f2e fff2 movel %fp@(-14),%sp@- 6a19a: 4c40 6806 remsl %d0,%d6,%d6 6a19e: 202e ffae movel %fp@(-82),%d0 6a1a2: 2246 moveal %d6,%a1 6a1a4: 223c 0000 03e8 movel #1000,%d1 6a1aa: 2f09 movel %a1,%sp@- 6a1ac: 2f2e ffb2 movel %fp@(-78),%sp@- 6a1b0: 4c41 0800 remsl %d1,%d0,%d0 struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); (*print)( context, 6a1b4: 2c3c 0000 03e8 movel #1000,%d6 struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); (*print)( context, 6a1ba: 2f00 movel %d0,%sp@- 6a1bc: 2f2e ffaa movel %fp@(-86),%sp@- 6a1c0: 4879 0009 da21 pea 9da21 <_TOD_Days_per_month+0x179> 6a1c6: 2f03 movel %d3,%sp@- 6a1c8: 4e92 jsr %a2@ struct timespec wall_average; struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); 6a1ca: 4fef 002c lea %sp@(44),%sp 6a1ce: 2047 moveal %d7,%a0 6a1d0: 486e fff2 pea %fp@(-14) 6a1d4: 2f2e ffa2 movel %fp@(-94),%sp@- 6a1d8: 486e ffd2 pea %fp@(-46) 6a1dc: 4e90 jsr %a0@ (*print)( context, 6a1de: 202e fff6 movel %fp@(-10),%d0 6a1e2: 4c46 0800 remsl %d6,%d0,%d0 6a1e6: 222e ffce movel %fp@(-50),%d1 6a1ea: 2f00 movel %d0,%sp@- 6a1ec: 2f2e fff2 movel %fp@(-14),%sp@- 6a1f0: 4c46 1801 remsl %d6,%d1,%d1 6a1f4: 202e ffc6 movel %fp@(-58),%d0 6a1f8: 2241 moveal %d1,%a1 6a1fa: 2f09 movel %a1,%sp@- 6a1fc: 2f2e ffca movel %fp@(-54),%sp@- 6a200: 4c46 0800 remsl %d6,%d0,%d0 6a204: 2f00 movel %d0,%sp@- 6a206: 2f2e ffc2 movel %fp@(-62),%sp@- 6a20a: 4879 0009 da40 pea 9da40 <_TOD_Days_per_month+0x198> 6a210: 2f03 movel %d3,%sp@- 6a212: 4e92 jsr %a2@ 6a214: 4fef 002c lea %sp@(44),%sp /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 6a218: b4b9 000a 7786 cmpl a7786 <_Rate_monotonic_Information+0xa>,%d2 6a21e: 6300 fee4 blsw 6a104 6a222: 6000 fef6 braw 6a11a <== NOT EXECUTED 0005725c : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 5725c: 4e56 fffc linkw %fp,#-4 57260: 2f03 movel %d3,%sp@- 57262: 262e 0010 movel %fp@(16),%d3 57266: 2f02 movel %d2,%sp@- 57268: 242e 000c movel %fp@(12),%d2 Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) 5726c: 6700 0092 beqw 57300 return RTEMS_INVALID_ADDRESS; if ( !size ) 57270: 4a83 tstl %d3 57272: 6700 008c beqw 57300 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 57276: 2f39 0007 e2fa movel 7e2fa <_RTEMS_Allocator_Mutex>,%sp@- 5727c: 4eb9 0005 96d8 jsr 596d8 <_API_Mutex_Lock> 57282: 486e fffc pea %fp@(-4) 57286: 2f2e 0008 movel %fp@(8),%sp@- 5728a: 4879 0007 e146 pea 7e146 <_Region_Information> 57290: 4eb9 0005 b200 jsr 5b200 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 57296: 222e fffc movel %fp@(-4),%d1 5729a: 4fef 0010 lea %sp@(16),%sp 5729e: 6636 bnes 572d6 case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 572a0: 2f03 movel %d3,%sp@- 572a2: 2040 moveal %d0,%a0 572a4: 2f02 movel %d2,%sp@- 572a6: 4868 0068 pea %a0@(104) 572aa: 4eb9 0005 ac3c jsr 5ac3c <_Heap_Size_of_alloc_area> 572b0: 4fef 000c lea %sp@(12),%sp 572b4: 4a00 tstb %d0 572b6: 6624 bnes 572dc case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 572b8: 2f39 0007 e2fa movel 7e2fa <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 572be: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 572c0: 4eb9 0005 9738 jsr 59738 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 572c6: 588f addql #4,%sp <== NOT EXECUTED } 572c8: 2002 movel %d2,%d0 572ca: 242e fff4 movel %fp@(-12),%d2 572ce: 262e fff8 movel %fp@(-8),%d3 572d2: 4e5e unlk %fp 572d4: 4e75 rts return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 572d6: 7001 moveq #1,%d0 572d8: b081 cmpl %d1,%d0 572da: 6712 beqs 572ee case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 572dc: 2f39 0007 e2fa movel 7e2fa <_RTEMS_Allocator_Mutex>,%sp@- the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 572e2: 4282 clrl %d2 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 572e4: 4eb9 0005 9738 jsr 59738 <_API_Mutex_Unlock> return return_status; 572ea: 588f addql #4,%sp 572ec: 60da bras 572c8 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 572ee: 2f39 0007 e2fa movel 7e2fa <_RTEMS_Allocator_Mutex>,%sp@- return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 572f4: 7404 moveq #4,%d2 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 572f6: 4eb9 0005 9738 jsr 59738 <_API_Mutex_Unlock> return return_status; 572fc: 588f addql #4,%sp 572fe: 60c8 bras 572c8 57300: 7409 moveq #9,%d2 } 57302: 2002 movel %d2,%d0 57304: 242e fff4 movel %fp@(-12),%d2 57308: 262e fff8 movel %fp@(-8),%d3 5730c: 4e5e unlk %fp 5730e: 4e75 rts 00045b7c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 45b7c: 4e56 0000 linkw %fp,#0 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 45b80: 2279 000a 6d92 moveal a6d92 <_Thread_Executing>,%a1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 45b86: 2069 00c2 moveal %a1@(194),%a0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 45b8a: 2f02 movel %d2,%sp@- ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 45b8c: b1ce cmpal %fp,%a0 45b8e: 6354 blss 45be4 45b90: 4202 clrb %d2 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 45b92: 4ab9 000a 3c10 tstl a3c10 45b98: 662a bnes 45bc4 45b9a: 7001 moveq #1,%d0 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 45b9c: 4a02 tstb %d2 45b9e: 6704 beqs 45ba4 45ba0: 4a00 tstb %d0 45ba2: 664e bnes 45bf2 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 45ba4: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 45baa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45bac: 2f39 000a 6d92 movel a6d92 <_Thread_Executing>,%sp@- <== NOT EXECUTED 45bb2: 4eb9 0004 5acc jsr 45acc <== NOT EXECUTED return true; } 45bb8: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; 45bbc: 508f addql #8,%sp <== NOT EXECUTED } 45bbe: 4e5e unlk %fp <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 45bc0: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } 45bc2: 4e75 rts <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { pattern_ok = (!memcmp( 45bc4: 4878 0010 pea 10 45bc8: 4879 000a 6b50 pea a6b50 45bce: 4868 0008 pea %a0@(8) 45bd2: 4eb9 0008 4044 jsr 84044 45bd8: 4fef 000c lea %sp@(12),%sp 45bdc: 4a80 tstl %d0 45bde: 57c0 seq %d0 45be0: 4480 negl %d0 45be2: 60b8 bras 45b9c } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 45be4: 2008 movel %a0,%d0 45be6: d0a9 00be addl %a1@(190),%d0 45bea: b08e cmpl %fp,%d0 45bec: 54c2 scc %d2 45bee: 4482 negl %d2 45bf0: 60a0 bras 45b92 /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; } 45bf2: 242e fffc movel %fp@(-4),%d2 45bf6: 4e5e unlk %fp } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 45bf8: 4200 clrb %d0 /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; } 45bfa: 4e75 rts 00045ab4 : void rtems_stack_checker_report_usage( void ) { 45ab4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 45ab8: 4879 0004 8a8c pea 48a8c <== NOT EXECUTED 45abe: 42a7 clrl %sp@- <== NOT EXECUTED 45ac0: 4eb9 0004 5a52 jsr 45a52 <== NOT EXECUTED 45ac6: 508f addql #8,%sp <== NOT EXECUTED } 45ac8: 4e5e unlk %fp <== NOT EXECUTED 45aca: 4e75 rts 00045a52 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 45a52: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45a56: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45a58: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 45a5c: 2f02 movel %d2,%sp@- <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); 45a5e: 4879 0009 9659 pea 99659 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 45a64: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED print_context = context; print_handler = print; 45a68: 23ca 000a 3c18 movel %a2,a3c18 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 45a6e: 2f02 movel %d2,%sp@- <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 45a70: 23c2 000a 3c14 movel %d2,a3c14 <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 45a76: 4e92 jsr %a2@ <== NOT EXECUTED (*print)( context, 45a78: 4879 0009 9670 pea 99670 <== NOT EXECUTED 45a7e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45a80: 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 ); 45a82: 4879 0004 58ca pea 458ca <== NOT EXECUTED 45a88: 4eb9 0004 d4fc jsr 4d4fc <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 45a8e: 4878 ffff pea ffffffff <== NOT EXECUTED 45a92: 4eb9 0004 58ca jsr 458ca <== NOT EXECUTED print_context = NULL; print_handler = NULL; } 45a98: 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; 45a9c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED } 45aa0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 45aa4: 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; 45aa6: 42b9 000a 3c14 clrl a3c14 <== NOT EXECUTED print_handler = NULL; 45aac: 42b9 000a 3c18 clrl a3c18 <== NOT EXECUTED } 45ab2: 4e75 rts 00045bfc : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 45bfc: 4e56 0000 linkw %fp,#0 45c00: 2f0a movel %a2,%sp@- 45c02: 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; 45c06: 222a 00c2 movel %a2@(194),%d1 45c0a: 5081 addql #8,%d1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 45c0c: 202a 00c2 movel %a2@(194),%d0 45c10: b08e cmpl %fp,%d0 45c12: 6208 bhis 45c1c void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; 45c14: d0aa 00be addl %a2@(190),%d0 45c18: b08e cmpl %fp,%d0 45c1a: 6436 bccs 45c52 /* * 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, 45c1c: 4878 0010 pea 10 <== NOT EXECUTED 45c20: 4879 000a 6b50 pea a6b50 <== NOT EXECUTED 45c26: 2f01 movel %d1,%sp@- <== NOT EXECUTED 45c28: 4eb9 0008 4044 jsr 84044 <== NOT EXECUTED 45c2e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 45c32: 4a80 tstl %d0 <== NOT EXECUTED 45c34: 57c0 seq %d0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 45c36: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 45c3a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED /* * 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, 45c3e: 4480 negl %d0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 45c40: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 45c46: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 45c4a: 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 ); 45c4c: 4ef9 0004 5acc jmp 45acc <== NOT EXECUTED /* * 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, 45c52: 4878 0010 pea 10 45c56: 4879 000a 6b50 pea a6b50 45c5c: 2f01 movel %d1,%sp@- 45c5e: 4eb9 0008 4044 jsr 84044 45c64: 4fef 000c lea %sp@(12),%sp (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 45c68: 4a80 tstl %d0 45c6a: 671c beqs 45c88 Stack_check_report_blown_task( running, pattern_ok ); 45c6c: 2d4a 0008 movel %a2,%fp@(8) } } 45c70: 246e fffc moveal %fp@(-4),%a2 sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 45c74: 4200 clrb %d0 Stack_check_report_blown_task( running, pattern_ok ); 45c76: 0280 0000 00ff andil #255,%d0 45c7c: 2d40 000c movel %d0,%fp@(12) } } 45c80: 4e5e unlk %fp 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 ); 45c82: 4ef9 0004 5acc jmp 45acc } } 45c88: 246e fffc moveal %fp@(-4),%a2 45c8c: 4e5e unlk %fp 45c8e: 4e75 rts 0004d524 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4d524: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4d528: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 4d52c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4d530: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4d534: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4d538: 4a8a tstl %a2 <== NOT EXECUTED 4d53a: 677a beqs 4d5b6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; 4d53c: 49f9 0005 0ad0 lea 50ad0 <__errno>,%a4 <== NOT EXECUTED 4d542: 4e94 jsr %a4@ <== NOT EXECUTED *n = 0; 4d544: 4281 clrl %d1 <== NOT EXECUTED char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4d546: 2040 moveal %d0,%a0 <== NOT EXECUTED *n = 0; 4d548: 4280 clrl %d0 <== NOT EXECUTED char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4d54a: 4290 clrl %a0@ <== NOT EXECUTED *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4d54c: 486e fffc pea %fp@(-4) <== NOT EXECUTED if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 4d550: 2480 movel %d0,%a2@ <== NOT EXECUTED 4d552: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4d556: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4d558: 4eb9 0005 3524 jsr 53524 <== 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 ) 4d55e: 508f addql #8,%sp <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4d560: 2600 movel %d0,%d3 <== NOT EXECUTED 4d562: 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 ) 4d564: 4a8b tstl %a3 <== NOT EXECUTED 4d566: 6704 beqs 4d56c <== NOT EXECUTED *endptr = end; 4d568: 26ae fffc movel %fp@(-4),%a3@ <== NOT EXECUTED /* nothing was converted */ if ( end == s ) 4d56c: b4ae fffc cmpl %fp@(-4),%d2 <== NOT EXECUTED 4d570: 6750 beqs 4d5c2 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4d572: 4878 ffff pea ffffffff <== NOT EXECUTED 4d576: 2f3c 7fef ffff movel #2146435071,%sp@- <== NOT EXECUTED 4d57c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4d57e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4d580: 4eb9 0005 e364 jsr 5e364 <__gtdf2> <== NOT EXECUTED 4d586: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4d58a: 4a80 tstl %d0 <== NOT EXECUTED 4d58c: 6e12 bgts 4d5a0 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4d58e: 2483 movel %d3,%a2@ <== NOT EXECUTED 4d590: 4280 clrl %d0 <== NOT EXECUTED 4d592: 2544 0004 movel %d4,%a2@(4) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4d596: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4d59c: 4e5e unlk %fp <== NOT EXECUTED 4d59e: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4d5a0: 4e94 jsr %a4@ <== NOT EXECUTED 4d5a2: 7222 moveq #34,%d1 <== NOT EXECUTED 4d5a4: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d5a6: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4d5a8: 66e4 bnes 4d58e <== NOT EXECUTED 4d5aa: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 4d5ac: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4d5b2: 4e5e unlk %fp <== NOT EXECUTED 4d5b4: 4e75 rts <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4d5b6: 7009 moveq #9,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 4d5b8: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4d5be: 4e5e unlk %fp <== NOT EXECUTED 4d5c0: 4e75 rts <== NOT EXECUTED /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 4d5c2: 700b moveq #11,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 4d5c4: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4d5ca: 4e5e unlk %fp <== NOT EXECUTED 4d5cc: 4e75 rts <== NOT EXECUTED ... 0004d5d0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4d5d0: 4e56 ffe8 linkw %fp,#-24 4d5d4: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 4d5d8: 242e 0008 movel %fp@(8),%d2 4d5dc: 246e 000c moveal %fp@(12),%a2 4d5e0: 266e 0010 moveal %fp@(16),%a3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4d5e4: 4a8a tstl %a2 4d5e6: 6768 beqs 4d650 return RTEMS_INVALID_ADDRESS; errno = 0; 4d5e8: 49f9 0005 0ad0 lea 50ad0 <__errno>,%a4 4d5ee: 4e94 jsr %a4@ 4d5f0: 2040 moveal %d0,%a0 4d5f2: 4290 clrl %a0@ *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4d5f4: 486e fffc pea %fp@(-4) if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 4d5f8: 24bc 0000 0000 movel #0,%a2@ #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4d5fe: 2f02 movel %d2,%sp@- 4d600: 4eb9 0005 34c6 jsr 534c6 #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 ) 4d606: 508f addql #8,%sp errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4d608: 2600 movel %d0,%d3 #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 ) 4d60a: 4a8b tstl %a3 4d60c: 6704 beqs 4d612 *endptr = end; 4d60e: 26ae fffc movel %fp@(-4),%a3@ /* nothing was converted */ if ( end == s ) 4d612: b4ae fffc cmpl %fp@(-4),%d2 4d616: 6744 beqs 4d65c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4d618: 2f3c 7f7f ffff movel #2139095039,%sp@- 4d61e: 2f03 movel %d3,%sp@- 4d620: 4eb9 0005 e3f4 jsr 5e3f4 <__gtsf2> 4d626: 508f addql #8,%sp 4d628: 4a80 tstl %d0 4d62a: 6e0e bgts 4d63a /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4d62c: 2483 movel %d3,%a2@ 4d62e: 4280 clrl %d0 return RTEMS_SUCCESSFUL; } 4d630: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 4d636: 4e5e unlk %fp 4d638: 4e75 rts return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 4d63a: 4e94 jsr %a4@ <== NOT EXECUTED 4d63c: 7222 moveq #34,%d1 <== NOT EXECUTED 4d63e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d640: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4d642: 66e8 bnes 4d62c <== NOT EXECUTED 4d644: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 4d646: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 <== NOT EXECUTED 4d64c: 4e5e unlk %fp <== NOT EXECUTED 4d64e: 4e75 rts <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4d650: 7009 moveq #9,%d0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 4d652: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 4d658: 4e5e unlk %fp 4d65a: 4e75 rts /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 4d65c: 700b moveq #11,%d0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 4d65e: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 4d664: 4e5e unlk %fp 4d666: 4e75 rts 0005e28c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 5e28c: 4e56 ffe8 linkw %fp,#-24 5e290: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 5e294: 242e 0008 movel %fp@(8),%d2 5e298: 246e 000c moveal %fp@(12),%a2 5e29c: 266e 0010 moveal %fp@(16),%a3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 5e2a0: 4a8a tstl %a2 5e2a2: 675c beqs 5e300 return RTEMS_INVALID_ADDRESS; errno = 0; 5e2a4: 49f9 0008 1084 lea 81084 <__errno>,%a4 5e2aa: 4e94 jsr %a4@ 5e2ac: 2040 moveal %d0,%a0 5e2ae: 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 ); 5e2b0: 4878 0010 pea 10 5e2b4: 486e fffc pea %fp@(-4) if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; 5e2b8: 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 ); 5e2ba: 2f02 movel %d2,%sp@- 5e2bc: 4eb9 0008 8274 jsr 88274 #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 ) 5e2c2: 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 ); 5e2c6: 2600 movel %d0,%d3 #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 ) 5e2c8: 4a8b tstl %a3 5e2ca: 6704 beqs 5e2d0 *endptr = end; 5e2cc: 26ae fffc movel %fp@(-4),%a3@ /* nothing was converted */ if ( end == s ) 5e2d0: b4ae fffc cmpl %fp@(-4),%d2 5e2d4: 6736 beqs 5e30c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 5e2d6: 70ff moveq #-1,%d0 5e2d8: b083 cmpl %d3,%d0 5e2da: 670e beqs 5e2ea /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 5e2dc: 2483 movel %d3,%a2@ 5e2de: 4280 clrl %d0 return RTEMS_SUCCESSFUL; } 5e2e0: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 5e2e6: 4e5e unlk %fp 5e2e8: 4e75 rts return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 5e2ea: 4e94 jsr %a4@ <== NOT EXECUTED 5e2ec: 7222 moveq #34,%d1 <== NOT EXECUTED 5e2ee: 2040 moveal %d0,%a0 <== NOT EXECUTED 5e2f0: b290 cmpl %a0@,%d1 <== NOT EXECUTED 5e2f2: 66e8 bnes 5e2dc <== NOT EXECUTED 5e2f4: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 5e2f6: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 <== NOT EXECUTED 5e2fc: 4e5e unlk %fp <== NOT EXECUTED 5e2fe: 4e75 rts <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 5e300: 7009 moveq #9,%d0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 5e302: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 5e308: 4e5e unlk %fp 5e30a: 4e75 rts /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 5e30c: 700b moveq #11,%d0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 5e30e: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 5e314: 4e5e unlk %fp 5e316: 4e75 rts 0004462c : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 4462c: 7209 moveq #9,%d1 #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 4462e: 4e56 0000 linkw %fp,#0 44632: 202e 0008 movel %fp@(8),%d0 int baud_index; switch (termios_baud) { 44636: b280 cmpl %d0,%d1 44638: 6700 010a beqw 44744 4463c: 6c32 bges 44670 4463e: 720e moveq #14,%d1 <== NOT EXECUTED 44640: b280 cmpl %d0,%d1 <== NOT EXECUTED 44642: 6700 00d6 beqw 4471a <== NOT EXECUTED 44646: 6c56 bges 4469e <== NOT EXECUTED 44648: 0c80 0000 1002 cmpil #4098,%d0 <== NOT EXECUTED 4464e: 6700 00e2 beqw 44732 <== NOT EXECUTED 44652: 6f00 0098 blew 446ec <== NOT EXECUTED 44656: 0c80 0000 1003 cmpil #4099,%d0 <== NOT EXECUTED 4465c: 6700 00b6 beqw 44714 <== NOT EXECUTED 44660: 0c80 0000 1004 cmpil #4100,%d0 <== NOT EXECUTED 44666: 6700 009a beqw 44702 <== NOT EXECUTED case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; case B460800: baud_index = 19; break; 4466a: 70ff moveq #-1,%d0 default: baud_index = -1; break; } return baud_index; } 4466c: 4e5e unlk %fp 4466e: 4e75 rts rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 44670: 123c 0004 moveb #4,%d1 44674: b280 cmpl %d0,%d1 44676: 6700 00d2 beqw 4474a 4467a: 6d46 blts 446c2 4467c: 123c 0001 moveb #1,%d1 44680: b280 cmpl %d0,%d1 44682: 6700 00a2 beqw 44726 44686: 6c00 00c8 bgew 44750 4468a: 7202 moveq #2,%d1 <== NOT EXECUTED 4468c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4468e: 677e beqs 4470e <== NOT EXECUTED 44690: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 44694: b280 cmpl %d0,%d1 <== NOT EXECUTED 44696: 66d2 bnes 4466a <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; 44698: 7003 moveq #3,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 4469a: 4e5e unlk %fp <== NOT EXECUTED 4469c: 4e75 rts <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 4469e: 123c 000b moveb #11,%d1 <== NOT EXECUTED 446a2: b280 cmpl %d0,%d1 <== NOT EXECUTED 446a4: 6700 0086 beqw 4472c <== NOT EXECUTED 446a8: 6e3c bgts 446e6 <== NOT EXECUTED 446aa: 123c 000c moveb #12,%d1 <== NOT EXECUTED 446ae: b280 cmpl %d0,%d1 <== NOT EXECUTED 446b0: 6700 008c beqw 4473e <== NOT EXECUTED 446b4: 123c 000d moveb #13,%d1 <== NOT EXECUTED 446b8: b280 cmpl %d0,%d1 <== NOT EXECUTED 446ba: 66ae bnes 4466a <== NOT EXECUTED case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; 446bc: 700d moveq #13,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 446be: 4e5e unlk %fp <== NOT EXECUTED 446c0: 4e75 rts <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 446c2: 7206 moveq #6,%d1 <== NOT EXECUTED 446c4: b280 cmpl %d0,%d1 <== NOT EXECUTED 446c6: 6758 beqs 44720 <== NOT EXECUTED 446c8: 6e16 bgts 446e0 <== NOT EXECUTED 446ca: 123c 0007 moveb #7,%d1 <== NOT EXECUTED 446ce: b280 cmpl %d0,%d1 <== NOT EXECUTED 446d0: 6766 beqs 44738 <== NOT EXECUTED 446d2: 123c 0008 moveb #8,%d1 <== NOT EXECUTED 446d6: b280 cmpl %d0,%d1 <== NOT EXECUTED 446d8: 6690 bnes 4466a <== NOT EXECUTED case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; 446da: 7008 moveq #8,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 446dc: 4e5e unlk %fp <== NOT EXECUTED 446de: 4e75 rts <== NOT EXECUTED switch (termios_baud) { case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; 446e0: 7005 moveq #5,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 446e2: 4e5e unlk %fp <== NOT EXECUTED 446e4: 4e75 rts <== NOT EXECUTED case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; 446e6: 700a moveq #10,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 446e8: 4e5e unlk %fp <== NOT EXECUTED 446ea: 4e75 rts <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 446ec: 720f moveq #15,%d1 <== NOT EXECUTED 446ee: b280 cmpl %d0,%d1 <== NOT EXECUTED 446f0: 6716 beqs 44708 <== NOT EXECUTED 446f2: 0c80 0000 1001 cmpil #4097,%d0 <== NOT EXECUTED 446f8: 6600 ff70 bnew 4466a <== NOT EXECUTED case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; 446fc: 7010 moveq #16,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 446fe: 4e5e unlk %fp <== NOT EXECUTED 44700: 4e75 rts <== NOT EXECUTED case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; 44702: 7013 moveq #19,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44704: 4e5e unlk %fp <== NOT EXECUTED 44706: 4e75 rts <== NOT EXECUTED case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; 44708: 700f moveq #15,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 4470a: 4e5e unlk %fp <== NOT EXECUTED 4470c: 4e75 rts <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 4470e: 7002 moveq #2,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44710: 4e5e unlk %fp <== NOT EXECUTED 44712: 4e75 rts <== NOT EXECUTED case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; 44714: 7012 moveq #18,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44716: 4e5e unlk %fp <== NOT EXECUTED 44718: 4e75 rts <== NOT EXECUTED case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; 4471a: 700e moveq #14,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 4471c: 4e5e unlk %fp <== NOT EXECUTED 4471e: 4e75 rts <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; 44720: 7006 moveq #6,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44722: 4e5e unlk %fp <== NOT EXECUTED 44724: 4e75 rts <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 44726: 7001 moveq #1,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44728: 4e5e unlk %fp <== NOT EXECUTED 4472a: 4e75 rts <== NOT EXECUTED case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; 4472c: 700b moveq #11,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 4472e: 4e5e unlk %fp <== NOT EXECUTED 44730: 4e75 rts <== NOT EXECUTED case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; 44732: 7011 moveq #17,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44734: 4e5e unlk %fp <== NOT EXECUTED 44736: 4e75 rts <== NOT EXECUTED case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; 44738: 7007 moveq #7,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 4473a: 4e5e unlk %fp <== NOT EXECUTED 4473c: 4e75 rts <== NOT EXECUTED case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; 4473e: 700c moveq #12,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44740: 4e5e unlk %fp <== NOT EXECUTED 44742: 4e75 rts <== NOT EXECUTED case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; 44744: 7009 moveq #9,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44746: 4e5e unlk %fp <== NOT EXECUTED 44748: 4e75 rts <== NOT EXECUTED switch (termios_baud) { case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; 4474a: 7004 moveq #4,%d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 4474c: 4e5e unlk %fp <== NOT EXECUTED 4474e: 4e75 rts <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 44750: 4a80 tstl %d0 44752: 6600 ff16 bnew 4466a 44756: 4280 clrl %d0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 44758: 4e5e unlk %fp <== NOT EXECUTED 4475a: 4e75 rts 000433c4 : case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; 433c4: 203c 0000 04b0 movel #1200,%d0 #include int32_t rtems_termios_baud_to_number( int termios_baud ) { 433ca: 4e56 0000 linkw %fp,#0 433ce: 222e 0008 movel %fp@(8),%d1 433d2: 2f02 movel %d2,%sp@- int32_t baud; switch (termios_baud) { 433d4: 7409 moveq #9,%d2 433d6: b481 cmpl %d1,%d2 433d8: 6740 beqs 4341a 433da: 6c44 bges 43420 case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; 433dc: 203c 0000 4b00 movel #19200,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 433e2: 740e moveq #14,%d2 433e4: b481 cmpl %d1,%d2 433e6: 6732 beqs 4341a 433e8: 6c68 bges 43452 case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; 433ea: 203c 0001 c200 movel #115200,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 433f0: 0c81 0000 1002 cmpil #4098,%d1 433f6: 6722 beqs 4341a 433f8: 6f00 00c0 blew 434ba case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; 433fc: 203c 0003 8400 movel #230400,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 43402: 0c81 0000 1003 cmpil #4099,%d1 43408: 6710 beqs 4341a case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; 4340a: 203c 0007 0800 movel #460800,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 43410: 0c81 0000 1004 cmpil #4100,%d1 43416: 6702 beqs 4341a case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; case B460800: baud = 460800; break; 43418: 70ff moveq #-1,%d0 default: baud = -1; break; } return baud; } 4341a: 241f movel %sp@+,%d2 4341c: 4e5e unlk %fp 4341e: 4e75 rts int termios_baud ) { int32_t baud; switch (termios_baud) { 43420: 143c 0004 moveb #4,%d2 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; 43424: 303c 0086 movew #134,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 43428: b481 cmpl %d1,%d2 4342a: 67ee beqs 4341a 4342c: 6d54 blts 43482 4342e: 103c 0001 moveb #1,%d0 43432: b081 cmpl %d1,%d0 43434: 6700 00a6 beqw 434dc 43438: 6c00 00b2 bgew 434ec 4343c: 7402 moveq #2,%d2 4343e: b481 cmpl %d1,%d2 43440: 6700 00a2 beqw 434e4 43444: 7003 moveq #3,%d0 43446: b081 cmpl %d1,%d0 43448: 66ce bnes 43418 case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 4344a: 241f movel %sp@+,%d2 int32_t baud; switch (termios_baud) { case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; 4344c: 706e moveq #110,%d0 case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 4344e: 4e5e unlk %fp 43450: 4e75 rts int termios_baud ) { int32_t baud; switch (termios_baud) { 43452: 143c 000b moveb #11,%d2 case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; 43456: 303c 0960 movew #2400,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 4345a: b481 cmpl %d1,%d2 4345c: 67bc beqs 4341a case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; 4345e: 303c 0708 movew #1800,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 43462: b481 cmpl %d1,%d2 43464: 6eb4 bgts 4341a 43466: 143c 000c moveb #12,%d2 case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; 4346a: 303c 12c0 movew #4800,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 4346e: b481 cmpl %d1,%d2 43470: 67a8 beqs 4341a 43472: 143c 000d moveb #13,%d2 case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; 43476: 303c 2580 movew #9600,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 4347a: b481 cmpl %d1,%d2 4347c: 679c beqs 4341a case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; case B460800: baud = 460800; break; 4347e: 70ff moveq #-1,%d0 <== NOT EXECUTED 43480: 6098 bras 4341a <== NOT EXECUTED case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; 43482: 203c 0000 00c8 movel #200,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 43488: 7406 moveq #6,%d2 4348a: b481 cmpl %d1,%d2 4348c: 678c beqs 4341a case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; 4348e: 0680 ffff ffce addil #-50,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 43494: b481 cmpl %d1,%d2 43496: 6e82 bgts 4341a 43498: 143c 0007 moveb #7,%d2 case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; 4349c: 303c 012c movew #300,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 434a0: b481 cmpl %d1,%d2 434a2: 6700 ff76 beqw 4341a 434a6: 143c 0008 moveb #8,%d2 case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; 434aa: 303c 0258 movew #600,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 434ae: b481 cmpl %d1,%d2 434b0: 6700 ff68 beqw 4341a case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; case B460800: baud = 460800; break; 434b4: 70ff moveq #-1,%d0 <== NOT EXECUTED 434b6: 6000 ff62 braw 4341a <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 434ba: 740f moveq #15,%d2 case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; 434bc: 203c 0000 9600 movel #38400,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 434c2: b481 cmpl %d1,%d2 434c4: 6700 ff54 beqw 4341a case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; 434c8: 303c e100 movew #-7936,%d0 int termios_baud ) { int32_t baud; switch (termios_baud) { 434cc: 0c81 0000 1001 cmpil #4097,%d1 434d2: 6700 ff46 beqw 4341a case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; case B460800: baud = 460800; break; 434d6: 70ff moveq #-1,%d0 <== NOT EXECUTED 434d8: 6000 ff40 braw 4341a <== NOT EXECUTED default: baud = -1; break; } return baud; } 434dc: 241f movel %sp@+,%d2 int termios_baud ) { int32_t baud; switch (termios_baud) { 434de: 7032 moveq #50,%d0 case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434e0: 4e5e unlk %fp 434e2: 4e75 rts 434e4: 241f movel %sp@+,%d2 int termios_baud ) { int32_t baud; switch (termios_baud) { 434e6: 704b moveq #75,%d0 case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434e8: 4e5e unlk %fp 434ea: 4e75 rts int termios_baud ) { int32_t baud; switch (termios_baud) { 434ec: 4a81 tstl %d1 434ee: 6600 ff28 bnew 43418 case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434f2: 241f movel %sp@+,%d2 int termios_baud ) { int32_t baud; switch (termios_baud) { 434f4: 4280 clrl %d0 case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434f6: 4e5e unlk %fp 434f8: 4e75 rts ... 00043538 : { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 43538: 4280 clrl %d0 <== NOT EXECUTED rtems_status_code rtems_termios_bufsize ( int cbufsize, int raw_input, int raw_output ) { 4353a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_termios_cbufsize = cbufsize; 4353e: 41ee 0008 lea %fp@(8),%a0 <== NOT EXECUTED 43542: 23d0 0005 d9f4 movel %a0@,5d9f4 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 43548: 41ee 000c lea %fp@(12),%a0 <== NOT EXECUTED 4354c: 23d0 0005 d9f8 movel %a0@,5d9f8 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 43552: 41ee 0010 lea %fp@(16),%a0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 43556: 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; 43558: 23d0 0005 d9fc movel %a0@,5d9fc <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4355e: 4e75 rts 00044b34 : } } rtems_status_code rtems_termios_close (void *arg) { 44b34: 4e56 fff4 linkw %fp,#-12 44b38: 48d7 1c00 moveml %a2-%a4,%sp@ 44b3c: 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); 44b40: 49f9 0004 5d2c lea 45d2c ,%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; 44b46: 2053 moveal %a3@,%a0 44b48: 2468 0034 moveal %a0@(52),%a2 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44b4c: 42a7 clrl %sp@- 44b4e: 42a7 clrl %sp@- 44b50: 2f39 0005 f038 movel 5f038 ,%sp@- 44b56: 4e94 jsr %a4@ if (sc != RTEMS_SUCCESSFUL) 44b58: 4fef 000c lea %sp@(12),%sp 44b5c: 4a80 tstl %d0 44b5e: 6600 011c bnew 44c7c rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 44b62: 202a 0008 movel %a2@(8),%d0 44b66: 5380 subql #1,%d0 44b68: 2540 0008 movel %d0,%a2@(8) 44b6c: 6600 00a4 bnew 44c12 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 44b70: 202a 00cc movel %a2@(204),%d0 44b74: 41f9 0005 e7f4 lea 5e7f4 ,%a0 44b7a: e788 lsll #3,%d0 44b7c: 2070 0c04 moveal %a0@(00000004,%d0:l:4),%a0 44b80: 4a88 tstl %a0 44b82: 6700 012c beqw 44cb0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 44b86: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44b88: 4e90 jsr %a0@ <== NOT EXECUTED 44b8a: 588f addql #4,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 44b8c: 7002 moveq #2,%d0 <== NOT EXECUTED 44b8e: b0aa 00b4 cmpl %a2@(180),%d0 <== NOT EXECUTED 44b92: 6700 00c0 beqw 44c54 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 44b96: 206a 009c moveal %a2@(156),%a0 44b9a: 4a88 tstl %a0 44b9c: 6710 beqs 44bae (*tty->device.lastClose)(tty->major, tty->minor, arg); 44b9e: 2f0b movel %a3,%sp@- 44ba0: 2f2a 0010 movel %a2@(16),%sp@- 44ba4: 2f2a 000c movel %a2@(12),%sp@- 44ba8: 4e90 jsr %a0@ 44baa: 4fef 000c lea %sp@(12),%sp if (tty->forw == NULL) { 44bae: 2052 moveal %a2@,%a0 44bb0: 4a88 tstl %a0 44bb2: 6700 00d0 beqw 44c84 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 44bb6: 216a 0004 0004 movel %a2@(4),%a0@(4) } if (tty->back == NULL) { 44bbc: 206a 0004 moveal %a2@(4),%a0 44bc0: 4a88 tstl %a0 44bc2: 6700 00d8 beqw 44c9c if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 44bc6: 2092 movel %a2@,%a0@ <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 44bc8: 2f2a 0014 movel %a2@(20),%sp@- 44bcc: 47f9 0004 5c54 lea 45c54 ,%a3 44bd2: 4e93 jsr %a3@ rtems_semaphore_delete (tty->osem); 44bd4: 2f2a 0018 movel %a2@(24),%sp@- 44bd8: 4e93 jsr %a3@ rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 44bda: 2f2a 008c movel %a2@(140),%sp@- 44bde: 4e93 jsr %a3@ if ((tty->device.pollRead == NULL) || 44be0: 4fef 000c lea %sp@(12),%sp 44be4: 4aaa 00a0 tstl %a2@(160) 44be8: 6740 beqs 44c2a (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 44bea: 7002 moveq #2,%d0 44bec: b0aa 00b4 cmpl %a2@(180),%d0 44bf0: 6738 beqs 44c2a rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 44bf2: 2f2a 0058 movel %a2@(88),%sp@- 44bf6: 47f9 0004 a688 lea 4a688 ,%a3 44bfc: 4e93 jsr %a3@ free (tty->rawOutBuf.theBuf); 44bfe: 2f2a 007c movel %a2@(124),%sp@- 44c02: 4e93 jsr %a3@ free (tty->cbuf); 44c04: 2f2a 001c movel %a2@(28),%sp@- 44c08: 4e93 jsr %a3@ free (tty); 44c0a: 2f0a movel %a2,%sp@- 44c0c: 4e93 jsr %a3@ 44c0e: 4fef 0010 lea %sp@(16),%sp } rtems_semaphore_release (rtems_termios_ttyMutex); 44c12: 2f39 0005 f038 movel 5f038 ,%sp@- 44c18: 4eb9 0004 5e68 jsr 45e68 return RTEMS_SUCCESSFUL; } 44c1e: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4 44c24: 4280 clrl %d0 44c26: 4e5e unlk %fp 44c28: 4e75 rts rtems_semaphore_delete (tty->isem); rtems_semaphore_delete (tty->osem); rtems_semaphore_delete (tty->rawOutBuf.Semaphore); if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 44c2a: 2f2a 0068 movel %a2@(104),%sp@- 44c2e: 4e93 jsr %a3@ 44c30: 588f addql #4,%sp free (tty->rawInBuf.theBuf); 44c32: 47f9 0004 a688 lea 4a688 ,%a3 44c38: 2f2a 0058 movel %a2@(88),%sp@- 44c3c: 4e93 jsr %a3@ free (tty->rawOutBuf.theBuf); 44c3e: 2f2a 007c movel %a2@(124),%sp@- 44c42: 4e93 jsr %a3@ free (tty->cbuf); 44c44: 2f2a 001c movel %a2@(28),%sp@- 44c48: 4e93 jsr %a3@ free (tty); 44c4a: 2f0a movel %a2,%sp@- 44c4c: 4e93 jsr %a3@ 44c4e: 4fef 0010 lea %sp@(16),%sp 44c52: 60be bras 44c12 if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 44c54: 4878 0001 pea 1 <== NOT EXECUTED 44c58: 49f9 0004 5814 lea 45814 ,%a4 <== NOT EXECUTED 44c5e: 2f2a 00c4 movel %a2@(196),%sp@- <== NOT EXECUTED 44c62: 4e94 jsr %a4@ <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 44c64: 508f addql #8,%sp <== NOT EXECUTED 44c66: 4a80 tstl %d0 <== NOT EXECUTED 44c68: 6612 bnes 44c7c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 44c6a: 4878 0001 pea 1 <== NOT EXECUTED 44c6e: 2f2a 00c8 movel %a2@(200),%sp@- <== NOT EXECUTED 44c72: 4e94 jsr %a4@ <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 44c74: 508f addql #8,%sp <== NOT EXECUTED 44c76: 4a80 tstl %d0 <== NOT EXECUTED 44c78: 6700 ff1c beqw 44b96 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 44c7c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44c7e: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; 44c84: 206a 0004 moveal %a2@(4),%a0 44c88: 23c8 0005 f03c movel %a0,5f03c if ( rtems_termios_ttyTail != NULL ) { 44c8e: 6748 beqs 44cd8 rtems_termios_ttyTail->forw = NULL; 44c90: 4290 clrl %a0@ <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 44c92: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 44c96: 4a88 tstl %a0 <== NOT EXECUTED 44c98: 6600 ff2c bnew 44bc6 <== NOT EXECUTED 44c9c: 2052 moveal %a2@,%a0 rtems_termios_ttyHead = tty->forw; 44c9e: 23c8 0005 f040 movel %a0,5f040 if ( rtems_termios_ttyHead != NULL ) { 44ca4: 6700 ff22 beqw 44bc8 rtems_termios_ttyHead->back = NULL; 44ca8: 42a8 0004 clrl %a0@(4) 44cac: 6000 ff1a braw 44bc8 } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44cb0: 42a7 clrl %sp@- 44cb2: 42a7 clrl %sp@- 44cb4: 2f2a 0018 movel %a2@(24),%sp@- 44cb8: 4e94 jsr %a4@ if (sc != RTEMS_SUCCESSFUL) { 44cba: 4fef 000c lea %sp@(12),%sp 44cbe: 4a80 tstl %d0 44cc0: 66ba bnes 44c7c rtems_fatal_error_occurred (sc); } drainOutput (tty); 44cc2: 2f0a movel %a2,%sp@- 44cc4: 4eba f6e4 jsr %pc@(443aa ) 44cc8: 588f addql #4,%sp } if (tty->device.outputUsesInterrupts 44cca: 7002 moveq #2,%d0 44ccc: b0aa 00b4 cmpl %a2@(180),%d0 44cd0: 6600 fec4 bnew 44b96 44cd4: 6000 ff7e braw 44c54 <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 44cd8: 42b9 0005 f040 clrl 5f040 44cde: 6000 fee8 braw 44bc8 000437ae : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 437ae: 4e56 0000 linkw %fp,#0 rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 437b2: 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) { 437b6: 206e 0008 moveal %fp@(8),%a0 rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 437ba: d1a8 0090 addl %d0,%a0@(144) if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 437be: 7002 moveq #2,%d0 437c0: b0a8 00b4 cmpl %a0@(180),%d0 437c4: 672a beqs 437f0 TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 437c6: 7005 moveq #5,%d0 437c8: b0a8 00cc cmpl %a0@(204),%d0 437cc: 670c beqs 437da rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 437ce: 2d48 0008 movel %a0,%fp@(8) } } 437d2: 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); 437d4: 4ef9 0004 357c jmp 4357c } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 437da: 2279 0005 e8a8 moveal 5e8a8 ,%a1 <== NOT EXECUTED 437e0: 4a89 tstl %a1 <== NOT EXECUTED 437e2: 6706 beqs 437ea <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 437e4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 437e6: 4e91 jsr %a1@ <== NOT EXECUTED 437e8: 588f addql #4,%sp <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 437ea: 4280 clrl %d0 <== NOT EXECUTED 437ec: 4e5e unlk %fp <== NOT EXECUTED 437ee: 4e75 rts <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 437f0: 4878 0002 pea 2 <== NOT EXECUTED 437f4: 2f28 00c8 movel %a0@(200),%sp@- <== NOT EXECUTED 437f8: 4eb9 0004 5814 jsr 45814 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 437fe: 508f addql #8,%sp <== NOT EXECUTED 43800: 4a80 tstl %d0 <== NOT EXECUTED 43802: 67e6 beqs 437ea <== NOT EXECUTED rtems_fatal_error_occurred (sc); 43804: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43806: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 0004380c : * 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) { 4380c: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 43810: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 43814: 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) { 43818: 49f9 0005 e7f4 lea 5e7f4 ,%a4 <== NOT EXECUTED 4381e: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 43822: 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) { 43824: 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) { 43828: 2074 0810 moveal %a4@(00000010,%d0:l),%a0 <== 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) { 4382c: 262e 0010 movel %fp@(16),%d3 <== 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) { 43830: 4a88 tstl %a0 <== NOT EXECUTED 43832: 6774 beqs 438a8 <== NOT EXECUTED while (len--) { 43834: 4a83 tstl %d3 <== NOT EXECUTED 43836: 6734 beqs 4386c <== NOT EXECUTED 43838: 4282 clrl %d2 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 4383a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4383c: 1233 2800 moveb %a3@(00000000,%d2:l),%d1 <== NOT EXECUTED 43840: 5282 addql #1,%d2 <== NOT EXECUTED 43842: 49c1 extbl %d1 <== NOT EXECUTED 43844: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43846: 4e90 jsr %a0@ <== 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--) { 43848: 508f addql #8,%sp <== NOT EXECUTED 4384a: b483 cmpl %d3,%d2 <== NOT EXECUTED 4384c: 671e beqs 4386c <== NOT EXECUTED 4384e: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 43852: eb88 lsll #5,%d0 <== NOT EXECUTED 43854: 2074 0810 moveal %a4@(00000010,%d0:l),%a0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 43858: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4385a: 1233 2800 moveb %a3@(00000000,%d2:l),%d1 <== NOT EXECUTED 4385e: 5282 addql #1,%d2 <== NOT EXECUTED 43860: 49c1 extbl %d1 <== NOT EXECUTED 43862: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43864: 4e90 jsr %a0@ <== 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--) { 43866: 508f addql #8,%sp <== NOT EXECUTED 43868: b483 cmpl %d3,%d2 <== NOT EXECUTED 4386a: 66e2 bnes 4384e <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 4386c: 4aaa 00e4 tstl %a2@(228) <== NOT EXECUTED 43870: 6628 bnes 4389a <== NOT EXECUTED 43872: 206a 00dc moveal %a2@(220),%a0 <== NOT EXECUTED 43876: 4a88 tstl %a0 <== NOT EXECUTED 43878: 6720 beqs 4389a <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 4387a: 2f2a 00e0 movel %a2@(224),%sp@- <== NOT EXECUTED tty->tty_rcvwakeup = 1; 4387e: 4285 clrl %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); 43880: 486a 0030 pea %a2@(48) <== NOT EXECUTED tty->tty_rcvwakeup = 1; 43884: 7c01 moveq #1,%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); 43886: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 1; 43888: 508f addql #8,%sp <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 4388a: 2005 movel %d5,%d0 <== 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); tty->tty_rcvwakeup = 1; 4388c: 2546 00e4 movel %d6,%a2@(228) <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 43890: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 43896: 4e5e unlk %fp <== NOT EXECUTED 43898: 4e75 rts <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 4389a: 4285 clrl %d5 <== NOT EXECUTED } 4389c: 2005 movel %d5,%d0 <== NOT EXECUTED 4389e: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 438a4: 4e5e unlk %fp <== NOT EXECUTED 438a6: 4e75 rts <== 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, 438a8: 41ea 004a lea %a2@(74),%a0 <== 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); 438ac: 4bea 0030 lea %a2@(48),%a5 <== NOT EXECUTED 438b0: 4285 clrl %d5 <== 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); 438b2: 387c 0700 moveaw #1792,%a4 <== 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); 438b6: 4200 clrb %d0 <== 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, 438b8: 2d48 fffc movel %a0,%fp@(-4) <== 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); 438bc: 1d40 fff7 moveb %d0,%fp@(-9) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 438c0: 4a83 tstl %d3 <== NOT EXECUTED 438c2: 6700 00e8 beqw 439ac <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 438c6: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 438ca: 1813 moveb %a3@,%d4 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 438cc: 0800 0009 btst #9,%d0 <== NOT EXECUTED 438d0: 671c beqs 438ee <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 438d2: 4281 clrl %d1 <== NOT EXECUTED 438d4: 122a 004a moveb %a2@(74),%d1 <== NOT EXECUTED 438d8: 1004 moveb %d4,%d0 <== NOT EXECUTED 438da: 49c0 extbl %d0 <== NOT EXECUTED 438dc: b280 cmpl %d0,%d1 <== NOT EXECUTED 438de: 6700 014a beqw 43a2a <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 438e2: 4281 clrl %d1 <== NOT EXECUTED 438e4: 122a 0049 moveb %a2@(73),%d1 <== NOT EXECUTED 438e8: b280 cmpl %d0,%d1 <== NOT EXECUTED 438ea: 6700 00dc beqw 439c8 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 438ee: 4a2e fff7 tstb %fp@(-9) <== NOT EXECUTED 438f2: 6600 00e6 bnew 439da <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 438f6: 2e2a 0060 movel %a2@(96),%d7 <== NOT EXECUTED 438fa: 5287 addql #1,%d7 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 438fc: 200c movel %a4,%d0 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 438fe: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 43902: 4c41 7002 remul %d1,%d2,%d7 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 43906: 40c7 movew %sr,%d7 <== NOT EXECUTED 43908: 8087 orl %d7,%d0 <== NOT EXECUTED 4390a: 46c0 movew %d0,%sr <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 4390c: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 43910: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED 43914: 9081 subl %d1,%d0 <== NOT EXECUTED 43916: 2240 moveal %d0,%a1 <== NOT EXECUTED 43918: d3c2 addal %d2,%a1 <== NOT EXECUTED 4391a: 2209 movel %a1,%d1 <== NOT EXECUTED 4391c: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED 43920: 4c40 1006 remul %d0,%d6,%d1 <== NOT EXECUTED 43924: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 43928: bcaa 00c0 cmpl %a2@(192),%d6 <== NOT EXECUTED 4392c: 633e blss 4396c <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 4392e: 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) 43932: 0800 0000 btst #0,%d0 <== NOT EXECUTED 43936: 6634 bnes 4396c <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 43938: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4393c: 7201 moveq #1,%d1 <== NOT EXECUTED 4393e: 8081 orl %d1,%d0 <== NOT EXECUTED 43940: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 43944: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43948: 0280 0000 0402 andil #1026,%d0 <== NOT EXECUTED 4394e: 0c80 0000 0400 cmpil #1024,%d0 <== NOT EXECUTED 43954: 6700 0112 beqw 43a68 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 43958: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4395c: 0280 0000 0104 andil #260,%d0 <== NOT EXECUTED 43962: 0c80 0000 0100 cmpil #256,%d0 <== NOT EXECUTED 43968: 6700 0136 beqw 43aa0 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 4396c: 46c7 movew %d7,%sr <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 4396e: 202a 005c movel %a2@(92),%d0 <== NOT EXECUTED 43972: b480 cmpl %d0,%d2 <== NOT EXECUTED 43974: 6700 00d2 beqw 43a48 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 43978: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED 4397c: 1184 2800 moveb %d4,%a0@(00000000,%d2:l) <== NOT EXECUTED tty->rawInBuf.Tail = newTail; 43980: 2542 0060 movel %d2,%a2@(96) <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 43984: 4aaa 00e4 tstl %a2@(228) <== NOT EXECUTED 43988: 6618 bnes 439a2 <== NOT EXECUTED 4398a: 206a 00dc moveal %a2@(220),%a0 <== NOT EXECUTED 4398e: 4a88 tstl %a0 <== NOT EXECUTED 43990: 6710 beqs 439a2 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 43992: 2f2a 00e0 movel %a2@(224),%sp@- <== NOT EXECUTED 43996: 2f0d movel %a5,%sp@- <== NOT EXECUTED 43998: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 1; 4399a: 508f addql #8,%sp <== NOT EXECUTED 4399c: 7201 moveq #1,%d1 <== NOT EXECUTED 4399e: 2541 00e4 movel %d1,%a2@(228) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 439a2: 528b addql #1,%a3 <== NOT EXECUTED 439a4: 5383 subql #1,%d3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 439a6: 4a83 tstl %d3 <== NOT EXECUTED 439a8: 6600 ff1c bnew 438c6 <== NOT EXECUTED } } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); 439ac: 2f2a 0068 movel %a2@(104),%sp@- <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 439b0: dbaa 0078 addl %d5,%a2@(120) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 439b4: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return dropped; 439ba: 588f addql #4,%sp <== NOT EXECUTED } 439bc: 2005 movel %d5,%d0 <== NOT EXECUTED 439be: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 439c4: 4e5e unlk %fp <== NOT EXECUTED 439c6: 4e75 rts <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 439c8: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 439cc: 72ef moveq #-17,%d1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 439ce: 7c01 moveq #1,%d6 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 439d0: c081 andl %d1,%d0 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 439d2: 1d46 fff7 moveb %d6,%fp@(-9) <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 439d6: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 439da: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 439de: 7c30 moveq #48,%d6 <== NOT EXECUTED 439e0: 7220 moveq #32,%d1 <== NOT EXECUTED 439e2: c086 andl %d6,%d0 <== NOT EXECUTED 439e4: b280 cmpl %d0,%d1 <== NOT EXECUTED 439e6: 66ba bnes 439a2 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 439e8: 200c movel %a4,%d0 <== NOT EXECUTED 439ea: 40c2 movew %sr,%d2 <== NOT EXECUTED 439ec: 8082 orl %d2,%d0 <== NOT EXECUTED 439ee: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 439f0: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 439f4: 7cdf moveq #-33,%d6 <== NOT EXECUTED 439f6: c086 andl %d6,%d0 <== NOT EXECUTED 439f8: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 439fc: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 43a00: 6608 bnes 43a0a <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 43a02: 46c2 movew %d2,%sr <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43a04: 528b addql #1,%a3 <== NOT EXECUTED 43a06: 5383 subql #1,%d3 <== NOT EXECUTED 43a08: 609c bras 439a6 <== 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, 43a0a: 4878 0001 pea 1 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 43a0e: 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, 43a12: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 43a16: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43a18: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43a1c: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 43a20: 4e90 jsr %a0@ <== NOT EXECUTED 43a22: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 43a26: 46c2 movew %d2,%sr <== NOT EXECUTED 43a28: 60da bras 43a04 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { 43a2a: 4281 clrl %d1 <== NOT EXECUTED 43a2c: 122a 0049 moveb %a2@(73),%d1 <== NOT EXECUTED 43a30: b280 cmpl %d0,%d1 <== NOT EXECUTED 43a32: 671e beqs 43a52 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 43a34: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a38: 7c10 moveq #16,%d6 <== NOT EXECUTED 43a3a: 8086 orl %d6,%d0 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 43a3c: 7c01 moveq #1,%d6 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 43a3e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 43a42: 1d46 fff7 moveb %d6,%fp@(-9) <== NOT EXECUTED 43a46: 6092 bras 439da <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; 43a48: 5285 addql #1,%d5 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43a4a: 528b addql #1,%a3 <== NOT EXECUTED 43a4c: 5383 subql #1,%d3 <== NOT EXECUTED 43a4e: 6000 ff56 braw 439a6 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 43a52: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a56: 7210 moveq #16,%d1 <== NOT EXECUTED 43a58: b380 eorl %d1,%d0 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 43a5a: 7c01 moveq #1,%d6 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 43a5c: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 43a60: 1d46 fff7 moveb %d6,%fp@(-9) <== NOT EXECUTED 43a64: 6000 ff74 braw 439da <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 43a68: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a6c: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43a70: 6608 bnes 43a7a <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 43a72: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 43a76: 6600 fef4 bnew 4396c <== 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, 43a7a: 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; 43a7e: 7c02 moveq #2,%d6 <== NOT EXECUTED 43a80: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 43a84: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 43a88: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43a8c: 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; 43a90: 8286 orl %d6,%d1 <== NOT EXECUTED 43a92: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED (*tty->device.write)(tty->minor, 43a96: 4e90 jsr %a0@ <== NOT EXECUTED 43a98: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 43a9c: 6000 fece braw 4396c <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 43aa0: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 43aa4: 303c 0004 movew #4,%d0 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 43aa8: 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; 43aac: 8280 orl %d0,%d1 <== NOT EXECUTED 43aae: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 43ab2: 4a88 tstl %a0 <== NOT EXECUTED 43ab4: 6700 feb6 beqw 4396c <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 43ab8: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43abc: 4e90 jsr %a0@ <== NOT EXECUTED 43abe: 588f addql #4,%sp <== NOT EXECUTED 43ac0: 6000 feaa braw 4396c <== NOT EXECUTED 000434fc : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 434fc: 4e56 0000 linkw %fp,#0 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 43500: 4ab9 0005 f038 tstl 5f038 43506: 6704 beqs 4350c RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 43508: 4e5e unlk %fp 4350a: 4e75 rts /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( 4350c: 4879 0005 f038 pea 5f038 43512: 42a7 clrl %sp@- 43514: 4878 0054 pea 54 43518: 4878 0001 pea 1 4351c: 2f3c 5452 6d69 movel #1414688105,%sp@- 43522: 4eb9 0004 5a8c jsr 45a8c 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) 43528: 4fef 0014 lea %sp@(20),%sp 4352c: 4a80 tstl %d0 4352e: 67d8 beqs 43508 rtems_fatal_error_occurred (sc); 43530: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43532: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 00044746 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 44746: 4e56 ffec linkw %fp,#-20 4474a: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 4474e: 266e 0008 moveal %fp@(8),%a3 rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 44752: 2053 moveal %a3@,%a0 44754: 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); 44758: 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; 4475a: 286b 0008 moveal %a3@(8),%a4 rtems_status_code sc; args->ioctl_return = 0; 4475e: 42ab 000c clrl %a3@(12) sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44762: 42a7 clrl %sp@- 44764: 2f2a 0018 movel %a2@(24),%sp@- 44768: 4eb9 0004 5d2c jsr 45d2c if (sc != RTEMS_SUCCESSFUL) { 4476e: 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); 44772: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) { 44774: 662c bnes 447a2 args->ioctl_return = sc; return sc; } switch (args->command) { 44776: 202b 0004 movel %a3@(4),%d0 4477a: 7204 moveq #4,%d1 4477c: b280 cmpl %d0,%d1 4477e: 6774 beqs 447f4 44780: 6530 bcss 447b2 44782: 7602 moveq #2,%d3 44784: b680 cmpl %d0,%d3 44786: 6700 00b6 beqw 4483e 4478a: 6400 0224 bccw 449b0 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 4478e: 2f0a movel %a2,%sp@- 44790: 4eba fc18 jsr %pc@(443aa ) break; 44794: 588f addql #4,%sp /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44796: 2f2a 0018 movel %a2@(24),%sp@- 4479a: 4eb9 0004 5e68 jsr 45e68 args->ioctl_return = sc; return sc; 447a0: 588f addql #4,%sp } 447a2: 2002 movel %d2,%d0 *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; 447a4: 2742 000c movel %d2,%a3@(12) return sc; } 447a8: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 447ae: 4e5e unlk %fp 447b0: 4e75 rts sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 447b2: 0c80 4004 667f cmpil #1074030207,%d0 <== NOT EXECUTED 447b8: 6756 beqs 44810 <== NOT EXECUTED 447ba: 6200 0236 bhiw 449f2 <== NOT EXECUTED 447be: 7605 moveq #5,%d3 <== NOT EXECUTED 447c0: b680 cmpl %d0,%d3 <== NOT EXECUTED 447c2: 6700 01ce beqw 44992 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 447c6: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 447ca: eb88 lsll #5,%d0 <== NOT EXECUTED 447cc: 0680 0005 e80c addil #387084,%d0 <== NOT EXECUTED 447d2: 2240 moveal %d0,%a1 <== NOT EXECUTED 447d4: 2051 moveal %a1@,%a0 <== NOT EXECUTED 447d6: 4a88 tstl %a0 <== NOT EXECUTED 447d8: 6700 0292 beqw 44a6c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 447dc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 447de: 2f0a movel %a2,%sp@- <== NOT EXECUTED 447e0: 4e90 jsr %a0@ <== NOT EXECUTED 447e2: 508f addql #8,%sp <== NOT EXECUTED 447e4: 2400 movel %d0,%d2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 447e6: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 447ea: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 447f0: 588f addql #4,%sp <== NOT EXECUTED 447f2: 60ae bras 447a2 <== NOT EXECUTED case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 447f4: 2014 movel %a4@,%d0 <== NOT EXECUTED 447f6: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 447fa: 2540 00dc movel %d0,%a2@(220) <== NOT EXECUTED 447fe: 2541 00e0 movel %d1,%a2@(224) <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44802: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44806: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 4480c: 588f addql #4,%sp <== NOT EXECUTED 4480e: 6092 bras 447a2 <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 44810: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 44814: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 44818: 9081 subl %d1,%d0 <== NOT EXECUTED if ( rawnc < 0 ) 4481a: 6b00 02a4 bmiw 44ac0 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 4481e: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 44822: 92aa 0024 subl %a2@(36),%d1 <== NOT EXECUTED 44826: d280 addl %d0,%d1 <== NOT EXECUTED 44828: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 4482c: 2081 movel %d1,%a0@ <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 4482e: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44832: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 44838: 588f addql #4,%sp <== NOT EXECUTED 4483a: 6000 ff66 braw 447a2 <== NOT EXECUTED case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 4483e: 206b 0008 moveal %a3@(8),%a0 44842: 49ea 0030 lea %a2@(48),%a4 44846: 2898 movel %a0@+,%a4@ 44848: 2558 0034 movel %a0@+,%a2@(52) 4484c: 2558 0038 movel %a0@+,%a2@(56) 44850: 2558 003c movel %a0@+,%a2@(60) 44854: 2558 0040 movel %a0@+,%a2@(64) 44858: 2558 0044 movel %a0@+,%a2@(68) 4485c: 2558 0048 movel %a0@+,%a2@(72) 44860: 2558 004c movel %a0@+,%a2@(76) /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 44864: 202a 00b8 movel %a2@(184),%d0 case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 44868: 2550 0050 movel %a0@,%a2@(80) /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 4486c: 0800 0009 btst #9,%d0 44870: 6746 beqs 448b8 44872: 202a 0030 movel %a2@(48),%d0 44876: 0280 0000 0400 andil #1024,%d0 4487c: 663a bnes 448b8 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 4487e: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44882: 0280 ffff fdef andil #-529,%d0 <== NOT EXECUTED 44888: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 4488c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44890: 0800 0005 btst #5,%d0 <== NOT EXECUTED 44894: 6722 beqs 448b8 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 44896: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4489c: 40c3 movew %sr,%d3 <== NOT EXECUTED 4489e: 8083 orl %d3,%d0 <== NOT EXECUTED 448a0: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 448a2: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 448a6: 72df moveq #-33,%d1 <== NOT EXECUTED 448a8: c081 andl %d1,%d0 <== NOT EXECUTED 448aa: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 448ae: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 448b2: 6600 0242 bnew 44af6 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 448b6: 46c3 movew %d3,%sr <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 448b8: 202a 00b8 movel %a2@(184),%d0 448bc: 0800 000a btst #10,%d0 448c0: 6724 beqs 448e6 448c2: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 448c6: 0280 0000 1000 andil #4096,%d0 <== NOT EXECUTED 448cc: 6618 bnes 448e6 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 448ce: 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); 448d2: 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); 448d4: 0880 000a bclr #10,%d0 <== NOT EXECUTED 448d8: 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); 448dc: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 448e0: c083 andl %d3,%d0 <== NOT EXECUTED 448e2: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 448e6: 202a 00b8 movel %a2@(184),%d0 448ea: 0800 0008 btst #8,%d0 448ee: 6738 beqs 44928 448f0: 4aaa 0038 tstl %a2@(56) <== NOT EXECUTED 448f4: 6d00 01e4 bltw 44ada <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 448f8: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 448fc: 0880 0008 bclr #8,%d0 <== NOT EXECUTED 44900: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 44904: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44908: 44c0 movew %d0,%ccr <== NOT EXECUTED 4490a: 6610 bnes 4491c <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 4490c: 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) && 44910: 4a88 tstl %a0 <== NOT EXECUTED 44912: 6708 beqs 4491c <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 44914: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44918: 4e90 jsr %a0@ <== NOT EXECUTED 4491a: 588f addql #4,%sp <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 4491c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44920: 72fb moveq #-5,%d1 <== NOT EXECUTED 44922: c081 andl %d1,%d0 <== NOT EXECUTED 44924: 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) { 44928: 4aaa 0038 tstl %a2@(56) 4492c: 6d00 01ac bltw 44ada tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 44930: 202a 0030 movel %a2@(48),%d0 44934: 0800 000c btst #12,%d0 44938: 670c beqs 44946 tty->flow_ctrl |= FL_MDXOF; 4493a: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 4493e: 08c1 000a bset #10,%d1 <== NOT EXECUTED 44942: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 44946: 0800 000a btst #10,%d0 4494a: 670c beqs 44958 tty->flow_ctrl |= FL_MDXON; 4494c: 202a 00b8 movel %a2@(184),%d0 44950: 08c0 0009 bset #9,%d0 44954: 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) { 44958: 7002 moveq #2,%d0 4495a: c0aa 003c andl %a2@(60),%d0 4495e: 6700 011e beqw 44a7e else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 44962: 42aa 006c clrl %a2@(108) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 44966: 42aa 0070 clrl %a2@(112) else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 4496a: 206a 00a8 moveal %a2@(168),%a0 } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 4496e: 42aa 0074 clrl %a2@(116) else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 44972: 4a88 tstl %a0 44974: 6700 fe20 beqw 44796 (*tty->device.setAttributes)(tty->minor, &tty->termios); 44978: 2f0c movel %a4,%sp@- 4497a: 2f2a 0010 movel %a2@(16),%sp@- 4497e: 4e90 jsr %a0@ 44980: 508f addql #8,%sp /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44982: 2f2a 0018 movel %a2@(24),%sp@- 44986: 4eb9 0004 5e68 jsr 45e68 args->ioctl_return = sc; return sc; 4498c: 588f addql #4,%sp 4498e: 6000 fe12 braw 447a2 case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 44992: 2014 movel %a4@,%d0 <== NOT EXECUTED 44994: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 44998: 2540 00d4 movel %d0,%a2@(212) <== NOT EXECUTED 4499c: 2541 00d8 movel %d1,%a2@(216) <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 449a0: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 449a4: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 449aa: 588f addql #4,%sp <== NOT EXECUTED 449ac: 6000 fdf4 braw 447a2 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 449b0: 123c 0001 moveb #1,%d1 449b4: b280 cmpl %d0,%d1 449b6: 6600 fe0e bnew 447c6 sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 449ba: 206b 0008 moveal %a3@(8),%a0 449be: 20ea 0030 movel %a2@(48),%a0@+ 449c2: 20ea 0034 movel %a2@(52),%a0@+ 449c6: 20ea 0038 movel %a2@(56),%a0@+ 449ca: 20ea 003c movel %a2@(60),%a0@+ 449ce: 20ea 0040 movel %a2@(64),%a0@+ 449d2: 20ea 0044 movel %a2@(68),%a0@+ 449d6: 20ea 0048 movel %a2@(72),%a0@+ 449da: 20ea 004c movel %a2@(76),%a0@+ 449de: 20aa 0050 movel %a2@(80),%a0@ /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 449e2: 2f2a 0018 movel %a2@(24),%sp@- 449e6: 4eb9 0004 5e68 jsr 45e68 args->ioctl_return = sc; return sc; 449ec: 588f addql #4,%sp 449ee: 6000 fdb2 braw 447a2 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 449f2: 0c80 4004 741a cmpil #1074033690,%d0 <== NOT EXECUTED 449f8: 675a beqs 44a54 <== NOT EXECUTED 449fa: 0c80 8004 741b cmpil #-2147191781,%d0 <== NOT EXECUTED 44a00: 6600 fdc4 bnew 447c6 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 44a04: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 44a08: 49f9 0005 e7f4 lea 5e7f4 ,%a4 <== NOT EXECUTED 44a0e: e788 lsll #3,%d0 <== NOT EXECUTED 44a10: 2074 0c04 moveal %a4@(00000004,%d0:l:4),%a0 <== NOT EXECUTED 44a14: 4a88 tstl %a0 <== NOT EXECUTED 44a16: 6708 beqs 44a20 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 44a18: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44a1a: 4e90 jsr %a0@ <== NOT EXECUTED 44a1c: 588f addql #4,%sp <== NOT EXECUTED 44a1e: 2400 movel %d0,%d2 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 44a20: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 44a24: 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) { 44a26: 2200 movel %d0,%d1 <== NOT EXECUTED 44a28: 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); 44a2a: 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) { 44a2e: 2074 1800 moveal %a4@(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 */ 44a32: 42aa 00d0 clrl %a2@(208) <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 44a36: 4a88 tstl %a0 <== NOT EXECUTED 44a38: 6700 fd5c beqw 44796 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 44a3c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44a3e: 4e90 jsr %a0@ <== NOT EXECUTED 44a40: 588f addql #4,%sp <== NOT EXECUTED 44a42: 2400 movel %d0,%d2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44a44: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44a48: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 44a4e: 588f addql #4,%sp <== NOT EXECUTED 44a50: 6000 fd50 braw 447a2 <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 44a54: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 44a58: 20aa 00cc movel %a2@(204),%a0@ <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44a5c: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44a60: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 44a66: 588f addql #4,%sp <== NOT EXECUTED 44a68: 6000 fd38 braw 447a2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44a6c: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 44a70: 740a moveq #10,%d2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44a72: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED args->ioctl_return = sc; return sc; 44a78: 588f addql #4,%sp <== NOT EXECUTED 44a7a: 6000 fd26 braw 447a2 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; 44a7e: 4283 clrl %d3 <== NOT EXECUTED 44a80: 162a 0046 moveb %a2@(70),%d3 <== NOT EXECUTED 44a84: 4eb9 0004 55e4 jsr 455e4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 44a8a: 4c03 0800 mulsl %d3,%d0 <== NOT EXECUTED 44a8e: 760a moveq #10,%d3 <== NOT EXECUTED 44a90: 4c43 0000 remul %d3,%d0,%d0 <== NOT EXECUTED 44a94: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 44a98: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 44a9c: 677a beqs 44b18 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 44a9e: 42aa 006c clrl %a2@(108) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 44aa2: 2540 0070 movel %d0,%a2@(112) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) 44aa6: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 44aaa: 6600 febe bnew 4496a <== NOT EXECUTED else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 44aae: 206a 00a8 moveal %a2@(168),%a0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 44ab2: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 44ab6: 4a88 tstl %a0 <== NOT EXECUTED 44ab8: 6600 febe bnew 44978 <== NOT EXECUTED 44abc: 6000 fcd8 braw 44796 <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 44ac0: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 44ac4: d081 addl %d1,%d0 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 44ac6: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 44aca: 92aa 0024 subl %a2@(36),%d1 <== NOT EXECUTED 44ace: d280 addl %d0,%d1 <== NOT EXECUTED 44ad0: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 44ad4: 2081 movel %d1,%a0@ <== NOT EXECUTED 44ad6: 6000 fd56 braw 4482e <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; 44ada: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44ade: 08c0 0008 bset #8,%d0 <== NOT EXECUTED 44ae2: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 44ae6: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 44aea: 0800 000c btst #12,%d0 <== NOT EXECUTED 44aee: 6700 fe56 beqw 44946 <== NOT EXECUTED 44af2: 6000 fe46 braw 4493a <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 44af6: 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, 44afa: 4878 0001 pea 1 <== NOT EXECUTED 44afe: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 44b02: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44b04: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44b08: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 44b0c: 4e90 jsr %a0@ <== NOT EXECUTED 44b0e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 44b12: 46c3 movew %d3,%sr <== NOT EXECUTED 44b14: 6000 fda2 braw 448b8 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 44b18: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 44b1c: 6600 fe44 bnew 44962 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 44b20: 7001 moveq #1,%d0 <== NOT EXECUTED } } } if (tty->device.setAttributes) 44b22: 206a 00a8 moveal %a2@(168),%a0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 44b26: 2540 006c movel %d0,%a2@(108) <== NOT EXECUTED } } } if (tty->device.setAttributes) 44b2a: 4a88 tstl %a0 <== NOT EXECUTED 44b2c: 6600 fe4a bnew 44978 <== NOT EXECUTED 44b30: 6000 fc64 braw 44796 <== NOT EXECUTED 000448d0 : #include int rtems_termios_number_to_baud( int32_t baud ) { 448d0: 4e56 0000 linkw %fp,#0 448d4: 222e 0008 movel %fp@(8),%d1 int termios_baud; switch (baud) { 448d8: 0c81 0000 04b0 cmpil #1200,%d1 448de: 6700 011c beqw 449fc 448e2: 6f3c bles 44920 448e4: 0c81 0000 4b00 cmpil #19200,%d1 448ea: 6700 011c beqw 44a08 448ee: 6f60 bles 44950 case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; 448f0: 203c 0000 1002 movel #4098,%d0 int32_t baud ) { int termios_baud; switch (baud) { 448f6: 0c81 0001 c200 cmpil #115200,%d1 448fc: 671e beqs 4491c 448fe: 6f00 00a8 blew 449a8 case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; 44902: 203c 0000 1003 movel #4099,%d0 int32_t baud ) { int termios_baud; switch (baud) { 44908: 0c81 0003 8400 cmpil #230400,%d1 4490e: 670c beqs 4491c case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; 44910: 5280 addql #1,%d0 int32_t baud ) { int termios_baud; switch (baud) { 44912: 0c81 0007 0800 cmpil #460800,%d1 44918: 6702 beqs 4491c case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; case 460800: termios_baud = B460800; break; 4491a: 70ff moveq #-1,%d0 default: termios_baud = -1; break; } return termios_baud; } 4491c: 4e5e unlk %fp 4491e: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 44920: 0c81 0000 0086 cmpil #134,%d1 44926: 6700 00da beqw 44a02 4492a: 6f46 bles 44972 4492c: 0c81 0000 00c8 cmpil #200,%d1 44932: 6700 00b6 beqw 449ea 44936: 6f56 bles 4498e 44938: 0c81 0000 012c cmpil #300,%d1 4493e: 6700 00a4 beqw 449e4 44942: 0c81 0000 0258 cmpil #600,%d1 44948: 66d0 bnes 4491a case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; 4494a: 7008 moveq #8,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 4494c: 4e5e unlk %fp 4494e: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 44950: 0c81 0000 0960 cmpil #2400,%d1 44956: 6700 009e beqw 449f6 4495a: 6f66 bles 449c2 4495c: 0c81 0000 12c0 cmpil #4800,%d1 44962: 676e beqs 449d2 44964: 0c81 0000 2580 cmpil #9600,%d1 4496a: 66ae bnes 4491a case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; 4496c: 700d moveq #13,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 4496e: 4e5e unlk %fp 44970: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 44972: 7032 moveq #50,%d0 44974: b081 cmpl %d1,%d0 44976: 6778 beqs 449f0 44978: 6c22 bges 4499c 4497a: 704b moveq #75,%d0 4497c: b081 cmpl %d1,%d0 4497e: 6758 beqs 449d8 44980: 103c 006e moveb #110,%d0 44984: b081 cmpl %d1,%d0 44986: 6692 bnes 4491a case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; 44988: 7003 moveq #3,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 4498a: 4e5e unlk %fp 4498c: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 4498e: 0c81 0000 0096 cmpil #150,%d1 44994: 6684 bnes 4491a case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; 44996: 7005 moveq #5,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 44998: 4e5e unlk %fp 4499a: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 4499c: 4a81 tstl %d1 4499e: 6600 ff7a bnew 4491a 449a2: 4280 clrl %d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449a4: 4e5e unlk %fp 449a6: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 449a8: 0c81 0000 9600 cmpil #38400,%d1 449ae: 672e beqs 449de case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; 449b0: 5380 subql #1,%d0 int32_t baud ) { int termios_baud; switch (baud) { 449b2: 0c81 0000 e100 cmpil #57600,%d1 449b8: 6700 ff62 beqw 4491c case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; case 460800: termios_baud = B460800; break; 449bc: 70ff moveq #-1,%d0 <== NOT EXECUTED 449be: 6000 ff5c braw 4491c <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 449c2: 0c81 0000 0708 cmpil #1800,%d1 449c8: 6600 ff50 bnew 4491a case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; 449cc: 700a moveq #10,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449ce: 4e5e unlk %fp 449d0: 4e75 rts case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; 449d2: 700c moveq #12,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449d4: 4e5e unlk %fp 449d6: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 449d8: 7002 moveq #2,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449da: 4e5e unlk %fp 449dc: 4e75 rts case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; 449de: 700f moveq #15,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449e0: 4e5e unlk %fp 449e2: 4e75 rts case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; 449e4: 7007 moveq #7,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449e6: 4e5e unlk %fp 449e8: 4e75 rts case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; 449ea: 7006 moveq #6,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449ec: 4e5e unlk %fp 449ee: 4e75 rts int32_t baud ) { int termios_baud; switch (baud) { 449f0: 7001 moveq #1,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449f2: 4e5e unlk %fp 449f4: 4e75 rts case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; 449f6: 700b moveq #11,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449f8: 4e5e unlk %fp 449fa: 4e75 rts case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; 449fc: 7009 moveq #9,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 449fe: 4e5e unlk %fp 44a00: 4e75 rts switch (baud) { case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; 44a02: 7004 moveq #4,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 44a04: 4e5e unlk %fp 44a06: 4e75 rts case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; 44a08: 700e moveq #14,%d0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 44a0a: 4e5e unlk %fp 44a0c: 4e75 rts ... 00044ce2 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44ce2: 4e56 ffdc linkw %fp,#-36 44ce6: 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, 44cea: 42a7 clrl %sp@- rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44cec: 242e 0008 movel %fp@(8),%d2 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44cf0: 42a7 clrl %sp@- 44cf2: 2f39 0005 f038 movel 5f038 ,%sp@- rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44cf8: 262e 000c movel %fp@(12),%d3 44cfc: 266e 0010 moveal %fp@(16),%a3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44d00: 4eb9 0004 5d2c jsr 45d2c RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 44d06: 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, 44d0a: 2800 movel %d0,%d4 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 44d0c: 6600 027a bnew 44f88 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 44d10: 2479 0005 f040 moveal 5f040 ,%a2 44d16: 4a8a tstl %a2 44d18: 670e beqs 44d28 if ((tty->major == major) && (tty->minor == minor)) 44d1a: b4aa 000c cmpl %a2@(12),%d2 44d1e: 6700 0274 beqw 44f94 */ 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) { 44d22: 2452 moveal %a2@,%a2 44d24: 4a8a tstl %a2 44d26: 66f2 bnes 44d1a static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 44d28: 4878 00e8 pea e8 44d2c: 4878 0001 pea 1 44d30: 4eb9 0004 a59c jsr 4a59c if (tty == NULL) { 44d36: 508f addql #8,%sp static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 44d38: 2840 moveal %d0,%a4 44d3a: 2440 moveal %d0,%a2 if (tty == NULL) { 44d3c: 4a80 tstl %d0 44d3e: 6700 0348 beqw 45088 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 44d42: 41f9 0005 d9f8 lea 5d9f8 ,%a0 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44d48: 4bf9 0004 ac20 lea 4ac20 ,%a5 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 44d4e: 2950 0064 movel %a0@,%a4@(100) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44d52: 202c 0064 movel %a4@(100),%d0 44d56: 2f00 movel %d0,%sp@- 44d58: 4e95 jsr %a5@ if (tty->rawInBuf.theBuf == NULL) { 44d5a: 588f addql #4,%sp } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44d5c: 2940 0058 movel %d0,%a4@(88) if (tty->rawInBuf.theBuf == NULL) { 44d60: 6700 0342 beqw 450a4 return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 44d64: 41f9 0005 d9fc lea 5d9fc ,%a0 44d6a: 2950 0088 movel %a0@,%a4@(136) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 44d6e: 202c 0088 movel %a4@(136),%d0 44d72: 2f00 movel %d0,%sp@- 44d74: 4e95 jsr %a5@ if (tty->rawOutBuf.theBuf == NULL) { 44d76: 588f addql #4,%sp } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 44d78: 2940 007c movel %d0,%a4@(124) if (tty->rawOutBuf.theBuf == NULL) { 44d7c: 6700 034a beqw 450c8 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 44d80: 2f39 0005 d9f4 movel 5d9f4 ,%sp@- 44d86: 4e95 jsr %a5@ if (tty->cbuf == NULL) { 44d88: 588f addql #4,%sp return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 44d8a: 2940 001c movel %d0,%a4@(28) if (tty->cbuf == NULL) { 44d8e: 6700 0366 beqw 450f6 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 44d92: 2079 0005 f040 moveal 5f040 ,%a0 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 44d98: 42ac 00d4 clrl %a4@(212) tty->tty_snd.sw_arg = NULL; 44d9c: 42ac 00d8 clrl %a4@(216) tty->tty_rcv.sw_pfn = NULL; 44da0: 42ac 00dc clrl %a4@(220) tty->tty_rcv.sw_arg = NULL; 44da4: 42ac 00e0 clrl %a4@(224) tty->tty_rcvwakeup = 0; 44da8: 42ac 00e4 clrl %a4@(228) /* * link tty */ tty->forw = rtems_termios_ttyHead; 44dac: 2888 movel %a0,%a4@ tty->back = NULL; 44dae: 42ac 0004 clrl %a4@(4) if (rtems_termios_ttyHead != NULL) 44db2: 4a88 tstl %a0 44db4: 6704 beqs 44dba rtems_termios_ttyHead->back = tty; 44db6: 214c 0004 movel %a4,%a0@(4) rtems_termios_ttyHead = tty; 44dba: 23cc 0005 f040 movel %a4,5f040 if (rtems_termios_ttyTail == NULL) 44dc0: 4ab9 0005 f03c tstl 5f03c 44dc6: 6700 02b6 beqw 4507e tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 44dca: 486c 0014 pea %a4@(20) 44dce: 4bf9 0004 5a8c lea 45a8c ,%a5 44dd4: 1039 0005 da00 moveb 5da00 ,%d0 44dda: 42a7 clrl %sp@- 44ddc: 4878 0054 pea 54 44de0: 49c0 extbl %d0 44de2: 4878 0001 pea 1 44de6: 0080 5452 6900 oril #1414686976,%d0 44dec: 2f00 movel %d0,%sp@- rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 44dee: 2943 0010 movel %d3,%a4@(16) tty->major = major; 44df2: 2942 000c movel %d2,%a4@(12) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 44df6: 4e95 jsr %a5@ 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) 44df8: 4fef 0014 lea %sp@(20),%sp 44dfc: 4a80 tstl %d0 44dfe: 6600 020c bnew 4500c rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 44e02: 486c 0018 pea %a4@(24) 44e06: 1039 0005 da00 moveb 5da00 ,%d0 44e0c: 42a7 clrl %sp@- 44e0e: 4878 0054 pea 54 44e12: 49c0 extbl %d0 44e14: 4878 0001 pea 1 44e18: 0080 5452 6f00 oril #1414688512,%d0 44e1e: 2f00 movel %d0,%sp@- 44e20: 4e95 jsr %a5@ 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) 44e22: 4fef 0014 lea %sp@(20),%sp 44e26: 4a80 tstl %d0 44e28: 6600 01e2 bnew 4500c rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 44e2c: 486c 008c pea %a4@(140) 44e30: 1039 0005 da00 moveb 5da00 ,%d0 44e36: 42a7 clrl %sp@- 44e38: 4878 0020 pea 20 44e3c: 49c0 extbl %d0 44e3e: 0080 5452 7800 oril #1414690816,%d0 44e44: 42a7 clrl %sp@- 44e46: 2f00 movel %d0,%sp@- 44e48: 4e95 jsr %a5@ rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 44e4a: 4fef 0014 lea %sp@(20),%sp 44e4e: 4a80 tstl %d0 44e50: 6600 01ba bnew 4500c tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 44e54: 226e 0014 moveal %fp@(20),%a1 44e58: 41ec 0098 lea %a4@(152),%a0 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44e5c: 7002 moveq #2,%d0 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 44e5e: 20d9 movel %a1@+,%a0@+ 44e60: 20d9 movel %a1@+,%a0@+ 44e62: 20d9 movel %a1@+,%a0@+ 44e64: 20d9 movel %a1@+,%a0@+ 44e66: 20d9 movel %a1@+,%a0@+ 44e68: 20d9 movel %a1@+,%a0@+ 44e6a: 20d9 movel %a1@+,%a0@+ 44e6c: 2091 movel %a1@,%a0@ RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 44e6e: 42ac 0094 clrl %a4@(148) tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44e72: b0ac 00b4 cmpl %a4@(180),%d0 44e76: 6700 019c beqw 45014 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 44e7a: 4aac 00a0 tstl %a4@(160) 44e7e: 6700 0164 beqw 44fe4 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 44e82: 7202 moveq #2,%d1 44e84: b2ac 00b4 cmpl %a4@(180),%d1 44e88: 6700 015a beqw 44fe4 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; 44e8c: 42ac 00b8 clrl %a4@(184) /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 44e90: 202c 0064 movel %a4@(100),%d0 tty->highwater = tty->rawInBuf.Size * 3/4; 44e94: 206c 0064 moveal %a4@(100),%a0 /* 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; 44e98: e288 lsrl #1,%d0 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44e9a: 1239 0005 da00 moveb 5da00 ,%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; 44ea0: 41f0 8a00 lea %a0@(00000000,%a0:l:2),%a0 /* * Bump name characer */ if (c++ == 'z') 44ea4: 49c1 extbl %d1 44ea6: 2a41 moveal %d1,%a5 44ea8: 528d addql #1,%a5 44eaa: 2241 moveal %d1,%a1 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; 44eac: 2208 movel %a0,%d1 44eae: e489 lsrl #2,%d1 /* * 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; 44eb0: 307c 08bd moveaw #2237,%a0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44eb4: 3a0d movew %a5,%d5 44eb6: 13c5 0005 da00 moveb %d5,5da00 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'; 44ebc: 7a03 moveq #3,%d5 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; 44ebe: 2941 00c0 movel %d1,%a4@(192) 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'; 44ec2: 1945 0041 moveb %d5,%a4@(65) tty->termios.c_cc[VQUIT] = '\034'; 44ec6: 7a1c moveq #28,%d5 /* 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; 44ec8: 2940 00bc movel %d0,%a4@(188) 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'; 44ecc: 1945 0042 moveb %d5,%a4@(66) tty->termios.c_cc[VERASE] = '\177'; 44ed0: 7a7f moveq #127,%d5 /* * 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; 44ed2: 2948 0038 movel %a0,%a4@(56) 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'; 44ed6: 1945 0043 moveb %d5,%a4@(67) tty->termios.c_cc[VKILL] = '\025'; 44eda: 7a15 moveq #21,%d5 tty->termios.c_cc[VEOF] = '\004'; 44edc: 7204 moveq #4,%d1 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'; 44ede: 1945 0044 moveb %d5,%a4@(68) tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; 44ee2: 4205 clrb %d5 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 44ee4: 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'; 44ee6: 1941 0045 moveb %d1,%a4@(69) tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; 44eea: 7213 moveq #19,%d1 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'; 44eec: 1945 004c moveb %d5,%a4@(76) tty->termios.c_cc[VEOL2] = '\000'; 44ef0: 1945 0051 moveb %d5,%a4@(81) tty->termios.c_cc[VSTART] = '\021'; 44ef4: 1940 0049 moveb %d0,%a4@(73) tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; 44ef8: 7a1a moveq #26,%d5 tty->termios.c_cc[VREPRINT] = '\022'; 44efa: 7012 moveq #18,%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'; 44efc: 1941 004a moveb %d1,%a4@(74) tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; 44f00: 720f moveq #15,%d1 tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; 44f02: 1945 004b moveb %d5,%a4@(75) tty->termios.c_cc[VREPRINT] = '\022'; 44f06: 1940 004d moveb %d0,%a4@(77) tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 44f0a: 7a17 moveq #23,%d5 tty->termios.c_cc[VLNEXT] = '\026'; 44f0c: 7016 moveq #22,%d0 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; 44f0e: 1941 004e moveb %d1,%a4@(78) } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 44f12: 223c 0000 2502 movel #9474,%d1 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'; 44f18: 1945 004f moveb %d5,%a4@(79) tty->termios.c_cc[VLNEXT] = '\026'; 44f1c: 1940 0050 moveb %d0,%a4@(80) } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 44f20: 2941 0030 movel %d1,%a4@(48) tty->termios.c_oflag = OPOST | ONLCR | XTABS; 44f24: 2a3c 0000 1805 movel #6149,%d5 44f2a: 2945 0034 movel %d5,%a4@(52) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 44f2e: 203c 0000 823b movel #33339,%d0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44f34: 323c 007a movew #122,%d1 * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 44f38: 2940 003c movel %d0,%a4@(60) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44f3c: b289 cmpl %a1,%d1 44f3e: 6608 bnes 44f48 c = 'a'; 44f40: 7a61 moveq #97,%d5 <== NOT EXECUTED 44f42: 13c5 0005 da00 moveb %d5,5da00 <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { 44f48: 202a 0008 movel %a2@(8),%d0 44f4c: 2200 movel %d0,%d1 44f4e: 5281 addql #1,%d1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 44f50: 2053 moveal %a3@,%a0 if (!tty->refcount++) { 44f52: 2541 0008 movel %d1,%a2@(8) */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 44f56: 214a 0034 movel %a2,%a0@(52) if (!tty->refcount++) { 44f5a: 4a80 tstl %d0 44f5c: 661c bnes 44f7a if (tty->device.firstOpen) 44f5e: 206a 0098 moveal %a2@(152),%a0 44f62: 4a88 tstl %a0 44f64: 670c beqs 44f72 (*tty->device.firstOpen)(major, minor, arg); 44f66: 2f0b movel %a3,%sp@- 44f68: 2f03 movel %d3,%sp@- 44f6a: 2f02 movel %d2,%sp@- 44f6c: 4e90 jsr %a0@ 44f6e: 4fef 000c lea %sp@(12),%sp /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44f72: 7a02 moveq #2,%d5 44f74: baaa 00b4 cmpl %a2@(180),%d5 44f78: 672c beqs 44fa6 (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 44f7a: 2f39 0005 f038 movel 5f038 ,%sp@- 44f80: 4eb9 0004 5e68 jsr 45e68 return RTEMS_SUCCESSFUL; 44f86: 588f addql #4,%sp } 44f88: 2004 movel %d4,%d0 44f8a: 4cee 3c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a5 44f90: 4e5e unlk %fp 44f92: 4e75 rts 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) { if ((tty->major == major) && (tty->minor == minor)) 44f94: b6aa 0010 cmpl %a2@(16),%d3 44f98: 67ae beqs 44f48 */ 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) { 44f9a: 2452 moveal %a2@,%a2 <== NOT EXECUTED 44f9c: 4a8a tstl %a2 <== NOT EXECUTED 44f9e: 6600 fd7a bnew 44d1a <== NOT EXECUTED 44fa2: 6000 fd84 braw 44d28 <== NOT EXECUTED (*tty->device.firstOpen)(major, minor, arg); /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_start(tty->rxTaskId, 44fa6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44fa8: 487a 0202 pea %pc@(451ac ) <== NOT EXECUTED 44fac: 47f9 0004 61d8 lea 461d8 ,%a3 <== NOT EXECUTED 44fb2: 2f2a 00c4 movel %a2@(196),%sp@- <== NOT EXECUTED 44fb6: 4e93 jsr %a3@ <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 44fb8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 44fbc: 4a80 tstl %d0 <== NOT EXECUTED 44fbe: 664c bnes 4500c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 44fc0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44fc2: 487a 0166 pea %pc@(4512a ) <== NOT EXECUTED 44fc6: 2f2a 00c8 movel %a2@(200),%sp@- <== NOT EXECUTED 44fca: 4e93 jsr %a3@ <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 44fcc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 44fd0: 4a80 tstl %d0 <== NOT EXECUTED 44fd2: 6638 bnes 4500c <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 44fd4: 2f39 0005 f038 movel 5f038 ,%sp@- <== NOT EXECUTED 44fda: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 44fe0: 588f addql #4,%sp <== NOT EXECUTED 44fe2: 60a4 bras 44f88 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 44fe4: 486c 0068 pea %a4@(104) 44fe8: 1039 0005 da00 moveb 5da00 ,%d0 44fee: 42a7 clrl %sp@- 44ff0: 4878 0024 pea 24 44ff4: 49c0 extbl %d0 44ff6: 0080 5452 7200 oril #1414689280,%d0 44ffc: 42a7 clrl %sp@- 44ffe: 2f00 movel %d0,%sp@- 45000: 4e95 jsr %a5@ rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 45002: 4fef 0014 lea %sp@(20),%sp 45006: 4a80 tstl %d0 45008: 6700 fe82 beqw 44e8c sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 4500c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4500e: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 45014: 486c 00c8 pea %a4@(200) <== NOT EXECUTED 45018: 41f9 0004 5f24 lea 45f24 ,%a0 <== NOT EXECUTED 4501e: 1039 0005 da00 moveb 5da00 ,%d0 <== NOT EXECUTED 45024: 42a7 clrl %sp@- <== NOT EXECUTED 45026: 4878 0500 pea 500 <== NOT EXECUTED 4502a: 49c0 extbl %d0 <== NOT EXECUTED 4502c: 4878 0400 pea 400 <== NOT EXECUTED 45030: 4878 000a pea a <== NOT EXECUTED 45034: 0080 5478 5400 oril #1417171968,%d0 <== NOT EXECUTED 4503a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4503c: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED 45040: 4e90 jsr %a0@ <== 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) 45042: 206e fffc moveal %fp@(-4),%a0 <== NOT EXECUTED 45046: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4504a: 4a80 tstl %d0 <== NOT EXECUTED 4504c: 66be bnes 4500c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 4504e: 486c 00c4 pea %a4@(196) <== NOT EXECUTED 45052: 1039 0005 da00 moveb 5da00 ,%d0 <== NOT EXECUTED 45058: 42a7 clrl %sp@- <== NOT EXECUTED 4505a: 4878 0500 pea 500 <== NOT EXECUTED 4505e: 49c0 extbl %d0 <== NOT EXECUTED 45060: 4878 0400 pea 400 <== NOT EXECUTED 45064: 4878 0009 pea 9 <== NOT EXECUTED 45068: 0080 5278 5400 oril #1383617536,%d0 <== NOT EXECUTED 4506e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45070: 4e90 jsr %a0@ <== 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) 45072: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 45076: 4a80 tstl %d0 <== NOT EXECUTED 45078: 6700 fe00 beqw 44e7a <== NOT EXECUTED 4507c: 608e bras 4500c <== NOT EXECUTED tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; 4507e: 23cc 0005 f03c movel %a4,5f03c 45084: 6000 fd44 braw 44dca /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); if (tty == NULL) { rtems_semaphore_release (rtems_termios_ttyMutex); 45088: 2f39 0005 f038 movel 5f038 ,%sp@- <== NOT EXECUTED 4508e: 781a moveq #26,%d4 <== NOT EXECUTED 45090: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return RTEMS_NO_MEMORY; 45096: 588f addql #4,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 45098: 2004 movel %d4,%d0 <== NOT EXECUTED 4509a: 4cee 3c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a5 <== NOT EXECUTED 450a0: 4e5e unlk %fp <== NOT EXECUTED 450a2: 4e75 rts <== 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); 450a4: 2f0c movel %a4,%sp@- <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 450a6: 781a moveq #26,%d4 <== 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); 450a8: 4eb9 0004 a688 jsr 4a688 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 450ae: 2f39 0005 f038 movel 5f038 ,%sp@- <== NOT EXECUTED 450b4: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return RTEMS_NO_MEMORY; 450ba: 508f addql #8,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 450bc: 2004 movel %d4,%d0 <== NOT EXECUTED 450be: 4cee 3c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a5 <== NOT EXECUTED 450c4: 4e5e unlk %fp <== NOT EXECUTED 450c6: 4e75 rts <== 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)); 450c8: 2f2c 0058 movel %a4@(88),%sp@- <== NOT EXECUTED 450cc: 45f9 0004 a688 lea 4a688 ,%a2 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 450d2: 781a moveq #26,%d4 <== 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)); 450d4: 4e92 jsr %a2@ <== NOT EXECUTED free(tty); 450d6: 2f0c movel %a4,%sp@- <== NOT EXECUTED 450d8: 4e92 jsr %a2@ <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 450da: 2f39 0005 f038 movel 5f038 ,%sp@- <== NOT EXECUTED 450e0: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return RTEMS_NO_MEMORY; 450e6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 450ea: 2004 movel %d4,%d0 <== NOT EXECUTED 450ec: 4cee 3c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a5 <== NOT EXECUTED 450f2: 4e5e unlk %fp <== NOT EXECUTED 450f4: 4e75 rts <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 450f6: 2f2c 007c movel %a4@(124),%sp@- <== NOT EXECUTED 450fa: 45f9 0004 a688 lea 4a688 ,%a2 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 45100: 781a moveq #26,%d4 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 45102: 4e92 jsr %a2@ <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 45104: 2f2c 0058 movel %a4@(88),%sp@- <== NOT EXECUTED 45108: 4e92 jsr %a2@ <== NOT EXECUTED free(tty); 4510a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4510c: 4e92 jsr %a2@ <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 4510e: 2f39 0005 f038 movel 5f038 ,%sp@- <== NOT EXECUTED 45114: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return RTEMS_NO_MEMORY; 4511a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 4511e: 2004 movel %d4,%d0 <== NOT EXECUTED 45120: 4cee 3c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a5 <== NOT EXECUTED 45126: 4e5e unlk %fp <== NOT EXECUTED 45128: 4e75 rts 00043ac4 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 43ac4: 4e56 ffdc linkw %fp,#-36 43ac8: 202e 0008 movel %fp@(8),%d0 43acc: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ 43ad0: 242e 000c movel %fp@(12),%d2 const unsigned char *buf = _buf; 43ad4: 2840 moveal %d0,%a4 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 43ad6: 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) { 43ada: 4aaa 00b4 tstl %a2@(180) 43ade: 6700 00e8 beqw 43bc8 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 43ae2: 2c2a 0080 movel %a2@(128),%d6 while (len) { 43ae6: 4a82 tstl %d2 43ae8: 6700 00d4 beqw 43bbe * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43aec: 222a 0088 movel %a2@(136),%d1 43af0: 5286 addql #1,%d6 rtems_interrupt_disable (level); 43af2: 2a3c 0000 0700 movel #1792,%d5 43af8: 47f9 0004 5d2c lea 45d2c ,%a3 43afe: 2005 movel %d5,%d0 * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43b00: 4c41 6007 remul %d1,%d7,%d6 43b04: 2c07 movel %d7,%d6 rtems_interrupt_disable (level); 43b06: 40c3 movew %sr,%d3 43b08: 8083 orl %d3,%d0 43b0a: 46c0 movew %d0,%sr while (newHead == tty->rawOutBuf.Tail) { 43b0c: 282a 0084 movel %a2@(132),%d4 43b10: be84 cmpl %d4,%d7 43b12: 662c bnes 43b40 tty->rawOutBufState = rob_wait; 43b14: 7002 moveq #2,%d0 43b16: 2540 0094 movel %d0,%a2@(148) rtems_interrupt_enable (level); 43b1a: 46c3 movew %d3,%sr sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 43b1c: 42a7 clrl %sp@- 43b1e: 42a7 clrl %sp@- 43b20: 2f2a 008c movel %a2@(140),%sp@- 43b24: 4e93 jsr %a3@ RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 43b26: 4fef 000c lea %sp@(12),%sp 43b2a: 4a80 tstl %d0 43b2c: 6600 00b6 bnew 43be4 rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 43b30: 2005 movel %d5,%d0 43b32: 40c3 movew %sr,%d3 43b34: 8083 orl %d3,%d0 43b36: 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) { 43b38: 202a 0084 movel %a2@(132),%d0 43b3c: b880 cmpl %d0,%d4 43b3e: 67d4 beqs 43b14 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 43b40: 202a 0080 movel %a2@(128),%d0 43b44: 206a 007c moveal %a2@(124),%a0 43b48: 1194 0800 moveb %a4@,%a0@(00000000,%d0:l) tty->rawOutBuf.Head = newHead; 43b4c: 2547 0080 movel %d7,%a2@(128) if (tty->rawOutBufState == rob_idle) { 43b50: 4aaa 0094 tstl %a2@(148) 43b54: 661c bnes 43b72 /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 43b56: 202a 00b8 movel %a2@(184),%d0 43b5a: 0800 0004 btst #4,%d0 43b5e: 673a beqs 43b9a (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; 43b60: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43b64: 7220 moveq #32,%d1 <== NOT EXECUTED 43b66: 8081 orl %d1,%d0 <== NOT EXECUTED 43b68: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 43b6c: 7001 moveq #1,%d0 <== NOT EXECUTED 43b6e: 2540 0094 movel %d0,%a2@(148) <== NOT EXECUTED } rtems_interrupt_enable (level); 43b72: 46c3 movew %d3,%sr len--; 43b74: 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) { 43b76: 6746 beqs 43bbe * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43b78: 222a 0088 movel %a2@(136),%d1 43b7c: 5286 addql #1,%d6 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 43b7e: 528c addql #1,%a4 * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); 43b80: 2005 movel %d5,%d0 * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43b82: 4c41 6007 remul %d1,%d7,%d6 43b86: 2c07 movel %d7,%d6 rtems_interrupt_disable (level); 43b88: 40c3 movew %sr,%d3 43b8a: 8083 orl %d3,%d0 43b8c: 46c0 movew %d0,%sr while (newHead == tty->rawOutBuf.Tail) { 43b8e: 282a 0084 movel %a2@(132),%d4 43b92: be84 cmpl %d4,%d7 43b94: 6700 ff7e beqw 43b14 43b98: 60a6 bras 43b40 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, 43b9a: 4878 0001 pea 1 (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 43b9e: 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, 43ba2: d0aa 007c addl %a2@(124),%d0 43ba6: 2f00 movel %d0,%sp@- 43ba8: 2f2a 0010 movel %a2@(16),%sp@- 43bac: 206a 00a4 moveal %a2@(164),%a0 43bb0: 4e90 jsr %a0@ 43bb2: 4fef 000c lea %sp@(12),%sp } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 43bb6: 7001 moveq #1,%d0 43bb8: 2540 0094 movel %d0,%a2@(148) 43bbc: 60b4 bras 43b72 } rtems_interrupt_enable (level); len--; } } 43bbe: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 43bc4: 4e5e unlk %fp 43bc6: 4e75 rts 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); 43bc8: 226a 00a4 moveal %a2@(164),%a1 <== NOT EXECUTED 43bcc: 2d6a 0010 0008 movel %a2@(16),%fp@(8) <== NOT EXECUTED 43bd2: 2d42 0010 movel %d2,%fp@(16) <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43bd6: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%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); 43bdc: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43be0: 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); 43be2: 4ed1 jmp %a1@ <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 43be4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43be6: 4eb9 0004 6458 jsr 46458 <== NOT EXECUTED 0004441e : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 4441e: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 44422: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 44426: 2a6e 0008 moveal %fp@(8),%a5 <== 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); 4442a: 2c3c 0004 5d2c movel #285996,%d6 <== 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; 44430: 2055 moveal %a5@,%a0 <== NOT EXECUTED 44432: 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); 44436: 2046 moveal %d6,%a0 <== NOT EXECUTED 44438: 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; 4443a: 262d 0010 movel %a5@(16),%d3 <== NOT EXECUTED char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 4443e: 42a7 clrl %sp@- <== NOT EXECUTED 44440: 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; 44444: 286d 000c moveal %a5@(12),%a4 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44448: 4e90 jsr %a0@ <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 4444a: 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); 4444e: 2a00 movel %d0,%d5 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 44450: 662e bnes 44480 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 44452: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 44456: 41f9 0005 e7f4 lea 5e7f4 ,%a0 <== NOT EXECUTED 4445c: eb88 lsll #5,%d0 <== NOT EXECUTED 4445e: 2070 0808 moveal %a0@(00000008,%d0:l),%a0 <== NOT EXECUTED 44462: 4a88 tstl %a0 <== NOT EXECUTED 44464: 6726 beqs 4448c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 44466: 2f0d movel %a5,%sp@- <== NOT EXECUTED 44468: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4446a: 4e90 jsr %a0@ <== NOT EXECUTED 4446c: 2a00 movel %d0,%d5 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 4446e: 42aa 00e4 clrl %a2@(228) <== NOT EXECUTED rtems_semaphore_release (tty->isem); 44472: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 44476: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return sc; 4447c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } 44480: 2005 movel %d5,%d0 <== NOT EXECUTED 44482: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 44488: 4e5e unlk %fp <== NOT EXECUTED 4448a: 4e75 rts <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 4448c: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 44490: b0aa 0024 cmpl %a2@(36),%d0 <== NOT EXECUTED 44494: 674e beqs 444e4 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 44496: 4a83 tstl %d3 <== NOT EXECUTED 44498: 6724 beqs 444be <== NOT EXECUTED 4449a: 202a 0024 movel %a2@(36),%d0 <== NOT EXECUTED 4449e: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 444a2: 6c1a bges 444be <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 444a4: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED count--; 444a8: 5383 subql #1,%d3 <== 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++]; 444aa: 18f0 0800 moveb %a0@(00000000,%d0:l),%a4@+ <== NOT EXECUTED 444ae: 5280 addql #1,%d0 <== NOT EXECUTED 444b0: 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)) { 444b4: 4a83 tstl %d3 <== NOT EXECUTED 444b6: 6706 beqs 444be <== NOT EXECUTED 444b8: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 444bc: 6de6 blts 444a4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 444be: 202d 0010 movel %a5@(16),%d0 <== NOT EXECUTED 444c2: 9083 subl %d3,%d0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 444c4: 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; 444c8: 2b40 0018 movel %d0,%a5@(24) <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 444cc: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 444d0: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return sc; 444d6: 588f addql #4,%sp <== NOT EXECUTED } 444d8: 2005 movel %d5,%d0 <== NOT EXECUTED 444da: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 444e0: 4e5e unlk %fp <== NOT EXECUTED 444e2: 4e75 rts <== NOT EXECUTED } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 444e4: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 444e8: 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; 444ee: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED 444f2: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 444f6: 4a88 tstl %a0 <== NOT EXECUTED 444f8: 6708 beqs 44502 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 444fa: 4aaa 00b4 tstl %a2@(180) <== NOT EXECUTED 444fe: 6700 015e beqw 4465e <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 44502: 222a 005c movel %a2@(92),%d1 <== 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, 44506: 41ea 0049 lea %a2@(73),%a0 <== NOT EXECUTED 4450a: 7801 moveq #1,%d4 <== NOT EXECUTED 4450c: 47fa fd4e lea %pc@(4425c ),%a3 <== 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; 44510: 242a 0074 movel %a2@(116),%d2 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 44514: 202a 0060 movel %a2@(96),%d0 <== 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, 44518: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 4451c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4451e: 6700 00bc beqw 445dc <== NOT EXECUTED 44522: 2039 0005 d9f4 movel 5d9f4 ,%d0 <== NOT EXECUTED 44528: 5380 subql #1,%d0 <== NOT EXECUTED 4452a: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 4452e: 6f00 00ac blew 445dc <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 44532: 242a 005c movel %a2@(92),%d2 <== NOT EXECUTED 44536: 5282 addql #1,%d2 <== NOT EXECUTED 44538: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 4453c: 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; 44540: 4c40 2001 remul %d0,%d1,%d2 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 44544: 1430 1800 moveb %a0@(00000000,%d1:l),%d2 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 44548: 2541 005c movel %d1,%a2@(92) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 4454c: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 44550: 206a 0064 moveal %a2@(100),%a0 <== NOT EXECUTED 44554: d088 addl %a0,%d0 <== NOT EXECUTED 44556: 9081 subl %d1,%d0 <== NOT EXECUTED 44558: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 4455c: 4c41 0007 remul %d1,%d7,%d0 <== NOT EXECUTED 44560: beaa 00bc cmpl %a2@(188),%d7 <== NOT EXECUTED 44564: 6446 bccs 445ac <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 44566: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4456a: 72fe moveq #-2,%d1 <== NOT EXECUTED 4456c: c081 andl %d1,%d0 <== NOT EXECUTED 4456e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 44572: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44576: 0280 0000 0202 andil #514,%d0 <== NOT EXECUTED 4457c: 0c80 0000 0202 cmpil #514,%d0 <== NOT EXECUTED 44582: 6700 0086 beqw 4460a <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 44586: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4458a: 0800 0008 btst #8,%d0 <== NOT EXECUTED 4458e: 671c beqs 445ac <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 44590: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 44594: 7efb moveq #-5,%d7 <== NOT EXECUTED 44596: c287 andl %d7,%d1 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 44598: 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; 4459c: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 445a0: 4a88 tstl %a0 <== NOT EXECUTED 445a2: 6708 beqs 445ac <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 445a4: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 445a8: 4e90 jsr %a0@ <== NOT EXECUTED 445aa: 588f addql #4,%sp <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 445ac: 7002 moveq #2,%d0 <== NOT EXECUTED 445ae: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 445b2: 6700 0088 beqw 4463c <== NOT EXECUTED if (siproc (c, tty)) 445b6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 445b8: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED 445be: 2f02 movel %d2,%sp@- <== NOT EXECUTED 445c0: 4e93 jsr %a3@ <== NOT EXECUTED 445c2: 508f addql #8,%sp <== NOT EXECUTED 445c4: 4a80 tstl %d0 <== NOT EXECUTED 445c6: 6702 beqs 445ca <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) 445c8: 4284 clrl %d4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 445ca: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 445ce: 242a 0070 movel %a2@(112),%d2 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 445d2: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 445d6: b081 cmpl %d1,%d0 <== NOT EXECUTED 445d8: 6600 ff48 bnew 44522 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 445dc: 4a84 tstl %d4 <== NOT EXECUTED 445de: 6700 feb6 beqw 44496 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 445e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 445e4: 2f2a 006c movel %a2@(108),%sp@- <== NOT EXECUTED 445e8: 2046 moveal %d6,%a0 <== NOT EXECUTED 445ea: 2f2a 0068 movel %a2@(104),%sp@- <== NOT EXECUTED 445ee: 4e90 jsr %a0@ <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 445f0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 445f4: 4a80 tstl %d0 <== NOT EXECUTED 445f6: 6600 fe9e bnew 44496 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 445fa: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 445fe: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 44602: b081 cmpl %d1,%d0 <== NOT EXECUTED 44604: 6600 ff1c bnew 44522 <== NOT EXECUTED 44608: 60d2 bras 445dc <== 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)) 4460a: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 4460e: 670c beqs 4461c <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 44610: 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)) 44614: 0800 0005 btst #5,%d0 <== NOT EXECUTED 44618: 6700 ff6c beqw 44586 <== 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, 4461c: 4878 0001 pea 1 <== NOT EXECUTED 44620: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 44624: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44628: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 4462c: 4e90 jsr %a0@ <== NOT EXECUTED 4462e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 44632: 7002 moveq #2,%d0 <== NOT EXECUTED 44634: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 44638: 6600 ff7c bnew 445b6 <== NOT EXECUTED if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 4463c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4463e: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED 44644: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44646: 4e93 jsr %a3@ <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 44648: 508f addql #8,%sp <== NOT EXECUTED 4464a: 4280 clrl %d0 <== NOT EXECUTED 4464c: 102a 0047 moveb %a2@(71),%d0 <== NOT EXECUTED 44650: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 44654: 6e00 ff74 bgtw 445ca <== NOT EXECUTED 44658: 4284 clrl %d4 <== NOT EXECUTED 4465a: 6000 ff6e braw 445ca <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 4465e: 7002 moveq #2,%d0 <== NOT EXECUTED 44660: 47fa fbfa lea %pc@(4425c ),%a3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 44664: 243c 0004 6294 movel #287380,%d2 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 4466a: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 4466e: 6728 beqs 44698 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 44670: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44674: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 44676: 588f addql #4,%sp <== NOT EXECUTED 44678: 4a80 tstl %d0 <== NOT EXECUTED 4467a: 6d00 00b8 bltw 44734 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 4467e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44680: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 44686: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44688: 4e93 jsr %a3@ <== NOT EXECUTED 4468a: 508f addql #8,%sp <== NOT EXECUTED 4468c: 4a80 tstl %d0 <== NOT EXECUTED 4468e: 6600 fe06 bnew 44496 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 44692: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 44696: 60d8 bras 44670 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 44698: 283c 0004 55fc movel #284156,%d4 <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 4469e: 243c 0004 6294 movel #287380,%d2 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 446a4: 2044 moveal %d4,%a0 <== NOT EXECUTED 446a6: 4e90 jsr %a0@ <== NOT EXECUTED 446a8: 2c00 movel %d0,%d6 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 446aa: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 446ae: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 446b2: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 446b4: 588f addql #4,%sp <== NOT EXECUTED 446b6: 4a80 tstl %d0 <== NOT EXECUTED 446b8: 6d38 blts 446f2 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 446ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED 446bc: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 446c2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 446c4: 4e93 jsr %a3@ <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 446c6: 508f addql #8,%sp <== NOT EXECUTED 446c8: 4281 clrl %d1 <== NOT EXECUTED 446ca: 102a 0047 moveb %a2@(71),%d0 <== NOT EXECUTED 446ce: 1200 moveb %d0,%d1 <== NOT EXECUTED 446d0: b2aa 0020 cmpl %a2@(32),%d1 <== NOT EXECUTED 446d4: 6f00 fdc0 blew 44496 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 446d8: 4a00 tstb %d0 <== NOT EXECUTED 446da: 67ce beqs 446aa <== NOT EXECUTED 446dc: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 446e0: 66c2 bnes 446a4 <== NOT EXECUTED } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); 446e2: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 446e6: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 446ea: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 446ec: 588f addql #4,%sp <== NOT EXECUTED 446ee: 4a80 tstl %d0 <== NOT EXECUTED 446f0: 6cc8 bges 446ba <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 446f2: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 446f6: 6718 beqs 44710 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 446f8: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 446fc: 6706 beqs 44704 <== NOT EXECUTED 446fe: 4aaa 0020 tstl %a2@(32) <== NOT EXECUTED 44702: 6614 bnes 44718 <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 44704: 4878 0001 pea 1 <== NOT EXECUTED 44708: 2042 moveal %d2,%a0 <== NOT EXECUTED 4470a: 4e90 jsr %a0@ <== NOT EXECUTED 4470c: 588f addql #4,%sp <== NOT EXECUTED 4470e: 609a bras 446aa <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 44710: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 44714: 6700 fd80 beqw 44496 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 44718: 2044 moveal %d4,%a0 <== NOT EXECUTED 4471a: 4e90 jsr %a0@ <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 4471c: 9086 subl %d6,%d0 <== NOT EXECUTED 4471e: b0aa 0054 cmpl %a2@(84),%d0 <== NOT EXECUTED 44722: 6200 fd72 bhiw 44496 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 44726: 4878 0001 pea 1 <== NOT EXECUTED 4472a: 2042 moveal %d2,%a0 <== NOT EXECUTED 4472c: 4e90 jsr %a0@ <== NOT EXECUTED 4472e: 588f addql #4,%sp <== NOT EXECUTED 44730: 6000 ff78 braw 446aa <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 44734: 4878 0001 pea 1 <== NOT EXECUTED 44738: 2042 moveal %d2,%a0 <== NOT EXECUTED 4473a: 4e90 jsr %a0@ <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 4473c: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 44740: 588f addql #4,%sp <== NOT EXECUTED 44742: 6000 ff2c braw 44670 <== NOT EXECUTED 0004357c : * 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) { 4357c: 4e56 fff4 linkw %fp,#-12 43580: 48d7 040c moveml %d2-%d3/%a2,%sp@ 43584: 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)) 43588: 202a 00b8 movel %a2@(184),%d0 4358c: 0280 0000 0403 andil #1027,%d0 43592: 0c80 0000 0401 cmpil #1025,%d0 43598: 6700 0140 beqw 436da tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 4359c: 202a 00b8 movel %a2@(184),%d0 435a0: 7603 moveq #3,%d3 435a2: 7202 moveq #2,%d1 435a4: c083 andl %d3,%d0 435a6: b280 cmpl %d0,%d1 435a8: 6700 0172 beqw 4371c rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 435ac: 222a 0080 movel %a2@(128),%d1 435b0: 202a 0084 movel %a2@(132),%d0 435b4: b081 cmpl %d1,%d0 435b6: 6700 009c beqw 43654 rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 435ba: 203c 0000 0700 movel #1792,%d0 435c0: 40c2 movew %sr,%d2 435c2: 8082 orl %d2,%d0 435c4: 46c0 movew %d0,%sr len = tty->t_dqlen; 435c6: 222a 0090 movel %a2@(144),%d1 tty->t_dqlen = 0; 435ca: 42aa 0090 clrl %a2@(144) rtems_interrupt_enable(level); 435ce: 46c2 movew %d2,%sr newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 435d0: 202a 0084 movel %a2@(132),%d0 435d4: d280 addl %d0,%d1 435d6: 202a 0088 movel %a2@(136),%d0 435da: 4c40 1002 remul %d0,%d2,%d1 tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 435de: 7002 moveq #2,%d0 len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 435e0: 2542 0084 movel %d2,%a2@(132) if (tty->rawOutBufState == rob_wait) { 435e4: b0aa 0094 cmpl %a2@(148),%d0 435e8: 6700 00d8 beqw 436c2 /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 435ec: 202a 0080 movel %a2@(128),%d0 435f0: b480 cmpl %d0,%d2 435f2: 6778 beqs 4366c if ( tty->tty_snd.sw_pfn != NULL) { (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 435f4: 202a 00b8 movel %a2@(184),%d0 435f8: 0280 0000 0210 andil #528,%d0 435fe: 0c80 0000 0210 cmpil #528,%d0 43604: 6700 015a beqw 43760 } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 43608: 202a 0080 movel %a2@(128),%d0 4360c: b082 cmpl %d2,%d0 4360e: 647e bccs 4368e nToSend = tty->rawOutBuf.Size - newTail; 43610: 262a 0088 movel %a2@(136),%d3 43614: 9682 subl %d2,%d3 else nToSend = tty->rawOutBuf.Head - newTail; /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 43616: 202a 00b8 movel %a2@(184),%d0 4361a: 0280 0000 0600 andil #1536,%d0 43620: 677e beqs 436a0 43622: 7001 moveq #1,%d0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 43624: 7201 moveq #1,%d1 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 43626: 7601 moveq #1,%d3 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 43628: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4362a: 202a 007c movel %a2@(124),%d0 <== NOT EXECUTED 4362e: d082 addl %d2,%d0 <== NOT EXECUTED 43630: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43632: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43636: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED /* 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*/ 4363a: 2541 0094 movel %d1,%a2@(148) <== NOT EXECUTED (*tty->device.write)(tty->minor, 4363e: 4e90 jsr %a0@ <== NOT EXECUTED 43640: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 43644: 2542 0084 movel %d2,%a2@(132) } return nToSend; } 43648: 2003 movel %d3,%d0 4364a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 43650: 4e5e unlk %fp 43652: 4e75 rts else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 43654: 7602 moveq #2,%d3 <== NOT EXECUTED 43656: b6aa 0094 cmpl %a2@(148),%d3 <== NOT EXECUTED 4365a: 6700 012e beqw 4378a <== NOT EXECUTED 4365e: 4203 clrb %d3 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 43660: 2003 movel %d3,%d0 <== NOT EXECUTED 43662: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 43668: 4e5e unlk %fp <== NOT EXECUTED 4366a: 4e75 rts <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 4366c: 206a 00d4 moveal %a2@(212),%a0 } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 43670: 42aa 0094 clrl %a2@(148) nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 43674: 4a88 tstl %a0 43676: 6700 012c beqw 437a4 (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 4367a: 2f2a 00d8 movel %a2@(216),%sp@- <== NOT EXECUTED 4367e: 4283 clrl %d3 <== NOT EXECUTED 43680: 486a 0030 pea %a2@(48) <== NOT EXECUTED 43684: 4e90 jsr %a0@ <== NOT EXECUTED 43686: 508f addql #8,%sp <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 43688: 2542 0084 movel %d2,%a2@(132) <== NOT EXECUTED 4368c: 60ba bras 43648 <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 4368e: 262a 0080 movel %a2@(128),%d3 43692: 9682 subl %d2,%d3 /* 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)) { 43694: 202a 00b8 movel %a2@(184),%d0 43698: 0280 0000 0600 andil #1536,%d0 4369e: 6682 bnes 43622 436a0: 2003 movel %d3,%d0 nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 436a2: 7201 moveq #1,%d1 (*tty->device.write)(tty->minor, 436a4: 2f00 movel %d0,%sp@- 436a6: 202a 007c movel %a2@(124),%d0 436aa: d082 addl %d2,%d0 436ac: 2f00 movel %d0,%sp@- 436ae: 2f2a 0010 movel %a2@(16),%sp@- 436b2: 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*/ 436b6: 2541 0094 movel %d1,%a2@(148) (*tty->device.write)(tty->minor, 436ba: 4e90 jsr %a0@ 436bc: 4fef 000c lea %sp@(12),%sp 436c0: 6082 bras 43644 tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 436c2: 2f2a 008c movel %a2@(140),%sp@- 436c6: 4eb9 0004 5e68 jsr 45e68 } if (newTail == tty->rawOutBuf.Head) { 436cc: 202a 0080 movel %a2@(128),%d0 tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 436d0: 588f addql #4,%sp } if (newTail == tty->rawOutBuf.Head) { 436d2: b480 cmpl %d0,%d2 436d4: 6600 ff1e bnew 435f4 436d8: 6092 bras 4366c /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 436da: 4878 0001 pea 1 <== NOT EXECUTED 436de: 486a 004a pea %a2@(74) <== NOT EXECUTED 436e2: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 436e6: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 436ea: 4e90 jsr %a0@ <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 436ec: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 436f2: 40c1 movew %sr,%d1 <== NOT EXECUTED 436f4: 8081 orl %d1,%d0 <== NOT EXECUTED 436f6: 46c0 movew %d0,%sr <== NOT EXECUTED tty->t_dqlen--; tty->flow_ctrl |= FL_ISNTXOF; 436f8: 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--; 436fa: 53aa 0090 subql #1,%a2@(144) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 436fe: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43702: 8082 orl %d2,%d0 <== NOT EXECUTED 43704: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED rtems_interrupt_enable(level); 43708: 46c1 movew %d1,%sr <== NOT EXECUTED 4370a: 7601 moveq #1,%d3 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 4370c: 2003 movel %d3,%d0 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 4370e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 43712: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 43718: 4e5e unlk %fp <== NOT EXECUTED 4371a: 4e75 rts <== NOT EXECUTED * FIXME: this .write call will generate another * dequeue callback. This will advance the "Tail" in the data * buffer, although the corresponding data is not yet out! * Therefore the dequeue "length" should be reduced by 1 */ (*tty->device.write)(tty->minor, 4371c: 4878 0001 pea 1 <== NOT EXECUTED 43720: 486a 0049 pea %a2@(73) <== NOT EXECUTED 43724: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43728: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 4372c: 4e90 jsr %a0@ <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 4372e: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 43734: 40c1 movew %sr,%d1 <== NOT EXECUTED 43736: 8081 orl %d1,%d0 <== NOT EXECUTED 43738: 46c0 movew %d0,%sr <== NOT EXECUTED tty->t_dqlen--; tty->flow_ctrl &= ~FL_ISNTXOF; 4373a: 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--; 4373c: 53aa 0090 subql #1,%a2@(144) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 43740: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43744: c082 andl %d2,%d0 <== NOT EXECUTED 43746: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED rtems_interrupt_enable(level); 4374a: 46c1 movew %d1,%sr <== NOT EXECUTED 4374c: 163c 0001 moveb #1,%d3 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 43750: 2003 movel %d3,%d0 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; tty->flow_ctrl &= ~FL_ISNTXOF; rtems_interrupt_enable(level); 43752: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 43756: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4375c: 4e5e unlk %fp <== NOT EXECUTED 4375e: 4e75 rts <== NOT EXECUTED /* check, whether output should stop due to received XOFF */ 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); 43760: 303c 0700 movew #1792,%d0 <== NOT EXECUTED 43764: 40c1 movew %sr,%d1 <== NOT EXECUTED 43766: 8081 orl %d1,%d0 <== NOT EXECUTED 43768: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 4376a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4376e: 7620 moveq #32,%d3 <== NOT EXECUTED 43770: 8083 orl %d3,%d0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 43772: 163c 0001 moveb #1,%d3 <== 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; 43776: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 4377a: 2543 0094 movel %d3,%a2@(148) <== NOT EXECUTED rtems_interrupt_enable(level); 4377e: 46c1 movew %d1,%sr <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 43780: 2542 0084 movel %d2,%a2@(132) <== NOT EXECUTED /* 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; tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 43784: 4203 clrb %d3 <== NOT EXECUTED 43786: 6000 fec0 braw 43648 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 4378a: 2f2a 008c movel %a2@(140),%sp@- <== NOT EXECUTED 4378e: 4283 clrl %d3 <== NOT EXECUTED 43790: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED 43796: 588f addql #4,%sp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 43798: 2003 movel %d3,%d0 <== NOT EXECUTED 4379a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 437a0: 4e5e unlk %fp <== NOT EXECUTED 437a2: 4e75 rts <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 437a4: 2542 0084 movel %d2,%a2@(132) nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 437a8: 4283 clrl %d3 437aa: 6000 fe9c braw 43648 000451ac : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 451ac: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 451b0: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 451b4: 240e movel %fp,%d2 <== NOT EXECUTED 451b6: 260e movel %fp,%d3 <== NOT EXECUTED 451b8: 5d82 subql #6,%d2 <== NOT EXECUTED 451ba: 47f9 0004 566c lea 4566c ,%a3 <== NOT EXECUTED 451c0: 4bf9 0004 606c lea 4606c ,%a5 <== NOT EXECUTED 451c6: 5383 subql #1,%d3 <== NOT EXECUTED 451c8: 49f9 0004 380c lea 4380c ,%a4 <== NOT EXECUTED 451ce: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 451d2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 451d4: 42a7 clrl %sp@- <== NOT EXECUTED 451d6: 4878 0002 pea 2 <== NOT EXECUTED 451da: 4878 0003 pea 3 <== NOT EXECUTED 451de: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 451e0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 451e4: 7001 moveq #1,%d0 <== NOT EXECUTED 451e6: c0ae fffa andl %fp@(-6),%d0 <== NOT EXECUTED 451ea: 663e bnes 4522a <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 451ec: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 451f0: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 451f4: 4e90 jsr %a0@ <== NOT EXECUTED if (c != EOF) { 451f6: 588f addql #4,%sp <== NOT EXECUTED 451f8: 72ff moveq #-1,%d1 <== NOT EXECUTED 451fa: b280 cmpl %d0,%d1 <== NOT EXECUTED 451fc: 67d4 beqs 451d2 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 451fe: 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; 45202: 1d40 ffff moveb %d0,%fp@(-1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 45206: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45208: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4520a: 4e94 jsr %a4@ <== NOT EXECUTED 4520c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 45210: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45212: 42a7 clrl %sp@- <== NOT EXECUTED 45214: 4878 0002 pea 2 <== NOT EXECUTED 45218: 4878 0003 pea 3 <== NOT EXECUTED 4521c: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 4521e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 45222: 7001 moveq #1,%d0 <== NOT EXECUTED 45224: c0ae fffa andl %fp@(-6),%d0 <== NOT EXECUTED 45228: 67c2 beqs 451ec <== NOT EXECUTED tty->rxTaskId = 0; 4522a: 42aa 00c4 clrl %a2@(196) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 4522e: 42a7 clrl %sp@- <== NOT EXECUTED 45230: 4e95 jsr %a5@ <== NOT EXECUTED 45232: 588f addql #4,%sp <== NOT EXECUTED 45234: 609c bras 451d2 <== NOT EXECUTED ... 00043560 : * 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) { 43560: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 43564: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 43568: 4878 0002 pea 2 <== NOT EXECUTED 4356c: 2f28 00c4 movel %a0@(196),%sp@- <== NOT EXECUTED 43570: 4eb9 0004 5814 jsr 45814 <== NOT EXECUTED 43576: 508f addql #8,%sp <== NOT EXECUTED } 43578: 4e5e unlk %fp <== NOT EXECUTED 4357a: 4e75 rts 0004512a : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 4512a: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4512e: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED 45132: 240e movel %fp,%d2 <== NOT EXECUTED 45134: 5982 subql #4,%d2 <== NOT EXECUTED 45136: 47f9 0004 566c lea 4566c ,%a3 <== NOT EXECUTED 4513c: 4bf9 0004 606c lea 4606c ,%a5 <== NOT EXECUTED 45142: 49f9 0004 357c lea 4357c ,%a4 <== NOT EXECUTED 45148: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 4514c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4514e: 42a7 clrl %sp@- <== NOT EXECUTED 45150: 4878 0002 pea 2 <== NOT EXECUTED 45154: 4878 0003 pea 3 <== NOT EXECUTED 45158: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 4515a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4515e: 7001 moveq #1,%d0 <== NOT EXECUTED 45160: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED 45164: 663a bnes 451a0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 45166: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 4516a: eb88 lsll #5,%d0 <== NOT EXECUTED 4516c: 0680 0005 e808 addil #387080,%d0 <== NOT EXECUTED 45172: 2240 moveal %d0,%a1 <== NOT EXECUTED 45174: 2051 moveal %a1@,%a0 <== NOT EXECUTED 45176: 4a88 tstl %a0 <== NOT EXECUTED 45178: 6706 beqs 45180 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 4517a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4517c: 4e90 jsr %a0@ <== NOT EXECUTED 4517e: 588f addql #4,%sp <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 45180: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45182: 4e94 jsr %a4@ <== NOT EXECUTED 45184: 588f addql #4,%sp <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 45186: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45188: 42a7 clrl %sp@- <== NOT EXECUTED 4518a: 4878 0002 pea 2 <== NOT EXECUTED 4518e: 4878 0003 pea 3 <== NOT EXECUTED 45192: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 45194: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 45198: 7001 moveq #1,%d0 <== NOT EXECUTED 4519a: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED 4519e: 67c6 beqs 45166 <== NOT EXECUTED tty->txTaskId = 0; 451a0: 42aa 00c8 clrl %a2@(200) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 451a4: 42a7 clrl %sp@- <== NOT EXECUTED 451a6: 4e95 jsr %a5@ <== NOT EXECUTED 451a8: 588f addql #4,%sp <== NOT EXECUTED 451aa: 60a0 bras 4514c <== NOT EXECUTED 000442d0 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 442d0: 4e56 ffe4 linkw %fp,#-28 442d4: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 442d8: 266e 0008 moveal %fp@(8),%a3 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 442dc: 2053 moveal %a3@,%a0 442de: 2468 0034 moveal %a0@(52),%a2 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 442e2: 42a7 clrl %sp@- 442e4: 42a7 clrl %sp@- 442e6: 2f2a 0018 movel %a2@(24),%sp@- 442ea: 4eb9 0004 5d2c jsr 45d2c if (sc != RTEMS_SUCCESSFUL) 442f0: 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); 442f4: 2400 movel %d0,%d2 if (sc != RTEMS_SUCCESSFUL) 442f6: 662a bnes 44322 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 442f8: 202a 00cc movel %a2@(204),%d0 442fc: eb88 lsll #5,%d0 442fe: 0680 0005 e800 addil #387072,%d0 44304: 2240 moveal %d0,%a1 44306: 2051 moveal %a1@,%a0 44308: 4a88 tstl %a0 4430a: 6722 beqs 4432e sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 4430c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4430e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44310: 4e90 jsr %a0@ <== NOT EXECUTED rtems_semaphore_release (tty->osem); 44312: 2f2a 0018 movel %a2@(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); 44316: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 44318: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return sc; 4431e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 44322: 2002 movel %d2,%d0 <== NOT EXECUTED 44324: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 4432a: 4e5e unlk %fp <== NOT EXECUTED 4432c: 4e75 rts <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 4432e: 7001 moveq #1,%d0 44330: c0aa 0034 andl %a2@(52),%d0 44334: 6744 beqs 4437a uint32_t count = args->count; 44336: 282b 0010 movel %a3@(16),%d4 char *buffer = args->buffer; 4433a: 286b 000c moveal %a3@(12),%a4 while (count--) 4433e: 6762 beqs 443a2 44340: 4283 clrl %d3 44342: 4bfa f8a8 lea %pc@(43bec ),%a5 oproc (*buffer++, tty); 44346: 2f0a movel %a2,%sp@- 44348: 4280 clrl %d0 4434a: 1034 3800 moveb %a4@(00000000,%d3:l),%d0 4434e: 5283 addql #1,%d3 44350: 2f00 movel %d0,%sp@- 44352: 4e95 jsr %a5@ return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 44354: 508f addql #8,%sp 44356: b883 cmpl %d3,%d4 44358: 66ec bnes 44346 4435a: 202b 0010 movel %a3@(16),%d0 oproc (*buffer++, tty); args->bytes_moved = args->count; 4435e: 2740 0018 movel %d0,%a3@(24) } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); 44362: 2f2a 0018 movel %a2@(24),%sp@- 44366: 4eb9 0004 5e68 jsr 45e68 return sc; 4436c: 588f addql #4,%sp } 4436e: 2002 movel %d2,%d0 44370: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 44376: 4e5e unlk %fp 44378: 4e75 rts while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 4437a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4437c: 2f2b 0010 movel %a3@(16),%sp@- <== NOT EXECUTED 44380: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED 44384: 4eb9 0004 3ac4 jsr 43ac4 <== NOT EXECUTED args->bytes_moved = args->count; 4438a: 276b 0010 0018 movel %a3@(16),%a3@(24) <== NOT EXECUTED 44390: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } rtems_semaphore_release (tty->osem); 44394: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44398: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED return sc; 4439e: 588f addql #4,%sp <== NOT EXECUTED 443a0: 60cc bras 4436e <== NOT EXECUTED return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 443a2: 4280 clrl %d0 <== NOT EXECUTED oproc (*buffer++, tty); args->bytes_moved = args->count; 443a4: 2740 0018 movel %d0,%a3@(24) <== NOT EXECUTED 443a8: 60b8 bras 44362 <== NOT EXECUTED 0005895c : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 5895c: 4e56 ffec linkw %fp,#-20 58960: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 58964: 242e 000c movel %fp@(12),%d2 58968: 262e 0010 movel %fp@(16),%d3 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; 5896c: 2479 0007 eaee moveal 7eaee <_Timer_server>,%a2 if ( !timer_server ) 58972: 4a8a tstl %a2 58974: 6700 00c8 beqw 58a3e return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 58978: 4a39 0007 e25c tstb 7e25c <_TOD_Is_set> 5897e: 6700 00a6 beqw 58a26 return RTEMS_NOT_DEFINED; if ( !routine ) 58982: 4a83 tstl %d3 58984: 6700 00ac beqw 58a32 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 58988: 2f02 movel %d2,%sp@- 5898a: 4eb9 0005 5630 jsr 55630 <_TOD_Validate> 58990: 588f addql #4,%sp 58992: 4a00 tstb %d0 58994: 660c bnes 589a2 the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 58996: 7014 moveq #20,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58998: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 5899e: 4e5e unlk %fp 589a0: 4e75 rts return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 589a2: 2f02 movel %d2,%sp@- 589a4: 4eb9 0005 5520 jsr 55520 <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch() ) 589aa: 588f addql #4,%sp return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 589ac: 2400 movel %d0,%d2 if ( seconds <= _TOD_Seconds_since_epoch() ) 589ae: b0b9 0007 e2da cmpl 7e2da <_TOD_Now>,%d0 589b4: 63e0 blss 58996 589b6: 486e fffc pea %fp@(-4) 589ba: 2f2e 0008 movel %fp@(8),%sp@- 589be: 4879 0007 eab4 pea 7eab4 <_Timer_Information> 589c4: 4eb9 0005 b23c jsr 5b23c <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 589ca: 4fef 000c lea %sp@(12),%sp 589ce: 2640 moveal %d0,%a3 589d0: 4aae fffc tstl %fp@(-4) 589d4: 6674 bnes 58a4a case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 589d6: 486b 0010 pea %a3@(16) 589da: 4eb9 0005 d16c jsr 5d16c <_Watchdog_Remove> the_watchdog->routine = routine; the_watchdog->id = id; 589e0: 202e 0008 movel %fp@(8),%d0 589e4: 2740 0030 movel %d0,%a3@(48) the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 589e8: 94b9 0007 e2da subl 7e2da <_TOD_Now>,%d2 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; 589ee: 7003 moveq #3,%d0 the_watchdog->user_data = user_data; 589f0: 276e 0014 0034 movel %fp@(20),%a3@(52) 589f6: 2740 0038 movel %d0,%a3@(56) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 589fa: 2742 001c movel %d2,%a3@(28) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 589fe: 2743 002c movel %d3,%a3@(44) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58a02: 42ab 0018 clrl %a3@(24) (*timer_server->schedule_operation)( timer_server, the_timer ); 58a06: 2f0b movel %a3,%sp@- 58a08: 2f0a movel %a2,%sp@- 58a0a: 206a 0004 moveal %a2@(4),%a0 58a0e: 4e90 jsr %a0@ _Thread_Enable_dispatch(); 58a10: 4eb9 0005 bb58 jsr 5bb58 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 58a16: 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(); 58a1a: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58a1c: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 58a22: 4e5e unlk %fp 58a24: 4e75 rts Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 58a26: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58a28: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58a2e: 4e5e unlk %fp <== NOT EXECUTED 58a30: 4e75 rts <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) 58a32: 7009 moveq #9,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58a34: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 58a3a: 4e5e unlk %fp 58a3c: 4e75 rts Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) 58a3e: 700e moveq #14,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58a40: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 58a46: 4e5e unlk %fp 58a48: 4e75 rts seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58a4a: 7004 moveq #4,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58a4c: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 58a52: 4e5e unlk %fp 58a54: 4e75 rts ... 00042330 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 42330: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 42334: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED 42338: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 4233c: 2802 movel %d2,%d4 <== NOT EXECUTED 4233e: 0284 2000 0000 andil #536870912,%d4 <== NOT EXECUTED 42344: 6730 beqs 42376 <== NOT EXECUTED { if (rtems_panic_in_progress++) 42346: 2239 0005 eff0 movel 5eff0 ,%d1 <== NOT EXECUTED 4234c: 2001 movel %d1,%d0 <== NOT EXECUTED 4234e: 5280 addql #1,%d0 <== NOT EXECUTED 42350: 23c0 0005 eff0 movel %d0,5eff0 <== NOT EXECUTED 42356: 4a81 tstl %d1 <== NOT EXECUTED 42358: 6714 beqs 4236e <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4235a: 2039 0005 f154 movel 5f154 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 42360: 5280 addql #1,%d0 <== NOT EXECUTED 42362: 23c0 0005 f154 movel %d0,5f154 <_Thread_Dispatch_disable_level> <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 42368: 2039 0005 eff0 movel 5eff0 ,%d0 <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 4236e: 7202 moveq #2,%d1 <== NOT EXECUTED 42370: b280 cmpl %d0,%d1 <== NOT EXECUTED 42372: 6d00 00de bltw 42452 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 42376: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 4237c: 45f9 0004 f13c lea 4f13c ,%a2 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 42382: 2c02 movel %d2,%d6 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 42384: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 42388: 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 */ 4238e: 4e92 jsr %a2@ <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 42390: 588f addql #4,%sp <== NOT EXECUTED 42392: 0802 001e btst #30,%d2 <== NOT EXECUTED 42396: 6600 0106 bnew 4249e <== 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); 4239a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED } (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 4239e: 4283 clrl %d3 <== NOT EXECUTED 423a0: 47f9 0004 f4c8 lea 4f4c8 ,%a3 <== 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); 423a6: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 423aa: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 423b0: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 423b4: 4eb9 0005 5668 jsr 55668 <== NOT EXECUTED if (status) 423ba: 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); 423be: 2a00 movel %d0,%d5 <== NOT EXECUTED if (status) 423c0: 4a86 tstl %d6 <== NOT EXECUTED 423c2: 6600 009a bnew 4245e <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 423c6: 4a83 tstl %d3 <== NOT EXECUTED 423c8: 6732 beqs 423fc <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 423ca: 4a83 tstl %d3 <== NOT EXECUTED 423cc: 6f14 bles 423e2 <== NOT EXECUTED 423ce: 2f03 movel %d3,%sp@- <== NOT EXECUTED 423d0: 49f9 0004 fd7c lea 4fd7c ,%a4 <== NOT EXECUTED 423d6: 4e94 jsr %a4@ <== NOT EXECUTED 423d8: 588f addql #4,%sp <== NOT EXECUTED 423da: 2040 moveal %d0,%a0 <== NOT EXECUTED 423dc: 4a10 tstb %a0@ <== NOT EXECUTED 423de: 6600 00f4 bnew 424d4 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 423e2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 423e4: 4879 0005 c3f4 pea 5c3f4 <== NOT EXECUTED 423ea: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 423f0: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 423f4: 4e93 jsr %a3@ <== NOT EXECUTED 423f6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 423fa: da80 addl %d0,%d5 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 423fc: 4879 0005 cbd8 pea 5cbd8 <== NOT EXECUTED 42402: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 42408: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 4240c: 0282 3000 0000 andil #805306368,%d2 <== 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"); 42412: 4e93 jsr %a3@ <== NOT EXECUTED (void) fflush(stderr); 42414: 2079 0005 dad0 moveal 5dad0 <_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"); 4241a: 2c00 movel %d0,%d6 <== NOT EXECUTED (void) fflush(stderr); 4241c: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42420: 4e92 jsr %a2@ <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 42422: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 42426: 4a82 tstl %d2 <== NOT EXECUTED 42428: 671a beqs 42444 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 4242a: 4a84 tstl %d4 <== NOT EXECUTED 4242c: 675c beqs 4248a <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 4242e: 4879 0005 c408 pea 5c408 <== NOT EXECUTED 42434: 42a7 clrl %sp@- <== NOT EXECUTED 42436: 4eb9 0004 2544 jsr 42544 <== NOT EXECUTED _exit(local_errno); 4243c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4243e: 4eb9 0004 2e0a jsr 42e0a <_exit> <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); 42444: 2006 movel %d6,%d0 <== NOT EXECUTED 42446: d085 addl %d5,%d0 <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 42448: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 4244e: 4e5e unlk %fp <== NOT EXECUTED 42450: 4e75 rts <== NOT EXECUTED _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); abort(); 42452: 4280 clrl %d0 <== NOT EXECUTED } } return chars_written; } 42454: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 4245a: 4e5e unlk %fp <== NOT EXECUTED 4245c: 4e75 rts <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 4245e: 2f06 movel %d6,%sp@- <== NOT EXECUTED 42460: 4eb9 0004 2318 jsr 42318 <== NOT EXECUTED 42466: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42468: 4879 0005 c3d9 pea 5c3d9 <== NOT EXECUTED 4246e: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 42474: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42478: 4e93 jsr %a3@ <== NOT EXECUTED 4247a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4247e: da80 addl %d0,%d5 <== NOT EXECUTED if (local_errno) 42480: 4a83 tstl %d3 <== NOT EXECUTED 42482: 6700 ff78 beqw 423fc <== NOT EXECUTED 42486: 6000 ff42 braw 423ca <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 4248a: 4879 0005 c41d pea 5c41d <== NOT EXECUTED 42490: 42a7 clrl %sp@- <== NOT EXECUTED 42492: 4eb9 0004 2544 jsr 42544 <== NOT EXECUTED abort(); 42498: 4eb9 0004 edb0 jsr 4edb0 <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; 4249e: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 424a4: 47f9 0004 f4c8 lea 4f4c8 ,%a3 <== NOT EXECUTED 424aa: 2040 moveal %d0,%a0 <== NOT EXECUTED 424ac: 2610 movel %a0@,%d3 <== 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); 424ae: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 424b2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 424b6: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 424bc: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 424c0: 4eb9 0005 5668 jsr 55668 <== NOT EXECUTED if (status) 424c6: 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); 424ca: 2a00 movel %d0,%d5 <== NOT EXECUTED if (status) 424cc: 4a86 tstl %d6 <== NOT EXECUTED 424ce: 6700 fef6 beqw 423c6 <== NOT EXECUTED 424d2: 608a bras 4245e <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 424d4: 2f03 movel %d3,%sp@- <== NOT EXECUTED chars_written += fprintf(stderr, "\n"); (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 424d6: 0282 3000 0000 andil #805306368,%d2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 424dc: 4e94 jsr %a4@ <== NOT EXECUTED 424de: 2f00 movel %d0,%sp@- <== NOT EXECUTED 424e0: 4879 0005 c3e7 pea 5c3e7 <== NOT EXECUTED 424e6: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 424ec: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 424f0: 4e93 jsr %a3@ <== NOT EXECUTED if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) 424f2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 424f6: da80 addl %d0,%d5 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); 424f8: 4879 0005 cbd8 pea 5cbd8 <== NOT EXECUTED 424fe: 2079 0005 dad0 moveal 5dad0 <_impure_ptr>,%a0 <== NOT EXECUTED 42504: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42508: 4e93 jsr %a3@ <== NOT EXECUTED (void) fflush(stderr); 4250a: 2079 0005 dad0 moveal 5dad0 <_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"); 42510: 2c00 movel %d0,%d6 <== NOT EXECUTED (void) fflush(stderr); 42512: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42516: 4e92 jsr %a2@ <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 42518: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4251c: 4a82 tstl %d2 <== NOT EXECUTED 4251e: 6600 ff0a bnew 4242a <== NOT EXECUTED 42522: 6000 ff20 braw 42444 <== NOT EXECUTED 000678c8 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 678c8: 4e56 ffe4 linkw %fp,#-28 678cc: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 678d0: 246e 0008 moveal %fp@(8),%a2 678d4: 4284 clrl %d4 678d6: 263c 7fff ffff movel #2147483647,%d3 678dc: 4282 clrl %d2 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 678de: 47f9 0008 5f40 lea 85f40 <__srget_r>,%a3 678e4: 202a 0004 movel %a2@(4),%d0 678e8: 5380 subql #1,%d0 678ea: 2540 0004 movel %d0,%a2@(4) 678ee: 6d62 blts 67952 678f0: 2052 moveal %a2@,%a0 678f2: 4280 clrl %d0 678f4: 1010 moveb %a0@,%d0 678f6: 5288 addql #1,%a0 if (c == ':') 678f8: 723a moveq #58,%d1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 678fa: 2488 movel %a0,%a2@ if (c == ':') 678fc: b280 cmpl %d0,%d1 678fe: 6764 beqs 67964 break; if (sign == 0) { 67900: 4a84 tstl %d4 67902: 660a bnes 6790e if (c == '-') { 67904: 7c2d moveq #45,%d6 67906: bc80 cmpl %d0,%d6 67908: 6700 0084 beqw 6798e sign = -1; limit++; continue; 6790c: 7801 moveq #1,%d4 } sign = 1; } if (!isdigit(c)) 6790e: 2079 000a 29c8 moveal a29c8 <__ctype_ptr__>,%a0 67914: 1230 0801 moveb %a0@(00000001,%d0:l),%d1 67918: 49c1 extbl %d1 6791a: 44c1 movew %d1,%ccr 6791c: 6664 bnes 67982 return 0; d = c - '0'; if ((i > (limit / 10)) 6791e: 2203 movel %d3,%d1 67920: 7c0a moveq #10,%d6 67922: 4c46 1005 remul %d6,%d5,%d1 67926: 4c46 1001 remul %d6,%d1,%d1 6792a: b282 cmpl %d2,%d1 6792c: 6554 bcss 67982 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 6792e: 0680 ffff ffd0 addil #-48,%d0 if ((i > (limit / 10)) 67934: b282 cmpl %d2,%d1 67936: 6746 beqs 6797e || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 67938: 2202 movel %d2,%d1 6793a: e789 lsll #3,%d1 6793c: 2241 moveal %d1,%a1 6793e: 41f1 2a00 lea %a1@(00000000,%d2:l:2),%a0 67942: 2400 movel %d0,%d2 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 67944: 202a 0004 movel %a2@(4),%d0 67948: 5380 subql #1,%d0 return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 6794a: d488 addl %a0,%d2 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 6794c: 2540 0004 movel %d0,%a2@(4) 67950: 6c9e bges 678f0 67952: 2f0a movel %a2,%sp@- <== NOT EXECUTED 67954: 2f39 000a 29d4 movel a29d4 <_impure_ptr>,%sp@- <== NOT EXECUTED 6795a: 4e93 jsr %a3@ <== NOT EXECUTED 6795c: 508f addql #8,%sp <== NOT EXECUTED if (c == ':') 6795e: 723a moveq #58,%d1 <== NOT EXECUTED 67960: b280 cmpl %d0,%d1 <== NOT EXECUTED 67962: 669c bnes 67900 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 67964: 4a84 tstl %d4 67966: 671a beqs 67982 return 0; *val = i * sign; 67968: 4c02 4800 mulsl %d2,%d4 6796c: 7001 moveq #1,%d0 6796e: 206e 000c moveal %fp@(12),%a0 67972: 2084 movel %d4,%a0@ return 1; } 67974: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 6797a: 4e5e unlk %fp 6797c: 4e75 rts sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 6797e: ba80 cmpl %d0,%d5 <== NOT EXECUTED 67980: 64b6 bccs 67938 <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 67982: 4280 clrl %d0 <== NOT EXECUTED } 67984: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 6798a: 4e5e unlk %fp <== NOT EXECUTED 6798c: 4e75 rts <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 6798e: 5283 addql #1,%d3 <== NOT EXECUTED 67990: 78ff moveq #-1,%d4 <== NOT EXECUTED continue; 67992: 6000 ff50 braw 678e4 <== NOT EXECUTED 00067996 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 67996: 4e56 ffec linkw %fp,#-20 int c; *name = *bufp; 6799a: 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) { 6799e: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ 679a2: 246e 0008 moveal %fp@(8),%a2 int c; *name = *bufp; for (;;) { c = getc(fp); 679a6: 4bf9 0008 5f40 lea 85f40 <__srget_r>,%a5 679ac: 202a 0004 movel %a2@(4),%d0 679b0: 5380 subql #1,%d0 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 679b2: 266e 0010 moveal %fp@(16),%a3 679b6: 242e 0018 movel %fp@(24),%d2 679ba: 286e 0014 moveal %fp@(20),%a4 int c; *name = *bufp; 679be: 2093 movel %a3@,%a0@ for (;;) { c = getc(fp); 679c0: 2540 0004 movel %d0,%a2@(4) 679c4: 6d36 blts 679fc 679c6: 2052 moveal %a2@,%a0 679c8: 4280 clrl %d0 679ca: 1010 moveb %a0@,%d0 679cc: 5288 addql #1,%a0 if (c == ':') { 679ce: 723a moveq #58,%d1 { int c; *name = *bufp; for (;;) { c = getc(fp); 679d0: 2488 movel %a0,%a2@ if (c == ':') { 679d2: b280 cmpl %d0,%d1 679d4: 6738 beqs 67a0e if (nlFlag) return 0; break; } if (c == '\n') { 679d6: 720a moveq #10,%d1 679d8: b280 cmpl %d0,%d1 679da: 674a beqs 67a26 if (!nlFlag) return 0; break; } if (c == EOF) 679dc: 72ff moveq #-1,%d1 679de: b280 cmpl %d0,%d1 679e0: 6748 beqs 67a2a return 0; if (*nleft < 2) 679e2: 7201 moveq #1,%d1 679e4: b294 cmpl %a4@,%d1 679e6: 6442 bccs 67a2a return 0; **bufp = c; 679e8: 2053 moveal %a3@,%a0 679ea: 1080 moveb %d0,%a0@ { int c; *name = *bufp; for (;;) { c = getc(fp); 679ec: 202a 0004 movel %a2@(4),%d0 679f0: 5380 subql #1,%d0 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 679f2: 5293 addql #1,%a3@ --(*nleft); 679f4: 5394 subql #1,%a4@ { int c; *name = *bufp; for (;;) { c = getc(fp); 679f6: 2540 0004 movel %d0,%a2@(4) 679fa: 6cca bges 679c6 679fc: 2f0a movel %a2,%sp@- 679fe: 2f39 000a 29d4 movel a29d4 <_impure_ptr>,%sp@- 67a04: 4e95 jsr %a5@ 67a06: 508f addql #8,%sp if (c == ':') { 67a08: 723a moveq #58,%d1 67a0a: b280 cmpl %d0,%d1 67a0c: 66c8 bnes 679d6 if (nlFlag) 67a0e: 4a82 tstl %d2 67a10: 6618 bnes 67a2a return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 67a12: 2053 moveal %a3@,%a0 ++(*bufp); --(*nleft); 67a14: 7001 moveq #1,%d0 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 67a16: 4210 clrb %a0@ ++(*bufp); 67a18: 5293 addql #1,%a3@ --(*nleft); 67a1a: 5394 subql #1,%a4@ return 1; } 67a1c: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 67a22: 4e5e unlk %fp 67a24: 4e75 rts if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 67a26: 4a82 tstl %d2 67a28: 66e8 bnes 67a12 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 67a2a: 4280 clrl %d0 <== NOT EXECUTED } 67a2c: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 67a32: 4e5e unlk %fp <== NOT EXECUTED 67a34: 4e75 rts 00067a36 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 67a36: 4e56 ffe4 linkw %fp,#-28 67a3a: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 67a3e: 42a7 clrl %sp@- 67a40: 280e movel %fp,%d4 67a42: 0684 0000 0014 addil #20,%d4 67a48: 260e movel %fp,%d3 67a4a: 0683 0000 0010 addil #16,%d3 67a50: 47fa ff44 lea %pc@(67996 ),%a3 67a54: 2f04 movel %d4,%sp@- 67a56: 2f03 movel %d3,%sp@- FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 67a58: 246e 000c moveal %fp@(12),%a2 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 67a5c: 2f0a movel %a2,%sp@- FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 67a5e: 242e 0008 movel %fp@(8),%d2 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 67a62: 2f02 movel %d2,%sp@- 67a64: 4e93 jsr %a3@ 67a66: 4fef 0014 lea %sp@(20),%sp 67a6a: 4a80 tstl %d0 67a6c: 660c bnes 67a7a *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 67a6e: 4280 clrl %d0 <== NOT EXECUTED } 67a70: 4cee 0c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a3 <== NOT EXECUTED 67a76: 4e5e unlk %fp <== NOT EXECUTED 67a78: 4e75 rts <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 67a7a: 42a7 clrl %sp@- 67a7c: 2f04 movel %d4,%sp@- 67a7e: 2f03 movel %d3,%sp@- 67a80: 486a 0004 pea %a2@(4) 67a84: 2f02 movel %d2,%sp@- 67a86: 4e93 jsr %a3@ { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 67a88: 4fef 0014 lea %sp@(20),%sp 67a8c: 4a80 tstl %d0 67a8e: 67de beqs 67a6e || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 67a90: 486e fffc pea %fp@(-4) 67a94: 2f02 movel %d2,%sp@- 67a96: 4eba fe30 jsr %pc@(678c8 ) { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 67a9a: 508f addql #8,%sp 67a9c: 4a80 tstl %d0 67a9e: 67ce beqs 67a6e || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 67aa0: 4878 0001 pea 1 67aa4: 2f04 movel %d4,%sp@- 67aa6: 2f03 movel %d3,%sp@- 67aa8: 486e fff8 pea %fp@(-8) 67aac: 2f02 movel %d2,%sp@- 67aae: 4e93 jsr %a3@ { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 67ab0: 4fef 0014 lea %sp@(20),%sp 67ab4: 4a80 tstl %d0 67ab6: 67b6 beqs 67a6e grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67ab8: 226e fff8 moveal %fp@(-8),%a1 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; 67abc: 356e fffe 0008 movew %fp@(-2),%a2@(8) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67ac2: 1011 moveb %a1@,%d0 67ac4: 677a beqs 67b40 67ac6: 2049 moveal %a1,%a0 67ac8: 7201 moveq #1,%d1 67aca: 5288 addql #1,%a0 if(*cp == ',') 67acc: 49c0 extbl %d0 67ace: 742c moveq #44,%d2 67ad0: b480 cmpl %d0,%d2 67ad2: 6756 beqs 67b2a grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67ad4: 1010 moveb %a0@,%d0 67ad6: 66f2 bnes 67aca 67ad8: e589 lsll #2,%d1 67ada: 0681 0000 0013 addil #19,%d1 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 67ae0: b2ae 0014 cmpl %fp@(20),%d1 67ae4: 6288 bhis 67a6e return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 67ae6: 202e 0010 movel %fp@(16),%d0 67aea: 72f0 moveq #-16,%d1 67aec: 0680 0000 000f addil #15,%d0 67af2: c081 andl %d1,%d0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 67af4: 2040 moveal %d0,%a0 67af6: 2089 movel %a1,%a0@ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67af8: 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); 67afc: 2540 000a movel %d0,%a2@(10) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67b00: 1010 moveb %a0@,%d0 67b02: 6740 beqs 67b44 67b04: 5288 addql #1,%a0 67b06: 7201 moveq #1,%d1 if(*cp == ',') { 67b08: 49c0 extbl %d0 67b0a: 742c moveq #44,%d2 67b0c: b480 cmpl %d0,%d2 67b0e: 671e beqs 67b2e /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67b10: 1018 moveb %a0@+,%d0 67b12: 66f4 bnes 67b08 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 67b14: 206a 000a moveal %a2@(10),%a0 67b18: 7001 moveq #1,%d0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67b1a: e589 lsll #2,%d1 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 67b1c: 42b0 1800 clrl %a0@(00000000,%d1:l) return 1; } 67b20: 4cee 0c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a3 67b26: 4e5e unlk %fp 67b28: 4e75 rts /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') memcount++; 67b2a: 5281 addql #1,%d1 <== NOT EXECUTED 67b2c: 60a6 bras 67ad4 <== NOT EXECUTED * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; 67b2e: 4200 clrb %d0 <== NOT EXECUTED 67b30: 1140 ffff moveb %d0,%a0@(-1) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 67b34: 226a 000a moveal %a2@(10),%a1 <== NOT EXECUTED 67b38: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) <== NOT EXECUTED 67b3c: 5281 addql #1,%d1 <== NOT EXECUTED 67b3e: 60d0 bras 67b10 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67b40: 7217 moveq #23,%d1 <== NOT EXECUTED 67b42: 609c bras 67ae0 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 67b44: 206a 000a moveal %a2@(10),%a0 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 67b48: 7204 moveq #4,%d1 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 67b4a: 7001 moveq #1,%d0 <== NOT EXECUTED 67b4c: 42b0 1800 clrl %a0@(00000000,%d1:l) <== NOT EXECUTED 67b50: 60ce bras 67b20 <== NOT EXECUTED 00067b90 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 67b90: 4e56 ffe0 linkw %fp,#-32 67b94: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67b98: 42a7 clrl %sp@- 67b9a: 280e movel %fp,%d4 67b9c: 0684 0000 0014 addil #20,%d4 67ba2: 260e movel %fp,%d3 67ba4: 0683 0000 0010 addil #16,%d3 67baa: 47fa fdea lea %pc@(67996 ),%a3 67bae: 2f04 movel %d4,%sp@- 67bb0: 2f03 movel %d3,%sp@- FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 67bb2: 246e 000c moveal %fp@(12),%a2 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67bb6: 2f0a movel %a2,%sp@- FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 67bb8: 242e 0008 movel %fp@(8),%d2 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67bbc: 2f02 movel %d2,%sp@- 67bbe: 4e93 jsr %a3@ 67bc0: 4fef 0014 lea %sp@(20),%sp 67bc4: 4a80 tstl %d0 67bc6: 660c bnes 67bd4 || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; 67bc8: 4280 clrl %d0 <== NOT EXECUTED } 67bca: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 67bd0: 4e5e unlk %fp <== NOT EXECUTED 67bd2: 4e75 rts <== NOT EXECUTED ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 67bd4: 42a7 clrl %sp@- 67bd6: 2f04 movel %d4,%sp@- 67bd8: 2f03 movel %d3,%sp@- 67bda: 486a 0004 pea %a2@(4) 67bde: 2f02 movel %d2,%sp@- 67be0: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67be2: 4fef 0014 lea %sp@(20),%sp 67be6: 4a80 tstl %d0 67be8: 67de beqs 67bc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 67bea: 486e fffc pea %fp@(-4) 67bee: 49fa fcd8 lea %pc@(678c8 ),%a4 67bf2: 2f02 movel %d2,%sp@- 67bf4: 4e94 jsr %a4@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67bf6: 508f addql #8,%sp 67bf8: 4a80 tstl %d0 67bfa: 67cc beqs 67bc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 67bfc: 486e fff8 pea %fp@(-8) 67c00: 2f02 movel %d2,%sp@- 67c02: 4e94 jsr %a4@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67c04: 508f addql #8,%sp 67c06: 4a80 tstl %d0 67c08: 67be beqs 67bc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 67c0a: 42a7 clrl %sp@- 67c0c: 2f04 movel %d4,%sp@- 67c0e: 2f03 movel %d3,%sp@- 67c10: 486a 000c pea %a2@(12) 67c14: 2f02 movel %d2,%sp@- 67c16: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67c18: 4fef 0014 lea %sp@(20),%sp 67c1c: 4a80 tstl %d0 67c1e: 67a8 beqs 67bc8 || !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) 67c20: 42a7 clrl %sp@- 67c22: 2f04 movel %d4,%sp@- 67c24: 2f03 movel %d3,%sp@- 67c26: 486a 0010 pea %a2@(16) 67c2a: 2f02 movel %d2,%sp@- 67c2c: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67c2e: 4fef 0014 lea %sp@(20),%sp 67c32: 4a80 tstl %d0 67c34: 6792 beqs 67bc8 || !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) 67c36: 42a7 clrl %sp@- 67c38: 2f04 movel %d4,%sp@- 67c3a: 2f03 movel %d3,%sp@- 67c3c: 486a 0014 pea %a2@(20) 67c40: 2f02 movel %d2,%sp@- 67c42: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67c44: 4fef 0014 lea %sp@(20),%sp 67c48: 4a80 tstl %d0 67c4a: 6700 ff7c beqw 67bc8 || !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)) 67c4e: 4878 0001 pea 1 67c52: 2f04 movel %d4,%sp@- 67c54: 2f03 movel %d3,%sp@- 67c56: 486a 0018 pea %a2@(24) 67c5a: 2f02 movel %d2,%sp@- 67c5c: 4e93 jsr %a3@ size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 67c5e: 4fef 0014 lea %sp@(20),%sp 67c62: 4a80 tstl %d0 67c64: 6700 ff62 beqw 67bc8 || !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; 67c68: 7001 moveq #1,%d0 67c6a: 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; 67c70: 356e fffe 0008 movew %fp@(-2),%a2@(8) pwd->pw_gid = pwgid; return 1; } 67c76: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 67c7c: 4e5e unlk %fp 67c7e: 4e75 rts 00048a40 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 48a40: 4e56 fffc linkw %fp,#-4 48a44: 2f02 movel %d2,%sp@- * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 48a46: 486e fffc pea %fp@(-4) 48a4a: 2f2e 000c movel %fp@(12),%sp@- int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 48a4e: 242e 0008 movel %fp@(8),%d2 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 48a52: 4eb9 0004 e3b0 jsr 4e3b0 <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 48a58: 508f addql #8,%sp 48a5a: 7203 moveq #3,%d1 48a5c: b280 cmpl %d0,%d1 48a5e: 671a beqs 48a7a do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 48a60: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 48a64: 42a7 clrl %sp@- <== NOT EXECUTED 48a66: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48a68: 4eb9 0004 f014 jsr 4f014 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED break; } } return lock_status; } 48a6e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 48a72: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED break; } } return lock_status; } 48a76: 4e5e unlk %fp <== NOT EXECUTED 48a78: 4e75 rts <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 48a7a: 2f2e fffc movel %fp@(-4),%sp@- 48a7e: 4878 0001 pea 1 48a82: 2f02 movel %d2,%sp@- 48a84: 4eb9 0004 f014 jsr 4f014 <_POSIX_Semaphore_Wait_support> break; } } return lock_status; } 48a8a: 242e fff8 movel %fp@(-8),%d2 */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 48a8e: 4fef 000c lea %sp@(12),%sp break; } } return lock_status; } 48a92: 4e5e unlk %fp 48a94: 4e75 rts ... 0006786a : gid_t gid ) { _POSIX_types_Gid = gid; return 0; } 6786a: 4280 clrl %d0 <== NOT EXECUTED */ int setgid( gid_t gid ) { 6786c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Gid = gid; 67870: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 67876: 316e 000a 0034 movew %fp@(10),%a0@(52) <== NOT EXECUTED return 0; } 6787c: 4e5e unlk %fp <== NOT EXECUTED 6787e: 4e75 rts 00067dc8 : return NULL; return &grent; } void setgrent(void) { 67dc8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 67dcc: 4eb9 0006 7cbe jsr 67cbe <== NOT EXECUTED if (group_fp != NULL) 67dd2: 2039 000a 62fe movel a62fe ,%d0 <== NOT EXECUTED 67dd8: 670a beqs 67de4 <== NOT EXECUTED fclose(group_fp); 67dda: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67ddc: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED 67de2: 588f addql #4,%sp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 67de4: 4879 0009 a7d7 pea 9a7d7 <== NOT EXECUTED 67dea: 4879 0009 8f15 pea 98f15 <_rodata_start+0x845> <== NOT EXECUTED 67df0: 4eb9 0008 1a28 jsr 81a28 <== NOT EXECUTED 67df6: 508f addql #8,%sp <== NOT EXECUTED } 67df8: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); 67dfa: 23c0 000a 62fe movel %d0,a62fe <== NOT EXECUTED } 67e00: 4e75 rts 00067f92 : return NULL; return &pwent; } void setpwent(void) { 67f92: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 67f96: 4eb9 0006 7cbe jsr 67cbe <== NOT EXECUTED if (passwd_fp != NULL) 67f9c: 2039 000a 6216 movel a6216 ,%d0 <== NOT EXECUTED 67fa2: 670a beqs 67fae <== NOT EXECUTED fclose(passwd_fp); 67fa4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 67fa6: 4eb9 0008 11c2 jsr 811c2 <== NOT EXECUTED 67fac: 588f addql #4,%sp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 67fae: 4879 0009 a7d7 pea 9a7d7 <== NOT EXECUTED 67fb4: 4879 0009 8ed0 pea 98ed0 <_rodata_start+0x800> <== NOT EXECUTED 67fba: 4eb9 0008 1a28 jsr 81a28 <== NOT EXECUTED 67fc0: 508f addql #8,%sp <== NOT EXECUTED } 67fc2: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); 67fc4: 23c0 000a 6216 movel %d0,a6216 <== NOT EXECUTED } 67fca: 4e75 rts 0004796e : uid_t uid ) { _POSIX_types_Uid = uid; return 0; } 4796e: 4280 clrl %d0 <== NOT EXECUTED */ int setuid( uid_t uid ) { 47970: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Uid = uid; 47974: 2079 000a 21cc moveal a21cc ,%a0 <== NOT EXECUTED 4797a: 316e 000a 0032 movew %fp@(10),%a0@(50) <== NOT EXECUTED return 0; } 47980: 4e5e unlk %fp <== NOT EXECUTED 47982: 4e75 rts 0004899c : #include int sigsuspend( const sigset_t *sigmask ) { 4899c: 4e56 ffec linkw %fp,#-20 489a0: 48d7 040c moveml %d2-%d3/%a2,%sp@ int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 489a4: 240e movel %fp,%d2 489a6: 5982 subql #4,%d2 489a8: 45f9 0004 8974 lea 48974 ,%a2 (void) sigfillset( &all_signals ); 489ae: 260e movel %fp,%d3 489b0: 5183 subql #8,%d3 int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 489b2: 2f02 movel %d2,%sp@- 489b4: 2f2e 0008 movel %fp@(8),%sp@- 489b8: 4878 0001 pea 1 489bc: 4e92 jsr %a2@ (void) sigfillset( &all_signals ); 489be: 2f03 movel %d3,%sp@- 489c0: 4eb9 0004 88d0 jsr 488d0 status = sigtimedwait( &all_signals, NULL, NULL ); 489c6: 42a7 clrl %sp@- 489c8: 42a7 clrl %sp@- 489ca: 2f03 movel %d3,%sp@- 489cc: 4eb9 0004 8a58 jsr 48a58 489d2: 2600 movel %d0,%d3 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 489d4: 42a7 clrl %sp@- 489d6: 2f02 movel %d2,%sp@- 489d8: 42a7 clrl %sp@- 489da: 4e92 jsr %a2@ /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) 489dc: 4fef 0028 lea %sp@(40),%sp 489e0: 70ff moveq #-1,%d0 489e2: b083 cmpl %d3,%d0 489e4: 660c bnes 489f2 rtems_set_errno_and_return_minus_one( EINTR ); return status; } 489e6: 70ff moveq #-1,%d0 <== NOT EXECUTED 489e8: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 489ee: 4e5e unlk %fp <== NOT EXECUTED 489f0: 4e75 rts <== NOT EXECUTED /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) rtems_set_errno_and_return_minus_one( EINTR ); 489f2: 4eb9 0005 2010 jsr 52010 <__errno> 489f8: 2040 moveal %d0,%a0 489fa: 7004 moveq #4,%d0 return status; } 489fc: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) rtems_set_errno_and_return_minus_one( EINTR ); 48a02: 2080 movel %d0,%a0@ return status; } 48a04: 70ff moveq #-1,%d0 48a06: 4e5e unlk %fp 48a08: 4e75 rts ... 0004425c : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 4425c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44260: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44262: 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)) { 44266: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED 4426a: 0280 0000 0e78 andil #3704,%d0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 44270: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44272: 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)) { 44276: 4a80 tstl %d0 <== NOT EXECUTED 44278: 661c bnes 44296 <== 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); 4427a: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED } return i; } 4427e: 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); 44282: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED 44288: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return i; } 4428c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 44290: 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); 44292: 6000 fdd0 braw 44064 <== 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); 44296: 42a7 clrl %sp@- <== NOT EXECUTED i = iproc (c, tty); 44298: 0282 0000 00ff andil #255,%d2 <== 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); 4429e: 42a7 clrl %sp@- <== NOT EXECUTED 442a0: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 442a4: 4eb9 0004 5d2c jsr 45d2c <== NOT EXECUTED i = iproc (c, tty); 442aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 442ac: 2f02 movel %d2,%sp@- <== NOT EXECUTED 442ae: 4eba fdb4 jsr %pc@(44064 ) <== NOT EXECUTED rtems_semaphore_release (tty->osem); 442b2: 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); 442b6: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 442b8: 4eb9 0004 5e68 jsr 45e68 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 442be: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 442c2: 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); 442c4: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 442c8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 442cc: 4e5e unlk %fp <== NOT EXECUTED 442ce: 4e75 rts 00048f30 : int _STAT_NAME( const char *path, struct stat *buf ) { 48f30: 4e56 ffe0 linkw %fp,#-32 48f34: 48d7 001c moveml %d2-%d4,%sp@ 48f38: 262e 0008 movel %fp@(8),%d3 48f3c: 242e 000c movel %fp@(12),%d2 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 48f40: 6700 0088 beqw 48fca rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 48f44: 2f03 movel %d3,%sp@- 48f46: 280e movel %fp,%d4 48f48: 0684 ffff ffec addil #-20,%d4 48f4e: 4eb9 0008 712c jsr 8712c 48f54: 7201 moveq #1,%d1 48f56: 2e81 movel %d1,%sp@ 48f58: 2f04 movel %d4,%sp@- 48f5a: 42a7 clrl %sp@- 48f5c: 2f00 movel %d0,%sp@- 48f5e: 2f03 movel %d3,%sp@- 48f60: 4eb9 0004 774c jsr 4774c 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 48f66: 4fef 0014 lea %sp@(20),%sp 48f6a: 4a80 tstl %d0 48f6c: 664e bnes 48fbc return -1; if ( !loc.handlers->fstat_h ){ 48f6e: 206e fff4 moveal %fp@(-12),%a0 48f72: 4aa8 0018 tstl %a0@(24) 48f76: 676c beqs 48fe4 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 48f78: 4878 0046 pea 46 48f7c: 42a7 clrl %sp@- 48f7e: 2f02 movel %d2,%sp@- 48f80: 4eb9 0008 4228 jsr 84228 status = (*loc.handlers->fstat_h)( &loc, buf ); 48f86: 2f02 movel %d2,%sp@- 48f88: 2f04 movel %d4,%sp@- 48f8a: 206e fff4 moveal %fp@(-12),%a0 48f8e: 2068 0018 moveal %a0@(24),%a0 48f92: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 48f94: 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 ); 48f98: 2400 movel %d0,%d2 rtems_filesystem_freenode( &loc ); 48f9a: 4fef 0014 lea %sp@(20),%sp 48f9e: 4a88 tstl %a0 48fa0: 670e beqs 48fb0 48fa2: 2068 001c moveal %a0@(28),%a0 48fa6: 4a88 tstl %a0 48fa8: 6706 beqs 48fb0 48faa: 2f04 movel %d4,%sp@- 48fac: 4e90 jsr %a0@ 48fae: 588f addql #4,%sp return status; } 48fb0: 2002 movel %d2,%d0 48fb2: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 48fb8: 4e5e unlk %fp 48fba: 4e75 rts if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 48fbc: 74ff moveq #-1,%d2 status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 48fbe: 2002 movel %d2,%d0 48fc0: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 48fc6: 4e5e unlk %fp 48fc8: 4e75 rts /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 48fca: 4eb9 0008 1084 jsr 81084 <__errno> 48fd0: 74ff moveq #-1,%d2 48fd2: 760e moveq #14,%d3 48fd4: 2040 moveal %d0,%a0 status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 48fd6: 2002 movel %d2,%d0 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 48fd8: 2083 movel %d3,%a0@ status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 48fda: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 48fe0: 4e5e unlk %fp 48fe2: 4e75 rts 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 48fe4: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 48fe8: 4a88 tstl %a0 <== NOT EXECUTED 48fea: 670e beqs 48ffa <== NOT EXECUTED 48fec: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 48ff0: 4a88 tstl %a0 <== NOT EXECUTED 48ff2: 6706 beqs 48ffa <== NOT EXECUTED 48ff4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 48ff6: 4e90 jsr %a0@ <== NOT EXECUTED 48ff8: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 48ffa: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 49000: 74ff moveq #-1,%d2 <== NOT EXECUTED 49002: 2040 moveal %d0,%a0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 49004: 2002 movel %d2,%d0 <== NOT EXECUTED 49006: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 4900c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 49012: 4e5e unlk %fp <== NOT EXECUTED 49014: 4e75 rts 00068cb8 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 68cb8: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 68cbc: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 68cc0: 242e 0008 movel %fp@(8),%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 ) ) 68cc4: 260e movel %fp,%d3 <== NOT EXECUTED 68cc6: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED 68ccc: 2f02 movel %d2,%sp@- <== NOT EXECUTED */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 68cce: 282e 000c movel %fp@(12),%d4 <== 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 ) ) 68cd2: 4eb9 0008 712c jsr 8712c <== NOT EXECUTED 68cd8: 7201 moveq #1,%d1 <== NOT EXECUTED 68cda: 2e81 movel %d1,%sp@ <== NOT EXECUTED 68cdc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 68cde: 42a7 clrl %sp@- <== NOT EXECUTED 68ce0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 68ce2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 68ce4: 4eb9 0004 774c jsr 4774c <== NOT EXECUTED 68cea: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 68cee: 4a80 tstl %d0 <== NOT EXECUTED 68cf0: 6662 bnes 68d54 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 68cf2: 226e fffc moveal %fp@(-4),%a1 <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 68cf6: 2069 0028 moveal %a1@(40),%a0 <== NOT EXECUTED 68cfa: 4aa8 0044 tstl %a0@(68) <== NOT EXECUTED 68cfe: 6762 beqs 68d62 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 68d00: 2044 moveal %d4,%a0 <== NOT EXECUTED 68d02: 4298 clrl %a0@+ <== NOT EXECUTED 68d04: 4298 clrl %a0@+ <== NOT EXECUTED 68d06: 4298 clrl %a0@+ <== NOT EXECUTED 68d08: 4298 clrl %a0@+ <== NOT EXECUTED 68d0a: 4298 clrl %a0@+ <== NOT EXECUTED 68d0c: 4298 clrl %a0@+ <== NOT EXECUTED 68d0e: 4298 clrl %a0@+ <== NOT EXECUTED 68d10: 4298 clrl %a0@+ <== NOT EXECUTED 68d12: 4298 clrl %a0@+ <== NOT EXECUTED 68d14: 4298 clrl %a0@+ <== NOT EXECUTED 68d16: 4298 clrl %a0@+ <== NOT EXECUTED 68d18: 4298 clrl %a0@+ <== NOT EXECUTED 68d1a: 4298 clrl %a0@+ <== NOT EXECUTED 68d1c: 4290 clrl %a0@ <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 68d1e: 2069 0028 moveal %a1@(40),%a0 <== NOT EXECUTED 68d22: 2f04 movel %d4,%sp@- <== NOT EXECUTED 68d24: 4869 001c pea %a1@(28) <== NOT EXECUTED 68d28: 2068 0044 moveal %a0@(68),%a0 <== NOT EXECUTED 68d2c: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 68d2e: 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 ); 68d32: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 68d34: 508f addql #8,%sp <== NOT EXECUTED 68d36: 4a88 tstl %a0 <== NOT EXECUTED 68d38: 670e beqs 68d48 <== NOT EXECUTED 68d3a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 68d3e: 4a88 tstl %a0 <== NOT EXECUTED 68d40: 6706 beqs 68d48 <== NOT EXECUTED 68d42: 2f03 movel %d3,%sp@- <== NOT EXECUTED 68d44: 4e90 jsr %a0@ <== NOT EXECUTED 68d46: 588f addql #4,%sp <== NOT EXECUTED return result; } 68d48: 2002 movel %d2,%d0 <== NOT EXECUTED 68d4a: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 68d50: 4e5e unlk %fp <== NOT EXECUTED 68d52: 4e75 rts <== 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 ) ) 68d54: 74ff moveq #-1,%d2 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); rtems_filesystem_freenode( &loc ); return result; } 68d56: 2002 movel %d2,%d0 <== NOT EXECUTED 68d58: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED 68d5e: 4e5e unlk %fp <== NOT EXECUTED 68d60: 4e75 rts <== NOT EXECUTED mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 68d62: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 68d68: 74ff moveq #-1,%d2 <== NOT EXECUTED 68d6a: 2040 moveal %d0,%a0 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); rtems_filesystem_freenode( &loc ); return result; } 68d6c: 2002 movel %d2,%d0 <== NOT EXECUTED 68d6e: 4cee 001c ffe0 moveml %fp@(-32),%d2-%d4 <== NOT EXECUTED mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 68d74: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); rtems_filesystem_freenode( &loc ); return result; } 68d7a: 4e5e unlk %fp <== NOT EXECUTED 68d7c: 4e75 rts <== NOT EXECUTED ... 00068d80 : int symlink( const char *actualpath, const char *sympath ) { 68d80: 4e56 ffe8 linkw %fp,#-24 68d84: 226e 000c moveal %fp@(12),%a1 68d88: 2f0a movel %a2,%sp@- 68d8a: 2f02 movel %d2,%sp@- rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 68d8c: 742f moveq #47,%d2 68d8e: 1211 moveb %a1@,%d1 68d90: 1001 moveb %d1,%d0 68d92: 49c0 extbl %d0 68d94: b480 cmpl %d0,%d2 68d96: 670e beqs 68da6 68d98: 143c 005c moveb #92,%d2 68d9c: b480 cmpl %d0,%d2 68d9e: 6706 beqs 68da6 68da0: 4a01 tstb %d1 68da2: 6600 0092 bnew 68e36 68da6: 2079 000a 21cc moveal a21cc ,%a0 68dac: 45ee ffe8 lea %fp@(-24),%a2 68db0: 7001 moveq #1,%d0 68db2: 24a8 0018 movel %a0@(24),%a2@ 68db6: 2d68 001c ffec movel %a0@(28),%fp@(-20) 68dbc: 2d68 0020 fff0 movel %a0@(32),%fp@(-16) 68dc2: 2d68 0024 fff4 movel %a0@(36),%fp@(-12) 68dc8: 2d68 0028 fff8 movel %a0@(40),%fp@(-8) if ( !loc.ops->evalformake_h ) { 68dce: 206e fff4 moveal %fp@(-12),%a0 68dd2: 2068 0004 moveal %a0@(4),%a0 68dd6: 4a88 tstl %a0 68dd8: 6700 008a beqw 68e64 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 68ddc: 486e fffc pea %fp@(-4) 68de0: 2f0a movel %a2,%sp@- 68de2: 4871 0800 pea %a1@(00000000,%d0:l) 68de6: 4e90 jsr %a0@ if ( result != 0 ) 68de8: 4fef 000c lea %sp@(12),%sp 68dec: 4a80 tstl %d0 68dee: 6600 0092 bnew 68e82 return -1; if ( !loc.ops->symlink_h ) { 68df2: 226e fff4 moveal %fp@(-12),%a1 68df6: 2069 0038 moveal %a1@(56),%a0 68dfa: 4a88 tstl %a0 68dfc: 6700 0094 beqw 68e92 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 68e00: 2f2e fffc movel %fp@(-4),%sp@- 68e04: 2f2e 0008 movel %fp@(8),%sp@- 68e08: 2f0a movel %a2,%sp@- 68e0a: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 68e0c: 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); 68e10: 2400 movel %d0,%d2 rtems_filesystem_freenode( &loc ); 68e12: 4fef 000c lea %sp@(12),%sp 68e16: 4a88 tstl %a0 68e18: 670e beqs 68e28 68e1a: 2068 001c moveal %a0@(28),%a0 68e1e: 4a88 tstl %a0 68e20: 6706 beqs 68e28 68e22: 2f0a movel %a2,%sp@- 68e24: 4e90 jsr %a0@ 68e26: 588f addql #4,%sp return result; } 68e28: 2002 movel %d2,%d0 68e2a: 242e ffe0 movel %fp@(-32),%d2 68e2e: 246e ffe4 moveal %fp@(-28),%a2 68e32: 4e5e unlk %fp 68e34: 4e75 rts rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 68e36: 2079 000a 21cc moveal a21cc ,%a0 68e3c: 45ee ffe8 lea %fp@(-24),%a2 68e40: 5888 addql #4,%a0 68e42: 4280 clrl %d0 68e44: 2498 movel %a0@+,%a2@ 68e46: 2d58 ffec movel %a0@+,%fp@(-20) 68e4a: 2d58 fff0 movel %a0@+,%fp@(-16) 68e4e: 2d58 fff4 movel %a0@+,%fp@(-12) 68e52: 2d50 fff8 movel %a0@,%fp@(-8) if ( !loc.ops->evalformake_h ) { 68e56: 206e fff4 moveal %fp@(-12),%a0 68e5a: 2068 0004 moveal %a0@(4),%a0 68e5e: 4a88 tstl %a0 68e60: 6600 ff7a bnew 68ddc if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 68e64: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 68e6a: 74ff moveq #-1,%d2 <== NOT EXECUTED 68e6c: 2040 moveal %d0,%a0 <== NOT EXECUTED 68e6e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } 68e74: 2002 movel %d2,%d0 <== NOT EXECUTED 68e76: 242e ffe0 movel %fp@(-32),%d2 <== NOT EXECUTED 68e7a: 246e ffe4 moveal %fp@(-28),%a2 <== NOT EXECUTED 68e7e: 4e5e unlk %fp <== NOT EXECUTED 68e80: 4e75 rts <== NOT EXECUTED if ( !loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) 68e82: 74ff moveq #-1,%d2 result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } 68e84: 2002 movel %d2,%d0 68e86: 242e ffe0 movel %fp@(-32),%d2 68e8a: 246e ffe4 moveal %fp@(-28),%a2 68e8e: 4e5e unlk %fp 68e90: 4e75 rts result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); 68e92: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 68e96: 4a88 tstl %a0 <== NOT EXECUTED 68e98: 67ca beqs 68e64 <== NOT EXECUTED 68e9a: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 68e9c: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); 68e9e: 4e90 jsr %a0@ <== NOT EXECUTED 68ea0: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 68ea2: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 68ea8: 2040 moveal %d0,%a0 <== NOT EXECUTED 68eaa: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 68eb0: 60c2 bras 68e74 <== NOT EXECUTED ... 00052da4 : int tcsetattr( int fd, int opt, struct termios *tp ) { 52da4: 4e56 0000 linkw %fp,#0 52da8: 202e 000c movel %fp@(12),%d0 52dac: 2f03 movel %d3,%sp@- 52dae: 262e 0010 movel %fp@(16),%d3 52db2: 2f02 movel %d2,%sp@- 52db4: 242e 0008 movel %fp@(8),%d2 switch (opt) { 52db8: 4a80 tstl %d0 52dba: 6738 beqs 52df4 52dbc: 7201 moveq #1,%d1 <== NOT EXECUTED 52dbe: b280 cmpl %d0,%d1 <== NOT EXECUTED 52dc0: 671c beqs 52dde <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 52dc2: 4eb9 0005 8388 jsr 58388 <__errno> <== NOT EXECUTED 52dc8: 2040 moveal %d0,%a0 <== NOT EXECUTED 52dca: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 52dd0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 52dd4: 70ff moveq #-1,%d0 <== NOT EXECUTED 52dd6: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 52dda: 4e5e unlk %fp <== NOT EXECUTED 52ddc: 4e75 rts <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 52dde: 42a7 clrl %sp@- <== NOT EXECUTED 52de0: 4878 0003 pea 3 <== NOT EXECUTED 52de4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52de6: 4eb9 0005 6b00 jsr 56b00 <== NOT EXECUTED 52dec: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 52df0: 4a80 tstl %d0 <== NOT EXECUTED 52df2: 6ddc blts 52dd0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 52df4: 2d43 0010 movel %d3,%fp@(16) 52df8: 7002 moveq #2,%d0 52dfa: 2d42 0008 movel %d2,%fp@(8) } } 52dfe: 242e fff8 movel %fp@(-8),%d2 52e02: 262e fffc movel %fp@(-4),%d3 return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 52e06: 2d40 000c movel %d0,%fp@(12) } } 52e0a: 4e5e unlk %fp return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 52e0c: 4ef9 0005 6b00 jmp 56b00 ... 0004b49c : useconds_t ualarm( useconds_t useconds, useconds_t interval ) { 4b49c: 4e56 ffe8 linkw %fp,#-24 4b4a0: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4b4a4: 242e 0008 movel %fp@(8),%d2 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { 4b4a8: 4ab9 0005 f96e tstl 5f96e <_POSIX_signals_Ualarm_timer+0x1c> 4b4ae: 6700 0086 beqw 4b536 _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); 4b4b2: 4879 0005 f952 pea 5f952 <_POSIX_signals_Ualarm_timer> 4b4b8: 4eb9 0004 9094 jsr 49094 <_Watchdog_Remove> if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { 4b4be: 588f addql #4,%sp 4b4c0: 7201 moveq #1,%d1 4b4c2: 5580 subql #2,%d0 4b4c4: b280 cmpl %d0,%d1 4b4c6: 6400 0098 bccw 4b560 4b4ca: 4283 clrl %d3 <== NOT EXECUTED /* * 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 ) { 4b4cc: 4a82 tstl %d2 <== NOT EXECUTED 4b4ce: 660c bnes 4b4dc <== NOT EXECUTED _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); } return remaining; } 4b4d0: 2003 movel %d3,%d0 4b4d2: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4b4d8: 4e5e unlk %fp 4b4da: 4e75 rts if ( useconds ) { 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 ); 4b4dc: 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; 4b4de: 223c 000f 4240 movel #1000000,%d1 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); 4b4e4: 5184 subql #8,%d4 4b4e6: 45f9 0004 c5c0 lea 4c5c0 <_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; 4b4ec: 4c41 2000 remul %d1,%d0,%d2 4b4f0: 4c41 2002 remul %d1,%d2,%d2 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; 4b4f4: 223c 0000 03e8 movel #1000,%d1 * 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; 4b4fa: 2d42 fff8 movel %d2,%fp@(-8) tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; 4b4fe: 4c00 1800 mulsl %d0,%d1 ticks = _Timespec_To_ticks( &tp ); 4b502: 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; 4b504: 2d41 fffc movel %d1,%fp@(-4) ticks = _Timespec_To_ticks( &tp ); 4b508: 4e92 jsr %a2@ if ( ticks == 0 ) ticks = 1; _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); 4b50a: 2f04 movel %d4,%sp@- 4b50c: 4e92 jsr %a2@ 4b50e: 4879 0005 f952 pea 5f952 <_POSIX_signals_Ualarm_timer> 4b514: 4879 0005 f22c pea 5f22c <_Watchdog_Ticks_chain> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 4b51a: 23c0 0005 f95e movel %d0,5f95e <_POSIX_signals_Ualarm_timer+0xc> _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 4b520: 4eb9 0004 8f4c jsr 48f4c <_Watchdog_Insert> 4b526: 4fef 0010 lea %sp@(16),%sp } return remaining; } 4b52a: 2003 movel %d3,%d0 4b52c: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 4b532: 4e5e unlk %fp 4b534: 4e75 rts Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 4b536: 42b9 0005 f95a clrl 5f95a <_POSIX_signals_Ualarm_timer+0x8> the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 4b53c: 4283 clrl %d3 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 4b53e: 203c 0004 b5a8 movel #308648,%d0 the_watchdog->id = id; 4b544: 42b9 0005 f972 clrl 5f972 <_POSIX_signals_Ualarm_timer+0x20> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 4b54a: 23c0 0005 f96e movel %d0,5f96e <_POSIX_signals_Ualarm_timer+0x1c> the_watchdog->id = id; the_watchdog->user_data = user_data; 4b550: 42b9 0005 f976 clrl 5f976 <_POSIX_signals_Ualarm_timer+0x24> /* * 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 ) { 4b556: 4a82 tstl %d2 4b558: 6700 ff76 beqw 4b4d0 4b55c: 6000 ff7e braw 4b4dc * 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); 4b560: 2039 0005 f966 movel 5f966 <_POSIX_signals_Ualarm_timer+0x14>,%d0 4b566: d0b9 0005 f95e addl 5f95e <_POSIX_signals_Ualarm_timer+0xc>,%d0 /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); 4b56c: 486e fff8 pea %fp@(-8) 4b570: 90b9 0005 f96a subl 5f96a <_POSIX_signals_Ualarm_timer+0x18>,%d0 remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 4b576: 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 ); 4b57c: 2f00 movel %d0,%sp@- 4b57e: 4eb9 0004 c584 jsr 4c584 <_Timespec_From_ticks> remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 4b584: 202e fff8 movel %fp@(-8),%d0 4b588: 4c04 0800 mulsl %d4,%d0 remaining += tp.tv_nsec / 1000; 4b58c: 283c 0000 03e8 movel #1000,%d4 4b592: 508f addql #8,%sp 4b594: 262e fffc movel %fp@(-4),%d3 4b598: 4c44 3803 remsl %d4,%d3,%d3 4b59c: d680 addl %d0,%d3 /* * 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 ) { 4b59e: 4a82 tstl %d2 4b5a0: 6700 ff2e beqw 4b4d0 4b5a4: 6000 ff36 braw 4b4dc <== NOT EXECUTED 0004e5b4 : #include int unlink( const char *path ) { 4e5b4: 4e56 ffbc linkw %fp,#-68 4e5b8: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ 4e5bc: 282e 0008 movel %fp@(8),%d4 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4e5c0: 2f04 movel %d4,%sp@- 4e5c2: 4eb9 0004 25a4 jsr 425a4 if ( parentpathlen == 0 ) 4e5c8: 588f addql #4,%sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4e5ca: 2400 movel %d0,%d2 if ( parentpathlen == 0 ) 4e5cc: 6600 01c8 bnew 4e796 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 4e5d0: 2044 moveal %d4,%a0 4e5d2: 762f moveq #47,%d3 4e5d4: 1210 moveb %a0@,%d1 4e5d6: 1001 moveb %d1,%d0 4e5d8: 49c0 extbl %d0 4e5da: b680 cmpl %d0,%d3 4e5dc: 670e beqs 4e5ec 4e5de: 163c 005c moveb #92,%d3 <== NOT EXECUTED 4e5e2: b680 cmpl %d0,%d3 <== NOT EXECUTED 4e5e4: 6706 beqs 4e5ec <== NOT EXECUTED 4e5e6: 4a01 tstb %d1 <== NOT EXECUTED 4e5e8: 6600 00fc bnew 4e6e6 <== NOT EXECUTED 4e5ec: 2079 0005 da04 moveal 5da04 ,%a0 4e5f2: 45ee ffec lea %fp@(-20),%a2 4e5f6: 49ee fff0 lea %fp@(-16),%a4 4e5fa: 200e movel %fp,%d0 4e5fc: 0680 ffff fff4 addil #-12,%d0 4e602: 2640 moveal %d0,%a3 4e604: 4bee fff8 lea %fp@(-8),%a5 4e608: 224e moveal %fp,%a1 4e60a: 24a8 0018 movel %a0@(24),%a2@ 4e60e: 28a8 001c movel %a0@(28),%a4@ 4e612: 26a8 0020 movel %a0@(32),%a3@ 4e616: 2aa8 0024 movel %a0@(36),%a5@ 4e61a: 2328 0028 movel %a0@(40),%a1@- 4e61e: 4203 clrb %d3 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4e620: 2040 moveal %d0,%a0 name = path + parentpathlen; 4e622: 2644 moveal %d4,%a3 4e624: d7c2 addal %d2,%a3 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4e626: 240e movel %fp,%d2 4e628: 0682 ffff ffd8 addil #-40,%d2 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4e62e: 2d50 ffe0 movel %a0@,%fp@(-32) 4e632: 2d51 ffe8 movel %a1@,%fp@(-24) 4e636: 2d54 ffdc movel %a4@,%fp@(-36) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4e63a: 49f9 0005 01ac lea 501ac ,%a4 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4e640: 2d55 ffe4 movel %a5@,%fp@(-28) 4e644: 2d52 ffd8 movel %a2@,%fp@(-40) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4e648: 2f0b movel %a3,%sp@- 4e64a: 4e94 jsr %a4@ 4e64c: 2e80 movel %d0,%sp@ 4e64e: 2f0b movel %a3,%sp@- 4e650: 4eb9 0004 255c jsr 4255c 4e656: d7c0 addal %d0,%a3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4e658: 2f0b movel %a3,%sp@- 4e65a: 4e94 jsr %a4@ 4e65c: 4297 clrl %sp@ 4e65e: 2f02 movel %d2,%sp@- 4e660: 42a7 clrl %sp@- 4e662: 2f00 movel %d0,%sp@- 4e664: 2f0b movel %a3,%sp@- 4e666: 4eb9 0004 2616 jsr 42616 0, &loc, false ); if ( result != 0 ) { 4e66c: 4fef 001c lea %sp@(28),%sp 4e670: 4a80 tstl %d0 4e672: 6600 00a2 bnew 4e716 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 4e676: 226e ffe4 moveal %fp@(-28),%a1 4e67a: 2069 0010 moveal %a1@(16),%a0 4e67e: 4a88 tstl %a0 4e680: 6700 00ce beqw 4e750 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 ) { 4e684: 2f02 movel %d2,%sp@- 4e686: 4e90 jsr %a0@ 4e688: 588f addql #4,%sp 4e68a: 7201 moveq #1,%d1 4e68c: b280 cmpl %d0,%d1 4e68e: 6700 0140 beqw 4e7d0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 4e692: 226e ffe4 moveal %fp@(-28),%a1 4e696: 2069 000c moveal %a1@(12),%a0 4e69a: 4a88 tstl %a0 4e69c: 6700 00b2 beqw 4e750 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 4e6a0: 2f02 movel %d2,%sp@- 4e6a2: 2f0a movel %a2,%sp@- 4e6a4: 4e90 jsr %a0@ rtems_filesystem_freenode( &loc ); 4e6a6: 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 ); 4e6aa: 2640 moveal %d0,%a3 rtems_filesystem_freenode( &loc ); 4e6ac: 508f addql #8,%sp 4e6ae: 4a88 tstl %a0 4e6b0: 670e beqs 4e6c0 4e6b2: 2068 001c moveal %a0@(28),%a0 4e6b6: 4a88 tstl %a0 4e6b8: 6706 beqs 4e6c0 4e6ba: 2f02 movel %d2,%sp@- 4e6bc: 4e90 jsr %a0@ 4e6be: 588f addql #4,%sp if ( free_parentloc ) 4e6c0: 4a03 tstb %d3 4e6c2: 6716 beqs 4e6da rtems_filesystem_freenode( &parentloc ); 4e6c4: 206e fff8 moveal %fp@(-8),%a0 4e6c8: 4a88 tstl %a0 4e6ca: 670e beqs 4e6da 4e6cc: 2068 001c moveal %a0@(28),%a0 4e6d0: 4a88 tstl %a0 4e6d2: 6706 beqs 4e6da 4e6d4: 2f0a movel %a2,%sp@- 4e6d6: 4e90 jsr %a0@ 4e6d8: 588f addql #4,%sp return result; } 4e6da: 200b movel %a3,%d0 4e6dc: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 4e6e2: 4e5e unlk %fp 4e6e4: 4e75 rts */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); 4e6e6: 2079 0005 da04 moveal 5da04 ,%a0 <== NOT EXECUTED 4e6ec: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 4e6f0: 5888 addql #4,%a0 <== NOT EXECUTED 4e6f2: 49ee fff0 lea %fp@(-16),%a4 <== NOT EXECUTED 4e6f6: 200e movel %fp,%d0 <== NOT EXECUTED 4e6f8: 0680 ffff fff4 addil #-12,%d0 <== NOT EXECUTED 4e6fe: 2640 moveal %d0,%a3 <== NOT EXECUTED 4e700: 4bee fff8 lea %fp@(-8),%a5 <== NOT EXECUTED 4e704: 224e moveal %fp,%a1 <== NOT EXECUTED 4e706: 2498 movel %a0@+,%a2@ <== NOT EXECUTED 4e708: 2898 movel %a0@+,%a4@ <== NOT EXECUTED 4e70a: 2698 movel %a0@+,%a3@ <== NOT EXECUTED 4e70c: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 4e70e: 2310 movel %a0@,%a1@- <== NOT EXECUTED 4e710: 4203 clrb %d3 <== NOT EXECUTED 4e712: 6000 ff0c braw 4e620 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 4e716: 4a03 tstb %d3 4e718: 6610 bnes 4e72a result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 4e71a: 367c ffff moveaw #-1,%a3 <== NOT EXECUTED return result; } 4e71e: 200b movel %a3,%d0 <== NOT EXECUTED 4e720: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 <== NOT EXECUTED 4e726: 4e5e unlk %fp <== NOT EXECUTED 4e728: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 4e72a: 206e fff8 moveal %fp@(-8),%a0 4e72e: 4a88 tstl %a0 4e730: 67e8 beqs 4e71a 4e732: 2028 001c movel %a0@(28),%d0 4e736: 67e2 beqs 4e71a 4e738: 2f0a movel %a2,%sp@- 4e73a: 2040 moveal %d0,%a0 4e73c: 367c ffff moveaw #-1,%a3 4e740: 4e90 jsr %a0@ 4e742: 588f addql #4,%sp rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 4e744: 200b movel %a3,%d0 4e746: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 4e74c: 4e5e unlk %fp 4e74e: 4e75 rts rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 4e750: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 4e754: 4a88 tstl %a0 <== NOT EXECUTED 4e756: 6706 beqs 4e75e <== NOT EXECUTED 4e758: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e75a: 4e90 jsr %a0@ <== NOT EXECUTED 4e75c: 588f addql #4,%sp <== NOT EXECUTED if ( free_parentloc ) 4e75e: 4a03 tstb %d3 <== NOT EXECUTED 4e760: 6716 beqs 4e778 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 4e762: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4e766: 4a88 tstl %a0 <== NOT EXECUTED 4e768: 670e beqs 4e778 <== NOT EXECUTED 4e76a: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4e76e: 4a88 tstl %a0 <== NOT EXECUTED 4e770: 6706 beqs 4e778 <== NOT EXECUTED 4e772: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e774: 4e90 jsr %a0@ <== NOT EXECUTED 4e776: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4e778: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 4e77e: 367c ffff moveaw #-1,%a3 <== NOT EXECUTED 4e782: 2040 moveal %d0,%a0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 4e784: 200b movel %a3,%d0 <== NOT EXECUTED 4e786: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 <== NOT EXECUTED if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 4e78c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 4e792: 4e5e unlk %fp <== NOT EXECUTED 4e794: 4e75 rts <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 4e796: 42a7 clrl %sp@- 4e798: 45ee ffec lea %fp@(-20),%a2 4e79c: 2f0a movel %a2,%sp@- 4e79e: 4878 0002 pea 2 4e7a2: 2f00 movel %d0,%sp@- 4e7a4: 2f04 movel %d4,%sp@- 4e7a6: 4eb9 0004 2720 jsr 42720 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 4e7ac: 4fef 0014 lea %sp@(20),%sp 4e7b0: 4a80 tstl %d0 4e7b2: 6600 ff66 bnew 4e71a 4e7b6: 200e movel %fp,%d0 4e7b8: 49ee fff0 lea %fp@(-16),%a4 4e7bc: 0680 ffff fff4 addil #-12,%d0 4e7c2: 4bee fff8 lea %fp@(-8),%a5 4e7c6: 43ee fffc lea %fp@(-4),%a1 4e7ca: 7601 moveq #1,%d3 4e7cc: 6000 fe52 braw 4e620 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 4e7d0: 206e ffe4 moveal %fp@(-28),%a0 4e7d4: 4a88 tstl %a0 4e7d6: 670e beqs 4e7e6 4e7d8: 2068 001c moveal %a0@(28),%a0 4e7dc: 4a88 tstl %a0 4e7de: 6706 beqs 4e7e6 4e7e0: 2f02 movel %d2,%sp@- 4e7e2: 4e90 jsr %a0@ 4e7e4: 588f addql #4,%sp if ( free_parentloc ) 4e7e6: 4a03 tstb %d3 4e7e8: 6716 beqs 4e800 rtems_filesystem_freenode( &parentloc ); 4e7ea: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4e7ee: 4a88 tstl %a0 <== NOT EXECUTED 4e7f0: 670e beqs 4e800 <== NOT EXECUTED 4e7f2: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4e7f6: 4a88 tstl %a0 <== NOT EXECUTED 4e7f8: 6706 beqs 4e800 <== NOT EXECUTED 4e7fa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e7fc: 4e90 jsr %a0@ <== NOT EXECUTED 4e7fe: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 4e800: 4eb9 0004 ede0 jsr 4ede0 <__errno> 4e806: 367c ffff moveaw #-1,%a3 4e80a: 2040 moveal %d0,%a0 4e80c: 7015 moveq #21,%d0 4e80e: 2080 movel %d0,%a0@ rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 4e810: 200b movel %a3,%d0 4e812: 4cee 3c1c ffbc moveml %fp@(-68),%d2-%d4/%a2-%a5 4e818: 4e5e unlk %fp 4e81a: 4e75 rts 0004b174 : */ int unmount( const char *path ) { 4b174: 4e56 ffec linkw %fp,#-20 4b178: 2f0a movel %a2,%sp@- 4b17a: 246e 0008 moveal %fp@(8),%a2 4b17e: 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 ) ) 4b180: 240e movel %fp,%d2 4b182: 0682 ffff ffec addil #-20,%d2 4b188: 2f0a movel %a2,%sp@- 4b18a: 4eb9 0008 712c jsr 8712c 4b190: 7201 moveq #1,%d1 4b192: 2e81 movel %d1,%sp@ 4b194: 2f02 movel %d2,%sp@- 4b196: 42a7 clrl %sp@- 4b198: 2f00 movel %d0,%sp@- 4b19a: 2f0a movel %a2,%sp@- 4b19c: 4eb9 0004 774c jsr 4774c 4b1a2: 4fef 0014 lea %sp@(20),%sp 4b1a6: 4a80 tstl %d0 4b1a8: 6600 00b0 bnew 4b25a return -1; mt_entry = loc.mt_entry; 4b1ac: 246e fffc moveal %fp@(-4),%a2 fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 4b1b0: 202e ffec movel %fp@(-20),%d0 4b1b4: b0aa 001c cmpl %a2@(28),%d0 4b1b8: 6600 00fa bnew 4b2b4 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 4b1bc: 206e fff8 moveal %fp@(-8),%a0 4b1c0: 4a88 tstl %a0 4b1c2: 670e beqs 4b1d2 4b1c4: 2068 001c moveal %a0@(28),%a0 4b1c8: 4a88 tstl %a0 4b1ca: 6706 beqs 4b1d2 4b1cc: 2f02 movel %d2,%sp@- 4b1ce: 4e90 jsr %a0@ 4b1d0: 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; 4b1d2: 206a 0014 moveal %a2@(20),%a0 4b1d6: 4aa8 0028 tstl %a0@(40) 4b1da: 6700 0126 beqw 4b302 fs_root_loc = &mt_entry->mt_fs_root; 4b1de: 206a 0028 moveal %a2@(40),%a0 4b1e2: 4aa8 002c tstl %a0@(44) 4b1e6: 6700 011a beqw 4b302 * 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 ) 4b1ea: 2079 000a 21cc moveal a21cc ,%a0 4b1f0: b5e8 0014 cmpal %a0@(20),%a2 4b1f4: 6728 beqs 4b21e /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4b1f6: 2079 000a 6bb0 moveal a6bb0 ,%a0 4b1fc: b1fc 000a 6bb4 cmpal #682932,%a0 4b202: 6734 beqs 4b238 !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 ) { 4b204: 202a 002c movel %a2@(44),%d0 4b208: b0a8 0018 cmpl %a0@(24),%d0 4b20c: 6710 beqs 4b21e * 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 ) { 4b20e: 2050 moveal %a0@,%a0 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4b210: b1fc 000a 6bb4 cmpal #682932,%a0 4b216: 6720 beqs 4b238 !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 ) { 4b218: b0a8 0018 cmpl %a0@(24),%d0 4b21c: 66f0 bnes 4b20e * 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 ); 4b21e: 4eb9 0008 1084 jsr 81084 <__errno> rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b224: 242e ffe4 movel %fp@(-28),%d2 * 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 ); 4b228: 2040 moveal %d0,%a0 4b22a: 7210 moveq #16,%d1 4b22c: 70ff moveq #-1,%d0 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b22e: 246e ffe8 moveal %fp@(-24),%a2 4b232: 4e5e unlk %fp * 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 ); 4b234: 2081 movel %d1,%a0@ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b236: 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 ) 4b238: 2f0a movel %a2,%sp@- 4b23a: 4eb9 0004 7af0 jsr 47af0 4b240: 588f addql #4,%sp 4b242: 7201 moveq #1,%d1 4b244: b280 cmpl %d0,%d1 4b246: 67d6 beqs 4b21e * 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 ) 4b248: 206a 0014 moveal %a2@(20),%a0 4b24c: 2f0a movel %a2,%sp@- 4b24e: 2068 0028 moveal %a0@(40),%a0 4b252: 4e90 jsr %a0@ 4b254: 588f addql #4,%sp 4b256: 4a80 tstl %d0 4b258: 670e beqs 4b268 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b25a: 242e ffe4 movel %fp@(-28),%d2 */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 4b25e: 70ff moveq #-1,%d0 } 4b260: 246e ffe8 moveal %fp@(-24),%a2 4b264: 4e5e unlk %fp 4b266: 4e75 rts * 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){ 4b268: 206a 0028 moveal %a2@(40),%a0 4b26c: 2f0a movel %a2,%sp@- 4b26e: 2068 002c moveal %a0@(44),%a0 4b272: 4e90 jsr %a0@ 4b274: 588f addql #4,%sp 4b276: 4a80 tstl %d0 4b278: 666a bnes 4b2e4 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 4b27a: 2f0a movel %a2,%sp@- 4b27c: 4eb9 0004 cb3c jsr 4cb3c <_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 ); 4b282: 206a 0014 moveal %a2@(20),%a0 4b286: 588f addql #4,%sp 4b288: 4a88 tstl %a0 4b28a: 6710 beqs 4b29c 4b28c: 2068 001c moveal %a0@(28),%a0 4b290: 4a88 tstl %a0 4b292: 6708 beqs 4b29c 4b294: 486a 0008 pea %a2@(8) 4b298: 4e90 jsr %a0@ 4b29a: 588f addql #4,%sp free( mt_entry ); 4b29c: 2f0a movel %a2,%sp@- 4b29e: 4eb9 0004 7840 jsr 47840 return 0; } 4b2a4: 242e ffe4 movel %fp@(-28),%d2 */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 4b2a8: 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 ); 4b2aa: 4280 clrl %d0 return 0; } 4b2ac: 246e ffe8 moveal %fp@(-24),%a2 4b2b0: 4e5e unlk %fp 4b2b2: 4e75 rts /* * 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 ); 4b2b4: 206e fff8 moveal %fp@(-8),%a0 4b2b8: 4a88 tstl %a0 4b2ba: 670e beqs 4b2ca 4b2bc: 2068 001c moveal %a0@(28),%a0 4b2c0: 4a88 tstl %a0 4b2c2: 6706 beqs 4b2ca 4b2c4: 2f02 movel %d2,%sp@- 4b2c6: 4e90 jsr %a0@ 4b2c8: 588f addql #4,%sp rtems_set_errno_and_return_minus_one( EACCES ); 4b2ca: 4eb9 0008 1084 jsr 81084 <__errno> 4b2d0: 740d moveq #13,%d2 4b2d2: 2040 moveal %d0,%a0 4b2d4: 70ff moveq #-1,%d0 4b2d6: 2082 movel %d2,%a0@ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b2d8: 242e ffe4 movel %fp@(-28),%d2 4b2dc: 246e ffe8 moveal %fp@(-24),%a2 4b2e0: 4e5e unlk %fp 4b2e2: 4e75 rts * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 4b2e4: 206a 0014 moveal %a2@(20),%a0 <== NOT EXECUTED 4b2e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b2ea: 2028 0020 movel %a0@(32),%d0 <== NOT EXECUTED 4b2ee: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b2f0: 4e90 jsr %a0@ <== NOT EXECUTED 4b2f2: 588f addql #4,%sp <== NOT EXECUTED 4b2f4: 4a80 tstl %d0 <== NOT EXECUTED 4b2f6: 6700 ff62 beqw 4b25a <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 4b2fa: 42a7 clrl %sp@- <== NOT EXECUTED 4b2fc: 4eb9 0004 c7c4 jsr 4c7c4 <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4b302: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b308: 242e ffe4 movel %fp@(-28),%d2 <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4b30c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b30e: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b310: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 4b314: 4e5e unlk %fp <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4b316: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 4b31c: 4e75 rts <== NOT EXECUTED ... 00068f70 : int utime( const char *path, const struct utimbuf *times ) { 68f70: 4e56 ffe0 linkw %fp,#-32 68f74: 48d7 040c moveml %d2-%d3/%a2,%sp@ 68f78: 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 ) ) 68f7c: 240e movel %fp,%d2 68f7e: 0682 ffff ffec addil #-20,%d2 68f84: 2f03 movel %d3,%sp@- int utime( const char *path, const struct utimbuf *times ) { 68f86: 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 ) ) 68f8a: 4eb9 0008 712c jsr 8712c 68f90: 7201 moveq #1,%d1 68f92: 2e81 movel %d1,%sp@ 68f94: 2f02 movel %d2,%sp@- 68f96: 42a7 clrl %sp@- 68f98: 2f00 movel %d0,%sp@- 68f9a: 2f03 movel %d3,%sp@- 68f9c: 4eb9 0004 774c jsr 4774c 68fa2: 4fef 0014 lea %sp@(20),%sp 68fa6: 4a80 tstl %d0 68fa8: 663e bnes 68fe8 return -1; if ( !temp_loc.ops->utime_h ){ 68faa: 226e fff8 moveal %fp@(-8),%a1 68fae: 2069 0030 moveal %a1@(48),%a0 68fb2: 4a88 tstl %a0 68fb4: 6740 beqs 68ff6 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 ); 68fb6: 2f2a 0004 movel %a2@(4),%sp@- 68fba: 2f12 movel %a2@,%sp@- 68fbc: 2f02 movel %d2,%sp@- 68fbe: 4e90 jsr %a0@ rtems_filesystem_freenode( &temp_loc ); 68fc0: 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 ); 68fc4: 2600 movel %d0,%d3 rtems_filesystem_freenode( &temp_loc ); 68fc6: 4fef 000c lea %sp@(12),%sp 68fca: 4a88 tstl %a0 68fcc: 670e beqs 68fdc 68fce: 2068 001c moveal %a0@(28),%a0 68fd2: 4a88 tstl %a0 68fd4: 6706 beqs 68fdc 68fd6: 2f02 movel %d2,%sp@- 68fd8: 4e90 jsr %a0@ 68fda: 588f addql #4,%sp return result; } 68fdc: 2003 movel %d3,%d0 68fde: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 68fe4: 4e5e unlk %fp 68fe6: 4e75 rts ) { rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) 68fe8: 76ff moveq #-1,%d3 result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); rtems_filesystem_freenode( &temp_loc ); return result; } 68fea: 2003 movel %d3,%d0 68fec: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 68ff2: 4e5e unlk %fp 68ff4: 4e75 rts if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); 68ff6: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 68ffa: 4a88 tstl %a0 <== NOT EXECUTED 68ffc: 6706 beqs 69004 <== NOT EXECUTED 68ffe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 69000: 4e90 jsr %a0@ <== NOT EXECUTED 69002: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 69004: 4eb9 0008 1084 jsr 81084 <__errno> <== NOT EXECUTED 6900a: 76ff moveq #-1,%d3 <== NOT EXECUTED 6900c: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); rtems_filesystem_freenode( &temp_loc ); return result; } 6900e: 2003 movel %d3,%d0 <== NOT EXECUTED 69010: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 69016: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); rtems_filesystem_freenode( &temp_loc ); return result; } 6901c: 4e5e unlk %fp <== NOT EXECUTED 6901e: 4e75 rts 00045238 : */ void vprintk( const char *fmt, va_list ap ) { 45238: 4e56 ffc0 linkw %fp,#-64 4523c: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 45240: 246e 0008 moveal %fp@(8),%a2 for (; *fmt != '\0'; fmt++) { 45244: 1012 moveb %a2@,%d0 */ void vprintk( const char *fmt, va_list ap ) { 45246: 2c2e 000c movel %fp@(12),%d6 for (; *fmt != '\0'; fmt++) { 4524a: 4a00 tstb %d0 4524c: 6700 0130 beqw 4537e toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45250: 49ee ffec lea %fp@(-20),%a4 45254: 4bf9 0005 c85f lea 5c85f ,%a5 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 4525a: 49c0 extbl %d0 4525c: 7225 moveq #37,%d1 4525e: b280 cmpl %d0,%d1 45260: 6724 beqs 45286 BSP_output_char(*fmt); 45262: 2f00 movel %d0,%sp@- 45264: 2079 0005 d9ec moveal 5d9ec ,%a0 4526a: 2d46 ffe8 movel %d6,%fp@(-24) 4526e: 4e90 jsr %a0@ continue; 45270: 588f addql #4,%sp void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 45272: 528a addql #1,%a2 45274: 1012 moveb %a2@,%d0 45276: 6700 0106 beqw 4537e 4527a: 2c2e ffe8 movel %fp@(-24),%d6 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 4527e: 49c0 extbl %d0 45280: 7225 moveq #37,%d1 45282: b280 cmpl %d0,%d1 45284: 66dc bnes 45262 BSP_output_char(*fmt); continue; } fmt++; 45286: 528a addql #1,%a2 if (*fmt == '0' ) { 45288: 7430 moveq #48,%d2 4528a: 1012 moveb %a2@,%d0 4528c: 1200 moveb %d0,%d1 4528e: 49c1 extbl %d1 45290: b481 cmpl %d1,%d2 45292: 6700 01f8 beqw 4548c lead = '0'; fmt++; } if (*fmt == '-' ) { 45296: 762d moveq #45,%d3 if (*fmt != '%') { BSP_output_char(*fmt); continue; } fmt++; if (*fmt == '0' ) { 45298: 7e20 moveq #32,%d7 lead = '0'; fmt++; } if (*fmt == '-' ) { 4529a: b681 cmpl %d1,%d3 4529c: 6700 0200 beqw 4549e minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452a0: 0680 ffff ffd0 addil #-48,%d0 452a6: 7a09 moveq #9,%d5 452a8: 0280 0000 00ff andil #255,%d0 fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; } if (*fmt == '-' ) { 452ae: 4204 clrb %d4 minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452b0: ba80 cmpl %d0,%d5 452b2: 6500 0208 bcsw 454bc 452b6: 4282 clrl %d2 width *= 10; width += ((unsigned) *fmt - '0'); 452b8: 2602 movel %d2,%d3 fmt++; 452ba: 528a addql #1,%a2 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452bc: 7a09 moveq #9,%d5 width *= 10; width += ((unsigned) *fmt - '0'); 452be: e78b lsll #3,%d3 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452c0: 1012 moveb %a2@,%d0 width *= 10; width += ((unsigned) *fmt - '0'); 452c2: 2043 moveal %d3,%a0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452c4: 2600 movel %d0,%d3 452c6: 0683 ffff ffd0 addil #-48,%d3 width *= 10; width += ((unsigned) *fmt - '0'); 452cc: 41f0 2a00 lea %a0@(00000000,%d2:l:2),%a0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452d0: 0283 0000 00ff andil #255,%d3 width *= 10; width += ((unsigned) *fmt - '0'); 452d6: 41f0 18d0 lea %a0@(ffffffd0,%d1:l),%a0 452da: 1200 moveb %d0,%d1 452dc: 2408 movel %a0,%d2 452de: 49c1 extbl %d1 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 452e0: ba83 cmpl %d3,%d5 452e2: 64d4 bccs 452b8 452e4: 1200 moveb %d0,%d1 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 452e6: 706c moveq #108,%d0 452e8: 49c1 extbl %d1 452ea: b081 cmpl %d1,%d0 452ec: 6700 009a beqw 45388 lflag = true; c = *++fmt; } if ( c == 'c' ) { 452f0: 7663 moveq #99,%d3 452f2: b681 cmpl %d1,%d3 452f4: 6700 00a0 beqw 45396 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); BSP_output_char(chr); continue; } if ( c == 's' ) { 452f8: 7673 moveq #115,%d3 452fa: b681 cmpl %d1,%d3 452fc: 6700 01cc beqw 454ca continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { 45300: 766f moveq #111,%d3 45302: b681 cmpl %d1,%d3 45304: 6700 017a beqw 45480 45308: 7a4f moveq #79,%d5 4530a: ba81 cmpl %d1,%d5 4530c: 6700 0172 beqw 45480 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 45310: 163c 0069 moveb #105,%d3 45314: b681 cmpl %d1,%d3 45316: 6700 009a beqw 453b2 4531a: 1a3c 0049 moveb #73,%d5 4531e: ba81 cmpl %d1,%d5 45320: 6700 0090 beqw 453b2 45324: 163c 0064 moveb #100,%d3 45328: b681 cmpl %d1,%d3 4532a: 6700 0086 beqw 453b2 4532e: 1a3c 0044 moveb #68,%d5 45332: ba81 cmpl %d1,%d5 45334: 677c beqs 453b2 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 45336: 163c 0075 moveb #117,%d3 4533a: b681 cmpl %d1,%d3 4533c: 6700 0270 beqw 455ae 45340: 1a3c 0055 moveb #85,%d5 45344: ba81 cmpl %d1,%d5 45346: 6700 0266 beqw 455ae base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 4534a: 163c 0078 moveb #120,%d3 4534e: b681 cmpl %d1,%d3 45350: 6700 027a beqw 455cc 45354: 1a3c 0058 moveb #88,%d5 45358: ba81 cmpl %d1,%d5 4535a: 6700 0270 beqw 455cc base = 16; sign = false; } else if ( c == 'p' ) { 4535e: 7070 moveq #112,%d0 45360: b081 cmpl %d1,%d0 45362: 6700 0274 beqw 455d8 base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 45366: 2f01 movel %d1,%sp@- 45368: 2079 0005 d9ec moveal 5d9ec ,%a0 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 4536e: 528a addql #1,%a2 } else if ( c == 'x' || c == 'X' ) { base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 45370: 2d46 ffe8 movel %d6,%fp@(-24) 45374: 4e90 jsr %a0@ continue; 45376: 588f addql #4,%sp void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 45378: 1012 moveb %a2@,%d0 4537a: 6600 fefe bnew 4527a sign, width, lead ); } } 4537e: 4cee 3cfc ffc0 moveml %fp@(-64),%d2-%d7/%a2-%a5 45384: 4e5e unlk %fp 45386: 4e75 rts fmt++; } if ((c = *fmt) == 'l') { lflag = true; c = *++fmt; 45388: 528a addql #1,%a2 } if ( c == 'c' ) { 4538a: 7663 moveq #99,%d3 4538c: 1212 moveb %a2@,%d1 4538e: 49c1 extbl %d1 45390: b681 cmpl %d1,%d3 45392: 6600 ff64 bnew 452f8 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); BSP_output_char(chr); 45396: 2046 moveal %d6,%a0 <== NOT EXECUTED lflag = true; c = *++fmt; } if ( c == 'c' ) { /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); 45398: 5886 addql #4,%d6 <== NOT EXECUTED BSP_output_char(chr); 4539a: 2010 movel %a0@,%d0 <== NOT EXECUTED 4539c: 49c0 extbl %d0 <== NOT EXECUTED lflag = true; c = *++fmt; } if ( c == 'c' ) { /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); 4539e: 2d46 ffe8 movel %d6,%fp@(-24) <== NOT EXECUTED BSP_output_char(chr); 453a2: 2079 0005 d9ec moveal 5d9ec ,%a0 <== NOT EXECUTED 453a8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 453aa: 4e90 jsr %a0@ <== NOT EXECUTED continue; 453ac: 588f addql #4,%sp <== NOT EXECUTED 453ae: 6000 fec2 braw 45272 <== NOT EXECUTED } else { BSP_output_char(c); continue; } printNum( 453b2: 49c7 extbl %d7 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 453b4: 7a0a moveq #10,%d5 } printNum( 453b6: 2647 moveal %d7,%a3 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 453b8: 7201 moveq #1,%d1 } printNum( 453ba: 2046 moveal %d6,%a0 lflag ? va_arg(ap, long) : (long) va_arg(ap, int), 453bc: 5886 addql #4,%d6 } else { BSP_output_char(c); continue; } printNum( 453be: 2810 movel %a0@,%d4 lflag ? va_arg(ap, long) : (long) va_arg(ap, int), 453c0: 2d46 ffe8 movel %d6,%fp@(-24) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 453c4: 4a01 tstb %d1 453c6: 6706 beqs 453ce 453c8: 4a84 tstl %d4 453ca: 6d00 01ae bltw 4557a } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 453ce: 2004 movel %d4,%d0 453d0: 4c45 0000 remul %d5,%d0,%d0 453d4: 6700 01c6 beqw 4559c 453d8: 2600 movel %d0,%d3 453da: 4281 clrl %d1 453dc: 3045 moveaw %d5,%a0 453de: 4c45 3003 remul %d5,%d3,%d3 toPrint[count++] = (char) (unsigned_num - (n * base)); 453e2: 3e08 movew %a0,%d7 453e4: cfc0 mulsw %d0,%d7 453e6: 9887 subl %d7,%d4 453e8: 2e04 movel %d4,%d7 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 453ea: 2800 movel %d0,%d4 toPrint[count++] = (char) (unsigned_num - (n * base)); 453ec: 1987 1800 moveb %d7,%a4@(00000000,%d1:l) 453f0: 5281 addql #1,%d1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 453f2: 4a83 tstl %d3 453f4: 671c beqs 45412 453f6: 2003 movel %d3,%d0 453f8: 2600 movel %d0,%d3 toPrint[count++] = (char) (unsigned_num - (n * base)); 453fa: 3e08 movew %a0,%d7 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 453fc: 4c45 3003 remul %d5,%d3,%d3 toPrint[count++] = (char) (unsigned_num - (n * base)); 45400: cfc0 mulsw %d0,%d7 45402: 9887 subl %d7,%d4 45404: 2e04 movel %d4,%d7 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 45406: 2800 movel %d0,%d4 toPrint[count++] = (char) (unsigned_num - (n * base)); 45408: 1987 1800 moveb %d7,%a4@(00000000,%d1:l) 4540c: 5281 addql #1,%d1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 4540e: 4a83 tstl %d3 45410: 66e4 bnes 453f6 45412: 2800 movel %d0,%d4 45414: 2601 movel %d1,%d3 45416: 5283 addql #1,%d3 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 45418: 1d84 18ec moveb %d4,%fp@(ffffffec,%d1:l) for (n=maxwidth ; n > count; n-- ) 4541c: b682 cmpl %d2,%d3 4541e: 6412 bccs 45432 BSP_output_char(lead); 45420: 2f0b movel %a3,%sp@- 45422: 2079 0005 d9ec moveal 5d9ec ,%a0 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) 45428: 5382 subql #1,%d2 BSP_output_char(lead); 4542a: 4e90 jsr %a0@ toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) 4542c: 588f addql #4,%sp 4542e: b682 cmpl %d2,%d3 45430: 65ee bcss 45420 BSP_output_char(lead); for (n = 0; n < count; n++) { 45432: 4a83 tstl %d3 45434: 6700 fe3c beqw 45272 45438: 4282 clrl %d2 4543a: 47f4 38ff lea %a4@(ffffffff,%d3:l),%a3 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 4543e: 2079 0005 d9ec moveal 5d9ec ,%a0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45444: 5282 addql #1,%d2 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 45446: 1013 moveb %a3@,%d0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45448: 538b subql #1,%a3 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 4544a: 49c0 extbl %d0 4544c: 1035 0800 moveb %a5@(00000000,%d0:l),%d0 45450: 49c0 extbl %d0 45452: 2f00 movel %d0,%sp@- 45454: 4e90 jsr %a0@ toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45456: 588f addql #4,%sp 45458: b682 cmpl %d2,%d3 4545a: 6300 fe16 blsw 45272 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 4545e: 2079 0005 d9ec moveal 5d9ec ,%a0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45464: 5282 addql #1,%d2 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 45466: 1013 moveb %a3@,%d0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45468: 538b subql #1,%a3 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 4546a: 49c0 extbl %d0 4546c: 1035 0800 moveb %a5@(00000000,%d0:l),%d0 45470: 49c0 extbl %d0 45472: 2f00 movel %d0,%sp@- 45474: 4e90 jsr %a0@ toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 45476: 588f addql #4,%sp 45478: b682 cmpl %d2,%d3 4547a: 62c2 bhis 4543e 4547c: 6000 fdf4 braw 45272 } else { BSP_output_char(c); continue; } printNum( 45480: 49c7 extbl %d7 <== NOT EXECUTED base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 45482: 7a08 moveq #8,%d5 <== NOT EXECUTED } printNum( 45484: 2647 moveal %d7,%a3 <== NOT EXECUTED base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 45486: 4201 clrb %d1 <== NOT EXECUTED 45488: 6000 ff30 braw 453ba <== NOT EXECUTED continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 4548c: 528a addql #1,%a2 } if (*fmt == '-' ) { 4548e: 762d moveq #45,%d3 continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 45490: 1012 moveb %a2@,%d0 45492: 7e30 moveq #48,%d7 45494: 1200 moveb %d0,%d1 45496: 49c1 extbl %d1 } if (*fmt == '-' ) { 45498: b681 cmpl %d1,%d3 4549a: 6600 fe04 bnew 452a0 minus = true; fmt++; 4549e: 528a addql #1,%a2 } while (*fmt >= '0' && *fmt <= '9' ) { 454a0: 7a09 moveq #9,%d5 lead = '0'; fmt++; } if (*fmt == '-' ) { minus = true; fmt++; 454a2: 1012 moveb %a2@,%d0 454a4: 7801 moveq #1,%d4 454a6: 1200 moveb %d0,%d1 } while (*fmt >= '0' && *fmt <= '9' ) { 454a8: 0680 ffff ffd0 addil #-48,%d0 454ae: 0280 0000 00ff andil #255,%d0 454b4: 49c1 extbl %d1 454b6: ba80 cmpl %d0,%d5 454b8: 6400 fdfc bccw 452b6 454bc: 4282 clrl %d2 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 454be: 706c moveq #108,%d0 454c0: b081 cmpl %d1,%d0 454c2: 6600 fe2c bnew 452f0 454c6: 6000 fec0 braw 45388 } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); 454ca: 2046 moveal %d6,%a0 454cc: 5886 addql #4,%d6 454ce: 2650 moveal %a0@,%a3 454d0: 2d46 ffe8 movel %d6,%fp@(-24) if ( str == NULL ) { 454d4: 4a8b tstl %a3 454d6: 6700 00e2 beqw 455ba str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 454da: 4a13 tstb %a3@ 454dc: 6700 00e8 beqw 455c6 454e0: 4283 clrl %d3 454e2: 5283 addql #1,%d3 454e4: 4a33 3800 tstb %a3@(00000000,%d3:l) 454e8: 66f8 bnes 454e2 ; /* leading spaces */ if ( !minus ) 454ea: 4a04 tstb %d4 454ec: 661a bnes 45508 for ( i=len ; i 454f2: 2a03 movel %d3,%d5 <== NOT EXECUTED BSP_output_char(' '); 454f4: 4878 0020 pea 20 <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i,%a0 <== NOT EXECUTED 45500: 4e90 jsr %a0@ <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i <== NOT EXECUTED BSP_output_char(' '); /* no width option */ if (width == 0) { 45508: 4a82 tstl %d2 4550a: 6606 bnes 45512 width = len; } /* output the string */ for ( i=0 ; i 45510: 2403 movel %d3,%d2 45512: 1013 moveb %a3@,%d0 45514: 672a beqs 45540 BSP_output_char(*str); 45516: 49c0 extbl %d0 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i,%a0 45522: 4e90 jsr %a0@ if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); 4552c: 49c0 extbl %d0 4552e: 2079 0005 d9ec moveal 5d9ec ,%a0 45534: 2f00 movel %d0,%sp@- 45536: 4e90 jsr %a0@ if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) 45540: 4a04 tstb %d4 45542: 6700 fd2e beqw 45272 for ( i=len ; i BSP_output_char(' '); 4554c: 4878 0020 pea 20 for ( i=0 ; i,%a0 45558: 4e90 jsr %a0@ for ( i=0 ; i BSP_output_char(' '); 45562: 4878 0020 pea 20 for ( i=0 ; i,%a0 4556e: 4e90 jsr %a0@ for ( i=0 ; i 45576: 6000 fcfa braw 45272 unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); 4557a: 4878 002d pea 2d <== NOT EXECUTED unsigned_num = (unsigned long) -num; 4557e: 4484 negl %d4 <== NOT EXECUTED unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); 45580: 2079 0005 d9ec moveal 5d9ec ,%a0 <== NOT EXECUTED 45586: 4e90 jsr %a0@ <== NOT EXECUTED unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; 45588: 588f addql #4,%sp <== NOT EXECUTED 4558a: 4a82 tstl %d2 <== NOT EXECUTED 4558c: 6700 fe40 beqw 453ce <== NOT EXECUTED } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 45590: 2004 movel %d4,%d0 <== NOT EXECUTED char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; 45592: 5382 subql #1,%d2 <== NOT EXECUTED } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 45594: 4c45 0000 remul %d5,%d0,%d0 <== NOT EXECUTED 45598: 6600 fe3e bnew 453d8 <== NOT EXECUTED 4559c: 4281 clrl %d1 4559e: 7601 moveq #1,%d3 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 455a0: 1d84 18ec moveb %d4,%fp@(ffffffec,%d1:l) for (n=maxwidth ; n > count; n-- ) 455a4: b682 cmpl %d2,%d3 455a6: 6500 fe78 bcsw 45420 455aa: 6000 fe86 braw 45432 } else { BSP_output_char(c); continue; } printNum( 455ae: 49c7 extbl %d7 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 455b0: 7a0a moveq #10,%d5 } printNum( 455b2: 2647 moveal %d7,%a3 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 455b4: 4201 clrb %d1 455b6: 6000 fe02 braw 453ba unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 455ba: 47f9 0005 c85e lea 5c85e ,%a3 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 455c0: 4a13 tstb %a3@ 455c2: 6600 ff1c bnew 454e0 455c6: 4283 clrl %d3 455c8: 6000 ff20 braw 454ea } else { BSP_output_char(c); continue; } printNum( 455cc: 49c7 extbl %d7 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 455ce: 7a10 moveq #16,%d5 } printNum( 455d0: 2647 moveal %d7,%a3 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 455d2: 4201 clrb %d1 455d4: 6000 fde4 braw 453ba } printNum( 455d8: 49c7 extbl %d7 455da: 2647 moveal %d7,%a3 455dc: 7a10 moveq #16,%d5 455de: 4201 clrb %d1 455e0: 6000 fdd8 braw 453ba 0005bae0 : ssize_t write( int fd, const void *buffer, size_t count ) { 5bae0: 4e56 fff4 linkw %fp,#-12 5bae4: 202e 0008 movel %fp@(8),%d0 5bae8: 222e 000c movel %fp@(12),%d1 5baec: 206e 0010 moveal %fp@(16),%a0 5baf0: 48d7 040c moveml %d2-%d3/%a2,%sp@ ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 5baf4: b0b9 0005 d8f4 cmpl 5d8f4 ,%d0 5bafa: 6466 bccs 5bb62 iop = rtems_libio_iop( fd ); 5bafc: 2479 0005 eff4 moveal 5eff4 ,%a2 5bb02: ed88 lsll #6,%d0 5bb04: d5c0 addal %d0,%a2 rtems_libio_check_is_open( iop ); 5bb06: 202a 0014 movel %a2@(20),%d0 5bb0a: 0800 0008 btst #8,%d0 5bb0e: 6752 beqs 5bb62 rtems_libio_check_buffer( buffer ); 5bb10: 4a81 tstl %d1 5bb12: 6766 beqs 5bb7a rtems_libio_check_count( count ); 5bb14: 4a88 tstl %a0 5bb16: 673e beqs 5bb56 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5bb18: 44c0 movew %d0,%ccr 5bb1a: 665e bnes 5bb7a /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 5bb1c: 226a 003c moveal %a2@(60),%a1 5bb20: 2269 000c moveal %a1@(12),%a1 5bb24: 4a89 tstl %a1 5bb26: 676a beqs 5bb92 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 5bb28: 2f08 movel %a0,%sp@- 5bb2a: 2f01 movel %d1,%sp@- 5bb2c: 2f0a movel %a2,%sp@- 5bb2e: 4e91 jsr %a1@ if ( rc > 0 ) 5bb30: 4fef 000c lea %sp@(12),%sp 5bb34: 4a80 tstl %d0 5bb36: 6f14 bles 5bb4c iop->offset += rc; 5bb38: 2400 movel %d0,%d2 5bb3a: 5bc1 smi %d1 5bb3c: 49c1 extbl %d1 5bb3e: d5aa 0010 addl %d2,%a2@(16) 5bb42: 262a 000c movel %a2@(12),%d3 5bb46: d781 addxl %d1,%d3 5bb48: 2543 000c movel %d3,%a2@(12) return rc; } 5bb4c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 5bb52: 4e5e unlk %fp 5bb54: 4e75 rts rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); 5bb56: 4280 clrl %d0 if ( rc > 0 ) iop->offset += rc; return rc; } 5bb58: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 5bb5e: 4e5e unlk %fp 5bb60: 4e75 rts ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 5bb62: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5bb68: 7409 moveq #9,%d2 <== NOT EXECUTED 5bb6a: 2040 moveal %d0,%a0 <== NOT EXECUTED 5bb6c: 70ff moveq #-1,%d0 <== NOT EXECUTED 5bb6e: 2082 movel %d2,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5bb70: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 5bb76: 4e5e unlk %fp <== NOT EXECUTED 5bb78: 4e75 rts <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5bb7a: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5bb80: 7216 moveq #22,%d1 <== NOT EXECUTED 5bb82: 2040 moveal %d0,%a0 <== NOT EXECUTED 5bb84: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5bb86: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5bb8c: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5bb8e: 4e5e unlk %fp <== NOT EXECUTED 5bb90: 4e75 rts <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5bb92: 4eb9 0004 ede0 jsr 4ede0 <__errno> <== NOT EXECUTED 5bb98: 2040 moveal %d0,%a0 <== NOT EXECUTED 5bb9a: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5bb9c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5bba2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 5bba8: 4e5e unlk %fp <== NOT EXECUTED 5bbaa: 4e75 rts 00046f14 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 46f14: 4e56 ffe4 linkw %fp,#-28 46f18: 202e 0008 movel %fp@(8),%d0 46f1c: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ 46f20: 246e 000c moveal %fp@(12),%a2 46f24: 242e 0010 movel %fp@(16),%d2 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 46f28: b0b9 0006 1584 cmpl 61584 ,%d0 46f2e: 6400 00f0 bccw 47020 iop = rtems_libio_iop( fd ); 46f32: 2679 0006 3458 moveal 63458 ,%a3 46f38: ed88 lsll #6,%d0 46f3a: d7c0 addal %d0,%a3 rtems_libio_check_is_open( iop ); 46f3c: 202b 0014 movel %a3@(20),%d0 46f40: 0800 0008 btst #8,%d0 46f44: 6700 00da beqw 47020 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 46f48: 44c0 movew %d0,%ccr 46f4a: 666e bnes 46fba /* * Argument validation on IO vector */ if ( !iov ) 46f4c: 4a8a tstl %a2 46f4e: 676a beqs 46fba rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 46f50: 4a82 tstl %d2 46f52: 6f66 bles 46fba rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 46f54: 0c82 0000 0400 cmpil #1024,%d2 46f5a: 6e5e bgts 46fba rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 46f5c: 206b 003c moveal %a3@(60),%a0 46f60: 4aa8 000c tstl %a0@(12) 46f64: 6700 00d4 beqw 4703a rtems_set_errno_and_return_minus_one( ENOTSUP ); 46f68: 204a moveal %a2,%a0 46f6a: 93c9 subal %a1,%a1 46f6c: 4281 clrl %d1 46f6e: 7601 moveq #1,%d3 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) 46f70: 4a90 tstl %a0@ 46f72: 6746 beqs 46fba 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 ) 46f74: 2028 0004 movel %a0@(4),%d0 46f78: 57c4 seq %d4 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 46f7a: d081 addl %d1,%d0 * 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++ ) { 46f7c: 5289 addql #1,%a1 46f7e: 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 ) 46f80: c883 andl %d3,%d4 46f82: 1604 moveb %d4,%d3 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 46f84: b081 cmpl %d1,%d0 46f86: 6d32 blts 46fba * 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++ ) { 46f88: 2200 movel %d0,%d1 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 46f8a: 0c80 0000 7fff cmpil #32767,%d0 46f90: 6e28 bgts 46fba * 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++ ) { 46f92: b3c2 cmpal %d2,%a1 46f94: 6dda blts 46f70 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 46f96: 4a04 tstb %d4 <== NOT EXECUTED 46f98: 663a bnes 46fd4 <== NOT EXECUTED 46f9a: 588a addql #4,%a2 <== NOT EXECUTED 46f9c: 4283 clrl %d3 <== NOT EXECUTED 46f9e: 4284 clrl %d4 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 46fa0: 2012 movel %a2@,%d0 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 46fa2: 5283 addql #1,%d3 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 46fa4: 4a80 tstl %d0 <== NOT EXECUTED 46fa6: 663a bnes 46fe2 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 46fa8: 508a addql #8,%a2 <== NOT EXECUTED 46faa: b682 cmpl %d2,%d3 <== NOT EXECUTED 46fac: 6df2 blts 46fa0 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 46fae: 2004 movel %d4,%d0 <== NOT EXECUTED 46fb0: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 46fb6: 4e5e unlk %fp <== NOT EXECUTED 46fb8: 4e75 rts <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); 46fba: 4eb9 0005 1334 jsr 51334 <__errno> 46fc0: 78ff moveq #-1,%d4 46fc2: 2040 moveal %d0,%a0 46fc4: 7016 moveq #22,%d0 46fc6: 2080 movel %d0,%a0@ if (bytes != iov[ v ].iov_len) break; } return total; } 46fc8: 2004 movel %d4,%d0 46fca: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 46fd0: 4e5e unlk %fp 46fd2: 4e75 rts } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 46fd4: 4284 clrl %d4 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 46fd6: 2004 movel %d4,%d0 <== NOT EXECUTED 46fd8: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 46fde: 4e5e unlk %fp <== NOT EXECUTED 46fe0: 4e75 rts <== NOT EXECUTED for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 46fe2: 206b 003c moveal %a3@(60),%a0 <== NOT EXECUTED 46fe6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46fe8: 2f2a fffc movel %a2@(-4),%sp@- <== NOT EXECUTED 46fec: 2f0b movel %a3,%sp@- <== NOT EXECUTED 46fee: 2068 000c moveal %a0@(12),%a0 <== NOT EXECUTED 46ff2: 4e90 jsr %a0@ <== NOT EXECUTED if ( bytes < 0 ) 46ff4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 46ff8: 4a80 tstl %d0 <== NOT EXECUTED 46ffa: 6d5a blts 47056 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 46ffc: 6716 beqs 47014 <== NOT EXECUTED iop->offset += bytes; total += bytes; 46ffe: d880 addl %d0,%d4 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 47000: 2c00 movel %d0,%d6 <== NOT EXECUTED 47002: 5bc5 smi %d5 <== NOT EXECUTED 47004: 49c5 extbl %d5 <== NOT EXECUTED 47006: ddab 0010 addl %d6,%a3@(16) <== NOT EXECUTED 4700a: 222b 000c movel %a3@(12),%d1 <== NOT EXECUTED 4700e: d385 addxl %d5,%d1 <== NOT EXECUTED 47010: 2741 000c movel %d1,%a3@(12) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 47014: b092 cmpl %a2@,%d0 <== NOT EXECUTED 47016: 6696 bnes 46fae <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 47018: 508a addql #8,%a2 <== NOT EXECUTED 4701a: b682 cmpl %d2,%d3 <== NOT EXECUTED 4701c: 6d82 blts 46fa0 <== NOT EXECUTED 4701e: 608e bras 46fae <== NOT EXECUTED ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 47020: 4eb9 0005 1334 jsr 51334 <__errno> 47026: 78ff moveq #-1,%d4 47028: 7209 moveq #9,%d1 4702a: 2040 moveal %d0,%a0 if (bytes != iov[ v ].iov_len) break; } return total; } 4702c: 2004 movel %d4,%d0 4702e: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 47034: 2081 movel %d1,%a0@ if (bytes != iov[ v ].iov_len) break; } return total; } 47036: 4e5e unlk %fp 47038: 4e75 rts if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4703a: 4eb9 0005 1334 jsr 51334 <__errno> <== NOT EXECUTED 47040: 78ff moveq #-1,%d4 <== NOT EXECUTED 47042: 2040 moveal %d0,%a0 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 47044: 2004 movel %d4,%d0 <== NOT EXECUTED 47046: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4704c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 47052: 4e5e unlk %fp <== NOT EXECUTED 47054: 4e75 rts <== NOT EXECUTED if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 47056: 78ff moveq #-1,%d4 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 47058: 2004 movel %d4,%d0 <== NOT EXECUTED 4705a: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 47060: 4e5e unlk %fp <== NOT EXECUTED 47062: 4e75 rts