RTEMS 4.11Annotated Report
Sat Nov 27 21:24:44 2010
0004aca4 <TOD_MICROSECONDS_TO_TICKS>:
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
return (microseconds / rtems_configuration_get_microseconds_per_tick());
}
4aca4: 41f9 0005 fd40 lea 5fd40 <Configuration+0xc>,%a0 <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
4acaa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (microseconds / rtems_configuration_get_microseconds_per_tick());
}
4acae: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4acb2: 4e5e unlk %fp <== NOT EXECUTED
4acb4: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED
...
00046bd0 <TOD_MILLISECONDS_TO_TICKS>:
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
46bd0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
46bd4: 2039 0005 c050 movel 5c050 <Configuration+0xc>,%d0 <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
46bda: 2f02 movel %d2,%sp@- <== NOT EXECUTED
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
46bdc: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED
46be2: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED
}
46be6: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46bea: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED
46bee: 2002 movel %d2,%d0 <== NOT EXECUTED
46bf0: 241f movel %sp@+,%d2 <== NOT EXECUTED
46bf2: 4e5e unlk %fp <== NOT EXECUTED
...
0004ae68 <TOD_TICKS_PER_SECOND_method>:
uint32_t TOD_TICKS_PER_SECOND_method(void)
{
return (TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick());
}
4ae68: 41f9 0005 ce30 lea 5ce30 <Configuration+0xc>,%a0 <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/config.h>
#include <rtems/score/tod.h>
uint32_t TOD_TICKS_PER_SECOND_method(void)
{
4ae6e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick());
}
4ae72: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED
4ae78: 4e5e unlk %fp <== NOT EXECUTED
4ae7a: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED
00045f2c <_API_Mutex_Unlock>:
#include <rtems/score/apimutex.h>
void _API_Mutex_Unlock(
API_Mutex_Control *the_mutex
)
{
45f2c: 4e56 0000 linkw %fp,#0
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45f30: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
45f36: 5280 addql #1,%d0
45f38: 206e 0008 moveal %fp@(8),%a0
45f3c: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
_CORE_mutex_Surrender(
45f42: 42a7 clrl %sp@-
45f44: 2f28 0008 movel %a0@(8),%sp@-
45f48: 4868 0010 pea %a0@(16)
45f4c: 4eb9 0004 61b0 jsr 461b0 <_CORE_mutex_Surrender>
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
45f52: 4fef 000c lea %sp@(12),%sp
}
45f56: 4e5e unlk %fp
_CORE_mutex_Surrender(
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
45f58: 4ef9 0004 772a jmp 4772a <_Thread_Enable_dispatch>
...
0004d39c <_Barrier_Translate_core_barrier_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_barrier_status > CORE_BARRIER_STATUS_LAST )
return RTEMS_INTERNAL_ERROR;
#endif
return _Barrier_Translate_core_barrier_return_code_[the_barrier_status];
}
4d39c: 41f9 0005 d380 lea 5d380 <_Barrier_Translate_core_barrier_return_code_>,%a0<== NOT EXECUTED
};
rtems_status_code _Barrier_Translate_core_barrier_return_code (
CORE_barrier_Status the_barrier_status
)
{
4d3a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_barrier_status > CORE_BARRIER_STATUS_LAST )
return RTEMS_INTERNAL_ERROR;
#endif
return _Barrier_Translate_core_barrier_return_code_[the_barrier_status];
}
4d3a6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4d3aa: 4e5e unlk %fp <== NOT EXECUTED
4d3ac: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004c9e4 <_CORE_barrier_Release>:
#else
Objects_Id id __attribute__((unused)),
CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused))
#endif
)
{
4c9e4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4c9e8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
4c9ec: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Thread_Control *the_thread;
uint32_t count;
count = 0;
4c9f0: 4282 clrl %d2 <== NOT EXECUTED
while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) {
4c9f2: 47f9 0004 963c lea 4963c <_Thread_queue_Dequeue>,%a3 <== NOT EXECUTED
4c9f8: 6002 bras 4c9fc <_CORE_barrier_Release+0x18> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_barrier_mp_support) ( the_thread, id );
#endif
count++;
4c9fa: 5282 addql #1,%d2 <== NOT EXECUTED
{
Thread_Control *the_thread;
uint32_t count;
count = 0;
while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) {
4c9fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c9fe: 4e93 jsr %a3@ <== NOT EXECUTED
4ca00: 588f addql #4,%sp <== NOT EXECUTED
4ca02: 4a80 tstl %d0 <== NOT EXECUTED
4ca04: 66f4 bnes 4c9fa <_CORE_barrier_Release+0x16> <== NOT EXECUTED
#endif
count++;
}
the_barrier->number_of_waiting_threads = 0;
return count;
}
4ca06: 2002 movel %d2,%d0 <== NOT EXECUTED
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_barrier_mp_support) ( the_thread, id );
#endif
count++;
}
the_barrier->number_of_waiting_threads = 0;
4ca08: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED
return count;
}
4ca0c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED
4ca12: 4e5e unlk %fp <== NOT EXECUTED
...
0004ca18 <_CORE_barrier_Wait>:
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
4ca18: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
4ca1e: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
4ca22: 2279 0005 eb9c moveal 5eb9c <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
4ca28: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4ca2c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
4ca30: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
4ca34: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4ca38: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
4ca3c: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
4ca40: 40c1 movew %sr,%d1 <== NOT EXECUTED
4ca42: 8081 orl %d1,%d0 <== NOT EXECUTED
4ca44: 46c0 movew %d0,%sr <== NOT EXECUTED
the_barrier->number_of_waiting_threads++;
4ca46: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED
4ca4a: 5280 addql #1,%d0 <== NOT EXECUTED
4ca4c: 2140 0048 movel %d0,%a0@(72) <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
4ca50: 4aa8 0040 tstl %a0@(64) <== NOT EXECUTED
4ca54: 6626 bnes 4ca7c <_CORE_barrier_Wait+0x64> <== NOT EXECUTED
if ( the_barrier->number_of_waiting_threads ==
4ca56: b0a8 0044 cmpl %a0@(68),%d0 <== NOT EXECUTED
4ca5a: 6620 bnes 4ca7c <_CORE_barrier_Wait+0x64> <== NOT EXECUTED
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
4ca5c: 7001 moveq #1,%d0 <== NOT EXECUTED
4ca5e: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED
_ISR_Enable( level );
4ca62: 46c1 movew %d1,%sr <== NOT EXECUTED
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
4ca64: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED
4ca68: 2d42 000c movel %d2,%fp@(12) <== NOT EXECUTED
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
}
4ca6c: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
if ( the_barrier->number_of_waiting_threads ==
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
_ISR_Enable( level );
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
4ca70: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
}
4ca74: 4e5e unlk %fp <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
if ( the_barrier->number_of_waiting_threads ==
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
_ISR_Enable( level );
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
4ca76: 4ef9 0004 c9e4 jmp 4c9e4 <_CORE_barrier_Release> <== NOT EXECUTED
4ca7c: 7001 moveq #1,%d0 <== NOT EXECUTED
4ca7e: 2140 0030 movel %d0,%a0@(48) <== NOT EXECUTED
return;
}
}
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
executing->Wait.queue = &the_barrier->Wait_queue;
4ca82: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED
executing->Wait.id = id;
4ca86: 2342 0020 movel %d2,%a1@(32) <== NOT EXECUTED
_ISR_Enable( level );
4ca8a: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
4ca8c: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
4ca90: 203c 0004 9a90 movel #301712,%d0 <== NOT EXECUTED
4ca96: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
4ca9a: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
4ca9e: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED
}
4caa2: 4e5e unlk %fp <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
4caa4: 4ef9 0004 977c jmp 4977c <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
...
00052ac8 <_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
)
{
52ac8: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
52acc: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED
52ad0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
52ad4: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED
52ad8: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
52adc: 286e 001c moveal %fp@(28),%a4 <== NOT EXECUTED
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
52ae0: b6aa 004c cmpl %a2@(76),%d3 <== NOT EXECUTED
52ae4: 6244 bhis 52b2a <_CORE_message_queue_Broadcast+0x62><== NOT EXECUTED
* NOTE: This check is critical because threads can block on
* send and receive and this ensures that we are broadcasting
* the message to threads waiting to receive -- not to send.
*/
if ( the_message_queue->number_of_pending_messages != 0 ) {
52ae6: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED
52aea: 6610 bnes 52afc <_CORE_message_queue_Broadcast+0x34><== NOT EXECUTED
52aec: 4282 clrl %d2 <== NOT EXECUTED
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
52aee: 283c 0005 5088 movel #348296,%d4 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
52af4: 4bf9 0005 9894 lea 59894 <memcpy>,%a5 <== NOT EXECUTED
52afa: 601a bras 52b16 <_CORE_message_queue_Broadcast+0x4e><== NOT EXECUTED
* 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;
52afc: 4294 clrl %a4@ <== NOT EXECUTED
52afe: 6026 bras 52b26 <_CORE_message_queue_Broadcast+0x5e><== NOT EXECUTED
52b00: 2f03 movel %d3,%sp@- <== NOT EXECUTED
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
waitp = &the_thread->Wait;
number_broadcasted += 1;
52b02: 5282 addql #1,%d2 <== NOT EXECUTED
52b04: 2f05 movel %d5,%sp@- <== NOT EXECUTED
52b06: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED
52b0a: 4e95 jsr %a5@ <== NOT EXECUTED
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
52b0c: 206b 0028 moveal %a3@(40),%a0 <== NOT EXECUTED
52b10: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
52b14: 2083 movel %d3,%a0@ <== NOT EXECUTED
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
52b16: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52b18: 2044 moveal %d4,%a0 <== NOT EXECUTED
52b1a: 4e90 jsr %a0@ <== NOT EXECUTED
52b1c: 588f addql #4,%sp <== NOT EXECUTED
52b1e: 2640 moveal %d0,%a3 <== NOT EXECUTED
52b20: 4a80 tstl %d0 <== NOT EXECUTED
52b22: 66dc bnes 52b00 <_CORE_message_queue_Broadcast+0x38><== NOT EXECUTED
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
52b24: 2882 movel %d2,%a4@ <== NOT EXECUTED
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
52b26: 4280 clrl %d0 <== NOT EXECUTED
52b28: 6002 bras 52b2c <_CORE_message_queue_Broadcast+0x64><== NOT EXECUTED
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;
52b2a: 7001 moveq #1,%d0 <== NOT EXECUTED
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
52b2c: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
52b32: 4e5e unlk %fp <== NOT EXECUTED
...
00052b38 <_CORE_message_queue_Close>:
void _CORE_message_queue_Close(
CORE_message_queue_Control *the_message_queue,
Thread_queue_Flush_callout remote_extract_callout,
uint32_t status
)
{
52b38: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
52b3c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
/*
* This will flush blocked threads whether they were blocked on
* a send or receive.
*/
_Thread_queue_Flush(
52b3e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
52b42: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
void _CORE_message_queue_Close(
CORE_message_queue_Control *the_message_queue,
Thread_queue_Flush_callout remote_extract_callout,
uint32_t status
)
{
52b46: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
/*
* This will flush blocked threads whether they were blocked on
* a send or receive.
*/
_Thread_queue_Flush(
52b4a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52b4c: 4eb9 0005 53d8 jsr 553d8 <_Thread_queue_Flush> <== NOT EXECUTED
* This removes all messages from the pending message queue. Since
* we just flushed all waiting threads, we don't have to worry about
* the flush satisfying any blocked senders as a side-effect.
*/
if ( the_message_queue->number_of_pending_messages != 0 )
52b52: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
52b56: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED
52b5a: 670a beqs 52b66 <_CORE_message_queue_Close+0x2e> <== NOT EXECUTED
(void) _CORE_message_queue_Flush_support( the_message_queue );
52b5c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52b5e: 4eb9 0005 2b94 jsr 52b94 <_CORE_message_queue_Flush_support><== NOT EXECUTED
52b64: 588f addql #4,%sp <== NOT EXECUTED
(void) _Workspace_Free( the_message_queue->message_buffers );
52b66: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED
}
52b6c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
52b70: 4e5e unlk %fp <== NOT EXECUTED
*/
if ( the_message_queue->number_of_pending_messages != 0 )
(void) _CORE_message_queue_Flush_support( the_message_queue );
(void) _Workspace_Free( the_message_queue->message_buffers );
52b72: 4ef9 0005 5fbc jmp 55fbc <_Workspace_Free> <== NOT EXECUTED
00052b78 <_CORE_message_queue_Flush>:
*/
uint32_t _CORE_message_queue_Flush(
CORE_message_queue_Control *the_message_queue
)
{
52b78: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
52b7c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( the_message_queue->number_of_pending_messages != 0 )
52b80: 4aa8 0048 tstl %a0@(72) <== NOT EXECUTED
52b84: 6708 beqs 52b8e <_CORE_message_queue_Flush+0x16> <== NOT EXECUTED
return _CORE_message_queue_Flush_support( the_message_queue );
else
return 0;
}
52b86: 4e5e unlk %fp <== NOT EXECUTED
uint32_t _CORE_message_queue_Flush(
CORE_message_queue_Control *the_message_queue
)
{
if ( the_message_queue->number_of_pending_messages != 0 )
return _CORE_message_queue_Flush_support( the_message_queue );
52b88: 4ef9 0005 2b94 jmp 52b94 <_CORE_message_queue_Flush_support><== NOT EXECUTED
else
return 0;
}
52b8e: 4280 clrl %d0 <== NOT EXECUTED
52b90: 4e5e unlk %fp <== NOT EXECUTED
00052b94 <_CORE_message_queue_Flush_support>:
*
* For now, though, we are very happy to have a small routine with
* fixed execution time that only deals with pending messages.
*/
_ISR_Disable( level );
52b94: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
*/
uint32_t _CORE_message_queue_Flush_support(
CORE_message_queue_Control *the_message_queue
)
{
52b9a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
52b9e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
52ba2: 2f0b movel %a3,%sp@- <== NOT EXECUTED
52ba4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
*
* For now, though, we are very happy to have a small routine with
* fixed execution time that only deals with pending messages.
*/
_ISR_Disable( level );
52ba6: 40c1 movew %sr,%d1 <== NOT EXECUTED
52ba8: 8081 orl %d1,%d0 <== NOT EXECUTED
52baa: 46c0 movew %d0,%sr <== NOT EXECUTED
count = the_message_queue->number_of_pending_messages;
the_message_queue->number_of_pending_messages = 0;
_ISR_Enable( level );
return count;
}
52bac: 2268 0050 moveal %a0@(80),%a1 <== NOT EXECUTED
* fixed execution time that only deals with pending messages.
*/
_ISR_Disable( level );
inactive_head = _Chain_Head( &the_message_queue->Inactive_messages );
inactive_first = inactive_head->next;;
52bb0: 2468 0060 moveal %a0@(96),%a2 <== NOT EXECUTED
count = the_message_queue->number_of_pending_messages;
the_message_queue->number_of_pending_messages = 0;
_ISR_Enable( level );
return count;
}
52bb4: 2668 0058 moveal %a0@(88),%a3 <== NOT EXECUTED
inactive_head = _Chain_Head( &the_message_queue->Inactive_messages );
inactive_first = inactive_head->next;;
message_queue_first = _Chain_First( &the_message_queue->Pending_messages );
message_queue_last = _Chain_Last( &the_message_queue->Pending_messages );
inactive_head->next = message_queue_first;
52bb8: 2149 0060 movel %a1,%a0@(96) <== NOT EXECUTED
inactive_first->previous = message_queue_last;
message_queue_first->previous = inactive_head;
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
count = the_message_queue->number_of_pending_messages;
52bbc: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED
message_queue_first = _Chain_First( &the_message_queue->Pending_messages );
message_queue_last = _Chain_Last( &the_message_queue->Pending_messages );
inactive_head->next = message_queue_first;
message_queue_last->next = inactive_first;
inactive_first->previous = message_queue_last;
52bc0: 254b 0004 movel %a3,%a2@(4) <== NOT EXECUTED
inactive_first = inactive_head->next;;
message_queue_first = _Chain_First( &the_message_queue->Pending_messages );
message_queue_last = _Chain_Last( &the_message_queue->Pending_messages );
inactive_head->next = message_queue_first;
message_queue_last->next = inactive_first;
52bc4: 268a movel %a2,%a3@ <== NOT EXECUTED
* For now, though, we are very happy to have a small routine with
* fixed execution time that only deals with pending messages.
*/
_ISR_Disable( level );
inactive_head = _Chain_Head( &the_message_queue->Inactive_messages );
52bc6: 45e8 0060 lea %a0@(96),%a2 <== NOT EXECUTED
52bca: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
52bce: 43e8 0054 lea %a0@(84),%a1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
52bd2: 45e8 0050 lea %a0@(80),%a2 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
52bd6: 2149 0050 movel %a1,%a0@(80) <== NOT EXECUTED
head->next = tail;
head->previous = NULL;
52bda: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
52bde: 214a 0058 movel %a2,%a0@(88) <== NOT EXECUTED
message_queue_first->previous = inactive_head;
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
count = the_message_queue->number_of_pending_messages;
the_message_queue->number_of_pending_messages = 0;
52be2: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED
_ISR_Enable( level );
52be6: 46c1 movew %d1,%sr <== NOT EXECUTED
return count;
}
52be8: 245f moveal %sp@+,%a2 <== NOT EXECUTED
52bea: 265f moveal %sp@+,%a3 <== NOT EXECUTED
52bec: 4e5e unlk %fp <== NOT EXECUTED
0004dddc <_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)) {
4dddc: 7003 moveq #3,%d0 <== NOT EXECUTED
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
)
{
4ddde: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4dde2: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED
4dde6: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
4ddea: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4ddee: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
/*
* 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)) {
4ddf2: c081 andl %d1,%d0 <== NOT EXECUTED
)
{
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
4ddf4: 2542 0044 movel %d2,%a2@(68) <== NOT EXECUTED
the_message_queue->number_of_pending_messages = 0;
4ddf8: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED
the_message_queue->maximum_message_size = maximum_message_size;
4ddfc: 2541 004c movel %d1,%a2@(76) <== NOT EXECUTED
/*
* 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)) {
4de00: 4a80 tstl %d0 <== NOT EXECUTED
4de02: 670e beqs 4de12 <_CORE_message_queue_Initialize+0x36><== NOT EXECUTED
allocated_message_size += sizeof(uint32_t);
4de04: 2001 movel %d1,%d0 <== NOT EXECUTED
4de06: 5880 addql #4,%d0 <== NOT EXECUTED
allocated_message_size &= ~(sizeof(uint32_t) - 1);
4de08: 76fc moveq #-4,%d3 <== NOT EXECUTED
4de0a: c083 andl %d3,%d0 <== NOT EXECUTED
}
if (allocated_message_size < maximum_message_size)
4de0c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4de0e: 6272 bhis 4de82 <_CORE_message_queue_Initialize+0xa6><== NOT EXECUTED
4de10: 6002 bras 4de14 <_CORE_message_queue_Initialize+0x38><== NOT EXECUTED
/*
* 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)) {
4de12: 2001 movel %d1,%d0 <== NOT EXECUTED
/*
* 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));
4de14: 2600 movel %d0,%d3 <== NOT EXECUTED
4de16: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED
/*
* 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 *
4de1c: 2203 movel %d3,%d1 <== NOT EXECUTED
4de1e: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
4de22: b081 cmpl %d1,%d0 <== NOT EXECUTED
4de24: 625c bhis 4de82 <_CORE_message_queue_Initialize+0xa6><== NOT EXECUTED
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
4de26: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4de28: 4eb9 0005 076c jsr 5076c <_Workspace_Allocate> <== NOT EXECUTED
if (the_message_queue->message_buffers == 0)
4de2e: 588f addql #4,%sp <== NOT EXECUTED
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
4de30: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
4de34: 674c beqs 4de82 <_CORE_message_queue_Initialize+0xa6><== NOT EXECUTED
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
4de36: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4de38: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4de3a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4de3c: 486a 0060 pea %a2@(96) <== NOT EXECUTED
4de40: 4eb9 0005 20c0 jsr 520c0 <_Chain_Initialize> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
4de46: 41ea 0054 lea %a2@(84),%a0 <== NOT EXECUTED
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
_Thread_queue_Initialize(
4de4a: 7001 moveq #1,%d0 <== NOT EXECUTED
4de4c: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
4de50: 41ea 0050 lea %a2@(80),%a0 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
4de54: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
4de58: 2548 0058 movel %a0,%a2@(88) <== NOT EXECUTED
4de5c: 4878 0006 pea 6 <EXTENDSFDF> <== NOT EXECUTED
4de60: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
4de64: 4878 0080 pea 80 <DBL_MANT_DIG+0x4b> <== NOT EXECUTED
4de68: b090 cmpl %a0@,%d0 <== NOT EXECUTED
4de6a: 57c0 seq %d0 <== NOT EXECUTED
4de6c: 49c0 extbl %d0 <== NOT EXECUTED
4de6e: 4480 negl %d0 <== NOT EXECUTED
4de70: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4de72: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4de74: 4eb9 0004 fe54 jsr 4fe54 <_Thread_queue_Initialize> <== NOT EXECUTED
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
4de7a: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
4de7e: 7001 moveq #1,%d0 <== NOT EXECUTED
4de80: 6002 bras 4de84 <_CORE_message_queue_Initialize+0xa8><== NOT EXECUTED
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
return false;
4de82: 4200 clrb %d0 <== NOT EXECUTED
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
4de84: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
4de8a: 4e5e unlk %fp <== NOT EXECUTED
...
00052104 <_CORE_message_queue_Insert_message>:
#endif
_CORE_message_queue_Set_message_priority( the_message, submit_type );
#if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
_ISR_Disable( level );
52104: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
void _CORE_message_queue_Insert_message(
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message,
CORE_message_queue_Submit_types submit_type
)
{
5210a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
5210e: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
52112: 2f0b movel %a3,%sp@- <== NOT EXECUTED
52114: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
52118: 2f0a movel %a2,%sp@- <== NOT EXECUTED
#endif
_CORE_message_queue_Set_message_priority( the_message, submit_type );
#if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
_ISR_Disable( level );
5211a: 40c1 movew %sr,%d1 <== NOT EXECUTED
5211c: 8081 orl %d1,%d0 <== NOT EXECUTED
5211e: 46c0 movew %d0,%sr <== NOT EXECUTED
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52120: 52a9 0048 addql #1,%a1@(72) <== NOT EXECUTED
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST )
52124: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED
5212a: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED
5212e: 6616 bnes 52146 <_CORE_message_queue_Insert_message+0x42><== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
52130: 2469 0058 moveal %a1@(88),%a2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
52134: 47e9 0054 lea %a1@(84),%a3 <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
52138: 2348 0058 movel %a0,%a1@(88) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
5213c: 208b movel %a3,%a0@ <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
the_node->previous = old_last;
5213e: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
52142: 2488 movel %a0,%a2@ <== NOT EXECUTED
52144: 6016 bras 5215c <_CORE_message_queue_Insert_message+0x58><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert_unprotected(_Chain_Head(the_chain), the_node);
52146: 45e9 0050 lea %a1@(80),%a2 <== NOT EXECUTED
5214a: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
5214e: 2469 0050 moveal %a1@(80),%a2 <== NOT EXECUTED
after_node->next = the_node;
52152: 2348 0050 movel %a0,%a1@(80) <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
52156: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
5215a: 208a movel %a2,%a0@ <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
else
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
5215c: 46c1 movew %d1,%sr <== NOT EXECUTED
* the message is actually in the queue at this point.
*/
if ( notify && the_message_queue->notify_handler )
(*the_message_queue->notify_handler)(the_message_queue->notify_argument);
#endif
}
5215e: 245f moveal %sp@+,%a2 <== NOT EXECUTED
52160: 265f moveal %sp@+,%a3 <== NOT EXECUTED
52162: 4e5e unlk %fp <== NOT EXECUTED
...
0004de90 <_CORE_message_queue_Seize>:
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
_ISR_Disable( level );
4de90: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
4de96: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
4de9a: 2079 0006 53a0 moveal 653a0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
4dea0: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED
4dea4: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4dea8: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
4deac: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
4deb0: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED
4deb4: 262e 001c movel %fp@(28),%d3 <== NOT EXECUTED
4deb8: 1a2e 001b moveb %fp@(27),%d5 <== NOT EXECUTED
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
4debc: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
_ISR_Disable( level );
4dec0: 40c0 movew %sr,%d0 <== NOT EXECUTED
4dec2: 8280 orl %d0,%d1 <== NOT EXECUTED
4dec4: 46c1 movew %d1,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
4dec6: 220a movel %a2,%d1 <== NOT EXECUTED
4dec8: 0681 0000 0054 addil #84,%d1 <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
4dece: 266a 0050 moveal %a2@(80),%a3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
4ded2: b28b cmpl %a3,%d1 <== NOT EXECUTED
4ded4: 6752 beqs 4df28 <_CORE_message_queue_Seize+0x98> <== NOT EXECUTED
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
4ded6: 2853 moveal %a3@,%a4 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
4ded8: 4bea 0050 lea %a2@(80),%a5 <== NOT EXECUTED
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
head->next = new_first;
4dedc: 254c 0050 movel %a4,%a2@(80) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
4dee0: 294d 0004 movel %a5,%a4@(4) <== NOT EXECUTED
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
4dee4: 4a8b tstl %a3 <== NOT EXECUTED
4dee6: 6740 beqs 4df28 <_CORE_message_queue_Seize+0x98> <== NOT EXECUTED
the_message_queue->number_of_pending_messages -= 1;
4dee8: 53aa 0048 subql #1,%a2@(72) <== NOT EXECUTED
_ISR_Enable( level );
4deec: 46c0 movew %d0,%sr <== NOT EXECUTED
*size_p = the_message->Contents.size;
4deee: 22ab 0008 movel %a3@(8),%a1@ <== NOT EXECUTED
_Thread_Executing->Wait.count =
4def2: 2079 0006 53a0 moveal 653a0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4def8: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4defc: 2f11 movel %a1@,%sp@- <== NOT EXECUTED
4defe: 486b 000c pea %a3@(12) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message
)
{
_Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
4df02: 45ea 0060 lea %a2@(96),%a2 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4df06: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4df08: 4eb9 0005 4504 jsr 54504 <memcpy> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message
)
{
_Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
4df0e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4df12: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED
4df16: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
4df1a: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
4df20: 4e5e unlk %fp <== NOT EXECUTED
4df22: 4ef9 0004 dd18 jmp 4dd18 <_Chain_Append> <== NOT EXECUTED
return;
}
#endif
}
if ( !wait ) {
4df28: 4a05 tstb %d5 <== NOT EXECUTED
4df2a: 6612 bnes 4df3e <_CORE_message_queue_Seize+0xae> <== NOT EXECUTED
_ISR_Enable( level );
4df2c: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
4df2e: 7004 moveq #4,%d0 <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
4df30: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
#endif
}
if ( !wait ) {
_ISR_Enable( level );
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
4df36: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
4df3a: 4e5e unlk %fp <== NOT EXECUTED
4df3c: 4e75 rts <== NOT EXECUTED
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;
4df3e: 7201 moveq #1,%d1 <== NOT EXECUTED
4df40: 2541 0030 movel %d1,%a2@(48) <== NOT EXECUTED
}
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
executing->Wait.id = id;
executing->Wait.return_argument_second.mutable_object = buffer;
4df44: 2142 002c movel %d2,%a0@(44) <== NOT EXECUTED
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
return;
}
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
4df48: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED
executing->Wait.id = id;
4df4c: 2144 0020 movel %d4,%a0@(32) <== NOT EXECUTED
executing->Wait.return_argument_second.mutable_object = buffer;
executing->Wait.return_argument = size_p;
4df50: 2149 0028 movel %a1,%a0@(40) <== NOT EXECUTED
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
4df54: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
4df56: 4bf9 0004 ff24 lea 4ff24 <_Thread_queue_Timeout>,%a5 <== NOT EXECUTED
4df5c: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
4df60: 2d4d 0010 movel %a5,%fp@(16) <== NOT EXECUTED
4df64: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
4df68: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
4df6e: 4e5e unlk %fp <== NOT EXECUTED
executing->Wait.return_argument_second.mutable_object = buffer;
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
4df70: 4ef9 0004 fc10 jmp 4fc10 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
...
0004df78 <_CORE_message_queue_Submit>:
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
4df78: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4df7c: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
4df80: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4df84: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
4df88: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
4df8c: 262e 001c movel %fp@(28),%d3 <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
4df90: b4aa 004c cmpl %a2@(76),%d2 <== NOT EXECUTED
4df94: 6270 bhis 4e006 <_CORE_message_queue_Submit+0x8e><== NOT EXECUTED
}
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
4df96: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED
4df9a: 662e bnes 4dfca <_CORE_message_queue_Submit+0x52><== NOT EXECUTED
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
4df9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4df9e: 4eb9 0004 fad0 jsr 4fad0 <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( the_thread ) {
4dfa4: 588f addql #4,%sp <== NOT EXECUTED
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
4dfa6: 2640 moveal %d0,%a3 <== NOT EXECUTED
if ( the_thread ) {
4dfa8: 4a80 tstl %d0 <== NOT EXECUTED
4dfaa: 671e beqs 4dfca <_CORE_message_queue_Submit+0x52><== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4dfac: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4dfae: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4dfb0: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED
4dfb4: 4eb9 0005 4504 jsr 54504 <memcpy> <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
4dfba: 206b 0028 moveal %a3@(40),%a0 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
4dfbe: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
4dfc2: 2082 movel %d2,%a0@ <== NOT EXECUTED
the_thread->Wait.count = (uint32_t) submit_type;
4dfc4: 2743 0024 movel %d3,%a3@(36) <== NOT EXECUTED
4dfc8: 6038 bras 4e002 <_CORE_message_queue_Submit+0x8a><== NOT EXECUTED
/*
* No one waiting on the message queue at this time, so attempt to
* queue the message up for a future receive.
*/
if ( the_message_queue->number_of_pending_messages <
4dfca: 202a 0044 movel %a2@(68),%d0 <== NOT EXECUTED
4dfce: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED
4dfd2: 6336 blss 4e00a <_CORE_message_queue_Submit+0x92><== NOT EXECUTED
_CORE_message_queue_Allocate_message_buffer (
CORE_message_queue_Control *the_message_queue
)
{
return (CORE_message_queue_Buffer_control *)
_Chain_Get( &the_message_queue->Inactive_messages );
4dfd4: 486a 0060 pea %a2@(96) <== NOT EXECUTED
4dfd8: 4eb9 0004 dd78 jsr 4dd78 <_Chain_Get> <== NOT EXECUTED
4dfde: 2640 moveal %d0,%a3 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4dfe0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4dfe2: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4dfe4: 486b 000c pea %a3@(12) <== NOT EXECUTED
4dfe8: 4eb9 0005 4504 jsr 54504 <memcpy> <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_message->Contents.buffer,
size
);
the_message->Contents.size = size;
4dfee: 2742 0008 movel %d2,%a3@(8) <== NOT EXECUTED
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
4dff2: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4dff4: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4dff6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4dff8: 4eb9 0005 2104 jsr 52104 <_CORE_message_queue_Insert_message><== NOT EXECUTED
the_message_queue,
the_message,
submit_type
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
4dffe: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4e002: 4280 clrl %d0 <== NOT EXECUTED
4e004: 6006 bras 4e00c <_CORE_message_queue_Submit+0x94><== NOT EXECUTED
{
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;
4e006: 7001 moveq #1,%d0 <== NOT EXECUTED
4e008: 6002 bras 4e00c <_CORE_message_queue_Submit+0x94><== NOT EXECUTED
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
#if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND)
return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY;
4e00a: 7002 moveq #2,%d0 <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
4e00c: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
4e012: 4e5e unlk %fp <== NOT EXECUTED
...
00046000 <_CORE_mutex_Initialize>:
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
46000: 4e56 fff4 linkw %fp,#-12
46004: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
46008: 4878 000e pea e <OPER1+0x2>
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
4600c: 266e 000c moveal %fp@(12),%a3
46010: 246e 0008 moveal %fp@(8),%a2
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
46014: 2f0b movel %a3,%sp@-
46016: 486a 0040 pea %a2@(64)
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
4601a: 242e 0010 movel %fp@(16),%d2
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
4601e: 4eb9 0004 c3fc jsr 4c3fc <memcpy>
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
46024: 4fef 000c lea %sp@(12),%sp
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
46028: 2542 004e movel %d2,%a2@(78)
the_mutex->blocked_count = 0;
4602c: 42aa 0056 clrl %a2@(86)
if ( initial_lock == CORE_MUTEX_LOCKED ) {
46030: 4a82 tstl %d2
46032: 6638 bnes 4606c <_CORE_mutex_Initialize+0x6c>
the_mutex->nest_count = 1;
46034: 7001 moveq #1,%d0
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
46036: 7202 moveq #2,%d1
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
the_mutex->holder = _Thread_Executing;
46038: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
4603e: 2540 0052 movel %d0,%a2@(82)
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
46042: 2568 0008 005e movel %a0@(8),%a2@(94)
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
46048: 202a 0046 movel %a2@(70),%d0
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
the_mutex->holder = _Thread_Executing;
4604c: 2548 005a movel %a0,%a2@(90)
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
46050: b280 cmpl %d0,%d1
46052: 6708 beqs 4605c <_CORE_mutex_Initialize+0x5c> <== NEVER TAKEN
46054: 123c 0003 moveb #3,%d1
46058: b280 cmpl %d0,%d1
4605a: 661c bnes 46078 <_CORE_mutex_Initialize+0x78> <== ALWAYS TAKEN
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
4605c: 202a 004a movel %a2@(74),%d0 <== NOT EXECUTED
46060: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED
46064: 6236 bhis 4609c <_CORE_mutex_Initialize+0x9c> <== NOT EXECUTED
_Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = _Thread_Executing->current_priority;
#endif
_Thread_Executing->resource_count++;
46066: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED
4606a: 600c bras 46078 <_CORE_mutex_Initialize+0x78> <== NOT EXECUTED
}
} else {
the_mutex->nest_count = 0;
4606c: 42aa 0052 clrl %a2@(82)
the_mutex->holder = NULL;
46070: 42aa 005a clrl %a2@(90)
the_mutex->holder_id = 0;
46074: 42aa 005e clrl %a2@(94)
}
_Thread_queue_Initialize(
46078: 4878 0005 pea 5 <COMPARE>
4607c: 4878 0400 pea 400 <D_BIAS+0x2>
46080: 4aab 0006 tstl %a3@(6)
46084: 56c0 sne %d0
46086: 49c0 extbl %d0
46088: 4480 negl %d0
4608a: 2f00 movel %d0,%sp@-
4608c: 2f0a movel %a2,%sp@-
4608e: 4eb9 0004 7da8 jsr 47da8 <_Thread_queue_Initialize>
THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY,
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
46094: 4fef 0010 lea %sp@(16),%sp
46098: 4280 clrl %d0
4609a: 6002 bras 4609e <_CORE_mutex_Initialize+0x9e>
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
the_mutex->Attributes.priority_ceiling )
return CORE_MUTEX_STATUS_CEILING_VIOLATED;
4609c: 7006 moveq #6,%d0 <== NOT EXECUTED
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
4609e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
460a4: 4e5e unlk %fp <== NOT EXECUTED
0004610c <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
4610c: 4e56 0000 linkw %fp,#0
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
46110: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
46116: 2f0a movel %a2,%sp@-
46118: 246e 0008 moveal %fp@(8),%a2
4611c: 2f02 movel %d2,%sp@-
4611e: 142e 0013 moveb %fp@(19),%d2
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
46122: 4a80 tstl %d0
46124: 671c beqs 46142 <_CORE_mutex_Seize+0x36>
46126: 4a02 tstb %d2
46128: 6718 beqs 46142 <_CORE_mutex_Seize+0x36> <== NEVER TAKEN
4612a: 7001 moveq #1,%d0
4612c: b0b9 0005 c820 cmpl 5c820 <_System_state_Current>,%d0
46132: 640e bccs 46142 <_CORE_mutex_Seize+0x36>
46134: 4878 0012 pea 12 <INVALID_OPERATION+0x2>
46138: 42a7 clrl %sp@-
4613a: 42a7 clrl %sp@-
4613c: 4eb9 0004 6768 jsr 46768 <_Internal_error_Occurred>
46142: 486e 0018 pea %fp@(24)
46146: 2f0a movel %a2,%sp@-
46148: 4eb9 0004 a044 jsr 4a044 <_CORE_mutex_Seize_interrupt_trylock>
4614e: 508f addql #8,%sp
46150: 4a80 tstl %d0
46152: 6750 beqs 461a4 <_CORE_mutex_Seize+0x98>
46154: 4a02 tstb %d2
46156: 6614 bnes 4616c <_CORE_mutex_Seize+0x60> <== ALWAYS TAKEN
46158: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED
4615c: 46c0 movew %d0,%sr <== NOT EXECUTED
4615e: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
46164: 7001 moveq #1,%d0 <== NOT EXECUTED
46166: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED
4616a: 6038 bras 461a4 <_CORE_mutex_Seize+0x98> <== NOT EXECUTED
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;
4616c: 7001 moveq #1,%d0
4616e: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
46174: 2540 0030 movel %d0,%a2@(48)
46178: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
4617e: 5280 addql #1,%d0
46180: 216e 000c 0020 movel %fp@(12),%a0@(32)
46186: 214a 0044 movel %a2,%a0@(68)
4618a: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level>
46190: 202e 0018 movel %fp@(24),%d0
46194: 46c0 movew %d0,%sr
46196: 2f2e 0014 movel %fp@(20),%sp@-
4619a: 2f0a movel %a2,%sp@-
4619c: 4eb9 0004 60a8 jsr 460a8 <_CORE_mutex_Seize_interrupt_blocking>
461a2: 508f addql #8,%sp
}
461a4: 242e fff8 movel %fp@(-8),%d2
461a8: 246e fffc moveal %fp@(-4),%a2
461ac: 4e5e unlk %fp <== NOT EXECUTED
000460a8 <_CORE_mutex_Seize_interrupt_blocking>:
)
{
Thread_Control *executing;
executing = _Thread_Executing;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
460a8: 7002 moveq #2,%d0
void _CORE_mutex_Seize_interrupt_blocking(
CORE_mutex_Control *the_mutex,
Watchdog_Interval timeout
)
{
460aa: 4e56 0000 linkw %fp,#0
Thread_Control *executing;
executing = _Thread_Executing;
460ae: 2279 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a1
void _CORE_mutex_Seize_interrupt_blocking(
CORE_mutex_Control *the_mutex,
Watchdog_Interval timeout
)
{
460b4: 2f0a movel %a2,%sp@-
460b6: 246e 0008 moveal %fp@(8),%a2
460ba: 2f02 movel %d2,%sp@-
460bc: 242e 000c movel %fp@(12),%d2
Thread_Control *executing;
executing = _Thread_Executing;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
460c0: b0aa 0046 cmpl %a2@(70),%d0
460c4: 661e bnes 460e4 <_CORE_mutex_Seize_interrupt_blocking+0x3c>
if ( the_mutex->holder->current_priority > executing->current_priority ) {
460c6: 206a 005a moveal %a2@(90),%a0
460ca: 2029 0014 movel %a1@(20),%d0
460ce: b0a8 0014 cmpl %a0@(20),%d0
460d2: 6410 bccs 460e4 <_CORE_mutex_Seize_interrupt_blocking+0x3c><== NEVER TAKEN
_Thread_Change_priority(
460d4: 42a7 clrl %sp@-
460d6: 2f00 movel %d0,%sp@-
460d8: 2f08 movel %a0,%sp@-
460da: 4eb9 0004 7290 jsr 47290 <_Thread_Change_priority>
460e0: 4fef 000c lea %sp@(12),%sp
false
);
}
}
the_mutex->blocked_count++;
460e4: 52aa 0056 addql #1,%a2@(86)
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
460e8: 4879 0004 7e78 pea 47e78 <_Thread_queue_Timeout>
460ee: 2f02 movel %d2,%sp@-
460f0: 2f0a movel %a2,%sp@-
460f2: 4eb9 0004 7b64 jsr 47b64 <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
}
460f8: 242e fff8 movel %fp@(-8),%d2
}
the_mutex->blocked_count++;
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
_Thread_Enable_dispatch();
460fc: 4fef 000c lea %sp@(12),%sp
}
46100: 246e fffc moveal %fp@(-4),%a2
46104: 4e5e unlk %fp
}
the_mutex->blocked_count++;
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
_Thread_Enable_dispatch();
46106: 4ef9 0004 772a jmp 4772a <_Thread_Enable_dispatch>
0004a044 <_CORE_mutex_Seize_interrupt_trylock>:
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
4a044: 4e56 fff4 linkw %fp,#-12
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
4a048: 2279 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a1
4a04e: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
4a052: 206e 0008 moveal %fp@(8),%a0
4a056: 246e 000c moveal %fp@(12),%a2
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
4a05a: 42a9 0034 clrl %a1@(52)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
4a05e: 4aa8 004e tstl %a0@(78)
4a062: 6700 009e beqw 4a102 <_CORE_mutex_Seize_interrupt_trylock+0xbe>
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
4a066: 7001 moveq #1,%d0
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
4a068: 7202 moveq #2,%d1
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
4a06a: 2169 0008 005e movel %a1@(8),%a0@(94)
the_mutex->nest_count = 1;
4a070: 2140 0052 movel %d0,%a0@(82)
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
4a074: 2028 0046 movel %a0@(70),%d0
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
4a078: 42a8 004e clrl %a0@(78)
the_mutex->holder = executing;
4a07c: 2149 005a movel %a1,%a0@(90)
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
4a080: b280 cmpl %d0,%d1
4a082: 6706 beqs 4a08a <_CORE_mutex_Seize_interrupt_trylock+0x46>
4a084: 7403 moveq #3,%d2
4a086: b480 cmpl %d0,%d2
4a088: 6612 bnes 4a09c <_CORE_mutex_Seize_interrupt_trylock+0x58><== ALWAYS TAKEN
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
4a08a: 2229 001c movel %a1@(28),%d1
4a08e: 2401 movel %d1,%d2
4a090: 5282 addql #1,%d2
4a092: 2342 001c movel %d2,%a1@(28)
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
4a096: 7403 moveq #3,%d2
4a098: b480 cmpl %d0,%d2
4a09a: 6708 beqs 4a0a4 <_CORE_mutex_Seize_interrupt_trylock+0x60><== NEVER TAKEN
_ISR_Enable( *level_p );
4a09c: 2012 movel %a2@,%d0
4a09e: 46c0 movew %d0,%sr
4a0a0: 6000 008a braw 4a12c <_CORE_mutex_Seize_interrupt_trylock+0xe8>
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
4a0a4: 2028 004a movel %a0@(74),%d0 <== NOT EXECUTED
current = executing->current_priority;
4a0a8: 2669 0014 moveal %a1@(20),%a3 <== NOT EXECUTED
if ( current == ceiling ) {
4a0ac: b08b cmpl %a3,%d0 <== NOT EXECUTED
4a0ae: 6606 bnes 4a0b6 <_CORE_mutex_Seize_interrupt_trylock+0x72><== NOT EXECUTED
_ISR_Enable( *level_p );
4a0b0: 2012 movel %a2@,%d0 <== NOT EXECUTED
4a0b2: 46c0 movew %d0,%sr <== NOT EXECUTED
4a0b4: 6076 bras 4a12c <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED
return 0;
}
if ( current > ceiling ) {
4a0b6: b08b cmpl %a3,%d0 <== NOT EXECUTED
4a0b8: 642e bccs 4a0e8 <_CORE_mutex_Seize_interrupt_trylock+0xa4><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4a0ba: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4a0c0: 5280 addql #1,%d0 <== NOT EXECUTED
4a0c2: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
4a0c8: 2012 movel %a2@,%d0 <== NOT EXECUTED
4a0ca: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_Change_priority(
4a0cc: 42a7 clrl %sp@- <== NOT EXECUTED
4a0ce: 2f28 004a movel %a0@(74),%sp@- <== NOT EXECUTED
4a0d2: 2f28 005a movel %a0@(90),%sp@- <== NOT EXECUTED
4a0d6: 4eb9 0004 7290 jsr 47290 <_Thread_Change_priority> <== NOT EXECUTED
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
4a0dc: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch> <== NOT EXECUTED
4a0e2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a0e6: 6044 bras 4a12c <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
4a0e8: 7006 moveq #6,%d0 <== NOT EXECUTED
the_mutex->lock = CORE_MUTEX_UNLOCKED;
4a0ea: 7401 moveq #1,%d2 <== NOT EXECUTED
);
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
4a0ec: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED
the_mutex->lock = CORE_MUTEX_UNLOCKED;
4a0f0: 2142 004e movel %d2,%a0@(78) <== NOT EXECUTED
the_mutex->nest_count = 0; /* undo locking above */
4a0f4: 42a8 0052 clrl %a0@(82) <== NOT EXECUTED
executing->resource_count--; /* undo locking above */
4a0f8: 2341 001c movel %d1,%a1@(28) <== NOT EXECUTED
_ISR_Enable( *level_p );
4a0fc: 2012 movel %a2@,%d0 <== NOT EXECUTED
4a0fe: 46c0 movew %d0,%sr <== NOT EXECUTED
4a100: 602a bras 4a12c <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED
/*
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
4a102: 2668 005a moveal %a0@(90),%a3
4a106: b3cb cmpal %a3,%a1
4a108: 6626 bnes 4a130 <_CORE_mutex_Seize_interrupt_trylock+0xec>
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
4a10a: 2028 0040 movel %a0@(64),%d0
4a10e: 6708 beqs 4a118 <_CORE_mutex_Seize_interrupt_trylock+0xd4><== NEVER TAKEN
4a110: 7201 moveq #1,%d1
4a112: b280 cmpl %d0,%d1
4a114: 661a bnes 4a130 <_CORE_mutex_Seize_interrupt_trylock+0xec><== ALWAYS TAKEN
4a116: 600a bras 4a122 <_CORE_mutex_Seize_interrupt_trylock+0xde><== NOT EXECUTED
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
4a118: 52a8 0052 addql #1,%a0@(82) <== NOT EXECUTED
_ISR_Enable( *level_p );
4a11c: 2012 movel %a2@,%d0 <== NOT EXECUTED
4a11e: 46c0 movew %d0,%sr <== NOT EXECUTED
4a120: 600a bras 4a12c <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
4a122: 7402 moveq #2,%d2 <== NOT EXECUTED
4a124: 2742 0034 movel %d2,%a3@(52) <== NOT EXECUTED
_ISR_Enable( *level_p );
4a128: 2012 movel %a2@,%d0 <== NOT EXECUTED
4a12a: 46c0 movew %d0,%sr <== NOT EXECUTED
return 0;
4a12c: 4280 clrl %d0
4a12e: 6002 bras 4a132 <_CORE_mutex_Seize_interrupt_trylock+0xee>
/*
* The mutex is not available and the caller must deal with the possibility
* of blocking.
*/
return 1;
4a130: 7001 moveq #1,%d0
4a132: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
4a138: 4e5e unlk %fp <== NOT EXECUTED
000461b0 <_CORE_mutex_Surrender>:
#else
Objects_Id id __attribute__((unused)),
CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused))
#endif
)
{
461b0: 4e56 0000 linkw %fp,#0
461b4: 2f0a movel %a2,%sp@-
461b6: 246e 0008 moveal %fp@(8),%a2
Thread_Control *the_thread;
Thread_Control *holder;
holder = the_mutex->holder;
461ba: 206a 005a moveal %a2@(90),%a0
* allowed when the mutex in quetion is FIFO or simple Priority
* discipline. But Priority Ceiling or Priority Inheritance mutexes
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
461be: 4a2a 0044 tstb %a2@(68)
461c2: 670a beqs 461ce <_CORE_mutex_Surrender+0x1e>
if ( !_Thread_Is_executing( holder ) )
461c4: b1f9 0005 c878 cmpal 5c878 <_Per_CPU_Information+0xc>,%a0
461ca: 6600 00ba bnew 46286 <_CORE_mutex_Surrender+0xd6>
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
}
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
461ce: 202a 0052 movel %a2@(82),%d0
461d2: 6700 00b6 beqw 4628a <_CORE_mutex_Surrender+0xda>
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
461d6: 5380 subql #1,%d0
461d8: 2540 0052 movel %d0,%a2@(82)
if ( the_mutex->nest_count != 0 ) {
461dc: 6600 00ac bnew 4628a <_CORE_mutex_Surrender+0xda>
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
461e0: 202a 0046 movel %a2@(70),%d0
/*
* Formally release the mutex before possibly transferring it to a
* blocked thread.
*/
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
461e4: 7202 moveq #2,%d1
461e6: b280 cmpl %d0,%d1
461e8: 6708 beqs 461f2 <_CORE_mutex_Surrender+0x42>
461ea: 123c 0003 moveb #3,%d1
461ee: b280 cmpl %d0,%d1
461f0: 6628 bnes 4621a <_CORE_mutex_Surrender+0x6a> <== ALWAYS TAKEN
_CORE_mutex_Pop_priority( the_mutex, holder );
if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL )
return pop_status;
holder->resource_count--;
461f2: 2028 001c movel %a0@(28),%d0
461f6: 5380 subql #1,%d0
461f8: 2140 001c movel %d0,%a0@(28)
/*
* Whether or not someone is waiting for the mutex, an
* inherited priority must be lowered if this is the last
* mutex (i.e. resource) this task has.
*/
if ( holder->resource_count == 0 &&
461fc: 661c bnes 4621a <_CORE_mutex_Surrender+0x6a>
holder->real_priority != holder->current_priority ) {
461fe: 2028 0018 movel %a0@(24),%d0
/*
* Whether or not someone is waiting for the mutex, an
* inherited priority must be lowered if this is the last
* mutex (i.e. resource) this task has.
*/
if ( holder->resource_count == 0 &&
46202: b0a8 0014 cmpl %a0@(20),%d0
46206: 6712 beqs 4621a <_CORE_mutex_Surrender+0x6a>
holder->real_priority != holder->current_priority ) {
_Thread_Change_priority( holder, holder->real_priority, true );
46208: 4878 0001 pea 1 <ADD>
4620c: 2f00 movel %d0,%sp@-
4620e: 2f08 movel %a0,%sp@-
46210: 4eb9 0004 7290 jsr 47290 <_Thread_Change_priority>
46216: 4fef 000c lea %sp@(12),%sp
}
}
the_mutex->holder = NULL;
4621a: 42aa 005a clrl %a2@(90)
the_mutex->holder_id = 0;
4621e: 42aa 005e clrl %a2@(94)
/*
* Now we check if another thread was waiting for this mutex. If so,
* transfer the mutex to that thread.
*/
if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) {
46222: 2f0a movel %a2,%sp@-
46224: 4eb9 0004 7a24 jsr 47a24 <_Thread_queue_Dequeue>
4622a: 588f addql #4,%sp
4622c: 2040 moveal %d0,%a0
4622e: 4a80 tstl %d0
46230: 674a beqs 4627c <_CORE_mutex_Surrender+0xcc>
} else
#endif
{
the_mutex->holder = the_thread;
46232: 2540 005a movel %d0,%a2@(90)
the_mutex->holder_id = the_thread->Object.id;
the_mutex->nest_count = 1;
46236: 7001 moveq #1,%d0
switch ( the_mutex->Attributes.discipline ) {
46238: 7202 moveq #2,%d1
} else
#endif
{
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
4623a: 2568 0008 005e movel %a0@(8),%a2@(94)
the_mutex->nest_count = 1;
46240: 2540 0052 movel %d0,%a2@(82)
switch ( the_mutex->Attributes.discipline ) {
46244: 202a 0046 movel %a2@(70),%d0
46248: b280 cmpl %d0,%d1
4624a: 670a beqs 46256 <_CORE_mutex_Surrender+0xa6> <== ALWAYS TAKEN
4624c: 123c 0003 moveb #3,%d1 <== NOT EXECUTED
46250: b280 cmpl %d0,%d1 <== NOT EXECUTED
46252: 6636 bnes 4628a <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED
46254: 6006 bras 4625c <_CORE_mutex_Surrender+0xac> <== NOT EXECUTED
case CORE_MUTEX_DISCIPLINES_FIFO:
case CORE_MUTEX_DISCIPLINES_PRIORITY:
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
46256: 52a8 001c addql #1,%a0@(28)
4625a: 602e bras 4628a <_CORE_mutex_Surrender+0xda>
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
if (the_mutex->Attributes.priority_ceiling <
4625c: 202a 004a movel %a2@(74),%d0 <== NOT EXECUTED
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
46260: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
46264: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED
46268: 6420 bccs 4628a <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED
the_thread->current_priority){
_Thread_Change_priority(
4626a: 42a7 clrl %sp@- <== NOT EXECUTED
4626c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4626e: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46270: 4eb9 0004 7290 jsr 47290 <_Thread_Change_priority> <== NOT EXECUTED
46276: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4627a: 600e bras 4628a <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED
}
break;
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
4627c: 7001 moveq #1,%d0
4627e: 2540 004e movel %d0,%a2@(78)
return CORE_MUTEX_STATUS_SUCCESSFUL;
46282: 4200 clrb %d0
46284: 6006 bras 4628c <_CORE_mutex_Surrender+0xdc>
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
if ( !_Thread_Is_executing( holder ) )
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
46286: 7003 moveq #3,%d0 <== NOT EXECUTED
46288: 6002 bras 4628c <_CORE_mutex_Surrender+0xdc> <== NOT EXECUTED
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
4628a: 4280 clrl %d0
}
4628c: 246e fffc moveal %fp@(-4),%a2
46290: 4e5e unlk %fp <== NOT EXECUTED
000462e8 <_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
)
{
462e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
462ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED
462ee: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
462f2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
462f4: 4eb9 0004 7a24 jsr 47a24 <_Thread_queue_Dequeue> <== NOT EXECUTED
462fa: 588f addql #4,%sp <== NOT EXECUTED
462fc: 4a80 tstl %d0 <== NOT EXECUTED
462fe: 6624 bnes 46324 <_CORE_semaphore_Surrender+0x3c> <== NOT EXECUTED
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
46300: 303c 0700 movew #1792,%d0 <== NOT EXECUTED
46304: 40c1 movew %sr,%d1 <== NOT EXECUTED
46306: 8081 orl %d1,%d0 <== NOT EXECUTED
46308: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
4630a: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED
4630e: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED
46312: 640a bccs 4631e <_CORE_semaphore_Surrender+0x36> <== NOT EXECUTED
the_semaphore->count += 1;
46314: 5280 addql #1,%d0 <== NOT EXECUTED
46316: 2540 0048 movel %d0,%a2@(72) <== NOT EXECUTED
{
Thread_Control *the_thread;
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
4631a: 4280 clrl %d0 <== NOT EXECUTED
4631c: 6002 bras 46320 <_CORE_semaphore_Surrender+0x38> <== NOT EXECUTED
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
the_semaphore->count += 1;
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
4631e: 7004 moveq #4,%d0 <== NOT EXECUTED
_ISR_Enable( level );
46320: 46c1 movew %d1,%sr <== NOT EXECUTED
46322: 6002 bras 46326 <_CORE_semaphore_Surrender+0x3e> <== NOT EXECUTED
{
Thread_Control *the_thread;
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
46324: 4280 clrl %d0 <== NOT EXECUTED
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
46326: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4632a: 4e5e unlk %fp <== NOT EXECUTED
...
0004661c <_Chain_Append_with_empty_check>:
)
{
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
4661c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
bool _Chain_Append_with_empty_check(
Chain_Control *chain,
Chain_Node *node
)
{
46622: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46626: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
4662a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4662c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
46630: 2f02 movel %d2,%sp@- <== NOT EXECUTED
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
46632: 40c2 movew %sr,%d2 <== NOT EXECUTED
46634: 8082 orl %d2,%d0 <== NOT EXECUTED
46636: 46c0 movew %d0,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
46638: 2209 movel %a1,%d1 <== NOT EXECUTED
4663a: 5881 addql #4,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
4663c: b291 cmpl %a1@,%d1 <== NOT EXECUTED
4663e: 57c0 seq %d0 <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
46640: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
46644: 4480 negl %d0 <== NOT EXECUTED
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
46646: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
4664a: 2081 movel %d1,%a0@ <== NOT EXECUTED
tail->previous = the_node;
old_last->next = the_node;
the_node->previous = old_last;
4664c: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
46650: 2488 movel %a0,%a2@ <== NOT EXECUTED
was_empty = _Chain_Append_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
46652: 46c2 movew %d2,%sr <== NOT EXECUTED
return was_empty;
}
46654: 241f movel %sp@+,%d2 <== NOT EXECUTED
46656: 245f moveal %sp@+,%a2 <== NOT EXECUTED
46658: 4e5e unlk %fp <== NOT EXECUTED
000466bc <_Chain_Get_with_empty_check>:
)
{
ISR_Level level;
bool is_empty_now;
_ISR_Disable( level );
466bc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
bool _Chain_Get_with_empty_check(
Chain_Control *chain,
Chain_Node **node
)
{
466c2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
466c6: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
466ca: 2f0b movel %a3,%sp@- <== NOT EXECUTED
466cc: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
466d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
ISR_Level level;
bool is_empty_now;
_ISR_Disable( level );
466d2: 40c1 movew %sr,%d1 <== NOT EXECUTED
466d4: 8081 orl %d1,%d0 <== NOT EXECUTED
466d6: 46c0 movew %d0,%sr <== NOT EXECUTED
Chain_Node **the_node
)
{
bool is_empty_now = true;
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
466d8: 2008 movel %a0,%d0 <== NOT EXECUTED
466da: 5880 addql #4,%d0 <== NOT EXECUTED
Chain_Node *old_first = head->next;
466dc: 2450 moveal %a0@,%a2 <== NOT EXECUTED
if ( old_first != tail ) {
466de: b08a cmpl %a2,%d0 <== NOT EXECUTED
466e0: 6712 beqs 466f4 <_Chain_Get_with_empty_check+0x38><== NOT EXECUTED
Chain_Node *new_first = old_first->next;
466e2: 2252 moveal %a2@,%a1 <== NOT EXECUTED
head->next = new_first;
new_first->previous = head;
*the_node = old_first;
is_empty_now = new_first == tail;
466e4: b089 cmpl %a1,%d0 <== NOT EXECUTED
466e6: 57c0 seq %d0 <== NOT EXECUTED
Chain_Node *old_first = head->next;
if ( old_first != tail ) {
Chain_Node *new_first = old_first->next;
head->next = new_first;
466e8: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first->previous = head;
*the_node = old_first;
is_empty_now = new_first == tail;
466ea: 4480 negl %d0 <== NOT EXECUTED
if ( old_first != tail ) {
Chain_Node *new_first = old_first->next;
head->next = new_first;
new_first->previous = head;
466ec: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
*the_node = old_first;
466f0: 268a movel %a2,%a3@ <== NOT EXECUTED
466f2: 6004 bras 466f8 <_Chain_Get_with_empty_check+0x3c><== NOT EXECUTED
is_empty_now = new_first == tail;
} else
*the_node = NULL;
466f4: 4293 clrl %a3@ <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Get_with_empty_check_unprotected(
Chain_Control *the_chain,
Chain_Node **the_node
)
{
bool is_empty_now = true;
466f6: 7001 moveq #1,%d0 <== NOT EXECUTED
is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
466f8: 46c1 movew %d1,%sr <== NOT EXECUTED
return is_empty_now;
}
466fa: 245f moveal %sp@+,%a2 <== NOT EXECUTED
466fc: 265f moveal %sp@+,%a3 <== NOT EXECUTED
466fe: 4e5e unlk %fp <== NOT EXECUTED
...
00046768 <_Chain_Prepend_with_empty_check>:
)
{
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
46768: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
bool _Chain_Prepend_with_empty_check(
Chain_Control *chain,
Chain_Node *node
)
{
4676e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46772: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
46776: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46778: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
4677c: 40c1 movew %sr,%d1 <== NOT EXECUTED
4677e: 8081 orl %d1,%d0 <== NOT EXECUTED
46780: 46c0 movew %d0,%sr <== NOT EXECUTED
was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
return was_empty;
}
46782: 2451 moveal %a1@,%a2 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
46784: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
46788: 22c8 movel %a0,%a1@+ <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
4678a: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
4678e: 208a movel %a2,%a0@ <== NOT EXECUTED
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
46790: 46c1 movew %d1,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
46792: b3ca cmpal %a2,%a1 <== NOT EXECUTED
46794: 57c0 seq %d0 <== NOT EXECUTED
return was_empty;
}
46796: 245f moveal %sp@+,%a2 <== NOT EXECUTED
46798: 4480 negl %d0 <== NOT EXECUTED
4679a: 4e5e unlk %fp <== NOT EXECUTED
...
000450a4 <_Event_Seize>:
executing = _Thread_Executing;
executing->Wait.return_code = RTEMS_SUCCESSFUL;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
_ISR_Disable( level );
450a4: 203c 0000 0700 movel #1792,%d0
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
450aa: 4e56 ffec linkw %fp,#-20
450ae: 226e 0010 moveal %fp@(16),%a1
450b2: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
450b6: 2479 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a2
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
450bc: 242e 0008 movel %fp@(8),%d2
450c0: 262e 000c movel %fp@(12),%d3
450c4: 206e 0014 moveal %fp@(20),%a0
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
executing->Wait.return_code = RTEMS_SUCCESSFUL;
450c8: 42aa 0034 clrl %a2@(52)
api = executing->API_Extensions[ THREAD_API_RTEMS ];
450cc: 266a 00fc moveal %a2@(252),%a3
_ISR_Disable( level );
450d0: 40c1 movew %sr,%d1
450d2: 8081 orl %d1,%d0
450d4: 46c0 movew %d0,%sr
pending_events = api->pending_events;
450d6: 2813 movel %a3@,%d4
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get(
rtems_event_set the_event_set,
rtems_event_set the_event_condition
)
{
return ( the_event_set & the_event_condition );
450d8: 2002 movel %d2,%d0
450da: c084 andl %d4,%d0
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
450dc: 6716 beqs 450f4 <_Event_Seize+0x50>
450de: b480 cmpl %d0,%d2
450e0: 6706 beqs 450e8 <_Event_Seize+0x44> <== ALWAYS TAKEN
(seized_events == event_in || _Options_Is_any( option_set )) ) {
450e2: 0803 0001 btst #1,%d3 <== NOT EXECUTED
450e6: 670c beqs 450f4 <_Event_Seize+0x50> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(
rtems_event_set the_event_set,
rtems_event_set the_mask
)
{
return ( the_event_set & ~(the_mask) );
450e8: 2400 movel %d0,%d2
450ea: 4682 notl %d2
450ec: c484 andl %d4,%d2
450ee: 2682 movel %d2,%a3@
api->pending_events =
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
450f0: 46c1 movew %d1,%sr
450f2: 600e bras 45102 <_Event_Seize+0x5e>
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
450f4: 0803 0000 btst #0,%d3
450f8: 670e beqs 45108 <_Event_Seize+0x64> <== ALWAYS TAKEN
_ISR_Enable( level );
450fa: 46c1 movew %d1,%sr <== NOT EXECUTED
executing->Wait.return_code = RTEMS_UNSATISFIED;
450fc: 720d moveq #13,%d1 <== NOT EXECUTED
450fe: 2541 0034 movel %d1,%a2@(52) <== NOT EXECUTED
*event_out = seized_events;
45102: 2080 movel %d0,%a0@
return;
45104: 6000 0096 braw 4519c <_Event_Seize+0xf8>
*
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = (uint32_t) option_set;
executing->Wait.count = (uint32_t) event_in;
45108: 2542 0024 movel %d2,%a2@(36)
executing->Wait.return_argument = event_out;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
4510c: 7401 moveq #1,%d2
* set properly when we are marked as in the event critical section.
*
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = (uint32_t) option_set;
4510e: 2543 0030 movel %d3,%a2@(48)
executing->Wait.count = (uint32_t) event_in;
executing->Wait.return_argument = event_out;
45112: 2548 0028 movel %a0,%a2@(40)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
45116: 23c2 0005 c8ac movel %d2,5c8ac <_Event_Sync_state>
_ISR_Enable( level );
4511c: 46c1 movew %d1,%sr
if ( ticks ) {
4511e: 4a89 tstl %a1
45120: 6730 beqs 45152 <_Event_Seize+0xae>
_Watchdog_Initialize(
45122: 202a 0008 movel %a2@(8),%d0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
45126: 223c 0004 5300 movel #283392,%d1
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4512c: 42aa 0050 clrl %a2@(80)
the_watchdog->routine = routine;
45130: 2541 0064 movel %d1,%a2@(100)
the_watchdog->id = id;
45134: 2540 0068 movel %d0,%a2@(104)
the_watchdog->user_data = user_data;
45138: 42aa 006c clrl %a2@(108)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
4513c: 2549 0054 movel %a1,%a2@(84)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45140: 486a 0048 pea %a2@(72)
45144: 4879 0005 c798 pea 5c798 <_Watchdog_Ticks_chain>
4514a: 4eb9 0004 844c jsr 4844c <_Watchdog_Insert>
45150: 508f addql #8,%sp
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
45152: 4878 0100 pea 100 <DBL_MANT_DIG+0xcb>
45156: 2f0a movel %a2,%sp@-
45158: 4eb9 0004 7ed8 jsr 47ed8 <_Thread_Set_state>
_ISR_Disable( level );
4515e: 203c 0000 0700 movel #1792,%d0
45164: 40c1 movew %sr,%d1
45166: 8081 orl %d1,%d0
45168: 46c0 movew %d0,%sr
sync_state = _Event_Sync_state;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
4516a: 7401 moveq #1,%d2
4516c: 508f addql #8,%sp
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
_ISR_Disable( level );
sync_state = _Event_Sync_state;
4516e: 2039 0005 c8ac movel 5c8ac <_Event_Sync_state>,%d0
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
45174: 42b9 0005 c8ac clrl 5c8ac <_Event_Sync_state>
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
4517a: b480 cmpl %d0,%d2
4517c: 6604 bnes 45182 <_Event_Seize+0xde> <== NEVER TAKEN
_ISR_Enable( level );
4517e: 46c1 movew %d1,%sr
45180: 601a bras 4519c <_Event_Seize+0xf8>
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
45182: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED
45186: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED
}
4518a: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
45190: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
}
45194: 4e5e unlk %fp <== NOT EXECUTED
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
45196: 4ef9 0004 7240 jmp 47240 <_Thread_blocking_operation_Cancel><== NOT EXECUTED
}
4519c: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3
451a2: 4e5e unlk %fp
...
000451fc <_Event_Surrender>:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
option_set = (rtems_option) the_thread->Wait.option;
_ISR_Disable( level );
451fc: 203c 0000 0700 movel #1792,%d0
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
45202: 4e56 ffe8 linkw %fp,#-24
45206: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@
4520a: 246e 0008 moveal %fp@(8),%a2
rtems_event_set event_condition;
rtems_event_set seized_events;
rtems_option option_set;
RTEMS_API_Control *api;
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
4520e: 206a 00fc moveal %a2@(252),%a0
option_set = (rtems_option) the_thread->Wait.option;
45212: 282a 0030 movel %a2@(48),%d4
_ISR_Disable( level );
45216: 40c1 movew %sr,%d1
45218: 8081 orl %d1,%d0
4521a: 46c0 movew %d0,%sr
pending_events = api->pending_events;
event_condition = (rtems_event_set) the_thread->Wait.count;
4521c: 262a 0024 movel %a2@(36),%d3
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get(
rtems_event_set the_event_set,
rtems_event_set the_event_condition
)
{
return ( the_event_set & the_event_condition );
45220: 2003 movel %d3,%d0
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
option_set = (rtems_option) the_thread->Wait.option;
_ISR_Disable( level );
pending_events = api->pending_events;
45222: 2410 movel %a0@,%d2
45224: c082 andl %d2,%d0
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
45226: 6606 bnes 4522e <_Event_Surrender+0x32>
_ISR_Enable( level );
45228: 46c1 movew %d1,%sr
return;
4522a: 6000 00ca braw 452f6 <_Event_Surrender+0xfa>
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
4522e: 4ab9 0005 c874 tstl 5c874 <_Per_CPU_Information+0x8>
45234: 674a beqs 45280 <_Event_Surrender+0x84> <== ALWAYS TAKEN
45236: b5f9 0005 c878 cmpal 5c878 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
4523c: 6642 bnes 45280 <_Event_Surrender+0x84> <== NOT EXECUTED
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
4523e: 2279 0005 c8ac moveal 5c8ac <_Event_Sync_state>,%a1 <== NOT EXECUTED
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
45244: 7a02 moveq #2,%d5 <== NOT EXECUTED
45246: ba89 cmpl %a1,%d5 <== NOT EXECUTED
45248: 670e beqs 45258 <_Event_Surrender+0x5c> <== NOT EXECUTED
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
4524a: 2279 0005 c8ac moveal 5c8ac <_Event_Sync_state>,%a1 <== NOT EXECUTED
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
45250: 1a3c 0001 moveb #1,%d5 <== NOT EXECUTED
45254: ba89 cmpl %a1,%d5 <== NOT EXECUTED
45256: 6628 bnes 45280 <_Event_Surrender+0x84> <== NOT EXECUTED
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
45258: b680 cmpl %d0,%d3 <== NOT EXECUTED
4525a: 6706 beqs 45262 <_Event_Surrender+0x66> <== NOT EXECUTED
4525c: 0804 0001 btst #1,%d4 <== NOT EXECUTED
45260: 671a beqs 4527c <_Event_Surrender+0x80> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(
rtems_event_set the_event_set,
rtems_event_set the_mask
)
{
return ( the_event_set & ~(the_mask) );
45262: 2600 movel %d0,%d3 <== NOT EXECUTED
45264: 4683 notl %d3 <== NOT EXECUTED
45266: c682 andl %d2,%d3 <== NOT EXECUTED
45268: 2083 movel %d3,%a0@ <== NOT EXECUTED
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
4526a: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
4526e: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
45272: 2080 movel %d0,%a0@ <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
45274: 7003 moveq #3,%d0 <== NOT EXECUTED
45276: 23c0 0005 c8ac movel %d0,5c8ac <_Event_Sync_state> <== NOT EXECUTED
}
_ISR_Enable( level );
4527c: 46c1 movew %d1,%sr <== NOT EXECUTED
return;
4527e: 6076 bras 452f6 <_Event_Surrender+0xfa> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (
States_Control the_states
)
{
return (the_states & STATES_WAITING_FOR_EVENT);
45280: 2a2a 0010 movel %a2@(16),%d5
45284: 0285 0000 0100 andil #256,%d5
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
4528a: 6768 beqs 452f4 <_Event_Surrender+0xf8> <== NEVER TAKEN
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
4528c: b680 cmpl %d0,%d3
4528e: 6706 beqs 45296 <_Event_Surrender+0x9a> <== ALWAYS TAKEN
45290: 0804 0001 btst #1,%d4 <== NOT EXECUTED
45294: 675e beqs 452f4 <_Event_Surrender+0xf8> <== NOT EXECUTED
45296: 2600 movel %d0,%d3
45298: 4683 notl %d3
4529a: c682 andl %d2,%d3
4529c: 2083 movel %d3,%a0@
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
4529e: 206a 0028 moveal %a2@(40),%a0
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
the_thread->Wait.count = 0;
452a2: 42aa 0024 clrl %a2@(36)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
452a6: 2080 movel %d0,%a0@
_ISR_Flash( level );
452a8: 203c 0000 0700 movel #1792,%d0
452ae: 46c1 movew %d1,%sr
452b0: 8081 orl %d1,%d0
452b2: 46c0 movew %d0,%sr
452b4: 47f9 0004 73cc lea 473cc <_Thread_Clear_state>,%a3
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
452ba: 7a02 moveq #2,%d5
452bc: baaa 0050 cmpl %a2@(80),%d5
452c0: 6710 beqs 452d2 <_Event_Surrender+0xd6>
_ISR_Enable( level );
452c2: 46c1 movew %d1,%sr
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
452c4: 2f3c 1003 fff8 movel #268697592,%sp@-
452ca: 2f0a movel %a2,%sp@-
452cc: 4e93 jsr %a3@
452ce: 508f addql #8,%sp
452d0: 6024 bras 452f6 <_Event_Surrender+0xfa>
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
452d2: 7003 moveq #3,%d0
452d4: 2540 0050 movel %d0,%a2@(80)
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
452d8: 46c1 movew %d1,%sr
(void) _Watchdog_Remove( &the_thread->Timer );
452da: 486a 0048 pea %a2@(72)
452de: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove>
452e4: 2f3c 1003 fff8 movel #268697592,%sp@-
452ea: 2f0a movel %a2,%sp@-
452ec: 4e93 jsr %a3@
452ee: 4fef 000c lea %sp@(12),%sp
452f2: 6002 bras 452f6 <_Event_Surrender+0xfa>
_Thread_Unblock( the_thread );
}
return;
}
}
_ISR_Enable( level );
452f4: 46c1 movew %d1,%sr <== NOT EXECUTED
}
452f6: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3
452fc: 4e5e unlk %fp <== NOT EXECUTED
00045300 <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
45300: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45304: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45306: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
45308: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4530c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
45310: 4eb9 0004 7750 jsr 47750 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
45316: 508f addql #8,%sp <== NOT EXECUTED
45318: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4531c: 6656 bnes 45374 <_Event_Timeout+0x74> <== NOT EXECUTED
*
* If it is not satisfied, then it is "nothing happened" and
* this is the "timeout" transition. After a request is satisfied,
* a timeout is not allowed to occur.
*/
_ISR_Disable( level );
4531e: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
45324: 40c2 movew %sr,%d2 <== NOT EXECUTED
45326: 8282 orl %d2,%d1 <== NOT EXECUTED
45328: 46c1 movew %d1,%sr <== NOT EXECUTED
_ISR_Enable( level );
return;
}
#endif
the_thread->Wait.count = 0;
4532a: 2040 moveal %d0,%a0 <== NOT EXECUTED
4532c: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED
if ( _Thread_Is_executing( the_thread ) ) {
45330: b0b9 0005 c878 cmpl 5c878 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
45336: 6614 bnes 4534c <_Event_Timeout+0x4c> <== NOT EXECUTED
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
45338: 2239 0005 c8ac movel 5c8ac <_Event_Sync_state>,%d1 <== NOT EXECUTED
4533e: 7601 moveq #1,%d3 <== NOT EXECUTED
45340: b681 cmpl %d1,%d3 <== NOT EXECUTED
45342: 6608 bnes 4534c <_Event_Timeout+0x4c> <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
45344: 7202 moveq #2,%d1 <== NOT EXECUTED
45346: 23c1 0005 c8ac movel %d1,5c8ac <_Event_Sync_state> <== NOT EXECUTED
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
4534c: 7606 moveq #6,%d3 <== NOT EXECUTED
4534e: 2040 moveal %d0,%a0 <== NOT EXECUTED
45350: 2143 0034 movel %d3,%a0@(52) <== NOT EXECUTED
_ISR_Enable( level );
45354: 46c2 movew %d2,%sr <== NOT EXECUTED
45356: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
4535c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4535e: 4eb9 0004 73cc jsr 473cc <_Thread_Clear_state> <== NOT EXECUTED
_Thread_Unblock( the_thread );
_Thread_Unnest_dispatch();
break;
45364: 508f addql #8,%sp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
45366: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4536c: 5380 subql #1,%d0 <== NOT EXECUTED
4536e: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
45374: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
45378: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
4537c: 4e5e unlk %fp <== NOT EXECUTED
0004a1a8 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
4a1a8: 4e56 ffbc linkw %fp,#-68
4a1ac: 202e 000c movel %fp@(12),%d0
4a1b0: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@
4a1b4: 246e 0008 moveal %fp@(8),%a2
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
4a1b8: 2e00 movel %d0,%d7
4a1ba: 5887 addql #4,%d7
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
4a1bc: 222e 0010 movel %fp@(16),%d1
4a1c0: 2a2e 0014 movel %fp@(20),%d5
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_ALLOC_BONUS;
uintptr_t const page_size = heap->page_size;
4a1c4: 2c2a 0010 movel %a2@(16),%d6
Heap_Block *block = NULL;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
bool search_again = false;
if ( block_size_floor < alloc_size ) {
4a1c8: b087 cmpl %d7,%d0
4a1ca: 6200 014e bhiw 4a31a <_Heap_Allocate_aligned_with_boundary+0x172>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
4a1ce: 4a85 tstl %d5
4a1d0: 670c beqs 4a1de <_Heap_Allocate_aligned_with_boundary+0x36><== ALWAYS TAKEN
if ( boundary < alloc_size ) {
4a1d2: b085 cmpl %d5,%d0 <== NOT EXECUTED
4a1d4: 6200 0144 bhiw 4a31a <_Heap_Allocate_aligned_with_boundary+0x172><== NOT EXECUTED
return NULL;
}
if ( alignment == 0 ) {
4a1d8: 4a81 tstl %d1 <== NOT EXECUTED
4a1da: 6602 bnes 4a1de <_Heap_Allocate_aligned_with_boundary+0x36><== NOT EXECUTED
alignment = page_size;
4a1dc: 2206 movel %d6,%d1 <== NOT EXECUTED
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
4a1de: 2406 movel %d6,%d2
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
4a1e0: 7804 moveq #4,%d4
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
4a1e2: 5e82 addql #7,%d2
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
4a1e4: 9880 subl %d0,%d4
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
4a1e6: 4283 clrl %d3
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
4a1e8: 206a 0008 moveal %a2@(8),%a0
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
4a1ec: 2d42 fff8 movel %d2,%fp@(-8)
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
4a1f0: 2d44 fff4 movel %d4,%fp@(-12)
4a1f4: 2d47 ffe4 movel %d7,%fp@(-28)
4a1f8: 2d46 ffec movel %d6,%fp@(-20)
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
4a1fc: 6000 00ea braw 4a2e8 <_Heap_Allocate_aligned_with_boundary+0x140>
/*
* The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
* field. Thus the value is about one unit larger than the real block
* size. The greater than operator takes this into account.
*/
if ( block->size_and_flag > block_size_floor ) {
4a200: 2428 0004 movel %a0@(4),%d2
4a204: b4ae ffe4 cmpl %fp@(-28),%d2
4a208: 6300 00d2 blsw 4a2dc <_Heap_Allocate_aligned_with_boundary+0x134>
4a20c: 43e8 0008 lea %a0@(8),%a1
if ( alignment == 0 ) {
4a210: 4a81 tstl %d1
4a212: 6606 bnes 4a21a <_Heap_Allocate_aligned_with_boundary+0x72>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
4a214: 2409 movel %a1,%d2
4a216: 6000 00c6 braw 4a2de <_Heap_Allocate_aligned_with_boundary+0x136>
- 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;
4a21a: 7cfe moveq #-2,%d6
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
4a21c: 266a 0014 moveal %a2@(20),%a3
4a220: c486 andl %d6,%d2
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
4a222: 282e fff8 movel %fp@(-8),%d4
4a226: 988b subl %a3,%d4
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
4a228: d488 addl %a0,%d2
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
4a22a: 2c04 movel %d4,%d6
4a22c: dc82 addl %d2,%d6
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
uintptr_t alloc_begin = alloc_end - alloc_size;
4a22e: d4ae fff4 addl %fp@(-12),%d2
4a232: 2d42 fffc movel %d2,%fp@(-4)
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4a236: 4c41 2007 remul %d1,%d7,%d2
4a23a: 242e fffc movel %fp@(-4),%d2
4a23e: 9487 subl %d7,%d2
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
4a240: bc82 cmpl %d2,%d6
4a242: 640a bccs 4a24e <_Heap_Allocate_aligned_with_boundary+0xa6><== ALWAYS TAKEN
4a244: 2806 movel %d6,%d4 <== NOT EXECUTED
4a246: 4c41 4002 remul %d1,%d2,%d4 <== NOT EXECUTED
4a24a: 9c82 subl %d2,%d6 <== NOT EXECUTED
4a24c: 2406 movel %d6,%d2 <== NOT EXECUTED
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
4a24e: 4a85 tstl %d5
4a250: 675c beqs 4a2ae <_Heap_Allocate_aligned_with_boundary+0x106><== ALWAYS TAKEN
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment );
}
alloc_end = alloc_begin + alloc_size;
4a252: 2c02 movel %d2,%d6 <== NOT EXECUTED
4a254: dc80 addl %d0,%d6 <== NOT EXECUTED
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
4a256: 49f1 0800 lea %a1@(00000000,%d0:l),%a4 <== NOT EXECUTED
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment );
}
alloc_end = alloc_begin + alloc_size;
4a25a: 2d46 fff0 movel %d6,%fp@(-16) <== NOT EXECUTED
4a25e: 2a6e fff0 moveal %fp@(-16),%a5 <== NOT EXECUTED
4a262: 4c45 6004 remul %d5,%d4,%d6 <== NOT EXECUTED
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
4a266: 2d4c fffc movel %a4,%fp@(-4) <== NOT EXECUTED
4a26a: 2e2e ffe4 movel %fp@(-28),%d7 <== NOT EXECUTED
4a26e: 9bc4 subal %d4,%a5 <== NOT EXECUTED
4a270: 284d moveal %a5,%a4 <== NOT EXECUTED
4a272: 2d43 ffe8 movel %d3,%fp@(-24) <== NOT EXECUTED
4a276: 282e fff0 movel %fp@(-16),%d4 <== NOT EXECUTED
4a27a: 6022 bras 4a29e <_Heap_Allocate_aligned_with_boundary+0xf6><== NOT EXECUTED
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
4a27c: b9ee fffc cmpal %fp@(-4),%a4 <== NOT EXECUTED
4a280: 6552 bcss 4a2d4 <_Heap_Allocate_aligned_with_boundary+0x12c><== NOT EXECUTED
return 0;
}
alloc_begin = boundary_line - alloc_size;
4a282: 240c movel %a4,%d2 <== NOT EXECUTED
4a284: 9480 subl %d0,%d2 <== NOT EXECUTED
4a286: 2802 movel %d2,%d4 <== NOT EXECUTED
4a288: 4c41 4003 remul %d1,%d3,%d4 <== NOT EXECUTED
4a28c: 9483 subl %d3,%d2 <== NOT EXECUTED
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
4a28e: 2802 movel %d2,%d4 <== NOT EXECUTED
4a290: d880 addl %d0,%d4 <== NOT EXECUTED
4a292: 2c04 movel %d4,%d6 <== NOT EXECUTED
4a294: 2a44 moveal %d4,%a5 <== NOT EXECUTED
4a296: 4c45 6003 remul %d5,%d3,%d6 <== NOT EXECUTED
4a29a: 9bc3 subal %d3,%a5 <== NOT EXECUTED
4a29c: 284d moveal %a5,%a4 <== NOT EXECUTED
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
4a29e: b9c2 cmpal %d2,%a4 <== NOT EXECUTED
4a2a0: 6304 blss 4a2a6 <_Heap_Allocate_aligned_with_boundary+0xfe><== NOT EXECUTED
4a2a2: b88c cmpl %a4,%d4 <== NOT EXECUTED
4a2a4: 62d6 bhis 4a27c <_Heap_Allocate_aligned_with_boundary+0xd4><== NOT EXECUTED
4a2a6: 262e ffe8 movel %fp@(-24),%d3 <== NOT EXECUTED
4a2aa: 2d47 ffe4 movel %d7,%fp@(-28) <== NOT EXECUTED
boundary_line = _Heap_Align_down( alloc_end, boundary );
}
}
/* Ensure that the we have a valid new block at the beginning */
if ( alloc_begin >= alloc_begin_floor ) {
4a2ae: b3c2 cmpal %d2,%a1
4a2b0: 622a bhis 4a2dc <_Heap_Allocate_aligned_with_boundary+0x134><== NEVER TAKEN
4a2b2: 2c2e ffec movel %fp@(-20),%d6
4a2b6: 2802 movel %d2,%d4
4a2b8: 327c fff8 moveaw #-8,%a1
4a2bc: 93c8 subal %a0,%a1
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
4a2be: d3c2 addal %d2,%a1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4a2c0: 4c46 4007 remul %d6,%d7,%d4
uintptr_t const alloc_block_begin =
(uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
uintptr_t const free_size = alloc_block_begin - block_begin;
4a2c4: 93c7 subal %d7,%a1
if ( free_size >= min_block_size || free_size == 0 ) {
4a2c6: b7c9 cmpal %a1,%a3
4a2c8: 6314 blss 4a2de <_Heap_Allocate_aligned_with_boundary+0x136><== ALWAYS TAKEN
return alloc_begin;
}
}
return 0;
4a2ca: 4a89 tstl %a1 <== NOT EXECUTED
4a2cc: 57c4 seq %d4 <== NOT EXECUTED
4a2ce: 49c4 extbl %d4 <== NOT EXECUTED
4a2d0: c484 andl %d4,%d2 <== NOT EXECUTED
4a2d2: 600a bras 4a2de <_Heap_Allocate_aligned_with_boundary+0x136><== NOT EXECUTED
4a2d4: 262e ffe8 movel %fp@(-24),%d3 <== NOT EXECUTED
4a2d8: 2d47 ffe4 movel %d7,%fp@(-28) <== NOT EXECUTED
4a2dc: 4282 clrl %d2
);
}
}
/* Statistics */
++search_count;
4a2de: 5283 addql #1,%d3
if ( alloc_begin != 0 ) {
4a2e0: 4a82 tstl %d2
4a2e2: 660e bnes 4a2f2 <_Heap_Allocate_aligned_with_boundary+0x14a>
break;
}
block = block->next;
4a2e4: 2068 0008 moveal %a0@(8),%a0
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
4a2e8: b5c8 cmpal %a0,%a2
4a2ea: 6600 ff14 bnew 4a200 <_Heap_Allocate_aligned_with_boundary+0x58>
4a2ee: 4282 clrl %d2
4a2f0: 601a bras 4a30c <_Heap_Allocate_aligned_with_boundary+0x164>
search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
4a2f2: 52aa 0048 addql #1,%a2@(72)
stats->searches += search_count;
4a2f6: d7aa 004c addl %d3,%a2@(76)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4a2fa: 2f00 movel %d0,%sp@-
4a2fc: 2f02 movel %d2,%sp@-
4a2fe: 2f08 movel %a0,%sp@-
4a300: 2f0a movel %a2,%sp@-
4a302: 4eb9 0004 667a jsr 4667a <_Heap_Block_allocate>
4a308: 4fef 0010 lea %sp@(16),%sp
boundary
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
4a30c: b6aa 0044 cmpl %a2@(68),%d3
4a310: 6304 blss 4a316 <_Heap_Allocate_aligned_with_boundary+0x16e>
stats->max_search = search_count;
4a312: 2543 0044 movel %d3,%a2@(68)
}
return (void *) alloc_begin;
4a316: 2002 movel %d2,%d0
4a318: 6002 bras 4a31c <_Heap_Allocate_aligned_with_boundary+0x174>
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
4a31a: 4280 clrl %d0 <== NOT EXECUTED
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
4a31c: 4cee 3cfc ffbc moveml %fp@(-68),%d2-%d7/%a2-%a5
4a322: 4e5e unlk %fp
...
0004667a <_Heap_Block_allocate>:
- 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;
4667a: 70fe moveq #-2,%d0
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
4667c: 4e56 ffe0 linkw %fp,#-32
46680: 222e 0010 movel %fp@(16),%d1
46684: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@
46688: 246e 000c moveal %fp@(12),%a2
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;
4668c: 7801 moveq #1,%d4
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
4668e: 2841 moveal %d1,%a4
46690: 518c subql #8,%a4
Heap_Statistics *const stats = &heap->stats;
uintptr_t const alloc_area_begin = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin;
46692: 260c movel %a4,%d3
46694: 968a subl %a2,%d3
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
46696: 242a 0004 movel %a2@(4),%d2
- 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;
4669a: c082 andl %d2,%d0
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
4669c: 266e 0008 moveal %fp@(8),%a3
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
466a0: 4bf2 0800 lea %a2@(00000000,%d0:l),%a5
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;
466a4: c8ad 0004 andl %a5@(4),%d4
466a8: 2a2e 0014 movel %fp@(20),%d5
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
466ac: 4a84 tstl %d4
466ae: 6620 bnes 466d0 <_Heap_Block_allocate+0x56> <== NEVER TAKEN
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
466b0: 282a 0008 movel %a2@(8),%d4
Heap_Block *prev = block->prev;
prev->next = next;
next->prev = prev;
466b4: 2244 moveal %d4,%a1
free_list_anchor = block->prev;
466b6: 206a 000c moveal %a2@(12),%a0
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
prev->next = next;
466ba: 2144 0008 movel %d4,%a0@(8)
next->prev = prev;
466be: 2348 000c movel %a0,%a1@(12)
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
466c2: 53ab 0038 subql #1,%a3@(56)
++stats->used_blocks;
466c6: 52ab 0040 addql #1,%a3@(64)
stats->free_size -= _Heap_Block_size( block );
466ca: 91ab 0030 subl %d0,%a3@(48)
466ce: 6002 bras 466d2 <_Heap_Block_allocate+0x58>
} else {
free_list_anchor = _Heap_Free_list_head( heap );
466d0: 204b moveal %a3,%a0 <== NOT EXECUTED
}
if ( alloc_area_offset < heap->page_size ) {
466d2: 202b 0010 movel %a3@(16),%d0
466d6: b083 cmpl %d3,%d0
466d8: 6316 blss 466f0 <_Heap_Block_allocate+0x76>
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
_Heap_Block_split( heap, block, free_list_anchor, alloc_size );
466da: 2243 moveal %d3,%a1
466dc: 4871 5800 pea %a1@(00000000,%d5:l)
466e0: 2f08 movel %a0,%sp@-
466e2: 2f0a movel %a2,%sp@-
466e4: 2f0b movel %a3,%sp@-
466e6: 4eba fd5c jsr %pc@(46444 <_Heap_Block_split>)
466ea: 4fef 0010 lea %sp@(16),%sp
466ee: 605e bras 4674e <_Heap_Block_allocate+0xd4>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
466f0: 4c40 1003 remul %d0,%d3,%d1
uintptr_t block_end = block_begin + block_size;
Heap_Block *const new_block =
_Heap_Block_of_alloc_area( alloc_begin, heap->page_size );
uintptr_t const new_block_begin = (uintptr_t) new_block;
uintptr_t const new_block_size = block_end - new_block_begin;
466f4: 220d movel %a5,%d1
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
466f6: 99c3 subal %d3,%a4
block_end = new_block_begin;
block_size = block_end - block_begin;
466f8: 200c movel %a4,%d0
466fa: 908a subl %a2,%d0
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
466fc: d1ab 0030 addl %d0,%a3@(48)
uintptr_t block_end = block_begin + block_size;
Heap_Block *const new_block =
_Heap_Block_of_alloc_area( alloc_begin, heap->page_size );
uintptr_t const new_block_begin = (uintptr_t) new_block;
uintptr_t const new_block_size = block_end - new_block_begin;
46700: 928c subl %a4,%d1
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
if ( _Heap_Is_prev_used( block ) ) {
46702: 0802 0000 btst #0,%d2
46706: 671c beqs 46724 <_Heap_Block_allocate+0xaa> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
46708: 2a68 0008 moveal %a0@(8),%a5
new_block->next = next;
new_block->prev = block_before;
4670c: 2548 000c movel %a0,%a2@(12)
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
46710: 254d 0008 movel %a5,%a2@(8)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
46714: 2b4a 000c movel %a2,%a5@(12)
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
46718: 214a 0008 movel %a2,%a0@(8)
_Heap_Free_list_insert_after( free_list_anchor, block );
free_list_anchor = block;
/* Statistics */
++stats->free_blocks;
4671c: 52ab 0038 addql #1,%a3@(56)
46720: 204a moveal %a2,%a0
46722: 600a bras 4672e <_Heap_Block_allocate+0xb4>
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block(
const Heap_Block *block
)
{
return (Heap_Block *) ((uintptr_t) block - block->prev_size);
46724: 95d2 subal %a2@,%a2 <== NOT EXECUTED
- 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;
46726: 74fe moveq #-2,%d2 <== NOT EXECUTED
46728: c4aa 0004 andl %a2@(4),%d2 <== NOT EXECUTED
} else {
Heap_Block *const prev_block = _Heap_Prev_block( block );
uintptr_t const prev_block_size = _Heap_Block_size( prev_block );
block = prev_block;
block_size += prev_block_size;
4672c: d082 addl %d2,%d0 <== NOT EXECUTED
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
4672e: 7401 moveq #1,%d2
46730: 8480 orl %d0,%d2
new_block->prev_size = block_size;
46732: 2880 movel %d0,%a4@
block = prev_block;
block_size += prev_block_size;
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
46734: 2542 0004 movel %d2,%a2@(4)
new_block->prev_size = block_size;
new_block->size_and_flag = new_block_size;
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
46738: 244c moveal %a4,%a2
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
new_block->prev_size = block_size;
new_block->size_and_flag = new_block_size;
4673a: 2941 0004 movel %d1,%a4@(4)
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
4673e: 2f05 movel %d5,%sp@-
46740: 2f08 movel %a0,%sp@-
46742: 2f0c movel %a4,%sp@-
46744: 2f0b movel %a3,%sp@-
46746: 4eba fcfc jsr %pc@(46444 <_Heap_Block_split>)
4674a: 4fef 0010 lea %sp@(16),%sp
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
4674e: 202b 0030 movel %a3@(48),%d0
46752: b0ab 0034 cmpl %a3@(52),%d0
46756: 6404 bccs 4675c <_Heap_Block_allocate+0xe2> <== NEVER TAKEN
stats->min_free_size = stats->free_size;
46758: 2740 0034 movel %d0,%a3@(52)
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
4675c: 200a movel %a2,%d0
4675e: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5
46764: 4e5e unlk %fp <== NOT EXECUTED
00046444 <_Heap_Block_split>:
- 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;
46444: 70fe moveq #-2,%d0
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
46446: 4e56 ffe0 linkw %fp,#-32
4644a: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@
4644e: 246e 0008 moveal %fp@(8),%a2
46452: 266e 000c moveal %fp@(12),%a3
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
46456: 282a 0014 movel %a2@(20),%d4
uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE;
4645a: 2044 moveal %d4,%a0
4645c: 5188 subql #8,%a0
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
4645e: 262b 0004 movel %a3@(4),%d3
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
46462: 286e 0010 moveal %fp@(16),%a4
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
46466: 222a 0010 movel %a2@(16),%d1
return heap->stats.size;
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b )
{
return a > b ? a : b;
4646a: 242e 0014 movel %fp@(20),%d2
- 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;
4646e: c083 andl %d3,%d0
return heap->stats.size;
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b )
{
return a > b ? a : b;
46470: b1c2 cmpal %d2,%a0
46472: 6302 blss 46476 <_Heap_Block_split+0x32>
46474: 2408 movel %a0,%d2
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const used_size =
46476: 5082 addql #8,%d2
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
46478: 2c02 movel %d2,%d6
4647a: 4c41 6005 remul %d1,%d5,%d6
if ( remainder != 0 ) {
4647e: 4a85 tstl %d5
46480: 6706 beqs 46488 <_Heap_Block_split+0x44>
return value - remainder + alignment;
46482: d282 addl %d2,%d1
46484: 9285 subl %d5,%d1
46486: 6002 bras 4648a <_Heap_Block_split+0x46>
} else {
return value;
46488: 2202 movel %d2,%d1
_Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE;
uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size );
uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size;
4648a: 2240 moveal %d0,%a1
4648c: 5889 addql #4,%a1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
4648e: 41f3 0800 lea %a3@(00000000,%d0:l),%a0
46492: 93c2 subal %d2,%a1
uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS;
46494: 5884 addql #4,%d4
Heap_Block *next_block = _Heap_Block_at( block, block_size );
_HAssert( used_size <= block_size + HEAP_ALLOC_BONUS );
_HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS );
if ( free_size >= free_size_limit ) {
46496: b889 cmpl %a1,%d4
46498: 626a bhis 46504 <_Heap_Block_split+0xc0>
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
4649a: 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);
4649c: 43f3 1800 lea %a3@(00000000,%d1:l),%a1
Heap_Block *const free_block = _Heap_Block_at( block, used_block_size );
uintptr_t free_block_size = block_size - used_block_size;
464a0: 9081 subl %d1,%d0
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
464a2: c682 andl %d2,%d3
block->size_and_flag = size | flag;
464a4: 8283 orl %d3,%d1
464a6: 2741 0004 movel %d1,%a3@(4)
- 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;
464aa: 72fe moveq #-2,%d1
_HAssert( used_block_size + free_block_size == block_size );
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
464ac: d1aa 0030 addl %d0,%a2@(48)
464b0: c2a8 0004 andl %a0@(4),%d1
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;
464b4: c4b0 1804 andl %a0@(00000004,%d1:l),%d2
if ( _Heap_Is_used( next_block ) ) {
464b8: 671a beqs 464d4 <_Heap_Block_split+0x90> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
464ba: 266c 0008 moveal %a4@(8),%a3
new_block->next = next;
new_block->prev = block_before;
464be: 234c 000c movel %a4,%a1@(12)
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
464c2: 234b 0008 movel %a3,%a1@(8)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
464c6: 2749 000c movel %a1,%a3@(12)
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
464ca: 2949 0008 movel %a1,%a4@(8)
_Heap_Free_list_insert_after( free_list_anchor, free_block );
/* Statistics */
++stats->free_blocks;
464ce: 52aa 0038 addql #1,%a2@(56)
464d2: 601e bras 464f2 <_Heap_Block_split+0xae>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
464d4: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED
} else {
uintptr_t const next_block_size = _Heap_Block_size( next_block );
_Heap_Free_list_replace( next_block, free_block );
free_block_size += next_block_size;
464d8: d081 addl %d1,%d0 <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
464da: 2068 000c moveal %a0@(12),%a0 <== NOT EXECUTED
new_block->next = next;
464de: 234a 0008 movel %a2,%a1@(8) <== NOT EXECUTED
new_block->prev = prev;
464e2: 2348 000c movel %a0,%a1@(12) <== NOT EXECUTED
next->prev = new_block;
prev->next = new_block;
464e6: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
464ea: 41f1 0800 lea %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
next->prev = new_block;
464ee: 2549 000c movel %a1,%a2@(12) <== NOT EXECUTED
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
464f2: 7201 moveq #1,%d1
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
464f4: 74fe moveq #-2,%d2
free_block_size += next_block_size;
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
464f6: 8280 orl %d0,%d1
next_block->prev_size = free_block_size;
464f8: 2080 movel %d0,%a0@
free_block_size += next_block_size;
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
464fa: 2341 0004 movel %d1,%a1@(4)
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
464fe: c5a8 0004 andl %d2,%a0@(4)
46502: 6006 bras 4650a <_Heap_Block_split+0xc6>
_Heap_Protection_block_initialize( heap, free_block );
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
46504: 7001 moveq #1,%d0
46506: 81a8 0004 orl %d0,%a0@(4)
}
}
4650a: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4
4650e: 4e5e unlk %fp <== NOT EXECUTED
0004a624 <_Heap_Extend>:
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t *extended_size_ptr
)
{
4a624: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED
4a628: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
4a62c: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
4a630: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4a634: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
Heap_Block *extend_first_block = NULL;
Heap_Block *extend_last_block = NULL;
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
4a638: 2403 movel %d3,%d2 <== NOT EXECUTED
4a63a: d480 addl %d0,%d2 <== NOT EXECUTED
uintptr_t const free_size = stats->free_size;
4a63c: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED
uintptr_t extend_area_size,
uintptr_t *extended_size_ptr
)
{
Heap_Statistics *const stats = &heap->stats;
Heap_Block *const first_block = heap->first_block;
4a640: 282a 0020 movel %a2@(32),%d4 <== NOT EXECUTED
Heap_Block *merge_above_block = NULL;
Heap_Block *link_below_block = NULL;
Heap_Block *link_above_block = NULL;
Heap_Block *extend_first_block = NULL;
Heap_Block *extend_last_block = NULL;
uintptr_t const page_size = heap->page_size;
4a644: 2a2a 0010 movel %a2@(16),%d5 <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
4a648: 222a 0014 movel %a2@(20),%d1 <== NOT EXECUTED
Heap_Block *start_block = first_block;
Heap_Block *merge_below_block = NULL;
Heap_Block *merge_above_block = NULL;
Heap_Block *link_below_block = NULL;
Heap_Block *link_above_block = NULL;
Heap_Block *extend_first_block = NULL;
4a64c: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED
Heap_Block *extend_last_block = NULL;
4a650: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
uintptr_t const free_size = stats->free_size;
4a654: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED
uintptr_t extend_first_block_size = 0;
uintptr_t extended_size = 0;
bool extend_area_ok = false;
if ( extend_area_end < extend_area_begin ) {
4a658: b682 cmpl %d2,%d3 <== NOT EXECUTED
4a65a: 6200 01aa bhiw 4a806 <_Heap_Extend+0x1e2> <== NOT EXECUTED
return false;
}
extend_area_ok = _Heap_Get_first_and_last_block(
4a65e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
4a662: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4a666: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4a668: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4a66a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a66c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4a66e: 4eb9 0004 6826 jsr 46826 <_Heap_Get_first_and_last_block> <== NOT EXECUTED
page_size,
min_block_size,
&extend_first_block,
&extend_last_block
);
if (!extend_area_ok ) {
4a674: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
4a678: 4a00 tstb %d0 <== NOT EXECUTED
4a67a: 6700 018a beqw 4a806 <_Heap_Extend+0x1e2> <== NOT EXECUTED
4a67e: 2044 moveal %d4,%a0 <== NOT EXECUTED
4a680: 9bcd subal %a5,%a5 <== NOT EXECUTED
4a682: 4281 clrl %d1 <== NOT EXECUTED
4a684: 97cb subal %a3,%a3 <== NOT EXECUTED
4a686: 99cc subal %a4,%a4 <== NOT EXECUTED
return false;
}
do {
uintptr_t const sub_area_begin = (start_block != first_block) ?
(uintptr_t) start_block : heap->area_begin;
4a688: b888 cmpl %a0,%d4 <== NOT EXECUTED
4a68a: 6704 beqs 4a690 <_Heap_Extend+0x6c> <== NOT EXECUTED
4a68c: 2248 moveal %a0,%a1 <== NOT EXECUTED
4a68e: 6004 bras 4a694 <_Heap_Extend+0x70> <== NOT EXECUTED
4a690: 226a 0018 moveal %a2@(24),%a1 <== NOT EXECUTED
uintptr_t const sub_area_end = start_block->prev_size;
4a694: 2010 movel %a0@,%d0 <== NOT EXECUTED
Heap_Block *const end_block =
_Heap_Block_of_alloc_area( sub_area_end, page_size );
if (
4a696: b680 cmpl %d0,%d3 <== NOT EXECUTED
4a698: 6406 bccs 4a6a0 <_Heap_Extend+0x7c> <== NOT EXECUTED
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
4a69a: b3c2 cmpal %d2,%a1 <== NOT EXECUTED
4a69c: 6500 0168 bcsw 4a806 <_Heap_Extend+0x1e2> <== NOT EXECUTED
) {
return false;
}
if ( extend_area_end == sub_area_begin ) {
4a6a0: b3c2 cmpal %d2,%a1 <== NOT EXECUTED
4a6a2: 6706 beqs 4a6aa <_Heap_Extend+0x86> <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
4a6a4: b082 cmpl %d2,%d0 <== NOT EXECUTED
4a6a6: 6206 bhis 4a6ae <_Heap_Extend+0x8a> <== NOT EXECUTED
4a6a8: 6006 bras 4a6b0 <_Heap_Extend+0x8c> <== NOT EXECUTED
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
) {
return false;
}
if ( extend_area_end == sub_area_begin ) {
4a6aa: 2848 moveal %a0,%a4 <== NOT EXECUTED
4a6ac: 6002 bras 4a6b0 <_Heap_Extend+0x8c> <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
4a6ae: 2208 movel %a0,%d1 <== NOT EXECUTED
4a6b0: 2e00 movel %d0,%d7 <== NOT EXECUTED
4a6b2: 2240 moveal %d0,%a1 <== NOT EXECUTED
4a6b4: 5189 subql #8,%a1 <== NOT EXECUTED
4a6b6: 4c45 7006 remul %d5,%d6,%d7 <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
4a6ba: 93c6 subal %d6,%a1 <== NOT EXECUTED
link_below_block = start_block;
}
if ( sub_area_end == extend_area_begin ) {
4a6bc: b680 cmpl %d0,%d3 <== NOT EXECUTED
4a6be: 6606 bnes 4a6c6 <_Heap_Extend+0xa2> <== NOT EXECUTED
start_block->prev_size = extend_area_end;
4a6c0: 2082 movel %d2,%a0@ <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
4a6c2: 2649 moveal %a1,%a3 <== NOT EXECUTED
4a6c4: 6006 bras 4a6cc <_Heap_Extend+0xa8> <== NOT EXECUTED
merge_above_block = end_block;
} else if ( sub_area_end < extend_area_begin ) {
4a6c6: b680 cmpl %d0,%d3 <== NOT EXECUTED
4a6c8: 6302 blss 4a6cc <_Heap_Extend+0xa8> <== NOT EXECUTED
4a6ca: 2a49 moveal %a1,%a5 <== NOT EXECUTED
- 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;
4a6cc: 70fe moveq #-2,%d0 <== NOT EXECUTED
4a6ce: c0a9 0004 andl %a1@(4),%d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
4a6d2: 41f1 0800 lea %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED
link_above_block = end_block;
}
start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
} while ( start_block != first_block );
4a6d6: b888 cmpl %a0,%d4 <== NOT EXECUTED
4a6d8: 66ae bnes 4a688 <_Heap_Extend+0x64> <== NOT EXECUTED
if ( extend_area_begin < heap->area_begin ) {
4a6da: b6aa 0018 cmpl %a2@(24),%d3 <== NOT EXECUTED
4a6de: 6406 bccs 4a6e6 <_Heap_Extend+0xc2> <== NOT EXECUTED
heap->area_begin = extend_area_begin;
4a6e0: 2543 0018 movel %d3,%a2@(24) <== NOT EXECUTED
4a6e4: 600a bras 4a6f0 <_Heap_Extend+0xcc> <== NOT EXECUTED
} else if ( heap->area_end < extend_area_end ) {
4a6e6: b4aa 001c cmpl %a2@(28),%d2 <== NOT EXECUTED
4a6ea: 6304 blss 4a6f0 <_Heap_Extend+0xcc> <== NOT EXECUTED
heap->area_end = extend_area_end;
4a6ec: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
4a6f0: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED
heap->area_begin = extend_area_begin;
} else if ( heap->area_end < extend_area_end ) {
heap->area_end = extend_area_end;
}
extend_first_block_size =
4a6f4: 2008 movel %a0,%d0 <== NOT EXECUTED
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
extend_first_block->prev_size = extend_area_end;
extend_first_block->size_and_flag =
extend_first_block_size | HEAP_PREV_BLOCK_USED;
4a6f6: 7801 moveq #1,%d4 <== NOT EXECUTED
} else if ( heap->area_end < extend_area_end ) {
heap->area_end = extend_area_end;
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
4a6f8: 226e fffc moveal %fp@(-4),%a1 <== NOT EXECUTED
heap->area_begin = extend_area_begin;
} else if ( heap->area_end < extend_area_end ) {
heap->area_end = extend_area_end;
}
extend_first_block_size =
4a6fc: 9089 subl %a1,%d0 <== NOT EXECUTED
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
extend_first_block->prev_size = extend_area_end;
extend_first_block->size_and_flag =
extend_first_block_size | HEAP_PREV_BLOCK_USED;
4a6fe: 8880 orl %d0,%d4 <== NOT EXECUTED
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
extend_first_block->prev_size = extend_area_end;
4a700: 2282 movel %d2,%a1@ <== NOT EXECUTED
extend_first_block->size_and_flag =
extend_first_block_size | HEAP_PREV_BLOCK_USED;
4a702: 2344 0004 movel %d4,%a1@(4) <== NOT EXECUTED
_Heap_Protection_block_initialize( heap, extend_first_block );
extend_last_block->prev_size = extend_first_block_size;
4a706: 2080 movel %d0,%a0@ <== NOT EXECUTED
extend_last_block->size_and_flag = 0;
4a708: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
_Heap_Protection_block_initialize( heap, extend_last_block );
if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
4a70c: b3ea 0020 cmpal %a2@(32),%a1 <== NOT EXECUTED
4a710: 6406 bccs 4a718 <_Heap_Extend+0xf4> <== NOT EXECUTED
heap->first_block = extend_first_block;
4a712: 2549 0020 movel %a1,%a2@(32) <== NOT EXECUTED
4a716: 600a bras 4a722 <_Heap_Extend+0xfe> <== NOT EXECUTED
} else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
4a718: b1ea 0024 cmpal %a2@(36),%a0 <== NOT EXECUTED
4a71c: 6304 blss 4a722 <_Heap_Extend+0xfe> <== NOT EXECUTED
heap->last_block = extend_last_block;
4a71e: 2548 0024 movel %a0,%a2@(36) <== NOT EXECUTED
}
if ( merge_below_block != NULL ) {
4a722: 4a8c tstl %a4 <== NOT EXECUTED
4a724: 6732 beqs 4a758 <_Heap_Extend+0x134> <== NOT EXECUTED
Heap_Control *heap,
uintptr_t extend_area_begin,
Heap_Block *first_block
)
{
uintptr_t const page_size = heap->page_size;
4a726: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED
uintptr_t const new_first_block_alloc_begin =
_Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
4a72a: 5083 addql #8,%d3 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
4a72c: 2803 movel %d3,%d4 <== NOT EXECUTED
4a72e: 4c40 4001 remul %d0,%d1,%d4 <== NOT EXECUTED
if ( remainder != 0 ) {
4a732: 4a81 tstl %d1 <== NOT EXECUTED
4a734: 6704 beqs 4a73a <_Heap_Extend+0x116> <== NOT EXECUTED
return value - remainder + alignment;
4a736: d680 addl %d0,%d3 <== NOT EXECUTED
4a738: 9681 subl %d1,%d3 <== NOT EXECUTED
uintptr_t const new_first_block_begin =
4a73a: 2043 moveal %d3,%a0 <== NOT EXECUTED
4a73c: 5188 subql #8,%a0 <== NOT EXECUTED
new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const first_block_begin = (uintptr_t) first_block;
uintptr_t const new_first_block_size =
4a73e: 200c movel %a4,%d0 <== NOT EXECUTED
4a740: 9088 subl %a0,%d0 <== NOT EXECUTED
first_block_begin - new_first_block_begin;
Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
new_first_block->prev_size = first_block->prev_size;
new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
4a742: 7201 moveq #1,%d1 <== NOT EXECUTED
4a744: 8280 orl %d0,%d1 <== NOT EXECUTED
uintptr_t const first_block_begin = (uintptr_t) first_block;
uintptr_t const new_first_block_size =
first_block_begin - new_first_block_begin;
Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
new_first_block->prev_size = first_block->prev_size;
4a746: 2094 movel %a4@,%a0@ <== NOT EXECUTED
new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
4a748: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
_Heap_Free_block( heap, new_first_block );
4a74c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4a74e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a750: 4eba feb6 jsr %pc@(4a608 <_Heap_Free_block>) <== NOT EXECUTED
4a754: 508f addql #8,%sp <== NOT EXECUTED
4a756: 6012 bras 4a76a <_Heap_Extend+0x146> <== NOT EXECUTED
heap->last_block = extend_last_block;
}
if ( merge_below_block != NULL ) {
_Heap_Merge_below( heap, extend_area_begin, merge_below_block );
} else if ( link_below_block != NULL ) {
4a758: 4a81 tstl %d1 <== NOT EXECUTED
4a75a: 670e beqs 4a76a <_Heap_Extend+0x146> <== NOT EXECUTED
_Heap_Link_below(
4a75c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED
{
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const link_begin = (uintptr_t) link;
last_block->size_and_flag =
(link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;
4a760: 7801 moveq #1,%d4 <== NOT EXECUTED
4a762: 9288 subl %a0,%d1 <== NOT EXECUTED
4a764: 8881 orl %d1,%d4 <== NOT EXECUTED
4a766: 2144 0004 movel %d4,%a0@(4) <== NOT EXECUTED
link_below_block,
extend_last_block
);
}
if ( merge_above_block != NULL ) {
4a76a: 4a8b tstl %a3 <== NOT EXECUTED
4a76c: 6734 beqs 4a7a2 <_Heap_Extend+0x17e> <== NOT EXECUTED
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const last_block_new_size = _Heap_Align_down(
extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,
4a76e: 5182 subql #8,%d2 <== NOT EXECUTED
uintptr_t extend_area_end
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const last_block_new_size = _Heap_Align_down(
4a770: 948b subl %a3,%d2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4a772: 2202 movel %d2,%d1 <== NOT EXECUTED
4a774: 4c6a 1000 0010 remul %a2@(16),%d0,%d1 <== NOT EXECUTED
Heap_Block *const new_last_block =
_Heap_Block_at( last_block, last_block_new_size );
new_last_block->size_and_flag =
(last_block->size_and_flag - last_block_new_size)
| HEAP_PREV_BLOCK_USED;
4a77a: 7201 moveq #1,%d1 <== NOT EXECUTED
4a77c: 9480 subl %d0,%d2 <== NOT EXECUTED
);
Heap_Block *const new_last_block =
_Heap_Block_at( last_block, last_block_new_size );
new_last_block->size_and_flag =
(last_block->size_and_flag - last_block_new_size)
4a77e: 202b 0004 movel %a3@(4),%d0 <== NOT EXECUTED
4a782: 9082 subl %d2,%d0 <== NOT EXECUTED
| HEAP_PREV_BLOCK_USED;
4a784: 8280 orl %d0,%d1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
4a786: 7001 moveq #1,%d0 <== NOT EXECUTED
4a788: 2781 2804 movel %d1,%a3@(00000004,%d2:l) <== NOT EXECUTED
4a78c: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED
block->size_and_flag = size | flag;
4a790: 8480 orl %d0,%d2 <== NOT EXECUTED
4a792: 2742 0004 movel %d2,%a3@(4) <== NOT EXECUTED
_Heap_Block_set_size( last_block, last_block_new_size );
_Heap_Free_block( heap, last_block );
4a796: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4a798: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a79a: 4eba fe6c jsr %pc@(4a608 <_Heap_Free_block>) <== NOT EXECUTED
4a79e: 508f addql #8,%sp <== NOT EXECUTED
4a7a0: 6020 bras 4a7c2 <_Heap_Extend+0x19e> <== NOT EXECUTED
);
}
if ( merge_above_block != NULL ) {
_Heap_Merge_above( heap, merge_above_block, extend_area_end );
} else if ( link_above_block != NULL ) {
4a7a2: 4a8d tstl %a5 <== NOT EXECUTED
4a7a4: 671c beqs 4a7c2 <_Heap_Extend+0x19e> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
4a7a6: 7001 moveq #1,%d0 <== NOT EXECUTED
uintptr_t const link_begin = (uintptr_t) link;
uintptr_t const first_block_begin = (uintptr_t) first_block;
_Heap_Block_set_size( link, first_block_begin - link_begin );
last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
4a7a8: 7801 moveq #1,%d4 <== NOT EXECUTED
)
{
uintptr_t const link_begin = (uintptr_t) link;
uintptr_t const first_block_begin = (uintptr_t) first_block;
_Heap_Block_set_size( link, first_block_begin - link_begin );
4a7aa: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
4a7ae: 928d subl %a5,%d1 <== NOT EXECUTED
4a7b0: c0ad 0004 andl %a5@(4),%d0 <== NOT EXECUTED
}
if ( merge_above_block != NULL ) {
_Heap_Merge_above( heap, merge_above_block, extend_area_end );
} else if ( link_above_block != NULL ) {
_Heap_Link_above(
4a7b4: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED
block->size_and_flag = size | flag;
4a7b8: 8280 orl %d0,%d1 <== NOT EXECUTED
4a7ba: 2b41 0004 movel %d1,%a5@(4) <== NOT EXECUTED
uintptr_t const link_begin = (uintptr_t) link;
uintptr_t const first_block_begin = (uintptr_t) first_block;
_Heap_Block_set_size( link, first_block_begin - link_begin );
last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
4a7be: 89a8 0004 orl %d4,%a0@(4) <== NOT EXECUTED
extend_first_block,
extend_last_block
);
}
if ( merge_below_block == NULL && merge_above_block == NULL ) {
4a7c2: 4a8c tstl %a4 <== NOT EXECUTED
4a7c4: 6610 bnes 4a7d6 <_Heap_Extend+0x1b2> <== NOT EXECUTED
4a7c6: 4a8b tstl %a3 <== NOT EXECUTED
4a7c8: 660c bnes 4a7d6 <_Heap_Extend+0x1b2> <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
4a7ca: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
4a7ce: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a7d0: 4eba fe36 jsr %pc@(4a608 <_Heap_Free_block>) <== NOT EXECUTED
4a7d4: 508f addql #8,%sp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{
_Heap_Block_set_size(
heap->last_block,
(uintptr_t) heap->first_block - (uintptr_t) heap->last_block
4a7d6: 206a 0024 moveal %a2@(36),%a0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
4a7da: 7001 moveq #1,%d0 <== NOT EXECUTED
* This feature will be used to terminate the scattered heap area list. See
* also _Heap_Extend().
*/
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{
_Heap_Block_set_size(
4a7dc: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED
4a7e0: 9288 subl %a0,%d1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
4a7e2: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
block->size_and_flag = size | flag;
4a7e6: 8280 orl %d0,%d1 <== NOT EXECUTED
}
_Heap_Set_last_block_size( heap );
extended_size = stats->free_size - free_size;
4a7e8: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED
4a7ec: 90ae fff4 subl %fp@(-12),%d0 <== NOT EXECUTED
4a7f0: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
4a7f4: d1aa 002c addl %d0,%a2@(44) <== NOT EXECUTED
if ( extended_size_ptr != NULL )
4a7f8: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED
4a7fc: 670c beqs 4a80a <_Heap_Extend+0x1e6> <== NOT EXECUTED
*extended_size_ptr = extended_size;
4a7fe: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED
4a802: 2080 movel %d0,%a0@ <== NOT EXECUTED
4a804: 6004 bras 4a80a <_Heap_Extend+0x1e6> <== NOT EXECUTED
_Heap_Block_of_alloc_area( sub_area_end, page_size );
if (
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
) {
return false;
4a806: 4200 clrb %d0 <== NOT EXECUTED
4a808: 6002 bras 4a80c <_Heap_Extend+0x1e8> <== NOT EXECUTED
stats->size += extended_size;
if ( extended_size_ptr != NULL )
*extended_size_ptr = extended_size;
return true;
4a80a: 7001 moveq #1,%d0 <== NOT EXECUTED
}
4a80c: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED
4a812: 4e5e unlk %fp <== NOT EXECUTED
...
0004a328 <_Heap_Free>:
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
4a328: 4e56 ffe8 linkw %fp,#-24
4a32c: 202e 000c movel %fp@(12),%d0
4a330: 2240 moveal %d0,%a1
4a332: 5189 subql #8,%a1
4a334: 206e 0008 moveal %fp@(8),%a0
4a338: 4c68 0001 0010 remul %a0@(16),%d1,%d0
4a33e: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
4a342: 2828 0020 movel %a0@(32),%d4
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
4a346: 93c1 subal %d1,%a1
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
4a348: b889 cmpl %a1,%d4
4a34a: 620c bhis 4a358 <_Heap_Free+0x30> <== NEVER TAKEN
4a34c: b3e8 0024 cmpal %a0@(36),%a1
4a350: 53c0 sls %d0
4a352: 49c0 extbl %d0
4a354: 4480 negl %d0
4a356: 6002 bras 4a35a <_Heap_Free+0x32>
4a358: 4280 clrl %d0 <== NOT EXECUTED
uintptr_t next_block_size = 0;
bool next_is_free = false;
_Heap_Protection_block_check( heap, block );
if ( !_Heap_Is_block_in_heap( heap, block ) ) {
4a35a: 4a00 tstb %d0
4a35c: 6700 012c beqw 4a48a <_Heap_Free+0x162>
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
4a360: 2629 0004 movel %a1@(4),%d3
- 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;
4a364: 70fe moveq #-2,%d0
4a366: c083 andl %d3,%d0
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
4a368: 45f1 0800 lea %a1@(00000000,%d0:l),%a2
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
4a36c: b88a cmpl %a2,%d4
4a36e: 620c bhis 4a37c <_Heap_Free+0x54> <== NEVER TAKEN
4a370: b5e8 0024 cmpal %a0@(36),%a2
4a374: 53c1 sls %d1
4a376: 49c1 extbl %d1
4a378: 4481 negl %d1
4a37a: 6002 bras 4a37e <_Heap_Free+0x56>
4a37c: 4281 clrl %d1 <== NOT EXECUTED
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
_Heap_Protection_block_check( heap, next_block );
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
4a37e: 4a01 tstb %d1
4a380: 6700 0108 beqw 4a48a <_Heap_Free+0x162>
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
4a384: 242a 0004 movel %a2@(4),%d2
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
4a388: 0802 0000 btst #0,%d2
4a38c: 6700 00fc beqw 4a48a <_Heap_Free+0x162>
- 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;
4a390: 72fe moveq #-2,%d1
if ( !_Heap_Protection_determine_block_free( heap, block ) ) {
return true;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
4a392: 2668 0024 moveal %a0@(36),%a3
4a396: c481 andl %d1,%d2
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
4a398: b7ca cmpal %a2,%a3
4a39a: 670c beqs 4a3a8 <_Heap_Free+0x80> <== NEVER TAKEN
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;
4a39c: 7201 moveq #1,%d1
4a39e: c2b2 2804 andl %a2@(00000004,%d2:l),%d1
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
4a3a2: 5381 subql #1,%d1
4a3a4: 4481 negl %d1
4a3a6: 6002 bras 4a3aa <_Heap_Free+0x82>
return true;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
4a3a8: 4281 clrl %d1 <== NOT EXECUTED
if ( !_Heap_Protection_determine_block_free( heap, block ) ) {
return true;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
4a3aa: 1a01 moveb %d1,%d5
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
4a3ac: 0803 0000 btst #0,%d3
4a3b0: 6662 bnes 4a414 <_Heap_Free+0xec>
uintptr_t const prev_size = block->prev_size;
4a3b2: 2611 movel %a1@,%d3
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
4a3b4: 93c3 subal %d3,%a1
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
4a3b6: b889 cmpl %a1,%d4
4a3b8: 620a bhis 4a3c4 <_Heap_Free+0x9c> <== NEVER TAKEN
4a3ba: b3cb cmpal %a3,%a1
4a3bc: 53c1 sls %d1
4a3be: 49c1 extbl %d1
4a3c0: 4481 negl %d1
4a3c2: 6002 bras 4a3c6 <_Heap_Free+0x9e>
4a3c4: 4281 clrl %d1 <== NOT EXECUTED
Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {
4a3c6: 4a01 tstb %d1
4a3c8: 6700 00c0 beqw 4a48a <_Heap_Free+0x162>
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;
4a3cc: 7201 moveq #1,%d1
4a3ce: c2a9 0004 andl %a1@(4),%d1
return( false );
}
/* As we always coalesce free blocks, the block that preceedes prev_block
must have been used. */
if ( !_Heap_Is_prev_used ( prev_block) ) {
4a3d2: 6700 00b6 beqw 4a48a <_Heap_Free+0x162>
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
4a3d6: 4a05 tstb %d5
4a3d8: 6726 beqs 4a400 <_Heap_Free+0xd8> <== ALWAYS TAKEN
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
4a3da: 266a 0008 moveal %a2@(8),%a3 <== NOT EXECUTED
uintptr_t const size = block_size + prev_size + next_block_size;
4a3de: d480 addl %d0,%d2 <== NOT EXECUTED
4a3e0: d682 addl %d2,%d3 <== NOT EXECUTED
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a3e2: 7401 moveq #1,%d2 <== NOT EXECUTED
Heap_Block *prev = block->prev;
4a3e4: 246a 000c moveal %a2@(12),%a2 <== NOT EXECUTED
prev->next = next;
4a3e8: 254b 0008 movel %a3,%a2@(8) <== NOT EXECUTED
4a3ec: 8483 orl %d3,%d2 <== NOT EXECUTED
next->prev = prev;
4a3ee: 274a 000c movel %a2,%a3@(12) <== NOT EXECUTED
}
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
4a3f2: 53a8 0038 subql #1,%a0@(56) <== NOT EXECUTED
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
4a3f6: 2383 3800 movel %d3,%a1@(00000000,%d3:l) <== NOT EXECUTED
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a3fa: 2342 0004 movel %d2,%a1@(4) <== NOT EXECUTED
4a3fe: 607a bras 4a47a <_Heap_Free+0x152> <== NOT EXECUTED
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
4a400: d680 addl %d0,%d3
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a402: 7201 moveq #1,%d1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4a404: 74fe moveq #-2,%d2
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a406: 8283 orl %d3,%d1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = size;
4a408: 2483 movel %d3,%a2@
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a40a: 2341 0004 movel %d1,%a1@(4)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4a40e: c5aa 0004 andl %d2,%a2@(4)
4a412: 6066 bras 4a47a <_Heap_Free+0x152>
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
4a414: 4a01 tstb %d1
4a416: 672a beqs 4a442 <_Heap_Free+0x11a>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
4a418: 266a 0008 moveal %a2@(8),%a3
uintptr_t const size = block_size + next_block_size;
4a41c: 2202 movel %d2,%d1
4a41e: d280 addl %d0,%d1
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a420: 7401 moveq #1,%d2
Heap_Block *prev = old_block->prev;
4a422: 246a 000c moveal %a2@(12),%a2
new_block->next = next;
4a426: 234b 0008 movel %a3,%a1@(8)
4a42a: 8481 orl %d1,%d2
new_block->prev = prev;
4a42c: 234a 000c movel %a2,%a1@(12)
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
4a430: 2381 1800 movel %d1,%a1@(00000000,%d1:l)
next->prev = new_block;
4a434: 2749 000c movel %a1,%a3@(12)
prev->next = new_block;
4a438: 2549 0008 movel %a1,%a2@(8)
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
uintptr_t const size = block_size + next_block_size;
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4a43c: 2342 0004 movel %d2,%a1@(4)
4a440: 6038 bras 4a47a <_Heap_Free+0x152>
next_block->prev_size = size;
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
4a442: 7201 moveq #1,%d1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4a444: 74fe moveq #-2,%d2
next_block->prev_size = size;
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
4a446: 8280 orl %d0,%d1
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
4a448: 2668 0008 moveal %a0@(8),%a3
new_block->next = next;
new_block->prev = block_before;
4a44c: 2348 000c movel %a0,%a1@(12)
4a450: 2341 0004 movel %d1,%a1@(4)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
4a454: 2228 0038 movel %a0@(56),%d1
4a458: 5281 addql #1,%d1
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
4a45a: 234b 0008 movel %a3,%a1@(8)
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4a45e: c5aa 0004 andl %d2,%a2@(4)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
4a462: 2749 000c movel %a1,%a3@(12)
next_block->prev_size = block_size;
4a466: 2480 movel %d0,%a2@
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
4a468: 2149 0008 movel %a1,%a0@(8)
/* Statistics */
++stats->free_blocks;
4a46c: 2141 0038 movel %d1,%a0@(56)
if ( stats->max_free_blocks < stats->free_blocks ) {
4a470: b2a8 003c cmpl %a0@(60),%d1
4a474: 6304 blss 4a47a <_Heap_Free+0x152> <== NEVER TAKEN
stats->max_free_blocks = stats->free_blocks;
4a476: 2141 003c movel %d1,%a0@(60)
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
4a47a: d1a8 0030 addl %d0,%a0@(48)
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
4a47e: 53a8 0040 subql #1,%a0@(64)
++stats->frees;
4a482: 52a8 0050 addql #1,%a0@(80)
stats->free_size += block_size;
return( true );
4a486: 7001 moveq #1,%d0
4a488: 6002 bras 4a48c <_Heap_Free+0x164>
/* As we always coalesce free blocks, the block that preceedes prev_block
must have been used. */
if ( !_Heap_Is_prev_used ( prev_block) ) {
_HAssert( false );
return( false );
4a48a: 4200 clrb %d0 <== NOT EXECUTED
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
4a48c: 4cd7 0c3c moveml %sp@,%d2-%d5/%a2-%a3
4a490: 4e5e unlk %fp <== NOT EXECUTED
0004a608 <_Heap_Free_block>:
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block )
{
4a608: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a60c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
Heap_Statistics *const stats = &heap->stats;
/* Statistics */
++stats->used_blocks;
4a610: 52a8 0040 addql #1,%a0@(64) <== NOT EXECUTED
--stats->frees;
4a614: 53a8 0050 subql #1,%a0@(80) <== NOT EXECUTED
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ));
4a618: 50ae 000c addql #8,%fp@(12) <== NOT EXECUTED
}
4a61c: 4e5e unlk %fp <== NOT EXECUTED
/* Statistics */
++stats->used_blocks;
--stats->frees;
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ));
4a61e: 4ef9 0004 a818 jmp 4a818 <_Heap_Free> <== NOT EXECUTED
00046512 <_Heap_Get_first_and_last_block>:
uintptr_t page_size,
uintptr_t min_block_size,
Heap_Block **first_block_ptr,
Heap_Block **last_block_ptr
)
{
46512: 4e56 fff4 linkw %fp,#-12
46516: 206e 0008 moveal %fp@(8),%a0
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
uintptr_t const alloc_area_begin =
_Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
4651a: 2008 movel %a0,%d0
4651c: 5080 addql #8,%d0
uintptr_t page_size,
uintptr_t min_block_size,
Heap_Block **first_block_ptr,
Heap_Block **last_block_ptr
)
{
4651e: 48d7 001c moveml %d2-%d4,%sp@
46522: 222e 0010 movel %fp@(16),%d1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
46526: 2800 movel %d0,%d4
46528: 242e 000c movel %fp@(12),%d2
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
4652c: 43f0 2800 lea %a0@(00000000,%d2:l),%a1
46530: 4c41 4003 remul %d1,%d3,%d4
if ( remainder != 0 ) {
46534: 4a83 tstl %d3
46536: 6704 beqs 4653c <_Heap_Get_first_and_last_block+0x2a><== ALWAYS TAKEN
return value - remainder + alignment;
46538: d081 addl %d1,%d0 <== NOT EXECUTED
4653a: 9083 subl %d3,%d0 <== NOT EXECUTED
_Heap_Align_down( heap_area_size - overhead, page_size );
Heap_Block *const first_block = (Heap_Block *) first_block_begin;
Heap_Block *const last_block =
_Heap_Block_at( first_block, first_block_size );
if (
4653c: b1c9 cmpal %a1,%a0
4653e: 622e bhis 4656e <_Heap_Get_first_and_last_block+0x5c><== NEVER TAKEN
uintptr_t const alloc_area_begin =
_Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
uintptr_t const first_block_begin =
alloc_area_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const overhead =
HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin);
46540: 2240 moveal %d0,%a1
46542: 5189 subql #8,%a1
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
uintptr_t const alloc_area_begin =
_Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
uintptr_t const first_block_begin =
alloc_area_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const overhead =
46544: 9088 subl %a0,%d0
Heap_Block *const last_block =
_Heap_Block_at( first_block, first_block_size );
if (
heap_area_end < heap_area_begin
|| heap_area_size <= overhead
46546: b082 cmpl %d2,%d0
46548: 6424 bccs 4656e <_Heap_Get_first_and_last_block+0x5c>
uintptr_t const first_block_begin =
alloc_area_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const overhead =
HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin);
uintptr_t const first_block_size =
_Heap_Align_down( heap_area_size - overhead, page_size );
4654a: 9480 subl %d0,%d2
4654c: 2002 movel %d2,%d0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4654e: 2602 movel %d2,%d3
46550: 4c41 3002 remul %d1,%d2,%d3
46554: 9082 subl %d2,%d0
_Heap_Block_at( first_block, first_block_size );
if (
heap_area_end < heap_area_begin
|| heap_area_size <= overhead
|| first_block_size < min_block_size
46556: b0ae 0014 cmpl %fp@(20),%d0
4655a: 6512 bcss 4656e <_Heap_Get_first_and_last_block+0x5c><== NEVER TAKEN
) {
/* Invalid area or area too small */
return false;
}
*first_block_ptr = first_block;
4655c: 206e 0018 moveal %fp@(24),%a0
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
46560: d089 addl %a1,%d0
46562: 2089 movel %a1,%a0@
46564: 206e 001c moveal %fp@(28),%a0
46568: 2080 movel %d0,%a0@
*last_block_ptr = last_block;
return true;
4656a: 7001 moveq #1,%d0
4656c: 6002 bras 46570 <_Heap_Get_first_and_last_block+0x5e>
heap_area_end < heap_area_begin
|| heap_area_size <= overhead
|| first_block_size < min_block_size
) {
/* Invalid area or area too small */
return false;
4656e: 4200 clrb %d0
*first_block_ptr = first_block;
*last_block_ptr = last_block;
return true;
}
46570: 4cd7 001c moveml %sp@,%d2-%d4
46574: 4e5e unlk %fp <== NOT EXECUTED
0004e8c8 <_Heap_Get_free_information>:
void _Heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
4e8c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4e8cc: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
4e8d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4e8d2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Heap_Block *the_block;
Heap_Block *const tail = _Heap_Free_list_tail(the_heap);
info->number = 0;
4e8d6: 4290 clrl %a0@ <== NOT EXECUTED
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
4e8d8: 226a 0008 moveal %a2@(8),%a1 <== NOT EXECUTED
{
Heap_Block *the_block;
Heap_Block *const tail = _Heap_Free_list_tail(the_heap);
info->number = 0;
info->largest = 0;
4e8dc: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
info->total = 0;
4e8e0: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
for(the_block = _Heap_Free_list_first(the_heap);
4e8e4: 601a bras 4e900 <_Heap_Get_free_information+0x38><== NOT EXECUTED
- 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;
4e8e6: 70fe moveq #-2,%d0 <== NOT EXECUTED
4e8e8: c0a9 0004 andl %a1@(4),%d0 <== NOT EXECUTED
uint32_t const the_size = _Heap_Block_size(the_block);
/* As we always coalesce free blocks, prev block must have been used. */
_HAssert(_Heap_Is_prev_used(the_block));
info->number++;
4e8ec: 5290 addql #1,%a0@ <== NOT EXECUTED
info->total += the_size;
4e8ee: d1a8 0008 addl %d0,%a0@(8) <== NOT EXECUTED
if ( info->largest < the_size )
4e8f2: b0a8 0004 cmpl %a0@(4),%d0 <== NOT EXECUTED
4e8f6: 6304 blss 4e8fc <_Heap_Get_free_information+0x34><== NOT EXECUTED
info->largest = the_size;
4e8f8: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
the_block != tail;
the_block = the_block->next)
4e8fc: 2269 0008 moveal %a1@(8),%a1 <== NOT EXECUTED
info->number = 0;
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
4e900: b5c9 cmpal %a1,%a2 <== NOT EXECUTED
4e902: 66e2 bnes 4e8e6 <_Heap_Get_free_information+0x1e><== NOT EXECUTED
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
4e904: 245f moveal %sp@+,%a2 <== NOT EXECUTED
4e906: 4e5e unlk %fp <== NOT EXECUTED
...
00046578 <_Heap_Initialize>:
Heap_Control *heap,
void *heap_area_begin_ptr,
uintptr_t heap_area_size,
uintptr_t page_size
)
{
46578: 4e56 ffe4 linkw %fp,#-28
4657c: 48d7 043c moveml %d2-%d5/%a2,%sp@
46580: 246e 0008 moveal %fp@(8),%a2
46584: 282e 000c movel %fp@(12),%d4
46588: 2a2e 0010 movel %fp@(16),%d5
4658c: 242e 0014 movel %fp@(20),%d2
uintptr_t first_block_begin = 0;
uintptr_t first_block_size = 0;
uintptr_t last_block_begin = 0;
uintptr_t min_block_size = 0;
bool area_ok = false;
Heap_Block *first_block = NULL;
46590: 42ae fffc clrl %fp@(-4)
Heap_Block *last_block = NULL;
46594: 42ae fff8 clrl %fp@(-8)
if ( page_size == 0 ) {
46598: 4a82 tstl %d2
4659a: 6714 beqs 465b0 <_Heap_Initialize+0x38> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
4659c: 7003 moveq #3,%d0
4659e: c082 andl %d2,%d0
if ( remainder != 0 ) {
465a0: 6704 beqs 465a6 <_Heap_Initialize+0x2e> <== ALWAYS TAKEN
return value - remainder + alignment;
465a2: 5882 addql #4,%d2 <== NOT EXECUTED
465a4: 9480 subl %d0,%d2 <== NOT EXECUTED
page_size = CPU_ALIGNMENT;
} else {
page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT );
if ( page_size < CPU_ALIGNMENT ) {
465a6: 7003 moveq #3,%d0
465a8: b082 cmpl %d2,%d0
465aa: 6506 bcss 465b2 <_Heap_Initialize+0x3a> <== ALWAYS TAKEN
465ac: 6000 00c0 braw 4666e <_Heap_Initialize+0xf6> <== NOT EXECUTED
bool area_ok = false;
Heap_Block *first_block = NULL;
Heap_Block *last_block = NULL;
if ( page_size == 0 ) {
page_size = CPU_ALIGNMENT;
465b0: 7404 moveq #4,%d2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
465b2: 7210 moveq #16,%d1
465b4: 4c42 1000 remul %d2,%d0,%d1
if ( remainder != 0 ) {
465b8: 4a80 tstl %d0
465ba: 670c beqs 465c8 <_Heap_Initialize+0x50> <== ALWAYS TAKEN
return value - remainder + alignment;
465bc: 2602 movel %d2,%d3 <== NOT EXECUTED
465be: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED
465c4: 9680 subl %d0,%d3 <== NOT EXECUTED
465c6: 6002 bras 465ca <_Heap_Initialize+0x52> <== NOT EXECUTED
} else {
return value;
465c8: 7610 moveq #16,%d3
return 0;
}
}
min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size );
area_ok = _Heap_Get_first_and_last_block(
465ca: 486e fff8 pea %fp@(-8)
465ce: 486e fffc pea %fp@(-4)
465d2: 2f03 movel %d3,%sp@-
465d4: 2f02 movel %d2,%sp@-
465d6: 2f05 movel %d5,%sp@-
465d8: 2f04 movel %d4,%sp@-
465da: 4eb9 0004 6512 jsr 46512 <_Heap_Get_first_and_last_block>
page_size,
min_block_size,
&first_block,
&last_block
);
if ( !area_ok ) {
465e0: 4fef 0018 lea %sp@(24),%sp
465e4: 4a00 tstb %d0
465e6: 6700 0086 beqw 4666e <_Heap_Initialize+0xf6>
return 0;
}
memset(heap, 0, sizeof(*heap));
465ea: 4878 0058 pea 58 <DBL_MANT_DIG+0x23>
uintptr_t page_size
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr;
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
465ee: da84 addl %d4,%d5
);
if ( !area_ok ) {
return 0;
}
memset(heap, 0, sizeof(*heap));
465f0: 42a7 clrl %sp@-
465f2: 2f0a movel %a2,%sp@-
465f4: 4eb9 0004 c46c jsr 4c46c <memset>
heap->Protection.block_check = _Heap_Protection_block_check_default;
heap->Protection.block_error = _Heap_Protection_block_error_default;
#endif
first_block_begin = (uintptr_t) first_block;
last_block_begin = (uintptr_t) last_block;
465fa: 226e fff8 moveal %fp@(-8),%a1
first_block_size = last_block_begin - first_block_begin;
465fe: 2009 movel %a1,%d0
/* First block */
first_block->prev_size = heap_area_end;
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
46600: 7201 moveq #1,%d1
);
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
46602: 4fef 000c lea %sp@(12),%sp
heap->Protection.block_initialize = _Heap_Protection_block_initialize_default;
heap->Protection.block_check = _Heap_Protection_block_check_default;
heap->Protection.block_error = _Heap_Protection_block_error_default;
#endif
first_block_begin = (uintptr_t) first_block;
46606: 206e fffc moveal %fp@(-4),%a0
last_block_begin = (uintptr_t) last_block;
first_block_size = last_block_begin - first_block_begin;
4660a: 9088 subl %a0,%d0
/* First block */
first_block->prev_size = heap_area_end;
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
4660c: 8280 orl %d0,%d1
first_block_begin = (uintptr_t) first_block;
last_block_begin = (uintptr_t) last_block;
first_block_size = last_block_begin - first_block_begin;
/* First block */
first_block->prev_size = heap_area_end;
4660e: 2085 movel %d5,%a0@
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
46610: 2141 0004 movel %d1,%a0@(4)
/* Statistics */
stats->size = first_block_size;
stats->free_size = first_block_size;
stats->min_free_size = first_block_size;
stats->free_blocks = 1;
46614: 7201 moveq #1,%d1
first_block_size = last_block_begin - first_block_begin;
/* First block */
first_block->prev_size = heap_area_end;
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
first_block->next = _Heap_Free_list_tail( heap );
46616: 214a 0008 movel %a2,%a0@(8)
first_block->prev = _Heap_Free_list_head( heap );
4661a: 214a 000c movel %a2,%a0@(12)
heap->min_block_size = min_block_size;
heap->area_begin = heap_area_begin;
heap->area_end = heap_area_end;
heap->first_block = first_block;
heap->last_block = last_block;
_Heap_Free_list_head( heap )->next = first_block;
4661e: 2548 0008 movel %a0,%a2@(8)
/* Heap control */
heap->page_size = page_size;
heap->min_block_size = min_block_size;
heap->area_begin = heap_area_begin;
heap->area_end = heap_area_end;
heap->first_block = first_block;
46622: 2548 0020 movel %a0,%a2@(32)
first_block->next = _Heap_Free_list_tail( heap );
first_block->prev = _Heap_Free_list_head( heap );
_Heap_Protection_block_initialize( heap, first_block );
/* Heap control */
heap->page_size = page_size;
46626: 2542 0010 movel %d2,%a2@(16)
heap->min_block_size = min_block_size;
4662a: 2543 0014 movel %d3,%a2@(20)
heap->area_begin = heap_area_begin;
4662e: 2544 0018 movel %d4,%a2@(24)
heap->area_end = heap_area_end;
46632: 2545 001c movel %d5,%a2@(28)
heap->first_block = first_block;
heap->last_block = last_block;
46636: 2549 0024 movel %a1,%a2@(36)
_Heap_Free_list_head( heap )->next = first_block;
_Heap_Free_list_tail( heap )->prev = first_block;
4663a: 2548 000c movel %a0,%a2@(12)
* This feature will be used to terminate the scattered heap area list. See
* also _Heap_Extend().
*/
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{
_Heap_Block_set_size(
4663e: 91c9 subal %a1,%a0
/* Last block */
last_block->prev_size = first_block_size;
46640: 2280 movel %d0,%a1@
46642: 2348 0004 movel %a0,%a1@(4)
/* Statistics */
stats->size = first_block_size;
stats->free_size = first_block_size;
stats->min_free_size = first_block_size;
stats->free_blocks = 1;
46646: 2541 0038 movel %d1,%a2@(56)
stats->max_free_blocks = 1;
4664a: 2541 003c movel %d1,%a2@(60)
stats->instance = instance++;
4664e: 2239 0005 be70 movel 5be70 <instance>,%d1
46654: 2541 0028 movel %d1,%a2@(40)
46658: 5281 addql #1,%d1
last_block->size_and_flag = 0;
_Heap_Set_last_block_size( heap );
_Heap_Protection_block_initialize( heap, last_block );
/* Statistics */
stats->size = first_block_size;
4665a: 2540 002c movel %d0,%a2@(44)
stats->free_size = first_block_size;
4665e: 2540 0030 movel %d0,%a2@(48)
stats->min_free_size = first_block_size;
46662: 2540 0034 movel %d0,%a2@(52)
stats->free_blocks = 1;
stats->max_free_blocks = 1;
stats->instance = instance++;
46666: 23c1 0005 be70 movel %d1,5be70 <instance>
);
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
4666c: 6002 bras 46670 <_Heap_Initialize+0xf8>
min_block_size,
&first_block,
&last_block
);
if ( !area_ok ) {
return 0;
4666e: 4280 clrl %d0
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
}
46670: 4cee 043c ffe4 moveml %fp@(-28),%d2-%d5/%a2
46676: 4e5e unlk %fp <== NOT EXECUTED
00059310 <_Heap_Resize_block>:
void *alloc_begin_ptr,
uintptr_t new_alloc_size,
uintptr_t *old_size,
uintptr_t *new_size
)
{
59310: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
59314: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED
59318: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
5931c: 2202 movel %d2,%d1 <== NOT EXECUTED
5931e: 2042 moveal %d2,%a0 <== NOT EXECUTED
59320: 5188 subql #8,%a0 <== NOT EXECUTED
59322: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
59326: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
5932a: 286e 0014 moveal %fp@(20),%a4 <== NOT EXECUTED
5932e: 266e 0018 moveal %fp@(24),%a3 <== NOT EXECUTED
59332: 4c6a 1000 0010 remul %a2@(16),%d0,%d1 <== NOT EXECUTED
uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;
Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
*old_size = 0;
59338: 4294 clrl %a4@ <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
5933a: 91c0 subal %d0,%a0 <== NOT EXECUTED
*new_size = 0;
5933c: 4293 clrl %a3@ <== NOT EXECUTED
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
5933e: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED
59342: 6500 0096 bcsw 593da <_Heap_Resize_block+0xca> <== NOT EXECUTED
59346: b1ea 0024 cmpal %a2@(36),%a0 <== NOT EXECUTED
5934a: 6200 008e bhiw 593da <_Heap_Resize_block+0xca> <== NOT EXECUTED
- 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;
5934e: 70fe moveq #-2,%d0 <== NOT EXECUTED
59350: 72fe moveq #-2,%d1 <== NOT EXECUTED
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;
59352: 7a01 moveq #1,%d5 <== NOT EXECUTED
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t block_size = _Heap_Block_size( block );
uintptr_t block_end = block_begin + block_size;
uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;
59354: 7604 moveq #4,%d3 <== NOT EXECUTED
59356: 9682 subl %d2,%d3 <== NOT EXECUTED
- 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;
59358: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t block_size = _Heap_Block_size( block );
uintptr_t block_end = block_begin + block_size;
5935c: 43f0 0800 lea %a0@(00000000,%d0:l),%a1 <== NOT EXECUTED
uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;
59360: d689 addl %a1,%d3 <== NOT EXECUTED
59362: c2a9 0004 andl %a1@(4),%d1 <== NOT EXECUTED
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;
59366: cab1 1804 andl %a1@(00000004,%d1:l),%d5 <== NOT EXECUTED
bool next_block_is_free = _Heap_Is_free( next_block );;
_HAssert( _Heap_Is_block_in_heap( heap, next_block ) );
_HAssert( _Heap_Is_prev_used( next_block ) );
*old_size = alloc_size;
5936a: 2883 movel %d3,%a4@ <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(
const Heap_Block *block
)
{
return !_Heap_Is_used( block );
5936c: 4a85 tstl %d5 <== NOT EXECUTED
5936e: 57c5 seq %d5 <== NOT EXECUTED
59370: 4485 negl %d5 <== NOT EXECUTED
if ( next_block_is_free ) {
59372: 4a05 tstb %d5 <== NOT EXECUTED
59374: 6704 beqs 5937a <_Heap_Resize_block+0x6a> <== NOT EXECUTED
block_size += next_block_size;
59376: d081 addl %d1,%d0 <== NOT EXECUTED
alloc_size += next_block_size;
59378: d681 addl %d1,%d3 <== NOT EXECUTED
}
if ( new_alloc_size > alloc_size ) {
5937a: b684 cmpl %d4,%d3 <== NOT EXECUTED
5937c: 6558 bcss 593d6 <_Heap_Resize_block+0xc6> <== NOT EXECUTED
return HEAP_RESIZE_UNSATISFIED;
}
if ( next_block_is_free ) {
5937e: 4a05 tstb %d5 <== NOT EXECUTED
59380: 672a beqs 593ac <_Heap_Resize_block+0x9c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
59382: 7601 moveq #1,%d3 <== NOT EXECUTED
59384: c6a8 0004 andl %a0@(4),%d3 <== NOT EXECUTED
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
59388: 2869 0008 moveal %a1@(8),%a4 <== NOT EXECUTED
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
5938c: 8680 orl %d0,%d3 <== NOT EXECUTED
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
5938e: 2269 000c moveal %a1@(12),%a1 <== NOT EXECUTED
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
59392: 2143 0004 movel %d3,%a0@(4) <== NOT EXECUTED
_Heap_Block_set_size( block, block_size );
_Heap_Free_list_remove( next_block );
next_block = _Heap_Block_at( block, block_size );
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
59396: 7601 moveq #1,%d3 <== NOT EXECUTED
59398: 87b0 0804 orl %d3,%a0@(00000004,%d0:l) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
prev->next = next;
5939c: 234c 0008 movel %a4,%a1@(8) <== NOT EXECUTED
next->prev = prev;
593a0: 2949 000c movel %a1,%a4@(12) <== NOT EXECUTED
/* Statistics */
--stats->free_blocks;
593a4: 53aa 0038 subql #1,%a2@(56) <== NOT EXECUTED
stats->free_size -= next_block_size;
593a8: 93aa 0030 subl %d1,%a2@(48) <== NOT EXECUTED
}
block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
593ac: 2f04 movel %d4,%sp@- <== NOT EXECUTED
593ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED
593b0: 2f08 movel %a0,%sp@- <== NOT EXECUTED
593b2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
593b4: 4eb9 0004 667a jsr 4667a <_Heap_Block_allocate> <== NOT EXECUTED
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
*new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS;
/* Statistics */
++stats->resizes;
593ba: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
- 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;
593be: 72fe moveq #-2,%d1 <== NOT EXECUTED
593c0: 2040 moveal %d0,%a0 <== NOT EXECUTED
return HEAP_RESIZE_SUCCESSFUL;
593c2: 4280 clrl %d0 <== NOT EXECUTED
593c4: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED
block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
*new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS;
593c8: 91c2 subal %d2,%a0 <== NOT EXECUTED
593ca: 41f0 1804 lea %a0@(00000004,%d1:l),%a0 <== NOT EXECUTED
593ce: 2688 movel %a0,%a3@ <== NOT EXECUTED
/* Statistics */
++stats->resizes;
593d0: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED
593d4: 6006 bras 593dc <_Heap_Resize_block+0xcc> <== NOT EXECUTED
block_size += next_block_size;
alloc_size += next_block_size;
}
if ( new_alloc_size > alloc_size ) {
return HEAP_RESIZE_UNSATISFIED;
593d6: 7001 moveq #1,%d0 <== NOT EXECUTED
*new_size = 0;
_Heap_Protection_block_check( heap, block );
if ( _Heap_Is_block_in_heap( heap, block ) ) {
return _Heap_Resize_block_checked(
593d8: 6002 bras 593dc <_Heap_Resize_block+0xcc> <== NOT EXECUTED
new_alloc_size,
old_size,
new_size
);
} else {
return HEAP_RESIZE_FATAL_ERROR;
593da: 7002 moveq #2,%d0 <== NOT EXECUTED
}
}
593dc: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED
593e2: 4e5e unlk %fp <== NOT EXECUTED
...
000593e8 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
593e8: 4e56 0000 linkw %fp,#0
593ec: 202e 000c movel %fp@(12),%d0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
593f0: 2040 moveal %d0,%a0
593f2: 5188 subql #8,%a0
593f4: 226e 0008 moveal %fp@(8),%a1
593f8: 2f02 movel %d2,%sp@-
593fa: 2400 movel %d0,%d2
593fc: 4c69 2001 0010 remul %a1@(16),%d1,%d2
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
59402: 2429 0020 movel %a1@(32),%d2
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
59406: 91c1 subal %d1,%a0
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
59408: b488 cmpl %a0,%d2
5940a: 620c bhis 59418 <_Heap_Size_of_alloc_area+0x30> <== NEVER TAKEN
5940c: b1e9 0024 cmpal %a1@(36),%a0
59410: 53c1 sls %d1
59412: 49c1 extbl %d1
59414: 4481 negl %d1
59416: 6002 bras 5941a <_Heap_Size_of_alloc_area+0x32>
59418: 4281 clrl %d1 <== NOT EXECUTED
uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;
Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
Heap_Block *next_block = NULL;
uintptr_t block_size = 0;
if ( !_Heap_Is_block_in_heap( heap, block ) ) {
5941a: 4a01 tstb %d1
5941c: 6738 beqs 59456 <_Heap_Size_of_alloc_area+0x6e> <== NEVER TAKEN
- 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;
5941e: 72fe moveq #-2,%d1
59420: c2a8 0004 andl %a0@(4),%d1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
59424: d1c1 addal %d1,%a0
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
59426: b488 cmpl %a0,%d2
59428: 620c bhis 59436 <_Heap_Size_of_alloc_area+0x4e> <== NEVER TAKEN
5942a: b1e9 0024 cmpal %a1@(36),%a0
5942e: 53c1 sls %d1
59430: 49c1 extbl %d1
59432: 4481 negl %d1
59434: 6002 bras 59438 <_Heap_Size_of_alloc_area+0x50>
59436: 4281 clrl %d1 <== NOT EXECUTED
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
59438: 4a01 tstb %d1
5943a: 671a beqs 59456 <_Heap_Size_of_alloc_area+0x6e> <== NEVER TAKEN
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;
5943c: 7201 moveq #1,%d1
5943e: c2a8 0004 andl %a0@(4),%d1
!_Heap_Is_block_in_heap( heap, next_block )
|| !_Heap_Is_prev_used( next_block )
59442: 6712 beqs 59456 <_Heap_Size_of_alloc_area+0x6e> <== NEVER TAKEN
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
59444: 7204 moveq #4,%d1
59446: 9280 subl %d0,%d1
59448: 2001 movel %d1,%d0
5944a: d088 addl %a0,%d0
5944c: 226e 0010 moveal %fp@(16),%a1
59450: 2280 movel %d0,%a1@
return true;
59452: 7001 moveq #1,%d0
59454: 6002 bras 59458 <_Heap_Size_of_alloc_area+0x70>
if (
!_Heap_Is_block_in_heap( heap, next_block )
|| !_Heap_Is_prev_used( next_block )
) {
return false;
59456: 4200 clrb %d0 <== NOT EXECUTED
}
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
return true;
}
59458: 241f movel %sp@+,%d2
5945a: 4e5e unlk %fp
...
00047156 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
47156: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED
4715a: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
4715e: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
47162: 45fa ffac lea %pc@(47110 <_Heap_Walk_print_nothing>),%a2<== NOT EXECUTED
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
47166: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
4716a: 282b 0010 movel %a3@(16),%d4 <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
4716e: 2a2b 0014 movel %a3@(20),%d5 <== NOT EXECUTED
Heap_Block *const first_block = heap->first_block;
47172: 2c2b 0020 movel %a3@(32),%d6 <== NOT EXECUTED
Heap_Block *const last_block = heap->last_block;
47176: 2e2b 0024 movel %a3@(36),%d7 <== NOT EXECUTED
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
4717a: 4a2e 0013 tstb %fp@(19) <== NOT EXECUTED
4717e: 6704 beqs 47184 <_Heap_Walk+0x2e> <== NOT EXECUTED
47180: 45fa ff96 lea %pc@(47118 <_Heap_Walk_print>),%a2 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
47184: 7003 moveq #3,%d0 <== NOT EXECUTED
47186: b0b9 0005 eb78 cmpl 5eb78 <_System_state_Current>,%d0 <== NOT EXECUTED
4718c: 6600 02fc bnew 4748a <_Heap_Walk+0x334> <== NOT EXECUTED
Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
(*printer)(
47190: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED
47194: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED
47198: 2f07 movel %d7,%sp@- <== NOT EXECUTED
4719a: 2f06 movel %d6,%sp@- <== NOT EXECUTED
4719c: 2f2b 001c movel %a3@(28),%sp@- <== NOT EXECUTED
471a0: 2f2b 0018 movel %a3@(24),%sp@- <== NOT EXECUTED
471a4: 2f05 movel %d5,%sp@- <== NOT EXECUTED
471a6: 2f04 movel %d4,%sp@- <== NOT EXECUTED
471a8: 4879 0005 b069 pea 5b069 <C.0.4105+0x57> <== NOT EXECUTED
471ae: 42a7 clrl %sp@- <== NOT EXECUTED
471b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
471b2: 4e92 jsr %a2@ <== NOT EXECUTED
heap->area_begin, heap->area_end,
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
471b4: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED
471b8: 4a84 tstl %d4 <== NOT EXECUTED
471ba: 6608 bnes 471c4 <_Heap_Walk+0x6e> <== NOT EXECUTED
(*printer)( source, true, "page size is zero\n" );
471bc: 4879 0005 b0fa pea 5b0fa <C.0.4105+0xe8> <== NOT EXECUTED
471c2: 6050 bras 47214 <_Heap_Walk+0xbe> <== NOT EXECUTED
)
{
#if (CPU_ALIGNMENT == 0)
return true;
#else
return (((uintptr_t)address % CPU_ALIGNMENT) == 0);
471c4: 7003 moveq #3,%d0 <== NOT EXECUTED
471c6: c084 andl %d4,%d0 <== NOT EXECUTED
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
471c8: 670c beqs 471d6 <_Heap_Walk+0x80> <== NOT EXECUTED
(*printer)(
471ca: 2f04 movel %d4,%sp@- <== NOT EXECUTED
471cc: 4879 0005 b10d pea 5b10d <C.0.4105+0xfb> <== NOT EXECUTED
471d2: 6000 02ca braw 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
471d6: 2205 movel %d5,%d1 <== NOT EXECUTED
471d8: 4c44 1000 remul %d4,%d0,%d1 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
471dc: 4a80 tstl %d0 <== NOT EXECUTED
471de: 670c beqs 471ec <_Heap_Walk+0x96> <== NOT EXECUTED
(*printer)(
471e0: 2f05 movel %d5,%sp@- <== NOT EXECUTED
471e2: 4879 0005 b12b pea 5b12b <C.0.4105+0x119> <== NOT EXECUTED
471e8: 6000 02b4 braw 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
471ec: 2006 movel %d6,%d0 <== NOT EXECUTED
471ee: 5080 addql #8,%d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
471f0: 4c44 0001 remul %d4,%d1,%d0 <== NOT EXECUTED
);
return false;
}
if (
471f4: 4a81 tstl %d1 <== NOT EXECUTED
471f6: 670c beqs 47204 <_Heap_Walk+0xae> <== NOT EXECUTED
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
471f8: 2f06 movel %d6,%sp@- <== NOT EXECUTED
471fa: 4879 0005 b14f pea 5b14f <C.0.4105+0x13d> <== NOT EXECUTED
47200: 6000 029c braw 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
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;
47204: 7001 moveq #1,%d0 <== NOT EXECUTED
47206: 2046 moveal %d6,%a0 <== NOT EXECUTED
47208: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
4720c: 6616 bnes 47224 <_Heap_Walk+0xce> <== NOT EXECUTED
(*printer)(
4720e: 4879 0005 b180 pea 5b180 <C.0.4105+0x16e> <== NOT EXECUTED
47214: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47218: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4721a: 4e92 jsr %a2@ <== NOT EXECUTED
4721c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47220: 6000 00ba braw 472dc <_Heap_Walk+0x186> <== NOT EXECUTED
- 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;
47224: 70fe moveq #-2,%d0 <== NOT EXECUTED
47226: 2047 moveal %d7,%a0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
47228: 2847 moveal %d7,%a4 <== NOT EXECUTED
- 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;
4722a: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
4722e: d9c0 addal %d0,%a4 <== NOT EXECUTED
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;
47230: 7001 moveq #1,%d0 <== NOT EXECUTED
47232: c0ac 0004 andl %a4@(4),%d0 <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
47236: 6608 bnes 47240 <_Heap_Walk+0xea> <== NOT EXECUTED
(*printer)(
47238: 4879 0005 b1ae pea 5b1ae <C.0.4105+0x19c> <== NOT EXECUTED
4723e: 60d4 bras 47214 <_Heap_Walk+0xbe> <== NOT EXECUTED
);
return false;
}
if (
47240: bc8c cmpl %a4,%d6 <== NOT EXECUTED
47242: 6708 beqs 4724c <_Heap_Walk+0xf6> <== NOT EXECUTED
_Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
) {
(*printer)(
47244: 4879 0005 b1c3 pea 5b1c3 <C.0.4105+0x1b1> <== NOT EXECUTED
4724a: 60c8 bras 47214 <_Heap_Walk+0xbe> <== NOT EXECUTED
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
4724c: 262b 0010 movel %a3@(16),%d3 <== NOT EXECUTED
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
47250: 220b movel %a3,%d1 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
47252: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED
47256: 2d44 fff8 movel %d4,%fp@(-8) <== NOT EXECUTED
4725a: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED
4725e: 6000 0088 braw 472e8 <_Heap_Walk+0x192> <== NOT EXECUTED
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
47262: b1eb 0020 cmpal %a3@(32),%a0 <== NOT EXECUTED
47266: 650c bcss 47274 <_Heap_Walk+0x11e> <== NOT EXECUTED
47268: b1eb 0024 cmpal %a3@(36),%a0 <== NOT EXECUTED
4726c: 53c0 sls %d0 <== NOT EXECUTED
4726e: 49c0 extbl %d0 <== NOT EXECUTED
47270: 4480 negl %d0 <== NOT EXECUTED
47272: 6002 bras 47276 <_Heap_Walk+0x120> <== NOT EXECUTED
47274: 4280 clrl %d0 <== NOT EXECUTED
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
47276: 4a00 tstb %d0 <== NOT EXECUTED
47278: 660c bnes 47286 <_Heap_Walk+0x130> <== NOT EXECUTED
(*printer)(
4727a: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4727c: 4879 0005 b1f2 pea 5b1f2 <C.0.4105+0x1e0> <== NOT EXECUTED
47282: 6000 021a braw 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
47286: 4be8 0008 lea %a0@(8),%a5 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
4728a: 200d movel %a5,%d0 <== NOT EXECUTED
4728c: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
47290: 4c43 0004 remul %d3,%d4,%d0 <== NOT EXECUTED
);
return false;
}
if (
47294: 4a84 tstl %d4 <== NOT EXECUTED
47296: 670c beqs 472a4 <_Heap_Walk+0x14e> <== NOT EXECUTED
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
47298: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4729a: 4879 0005 b212 pea 5b212 <C.0.4105+0x200> <== NOT EXECUTED
472a0: 6000 01fc braw 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
- 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;
472a4: 70fe moveq #-2,%d0 <== NOT EXECUTED
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;
472a6: 7601 moveq #1,%d3 <== NOT EXECUTED
- 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;
472a8: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
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;
472ac: c6b0 0804 andl %a0@(00000004,%d0:l),%d3 <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
472b0: 670c beqs 472be <_Heap_Walk+0x168> <== NOT EXECUTED
(*printer)(
472b2: 2f08 movel %a0,%sp@- <== NOT EXECUTED
472b4: 4879 0005 b242 pea 5b242 <C.0.4105+0x230> <== NOT EXECUTED
472ba: 6000 01e2 braw 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
);
return false;
}
if ( free_block->prev != prev_block ) {
472be: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED
472c2: b280 cmpl %d0,%d1 <== NOT EXECUTED
472c4: 671c beqs 472e2 <_Heap_Walk+0x18c> <== NOT EXECUTED
(*printer)(
472c6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
472c8: 2f08 movel %a0,%sp@- <== NOT EXECUTED
472ca: 4879 0005 b25e pea 5b25e <C.0.4105+0x24c> <== NOT EXECUTED
472d0: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
472d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
472d6: 4e92 jsr %a2@ <== NOT EXECUTED
472d8: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
472dc: 4200 clrb %d0 <== NOT EXECUTED
472de: 6000 01ac braw 4748c <_Heap_Walk+0x336> <== NOT EXECUTED
return false;
}
prev_block = free_block;
free_block = free_block->next;
472e2: 2208 movel %a0,%d1 <== NOT EXECUTED
472e4: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
472e8: b7c8 cmpal %a0,%a3 <== NOT EXECUTED
472ea: 6600 ff76 bnew 47262 <_Heap_Walk+0x10c> <== NOT EXECUTED
472ee: 282e fff8 movel %fp@(-8),%d4 <== NOT EXECUTED
472f2: 6002 bras 472f6 <_Heap_Walk+0x1a0> <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
472f4: 284d moveal %a5,%a4 <== NOT EXECUTED
return true;
}
472f6: 202c 0004 movel %a4@(4),%d0 <== NOT EXECUTED
- 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;
472fa: 76fe moveq #-2,%d3 <== NOT EXECUTED
472fc: c680 andl %d0,%d3 <== NOT EXECUTED
472fe: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
47302: 4bf4 3800 lea %a4@(00000000,%d3:l),%a5 <== NOT EXECUTED
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
47306: bbeb 0020 cmpal %a3@(32),%a5 <== NOT EXECUTED
4730a: 650c bcss 47318 <_Heap_Walk+0x1c2> <== NOT EXECUTED
4730c: bbeb 0024 cmpal %a3@(36),%a5 <== NOT EXECUTED
47310: 53c0 sls %d0 <== NOT EXECUTED
47312: 49c0 extbl %d0 <== NOT EXECUTED
47314: 4480 negl %d0 <== NOT EXECUTED
47316: 6002 bras 4731a <_Heap_Walk+0x1c4> <== NOT EXECUTED
47318: 4280 clrl %d0 <== NOT EXECUTED
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
bool const is_not_last_block = block != last_block;
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
4731a: 4a00 tstb %d0 <== NOT EXECUTED
4731c: 660c bnes 4732a <_Heap_Walk+0x1d4> <== NOT EXECUTED
(*printer)(
4731e: 2f0d movel %a5,%sp@- <== NOT EXECUTED
47320: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47322: 4879 0005 b290 pea 5b290 <C.0.4105+0x27e> <== NOT EXECUTED
47328: 60a6 bras 472d0 <_Heap_Walk+0x17a> <== NOT EXECUTED
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
bool const is_not_last_block = block != last_block;
4732a: be8c cmpl %a4,%d7 <== NOT EXECUTED
4732c: 56c0 sne %d0 <== NOT EXECUTED
4732e: 2200 movel %d0,%d1 <== NOT EXECUTED
47330: 4481 negl %d1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
47332: 2003 movel %d3,%d0 <== NOT EXECUTED
47334: 1d41 fffb moveb %d1,%fp@(-5) <== NOT EXECUTED
47338: 4c44 0001 remul %d4,%d1,%d0 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
4733c: 4a81 tstl %d1 <== NOT EXECUTED
4733e: 6714 beqs 47354 <_Heap_Walk+0x1fe> <== NOT EXECUTED
47340: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED
47344: 670e beqs 47354 <_Heap_Walk+0x1fe> <== NOT EXECUTED
(*printer)(
47346: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47348: 2f0c movel %a4,%sp@- <== NOT EXECUTED
4734a: 4879 0005 b2bd pea 5b2bd <C.0.4105+0x2ab> <== NOT EXECUTED
47350: 6000 ff7e braw 472d0 <_Heap_Walk+0x17a> <== NOT EXECUTED
);
return false;
}
if ( block_size < min_block_size && is_not_last_block ) {
47354: ba83 cmpl %d3,%d5 <== NOT EXECUTED
47356: 6322 blss 4737a <_Heap_Walk+0x224> <== NOT EXECUTED
47358: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED
4735c: 671c beqs 4737a <_Heap_Walk+0x224> <== NOT EXECUTED
(*printer)(
4735e: 2f05 movel %d5,%sp@- <== NOT EXECUTED
47360: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47362: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47364: 4879 0005 b2eb pea 5b2eb <C.0.4105+0x2d9> <== NOT EXECUTED
4736a: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4736e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47370: 4e92 jsr %a2@ <== NOT EXECUTED
block,
block_size,
min_block_size
);
return false;
47372: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
47376: 6000 ff64 braw 472dc <_Heap_Walk+0x186> <== NOT EXECUTED
}
if ( next_block_begin <= block_begin && is_not_last_block ) {
4737a: b9cd cmpal %a5,%a4 <== NOT EXECUTED
4737c: 6514 bcss 47392 <_Heap_Walk+0x23c> <== NOT EXECUTED
4737e: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED
47382: 670e beqs 47392 <_Heap_Walk+0x23c> <== NOT EXECUTED
(*printer)(
47384: 2f0d movel %a5,%sp@- <== NOT EXECUTED
47386: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47388: 4879 0005 b316 pea 5b316 <C.0.4105+0x304> <== NOT EXECUTED
4738e: 6000 ff40 braw 472d0 <_Heap_Walk+0x17a> <== NOT EXECUTED
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;
47392: 7001 moveq #1,%d0 <== NOT EXECUTED
47394: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED
47398: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
4739c: 7001 moveq #1,%d0 <== NOT EXECUTED
4739e: c0ad 0004 andl %a5@(4),%d0 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
473a2: 6600 00ae bnew 47452 <_Heap_Walk+0x2fc> <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
473a6: 222b 0008 movel %a3@(8),%d1 <== NOT EXECUTED
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
473aa: 43f9 0005 b036 lea 5b036 <C.0.4105+0x24>,%a1 <== NOT EXECUTED
block->prev,
block->prev == first_free_block ?
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
473b0: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
473b4: 2d41 fff8 movel %d1,%fp@(-8) <== NOT EXECUTED
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
473b8: b1eb 000c cmpal %a3@(12),%a0 <== NOT EXECUTED
473bc: 6710 beqs 473ce <_Heap_Walk+0x278> <== NOT EXECUTED
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last free)"
: (block->next == free_list_tail ? " (= tail)" : "")
473be: 43f9 0005 af70 lea 5af70 <rtems_filesystem_default_pathconf+0xb4>,%a1<== NOT EXECUTED
473c4: b7c8 cmpal %a0,%a3 <== NOT EXECUTED
473c6: 6606 bnes 473ce <_Heap_Walk+0x278> <== NOT EXECUTED
473c8: 43f9 0005 b045 lea 5b045 <C.0.4105+0x33>,%a1 <== NOT EXECUTED
false,
"block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n",
block,
block_size,
block->prev,
block->prev == first_free_block ?
473ce: 202c 000c movel %a4@(12),%d0 <== NOT EXECUTED
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
473d2: 223c 0005 b04f movel #372815,%d1 <== NOT EXECUTED
473d8: b0ae fff8 cmpl %fp@(-8),%d0 <== NOT EXECUTED
473dc: 6710 beqs 473ee <_Heap_Walk+0x298> <== NOT EXECUTED
block,
block_size,
block->prev,
block->prev == first_free_block ?
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
473de: 223c 0005 af70 movel #372592,%d1 <== NOT EXECUTED
473e4: b7c0 cmpal %d0,%a3 <== NOT EXECUTED
473e6: 6606 bnes 473ee <_Heap_Walk+0x298> <== NOT EXECUTED
473e8: 223c 0005 b05f movel #372831,%d1 <== NOT EXECUTED
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
473ee: 2f09 movel %a1,%sp@- <== NOT EXECUTED
473f0: 2f08 movel %a0,%sp@- <== NOT EXECUTED
473f2: 2f01 movel %d1,%sp@- <== NOT EXECUTED
473f4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
473f6: 2f03 movel %d3,%sp@- <== NOT EXECUTED
473f8: 2f0c movel %a4,%sp@- <== NOT EXECUTED
473fa: 4879 0005 b34a pea 5b34a <C.0.4105+0x338> <== NOT EXECUTED
47400: 42a7 clrl %sp@- <== NOT EXECUTED
47402: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47404: 4e92 jsr %a2@ <== NOT EXECUTED
block->next == last_free_block ?
" (= last free)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
47406: 2015 movel %a5@,%d0 <== NOT EXECUTED
47408: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
4740c: b083 cmpl %d3,%d0 <== NOT EXECUTED
4740e: 671e beqs 4742e <_Heap_Walk+0x2d8> <== NOT EXECUTED
(*printer)(
47410: 2f0d movel %a5,%sp@- <== NOT EXECUTED
47412: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47414: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47416: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47418: 4879 0005 b37f pea 5b37f <C.0.4105+0x36d> <== NOT EXECUTED
4741e: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47422: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47424: 4e92 jsr %a2@ <== NOT EXECUTED
47426: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4742a: 6000 feb0 braw 472dc <_Heap_Walk+0x186> <== NOT EXECUTED
);
return false;
}
if ( !prev_used ) {
4742e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47432: 660a bnes 4743e <_Heap_Walk+0x2e8> <== NOT EXECUTED
(*printer)(
47434: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47436: 4879 0005 b3b8 pea 5b3b8 <C.0.4105+0x3a6> <== NOT EXECUTED
4743c: 6060 bras 4749e <_Heap_Walk+0x348> <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
4743e: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED
47442: 6008 bras 4744c <_Heap_Walk+0x2f6> <== NOT EXECUTED
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
if ( free_block == block ) {
47444: b9c8 cmpal %a0,%a4 <== NOT EXECUTED
47446: 673c beqs 47484 <_Heap_Walk+0x32e> <== NOT EXECUTED
return true;
}
free_block = free_block->next;
47448: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
4744c: b7c8 cmpal %a0,%a3 <== NOT EXECUTED
4744e: 66f4 bnes 47444 <_Heap_Walk+0x2ee> <== NOT EXECUTED
47450: 6044 bras 47496 <_Heap_Walk+0x340> <== NOT EXECUTED
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
}
} else if (prev_used) {
47452: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47456: 6716 beqs 4746e <_Heap_Walk+0x318> <== NOT EXECUTED
(*printer)(
47458: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4745a: 2f0c movel %a4,%sp@- <== NOT EXECUTED
4745c: 4879 0005 b3e7 pea 5b3e7 <C.0.4105+0x3d5> <== NOT EXECUTED
47462: 42a7 clrl %sp@- <== NOT EXECUTED
47464: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47466: 4e92 jsr %a2@ <== NOT EXECUTED
47468: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
4746c: 6016 bras 47484 <_Heap_Walk+0x32e> <== NOT EXECUTED
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
4746e: 2f14 movel %a4@,%sp@- <== NOT EXECUTED
47470: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47472: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47474: 4879 0005 b3fe pea 5b3fe <C.0.4105+0x3ec> <== NOT EXECUTED
4747a: 42a7 clrl %sp@- <== NOT EXECUTED
4747c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4747e: 4e92 jsr %a2@ <== NOT EXECUTED
47480: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
47484: bc8d cmpl %a5,%d6 <== NOT EXECUTED
47486: 6600 fe6c bnew 472f4 <_Heap_Walk+0x19e> <== NOT EXECUTED
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
4748a: 7001 moveq #1,%d0 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
4748c: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED
47492: 4e5e unlk %fp <== NOT EXECUTED
47494: 4e75 rts <== NOT EXECUTED
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
47496: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47498: 4879 0005 b423 pea 5b423 <C.0.4105+0x411> <== NOT EXECUTED
4749e: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
474a2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
474a4: 4e92 jsr %a2@ <== NOT EXECUTED
474a6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
474aa: 6000 fe30 braw 472dc <_Heap_Walk+0x186> <== NOT EXECUTED
...
00047118 <_Heap_Walk_print>:
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
47118: 41f9 0004 3b54 lea 43b54 <printk>,%a0 <== NOT EXECUTED
4711e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47122: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
va_list ap;
if ( error ) {
47126: 4a2e 000f tstb %fp@(15) <== NOT EXECUTED
4712a: 670a beqs 47136 <_Heap_Walk_print+0x1e> <== NOT EXECUTED
printk( "FAIL[%d]: ", source );
4712c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4712e: 4879 0005 b020 pea 5b020 <C.0.4105+0xe> <== NOT EXECUTED
47134: 6008 bras 4713e <_Heap_Walk_print+0x26> <== NOT EXECUTED
} else {
printk( "PASS[%d]: ", source );
47136: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47138: 4879 0005 b02b pea 5b02b <C.0.4105+0x19> <== NOT EXECUTED
4713e: 4e90 jsr %a0@ <== NOT EXECUTED
47140: 508f addql #8,%sp <== NOT EXECUTED
}
va_start( ap, fmt );
vprintk( fmt, ap );
47142: 486e 0014 pea %fp@(20) <== NOT EXECUTED
47146: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4714a: 4eb9 0004 546c jsr 4546c <vprintk> <== NOT EXECUTED
va_end( ap );
47150: 508f addql #8,%sp <== NOT EXECUTED
}
47152: 4e5e unlk %fp <== NOT EXECUTED
00047110 <_Heap_Walk_print_nothing>:
int source,
bool error,
const char *fmt,
...
)
{
47110: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
/* Do nothing */
}
47114: 4e5e unlk %fp <== NOT EXECUTED
00046768 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
46768: 4e56 0000 linkw %fp,#0
4676c: 222e 000c movel %fp@(12),%d1
46770: 2f02 movel %d2,%sp@-
46772: 242e 0010 movel %fp@(16),%d2
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
46776: 13c1 0005 c772 moveb %d1,5c772 <_Internal_errors_What_happened+0x4>
_Internal_errors_What_happened.the_error = the_error;
_User_extensions_Fatal( the_source, is_internal, the_error );
4677c: 2f02 movel %d2,%sp@-
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
4677e: 202e 0008 movel %fp@(8),%d0
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
_Internal_errors_What_happened.the_error = the_error;
_User_extensions_Fatal( the_source, is_internal, the_error );
46782: 0281 0000 00ff andil #255,%d1
bool is_internal,
Internal_errors_t the_error
)
{
_Internal_errors_What_happened.the_source = the_source;
46788: 23c0 0005 c76e movel %d0,5c76e <_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 );
4678e: 2f01 movel %d1,%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;
46790: 23c2 0005 c774 movel %d2,5c774 <_Internal_errors_What_happened+0x6>
_User_extensions_Fatal( the_source, is_internal, the_error );
46796: 2f00 movel %d0,%sp@-
46798: 4eb9 0004 8302 jsr 48302 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
4679e: 7005 moveq #5,%d0 <== NOT EXECUTED
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
467a0: 2042 moveal %d2,%a0 <== NOT EXECUTED
467a2: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED
467a8: 23c0 0005 c820 movel %d0,5c820 <_System_state_Current> <== NOT EXECUTED
467ae: 40c0 movew %sr,%d0 <== NOT EXECUTED
467b0: 8082 orl %d2,%d0 <== NOT EXECUTED
467b2: 46c0 movew %d0,%sr <== NOT EXECUTED
467b4: 2008 movel %a0,%d0 <== NOT EXECUTED
467b6: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED
467bc: 4ac8 halt <== NOT EXECUTED
467be: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
467c2: 60fe bras 467c2 <_Internal_error_Occurred+0x5a> <== NOT EXECUTED
00051cf4 <_Message_queue_Allocate>:
* Output parameters:
* the_message_queue - set if successful, NULL otherwise
*/
Message_queue_Control *_Message_queue_Allocate(void)
{
51cf4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (Message_queue_Control *)
_Objects_Allocate(&_Message_queue_Information);
51cf8: 4879 0006 53d8 pea 653d8 <_Message_queue_Information> <== NOT EXECUTED
51cfe: 4eb9 0004 e840 jsr 4e840 <_Objects_Allocate> <== NOT EXECUTED
}
51d04: 4e5e unlk %fp <== NOT EXECUTED
0004ce58 <_Message_queue_Translate_core_message_queue_return_code>:
if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT )
return RTEMS_INTERNAL_ERROR;
#endif
return _Message_queue_Translate_core_return_code_[status];
}
4ce58: 41f9 0006 3a1c lea 63a1c <_Message_queue_Translate_core_return_code_>,%a0<== NOT EXECUTED
};
rtems_status_code _Message_queue_Translate_core_message_queue_return_code (
uint32_t status
)
{
4ce5e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT )
return RTEMS_INTERNAL_ERROR;
#endif
return _Message_queue_Translate_core_return_code_[status];
}
4ce62: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4ce66: 4e5e unlk %fp <== NOT EXECUTED
4ce68: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004a494 <_Objects_API_maximum_class>:
#include <rtems/score/object.h>
unsigned int _Objects_API_maximum_class(
uint32_t api
)
{
4a494: 7202 moveq #2,%d1
4a496: 4e56 0000 linkw %fp,#0
4a49a: 202e 0008 movel %fp@(8),%d0
4a49e: 5380 subql #1,%d0
4a4a0: b280 cmpl %d0,%d1
4a4a2: 650c bcss 4a4b0 <_Objects_API_maximum_class+0x1c><== NEVER TAKEN
4a4a4: 41f9 0005 a462 lea 5a462 <CSWTCH.1>,%a0
4a4aa: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0
4a4ae: 6002 bras 4a4b2 <_Objects_API_maximum_class+0x1e>
4a4b0: 4280 clrl %d0 <== NOT EXECUTED
case OBJECTS_NO_API:
default:
break;
}
return 0;
}
4a4b2: 4e5e unlk %fp
...
0004681c <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
4681c: 4e56 fff0 linkw %fp,#-16
46820: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@
46824: 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 )
46828: 4aaa 0014 tstl %a2@(20)
4682c: 675e beqs 4688c <_Objects_Allocate+0x70> <== NEVER TAKEN
/*
* 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 );
4682e: 240a movel %a2,%d2
46830: 0682 0000 001c addil #28,%d2
46836: 47f9 0004 5fc0 lea 45fc0 <_Chain_Get>,%a3
4683c: 2f02 movel %d2,%sp@-
4683e: 4e93 jsr %a3@
if ( information->auto_extend ) {
46840: 588f addql #4,%sp
46842: 4a2a 0010 tstb %a2@(16)
46846: 6746 beqs 4688e <_Objects_Allocate+0x72>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
46848: 4a80 tstl %d0
4684a: 6612 bnes 4685e <_Objects_Allocate+0x42> <== ALWAYS TAKEN
_Objects_Extend_information( information );
4684c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4684e: 4eb9 0004 68c4 jsr 468c4 <_Objects_Extend_information> <== NOT EXECUTED
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
46854: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46856: 4e93 jsr %a3@ <== NOT EXECUTED
}
if ( the_object ) {
46858: 508f addql #8,%sp <== NOT EXECUTED
4685a: 4a80 tstl %d0 <== NOT EXECUTED
4685c: 6730 beqs 4688e <_Objects_Allocate+0x72> <== NOT EXECUTED
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
4685e: 2040 moveal %d0,%a0
46860: 4281 clrl %d1
46862: 4282 clrl %d2
46864: 3228 000a movew %a0@(10),%d1
46868: 342a 0008 movew %a2@(8),%d2
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
4686c: 206a 002a moveal %a2@(42),%a0
}
if ( the_object ) {
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
46870: 9282 subl %d2,%d1
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
46872: 342a 0012 movew %a2@(18),%d2
46876: 4c42 1001 remul %d2,%d1,%d1
information->inactive_per_block[ block ]--;
4687a: e589 lsll #2,%d1
4687c: d1c1 addal %d1,%a0
4687e: 5390 subql #1,%a0@
information->inactive--;
46880: 322a 0028 movew %a2@(40),%d1
46884: 5381 subql #1,%d1
46886: 3541 0028 movew %d1,%a2@(40)
4688a: 6002 bras 4688e <_Objects_Allocate+0x72>
* 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 )
return NULL;
4688c: 4280 clrl %d0 <== NOT EXECUTED
);
}
#endif
return the_object;
}
4688e: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3
46894: 4e5e unlk %fp <== NOT EXECUTED
00046898 <_Objects_Close>:
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
46898: 4280 clrl %d0
void _Objects_Close(
Objects_Information *information,
Objects_Control *the_object
)
{
4689a: 4e56 0000 linkw %fp,#0
4689e: 226e 000c moveal %fp@(12),%a1
468a2: 206e 0008 moveal %fp@(8),%a0
468a6: 2f0a movel %a2,%sp@-
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
468a8: 2468 0018 moveal %a0@(24),%a2
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
468ac: 3029 000a movew %a1@(10),%d0
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
468b0: 42b2 0c00 clrl %a2@(00000000,%d0:l:4)
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
}
468b4: 245f moveal %sp@+,%a2
Objects_Control *the_object
)
{
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
468b6: 2d49 000c movel %a1,%fp@(12)
}
468ba: 4e5e unlk %fp
Objects_Control *the_object
)
{
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
468bc: 4ef9 0004 6dcc jmp 46dcc <_Objects_Namespace_remove>
...
000468c4 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
468c4: 4e56 ffc8 linkw %fp,#-56
468c8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@
468cc: 246e 0008 moveal %fp@(8),%a2
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
468d0: 4283 clrl %d3
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
468d2: 206a 002e moveal %a2@(46),%a0
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
468d6: 362a 0008 movew %a2@(8),%d3
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
468da: 4a88 tstl %a0
468dc: 6730 beqs 4690e <_Objects_Extend_information+0x4a><== ALWAYS TAKEN
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
468de: 4280 clrl %d0 <== NOT EXECUTED
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
468e0: 2403 movel %d3,%d2 <== NOT EXECUTED
index_base = minimum_index;
block = 0;
468e2: 4285 clrl %d5 <== NOT EXECUTED
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
468e4: 302a 0012 movew %a2@(18),%d0 <== NOT EXECUTED
468e8: 3c2a 000e movew %a2@(14),%d6 <== NOT EXECUTED
468ec: 0286 0000 ffff andil #65535,%d6 <== NOT EXECUTED
468f2: 8cc0 divuw %d0,%d6 <== NOT EXECUTED
468f4: 0286 0000 ffff andil #65535,%d6 <== NOT EXECUTED
for ( ; block < block_count; block++ ) {
468fa: 6008 bras 46904 <_Objects_Extend_information+0x40><== NOT EXECUTED
if ( information->object_blocks[ block ] == NULL ) {
468fc: 4a98 tstl %a0@+ <== NOT EXECUTED
468fe: 671a beqs 4691a <_Objects_Extend_information+0x56><== NOT EXECUTED
46900: d480 addl %d0,%d2 <== NOT EXECUTED
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
46902: 5285 addql #1,%d5 <== NOT EXECUTED
46904: bc85 cmpl %d5,%d6 <== NOT EXECUTED
46906: 62f4 bhis 468fc <_Objects_Extend_information+0x38><== NOT EXECUTED
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
46908: 367c 0001 moveaw #1,%a3 <== NOT EXECUTED
4690c: 600e bras 4691c <_Objects_Extend_information+0x58><== NOT EXECUTED
minimum_index = _Objects_Get_index( information->minimum_id );
4690e: 2403 movel %d3,%d2
index_base = minimum_index;
block = 0;
46910: 4285 clrl %d5
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
46912: 4286 clrl %d6
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
46914: 367c 0001 moveaw #1,%a3
46918: 6002 bras 4691c <_Objects_Extend_information+0x58>
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL ) {
do_extend = false;
4691a: 97cb subal %a3,%a3 <== NOT EXECUTED
} else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
4691c: 4280 clrl %d0
4691e: 4287 clrl %d7
46920: 302a 0012 movew %a2@(18),%d0
46924: 3e2a 000e movew %a2@(14),%d7
46928: de80 addl %d0,%d7
/*
* 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 ) {
4692a: 0c87 0000 ffff cmpil #65535,%d7
46930: 6200 01d4 bhiw 46b06 <_Objects_Extend_information+0x242>
/*
* 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;
46934: 41ea 0014 lea %a2@(20),%a0
46938: 4c10 0800 mulsl %a0@,%d0
if ( information->auto_extend ) {
4693c: 4a2a 0010 tstb %a2@(16)
46940: 6712 beqs 46954 <_Objects_Extend_information+0x90>
new_object_block = _Workspace_Allocate( block_size );
46942: 2f00 movel %d0,%sp@-
46944: 4eb9 0004 86c0 jsr 486c0 <_Workspace_Allocate>
if ( !new_object_block )
4694a: 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 );
4694c: 2800 movel %d0,%d4
if ( !new_object_block )
4694e: 6610 bnes 46960 <_Objects_Extend_information+0x9c><== ALWAYS TAKEN
46950: 6000 01b4 braw 46b06 <_Objects_Extend_information+0x242><== NOT EXECUTED
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
46954: 2f00 movel %d0,%sp@-
46956: 4eb9 0004 86f4 jsr 486f4 <_Workspace_Allocate_or_fatal_error>
4695c: 588f addql #4,%sp
4695e: 2800 movel %d0,%d4
}
/*
* Do we need to grow the tables?
*/
if ( do_extend ) {
46960: 300b movew %a3,%d0
46962: 4a00 tstb %d0
46964: 6700 0110 beqw 46a76 <_Objects_Extend_information+0x1b2>
*/
/*
* Up the block count and maximum
*/
block_count++;
46968: 2846 moveal %d6,%a4
4696a: 528c addql #1,%a4
/*
* 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 *));
4696c: 2007 movel %d7,%d0
4696e: d083 addl %d3,%d0
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
46970: 41f4 ca00 lea %a4@(00000000,%a4:l:2),%a0
46974: d088 addl %a0,%d0
block_count++;
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
46976: e588 lsll #2,%d0
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
46978: 2f00 movel %d0,%sp@-
4697a: 4eb9 0004 86c0 jsr 486c0 <_Workspace_Allocate>
if ( !object_blocks ) {
46980: 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 );
46982: 2640 moveal %d0,%a3
if ( !object_blocks ) {
46984: 4a80 tstl %d0
46986: 660e bnes 46996 <_Objects_Extend_information+0xd2><== ALWAYS TAKEN
_Workspace_Free( new_object_block );
46988: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4698a: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
return;
46990: 588f addql #4,%sp <== NOT EXECUTED
46992: 6000 0172 braw 46b06 <_Objects_Extend_information+0x242><== NOT EXECUTED
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
46996: 220c movel %a4,%d1
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
46998: 4280 clrl %d0
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
4699a: e589 lsll #2,%d1
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
4699c: 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);
469a0: 4bf3 1800 lea %a3@(00000000,%d1:l),%a5
469a4: 49f5 1800 lea %a5@(00000000,%d1:l),%a4
469a8: b680 cmpl %d0,%d3
469aa: 6506 bcss 469b2 <_Objects_Extend_information+0xee><== NEVER TAKEN
469ac: 204c moveal %a4,%a0
469ae: 4280 clrl %d0
469b0: 604a bras 469fc <_Objects_Extend_information+0x138>
/*
* 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,
469b2: 2206 movel %d6,%d1 <== NOT EXECUTED
469b4: e589 lsll #2,%d1 <== NOT EXECUTED
469b6: 2f01 movel %d1,%sp@- <== NOT EXECUTED
469b8: 2f2a 002e movel %a2@(46),%sp@- <== NOT EXECUTED
469bc: 2d41 fff0 movel %d1,%fp@(-16) <== NOT EXECUTED
469c0: 2f0b movel %a3,%sp@- <== NOT EXECUTED
469c2: 4eb9 0004 c3fc jsr 4c3fc <memcpy> <== NOT EXECUTED
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
469c8: 222e fff0 movel %fp@(-16),%d1 <== NOT EXECUTED
469cc: 2f01 movel %d1,%sp@- <== NOT EXECUTED
469ce: 2f2a 002a movel %a2@(42),%sp@- <== NOT EXECUTED
469d2: 2f0d movel %a5,%sp@- <== NOT EXECUTED
469d4: 4eb9 0004 c3fc jsr 4c3fc <memcpy> <== NOT EXECUTED
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
information->local_table,
(information->maximum + minimum_index) * sizeof(Objects_Control *) );
469da: 4280 clrl %d0 <== NOT EXECUTED
469dc: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED
469e0: d680 addl %d0,%d3 <== NOT EXECUTED
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
469e2: e58b lsll #2,%d3 <== NOT EXECUTED
469e4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
469e6: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED
469ea: 2f0c movel %a4,%sp@- <== NOT EXECUTED
469ec: 4eb9 0004 c3fc jsr 4c3fc <memcpy> <== NOT EXECUTED
469f2: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
469f6: 6008 bras 46a00 <_Objects_Extend_information+0x13c><== NOT EXECUTED
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
469f8: 4298 clrl %a0@+
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
469fa: 5280 addql #1,%d0
469fc: b680 cmpl %d0,%d3
469fe: 62f8 bhis 469f8 <_Objects_Extend_information+0x134>
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
46a00: 4281 clrl %d1
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
46a02: 2002 movel %d2,%d0
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
46a04: e58e lsll #2,%d6
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
46a06: 322a 0012 movew %a2@(18),%d1
46a0a: 41f4 2c00 lea %a4@(00000000,%d2:l:4),%a0
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
46a0e: 42b3 6800 clrl %a3@(00000000,%d6:l)
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
46a12: d282 addl %d2,%d1
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
46a14: 42b5 6800 clrl %a5@(00000000,%d6:l)
for ( index=index_base ;
46a18: 6004 bras 46a1e <_Objects_Extend_information+0x15a>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
46a1a: 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++ ) {
46a1c: 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 ;
46a1e: b280 cmpl %d0,%d1
46a20: 62f8 bhis 46a1a <_Objects_Extend_information+0x156>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
46a22: 203c 0000 0700 movel #1792,%d0
46a28: 40c3 movew %sr,%d3
46a2a: 8083 orl %d3,%d0
46a2c: 46c0 movew %d0,%sr
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46a2e: 2012 movel %a2@,%d0
46a30: 7c18 moveq #24,%d6
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(
46a32: 4281 clrl %d1
46a34: eda8 lsll %d6,%d0
46a36: 322a 0004 movew %a2@(4),%d1
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46a3a: 1c3c 001b moveb #27,%d6
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46a3e: 08c0 0010 bset #16,%d0
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46a42: eda9 lsll %d6,%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;
46a44: 3547 000e movew %d7,%a2@(14)
information->maximum_id = _Objects_Build_id(
46a48: 0287 0000 ffff andil #65535,%d7
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
46a4e: 206a 002e moveal %a2@(46),%a0
46a52: 8081 orl %d1,%d0
information->object_blocks = object_blocks;
46a54: 254b 002e movel %a3,%a2@(46)
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46a58: 8087 orl %d7,%d0
information->inactive_per_block = inactive_per_block;
46a5a: 254d 002a movel %a5,%a2@(42)
information->local_table = local_table;
46a5e: 254c 0018 movel %a4,%a2@(24)
46a62: 2540 000a movel %d0,%a2@(10)
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
46a66: 46c3 movew %d3,%sr
if ( old_tables )
46a68: 4a88 tstl %a0
46a6a: 670a beqs 46a76 <_Objects_Extend_information+0x1b2><== ALWAYS TAKEN
_Workspace_Free( old_tables );
46a6c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46a6e: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
46a74: 588f addql #4,%sp <== NOT EXECUTED
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
46a76: 206a 002e moveal %a2@(46),%a0
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
46a7a: 4280 clrl %d0
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
46a7c: 260a movel %a2,%d3
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
46a7e: 49f9 0004 5fc0 lea 45fc0 <_Chain_Get>,%a4
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
46a84: 0683 0000 001c addil #28,%d3
46a8a: 47f9 0004 5f60 lea 45f60 <_Chain_Append>,%a3
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
46a90: e58d lsll #2,%d5
46a92: 2184 5800 movel %d4,%a0@(00000000,%d5:l)
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
46a96: 2f2a 0014 movel %a2@(20),%sp@-
46a9a: 302a 0012 movew %a2@(18),%d0
46a9e: 2f00 movel %d0,%sp@-
46aa0: 2f04 movel %d4,%sp@-
46aa2: 280e movel %fp,%d4
46aa4: 0684 ffff fff4 addil #-12,%d4
46aaa: 2f04 movel %d4,%sp@-
46aac: 4eb9 0004 a000 jsr 4a000 <_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 ) {
46ab2: 4fef 0010 lea %sp@(16),%sp
46ab6: 602a bras 46ae2 <_Objects_Extend_information+0x21e>
46ab8: 2212 movel %a2@,%d1
46aba: 7e18 moveq #24,%d7
the_object->id = _Objects_Build_id(
46abc: 4286 clrl %d6
46abe: 2040 moveal %d0,%a0
46ac0: 3c2a 0004 movew %a2@(4),%d6
46ac4: efa9 lsll %d7,%d1
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46ac6: 1e3c 001b moveb #27,%d7
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46aca: 08c1 0010 bset #16,%d1
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46ace: efae lsll %d7,%d6
46ad0: 8286 orl %d6,%d1
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46ad2: 8282 orl %d2,%d1
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
46ad4: 5282 addql #1,%d2
46ad6: 2141 0008 movel %d1,%a0@(8)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
46ada: 2f00 movel %d0,%sp@-
46adc: 2f03 movel %d3,%sp@-
46ade: 4e93 jsr %a3@
index++;
46ae0: 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 ) {
46ae2: 2f04 movel %d4,%sp@-
46ae4: 4e94 jsr %a4@
46ae6: 588f addql #4,%sp
46ae8: 4a80 tstl %d0
46aea: 66cc bnes 46ab8 <_Objects_Extend_information+0x1f4>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
46aec: 4281 clrl %d1
46aee: 302a 0012 movew %a2@(18),%d0
46af2: 206a 002a moveal %a2@(42),%a0
46af6: 3200 movew %d0,%d1
46af8: 2181 5800 movel %d1,%a0@(00000000,%d5:l)
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
46afc: 322a 0028 movew %a2@(40),%d1
46b00: d081 addl %d1,%d0
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
46b02: 3540 0028 movew %d0,%a2@(40)
(Objects_Maximum)(information->inactive + information->allocation_size);
}
46b06: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5
46b0c: 4e5e unlk %fp <== NOT EXECUTED
00046b10 <_Objects_Free>:
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
46b10: 4e56 fff0 linkw %fp,#-16
46b14: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@
46b18: 246e 0008 moveal %fp@(8),%a2
46b1c: 266e 000c moveal %fp@(12),%a3
uint32_t allocation_size = information->allocation_size;
46b20: 342a 0012 movew %a2@(18),%d2
_Chain_Append( &information->Inactive, &the_object->Node );
46b24: 2f0b movel %a3,%sp@-
46b26: 486a 001c pea %a2@(28)
46b2a: 4eb9 0004 5f60 jsr 45f60 <_Chain_Append>
if ( information->auto_extend ) {
46b30: 508f addql #8,%sp
46b32: 4a2a 0010 tstb %a2@(16)
46b36: 6750 beqs 46b88 <_Objects_Free+0x78> <== ALWAYS TAKEN
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
uint32_t allocation_size = information->allocation_size;
46b38: 4281 clrl %d1 <== NOT EXECUTED
_Chain_Append( &information->Inactive, &the_object->Node );
if ( information->auto_extend ) {
uint32_t block;
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
46b3a: 4280 clrl %d0 <== NOT EXECUTED
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
uint32_t allocation_size = information->allocation_size;
46b3c: 3202 movew %d2,%d1 <== NOT EXECUTED
_Chain_Append( &information->Inactive, &the_object->Node );
if ( information->auto_extend ) {
uint32_t block;
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
46b3e: 4282 clrl %d2 <== NOT EXECUTED
46b40: 302b 000a movew %a3@(10),%d0 <== NOT EXECUTED
46b44: 342a 0008 movew %a2@(8),%d2 <== NOT EXECUTED
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
information->inactive_per_block[ block ]++;
46b48: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED
_Chain_Append( &information->Inactive, &the_object->Node );
if ( information->auto_extend ) {
uint32_t block;
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
46b4c: 9082 subl %d2,%d0 <== NOT EXECUTED
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
46b4e: 342a 0012 movew %a2@(18),%d2 <== NOT EXECUTED
46b52: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED
/*
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
46b56: 2401 movel %d1,%d2 <== NOT EXECUTED
46b58: e28a lsrl #1,%d2 <== NOT EXECUTED
46b5a: d282 addl %d2,%d1 <== NOT EXECUTED
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
information->inactive_per_block[ block ]++;
46b5c: e588 lsll #2,%d0 <== NOT EXECUTED
46b5e: d1c0 addal %d0,%a0 <== NOT EXECUTED
46b60: 5290 addql #1,%a0@ <== NOT EXECUTED
information->inactive++;
46b62: 302a 0028 movew %a2@(40),%d0 <== NOT EXECUTED
46b66: 5280 addql #1,%d0 <== NOT EXECUTED
46b68: 3540 0028 movew %d0,%a2@(40) <== NOT EXECUTED
/*
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
46b6c: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED
46b72: b280 cmpl %d0,%d1 <== NOT EXECUTED
46b74: 6412 bccs 46b88 <_Objects_Free+0x78> <== NOT EXECUTED
_Objects_Shrink_information( information );
46b76: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
}
}
46b7a: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED
46b80: 4e5e unlk %fp <== NOT EXECUTED
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
_Objects_Shrink_information( information );
46b82: 4ef9 0004 6e50 jmp 46e50 <_Objects_Shrink_information> <== NOT EXECUTED
}
}
}
46b88: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3
46b8e: 4e5e unlk %fp
...
00046c74 <_Objects_Get>:
* always NULL.
*
* If the Id is valid but the object has not been created yet, then
* the local_table entry will be NULL.
*/
index = id - information->minimum_id + 1;
46c74: 7001 moveq #1,%d0
/*
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
46c76: 4281 clrl %d1
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
46c78: 4e56 0000 linkw %fp,#0
46c7c: 206e 0008 moveal %fp@(8),%a0
* always NULL.
*
* If the Id is valid but the object has not been created yet, then
* the local_table entry will be NULL.
*/
index = id - information->minimum_id + 1;
46c80: 90a8 0006 subl %a0@(6),%d0
46c84: d0ae 000c addl %fp@(12),%d0
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
46c88: 2f0a movel %a2,%sp@-
46c8a: 246e 0010 moveal %fp@(16),%a2
/*
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
46c8e: 3228 000e movew %a0@(14),%d1
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
46c92: 2f02 movel %d2,%sp@-
/*
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
46c94: b280 cmpl %d0,%d1
46c96: 6528 bcss 46cc0 <_Objects_Get+0x4c> <== NEVER TAKEN
46c98: 2239 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d1
46c9e: 5281 addql #1,%d1
46ca0: 23c1 0005 c6b8 movel %d1,5c6b8 <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
if ( (the_object = information->local_table[ index ]) != NULL ) {
46ca6: 2068 0018 moveal %a0@(24),%a0
46caa: 2430 0c00 movel %a0@(00000000,%d0:l:4),%d2
46cae: 6704 beqs 46cb4 <_Objects_Get+0x40> <== NEVER TAKEN
*location = OBJECTS_LOCAL;
46cb0: 4292 clrl %a2@
return the_object;
46cb2: 6012 bras 46cc6 <_Objects_Get+0x52>
/*
* Valid Id for this API, Class and Node but the object has not
* been allocated yet.
*/
_Thread_Enable_dispatch();
46cb4: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch> <== NOT EXECUTED
*location = OBJECTS_ERROR;
46cba: 7201 moveq #1,%d1 <== NOT EXECUTED
46cbc: 2481 movel %d1,%a2@ <== NOT EXECUTED
return NULL;
46cbe: 6006 bras 46cc6 <_Objects_Get+0x52> <== NOT EXECUTED
/*
* Object Id is not within this API and Class on this node. So
* it may be global in a multiprocessing system. But it is clearly
* invalid on a single processor system.
*/
*location = OBJECTS_ERROR;
46cc0: 7001 moveq #1,%d0 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
46cc2: 4282 clrl %d2 <== NOT EXECUTED
/*
* Object Id is not within this API and Class on this node. So
* it may be global in a multiprocessing system. But it is clearly
* invalid on a single processor system.
*/
*location = OBJECTS_ERROR;
46cc4: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
#endif
}
46cc6: 2002 movel %d2,%d0
46cc8: 242e fff8 movel %fp@(-8),%d2
46ccc: 246e fffc moveal %fp@(-4),%a2
46cd0: 4e5e unlk %fp <== NOT EXECUTED
00046bc0 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint16_t the_class
)
{
46bc0: 4e56 0000 linkw %fp,#0
46bc4: 2f03 movel %d3,%sp@-
46bc6: 362e 000e movew %fp@(14),%d3
46bca: 2f02 movel %d2,%sp@-
46bcc: 242e 0008 movel %fp@(8),%d2
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
46bd0: 4a43 tstw %d3
46bd2: 673a beqs 46c0e <_Objects_Get_information+0x4e> <== NEVER TAKEN
/*
* This call implicitly validates the_api so we do not call
* _Objects_Is_api_valid above here.
*/
the_class_api_maximum = _Objects_API_maximum_class( the_api );
46bd4: 2f02 movel %d2,%sp@-
46bd6: 4eb9 0004 a494 jsr 4a494 <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
46bdc: 588f addql #4,%sp
46bde: 4a80 tstl %d0
46be0: 672c beqs 46c0e <_Objects_Get_information+0x4e> <== NEVER TAKEN
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
46be2: 0283 0000 ffff andil #65535,%d3
46be8: b083 cmpl %d3,%d0
46bea: 6522 bcss 46c0e <_Objects_Get_information+0x4e> <== NEVER TAKEN
return NULL;
if ( !_Objects_Information_table[ the_api ] )
46bec: 41f9 0005 c674 lea 5c674 <_Objects_Information_table>,%a0
46bf2: 2070 2c00 moveal %a0@(00000000,%d2:l:4),%a0
46bf6: 4a88 tstl %a0
46bf8: 6714 beqs 46c0e <_Objects_Get_information+0x4e> <== NEVER TAKEN
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
46bfa: 2030 3c00 movel %a0@(00000000,%d3:l:4),%d0
if ( !info )
46bfe: 6710 beqs 46c10 <_Objects_Get_information+0x50> <== NEVER TAKEN
* Thus we may have 0 local instances and still have a valid object
* pointer.
*/
#if !defined(RTEMS_MULTIPROCESSING)
if ( info->maximum == 0 )
return NULL;
46c00: 2040 moveal %d0,%a0
46c02: 4a68 000e tstw %a0@(14)
46c06: 56c1 sne %d1
46c08: 49c1 extbl %d1
46c0a: c081 andl %d1,%d0
46c0c: 6002 bras 46c10 <_Objects_Get_information+0x50>
if ( the_class > (uint32_t) the_class_api_maximum )
return NULL;
if ( !_Objects_Information_table[ the_api ] )
return NULL;
46c0e: 4280 clrl %d0 <== NOT EXECUTED
if ( info->maximum == 0 )
return NULL;
#endif
return info;
}
46c10: 242e fff8 movel %fp@(-8),%d2
46c14: 262e fffc movel %fp@(-4),%d3
46c18: 4e5e unlk %fp <== NOT EXECUTED
00046c1c <_Objects_Get_isr_disable>:
{
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
46c1c: 7001 moveq #1,%d0
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
46c1e: 4e56 0000 linkw %fp,#0
46c22: 226e 0008 moveal %fp@(8),%a1
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
46c26: 90a9 0006 subl %a1@(6),%d0
46c2a: d0ae 000c addl %fp@(12),%d0
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
46c2e: 2f02 movel %d2,%sp@-
46c30: 206e 0010 moveal %fp@(16),%a0
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
_ISR_Disable( level );
46c34: 243c 0000 0700 movel #1792,%d2
46c3a: 40c1 movew %sr,%d1
46c3c: 8481 orl %d1,%d2
46c3e: 46c2 movew %d2,%sr
if ( information->maximum >= index ) {
46c40: 4282 clrl %d2
46c42: 3429 000e movew %a1@(14),%d2
46c46: b082 cmpl %d2,%d0
46c48: 621c bhis 46c66 <_Objects_Get_isr_disable+0x4a> <== NEVER TAKEN
if ( (the_object = information->local_table[ index ]) != NULL ) {
46c4a: 2269 0018 moveal %a1@(24),%a1
46c4e: 2031 0c00 movel %a1@(00000000,%d0:l:4),%d0
46c52: 670a beqs 46c5e <_Objects_Get_isr_disable+0x42> <== NEVER TAKEN
*location = OBJECTS_LOCAL;
46c54: 4290 clrl %a0@
*level_p = level;
46c56: 206e 0014 moveal %fp@(20),%a0
46c5a: 2081 movel %d1,%a0@
return the_object;
46c5c: 6010 bras 46c6e <_Objects_Get_isr_disable+0x52>
}
_ISR_Enable( level );
46c5e: 46c1 movew %d1,%sr <== NOT EXECUTED
*location = OBJECTS_ERROR;
46c60: 7201 moveq #1,%d1 <== NOT EXECUTED
46c62: 2081 movel %d1,%a0@ <== NOT EXECUTED
return NULL;
46c64: 6008 bras 46c6e <_Objects_Get_isr_disable+0x52> <== NOT EXECUTED
}
_ISR_Enable( level );
46c66: 46c1 movew %d1,%sr <== NOT EXECUTED
*location = OBJECTS_ERROR;
46c68: 7001 moveq #1,%d0 <== NOT EXECUTED
46c6a: 2080 movel %d0,%a0@ <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
46c6c: 4280 clrl %d0 <== NOT EXECUTED
#endif
}
46c6e: 241f movel %sp@+,%d2
46c70: 4e5e unlk %fp <== NOT EXECUTED
00047fb0 <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
47fb0: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
47fb4: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED
47fb8: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
47fbc: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
47fc0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
47fc4: 4a84 tstl %d4 <== NOT EXECUTED
47fc6: 6700 00a6 beqw 4806e <_Objects_Get_name_as_string+0xbe><== NOT EXECUTED
return NULL;
if ( name == NULL )
47fca: 4a82 tstl %d2 <== NOT EXECUTED
47fcc: 6700 00a2 beqw 48070 <_Objects_Get_name_as_string+0xc0><== NOT EXECUTED
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
47fd0: 4a83 tstl %d3 <== NOT EXECUTED
47fd2: 660a bnes 47fde <_Objects_Get_name_as_string+0x2e><== NOT EXECUTED
47fd4: 2079 0006 67a0 moveal 667a0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
47fda: 2628 0008 movel %a0@(8),%d3 <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
47fde: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47fe0: 4eb9 0004 7ed0 jsr 47ed0 <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
47fe6: 588f addql #4,%sp <== NOT EXECUTED
47fe8: 4a80 tstl %d0 <== NOT EXECUTED
47fea: 6700 0082 beqw 4806e <_Objects_Get_name_as_string+0xbe><== NOT EXECUTED
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
47fee: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47ff2: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47ff4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47ff6: 4eb9 0004 807c jsr 4807c <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
47ffc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
48000: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
48004: 6668 bnes 4806e <_Objects_Get_name_as_string+0xbe><== NOT EXECUTED
if ( information->is_string ) {
s = the_object->name.name_p;
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
48006: 2040 moveal %d0,%a0 <== NOT EXECUTED
lname[ 0 ] = (u32_name >> 24) & 0xff;
48008: 7618 moveq #24,%d3 <== NOT EXECUTED
lname[ 1 ] = (u32_name >> 16) & 0xff;
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
s = lname;
4800a: 43ee fff7 lea %fp@(-9),%a1 <== NOT EXECUTED
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
4800e: 5384 subql #1,%d4 <== NOT EXECUTED
if ( information->is_string ) {
s = the_object->name.name_p;
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
48010: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED
lname[ 0 ] = (u32_name >> 24) & 0xff;
48014: 2200 movel %d0,%d1 <== NOT EXECUTED
48016: e6a9 lsrl %d3,%d1 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
48018: 2042 moveal %d2,%a0 <== NOT EXECUTED
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
4801a: 1d41 fff7 moveb %d1,%fp@(-9) <== NOT EXECUTED
lname[ 1 ] = (u32_name >> 16) & 0xff;
4801e: 2200 movel %d0,%d1 <== NOT EXECUTED
48020: 4241 clrw %d1 <== NOT EXECUTED
48022: 4841 swap %d1 <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
48024: 1d40 fffa moveb %d0,%fp@(-6) <== NOT EXECUTED
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
48028: 1d41 fff8 moveb %d1,%fp@(-8) <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
4802c: 2200 movel %d0,%d1 <== NOT EXECUTED
4802e: e089 lsrl #8,%d1 <== NOT EXECUTED
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
48030: 4200 clrb %d0 <== NOT EXECUTED
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
lname[ 2 ] = (u32_name >> 8) & 0xff;
48032: 1d41 fff9 moveb %d1,%fp@(-7) <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
48036: 4281 clrl %d1 <== NOT EXECUTED
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
48038: 1d40 fffb moveb %d0,%fp@(-5) <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
4803c: 601e bras 4805c <_Objects_Get_name_as_string+0xac><== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
4803e: 4283 clrl %d3 <== NOT EXECUTED
48040: 1600 moveb %d0,%d3 <== NOT EXECUTED
48042: 2479 0005 d1bc moveal 5d1bc <__ctype_ptr__>,%a2 <== NOT EXECUTED
48048: 1632 3801 moveb %a2@(00000001,%d3:l),%d3 <== NOT EXECUTED
4804c: 49c3 extbl %d3 <== NOT EXECUTED
4804e: 0283 0000 0097 andil #151,%d3 <== NOT EXECUTED
48054: 6602 bnes 48058 <_Objects_Get_name_as_string+0xa8><== NOT EXECUTED
48056: 702a moveq #42,%d0 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
48058: 5281 addql #1,%d1 <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
4805a: 10c0 moveb %d0,%a0@+ <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
4805c: b881 cmpl %d1,%d4 <== NOT EXECUTED
4805e: 6304 blss 48064 <_Objects_Get_name_as_string+0xb4><== NOT EXECUTED
48060: 1019 moveb %a1@+,%d0 <== NOT EXECUTED
48062: 66da bnes 4803e <_Objects_Get_name_as_string+0x8e><== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
48064: 4210 clrb %a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
48066: 4eb9 0004 8abe jsr 48abe <_Thread_Enable_dispatch> <== NOT EXECUTED
return name;
4806c: 6002 bras 48070 <_Objects_Get_name_as_string+0xc0><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
/* not supported */
#endif
case OBJECTS_ERROR:
return NULL;
4806e: 4282 clrl %d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
return name;
}
return NULL; /* unreachable path */
}
48070: 2002 movel %d2,%d0 <== NOT EXECUTED
48072: 4cee 041c ffe4 moveml %fp@(-28),%d2-%d4/%a2 <== NOT EXECUTED
48078: 4e5e unlk %fp <== NOT EXECUTED
00046e00 <_Objects_Get_next>:
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
46e00: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
46e04: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED
46e08: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
46e0c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46e10: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
46e14: 286e 0014 moveal %fp@(20),%a4 <== NOT EXECUTED
Objects_Control *object;
Objects_Id next_id;
if ( !information )
46e18: 4a8b tstl %a3 <== NOT EXECUTED
46e1a: 6744 beqs 46e60 <_Objects_Get_next+0x60> <== NOT EXECUTED
return NULL;
if ( !location_p )
46e1c: 4a8a tstl %a2 <== NOT EXECUTED
46e1e: 6740 beqs 46e60 <_Objects_Get_next+0x60> <== NOT EXECUTED
return NULL;
if ( !next_id_p )
46e20: 4a8c tstl %a4 <== NOT EXECUTED
46e22: 673c beqs 46e60 <_Objects_Get_next+0x60> <== NOT EXECUTED
return NULL;
if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)
46e24: 4a42 tstw %d2 <== NOT EXECUTED
46e26: 6604 bnes 46e2c <_Objects_Get_next+0x2c> <== NOT EXECUTED
next_id = information->minimum_id;
46e28: 242b 0006 movel %a3@(6),%d2 <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
46e2c: 4bf9 0004 6e6c lea 46e6c <_Objects_Get>,%a5 <== NOT EXECUTED
else
next_id = id;
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
46e32: 4281 clrl %d1 <== NOT EXECUTED
46e34: 4280 clrl %d0 <== NOT EXECUTED
46e36: 322b 000e movew %a3@(14),%d1 <== NOT EXECUTED
46e3a: 3002 movew %d2,%d0 <== NOT EXECUTED
46e3c: b081 cmpl %d1,%d0 <== NOT EXECUTED
46e3e: 630a blss 46e4a <_Objects_Get_next+0x4a> <== NOT EXECUTED
{
*location_p = OBJECTS_ERROR;
46e40: 7201 moveq #1,%d1 <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
46e42: 70ff moveq #-1,%d0 <== NOT EXECUTED
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
{
*location_p = OBJECTS_ERROR;
46e44: 2481 movel %d1,%a2@ <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
46e46: 2880 movel %d0,%a4@ <== NOT EXECUTED
46e48: 6016 bras 46e60 <_Objects_Get_next+0x60> <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
46e4a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46e4c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
next_id++;
46e4e: 5282 addql #1,%d2 <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
46e50: 2f0b movel %a3,%sp@- <== NOT EXECUTED
46e52: 4e95 jsr %a5@ <== NOT EXECUTED
next_id++;
} while (*location_p != OBJECTS_LOCAL);
46e54: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46e58: 4a92 tstl %a2@ <== NOT EXECUTED
46e5a: 66d6 bnes 46e32 <_Objects_Get_next+0x32> <== NOT EXECUTED
*next_id_p = next_id;
46e5c: 2882 movel %d2,%a4@ <== NOT EXECUTED
return object;
46e5e: 6002 bras 46e62 <_Objects_Get_next+0x62> <== NOT EXECUTED
if ( !location_p )
return NULL;
if ( !next_id_p )
return NULL;
46e60: 4280 clrl %d0 <== NOT EXECUTED
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
return 0;
}
46e62: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED
46e68: 4e5e unlk %fp <== NOT EXECUTED
000542a0 <_Objects_Get_no_protection>:
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
542a0: 7001 moveq #1,%d0 <== NOT EXECUTED
if ( information->maximum >= index ) {
542a2: 4281 clrl %d1 <== NOT EXECUTED
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
542a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
542a8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
542ac: 90a8 0006 subl %a0@(6),%d0 <== NOT EXECUTED
542b0: d0ae 000c addl %fp@(12),%d0 <== NOT EXECUTED
if ( information->maximum >= index ) {
542b4: 3228 000e movew %a0@(14),%d1 <== NOT EXECUTED
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
542b8: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
if ( information->maximum >= index ) {
542bc: b081 cmpl %d1,%d0 <== NOT EXECUTED
542be: 620e bhis 542ce <_Objects_Get_no_protection+0x2e><== NOT EXECUTED
if ( (the_object = information->local_table[ index ]) != NULL ) {
542c0: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED
542c4: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
542c8: 6704 beqs 542ce <_Objects_Get_no_protection+0x2e><== NOT EXECUTED
*location = OBJECTS_LOCAL;
542ca: 4291 clrl %a1@ <== NOT EXECUTED
return the_object;
542cc: 6006 bras 542d4 <_Objects_Get_no_protection+0x34><== NOT EXECUTED
/*
* This isn't supported or required yet for Global objects so
* if it isn't local, we don't find it.
*/
*location = OBJECTS_ERROR;
542ce: 7001 moveq #1,%d0 <== NOT EXECUTED
542d0: 2280 movel %d0,%a1@ <== NOT EXECUTED
return NULL;
542d2: 4280 clrl %d0 <== NOT EXECUTED
}
542d4: 4e5e unlk %fp <== NOT EXECUTED
00047ba0 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
47ba0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
47ba4: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
47ba8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
47baa: 4a81 tstl %d1 <== NOT EXECUTED
47bac: 660a bnes 47bb8 <_Objects_Id_to_name+0x18> <== NOT EXECUTED
47bae: 2079 0005 dd30 moveal 5dd30 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
47bb4: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED
47bb8: 7418 moveq #24,%d2 <== NOT EXECUTED
47bba: 2001 movel %d1,%d0 <== NOT EXECUTED
47bbc: e4a8 lsrl %d2,%d0 <== NOT EXECUTED
47bbe: 143c 0007 moveb #7,%d2 <== NOT EXECUTED
47bc2: c082 andl %d2,%d0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
47bc4: 143c 0002 moveb #2,%d2 <== NOT EXECUTED
47bc8: 2040 moveal %d0,%a0 <== NOT EXECUTED
47bca: 5388 subql #1,%a0 <== NOT EXECUTED
47bcc: b488 cmpl %a0,%d2 <== NOT EXECUTED
47bce: 6538 bcss 47c08 <_Objects_Id_to_name+0x68> <== NOT EXECUTED
47bd0: 6040 bras 47c12 <_Objects_Id_to_name+0x72> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
47bd2: 2001 movel %d1,%d0 <== NOT EXECUTED
47bd4: 741b moveq #27,%d2 <== NOT EXECUTED
47bd6: e4a8 lsrl %d2,%d0 <== NOT EXECUTED
if ( !_Objects_Information_table[ the_api ] )
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
47bd8: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
if ( !information )
47bdc: 672a beqs 47c08 <_Objects_Id_to_name+0x68> <== NOT EXECUTED
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
47bde: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47be2: 2f01 movel %d1,%sp@- <== NOT EXECUTED
47be4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47be6: 4eb9 0004 7b40 jsr 47b40 <_Objects_Get> <== NOT EXECUTED
if ( !the_object )
47bec: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47bf0: 4a80 tstl %d0 <== NOT EXECUTED
47bf2: 6714 beqs 47c08 <_Objects_Id_to_name+0x68> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
47bf4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
47bf8: 2240 moveal %d0,%a1 <== NOT EXECUTED
47bfa: 20a9 000c movel %a1@(12),%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
47bfe: 4eb9 0004 867a jsr 4867a <_Thread_Enable_dispatch> <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
47c04: 4280 clrl %d0 <== NOT EXECUTED
47c06: 6002 bras 47c0a <_Objects_Id_to_name+0x6a> <== NOT EXECUTED
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
return OBJECTS_INVALID_ID;
47c08: 7003 moveq #3,%d0 <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
47c0a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
47c0e: 4e5e unlk %fp <== NOT EXECUTED
47c10: 4e75 rts <== NOT EXECUTED
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
47c12: 41f9 0005 db2c lea 5db2c <_Objects_Information_table>,%a0 <== NOT EXECUTED
47c18: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED
47c1c: 4a88 tstl %a0 <== NOT EXECUTED
47c1e: 66b2 bnes 47bd2 <_Objects_Id_to_name+0x32> <== NOT EXECUTED
47c20: 60e6 bras 47c08 <_Objects_Id_to_name+0x68> <== NOT EXECUTED
...
00046cd4 <_Objects_Initialize_information>:
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
46cd4: 4e56 fff4 linkw %fp,#-12
46cd8: 206e 0008 moveal %fp@(8),%a0
46cdc: 48d7 001c moveml %d2-%d4,%sp@
46ce0: 4284 clrl %d4
46ce2: 382e 001a movew %fp@(26),%d4
46ce6: 202e 000c movel %fp@(12),%d0
46cea: 2244 moveal %d4,%a1
46cec: 262e 0010 movel %fp@(16),%d3
information->the_class = the_class;
information->size = size;
information->local_table = 0;
information->inactive_per_block = 0;
information->object_blocks = 0;
information->inactive = 0;
46cf0: 4244 clrw %d4
uint32_t index;
#endif
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
46cf2: 2149 0014 movel %a1,%a0@(20)
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
46cf6: 43f9 0005 c674 lea 5c674 <_Objects_Information_table>,%a1
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
46cfc: 222e 0014 movel %fp@(20),%d1
#if defined(RTEMS_MULTIPROCESSING)
uint32_t index;
#endif
information->the_api = the_api;
information->the_class = the_class;
46d00: 3143 0004 movew %d3,%a0@(4)
information->size = size;
information->local_table = 0;
information->inactive_per_block = 0;
information->object_blocks = 0;
information->inactive = 0;
46d04: 3144 0028 movew %d4,%a0@(40)
/*
* Set the maximum value to 0. It will be updated when objects are
* added to the inactive set from _Objects_Extend_information()
*/
information->maximum = 0;
46d08: 3144 000e movew %d4,%a0@(14)
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
46d0c: 2271 0c00 moveal %a1@(00000000,%d0:l:4),%a1
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
46d10: 2801 movel %d1,%d4
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
46d12: 242e 0020 movel %fp@(32),%d2
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
46d16: 0283 0000 ffff andil #65535,%d3
uint32_t maximum_per_allocation;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t index;
#endif
information->the_api = the_api;
46d1c: 2080 movel %d0,%a0@
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
46d1e: d884 addl %d4,%d4
46d20: 9984 subxl %d4,%d4
46d22: 4484 negl %d4
#endif
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
information->local_table = 0;
46d24: 42a8 0018 clrl %a0@(24)
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
46d28: 0881 001f bclr #31,%d1
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
information->local_table = 0;
information->inactive_per_block = 0;
46d2c: 42a8 002a clrl %a0@(42)
information->object_blocks = 0;
46d30: 42a8 002e clrl %a0@(46)
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
46d34: 2388 3c00 movel %a0,%a1@(00000000,%d3:l:4)
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
46d38: 1144 0010 moveb %d4,%a0@(16)
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
46d3c: 4a84 tstl %d4
46d3e: 6714 beqs 46d54 <_Objects_Initialize_information+0x80>
46d40: 4a81 tstl %d1
46d42: 6610 bnes 46d54 <_Objects_Initialize_information+0x80>
_Internal_error_Occurred(
46d44: 4878 0013 pea 13 <INVALID_OPERATION+0x3>
46d48: 4878 0001 pea 1 <ADD>
46d4c: 42a7 clrl %sp@-
46d4e: 4eb9 0004 6768 jsr 46768 <_Internal_error_Occurred>
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46d54: 7818 moveq #24,%d4
information->allocation_size = maximum_per_allocation;
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
46d56: 43f9 0005 be74 lea 5be74 <null_local_table.3204>,%a1
46d5c: e9a8 lsll %d4,%d0
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46d5e: 183c 001b moveb #27,%d4
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46d62: 08c0 0010 bset #16,%d0
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46d66: e9ab lsll %d4,%d3
}
/*
* The allocation unit is the maximum value
*/
information->allocation_size = maximum_per_allocation;
46d68: 3141 0012 movew %d1,%a0@(18)
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
46d6c: 2149 0018 movel %a1,%a0@(24)
46d70: 8083 orl %d3,%d0
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
46d72: 4a81 tstl %d1
46d74: 56c3 sne %d3
46d76: 49c3 extbl %d3
46d78: 4483 negl %d3
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46d7a: 8083 orl %d3,%d0
46d7c: 2140 0006 movel %d0,%a0@(6)
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
46d80: 7003 moveq #3,%d0
46d82: c082 andl %d2,%d0
46d84: 670a beqs 46d90 <_Objects_Initialize_information+0xbc><== ALWAYS TAKEN
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
46d86: 2002 movel %d2,%d0 <== NOT EXECUTED
46d88: 5880 addql #4,%d0 <== NOT EXECUTED
46d8a: 74fc moveq #-4,%d2 <== NOT EXECUTED
46d8c: c082 andl %d2,%d0 <== NOT EXECUTED
46d8e: 6002 bras 46d92 <_Objects_Initialize_information+0xbe><== NOT EXECUTED
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
46d90: 2002 movel %d2,%d0
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
46d92: 43e8 0020 lea %a0@(32),%a1
46d96: 2149 001c movel %a1,%a0@(28)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
46d9a: 43e8 001c lea %a0@(28),%a1
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
46d9e: 3140 0032 movew %d0,%a0@(50)
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
46da2: 42a8 0020 clrl %a0@(32)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
46da6: 2149 0024 movel %a1,%a0@(36)
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
46daa: 4a81 tstl %d1
46dac: 6712 beqs 46dc0 <_Objects_Initialize_information+0xec>
/*
* Always have the maximum size available so the current performance
* figures are create are met. If the user moves past the maximum
* number then a performance hit is taken.
*/
_Objects_Extend_information( information );
46dae: 2d48 0008 movel %a0,%fp@(8)
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
46db2: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4
46db8: 4e5e unlk %fp
/*
* Always have the maximum size available so the current performance
* figures are create are met. If the user moves past the maximum
* number then a performance hit is taken.
*/
_Objects_Extend_information( information );
46dba: 4ef9 0004 68c4 jmp 468c4 <_Objects_Extend_information>
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
46dc0: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4
46dc6: 4e5e unlk %fp
...
00046ddc <_Objects_Name_to_id_u32>:
Objects_Information *information,
uint32_t name,
uint32_t node,
Objects_Id *id
)
{
46ddc: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
46de0: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
46de4: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
46de8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46dec: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
46df0: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
46df4: 4a8a tstl %a2 <== NOT EXECUTED
46df6: 674a beqs 46e42 <_Objects_Name_to_id_u32+0x66> <== NOT EXECUTED
return OBJECTS_INVALID_ADDRESS;
if ( name == 0 )
46df8: 4a82 tstl %d2 <== NOT EXECUTED
46dfa: 674a beqs 46e46 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
46dfc: 3229 000e movew %a1@(14),%d1 <== NOT EXECUTED
46e00: 6744 beqs 46e46 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
46e02: 4a80 tstl %d0 <== NOT EXECUTED
46e04: 672e beqs 46e34 <_Objects_Name_to_id_u32+0x58> <== NOT EXECUTED
(node == OBJECTS_SEARCH_ALL_NODES ||
46e06: 0c80 7fff ffff cmpil #2147483647,%d0 <== NOT EXECUTED
46e0c: 6726 beqs 46e34 <_Objects_Name_to_id_u32+0x58> <== NOT EXECUTED
node == OBJECTS_SEARCH_LOCAL_NODE ||
46e0e: 7601 moveq #1,%d3 <== NOT EXECUTED
46e10: b680 cmpl %d0,%d3 <== NOT EXECUTED
46e12: 6632 bnes 46e46 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
46e14: 601e bras 46e34 <_Objects_Name_to_id_u32+0x58> <== NOT EXECUTED
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
the_object = information->local_table[ index ];
46e16: 2069 0018 moveal %a1@(24),%a0 <== NOT EXECUTED
46e1a: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED
if ( !the_object )
46e1e: 4a88 tstl %a0 <== NOT EXECUTED
46e20: 670e beqs 46e30 <_Objects_Name_to_id_u32+0x54> <== NOT EXECUTED
continue;
if ( name == the_object->name.name_u32 ) {
46e22: b4a8 000c cmpl %a0@(12),%d2 <== NOT EXECUTED
46e26: 6608 bnes 46e30 <_Objects_Name_to_id_u32+0x54> <== NOT EXECUTED
*id = the_object->id;
46e28: 24a8 0008 movel %a0@(8),%a2@ <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
46e2c: 4280 clrl %d0 <== NOT EXECUTED
46e2e: 6018 bras 46e48 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED
_Objects_Is_local_node( node )
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
46e30: 5280 addql #1,%d0 <== NOT EXECUTED
46e32: 6008 bras 46e3c <_Objects_Name_to_id_u32+0x60> <== NOT EXECUTED
search_local_node = false;
if ( information->maximum != 0 &&
(node == OBJECTS_SEARCH_ALL_NODES ||
node == OBJECTS_SEARCH_LOCAL_NODE ||
46e34: 7001 moveq #1,%d0 <== NOT EXECUTED
_Objects_Is_local_node( node )
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
46e36: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED
46e3c: b280 cmpl %d0,%d1 <== NOT EXECUTED
46e3e: 64d6 bccs 46e16 <_Objects_Name_to_id_u32+0x3a> <== NOT EXECUTED
46e40: 6004 bras 46e46 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
#endif
/* ASSERT: information->is_string == false */
if ( !id )
return OBJECTS_INVALID_ADDRESS;
46e42: 7002 moveq #2,%d0 <== NOT EXECUTED
46e44: 6002 bras 46e48 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED
return OBJECTS_INVALID_NAME;
name_for_mp.name_u32 = name;
return _Objects_MP_Global_name_search( information, name_for_mp, node, id );
#else
return OBJECTS_INVALID_NAME;
46e46: 7001 moveq #1,%d0 <== NOT EXECUTED
#endif
}
46e48: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED
46e4c: 4e5e unlk %fp <== NOT EXECUTED
000489d8 <_Objects_Set_name>:
{
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
489d8: 4280 clrl %d0 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
489da: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
489de: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
489e2: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
489e6: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
489ea: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
489ee: 7601 moveq #1,%d3 <== NOT EXECUTED
{
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
489f0: 2f00 movel %d0,%sp@- <== NOT EXECUTED
489f2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
489f4: 4eb9 0004 eb70 jsr 4eb70 <strnlen> <== NOT EXECUTED
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
489fa: 508f addql #8,%sp <== NOT EXECUTED
489fc: 7218 moveq #24,%d1 <== NOT EXECUTED
489fe: 1412 moveb %a2@,%d2 <== NOT EXECUTED
48a00: 49c2 extbl %d2 <== NOT EXECUTED
48a02: e3aa lsll %d1,%d2 <== NOT EXECUTED
48a04: 7220 moveq #32,%d1 <== NOT EXECUTED
48a06: 4841 swap %d1 <== NOT EXECUTED
48a08: b680 cmpl %d0,%d3 <== NOT EXECUTED
48a0a: 640a bccs 48a16 <_Objects_Set_name+0x3e> <== NOT EXECUTED
48a0c: 122a 0001 moveb %a2@(1),%d1 <== NOT EXECUTED
48a10: 49c1 extbl %d1 <== NOT EXECUTED
48a12: 4841 swap %d1 <== NOT EXECUTED
48a14: 4241 clrw %d1 <== NOT EXECUTED
48a16: 7602 moveq #2,%d3 <== NOT EXECUTED
48a18: 8481 orl %d1,%d2 <== NOT EXECUTED
48a1a: 223c 0000 2000 movel #8192,%d1 <== NOT EXECUTED
48a20: b680 cmpl %d0,%d3 <== NOT EXECUTED
48a22: 6408 bccs 48a2c <_Objects_Set_name+0x54> <== NOT EXECUTED
48a24: 122a 0002 moveb %a2@(2),%d1 <== NOT EXECUTED
48a28: 49c1 extbl %d1 <== NOT EXECUTED
48a2a: e189 lsll #8,%d1 <== NOT EXECUTED
48a2c: 8282 orl %d2,%d1 <== NOT EXECUTED
48a2e: 7403 moveq #3,%d2 <== NOT EXECUTED
48a30: b480 cmpl %d0,%d2 <== NOT EXECUTED
48a32: 6408 bccs 48a3c <_Objects_Set_name+0x64> <== NOT EXECUTED
48a34: 102a 0003 moveb %a2@(3),%d0 <== NOT EXECUTED
48a38: 49c0 extbl %d0 <== NOT EXECUTED
48a3a: 6002 bras 48a3e <_Objects_Set_name+0x66> <== NOT EXECUTED
48a3c: 7020 moveq #32,%d0 <== NOT EXECUTED
48a3e: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
48a42: 8280 orl %d0,%d1 <== NOT EXECUTED
);
}
return true;
}
48a44: 7001 moveq #1,%d0 <== NOT EXECUTED
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
48a46: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED
);
}
return true;
}
48a4a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
48a50: 4e5e unlk %fp <== NOT EXECUTED
00046e50 <_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) /
46e50: 4280 clrl %d0 <== NOT EXECUTED
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
46e52: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
46e56: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
46e5a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
46e5e: 4283 clrl %d3 <== NOT EXECUTED
block_count = (information->maximum - index_base) /
46e60: 4284 clrl %d4 <== NOT EXECUTED
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
46e62: 362a 0008 movew %a2@(8),%d3 <== NOT EXECUTED
block_count = (information->maximum - index_base) /
46e66: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED
46e6a: 382a 0012 movew %a2@(18),%d4 <== NOT EXECUTED
46e6e: 9083 subl %d3,%d0 <== NOT EXECUTED
46e70: 4c44 0000 remul %d4,%d0,%d0 <== NOT EXECUTED
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
46e74: 4281 clrl %d1 <== NOT EXECUTED
46e76: 6072 bras 46eea <_Objects_Shrink_information+0x9a><== NOT EXECUTED
46e78: 2401 movel %d1,%d2 <== NOT EXECUTED
46e7a: e58a lsll #2,%d2 <== NOT EXECUTED
if ( information->inactive_per_block[ block ] ==
46e7c: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED
46e80: b8b0 2800 cmpl %a0@(00000000,%d2:l),%d4 <== NOT EXECUTED
46e84: 6660 bnes 46ee6 <_Objects_Shrink_information+0x96><== NOT EXECUTED
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) _Chain_First( &information->Inactive );
46e86: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED
*/
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 );
46e8a: 47f9 0004 5f98 lea 45f98 <_Chain_Extract>,%a3 <== NOT EXECUTED
46e90: 6002 bras 46e94 <_Objects_Shrink_information+0x44><== NOT EXECUTED
index = _Objects_Get_index( the_object->id );
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
46e92: 2044 moveal %d4,%a0 <== NOT EXECUTED
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) _Chain_First( &information->Inactive );
do {
index = _Objects_Get_index( the_object->id );
46e94: 4280 clrl %d0 <== NOT EXECUTED
46e96: 3028 000a movew %a0@(10),%d0 <== NOT EXECUTED
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
46e9a: 2810 movel %a0@,%d4 <== NOT EXECUTED
if ((index >= index_base) &&
46e9c: b680 cmpl %d0,%d3 <== NOT EXECUTED
46e9e: 6212 bhis 46eb2 <_Objects_Shrink_information+0x62><== NOT EXECUTED
(index < (index_base + information->allocation_size))) {
46ea0: 4281 clrl %d1 <== NOT EXECUTED
46ea2: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED
46ea6: d283 addl %d3,%d1 <== NOT EXECUTED
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
if ((index >= index_base) &&
46ea8: b280 cmpl %d0,%d1 <== NOT EXECUTED
46eaa: 6306 blss 46eb2 <_Objects_Shrink_information+0x62><== NOT EXECUTED
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
46eac: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46eae: 4e93 jsr %a3@ <== NOT EXECUTED
46eb0: 588f addql #4,%sp <== NOT EXECUTED
}
}
while ( the_object );
46eb2: 4a84 tstl %d4 <== NOT EXECUTED
46eb4: 66dc bnes 46e92 <_Objects_Shrink_information+0x42><== NOT EXECUTED
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
46eb6: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED
46eba: 2f30 2800 movel %a0@(00000000,%d2:l),%sp@- <== NOT EXECUTED
46ebe: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
information->object_blocks[ block ] = NULL;
46ec4: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
return;
46ec8: 588f addql #4,%sp <== NOT EXECUTED
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
46eca: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED
information->inactive_per_block[ block ] = 0;
46ece: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED
information->inactive -= information->allocation_size;
46ed2: 302a 0028 movew %a2@(40),%d0 <== NOT EXECUTED
46ed6: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED
* 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;
46eda: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED
information->inactive -= information->allocation_size;
46ede: 9081 subl %d1,%d0 <== NOT EXECUTED
46ee0: 3540 0028 movew %d0,%a2@(40) <== NOT EXECUTED
return;
46ee4: 6008 bras 46eee <_Objects_Shrink_information+0x9e><== NOT EXECUTED
}
index_base += information->allocation_size;
46ee6: d684 addl %d4,%d3 <== NOT EXECUTED
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
46ee8: 5281 addql #1,%d1 <== NOT EXECUTED
46eea: b081 cmpl %d1,%d0 <== NOT EXECUTED
46eec: 628a bhis 46e78 <_Objects_Shrink_information+0x28><== NOT EXECUTED
return;
}
index_base += information->allocation_size;
}
}
46eee: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
46ef4: 4e5e unlk %fp <== NOT EXECUTED
000471d8 <_Protected_heap_Extend>:
bool _Protected_heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
471d8: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
bool extend_ok;
uintptr_t amount_extended;
_RTEMS_Lock_allocator();
471dc: 2f39 0005 cdc4 movel 5cdc4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
471e2: 4eb9 0004 61e0 jsr 461e0 <_API_Mutex_Lock> <== NOT EXECUTED
extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended);
471e8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
471ec: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
471f0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
471f4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
471f8: 4eb9 0004 a624 jsr 4a624 <_Heap_Extend> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
471fe: 2f39 0005 cdc4 movel 5cdc4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
47204: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
47208: 4eb9 0004 6240 jsr 46240 <_API_Mutex_Unlock> <== NOT EXECUTED
return extend_ok;
}
4720e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
47212: 4e5e unlk %fp <== NOT EXECUTED
...
0004b2c0 <_Protected_heap_Get_free_information>:
bool _Protected_heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
4b2c0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
/*
* TBD: _Heap_Get_free_information does not error check or return status.
*/
_RTEMS_Lock_allocator();
4b2c4: 2f39 0006 2024 movel 62024 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b2ca: 4eb9 0004 99d4 jsr 499d4 <_API_Mutex_Lock> <== NOT EXECUTED
_Heap_Get_free_information( the_heap, info );
4b2d0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4b2d4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4b2d8: 4eb9 0004 e8c8 jsr 4e8c8 <_Heap_Get_free_information> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
4b2de: 2f39 0006 2024 movel 62024 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b2e4: 4eb9 0004 9a34 jsr 49a34 <_API_Mutex_Unlock> <== NOT EXECUTED
return true;
}
4b2ea: 7001 moveq #1,%d0 <== NOT EXECUTED
4b2ec: 4e5e unlk %fp <== NOT EXECUTED
00047598 <_Protected_heap_Get_information>:
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
47598: 4e56 0000 linkw %fp,#0
4759c: 2f03 movel %d3,%sp@-
4759e: 262e 000c movel %fp@(12),%d3
475a2: 2f02 movel %d2,%sp@-
475a4: 242e 0008 movel %fp@(8),%d2
if ( !the_heap )
475a8: 672e beqs 475d8 <_Protected_heap_Get_information+0x40><== NEVER TAKEN
return false;
if ( !the_info )
475aa: 4a83 tstl %d3
475ac: 672a beqs 475d8 <_Protected_heap_Get_information+0x40><== NEVER TAKEN
return false;
_RTEMS_Lock_allocator();
475ae: 2f39 0005 d0a8 movel 5d0a8 <_RTEMS_Allocator_Mutex>,%sp@-
475b4: 4eb9 0004 6568 jsr 46568 <_API_Mutex_Lock>
_Heap_Get_information( the_heap, the_info );
475ba: 2f03 movel %d3,%sp@-
475bc: 2f02 movel %d2,%sp@-
475be: 4eb9 0004 adf0 jsr 4adf0 <_Heap_Get_information>
_RTEMS_Unlock_allocator();
475c4: 2f39 0005 d0a8 movel 5d0a8 <_RTEMS_Allocator_Mutex>,%sp@-
475ca: 4eb9 0004 65c8 jsr 465c8 <_API_Mutex_Unlock>
return true;
475d0: 4fef 0010 lea %sp@(16),%sp
475d4: 7001 moveq #1,%d0
475d6: 6002 bras 475da <_Protected_heap_Get_information+0x42>
{
if ( !the_heap )
return false;
if ( !the_info )
return false;
475d8: 4200 clrb %d0
_RTEMS_Lock_allocator();
_Heap_Get_information( the_heap, the_info );
_RTEMS_Unlock_allocator();
return true;
}
475da: 242e fff8 movel %fp@(-8),%d2
475de: 262e fffc movel %fp@(-4),%d3
475e2: 4e5e unlk %fp
...
000592c4 <_Protected_heap_Resize_block>:
bool _Protected_heap_Resize_block(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
592c4: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
592c8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Heap_Resize_status status;
uintptr_t old_mem_size;
uintptr_t avail_mem_size;
_RTEMS_Lock_allocator();
592ca: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
592d0: 4eb9 0004 5ecc jsr 45ecc <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Resize_block(
592d6: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
592da: 486e fffc pea %fp@(-4) <== NOT EXECUTED
592de: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
592e2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
592e6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
592ea: 4eb9 0005 9310 jsr 59310 <_Heap_Resize_block> <== NOT EXECUTED
the_heap, starting_address, size, &old_mem_size, &avail_mem_size );
_RTEMS_Unlock_allocator();
592f0: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
Heap_Resize_status status;
uintptr_t old_mem_size;
uintptr_t avail_mem_size;
_RTEMS_Lock_allocator();
status = _Heap_Resize_block(
592f6: 2400 movel %d0,%d2 <== NOT EXECUTED
the_heap, starting_address, size, &old_mem_size, &avail_mem_size );
_RTEMS_Unlock_allocator();
592f8: 4eb9 0004 5f2c jsr 45f2c <_API_Mutex_Unlock> <== NOT EXECUTED
return (status == HEAP_RESIZE_SUCCESSFUL);
592fe: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
59302: 4a82 tstl %d2 <== NOT EXECUTED
59304: 57c0 seq %d0 <== NOT EXECUTED
}
59306: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
5930a: 4480 negl %d0 <== NOT EXECUTED
5930c: 4e5e unlk %fp <== NOT EXECUTED
0004b39c <_Protected_heap_Walk>:
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
4b39c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
4b3a0: 2039 0006 1f64 movel 61f64 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
4b3a6: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4b3aa: 4284 clrl %d4 <== NOT EXECUTED
4b3ac: 182e 0013 moveb %fp@(19),%d4 <== NOT EXECUTED
4b3b0: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4b3b4: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
4b3b8: 4a80 tstl %d0 <== NOT EXECUTED
4b3ba: 663a bnes 4b3f6 <_Protected_heap_Walk+0x5a> <== NOT EXECUTED
_RTEMS_Lock_allocator();
4b3bc: 2f39 0006 2024 movel 62024 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b3c2: 4eb9 0004 99d4 jsr 499d4 <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Walk( the_heap, source, do_dump );
4b3c8: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4b3ca: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4b3cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4b3ce: 4eb9 0004 a6e2 jsr 4a6e2 <_Heap_Walk> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
4b3d4: 2f39 0006 2024 movel 62024 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b3da: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
4b3de: 4eb9 0004 9a34 jsr 49a34 <_API_Mutex_Unlock> <== NOT EXECUTED
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
4b3e4: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
4b3e8: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
4b3ec: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4b3f2: 4e5e unlk %fp <== NOT EXECUTED
4b3f4: 4e75 rts <== NOT EXECUTED
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
4b3f6: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED
4b3fa: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
4b3fe: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return status;
}
4b402: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4b408: 4e5e unlk %fp <== NOT EXECUTED
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
4b40a: 4ef9 0004 a6e2 jmp 4a6e2 <_Heap_Walk> <== NOT EXECUTED
00049f28 <_RTEMS_Tasks_Invoke_task_variable_dtor>:
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
)
{
49f28: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
if (_Thread_Is_executing(the_thread)) {
49f2c: 2039 0005 c878 movel 5c878 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
)
{
49f32: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49f34: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
49f38: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED
if (_Thread_Is_executing(the_thread)) {
49f3c: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
49f40: 660c bnes 49f4e <_RTEMS_Tasks_Invoke_task_variable_dtor+0x26><== NOT EXECUTED
value = *tvp->ptr;
49f42: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED
49f46: 2011 movel %a1@,%d0 <== NOT EXECUTED
*tvp->ptr = tvp->gval;
49f48: 22aa 0008 movel %a2@(8),%a1@ <== NOT EXECUTED
49f4c: 6004 bras 49f52 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x2a><== NOT EXECUTED
} else {
value = tvp->tval;
49f4e: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED
}
if ( dtor )
49f52: 4a88 tstl %a0 <== NOT EXECUTED
49f54: 6706 beqs 49f5c <_RTEMS_Tasks_Invoke_task_variable_dtor+0x34><== NOT EXECUTED
(*dtor)(value);
49f56: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49f58: 4e90 jsr %a0@ <== NOT EXECUTED
49f5a: 588f addql #4,%sp <== NOT EXECUTED
_Workspace_Free(tvp);
49f5c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
49f60: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
49f64: 4e5e unlk %fp <== NOT EXECUTED
}
if ( dtor )
(*dtor)(value);
_Workspace_Free(tvp);
49f66: 4ef9 0004 86dc jmp 486dc <_Workspace_Free> <== NOT EXECUTED
00049e68 <_RTEMS_tasks_Create_extension>:
bool _RTEMS_tasks_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
{
49e68: 4e56 0000 linkw %fp,#0
49e6c: 2f0a movel %a2,%sp@-
49e6e: 246e 000c moveal %fp@(12),%a2
/*
* Notepads must be the last entry in the structure and they
* can be left off if disabled in the configuration.
*/
to_allocate = sizeof( RTEMS_API_Control );
if ( !rtems_configuration_get_notepads_enabled() )
49e72: 4a39 0005 ae64 tstb 5ae64 <Configuration_RTEMS_API+0x4>
49e78: 6704 beqs 49e7e <_RTEMS_tasks_Create_extension+0x16>
/*
* Notepads must be the last entry in the structure and they
* can be left off if disabled in the configuration.
*/
to_allocate = sizeof( RTEMS_API_Control );
49e7a: 705e moveq #94,%d0
49e7c: 6002 bras 49e80 <_RTEMS_tasks_Create_extension+0x18>
if ( !rtems_configuration_get_notepads_enabled() )
to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t));
49e7e: 701e moveq #30,%d0
api = _Workspace_Allocate( to_allocate );
49e80: 2f00 movel %d0,%sp@-
49e82: 4eb9 0004 86c0 jsr 486c0 <_Workspace_Allocate>
if ( !api )
49e88: 588f addql #4,%sp
*/
to_allocate = sizeof( RTEMS_API_Control );
if ( !rtems_configuration_get_notepads_enabled() )
to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t));
api = _Workspace_Allocate( to_allocate );
49e8a: 2040 moveal %d0,%a0
if ( !api )
49e8c: 4a80 tstl %d0
49e8e: 673e beqs 49ece <_RTEMS_tasks_Create_extension+0x66><== NEVER TAKEN
return false;
created->API_Extensions[ THREAD_API_RTEMS ] = api;
49e90: 2540 00fc movel %d0,%a2@(252)
*/
RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = false;
49e94: 4200 clrb %d0
api->pending_events = EVENT_SETS_NONE_PENDING;
49e96: 4290 clrl %a0@
49e98: 1140 0008 moveb %d0,%a0@(8)
api->event_condition = 0;
49e9c: 42a8 0004 clrl %a0@(4)
information->handler = NULL;
49ea0: 42a8 000a clrl %a0@(10)
information->mode_set = RTEMS_DEFAULT_MODES;
49ea4: 42a8 000e clrl %a0@(14)
information->signals_posted = 0;
49ea8: 42a8 0012 clrl %a0@(18)
information->signals_pending = 0;
49eac: 42a8 0016 clrl %a0@(22)
information->nest_level = 0;
49eb0: 42a8 001a clrl %a0@(26)
_ASR_Initialize( &api->Signal );
created->task_variables = NULL;
49eb4: 42aa 0108 clrl %a2@(264)
if ( rtems_configuration_get_notepads_enabled() ) {
49eb8: 4a39 0005 ae64 tstb 5ae64 <Configuration_RTEMS_API+0x4>
49ebe: 6712 beqs 49ed2 <_RTEMS_tasks_Create_extension+0x6a>
* task is created via another API, then this routine is invoked
* and this API given the opportunity to initialize its extension
* area.
*/
bool _RTEMS_tasks_Create_extension(
49ec0: 41e8 001e lea %a0@(30),%a0
49ec4: 7010 moveq #16,%d0
_ASR_Initialize( &api->Signal );
created->task_variables = NULL;
if ( rtems_configuration_get_notepads_enabled() ) {
for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
api->Notepads[i] = 0;
49ec6: 4298 clrl %a0@+
49ec8: 5380 subql #1,%d0
api->event_condition = 0;
_ASR_Initialize( &api->Signal );
created->task_variables = NULL;
if ( rtems_configuration_get_notepads_enabled() ) {
for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
49eca: 66fa bnes 49ec6 <_RTEMS_tasks_Create_extension+0x5e>
49ecc: 6004 bras 49ed2 <_RTEMS_tasks_Create_extension+0x6a>
to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t));
api = _Workspace_Allocate( to_allocate );
if ( !api )
return false;
49ece: 4200 clrb %d0 <== NOT EXECUTED
49ed0: 6002 bras 49ed4 <_RTEMS_tasks_Create_extension+0x6c><== NOT EXECUTED
if ( rtems_configuration_get_notepads_enabled() ) {
for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
api->Notepads[i] = 0;
}
return true;
49ed2: 7001 moveq #1,%d0
}
49ed4: 246e fffc moveal %fp@(-4),%a2
49ed8: 4e5e unlk %fp <== NOT EXECUTED
00049e22 <_RTEMS_tasks_Delete_extension>:
void _RTEMS_tasks_Delete_extension(
Thread_Control *executing,
Thread_Control *deleted
)
{
49e22: 4e56 fff4 linkw %fp,#-12
49e26: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
49e2a: 246e 000c moveal %fp@(12),%a2
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
next = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
49e2e: 47f9 0004 9f28 lea 49f28 <_RTEMS_Tasks_Invoke_task_variable_dtor>,%a3
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
49e34: 206a 0108 moveal %a2@(264),%a0
deleted->task_variables = NULL;
49e38: 42aa 0108 clrl %a2@(264)
while (tvp) {
49e3c: 600c bras 49e4a <_RTEMS_tasks_Delete_extension+0x28>
next = (rtems_task_variable_t *)tvp->next;
49e3e: 2410 movel %a0@,%d2 <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
49e40: 2f08 movel %a0,%sp@- <== NOT EXECUTED
49e42: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49e44: 4e93 jsr %a3@ <== NOT EXECUTED
tvp = next;
49e46: 508f addql #8,%sp <== NOT EXECUTED
49e48: 2042 moveal %d2,%a0 <== NOT EXECUTED
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
49e4a: 4a88 tstl %a0
49e4c: 66f0 bnes 49e3e <_RTEMS_tasks_Delete_extension+0x1c><== NEVER TAKEN
/*
* Free API specific memory
*/
(void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] );
49e4e: 2f2a 00fc movel %a2@(252),%sp@-
49e52: 4eb9 0004 86dc jsr 486dc <_Workspace_Free>
deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL;
49e58: 588f addql #4,%sp
49e5a: 42aa 00fc clrl %a2@(252)
}
49e5e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
49e64: 4e5e unlk %fp <== NOT EXECUTED
00049db0 <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
49db0: 4e56 ffec linkw %fp,#-20
RTEMS_API_Control *api;
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
49db4: 206e 0008 moveal %fp@(8),%a0
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
49db8: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@
RTEMS_API_Control *api;
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
49dbc: 2468 00fc moveal %a0@(252),%a2
if ( !api )
49dc0: 4a8a tstl %a2
49dc2: 6754 beqs 49e18 <_RTEMS_tasks_Post_switch_extension+0x68><== NEVER TAKEN
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
49dc4: 203c 0000 0700 movel #1792,%d0
49dca: 40c1 movew %sr,%d1
49dcc: 8081 orl %d1,%d0
49dce: 46c0 movew %d0,%sr
signal_set = asr->signals_posted;
49dd0: 262a 0012 movel %a2@(18),%d3
asr->signals_posted = 0;
49dd4: 42aa 0012 clrl %a2@(18)
_ISR_Enable( level );
49dd8: 46c1 movew %d1,%sr
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
49dda: 4a83 tstl %d3
49ddc: 673a beqs 49e18 <_RTEMS_tasks_Post_switch_extension+0x68><== ALWAYS TAKEN
return;
asr->nest_level += 1;
49dde: 52aa 001a addql #1,%a2@(26) <== NOT EXECUTED
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
49de2: 240e movel %fp,%d2 <== NOT EXECUTED
49de4: 5982 subql #4,%d2 <== NOT EXECUTED
49de6: 47f9 0004 b750 lea 4b750 <rtems_task_mode>,%a3 <== NOT EXECUTED
49dec: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49dee: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED
49df4: 2f2a 000e movel %a2@(14),%sp@- <== NOT EXECUTED
49df8: 4e93 jsr %a3@ <== NOT EXECUTED
(*asr->handler)( signal_set );
49dfa: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49dfc: 206a 000a moveal %a2@(10),%a0 <== NOT EXECUTED
49e00: 4e90 jsr %a0@ <== NOT EXECUTED
asr->nest_level -= 1;
49e02: 53aa 001a subql #1,%a2@(26) <== NOT EXECUTED
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
49e06: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49e08: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED
49e0e: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
49e12: 4e93 jsr %a3@ <== NOT EXECUTED
49e14: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
}
49e18: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3
49e1e: 4e5e unlk %fp <== NOT EXECUTED
00049d5a <_RTEMS_tasks_Switch_extension>:
void _RTEMS_tasks_Switch_extension(
Thread_Control *executing,
Thread_Control *heir
)
{
49d5a: 4e56 0000 linkw %fp,#0
/*
* Per Task Variables
*/
tvp = executing->task_variables;
49d5e: 206e 0008 moveal %fp@(8),%a0
49d62: 2068 0108 moveal %a0@(264),%a0
while (tvp) {
49d66: 600e bras 49d76 <_RTEMS_tasks_Switch_extension+0x1c>
tvp->tval = *tvp->ptr;
49d68: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
49d6c: 2151 000c movel %a1@,%a0@(12) <== NOT EXECUTED
*tvp->ptr = tvp->gval;
49d70: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
49d74: 2050 moveal %a0@,%a0 <== NOT EXECUTED
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
49d76: 4a88 tstl %a0
49d78: 66ee bnes 49d68 <_RTEMS_tasks_Switch_extension+0xe><== NEVER TAKEN
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
49d7a: 206e 000c moveal %fp@(12),%a0
49d7e: 2068 0108 moveal %a0@(264),%a0
while (tvp) {
49d82: 600e bras 49d92 <_RTEMS_tasks_Switch_extension+0x38>
tvp->gval = *tvp->ptr;
49d84: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
49d88: 2151 0008 movel %a1@,%a0@(8) <== NOT EXECUTED
*tvp->ptr = tvp->tval;
49d8c: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
49d90: 2050 moveal %a0@,%a0 <== NOT EXECUTED
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
49d92: 4a88 tstl %a0
49d94: 66ee bnes 49d84 <_RTEMS_tasks_Switch_extension+0x2a><== NEVER TAKEN
tvp->gval = *tvp->ptr;
*tvp->ptr = tvp->tval;
tvp = (rtems_task_variable_t *)tvp->next;
}
}
49d96: 4e5e unlk %fp <== NOT EXECUTED
00046120 <_Rate_monotonic_Get_status>:
bool _Rate_monotonic_Get_status(
Rate_monotonic_Control *the_period,
Rate_monotonic_Period_time_t *wall_since_last_period,
Thread_CPU_usage_t *cpu_since_last_period
)
{
46120: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED
46124: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED
46128: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
/*
* Determine elapsed wall time since period initiated.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
4612c: 240e movel %fp,%d2 <== NOT EXECUTED
4612e: 5182 subql #8,%d2 <== NOT EXECUTED
_Timestamp_Subtract(
46130: 45f9 0004 989c lea 4989c <_Timespec_Subtract>,%a2 <== NOT EXECUTED
)
{
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
#endif
Thread_Control *owning_thread = the_period->owner;
46136: 286b 0040 moveal %a3@(64),%a4 <== NOT EXECUTED
/*
* Determine elapsed wall time since period initiated.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
4613a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4613c: 4eb9 0004 7878 jsr 47878 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_Subtract(
46142: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
46146: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46148: 486b 004c pea %a3@(76) <== NOT EXECUTED
4614c: 4e92 jsr %a2@ <== NOT EXECUTED
* Determine cpu usage since period initiated.
*/
used = owning_thread->cpu_time_used;
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
4614e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
#endif
/*
* Determine cpu usage since period initiated.
*/
used = owning_thread->cpu_time_used;
46152: 202c 0082 movel %a4@(130),%d0 <== NOT EXECUTED
46156: 222c 0086 movel %a4@(134),%d1 <== NOT EXECUTED
4615a: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED
4615e: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
46162: b9f9 0005 e4f0 cmpal 5e4f0 <_Per_CPU_Information+0xc>,%a4 <== NOT EXECUTED
46168: 6644 bnes 461ae <_Rate_monotonic_Get_status+0x8e><== NOT EXECUTED
Thread_CPU_usage_t ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
4616a: 260e movel %fp,%d3 <== NOT EXECUTED
4616c: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
46172: 47eb 0044 lea %a3@(68),%a3 <== NOT EXECUTED
if (owning_thread == _Thread_Executing) {
Thread_CPU_usage_t ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
46176: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46178: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4617a: 4879 0005 e3fc pea 5e3fc <_Thread_Time_of_last_context_switch><== NOT EXECUTED
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
/* cpu usage += ran */
_Timestamp_Add_to( &used, &ran );
46180: 5182 subql #8,%d2 <== NOT EXECUTED
if (owning_thread == _Thread_Executing) {
Thread_CPU_usage_t ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
46182: 4e92 jsr %a2@ <== NOT EXECUTED
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
/* cpu usage += ran */
_Timestamp_Add_to( &used, &ran );
46184: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46186: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46188: 4eb9 0004 9774 jsr 49774 <_Timespec_Add_to> <== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
4618e: 2f0b movel %a3,%sp@- <== NOT EXECUTED
46190: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46192: 4eb9 0004 986c jsr 4986c <_Timespec_Less_than> <== NOT EXECUTED
46198: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4619c: 4a00 tstb %d0 <== NOT EXECUTED
4619e: 6612 bnes 461b2 <_Rate_monotonic_Get_status+0x92><== NOT EXECUTED
return false;
/* used = current cpu usage - cpu usage at start of period */
_Timestamp_Subtract(
461a0: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
461a4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
461a6: 2f0b movel %a3,%sp@- <== NOT EXECUTED
461a8: 4e92 jsr %a2@ <== NOT EXECUTED
461aa: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
if (used < the_period->cpu_usage_period_initiated)
return false;
*cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
#endif
return true;
461ae: 7001 moveq #1,%d0 <== NOT EXECUTED
461b0: 6002 bras 461b4 <_Rate_monotonic_Get_status+0x94><== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
return false;
461b2: 4200 clrb %d0 <== NOT EXECUTED
return false;
*cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
#endif
return true;
}
461b4: 4cee 1c0c ffd4 moveml %fp@(-44),%d2-%d3/%a2-%a4 <== NOT EXECUTED
461ba: 4e5e unlk %fp <== NOT EXECUTED
000461be <_Rate_monotonic_Initiate_statistics>:
void _Rate_monotonic_Initiate_statistics(
Rate_monotonic_Control *the_period
)
{
461be: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
461c2: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED
461c6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
* If using nanosecond statistics, we need to obtain the uptime.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
_TOD_Get_uptime( &uptime );
461ca: 260e movel %fp,%d3 <== NOT EXECUTED
461cc: 5183 subql #8,%d3 <== NOT EXECUTED
void _Rate_monotonic_Initiate_statistics(
Rate_monotonic_Control *the_period
)
{
Thread_Control *owning_thread = the_period->owner;
461ce: 266a 0040 moveal %a2@(64),%a3 <== NOT EXECUTED
* If using nanosecond statistics, we need to obtain the uptime.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
_TOD_Get_uptime( &uptime );
461d2: 2f03 movel %d3,%sp@- <== NOT EXECUTED
461d4: 4eb9 0004 7878 jsr 47878 <_TOD_Get_uptime> <== NOT EXECUTED
* routine is invoked from rtems_rate_monotonic_period, the owner will
* be the executing thread. When this routine is invoked from
* _Rate_monotonic_Timeout, it will not.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
461da: 588f addql #4,%sp <== NOT EXECUTED
/*
* Set the starting point and the CPU time used for the statistics.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
the_period->time_period_initiated = uptime;
461dc: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
461e0: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
461e4: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED
461e8: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
#else
the_period->time_period_initiated = _Watchdog_Ticks_since_boot;
#endif
the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used;
461ec: 202b 0082 movel %a3@(130),%d0 <== NOT EXECUTED
461f0: 222b 0086 movel %a3@(134),%d1 <== NOT EXECUTED
461f4: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED
461f8: 2541 0048 movel %d1,%a2@(72) <== NOT EXECUTED
* routine is invoked from rtems_rate_monotonic_period, the owner will
* be the executing thread. When this routine is invoked from
* _Rate_monotonic_Timeout, it will not.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
461fc: b7f9 0005 e4f0 cmpal 5e4f0 <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED
46202: 6628 bnes 4622c <_Rate_monotonic_Initiate_statistics+0x6e><== NOT EXECUTED
/*
* Adjust the CPU time used to account for the time since last
* context switch.
*/
_Timespec_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &ran
46204: 240e movel %fp,%d2 <== NOT EXECUTED
46206: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED
/*
* Adjust the CPU time used to account for the time since last
* context switch.
*/
_Timespec_Subtract(
4620c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4620e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46210: 4879 0005 e3fc pea 5e3fc <_Thread_Time_of_last_context_switch><== NOT EXECUTED
46216: 4eb9 0004 989c jsr 4989c <_Timespec_Subtract> <== NOT EXECUTED
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
_Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
4621c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4621e: 486a 0044 pea %a2@(68) <== NOT EXECUTED
46222: 4eb9 0004 9774 jsr 49774 <_Timespec_Add_to> <== NOT EXECUTED
46228: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
}
#endif
}
4622c: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED
46232: 4e5e unlk %fp <== NOT EXECUTED
000466ec <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
466ec: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
466f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466f2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
466f6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
466fa: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
46700: 4eb9 0004 8288 jsr 48288 <_Objects_Get> <== NOT EXECUTED
/*
* When we get here, the Timer is already off the chain so we do not
* have to worry about that -- hence no _Watchdog_Remove().
*/
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
46706: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4670a: 2440 moveal %d0,%a2 <== NOT EXECUTED
4670c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46710: 6600 0096 bnew 467a8 <_Rate_monotonic_Timeout+0xbc> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_thread = the_period->owner;
46714: 206a 0040 moveal %a2@(64),%a0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (
States_Control the_states
)
{
return (the_states & STATES_WAITING_FOR_PERIOD);
46718: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
4671c: 0280 0000 4000 andil #16384,%d0 <== NOT EXECUTED
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
46722: 673c beqs 46760 <_Rate_monotonic_Timeout+0x74> <== NOT EXECUTED
46724: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
46728: b0a8 0020 cmpl %a0@(32),%d0 <== NOT EXECUTED
4672c: 6632 bnes 46760 <_Rate_monotonic_Timeout+0x74> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
4672e: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
46734: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46736: 4eb9 0004 89e0 jsr 489e0 <_Thread_Clear_state> <== NOT EXECUTED
the_thread->Wait.id == the_period->Object.id ) {
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
4673c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4673e: 4eb9 0004 61be jsr 461be <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
46744: 256a 003c 001c movel %a2@(60),%a2@(28) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
4674a: 486a 0010 pea %a2@(16) <== NOT EXECUTED
4674e: 4879 0005 e410 pea 5e410 <_Watchdog_Ticks_chain> <== NOT EXECUTED
46754: 4eb9 0004 9b50 jsr 49b50 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
4675a: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
4675e: 603a bras 4679a <_Rate_monotonic_Timeout+0xae> <== NOT EXECUTED
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
46760: 7001 moveq #1,%d0 <== NOT EXECUTED
46762: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED
46766: 662c bnes 46794 <_Rate_monotonic_Timeout+0xa8> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
46768: 103c 0003 moveb #3,%d0 <== NOT EXECUTED
4676c: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
_Rate_monotonic_Initiate_statistics( the_period );
46770: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46772: 4eb9 0004 61be jsr 461be <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
46778: 256a 003c 001c movel %a2@(60),%a2@(28) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
4677e: 486a 0010 pea %a2@(16) <== NOT EXECUTED
46782: 4879 0005 e410 pea 5e410 <_Watchdog_Ticks_chain> <== NOT EXECUTED
46788: 4eb9 0004 9b50 jsr 49b50 <_Watchdog_Insert> <== NOT EXECUTED
4678e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46792: 6006 bras 4679a <_Rate_monotonic_Timeout+0xae> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
46794: 7004 moveq #4,%d0 <== NOT EXECUTED
46796: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
4679a: 2039 0005 e330 movel 5e330 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
467a0: 5380 subql #1,%d0 <== NOT EXECUTED
467a2: 23c0 0005 e330 movel %d0,5e330 <_Thread_Dispatch_disable_level><== NOT EXECUTED
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
467a8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
467ac: 4e5e unlk %fp <== NOT EXECUTED
00046236 <_Rate_monotonic_Update_statistics>:
* Update the counts.
*/
stats = &the_period->Statistics;
stats->count++;
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
46236: 7004 moveq #4,%d0 <== NOT EXECUTED
}
void _Rate_monotonic_Update_statistics(
Rate_monotonic_Control *the_period
)
{
46238: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4623c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4623e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
46242: 2f02 movel %d2,%sp@- <== NOT EXECUTED
/*
* Update the counts.
*/
stats = &the_period->Statistics;
stats->count++;
46244: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
46248: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED
4624c: 6604 bnes 46252 <_Rate_monotonic_Update_statistics+0x1c><== NOT EXECUTED
stats->missed_count++;
4624e: 52aa 0058 addql #1,%a2@(88) <== NOT EXECUTED
/*
* Grab status for time statistics.
*/
valid_status =
_Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
46252: 240e movel %fp,%d2 <== NOT EXECUTED
46254: 5182 subql #8,%d2 <== NOT EXECUTED
stats->missed_count++;
/*
* Grab status for time statistics.
*/
valid_status =
46256: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46258: 486e fff0 pea %fp@(-16) <== NOT EXECUTED
4625c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4625e: 4eb9 0004 6120 jsr 46120 <_Rate_monotonic_Get_status> <== NOT EXECUTED
_Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
if (!valid_status)
46264: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46268: 4a00 tstb %d0 <== NOT EXECUTED
4626a: 6700 00b2 beqw 4631e <_Rate_monotonic_Update_statistics+0xe8><== NOT EXECUTED
/*
* Update CPU time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_cpu_time, &executed );
4626e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46270: 486a 006c pea %a2@(108) <== NOT EXECUTED
46274: 4eb9 0004 9774 jsr 49774 <_Timespec_Add_to> <== NOT EXECUTED
if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )
4627a: 486a 005c pea %a2@(92) <== NOT EXECUTED
4627e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46280: 4eb9 0004 986c jsr 4986c <_Timespec_Less_than> <== NOT EXECUTED
46286: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4628a: 4a00 tstb %d0 <== NOT EXECUTED
4628c: 6710 beqs 4629e <_Rate_monotonic_Update_statistics+0x68><== NOT EXECUTED
stats->min_cpu_time = executed;
4628e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
46292: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
46296: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED
4629a: 2541 0060 movel %d1,%a2@(96) <== NOT EXECUTED
if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) )
4629e: 486a 0064 pea %a2@(100) <== NOT EXECUTED
462a2: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
462a6: 4eb9 0004 983c jsr 4983c <_Timespec_Greater_than> <== NOT EXECUTED
462ac: 508f addql #8,%sp <== NOT EXECUTED
462ae: 4a00 tstb %d0 <== NOT EXECUTED
462b0: 6710 beqs 462c2 <_Rate_monotonic_Update_statistics+0x8c><== NOT EXECUTED
stats->max_cpu_time = executed;
462b2: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
462b6: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
462ba: 2540 0064 movel %d0,%a2@(100) <== NOT EXECUTED
462be: 2541 0068 movel %d1,%a2@(104) <== NOT EXECUTED
/*
* Update Wall time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_wall_time, &since_last_period );
462c2: 240e movel %fp,%d2 <== NOT EXECUTED
462c4: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED
462ca: 2f02 movel %d2,%sp@- <== NOT EXECUTED
462cc: 486a 0084 pea %a2@(132) <== NOT EXECUTED
462d0: 4eb9 0004 9774 jsr 49774 <_Timespec_Add_to> <== NOT EXECUTED
if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
462d6: 486a 0074 pea %a2@(116) <== NOT EXECUTED
462da: 2f02 movel %d2,%sp@- <== NOT EXECUTED
462dc: 4eb9 0004 986c jsr 4986c <_Timespec_Less_than> <== NOT EXECUTED
462e2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
462e6: 4a00 tstb %d0 <== NOT EXECUTED
462e8: 6710 beqs 462fa <_Rate_monotonic_Update_statistics+0xc4><== NOT EXECUTED
stats->min_wall_time = since_last_period;
462ea: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED
462ee: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED
462f2: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED
462f6: 2541 0078 movel %d1,%a2@(120) <== NOT EXECUTED
if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
462fa: 486a 007c pea %a2@(124) <== NOT EXECUTED
462fe: 486e fff0 pea %fp@(-16) <== NOT EXECUTED
46302: 4eb9 0004 983c jsr 4983c <_Timespec_Greater_than> <== NOT EXECUTED
46308: 508f addql #8,%sp <== NOT EXECUTED
4630a: 4a00 tstb %d0 <== NOT EXECUTED
4630c: 6710 beqs 4631e <_Rate_monotonic_Update_statistics+0xe8><== NOT EXECUTED
stats->max_wall_time = since_last_period;
4630e: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED
46312: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED
46316: 2540 007c movel %d0,%a2@(124) <== NOT EXECUTED
4631a: 2541 0080 movel %d1,%a2@(128) <== NOT EXECUTED
stats->min_wall_time = since_last_period;
if ( since_last_period > stats->max_wall_time )
stats->max_wall_time = since_last_period;
#endif
}
4631e: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED
46322: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED
46326: 4e5e unlk %fp <== NOT EXECUTED
000575cc <_Region_Process_queue>:
*/
void _Region_Process_queue(
Region_Control *the_region
)
{
575cc: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
575d0: 2039 0007 4ff4 movel 74ff4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
575d6: 5280 addql #1,%d0 <== NOT EXECUTED
575d8: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED
575dc: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
575e0: 23c0 0007 4ff4 movel %d0,74ff4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* NOTE: Be sure to disable dispatching before unlocking the mutex
* since we do not want to open a window where a context
* switch could occur.
*/
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
575e6: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
/*
* NOTE: The following loop is O(n) where n is the number of
* threads whose memory request is satisfied.
*/
for ( ; ; ) {
the_thread = _Thread_queue_First( &the_region->Wait_queue );
575ec: 240b movel %a3,%d2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment (
Region_Control *the_region,
uintptr_t size
)
{
return _Heap_Allocate( &the_region->Memory, size );
575ee: 260b movel %a3,%d3 <== NOT EXECUTED
575f0: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
575f6: 0683 0000 0068 addil #104,%d3 <== NOT EXECUTED
575fc: 4bf9 0005 3378 lea 53378 <_Heap_Allocate_aligned_with_boundary>,%a5<== NOT EXECUTED
if ( the_segment == NULL )
break;
*(void **)the_thread->Wait.return_argument = the_segment;
the_region->number_of_used_blocks += 1;
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
57602: 49f9 0005 7c84 lea 57c84 <_Thread_queue_Extract>,%a4 <== NOT EXECUTED
* NOTE: Be sure to disable dispatching before unlocking the mutex
* since we do not want to open a window where a context
* switch could occur.
*/
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
57608: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
5760e: 588f addql #4,%sp <== NOT EXECUTED
/*
* NOTE: The following loop is O(n) where n is the number of
* threads whose memory request is satisfied.
*/
for ( ; ; ) {
the_thread = _Thread_queue_First( &the_region->Wait_queue );
57610: 283c 0005 7d88 movel #359816,%d4 <== NOT EXECUTED
57616: 2f02 movel %d2,%sp@- <== NOT EXECUTED
57618: 2044 moveal %d4,%a0 <== NOT EXECUTED
5761a: 4e90 jsr %a0@ <== NOT EXECUTED
if ( the_thread == NULL )
5761c: 588f addql #4,%sp <== NOT EXECUTED
/*
* NOTE: The following loop is O(n) where n is the number of
* threads whose memory request is satisfied.
*/
for ( ; ; ) {
the_thread = _Thread_queue_First( &the_region->Wait_queue );
5761e: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( the_thread == NULL )
57620: 4a80 tstl %d0 <== NOT EXECUTED
57622: 672c beqs 57650 <_Region_Process_queue+0x84> <== NOT EXECUTED
57624: 42a7 clrl %sp@- <== NOT EXECUTED
57626: 42a7 clrl %sp@- <== NOT EXECUTED
57628: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED
5762c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
5762e: 4e95 jsr %a5@ <== NOT EXECUTED
the_segment = (void **) _Region_Allocate_segment(
the_region,
the_thread->Wait.count
);
if ( the_segment == NULL )
57630: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
57634: 4a80 tstl %d0 <== NOT EXECUTED
57636: 6718 beqs 57650 <_Region_Process_queue+0x84> <== NOT EXECUTED
break;
*(void **)the_thread->Wait.return_argument = the_segment;
57638: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED
5763c: 2080 movel %d0,%a0@ <== NOT EXECUTED
the_region->number_of_used_blocks += 1;
5763e: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
57642: 2f0a movel %a2,%sp@- <== NOT EXECUTED
57644: 2f02 movel %d2,%sp@- <== NOT EXECUTED
57646: 4e94 jsr %a4@ <== NOT EXECUTED
the_thread->Wait.return_code = RTEMS_SUCCESSFUL;
}
57648: 508f addql #8,%sp <== NOT EXECUTED
break;
*(void **)the_thread->Wait.return_argument = the_segment;
the_region->number_of_used_blocks += 1;
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
the_thread->Wait.return_code = RTEMS_SUCCESSFUL;
5764a: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED
}
5764e: 60c6 bras 57616 <_Region_Process_queue+0x4a> <== NOT EXECUTED
_Thread_Enable_dispatch();
}
57650: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED
57656: 4e5e unlk %fp <== NOT EXECUTED
*(void **)the_thread->Wait.return_argument = the_segment;
the_region->number_of_used_blocks += 1;
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
the_thread->Wait.return_code = RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
57658: 4ef9 0005 4d8e jmp 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
...
0004a4b8 <_Scheduler_priority_Block>:
void _Scheduler_priority_Block(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
4a4b8: 4e56 0000 linkw %fp,#0
4a4bc: 226e 000c moveal %fp@(12),%a1
4a4c0: 2f0a movel %a2,%sp@-
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_extract(
Thread_Control *the_thread
)
{
Chain_Control *ready = the_thread->scheduler.priority->ready_chain;
4a4c2: 2069 008a moveal %a1@(138),%a0
4a4c6: 2050 moveal %a0@,%a0
if ( _Chain_Has_only_one_node( ready ) ) {
4a4c8: 2028 0008 movel %a0@(8),%d0
4a4cc: b090 cmpl %a0@,%d0
4a4ce: 6636 bnes 4a506 <_Scheduler_priority_Block+0x4e>
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
4a4d0: 2008 movel %a0,%d0
4a4d2: 5880 addql #4,%d0
head->next = tail;
head->previous = NULL;
4a4d4: 42a8 0004 clrl %a0@(4)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
4a4d8: 2080 movel %d0,%a0@
head->next = tail;
head->previous = NULL;
tail->previous = head;
4a4da: 2148 0008 movel %a0,%a0@(8)
_Chain_Initialize_empty( ready );
_Priority_bit_map_Remove( &the_thread->scheduler.priority->Priority_map );
4a4de: 2069 008a moveal %a1@(138),%a0
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
4a4e2: 2468 0004 moveal %a0@(4),%a2
4a4e6: 3028 000e movew %a0@(14),%d0
4a4ea: 3212 movew %a2@,%d1
4a4ec: c081 andl %d1,%d0
4a4ee: 3480 movew %d0,%a2@
if ( *the_priority_map->minor == 0 )
4a4f0: 6620 bnes 4a512 <_Scheduler_priority_Block+0x5a>
_Priority_Major_bit_map &= the_priority_map->block_major;
4a4f2: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
4a4f8: 3228 000c movew %a0@(12),%d1
4a4fc: c081 andl %d1,%d0
4a4fe: 33c0 0005 c888 movew %d0,5c888 <_Priority_Major_bit_map>
4a504: 600c bras 4a512 <_Scheduler_priority_Block+0x5a>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
4a506: 2451 moveal %a1@,%a2
previous = the_node->previous;
4a508: 2069 0004 moveal %a1@(4),%a0
next->previous = previous;
4a50c: 2548 0004 movel %a0,%a2@(4)
previous->next = next;
4a510: 208a movel %a2,%a0@
{
_Scheduler_priority_Ready_queue_extract(the_thread);
/* TODO: flash critical section */
if ( _Thread_Is_heir( the_thread ) )
4a512: b3f9 0005 c87c cmpal 5c87c <_Per_CPU_Information+0x10>,%a1
4a518: 6646 bnes 4a560 <_Scheduler_priority_Block+0xa8>
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{
Priority_bit_map_Control minor;
Priority_bit_map_Control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
4a51a: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
4a520: 4840 swap %d0
4a522: 04c0 ff1 %d0
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
4a524: 41f9 0005 c88c lea 5c88c <_Priority_Bit_map>,%a0
4a52a: 0280 0000 ffff andil #65535,%d0
4a530: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1
4a534: 4841 swap %d1
4a536: 04c1 ff1 %d1
_Scheduler_priority_Block_body(the_scheduler, the_thread);
}
4a538: 206e 0008 moveal %fp@(8),%a0
return (_Priority_Bits_index( major ) << 4) +
4a53c: 0281 0000 ffff andil #65535,%d1
4a542: e988 lsll #4,%d0
4a544: 2050 moveal %a0@,%a0
4a546: d081 addl %d1,%d0
Chain_Control *the_ready_queue
)
{
Priority_Control index = _Priority_bit_map_Get_highest();
if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
4a548: 2200 movel %d0,%d1
4a54a: e988 lsll #4,%d0
4a54c: e589 lsll #2,%d1
4a54e: 9081 subl %d1,%d0
4a550: d1c0 addal %d0,%a0
4a552: 2018 movel %a0@+,%d0
4a554: b1c0 cmpal %d0,%a0
4a556: 6602 bnes 4a55a <_Scheduler_priority_Block+0xa2> <== ALWAYS TAKEN
return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
return NULL;
4a558: 4280 clrl %d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(
Scheduler_Control *the_scheduler
)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
4a55a: 23c0 0005 c87c movel %d0,5c87c <_Per_CPU_Information+0x10>
/* TODO: flash critical section */
if ( _Thread_Is_heir( the_thread ) )
_Scheduler_priority_Schedule_body(the_scheduler);
if ( _Thread_Is_executing( the_thread ) )
4a560: b3f9 0005 c878 cmpal 5c878 <_Per_CPU_Information+0xc>,%a1
4a566: 6608 bnes 4a570 <_Scheduler_priority_Block+0xb8>
_Thread_Dispatch_necessary = true;
4a568: 7001 moveq #1,%d0
4a56a: 13c0 0005 c884 moveb %d0,5c884 <_Per_CPU_Information+0x18>
4a570: 245f moveal %sp@+,%a2
4a572: 4e5e unlk %fp
...
00047058 <_Scheduler_priority_Schedule>:
*/
void _Scheduler_priority_Schedule(
Scheduler_Control *the_scheduler
)
{
47058: 4e56 0000 linkw %fp,#0
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{
Priority_bit_map_Control minor;
Priority_bit_map_Control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
4705c: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
47062: 4840 swap %d0
47064: 04c0 ff1 %d0
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
47066: 41f9 0005 c88c lea 5c88c <_Priority_Bit_map>,%a0
4706c: 0280 0000 ffff andil #65535,%d0
47072: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1
47076: 4841 swap %d1
47078: 04c1 ff1 %d1
_Scheduler_priority_Schedule_body( the_scheduler );
}
4707a: 206e 0008 moveal %fp@(8),%a0
return (_Priority_Bits_index( major ) << 4) +
4707e: 0281 0000 ffff andil #65535,%d1
47084: e988 lsll #4,%d0
47086: 2050 moveal %a0@,%a0
47088: d081 addl %d1,%d0
Chain_Control *the_ready_queue
)
{
Priority_Control index = _Priority_bit_map_Get_highest();
if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
4708a: 2200 movel %d0,%d1
4708c: e988 lsll #4,%d0
4708e: e589 lsll #2,%d1
47090: 9081 subl %d1,%d0
47092: d1c0 addal %d0,%a0
47094: 2018 movel %a0@+,%d0
47096: b1c0 cmpal %d0,%a0
47098: 6602 bnes 4709c <_Scheduler_priority_Schedule+0x44><== ALWAYS TAKEN
return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
return NULL;
4709a: 4280 clrl %d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(
Scheduler_Control *the_scheduler
)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
4709c: 23c0 0005 c87c movel %d0,5c87c <_Per_CPU_Information+0x10>
470a2: 4e5e unlk %fp
...
000470c4 <_Scheduler_priority_Thread_scheduler_free>:
void _Scheduler_priority_Thread_scheduler_free (
Scheduler_Control *the_scheduler __attribute__((unused)),
Thread_Control *the_thread
)
{
470c4: 4e56 0000 linkw %fp,#0
_Workspace_Free( the_thread->scheduler.priority );
470c8: 206e 000c moveal %fp@(12),%a0
470cc: 2d68 008a 0008 movel %a0@(138),%fp@(8)
}
470d2: 4e5e unlk %fp
void _Scheduler_priority_Thread_scheduler_free (
Scheduler_Control *the_scheduler __attribute__((unused)),
Thread_Control *the_thread
)
{
_Workspace_Free( the_thread->scheduler.priority );
470d4: 4ef9 0004 86dc jmp 486dc <_Workspace_Free>
...
0004714c <_Scheduler_priority_Unblock>:
void _Scheduler_priority_Unblock (
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
4714c: 4e56 0000 linkw %fp,#0
47150: 206e 000c moveal %fp@(12),%a0
47154: 2f0a movel %a2,%sp@-
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue(
Thread_Control *the_thread
)
{
_Priority_bit_map_Add( &the_thread->scheduler.priority->Priority_map );
47156: 2268 008a moveal %a0@(138),%a1
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
4715a: 2469 0004 moveal %a1@(4),%a2
4715e: 3029 000a movew %a1@(10),%d0
47162: 3212 movew %a2@,%d1
47164: 8081 orl %d1,%d0
47166: 3480 movew %d0,%a2@
_Priority_Major_bit_map |= the_priority_map->ready_major;
47168: 3229 0008 movew %a1@(8),%d1
4716c: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
_Chain_Append_unprotected( the_thread->scheduler.priority->ready_chain,
47172: 2251 moveal %a1@,%a1
47174: 8081 orl %d1,%d0
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
47176: 2469 0008 moveal %a1@(8),%a2
4717a: 33c0 0005 c888 movew %d0,5c888 <_Priority_Major_bit_map>
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
47180: 2009 movel %a1,%d0
47182: 5880 addql #4,%d0
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
47184: 2348 0008 movel %a0,%a1@(8)
* 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 ) {
47188: 2279 0005 c87c moveal 5c87c <_Per_CPU_Information+0x10>,%a1
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
4718e: 2080 movel %d0,%a0@
47190: 2028 0014 movel %a0@(20),%d0
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
47194: 2488 movel %a0,%a2@
the_node->previous = old_last;
47196: 214a 0004 movel %a2,%a0@(4)
4719a: b0a9 0014 cmpl %a1@(20),%d0
4719e: 641e bccs 471be <_Scheduler_priority_Unblock+0x72>
_Thread_Heir = the_thread;
471a0: 23c8 0005 c87c movel %a0,5c87c <_Per_CPU_Information+0x10>
if ( _Thread_Executing->is_preemptible ||
471a6: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
471ac: 4a28 0074 tstb %a0@(116)
471b0: 6604 bnes 471b6 <_Scheduler_priority_Unblock+0x6a>
471b2: 4a80 tstl %d0
471b4: 6608 bnes 471be <_Scheduler_priority_Unblock+0x72><== ALWAYS TAKEN
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
471b6: 7001 moveq #1,%d0
471b8: 13c0 0005 c884 moveb %d0,5c884 <_Per_CPU_Information+0x18>
_Scheduler_priority_Unblock_body(the_scheduler, the_thread);
}
471be: 245f moveal %sp@+,%a2
471c0: 4e5e unlk %fp <== NOT EXECUTED
000471c4 <_Scheduler_priority_Yield>:
*/
void _Scheduler_priority_Yield(
Scheduler_Control *the_scheduler __attribute__((unused))
)
{
471c4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
471c8: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
*/
void _Scheduler_priority_Yield(
Scheduler_Control *the_scheduler __attribute__((unused))
)
{
471ce: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ready = executing->scheduler.priority->ready_chain;
_ISR_Disable( level );
471d2: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED
471d8: 2002 movel %d2,%d0 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ready = executing->scheduler.priority->ready_chain;
471da: 2268 008a moveal %a0@(138),%a1 <== NOT EXECUTED
471de: 2251 moveal %a1@,%a1 <== NOT EXECUTED
_ISR_Disable( level );
471e0: 40c1 movew %sr,%d1 <== NOT EXECUTED
471e2: 8081 orl %d1,%d0 <== NOT EXECUTED
471e4: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( !_Chain_Has_only_one_node( ready ) ) {
471e6: 2029 0008 movel %a1@(8),%d0 <== NOT EXECUTED
471ea: b091 cmpl %a1@,%d0 <== NOT EXECUTED
471ec: 6738 beqs 47226 <_Scheduler_priority_Yield+0x62> <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
471ee: 2468 0004 moveal %a0@(4),%a2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
471f2: 2009 movel %a1,%d0 <== NOT EXECUTED
471f4: 5880 addql #4,%d0 <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
471f6: 2650 moveal %a0@,%a3 <== NOT EXECUTED
previous = the_node->previous;
next->previous = previous;
471f8: 274a 0004 movel %a2,%a3@(4) <== NOT EXECUTED
previous->next = next;
471fc: 248b movel %a3,%a2@ <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
471fe: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
47202: 2080 movel %d0,%a0@ <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
47204: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED
old_last->next = the_node;
47208: 2488 movel %a0,%a2@ <== NOT EXECUTED
the_node->previous = old_last;
4720a: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
4720e: 2002 movel %d2,%d0 <== NOT EXECUTED
47210: 46c1 movew %d1,%sr <== NOT EXECUTED
47212: 8081 orl %d1,%d0 <== NOT EXECUTED
47214: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( _Thread_Is_heir( executing ) )
47216: b1f9 0005 c87c cmpal 5c87c <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED
4721c: 6610 bnes 4722e <_Scheduler_priority_Yield+0x6a> <== NOT EXECUTED
_Thread_Heir = (Thread_Control *) _Chain_First( ready );
4721e: 23d1 0005 c87c movel %a1@,5c87c <_Per_CPU_Information+0x10><== NOT EXECUTED
47224: 6008 bras 4722e <_Scheduler_priority_Yield+0x6a> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
47226: b1f9 0005 c87c cmpal 5c87c <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED
4722c: 6708 beqs 47236 <_Scheduler_priority_Yield+0x72> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
4722e: 7001 moveq #1,%d0 <== NOT EXECUTED
47230: 13c0 0005 c884 moveb %d0,5c884 <_Per_CPU_Information+0x18> <== NOT EXECUTED
_ISR_Enable( level );
47236: 46c1 movew %d1,%sr <== NOT EXECUTED
}
47238: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED
4723c: 4e5e unlk %fp <== NOT EXECUTED
0004579a <_Semaphore_Translate_core_semaphore_return_code>:
#if defined(RTEMS_DEBUG)
if ( status > CORE_SEMAPHORE_STATUS_LAST )
return RTEMS_INTERNAL_ERROR;
#endif
return _Semaphore_Translate_core_semaphore_return_code_[status];
}
4579a: 41f9 0005 a0fe lea 5a0fe <_Semaphore_Translate_core_semaphore_return_code_>,%a0<== NOT EXECUTED
};
rtems_status_code _Semaphore_Translate_core_semaphore_return_code (
uint32_t status
)
{
457a0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( status > CORE_SEMAPHORE_STATUS_LAST )
return RTEMS_INTERNAL_ERROR;
#endif
return _Semaphore_Translate_core_semaphore_return_code_[status];
}
457a4: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
457a8: 4e5e unlk %fp <== NOT EXECUTED
457aa: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
00046738 <_TOD_Get_uptime_as_timespec>:
*/
void _TOD_Get_uptime_as_timespec(
struct timespec *uptime
)
{
46738: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
Timestamp_Control uptime_ts;
/* assume time checked for NULL by caller */
_TOD_Get_uptime( &uptime_ts );
4673c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
46740: 4eb9 0004 a574 jsr 4a574 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_To_timespec( &uptime_ts, uptime );
46746: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4674a: 588f addql #4,%sp <== NOT EXECUTED
4674c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
46750: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
}
46754: 4e5e unlk %fp <== NOT EXECUTED
{
Timestamp_Control uptime_ts;
/* assume time checked for NULL by caller */
_TOD_Get_uptime( &uptime_ts );
_Timestamp_To_timespec( &uptime_ts, uptime );
46756: 2080 movel %d0,%a0@ <== NOT EXECUTED
46758: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
}
...
00047648 <_TOD_Set>:
*/
void _TOD_Set(
const struct timespec *time
)
{
47648: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4764c: 2039 0006 65a8 movel 665a8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
47652: 5280 addql #1,%d0 <== NOT EXECUTED
47654: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47656: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4765a: 23c0 0006 65a8 movel %d0,665a8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
long seconds;
_Thread_Disable_dispatch();
_TOD_Deactivate();
seconds = _TOD_Seconds_since_epoch();
47660: 2039 0006 6652 movel 66652 <_TOD_Now>,%d0 <== NOT EXECUTED
47666: 41f9 0004 9944 lea 49944 <_Watchdog_Adjust>,%a0 <== NOT EXECUTED
if ( time->tv_sec < seconds )
4766c: 2212 movel %a2@,%d1 <== NOT EXECUTED
4766e: b081 cmpl %d1,%d0 <== NOT EXECUTED
47670: 6f0a bles 4767c <_TOD_Set+0x34> <== NOT EXECUTED
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
_Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units );
47672: 9081 subl %d1,%d0 <== NOT EXECUTED
47674: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47676: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4767a: 6006 bras 47682 <_TOD_Set+0x3a> <== NOT EXECUTED
4767c: 9280 subl %d0,%d1 <== NOT EXECUTED
4767e: 2f01 movel %d1,%sp@- <== NOT EXECUTED
47680: 42a7 clrl %sp@- <== NOT EXECUTED
47682: 4879 0006 667c pea 6667c <_Watchdog_Seconds_chain> <== NOT EXECUTED
47688: 4e90 jsr %a0@ <== NOT EXECUTED
_Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec );
else
_Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds );
/* POSIX format TOD (timespec) */
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec );
4768a: 23d2 0006 6652 movel %a2@,66652 <_TOD_Now> <== NOT EXECUTED
47690: 588a addql #4,%a2 <== NOT EXECUTED
47692: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47696: 23d2 0006 6656 movel %a2@,66656 <_TOD_Now+0x4> <== NOT EXECUTED
_TOD_Is_set = true;
_TOD_Activate();
_Thread_Enable_dispatch();
}
4769c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
476a0: 4e5e unlk %fp <== NOT EXECUTED
else
_Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds );
/* POSIX format TOD (timespec) */
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec );
_TOD_Is_set = true;
476a2: 7001 moveq #1,%d0 <== NOT EXECUTED
476a4: 13c0 0006 65b8 moveb %d0,665b8 <_TOD_Is_set> <== NOT EXECUTED
_TOD_Activate();
_Thread_Enable_dispatch();
476aa: 4ef9 0004 8abe jmp 48abe <_Thread_Enable_dispatch> <== NOT EXECUTED
000463cc <_TOD_Tickle_ticks>:
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
463cc: 223c 0000 03e8 movel #1000,%d1
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
463d2: 4e56 fff8 linkw %fp,#-8
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
463d6: 2039 0005 aea0 movel 5aea0 <Configuration+0xc>,%d0
463dc: 4c01 0800 mulsl %d1,%d0
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
463e0: 2f0a movel %a2,%sp@-
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
463e2: 45f9 0004 8160 lea 48160 <_Timespec_Add_to>,%a2
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
463e8: 2f02 movel %d2,%sp@-
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
463ea: 240e movel %fp,%d2
463ec: 5182 subql #8,%d2
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
463ee: 2d40 fffc movel %d0,%fp@(-4)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
463f2: 2039 0005 c7e0 movel 5c7e0 <_Watchdog_Ticks_since_boot>,%d0
463f8: 5280 addql #1,%d0
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
463fa: 2f02 movel %d2,%sp@-
463fc: 4879 0005 c732 pea 5c732 <_TOD_Uptime>
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
46402: 42ae fff8 clrl %fp@(-8)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
46406: 23c0 0005 c7e0 movel %d0,5c7e0 <_Watchdog_Ticks_since_boot>
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
4640c: 4e92 jsr %a2@
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
4640e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46410: 4879 0005 c762 pea 5c762 <_TOD_Now> <== NOT EXECUTED
46416: 4e92 jsr %a2@ <== NOT EXECUTED
while ( seconds ) {
46418: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
4641c: 45f9 0004 85e4 lea 485e4 <_Watchdog_Tickle>,%a2 <== NOT EXECUTED
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
46422: 2400 movel %d0,%d2 <== NOT EXECUTED
while ( seconds ) {
46424: 600c bras 46432 <_TOD_Tickle_ticks+0x66> <== NOT EXECUTED
46426: 4879 0005 c78c pea 5c78c <_Watchdog_Seconds_chain> <== NOT EXECUTED
_Watchdog_Tickle_seconds();
seconds--;
4642c: 5382 subql #1,%d2 <== NOT EXECUTED
4642e: 4e92 jsr %a2@ <== NOT EXECUTED
46430: 588f addql #4,%sp <== NOT EXECUTED
_Timestamp_Add_to( &_TOD_Uptime, &tick );
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
while ( seconds ) {
46432: 4a82 tstl %d2 <== NOT EXECUTED
46434: 66f0 bnes 46426 <_TOD_Tickle_ticks+0x5a> <== NOT EXECUTED
_Watchdog_Tickle_seconds();
seconds--;
}
}
46436: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED
4643a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
4643e: 4e5e unlk %fp <== NOT EXECUTED
...
00045f64 <_TOD_To_seconds>:
*/
uint32_t _TOD_To_seconds(
const rtems_time_of_day *the_tod
)
{
45f64: 43f9 0005 c0ea lea 5c0ea <_TOD_Days_to_date>,%a1 <== NOT EXECUTED
45f6a: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
45f6e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
45f72: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
year_mod_4 = the_tod->year & 3;
45f76: 2210 movel %a0@,%d1 <== NOT EXECUTED
45f78: 7403 moveq #3,%d2 <== NOT EXECUTED
)
{
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
45f7a: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
45f7e: 5380 subql #1,%d0 <== NOT EXECUTED
year_mod_4 = the_tod->year & 3;
45f80: c481 andl %d1,%d2 <== NOT EXECUTED
if ( year_mod_4 == 0 )
45f82: 660c bnes 45f90 <_TOD_To_seconds+0x2c> <== NOT EXECUTED
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
45f84: 2628 0004 movel %a0@(4),%d3 <== NOT EXECUTED
45f88: 0683 0000 000d addil #13,%d3 <== NOT EXECUTED
45f8e: 6004 bras 45f94 <_TOD_To_seconds+0x30> <== NOT EXECUTED
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
45f90: 2628 0004 movel %a0@(4),%d3 <== NOT EXECUTED
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
45f94: 45f9 0005 c11e lea 5c11e <_TOD_Days_since_last_leap_year>,%a2<== NOT EXECUTED
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
45f9a: 0681 ffff f83c addil #-1988,%d1 <== NOT EXECUTED
45fa0: e489 lsrl #2,%d1 <== NOT EXECUTED
year_mod_4 = the_tod->year & 3;
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
45fa2: 3631 3a00 movew %a1@(00000000,%d3:l:2),%d3 <== NOT EXECUTED
45fa6: 0283 0000 ffff andil #65535,%d3 <== NOT EXECUTED
45fac: 2243 moveal %d3,%a1 <== NOT EXECUTED
45fae: d3c0 addal %d0,%a1 <== NOT EXECUTED
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
45fb0: 4280 clrl %d0 <== NOT EXECUTED
45fb2: 3032 2a00 movew %a2@(00000000,%d2:l:2),%d0 <== NOT EXECUTED
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
45fb6: 243c 0000 05b5 movel #1461,%d2 <== NOT EXECUTED
45fbc: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED
45fc0: d280 addl %d0,%d1 <== NOT EXECUTED
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
45fc2: 2001 movel %d1,%d0 <== NOT EXECUTED
45fc4: d089 addl %a1,%d0 <== NOT EXECUTED
time *= TOD_SECONDS_PER_DAY;
45fc6: 223c 0001 5180 movel #86400,%d1 <== NOT EXECUTED
45fcc: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED
time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute)
45fd0: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED
45fd4: 2401 movel %d1,%d2 <== NOT EXECUTED
45fd6: ed89 lsll #6,%d1 <== NOT EXECUTED
45fd8: e58a lsll #2,%d2 <== NOT EXECUTED
45fda: 2268 0014 moveal %a0@(20),%a1 <== NOT EXECUTED
45fde: 9282 subl %d2,%d1 <== NOT EXECUTED
45fe0: d2a8 0010 addl %a0@(16),%d1 <== NOT EXECUTED
45fe4: d3fc 21da e500 addal #567993600,%a1 <== NOT EXECUTED
* TOD_SECONDS_PER_MINUTE;
45fea: 2401 movel %d1,%d2 <== NOT EXECUTED
45fec: ed89 lsll #6,%d1 <== NOT EXECUTED
45fee: e58a lsll #2,%d2 <== NOT EXECUTED
45ff0: 9282 subl %d2,%d1 <== NOT EXECUTED
time += the_tod->second;
45ff2: d289 addl %a1,%d1 <== NOT EXECUTED
time += TOD_SECONDS_1970_THROUGH_1988;
return( time );
}
45ff4: d081 addl %d1,%d0 <== NOT EXECUTED
45ff6: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED
45ffa: 4e5e unlk %fp <== NOT EXECUTED
...
00046000 <_TOD_Validate>:
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
46000: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46004: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46008: 2f03 movel %d3,%sp@- <== NOT EXECUTED
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
4600a: 2039 0005 cfc0 movel 5cfc0 <Configuration+0xc>,%d0 <== NOT EXECUTED
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
46010: 2f02 movel %d2,%sp@- <== NOT EXECUTED
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
46012: 4a88 tstl %a0 <== NOT EXECUTED
46014: 6762 beqs 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
)
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
46016: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED
4601c: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
46020: b4a8 0018 cmpl %a0@(24),%d2 <== NOT EXECUTED
46024: 6352 blss 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->ticks >= ticks_per_second) ||
46026: 763b moveq #59,%d3 <== NOT EXECUTED
46028: b6a8 0014 cmpl %a0@(20),%d3 <== NOT EXECUTED
4602c: 654a bcss 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
4602e: b6a8 0010 cmpl %a0@(16),%d3 <== NOT EXECUTED
46032: 6544 bcss 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
46034: 7017 moveq #23,%d0 <== NOT EXECUTED
46036: b0a8 000c cmpl %a0@(12),%d0 <== NOT EXECUTED
4603a: 653c bcss 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
4603c: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
(the_tod->ticks >= ticks_per_second) ||
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
46040: 6736 beqs 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->month == 0) ||
46042: 720c moveq #12,%d1 <== NOT EXECUTED
46044: b280 cmpl %d0,%d1 <== NOT EXECUTED
46046: 6530 bcss 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
46048: 2410 movel %a0@,%d2 <== NOT EXECUTED
(the_tod->ticks >= ticks_per_second) ||
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
4604a: 0c82 0000 07c3 cmpil #1987,%d2 <== NOT EXECUTED
46050: 6326 blss 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
46052: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
46056: 6720 beqs 46078 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
46058: 163c 0003 moveb #3,%d3 <== NOT EXECUTED
4605c: 41f9 0005 c126 lea 5c126 <_TOD_Days_per_month>,%a0 <== NOT EXECUTED
46062: c483 andl %d3,%d2 <== NOT EXECUTED
46064: 6606 bnes 4606c <_TOD_Validate+0x6c> <== NOT EXECUTED
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
46066: 2030 0c34 movel %a0@(00000034,%d0:l:4),%d0 <== NOT EXECUTED
4606a: 6004 bras 46070 <_TOD_Validate+0x70> <== NOT EXECUTED
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
4606c: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
46070: b081 cmpl %d1,%d0 <== NOT EXECUTED
46072: 54c0 scc %d0 <== NOT EXECUTED
46074: 4480 negl %d0 <== NOT EXECUTED
46076: 6002 bras 4607a <_TOD_Validate+0x7a> <== NOT EXECUTED
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
return false;
46078: 4200 clrb %d0 <== NOT EXECUTED
if ( the_tod->day > days_in_month )
return false;
return true;
}
4607a: 241f movel %sp@+,%d2 <== NOT EXECUTED
4607c: 261f movel %sp@+,%d3 <== NOT EXECUTED
4607e: 4e5e unlk %fp <== NOT EXECUTED
...
00047290 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
47290: 4e56 fff0 linkw %fp,#-16
47294: 48d7 041c moveml %d2-%d4/%a2,%sp@
47298: 246e 0008 moveal %fp@(8),%a2
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
4729c: 282a 0010 movel %a2@(16),%d4
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
472a0: 242e 000c movel %fp@(12),%d2
/*
* Set a transient state for the thread so it is pulled off the Ready chains.
* This will prevent it from being scheduled no matter what happens in an
* ISR.
*/
_Thread_Set_transient( the_thread );
472a4: 2f0a movel %a2,%sp@-
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
472a6: 162e 0013 moveb %fp@(19),%d3
/*
* Set a transient state for the thread so it is pulled off the Ready chains.
* This will prevent it from being scheduled no matter what happens in an
* ISR.
*/
_Thread_Set_transient( the_thread );
472aa: 4eb9 0004 7f24 jsr 47f24 <_Thread_Set_transient>
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.
*/
if ( the_thread->current_priority != new_priority )
472b0: 588f addql #4,%sp
472b2: b4aa 0014 cmpl %a2@(20),%d2
472b6: 670c beqs 472c4 <_Thread_Change_priority+0x34>
_Thread_Set_priority( the_thread, new_priority );
472b8: 2f02 movel %d2,%sp@-
472ba: 2f0a movel %a2,%sp@-
472bc: 4eb9 0004 7eb0 jsr 47eb0 <_Thread_Set_priority>
472c2: 508f addql #8,%sp
_ISR_Disable( level );
472c4: 203c 0000 0700 movel #1792,%d0
472ca: 40c2 movew %sr,%d2
472cc: 8082 orl %d2,%d0
472ce: 46c0 movew %d0,%sr
472d0: 7204 moveq #4,%d1
/*
* If the thread has more than STATES_TRANSIENT set, then it is blocked,
* If it is blocked on a thread queue, then we need to requeue it.
*/
state = the_thread->current_state;
472d2: 202a 0010 movel %a2@(16),%d0
472d6: c284 andl %d4,%d1
if ( state != STATES_TRANSIENT ) {
472d8: 7804 moveq #4,%d4
472da: b880 cmpl %d0,%d4
472dc: 6730 beqs 4730e <_Thread_Change_priority+0x7e>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
472de: 4a81 tstl %d1
472e0: 6608 bnes 472ea <_Thread_Change_priority+0x5a> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
472e2: 72fb moveq #-5,%d1
472e4: c280 andl %d0,%d1
472e6: 2541 0010 movel %d1,%a2@(16)
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
472ea: 46c2 movew %d2,%sr
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
472ec: 0280 0003 bee0 andil #245472,%d0
if ( _States_Is_waiting_on_thread_queue( state ) ) {
472f2: 6700 00cc beqw 473c0 <_Thread_Change_priority+0x130>
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
472f6: 2d4a 000c movel %a2,%fp@(12)
472fa: 2d6a 0044 0008 movel %a2@(68),%fp@(8)
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
_ISR_Enable( level );
}
47300: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2
47306: 4e5e unlk %fp
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
47308: 4ef9 0004 7e14 jmp 47e14 <_Thread_queue_Requeue>
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
4730e: 4a81 tstl %d1
47310: 6674 bnes 47386 <_Thread_Change_priority+0xf6> <== NEVER TAKEN
47312: 206a 008a moveal %a2@(138),%a0
* Ready Queue with interrupts off.
*
* FIXME: hard-coded for priority scheduling. Might be ok since this
* function is specific to priority scheduling?
*/
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
47316: 42aa 0010 clrl %a2@(16)
if ( prepend_it )
4731a: 4a03 tstb %d3
4731c: 6732 beqs 47350 <_Thread_Change_priority+0xc0>
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
4731e: 2268 0004 moveal %a0@(4),%a1
47322: 3028 000a movew %a0@(10),%d0
47326: 3211 movew %a1@,%d1
47328: 8081 orl %d1,%d0
4732a: 3280 movew %d0,%a1@
_Priority_Major_bit_map |= the_priority_map->ready_major;
4732c: 3228 0008 movew %a0@(8),%d1
47330: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
Thread_Control *the_thread
)
{
_Priority_bit_map_Add( &the_thread->scheduler.priority->Priority_map );
_Chain_Prepend_unprotected( the_thread->scheduler.priority->ready_chain,
47336: 2050 moveal %a0@,%a0
47338: 8081 orl %d1,%d0
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
4733a: 2250 moveal %a0@,%a1
4733c: 33c0 0005 c888 movew %d0,5c888 <_Priority_Major_bit_map>
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
47342: 2548 0004 movel %a0,%a2@(4)
before_node = after_node->next;
after_node->next = the_node;
47346: 208a movel %a2,%a0@
the_node->next = before_node;
before_node->previous = the_node;
47348: 234a 0004 movel %a2,%a1@(4)
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
4734c: 2489 movel %a1,%a2@
4734e: 6036 bras 47386 <_Thread_Change_priority+0xf6>
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
47350: 2268 0004 moveal %a0@(4),%a1
47354: 3028 000a movew %a0@(10),%d0
47358: 3211 movew %a1@,%d1
4735a: 8081 orl %d1,%d0
4735c: 3280 movew %d0,%a1@
_Priority_Major_bit_map |= the_priority_map->ready_major;
4735e: 3228 0008 movew %a0@(8),%d1
47362: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
Thread_Control *the_thread
)
{
_Priority_bit_map_Add( &the_thread->scheduler.priority->Priority_map );
_Chain_Append_unprotected( the_thread->scheduler.priority->ready_chain,
47368: 2050 moveal %a0@,%a0
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
4736a: 2808 movel %a0,%d4
4736c: 5884 addql #4,%d4
4736e: 8081 orl %d1,%d0
Chain_Node *old_last = tail->previous;
47370: 2268 0008 moveal %a0@(8),%a1
47374: 33c0 0005 c888 movew %d0,5c888 <_Priority_Major_bit_map>
the_node->next = tail;
tail->previous = the_node;
4737a: 214a 0008 movel %a2,%a0@(8)
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
4737e: 2484 movel %d4,%a2@
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
the_node->previous = old_last;
47380: 2549 0004 movel %a1,%a2@(4)
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
47384: 228a movel %a2,%a1@
_Scheduler_priority_Ready_queue_enqueue_first( the_thread );
else
_Scheduler_priority_Ready_queue_enqueue( the_thread );
}
_ISR_Flash( level );
47386: 203c 0000 0700 movel #1792,%d0
4738c: 46c2 movew %d2,%sr
4738e: 8082 orl %d2,%d0
47390: 46c0 movew %d0,%sr
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule(
Scheduler_Control *the_scheduler
)
{
the_scheduler->Operations.schedule( the_scheduler );
47392: 4879 0005 c73e pea 5c73e <_Scheduler>
47398: 2079 0005 c742 moveal 5c742 <_Scheduler+0x4>,%a0
4739e: 4e90 jsr %a0@
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
473a0: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
* We altered the set of thread priorities. So let's figure out
* who is the heir and if we need to switch to them.
*/
_Scheduler_Schedule(&_Scheduler);
if ( !_Thread_Is_executing_also_the_heir() &&
473a6: 588f addql #4,%sp
473a8: b1f9 0005 c87c cmpal 5c87c <_Per_CPU_Information+0x10>,%a0
473ae: 670e beqs 473be <_Thread_Change_priority+0x12e>
473b0: 4a28 0074 tstb %a0@(116)
473b4: 6708 beqs 473be <_Thread_Change_priority+0x12e> <== NEVER TAKEN
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
473b6: 7001 moveq #1,%d0
473b8: 13c0 0005 c884 moveb %d0,5c884 <_Per_CPU_Information+0x18>
_ISR_Enable( level );
473be: 46c2 movew %d2,%sr
}
473c0: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2
473c6: 4e5e unlk %fp
...
000473cc <_Thread_Clear_state>:
)
{
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
473cc: 223c 0000 0700 movel #1792,%d1
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
473d2: 4e56 0000 linkw %fp,#0
473d6: 206e 0008 moveal %fp@(8),%a0
473da: 2f03 movel %d3,%sp@-
473dc: 202e 000c movel %fp@(12),%d0
473e0: 2f02 movel %d2,%sp@-
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
473e2: 40c2 movew %sr,%d2
473e4: 8282 orl %d2,%d1
473e6: 46c1 movew %d1,%sr
current_state = the_thread->current_state;
473e8: 2228 0010 movel %a0@(16),%d1
if ( current_state & state ) {
473ec: 2600 movel %d0,%d3
473ee: c681 andl %d1,%d3
473f0: 671c beqs 4740e <_Thread_Clear_state+0x42> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
473f2: 4680 notl %d0
473f4: c081 andl %d1,%d0
current_state =
the_thread->current_state = _States_Clear( state, current_state );
473f6: 2140 0010 movel %d0,%a0@(16)
if ( _States_Is_ready( current_state ) ) {
473fa: 6612 bnes 4740e <_Thread_Clear_state+0x42> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Scheduler_Unblock(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
the_scheduler->Operations.unblock( the_scheduler, the_thread );
473fc: 2f08 movel %a0,%sp@-
473fe: 4879 0005 c73e pea 5c73e <_Scheduler>
47404: 2079 0005 c74e moveal 5c74e <_Scheduler+0x10>,%a0
4740a: 4e90 jsr %a0@
4740c: 508f addql #8,%sp
_Scheduler_Unblock( &_Scheduler, the_thread);
}
}
_ISR_Enable( level );
4740e: 46c2 movew %d2,%sr
}
47410: 242e fff8 movel %fp@(-8),%d2
47414: 262e fffc movel %fp@(-4),%d3
47418: 4e5e unlk %fp <== NOT EXECUTED
0004741c <_Thread_Close>:
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
4741c: 4280 clrl %d0
void _Thread_Close(
Objects_Information *information,
Thread_Control *the_thread
)
{
4741e: 4e56 0000 linkw %fp,#0
47422: 2f0b movel %a3,%sp@-
47424: 266e 0008 moveal %fp@(8),%a3
47428: 2f0a movel %a2,%sp@-
4742a: 246e 000c moveal %fp@(12),%a2
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4742e: 206b 0018 moveal %a3@(24),%a0
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
47432: 302a 000a movew %a2@(10),%d0
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
47436: 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;
4743a: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
47440: 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 );
47442: 2f0a movel %a2,%sp@-
47444: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level>
4744a: 4eb9 0004 8394 jsr 48394 <_User_extensions_Thread_delete>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
47450: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
47456: 5280 addql #1,%d0
47458: 23c0 0005 c6b8 movel %d0,5c6b8 <_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 );
4745e: 2f0a movel %a2,%sp@-
47460: 2f0b movel %a3,%sp@-
47462: 4eb9 0004 6898 jsr 46898 <_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 );
47468: 4878 0001 pea 1 <ADD>
4746c: 2f0a movel %a2,%sp@-
4746e: 4eb9 0004 7ed8 jsr 47ed8 <_Thread_Set_state>
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
47474: 2f0a movel %a2,%sp@-
47476: 4eb9 0004 7d48 jsr 47d48 <_Thread_queue_Extract_with_proxy>
4747c: 4fef 0018 lea %sp@(24),%sp
47480: 4a00 tstb %d0
47482: 6614 bnes 47498 <_Thread_Close+0x7c> <== NEVER TAKEN
if ( _Watchdog_Is_active( &the_thread->Timer ) )
47484: 7002 moveq #2,%d0
47486: b0aa 0050 cmpl %a2@(80),%d0
4748a: 660c bnes 47498 <_Thread_Close+0x7c> <== ALWAYS TAKEN
(void) _Watchdog_Remove( &the_thread->Timer );
4748c: 486a 0048 pea %a2@(72) <== NOT EXECUTED
47490: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove> <== NOT EXECUTED
47496: 588f addql #4,%sp <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Scheduler_Thread_scheduler_free(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
return the_scheduler->Operations.scheduler_free( the_scheduler, the_thread );
47498: 2f0a movel %a2,%sp@-
4749a: 4879 0005 c73e pea 5c73e <_Scheduler>
474a0: 2079 0005 c756 moveal 5c756 <_Scheduler+0x18>,%a0
474a6: 4e90 jsr %a0@
/*
* 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 ) )
474a8: 508f addql #8,%sp
474aa: b5f9 0005 c73a cmpal 5c73a <_Thread_Allocated_fp>,%a2
474b0: 6606 bnes 474b8 <_Thread_Close+0x9c> <== ALWAYS TAKEN
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void )
{
_Thread_Allocated_fp = NULL;
474b2: 42b9 0005 c73a clrl 5c73a <_Thread_Allocated_fp> <== NOT EXECUTED
_Thread_Deallocate_fp();
#endif
the_thread->fp_context = NULL;
if ( the_thread->Start.fp_context )
474b8: 202a 00b8 movel %a2@(184),%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;
474bc: 42aa 00f4 clrl %a2@(244)
if ( the_thread->Start.fp_context )
474c0: 4a80 tstl %d0
474c2: 670a beqs 474ce <_Thread_Close+0xb2> <== ALWAYS TAKEN
(void) _Workspace_Free( the_thread->Start.fp_context );
474c4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
474c6: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
474cc: 588f addql #4,%sp <== NOT EXECUTED
/*
* Free the rest of the memory associated with this task
* and set the associated pointers to NULL for safety.
*/
_Thread_Stack_Free( the_thread );
474ce: 2f0a movel %a2,%sp@-
474d0: 4eb9 0004 7ff4 jsr 47ff4 <_Thread_Stack_Free>
the_thread->Start.stack = NULL;
if ( the_thread->extensions )
474d6: 202a 0104 movel %a2@(260),%d0
474da: 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;
474dc: 42aa 00bc clrl %a2@(188)
if ( the_thread->extensions )
474e0: 4a80 tstl %d0
474e2: 670a beqs 474ee <_Thread_Close+0xd2> <== ALWAYS TAKEN
(void) _Workspace_Free( the_thread->extensions );
474e4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
474e6: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
474ec: 588f addql #4,%sp <== NOT EXECUTED
the_thread->extensions = NULL;
474ee: 42aa 0104 clrl %a2@(260)
}
474f2: 246e fff8 moveal %fp@(-8),%a2
474f6: 266e fffc moveal %fp@(-4),%a3
474fa: 4e5e unlk %fp
...
000475b0 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
475b0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
475b4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
475b8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
475bc: 4eb9 0004 7750 jsr 47750 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
475c2: 508f addql #8,%sp <== NOT EXECUTED
475c4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
475c8: 661e bnes 475e8 <_Thread_Delay_ended+0x38> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
475ca: 2f3c 1000 0018 movel #268435480,%sp@- <== NOT EXECUTED
475d0: 2f00 movel %d0,%sp@- <== NOT EXECUTED
475d2: 4eb9 0004 73cc jsr 473cc <_Thread_Clear_state> <== NOT EXECUTED
475d8: 508f addql #8,%sp <== NOT EXECUTED
475da: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
475e0: 5380 subql #1,%d0 <== NOT EXECUTED
475e2: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
475e8: 4e5e unlk %fp <== NOT EXECUTED
00040564 <_Thread_Disable_dispatch>:
*/
extern Heap_Control *RTEMS_Malloc_Heap;
#endif
RTEMS_INLINE_ROUTINE void _Thread_Disable_dispatch( void )
{
40564: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
40568: 2039 0006 1f64 movel 61f64 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4056e: 5280 addql #1,%d0 <== NOT EXECUTED
40570: 23c0 0006 1f64 movel %d0,61f64 <_Thread_Dispatch_disable_level><== NOT EXECUTED
#if defined(RTEMS_HEAVY_MALLOC_DEBUG)
if ( _Thread_Dispatch_disable_level == 1 ) {
_Heap_Walk( RTEMS_Malloc_Heap,99, false );
}
#endif
}
40576: 4e5e unlk %fp <== NOT EXECUTED
000475ec <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
475ec: 4e56 ffc8 linkw %fp,#-56
475f0: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
475f4: 283c 0000 0700 movel #1792,%d4
475fa: 2204 movel %d4,%d1
{
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
475fc: 2479 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a2
_ISR_Disable( level );
47602: 40c0 movew %sr,%d0
47604: 8280 orl %d0,%d1
47606: 46c1 movew %d1,%sr
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
47608: 260e movel %fp,%d3
_Timestamp_Subtract(
4760a: 240e movel %fp,%d2
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
4760c: 5183 subql #8,%d3
_Timestamp_Subtract(
4760e: 0682 ffff fff0 addil #-16,%d2
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
47614: 2e3c 0004 8160 movel #295264,%d7
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
4761a: 2c3c 0004 8414 movel #295956,%d6
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
47620: 2a3c 0004 8728 movel #296744,%d5
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
_Context_Restore_fp( &executing->fp_context );
47626: 4bf9 0004 8890 lea 48890 <_CPU_Context_restore_fp>,%a5
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
4762c: 49f9 0004 886e lea 4886e <_CPU_Context_save_fp>,%a4
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
47632: 6000 00d4 braw 47708 <_Thread_Dispatch+0x11c>
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
47636: 7201 moveq #1,%d1
47638: 23c1 0005 c6b8 movel %d1,5c6b8 <_Thread_Dispatch_disable_level>
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
4763e: 2679 0005 c87c moveal 5c87c <_Per_CPU_Information+0x10>,%a3
_Thread_Dispatch_disable_level = 1;
_Thread_Dispatch_necessary = false;
47644: 4201 clrb %d1
_Thread_Executing = heir;
47646: 23cb 0005 c878 movel %a3,5c878 <_Per_CPU_Information+0xc>
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Thread_Dispatch_necessary = false;
4764c: 13c1 0005 c884 moveb %d1,5c884 <_Per_CPU_Information+0x18>
/*
* When the heir and executing are the same, then we are being
* requested to do the post switch dispatching. This is normally
* done to dispatch signals.
*/
if ( heir == executing )
47652: b5cb cmpal %a3,%a2
47654: 6700 00bc beqw 47712 <_Thread_Dispatch+0x126>
*/
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
47658: 7201 moveq #1,%d1
4765a: b2ab 007a cmpl %a3@(122),%d1
4765e: 660a bnes 4766a <_Thread_Dispatch+0x7e> <== ALWAYS TAKEN
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
47660: 41f9 0005 c670 lea 5c670 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
47666: 2750 0076 movel %a0@,%a3@(118) <== NOT EXECUTED
_ISR_Enable( level );
4766a: 46c0 movew %d0,%sr
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
4766c: 2f03 movel %d3,%sp@-
4766e: 4eb9 0004 a13c jsr 4a13c <_TOD_Get_uptime>
_Timestamp_Subtract(
47674: 2f02 movel %d2,%sp@-
47676: 2f03 movel %d3,%sp@-
47678: 4879 0005 c784 pea 5c784 <_Thread_Time_of_last_context_switch>
4767e: 4eb9 0004 8198 jsr 48198 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
47684: 2047 moveal %d7,%a0
47686: 2f02 movel %d2,%sp@-
47688: 486a 0082 pea %a2@(130)
4768c: 4e90 jsr %a0@
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
4768e: 2079 0005 c75e moveal 5c75e <_Thread_libc_reent>,%a0
47694: 4fef 0018 lea %sp@(24),%sp
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
47698: 202e fff8 movel %fp@(-8),%d0
4769c: 222e fffc movel %fp@(-4),%d1
476a0: 23c0 0005 c784 movel %d0,5c784 <_Thread_Time_of_last_context_switch>
476a6: 23c1 0005 c788 movel %d1,5c788 <_Thread_Time_of_last_context_switch+0x4>
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
476ac: 4a88 tstl %a0
476ae: 6708 beqs 476b8 <_Thread_Dispatch+0xcc> <== NEVER TAKEN
executing->libc_reent = *_Thread_libc_reent;
476b0: 2550 00f8 movel %a0@,%a2@(248)
*_Thread_libc_reent = heir->libc_reent;
476b4: 20ab 00f8 movel %a3@(248),%a0@
}
_User_extensions_Thread_switch( executing, heir );
476b8: 2f0b movel %a3,%sp@-
476ba: 2046 moveal %d6,%a0
476bc: 2f0a movel %a2,%sp@-
476be: 4e90 jsr %a0@
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
476c0: 486b 00c0 pea %a3@(192)
476c4: 2045 moveal %d5,%a0
476c6: 486a 00c0 pea %a2@(192)
476ca: 4e90 jsr %a0@
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
476cc: 4fef 0010 lea %sp@(16),%sp
476d0: 4aaa 00f4 tstl %a2@(244)
476d4: 6724 beqs 476fa <_Thread_Dispatch+0x10e> <== ALWAYS TAKEN
#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 );
476d6: 2079 0005 c73a moveal 5c73a <_Thread_Allocated_fp>,%a0 <== NOT EXECUTED
476dc: b1ca cmpal %a2,%a0 <== NOT EXECUTED
476de: 671a beqs 476fa <_Thread_Dispatch+0x10e> <== NOT EXECUTED
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
476e0: 4a88 tstl %a0 <== NOT EXECUTED
476e2: 6708 beqs 476ec <_Thread_Dispatch+0x100> <== NOT EXECUTED
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
476e4: 4868 00f4 pea %a0@(244) <== NOT EXECUTED
476e8: 4e94 jsr %a4@ <== NOT EXECUTED
476ea: 588f addql #4,%sp <== NOT EXECUTED
_Context_Restore_fp( &executing->fp_context );
476ec: 486a 00f4 pea %a2@(244) <== NOT EXECUTED
476f0: 4e95 jsr %a5@ <== NOT EXECUTED
_Thread_Allocated_fp = executing;
476f2: 588f addql #4,%sp <== NOT EXECUTED
476f4: 23ca 0005 c73a movel %a2,5c73a <_Thread_Allocated_fp> <== NOT EXECUTED
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
476fa: 2479 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a2
_ISR_Disable( level );
47700: 2204 movel %d4,%d1
47702: 40c0 movew %sr,%d0
47704: 8280 orl %d0,%d1
47706: 46c1 movew %d1,%sr
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
47708: 1239 0005 c884 moveb 5c884 <_Per_CPU_Information+0x18>,%d1
4770e: 6600 ff26 bnew 47636 <_Thread_Dispatch+0x4a>
_ISR_Disable( level );
}
post_switch:
_Thread_Dispatch_disable_level = 0;
47712: 42b9 0005 c6b8 clrl 5c6b8 <_Thread_Dispatch_disable_level>
_ISR_Enable( level );
47718: 46c0 movew %d0,%sr
_API_extensions_Run_postswitch();
4771a: 4eb9 0004 5e30 jsr 45e30 <_API_extensions_Run_postswitch>
}
47720: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5
47726: 4e5e unlk %fp <== NOT EXECUTED
00047750 <_Thread_Get>:
*/
Thread_Control *_Thread_Get (
Objects_Id id,
Objects_Locations *location
)
{
47750: 4e56 0000 linkw %fp,#0
47754: 202e 0008 movel %fp@(8),%d0
47758: 2f03 movel %d3,%sp@-
4775a: 206e 000c moveal %fp@(12),%a0
4775e: 2f02 movel %d2,%sp@-
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
47760: 4a80 tstl %d0
47762: 6618 bnes 4777c <_Thread_Get+0x2c>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
47764: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
4776a: 5280 addql #1,%d0
4776c: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
*location = OBJECTS_LOCAL;
47772: 4290 clrl %a0@
tp = _Thread_Executing;
47774: 2039 0005 c878 movel 5c878 <_Per_CPU_Information+0xc>,%d0
goto done;
4777a: 6044 bras 477c0 <_Thread_Get+0x70>
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
4777c: 7418 moveq #24,%d2
4777e: 2200 movel %d0,%d1
47780: e4a9 lsrl %d2,%d1
47782: 7607 moveq #7,%d3
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
47784: 143c 0002 moveb #2,%d2
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
47788: c283 andl %d3,%d1
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
4778a: 2241 moveal %d1,%a1
4778c: 5389 subql #1,%a1
4778e: b489 cmpl %a1,%d2
47790: 643a bccs 477cc <_Thread_Get+0x7c> <== ALWAYS TAKEN
47792: 6014 bras 477a8 <_Thread_Get+0x58> <== NOT EXECUTED
if ( the_class != 1 ) { /* threads are always first class :) */
*location = OBJECTS_ERROR;
goto done;
}
api_information = _Objects_Information_table[ the_api ];
47794: 43f9 0005 c674 lea 5c674 <_Objects_Information_table>,%a1
4779a: 2271 1c00 moveal %a1@(00000000,%d1:l:4),%a1
/*
* There is no way for this to happen if POSIX is enabled.
*/
#if !defined(RTEMS_POSIX_API)
if ( !api_information ) {
4779e: 4a89 tstl %a1
477a0: 6706 beqs 477a8 <_Thread_Get+0x58> <== NEVER TAKEN
*location = OBJECTS_ERROR;
goto done;
}
#endif
information = api_information[ the_class ];
477a2: 2229 0004 movel %a1@(4),%d1
if ( !information ) {
477a6: 6608 bnes 477b0 <_Thread_Get+0x60> <== ALWAYS TAKEN
*location = OBJECTS_ERROR;
477a8: 7001 moveq #1,%d0 <== NOT EXECUTED
477aa: 2080 movel %d0,%a0@ <== NOT EXECUTED
{
uint32_t the_api;
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
477ac: 4280 clrl %d0 <== NOT EXECUTED
#endif
information = api_information[ the_class ];
if ( !information ) {
*location = OBJECTS_ERROR;
goto done;
477ae: 6010 bras 477c0 <_Thread_Get+0x70> <== NOT EXECUTED
}
tp = (Thread_Control *) _Objects_Get( information, id, location );
477b0: 2f08 movel %a0,%sp@-
477b2: 2f00 movel %d0,%sp@-
477b4: 2f01 movel %d1,%sp@-
477b6: 4eb9 0004 6c74 jsr 46c74 <_Objects_Get>
477bc: 4fef 000c lea %sp@(12),%sp
done:
return tp;
}
477c0: 242e fff8 movel %fp@(-8),%d2
477c4: 262e fffc movel %fp@(-4),%d3
477c8: 4e5e unlk %fp
477ca: 4e75 rts
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
477cc: 761b moveq #27,%d3
477ce: 2400 movel %d0,%d2
477d0: e6aa lsrl %d3,%d2
*location = OBJECTS_ERROR;
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
477d2: 163c 0001 moveb #1,%d3
477d6: b682 cmpl %d2,%d3
477d8: 67ba beqs 47794 <_Thread_Get+0x44> <== ALWAYS TAKEN
477da: 60cc bras 477a8 <_Thread_Get+0x58> <== NOT EXECUTED
0004b9d0 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
4b9d0: 4e56 0000 linkw %fp,#0
4b9d4: 2f0a movel %a2,%sp@-
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
4b9d6: 2479 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a2
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
4b9dc: 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;
4b9de: 222a 00a8 movel %a2@(168),%d1
_ISR_Set_level(level);
4b9e2: 40c0 movew %sr,%d0
4b9e4: e189 lsll #8,%d1
4b9e6: 0280 0000 f8ff andil #63743,%d0
4b9ec: 8081 orl %d1,%d0
4b9ee: 46c0 movew %d0,%sr
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
doneConstructors = 1;
4b9f0: 7001 moveq #1,%d0
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
4b9f2: 1439 0005 be7c moveb 5be7c <doneConstructors.3355>,%d2
doneConstructors = 1;
4b9f8: 13c0 0005 be7c moveb %d0,5be7c <doneConstructors.3355>
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
4b9fe: 4aaa 00f4 tstl %a2@(244)
4ba02: 6720 beqs 4ba24 <_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 );
4ba04: 2079 0005 c73a moveal 5c73a <_Thread_Allocated_fp>,%a0
4ba0a: b1ca cmpal %a2,%a0
4ba0c: 6716 beqs 4ba24 <_Thread_Handler+0x54> <== NEVER TAKEN
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
4ba0e: 4a88 tstl %a0
4ba10: 670c beqs 4ba1e <_Thread_Handler+0x4e> <== ALWAYS TAKEN
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
4ba12: 4868 00f4 pea %a0@(244) <== NOT EXECUTED
4ba16: 4eb9 0004 886e jsr 4886e <_CPU_Context_save_fp> <== NOT EXECUTED
4ba1c: 588f addql #4,%sp <== NOT EXECUTED
_Thread_Allocated_fp = executing;
4ba1e: 23ca 0005 c73a movel %a2,5c73a <_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 );
4ba24: 2f0a movel %a2,%sp@-
4ba26: 4eb9 0004 8290 jsr 48290 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
4ba2c: 4eb9 0004 772a jsr 4772a <_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) */ {
4ba32: 588f addql #4,%sp
4ba34: 4a02 tstb %d2
4ba36: 6606 bnes 4ba3e <_Thread_Handler+0x6e>
INIT_NAME ();
4ba38: 4eb9 0005 94f4 jsr 594f4 <_init>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
4ba3e: 4aaa 0092 tstl %a2@(146)
4ba42: 6610 bnes 4ba54 <_Thread_Handler+0x84> <== NEVER TAKEN
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
4ba44: 2f2a 009a movel %a2@(154),%sp@-
4ba48: 206a 008e moveal %a2@(142),%a0
4ba4c: 4e90 jsr %a0@
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =
4ba4e: 588f addql #4,%sp
4ba50: 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 );
4ba54: 2f0a movel %a2,%sp@-
4ba56: 4eb9 0004 82c8 jsr 482c8 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
4ba5c: 4878 0005 pea 5 <COMPARE>
4ba60: 4878 0001 pea 1 <ADD>
4ba64: 42a7 clrl %sp@-
4ba66: 4eb9 0004 6768 jsr 46768 <_Internal_error_Occurred>
000477dc <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
477dc: 4e56 ffec linkw %fp,#-20
477e0: 48d7 043c moveml %d2-%d5/%a2,%sp@
477e4: 246e 000c moveal %fp@(12),%a2
477e8: 242e 0014 movel %fp@(20),%d2
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
477ec: 42aa 00fc clrl %a2@(252)
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
477f0: 2a2e 001c movel %fp@(28),%d5
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
477f4: 42aa 0100 clrl %a2@(256)
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
477f8: 162e 001b moveb %fp@(27),%d3
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
extensions_area = NULL;
the_thread->libc_reent = NULL;
477fc: 42aa 00f8 clrl %a2@(248)
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
47800: 182e 0023 moveb %fp@(35),%d4
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
47804: 2f02 movel %d2,%sp@-
47806: 2f0a movel %a2,%sp@-
47808: 4eb9 0004 7fa8 jsr 47fa8 <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
4780e: 508f addql #8,%sp
47810: 4a80 tstl %d0
47812: 6700 0168 beqw 4797c <_Thread_Initialize+0x1a0>
47816: b480 cmpl %d0,%d2
47818: 6200 0162 bhiw 4797c <_Thread_Initialize+0x1a0>
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
the_stack->size = size;
4781c: 2540 00b0 movel %d0,%a2@(176)
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
47820: 256a 00bc 00b4 movel %a2@(188),%a2@(180)
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
47826: 4a03 tstb %d3
47828: 6714 beqs 4783e <_Thread_Initialize+0x62>
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
4782a: 4878 001c pea 1c <OPER2+0x8>
4782e: 4eb9 0004 86c0 jsr 486c0 <_Workspace_Allocate>
if ( !fp_area )
47834: 588f addql #4,%sp
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
47836: 2600 movel %d0,%d3
if ( !fp_area )
47838: 6606 bnes 47840 <_Thread_Initialize+0x64> <== ALWAYS TAKEN
4783a: 6000 00d8 braw 47914 <_Thread_Initialize+0x138> <== NOT EXECUTED
extensions_area = NULL;
the_thread->libc_reent = NULL;
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
fp_area = NULL;
4783e: 4283 clrl %d3
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
47840: 2039 0005 c76a movel 5c76a <_Thread_Maximum_extensions>,%d0
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
47846: 2543 00f4 movel %d3,%a2@(244)
the_thread->Start.fp_context = fp_area;
4784a: 2543 00b8 movel %d3,%a2@(184)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4784e: 42aa 0050 clrl %a2@(80)
the_watchdog->routine = routine;
47852: 42aa 0064 clrl %a2@(100)
the_watchdog->id = id;
47856: 42aa 0068 clrl %a2@(104)
the_watchdog->user_data = user_data;
4785a: 42aa 006c clrl %a2@(108)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
4785e: 4a80 tstl %d0
47860: 6718 beqs 4787a <_Thread_Initialize+0x9e>
extensions_area = _Workspace_Allocate(
47862: e588 lsll #2,%d0
47864: 2040 moveal %d0,%a0
47866: 4868 0004 pea %a0@(4)
4786a: 4eb9 0004 86c0 jsr 486c0 <_Workspace_Allocate>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
47870: 588f addql #4,%sp
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
extensions_area = _Workspace_Allocate(
47872: 2400 movel %d0,%d2
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
47874: 6606 bnes 4787c <_Thread_Initialize+0xa0> <== ALWAYS TAKEN
47876: 6000 009e braw 47916 <_Thread_Initialize+0x13a> <== NOT EXECUTED
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
extensions_area = NULL;
4787a: 4282 clrl %d2
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
4787c: 2542 0104 movel %d2,%a2@(260)
* if they are linked to the thread. An extension user may
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
47880: 6714 beqs 47896 <_Thread_Initialize+0xba>
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
47882: 2239 0005 c76a movel 5c76a <_Thread_Maximum_extensions>,%d1
47888: 2042 moveal %d2,%a0
4788a: 4280 clrl %d0
4788c: 6004 bras 47892 <_Thread_Initialize+0xb6>
the_thread->extensions[i] = NULL;
4788e: 4298 clrl %a0@+
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
47890: 5280 addql #1,%d0
47892: b280 cmpl %d0,%d1
47894: 64f8 bccs 4788e <_Thread_Initialize+0xb2>
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
47896: 7001 moveq #1,%d0
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
47898: 256e 0024 00a0 movel %fp@(36),%a2@(160)
the_thread->Start.budget_callout = budget_callout;
4789e: 256e 0028 00a4 movel %fp@(40),%a2@(164)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
478a4: 256e 002c 00a8 movel %fp@(44),%a2@(168)
RTEMS_INLINE_ROUTINE void* _Scheduler_Thread_scheduler_allocate(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
return
478aa: 2079 0005 c752 moveal 5c752 <_Scheduler+0x14>,%a0
the_thread->current_state = STATES_DORMANT;
478b0: 2540 0010 movel %d0,%a2@(16)
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
478b4: 1544 009e moveb %d4,%a2@(158)
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
478b8: 42aa 0044 clrl %a2@(68)
the_thread->resource_count = 0;
478bc: 42aa 001c clrl %a2@(28)
the_thread->real_priority = priority;
478c0: 2545 0018 movel %d5,%a2@(24)
the_thread->Start.initial_priority = priority;
478c4: 2545 00ac movel %d5,%a2@(172)
478c8: 2f0a movel %a2,%sp@-
478ca: 4879 0005 c73e pea 5c73e <_Scheduler>
478d0: 4e90 jsr %a0@
sched =_Scheduler_Thread_scheduler_allocate( &_Scheduler, the_thread );
if ( !sched )
478d2: 508f addql #8,%sp
478d4: 2800 movel %d0,%d4
478d6: 6740 beqs 47918 <_Thread_Initialize+0x13c> <== NEVER TAKEN
goto failed;
_Thread_Set_priority( the_thread, priority );
478d8: 2f05 movel %d5,%sp@-
478da: 2f0a movel %a2,%sp@-
478dc: 4eb9 0004 7eb0 jsr 47eb0 <_Thread_Set_priority>
_Thread_Stack_Free( the_thread );
return false;
}
478e2: 206e 0008 moveal %fp@(8),%a0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
478e6: 4280 clrl %d0
478e8: 2068 0018 moveal %a0@(24),%a0
478ec: 302a 000a movew %a2@(10),%d0
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
478f0: 42aa 0082 clrl %a2@(130)
478f4: 42aa 0086 clrl %a2@(134)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
478f8: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
478fc: 256e 0030 000c movel %fp@(48),%a2@(12)
* enabled when we get here. We want to be able to run the
* user extensions with dispatching enabled. The Allocator
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
47902: 2f0a movel %a2,%sp@-
47904: 4eb9 0004 834c jsr 4834c <_User_extensions_Thread_create>
if ( extension_status )
4790a: 4fef 000c lea %sp@(12),%sp
4790e: 4a00 tstb %d0
47910: 6706 beqs 47918 <_Thread_Initialize+0x13c> <== NEVER TAKEN
47912: 606c bras 47980 <_Thread_Initialize+0x1a4>
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
extensions_area = NULL;
47914: 4282 clrl %d2 <== NOT EXECUTED
size_t actual_stack_size = 0;
void *stack = NULL;
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
void *fp_area;
#endif
void *sched = NULL;
47916: 4284 clrl %d4 <== NOT EXECUTED
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
return true;
failed:
if ( the_thread->libc_reent )
47918: 202a 00f8 movel %a2@(248),%d0 <== NOT EXECUTED
4791c: 670a beqs 47928 <_Thread_Initialize+0x14c> <== NOT EXECUTED
_Workspace_Free( the_thread->libc_reent );
4791e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47920: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
47926: 588f addql #4,%sp <== NOT EXECUTED
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
47928: 202a 00fc movel %a2@(252),%d0 <== NOT EXECUTED
4792c: 670a beqs 47938 <_Thread_Initialize+0x15c> <== NOT EXECUTED
_Workspace_Free( the_thread->API_Extensions[i] );
4792e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47930: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
47936: 588f addql #4,%sp <== NOT EXECUTED
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
47938: 202a 0100 movel %a2@(256),%d0 <== NOT EXECUTED
4793c: 670a beqs 47948 <_Thread_Initialize+0x16c> <== NOT EXECUTED
_Workspace_Free( the_thread->API_Extensions[i] );
4793e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47940: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
47946: 588f addql #4,%sp <== NOT EXECUTED
if ( extensions_area )
47948: 4a82 tstl %d2 <== NOT EXECUTED
4794a: 670a beqs 47956 <_Thread_Initialize+0x17a> <== NOT EXECUTED
(void) _Workspace_Free( extensions_area );
4794c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4794e: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
47954: 588f addql #4,%sp <== NOT EXECUTED
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
47956: 4a83 tstl %d3 <== NOT EXECUTED
47958: 670a beqs 47964 <_Thread_Initialize+0x188> <== NOT EXECUTED
(void) _Workspace_Free( fp_area );
4795a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4795c: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
47962: 588f addql #4,%sp <== NOT EXECUTED
#endif
if ( sched )
47964: 4a84 tstl %d4 <== NOT EXECUTED
47966: 670a beqs 47972 <_Thread_Initialize+0x196> <== NOT EXECUTED
(void) _Workspace_Free( sched );
47968: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4796a: 4eb9 0004 86dc jsr 486dc <_Workspace_Free> <== NOT EXECUTED
47970: 588f addql #4,%sp <== NOT EXECUTED
_Thread_Stack_Free( the_thread );
47972: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47974: 4eb9 0004 7ff4 jsr 47ff4 <_Thread_Stack_Free> <== NOT EXECUTED
return false;
4797a: 588f addql #4,%sp <== NOT EXECUTED
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
4797c: 4200 clrb %d0
4797e: 6002 bras 47982 <_Thread_Initialize+0x1a6>
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
return true;
47980: 7001 moveq #1,%d0
_Thread_Stack_Free( the_thread );
return false;
}
47982: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2
47988: 4e5e unlk %fp <== NOT EXECUTED
0004b0c4 <_Thread_Reset>:
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
4b0c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4b0c8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b0ca: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
the_thread->resource_count = 0;
the_thread->is_preemptible = the_thread->Start.is_preemptible;
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
4b0ce: 256a 00a0 007a movel %a2@(160),%a2@(122) <== NOT EXECUTED
the_thread->budget_callout = the_thread->Start.budget_callout;
4b0d4: 256a 00a4 007e movel %a2@(164),%a2@(126) <== NOT EXECUTED
the_thread->Start.pointer_argument = pointer_argument;
4b0da: 256e 000c 0096 movel %fp@(12),%a2@(150) <== NOT EXECUTED
the_thread->Start.numeric_argument = numeric_argument;
4b0e0: 256e 0010 009a movel %fp@(16),%a2@(154) <== NOT EXECUTED
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
the_thread->is_preemptible = the_thread->Start.is_preemptible;
4b0e6: 156a 009e 0074 moveb %a2@(158),%a2@(116) <== NOT EXECUTED
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
4b0ec: 42aa 001c clrl %a2@(28) <== NOT EXECUTED
the_thread->budget_callout = the_thread->Start.budget_callout;
the_thread->Start.pointer_argument = pointer_argument;
the_thread->Start.numeric_argument = numeric_argument;
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
4b0f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b0f2: 4eb9 0004 8500 jsr 48500 <_Thread_queue_Extract_with_proxy><== NOT EXECUTED
4b0f8: 588f addql #4,%sp <== NOT EXECUTED
4b0fa: 4a00 tstb %d0 <== NOT EXECUTED
4b0fc: 6614 bnes 4b112 <_Thread_Reset+0x4e> <== NOT EXECUTED
if ( _Watchdog_Is_active( &the_thread->Timer ) )
4b0fe: 7002 moveq #2,%d0 <== NOT EXECUTED
4b100: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED
4b104: 660c bnes 4b112 <_Thread_Reset+0x4e> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4b106: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4b10a: 4eb9 0004 8de4 jsr 48de4 <_Watchdog_Remove> <== NOT EXECUTED
4b110: 588f addql #4,%sp <== NOT EXECUTED
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
4b112: 202a 00ac movel %a2@(172),%d0 <== NOT EXECUTED
4b116: b0aa 0014 cmpl %a2@(20),%d0 <== NOT EXECUTED
4b11a: 6718 beqs 4b134 <_Thread_Reset+0x70> <== NOT EXECUTED
the_thread->real_priority = the_thread->Start.initial_priority;
4b11c: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
4b120: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
}
4b124: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
the_thread->real_priority = the_thread->Start.initial_priority;
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
4b128: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
}
}
4b12c: 4e5e unlk %fp <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
the_thread->real_priority = the_thread->Start.initial_priority;
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
4b12e: 4ef9 0004 86ec jmp 486ec <_Thread_Set_priority> <== NOT EXECUTED
}
}
4b134: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4b138: 4e5e unlk %fp <== NOT EXECUTED
00048668 <_Thread_Restart>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
48668: 7001 moveq #1,%d0 <== NOT EXECUTED
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
4866a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4866e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48670: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
48674: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED
if ( !_States_Is_dormant( the_thread->current_state ) ) {
48678: 6664 bnes 486de <_Thread_Restart+0x76> <== NOT EXECUTED
_Thread_Set_transient( the_thread );
4867a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4867c: 4eb9 0004 8760 jsr 48760 <_Thread_Set_transient> <== NOT EXECUTED
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
48682: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
48686: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4868a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4868c: 4eb9 0004 b0c4 jsr 4b0c4 <_Thread_Reset> <== NOT EXECUTED
_Thread_Load_environment( the_thread );
48692: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48694: 4eb9 0004 adf4 jsr 4adf4 <_Thread_Load_environment> <== NOT EXECUTED
_Thread_Ready( the_thread );
4869a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4869c: 4eb9 0004 b08c jsr 4b08c <_Thread_Ready> <== NOT EXECUTED
_User_extensions_Thread_restart( the_thread );
486a2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
486a4: 4eb9 0004 8c10 jsr 48c10 <_User_extensions_Thread_restart> <== NOT EXECUTED
if ( _Thread_Is_executing ( the_thread ) )
486aa: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
486ae: b5f9 0005 d3a0 cmpal 5d3a0 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
486b4: 662c bnes 486e2 <_Thread_Restart+0x7a> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )
{
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( _Thread_Executing->fp_context != NULL )
486b6: 4aaa 00f4 tstl %a2@(244) <== NOT EXECUTED
486ba: 670c beqs 486c8 <_Thread_Restart+0x60> <== NOT EXECUTED
_Context_Restore_fp( &_Thread_Executing->fp_context );
486bc: 486a 00f4 pea %a2@(244) <== NOT EXECUTED
486c0: 4eb9 0004 910c jsr 4910c <_CPU_Context_restore_fp> <== NOT EXECUTED
486c6: 588f addql #4,%sp <== NOT EXECUTED
#endif
_CPU_Context_Restart_self( &_Thread_Executing->Registers );
486c8: 2079 0005 d3a0 moveal 5d3a0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
486ce: 41e8 00c0 lea %a0@(192),%a0 <== NOT EXECUTED
486d2: 2f08 movel %a0,%sp@- <== NOT EXECUTED
486d4: 4eb9 0004 8fba jsr 48fba <_CPU_Context_Restart_self> <== NOT EXECUTED
486da: 588f addql #4,%sp <== NOT EXECUTED
486dc: 6004 bras 486e2 <_Thread_Restart+0x7a> <== NOT EXECUTED
_Thread_Restart_self();
return true;
}
return false;
486de: 4200 clrb %d0 <== NOT EXECUTED
486e0: 6002 bras 486e4 <_Thread_Restart+0x7c> <== NOT EXECUTED
_User_extensions_Thread_restart( the_thread );
if ( _Thread_Is_executing ( the_thread ) )
_Thread_Restart_self();
return true;
486e2: 7001 moveq #1,%d0 <== NOT EXECUTED
}
return false;
}
486e4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
486e8: 4e5e unlk %fp <== NOT EXECUTED
0004acc4 <_Thread_Resume>:
{
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
4acc4: 203c 0000 0700 movel #1792,%d0
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
4acca: 4e56 0000 linkw %fp,#0
4acce: 206e 0008 moveal %fp@(8),%a0
4acd2: 2f02 movel %d2,%sp@-
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
4acd4: 40c2 movew %sr,%d2
4acd6: 8082 orl %d2,%d0
4acd8: 46c0 movew %d0,%sr
current_state = the_thread->current_state;
4acda: 2028 0010 movel %a0@(16),%d0
if ( current_state & STATES_SUSPENDED ) {
4acde: 0800 0001 btst #1,%d0
4ace2: 671c beqs 4ad00 <_Thread_Resume+0x3c> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
4ace4: 72fd moveq #-3,%d1
4ace6: c081 andl %d1,%d0
current_state =
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
4ace8: 2140 0010 movel %d0,%a0@(16)
if ( _States_Is_ready( current_state ) ) {
4acec: 6612 bnes 4ad00 <_Thread_Resume+0x3c> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Scheduler_Unblock(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
the_scheduler->Operations.unblock( the_scheduler, the_thread );
4acee: 2f08 movel %a0,%sp@-
4acf0: 4879 0005 fb16 pea 5fb16 <_Scheduler>
4acf6: 2079 0005 fb26 moveal 5fb26 <_Scheduler+0x10>,%a0
4acfc: 4e90 jsr %a0@
4acfe: 508f addql #8,%sp
_Scheduler_Unblock( &_Scheduler, the_thread );
}
}
_ISR_Enable( level );
4ad00: 46c2 movew %d2,%sr
}
4ad02: 242e fffc movel %fp@(-4),%d2
4ad06: 4e5e unlk %fp
...
00047eb0 <_Thread_Set_priority>:
void _Thread_Set_priority(
Thread_Control *the_thread,
Priority_Control new_priority
)
{
47eb0: 4e56 0000 linkw %fp,#0
RTEMS_INLINE_ROUTINE void _Scheduler_Thread_scheduler_update(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
the_scheduler->Operations.scheduler_update( the_scheduler, the_thread );
47eb4: 203c 0005 c73e movel #378686,%d0
47eba: 206e 0008 moveal %fp@(8),%a0
the_thread->current_priority = new_priority;
47ebe: 216e 000c 0014 movel %fp@(12),%a0@(20)
47ec4: 2279 0005 c75a moveal 5c75a <_Scheduler+0x1c>,%a1
47eca: 2d48 000c movel %a0,%fp@(12)
47ece: 2d40 0008 movel %d0,%fp@(8)
_Scheduler_Thread_scheduler_update(&_Scheduler, the_thread);
}
47ed2: 4e5e unlk %fp
47ed4: 4ed1 jmp %a1@
...
00047ed8 <_Thread_Set_state>:
States_Control state
)
{
ISR_Level level;
_ISR_Disable( level );
47ed8: 203c 0000 0700 movel #1792,%d0
void _Thread_Set_state(
Thread_Control *the_thread,
States_Control state
)
{
47ede: 4e56 0000 linkw %fp,#0
47ee2: 206e 0008 moveal %fp@(8),%a0
47ee6: 2f02 movel %d2,%sp@-
47ee8: 222e 000c movel %fp@(12),%d1
ISR_Level level;
_ISR_Disable( level );
47eec: 40c2 movew %sr,%d2
47eee: 8082 orl %d2,%d0
47ef0: 46c0 movew %d0,%sr
if ( !_States_Is_ready( the_thread->current_state ) ) {
47ef2: 2028 0010 movel %a0@(16),%d0
47ef6: 670a beqs 47f02 <_Thread_Set_state+0x2a> <== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Set (
States_Control states_to_set,
States_Control current_state
)
{
return (current_state | states_to_set);
47ef8: 8280 orl %d0,%d1 <== NOT EXECUTED
47efa: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED
the_thread->current_state =
_States_Set( state, the_thread->current_state );
_ISR_Enable( level );
47efe: 46c2 movew %d2,%sr <== NOT EXECUTED
return;
47f00: 6018 bras 47f1a <_Thread_Set_state+0x42> <== NOT EXECUTED
}
the_thread->current_state = state;
47f02: 2141 0010 movel %d1,%a0@(16)
RTEMS_INLINE_ROUTINE void _Scheduler_Block(
Scheduler_Control *the_scheduler,
Thread_Control *the_thread
)
{
the_scheduler->Operations.block( the_scheduler, the_thread );
47f06: 2f08 movel %a0,%sp@-
47f08: 4879 0005 c73e pea 5c73e <_Scheduler>
47f0e: 2079 0005 c74a moveal 5c74a <_Scheduler+0xc>,%a0
47f14: 4e90 jsr %a0@
_Scheduler_Block( &_Scheduler, the_thread);
_ISR_Enable( level );
47f16: 46c2 movew %d2,%sr
47f18: 508f addql #8,%sp
}
47f1a: 242e fffc movel %fp@(-4),%d2
47f1e: 4e5e unlk %fp
...
00047f24 <_Thread_Set_transient>:
)
{
ISR_Level level;
uint32_t old_state;
_ISR_Disable( level );
47f24: 203c 0000 0700 movel #1792,%d0
*/
void _Thread_Set_transient(
Thread_Control *the_thread
)
{
47f2a: 4e56 0000 linkw %fp,#0
47f2e: 226e 0008 moveal %fp@(8),%a1
47f32: 2f0a movel %a2,%sp@-
47f34: 2f02 movel %d2,%sp@-
ISR_Level level;
uint32_t old_state;
_ISR_Disable( level );
47f36: 40c1 movew %sr,%d1
47f38: 8081 orl %d1,%d0
47f3a: 46c0 movew %d0,%sr
old_state = the_thread->current_state;
47f3c: 2029 0010 movel %a1@(16),%d0
47f40: 7404 moveq #4,%d2
47f42: 8480 orl %d0,%d2
47f44: 2342 0010 movel %d2,%a1@(16)
the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state );
/* FIXME: need to check which scheduler to use? */
if ( _States_Is_ready( old_state ) ) {
47f48: 4a80 tstl %d0
47f4a: 6650 bnes 47f9c <_Thread_Set_transient+0x78>
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_extract(
Thread_Control *the_thread
)
{
Chain_Control *ready = the_thread->scheduler.priority->ready_chain;
47f4c: 2069 008a moveal %a1@(138),%a0
47f50: 2050 moveal %a0@,%a0
if ( _Chain_Has_only_one_node( ready ) ) {
47f52: 2028 0008 movel %a0@(8),%d0
47f56: b090 cmpl %a0@,%d0
47f58: 6636 bnes 47f90 <_Thread_Set_transient+0x6c> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
47f5a: 2408 movel %a0,%d2
47f5c: 5882 addql #4,%d2
head->next = tail;
head->previous = NULL;
47f5e: 42a8 0004 clrl %a0@(4)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
47f62: 2082 movel %d2,%a0@
head->next = tail;
head->previous = NULL;
tail->previous = head;
47f64: 2148 0008 movel %a0,%a0@(8)
_Chain_Initialize_empty( ready );
_Priority_bit_map_Remove( &the_thread->scheduler.priority->Priority_map );
47f68: 2069 008a moveal %a1@(138),%a0
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
47f6c: 2268 0004 moveal %a0@(4),%a1
47f70: 3028 000e movew %a0@(14),%d0
47f74: 3411 movew %a1@,%d2
47f76: c082 andl %d2,%d0
47f78: 3280 movew %d0,%a1@
if ( *the_priority_map->minor == 0 )
47f7a: 6620 bnes 47f9c <_Thread_Set_transient+0x78>
_Priority_Major_bit_map &= the_priority_map->block_major;
47f7c: 3039 0005 c888 movew 5c888 <_Priority_Major_bit_map>,%d0
47f82: 3428 000c movew %a0@(12),%d2
47f86: c082 andl %d2,%d0
47f88: 33c0 0005 c888 movew %d0,5c888 <_Priority_Major_bit_map>
47f8e: 600c bras 47f9c <_Thread_Set_transient+0x78>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
47f90: 2451 moveal %a1@,%a2 <== NOT EXECUTED
previous = the_node->previous;
47f92: 2069 0004 moveal %a1@(4),%a0 <== NOT EXECUTED
next->previous = previous;
47f96: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED
previous->next = next;
47f9a: 208a movel %a2,%a0@ <== NOT EXECUTED
_Scheduler_priority_Ready_queue_extract( the_thread);
}
_ISR_Enable( level );
47f9c: 46c1 movew %d1,%sr
}
47f9e: 241f movel %sp@+,%d2
47fa0: 245f moveal %sp@+,%a2
47fa2: 4e5e unlk %fp
...
00047ff4 <_Thread_Stack_Free>:
*/
void _Thread_Stack_Free(
Thread_Control *the_thread
)
{
47ff4: 4e56 0000 linkw %fp,#0
47ff8: 206e 0008 moveal %fp@(8),%a0
* Call ONLY the CPU table stack free hook, or the
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
47ffc: 2279 0005 aebc moveal 5aebc <Configuration+0x28>,%a1
48002: 4a89 tstl %a1
48004: 670a beqs 48010 <_Thread_Stack_Free+0x1c> <== ALWAYS TAKEN
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
48006: 2d68 00b4 0008 movel %a0@(180),%fp@(8) <== NOT EXECUTED
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
}
4800c: 4e5e unlk %fp <== NOT EXECUTED
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
4800e: 4ed1 jmp %a1@ <== NOT EXECUTED
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
48010: 2d68 00b4 0008 movel %a0@(180),%fp@(8)
}
48016: 4e5e unlk %fp
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
48018: 4ef9 0004 86dc jmp 486dc <_Workspace_Free>
...
00048070 <_Thread_Start>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
48070: 7001 moveq #1,%d0
Thread_Start_types the_prototype,
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
48072: 4e56 0000 linkw %fp,#0
48076: 2f0a movel %a2,%sp@-
48078: 246e 0008 moveal %fp@(8),%a2
4807c: c0aa 0010 andl %a2@(16),%d0
if ( _States_Is_dormant( the_thread->current_state ) ) {
48080: 6738 beqs 480ba <_Thread_Start+0x4a> <== NEVER TAKEN
the_thread->Start.entry_point = (Thread_Entry) entry_point;
48082: 256e 0010 008e movel %fp@(16),%a2@(142)
the_thread->Start.prototype = the_prototype;
48088: 256e 000c 0092 movel %fp@(12),%a2@(146)
the_thread->Start.pointer_argument = pointer_argument;
4808e: 256e 0014 0096 movel %fp@(20),%a2@(150)
the_thread->Start.numeric_argument = numeric_argument;
48094: 256e 0018 009a movel %fp@(24),%a2@(154)
_Thread_Load_environment( the_thread );
4809a: 2f0a movel %a2,%sp@-
4809c: 4eb9 0004 a578 jsr 4a578 <_Thread_Load_environment>
_Thread_Ready( the_thread );
480a2: 2f0a movel %a2,%sp@-
480a4: 4eb9 0004 a810 jsr 4a810 <_Thread_Ready>
_User_extensions_Thread_start( the_thread );
480aa: 2f0a movel %a2,%sp@-
480ac: 4eb9 0004 83d4 jsr 483d4 <_User_extensions_Thread_start>
return true;
480b2: 4fef 000c lea %sp@(12),%sp
480b6: 7001 moveq #1,%d0
480b8: 6002 bras 480bc <_Thread_Start+0x4c>
}
return false;
480ba: 4200 clrb %d0 <== NOT EXECUTED
}
480bc: 246e fffc moveal %fp@(-4),%a2
480c0: 4e5e unlk %fp <== NOT EXECUTED
000480c4 <_Thread_Suspend>:
Thread_Control *the_thread
)
{
ISR_Level level;
_ISR_Disable( level );
480c4: 203c 0000 0700 movel #1792,%d0
*/
void _Thread_Suspend(
Thread_Control *the_thread
)
{
480ca: 4e56 0000 linkw %fp,#0
480ce: 206e 0008 moveal %fp@(8),%a0
480d2: 2f02 movel %d2,%sp@-
ISR_Level level;
_ISR_Disable( level );
480d4: 40c2 movew %sr,%d2
480d6: 8082 orl %d2,%d0
480d8: 46c0 movew %d0,%sr
if ( !_States_Is_ready( the_thread->current_state ) ) {
480da: 2028 0010 movel %a0@(16),%d0
480de: 670c beqs 480ec <_Thread_Suspend+0x28> <== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Set (
States_Control states_to_set,
States_Control current_state
)
{
return (current_state | states_to_set);
480e0: 7202 moveq #2,%d1 <== NOT EXECUTED
480e2: 8280 orl %d0,%d1 <== NOT EXECUTED
480e4: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED
the_thread->current_state =
_States_Set( STATES_SUSPENDED, the_thread->current_state );
_ISR_Enable( level );
480e8: 46c2 movew %d2,%sr <== NOT EXECUTED
return;
480ea: 601a bras 48106 <_Thread_Suspend+0x42> <== NOT EXECUTED
}
the_thread->current_state = STATES_SUSPENDED;
480ec: 7002 moveq #2,%d0
480ee: 2140 0010 movel %d0,%a0@(16)
480f2: 2f08 movel %a0,%sp@-
480f4: 4879 0005 c73e pea 5c73e <_Scheduler>
480fa: 2079 0005 c74a moveal 5c74a <_Scheduler+0xc>,%a0
48100: 4e90 jsr %a0@
_Scheduler_Block(&_Scheduler, the_thread);
_ISR_Enable( level );
48102: 46c2 movew %d2,%sr
48104: 508f addql #8,%sp
}
48106: 242e fffc movel %fp@(-4),%d2
4810a: 4e5e unlk %fp
...
00048110 <_Thread_Tickle_timeslice>:
*
* Output parameters: NONE
*/
void _Thread_Tickle_timeslice( void )
{
48110: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
48114: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Thread_Control *executing;
executing = _Thread_Executing;
48116: 2479 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
/*
* If the thread is not preemptible or is not ready, then
* just return.
*/
if ( !executing->is_preemptible )
4811c: 4a2a 0074 tstb %a2@(116) <== NOT EXECUTED
48120: 6734 beqs 48156 <_Thread_Tickle_timeslice+0x46> <== NOT EXECUTED
return;
if ( !_States_Is_ready( executing->current_state ) )
48122: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED
48126: 662e bnes 48156 <_Thread_Tickle_timeslice+0x46> <== NOT EXECUTED
/*
* The cpu budget algorithm determines what happens next.
*/
switch ( executing->budget_algorithm ) {
48128: 7001 moveq #1,%d0 <== NOT EXECUTED
4812a: b0aa 007a cmpl %a2@(122),%d0 <== NOT EXECUTED
4812e: 6626 bnes 48156 <_Thread_Tickle_timeslice+0x46> <== NOT EXECUTED
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
#endif
if ( (int)(--executing->cpu_time_budget) <= 0 ) {
48130: 202a 0076 movel %a2@(118),%d0 <== NOT EXECUTED
48134: 5380 subql #1,%d0 <== NOT EXECUTED
48136: 2540 0076 movel %d0,%a2@(118) <== NOT EXECUTED
4813a: 6e1a bgts 48156 <_Thread_Tickle_timeslice+0x46> <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield( &_Scheduler );
4813c: 4879 0005 c73e pea 5c73e <_Scheduler> <== NOT EXECUTED
48142: 2079 0005 c746 moveal 5c746 <_Scheduler+0x8>,%a0 <== NOT EXECUTED
48148: 4e90 jsr %a0@ <== NOT EXECUTED
* executing thread's timeslice is reset. Otherwise, the
* currently executing thread is placed at the rear of the
* FIFO for this priority and a new heir is selected.
*/
_Scheduler_Yield( );
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
4814a: 588f addql #4,%sp <== NOT EXECUTED
4814c: 41f9 0005 c670 lea 5c670 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
48152: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED
if ( --executing->cpu_time_budget == 0 )
(*executing->budget_callout)( executing );
break;
#endif
}
}
48156: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4815a: 4e5e unlk %fp <== NOT EXECUTED
...
00047240 <_Thread_blocking_operation_Cancel>:
/*
* If the sync state is timed out, this is very likely not needed.
* But better safe than sorry when it comes to critical sections.
*/
if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
47240: 7202 moveq #2,%d1 <== NOT EXECUTED
Thread_blocking_operation_States sync_state __attribute__((unused)),
#endif
Thread_Control *the_thread,
ISR_Level level
)
{
47242: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47246: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
4724a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4724c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
#endif
/*
* The thread is not waiting on anything after this completes.
*/
the_thread->Wait.queue = NULL;
47250: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED
/*
* If the sync state is timed out, this is very likely not needed.
* But better safe than sorry when it comes to critical sections.
*/
if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
47254: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
47258: 6618 bnes 47272 <_Thread_blocking_operation_Cancel+0x32><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
4725a: 123c 0003 moveb #3,%d1 <== NOT EXECUTED
4725e: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
47262: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
47264: 486a 0048 pea %a2@(72) <== NOT EXECUTED
47268: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove> <== NOT EXECUTED
4726e: 588f addql #4,%sp <== NOT EXECUTED
47270: 6002 bras 47274 <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED
} else
_ISR_Enable( level );
47272: 46c0 movew %d0,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
47274: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
47278: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4727c: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED
47282: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
47286: 4e5e unlk %fp <== NOT EXECUTED
47288: 4ef9 0004 73cc jmp 473cc <_Thread_Clear_state> <== NOT EXECUTED
...
00047a24 <_Thread_queue_Dequeue>:
Thread_blocking_operation_States sync_state;
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
dequeue_p = _Thread_queue_Dequeue_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
dequeue_p = _Thread_queue_Dequeue_fifo;
47a24: 41f9 0004 a5f4 lea 4a5f4 <_Thread_queue_Dequeue_fifo>,%a0
Thread_Control *(*dequeue_p)( Thread_queue_Control * );
Thread_Control *the_thread;
ISR_Level level;
Thread_blocking_operation_States sync_state;
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
47a2a: 7001 moveq #1,%d0
*/
Thread_Control *_Thread_queue_Dequeue(
Thread_queue_Control *the_thread_queue
)
{
47a2c: 4e56 fff4 linkw %fp,#-12
47a30: 48d7 040c moveml %d2-%d3/%a2,%sp@
47a34: 246e 0008 moveal %fp@(8),%a2
Thread_Control *(*dequeue_p)( Thread_queue_Control * );
Thread_Control *the_thread;
ISR_Level level;
Thread_blocking_operation_States sync_state;
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
47a38: b0aa 0034 cmpl %a2@(52),%d0
47a3c: 6606 bnes 47a44 <_Thread_queue_Dequeue+0x20>
dequeue_p = _Thread_queue_Dequeue_priority;
47a3e: 41f9 0004 7a80 lea 47a80 <_Thread_queue_Dequeue_priority>,%a0
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
dequeue_p = _Thread_queue_Dequeue_fifo;
the_thread = (*dequeue_p)( the_thread_queue );
47a44: 2f0a movel %a2,%sp@-
47a46: 4e90 jsr %a0@
_ISR_Disable( level );
47a48: 223c 0000 0700 movel #1792,%d1
47a4e: 40c2 movew %sr,%d2
47a50: 8282 orl %d2,%d1
47a52: 46c1 movew %d1,%sr
if ( !the_thread ) {
47a54: 588f addql #4,%sp
47a56: 4a80 tstl %d0
47a58: 661a bnes 47a74 <_Thread_queue_Dequeue+0x50>
sync_state = the_thread_queue->sync_state;
if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
47a5a: 222a 0030 movel %a2@(48),%d1
47a5e: 7601 moveq #1,%d3
47a60: 5381 subql #1,%d1
47a62: b681 cmpl %d1,%d3
47a64: 650e bcss 47a74 <_Thread_queue_Dequeue+0x50> <== ALWAYS TAKEN
(sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) {
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
47a66: 103c 0003 moveb #3,%d0 <== NOT EXECUTED
47a6a: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED
the_thread = _Thread_Executing;
47a6e: 2039 0005 c878 movel 5c878 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
}
}
_ISR_Enable( level );
47a74: 46c2 movew %d2,%sr
return the_thread;
}
47a76: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2
47a7c: 4e5e unlk %fp <== NOT EXECUTED
0004a5f4 <_Thread_queue_Dequeue_fifo>:
)
{
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
4a5f4: 223c 0000 0700 movel #1792,%d1
*/
Thread_Control *_Thread_queue_Dequeue_fifo(
Thread_queue_Control *the_thread_queue
)
{
4a5fa: 4e56 fff4 linkw %fp,#-12
4a5fe: 206e 0008 moveal %fp@(8),%a0
4a602: 48d7 1c00 moveml %a2-%a4,%sp@
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
4a606: 40c0 movew %sr,%d0
4a608: 8280 orl %d0,%d1
4a60a: 46c1 movew %d1,%sr
return the_thread;
}
_ISR_Enable( level );
return NULL;
}
4a60c: 2248 moveal %a0,%a1
4a60e: 2459 moveal %a1@+,%a2
{
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) {
4a610: b3ca cmpal %a2,%a1
4a612: 674e beqs 4a662 <_Thread_queue_Dequeue_fifo+0x6e><== ALWAYS TAKEN
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
4a614: 2252 moveal %a2@,%a1 <== NOT EXECUTED
the_thread = (Thread_Control *)
4a616: 264a moveal %a2,%a3 <== NOT EXECUTED
4a618: 49f9 0004 73cc lea 473cc <_Thread_Clear_state>,%a4 <== NOT EXECUTED
_Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo );
the_thread->Wait.queue = NULL;
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4a61e: 7202 moveq #2,%d1 <== NOT EXECUTED
head->next = new_first;
4a620: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first->previous = head;
4a622: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) {
the_thread = (Thread_Control *)
_Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo );
the_thread->Wait.queue = NULL;
4a626: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4a62a: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
4a62e: 6710 beqs 4a640 <_Thread_queue_Dequeue_fifo+0x4c><== NOT EXECUTED
_ISR_Enable( level );
4a630: 46c0 movew %d0,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
4a632: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
4a638: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a63a: 4e94 jsr %a4@ <== NOT EXECUTED
4a63c: 508f addql #8,%sp <== NOT EXECUTED
4a63e: 6026 bras 4a666 <_Thread_queue_Dequeue_fifo+0x72><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
4a640: 7203 moveq #3,%d1 <== NOT EXECUTED
4a642: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4a646: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4a648: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4a64c: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove> <== NOT EXECUTED
4a652: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
4a658: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a65a: 4e94 jsr %a4@ <== NOT EXECUTED
4a65c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a660: 6004 bras 4a666 <_Thread_queue_Dequeue_fifo+0x72><== NOT EXECUTED
#endif
return the_thread;
}
_ISR_Enable( level );
4a662: 46c0 movew %d0,%sr
return NULL;
4a664: 97cb subal %a3,%a3
}
4a666: 200b movel %a3,%d0
4a668: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4
4a66e: 4e5e unlk %fp
...
00047a80 <_Thread_queue_Dequeue_priority>:
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
47a80: 203c 0000 0700 movel #1792,%d0
*/
Thread_Control *_Thread_queue_Dequeue_priority(
Thread_queue_Control *the_thread_queue
)
{
47a86: 4e56 ffe8 linkw %fp,#-24
47a8a: 226e 0008 moveal %fp@(8),%a1
47a8e: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
47a92: 40c1 movew %sr,%d1
47a94: 8081 orl %d1,%d0
47a96: 46c0 movew %d0,%sr
for( index=0 ;
47a98: 4280 clrl %d0
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
47a9a: 2049 moveal %a1,%a0
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
47a9c: 2600 movel %d0,%d3
47a9e: 2400 movel %d0,%d2
47aa0: e58b lsll #2,%d3
47aa2: e98a lsll #4,%d2
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
47aa4: 2450 moveal %a0@,%a2
47aa6: 9483 subl %d3,%d2
47aa8: 47f1 2804 lea %a1@(00000004,%d2:l),%a3
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
47aac: b7ca cmpal %a2,%a3
47aae: 671e beqs 47ace <_Thread_queue_Dequeue_priority+0x4e>
47ab0: 200a movel %a2,%d0
the_thread = (Thread_Control *) _Chain_First(
47ab2: 240a movel %a2,%d2
47ab4: 0680 0000 003c addil #60,%d0
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
47aba: 206a 0038 moveal %a2@(56),%a0
dequeue:
the_thread->Wait.queue = NULL;
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
47abe: 2252 moveal %a2@,%a1
previous_node = the_thread->Object.Node.previous;
47ac0: 266a 0004 moveal %a2@(4),%a3
*/
_ISR_Enable( level );
return NULL;
dequeue:
the_thread->Wait.queue = NULL;
47ac4: 42aa 0044 clrl %a2@(68)
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
previous_node = the_thread->Object.Node.previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
47ac8: b088 cmpl %a0,%d0
47aca: 6614 bnes 47ae0 <_Thread_queue_Dequeue_priority+0x60><== NEVER TAKEN
47acc: 6046 bras 47b14 <_Thread_queue_Dequeue_priority+0x94>
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
47ace: 5280 addql #1,%d0
47ad0: 41e8 000c lea %a0@(12),%a0
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
47ad4: 7404 moveq #4,%d2
47ad6: b480 cmpl %d0,%d2
47ad8: 66c2 bnes 47a9c <_Thread_queue_Dequeue_priority+0x1c>
}
/*
* We did not find a thread to unblock.
*/
_ISR_Enable( level );
47ada: 46c1 movew %d1,%sr
return NULL;
47adc: 4202 clrb %d2
47ade: 6078 bras 47b58 <_Thread_queue_Dequeue_priority+0xd8>
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
47ae0: 286a 0040 moveal %a2@(64),%a4 <== NOT EXECUTED
next_node = the_thread->Object.Node.next;
previous_node = the_thread->Object.Node.previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
47ae4: 2a50 moveal %a0@,%a5 <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
47ae6: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
47aea: 2688 movel %a0,%a3@ <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
47aec: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
next_node->previous = new_first_node;
new_first_node->next = next_node;
47af0: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
47af2: 226a 0040 moveal %a2@(64),%a1 <== NOT EXECUTED
47af6: b3ea 0038 cmpal %a2@(56),%a1 <== NOT EXECUTED
47afa: 671e beqs 47b1a <_Thread_queue_Dequeue_priority+0x9a><== NOT EXECUTED
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
47afc: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED
47b00: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
new_second_node->previous = head;
head->next = new_second_node;
47b04: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED
tail->previous = last_node;
47b08: 214c 0040 movel %a4,%a0@(64) <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
47b0c: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED
47b10: 2888 movel %a0,%a4@ <== NOT EXECUTED
47b12: 6006 bras 47b1a <_Thread_queue_Dequeue_priority+0x9a><== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
}
} else {
previous_node->next = next_node;
47b14: 2689 movel %a1,%a3@
next_node->previous = previous_node;
47b16: 234b 0004 movel %a3,%a1@(4)
47b1a: 47f9 0004 73cc lea 473cc <_Thread_Clear_state>,%a3
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
47b20: 7002 moveq #2,%d0
47b22: b0aa 0050 cmpl %a2@(80),%d0
47b26: 6710 beqs 47b38 <_Thread_queue_Dequeue_priority+0xb8><== NEVER TAKEN
_ISR_Enable( level );
47b28: 46c1 movew %d1,%sr
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
47b2a: 2f3c 1003 fff8 movel #268697592,%sp@-
47b30: 2f0a movel %a2,%sp@-
47b32: 4e93 jsr %a3@
47b34: 508f addql #8,%sp
47b36: 6020 bras 47b58 <_Thread_queue_Dequeue_priority+0xd8>
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
47b38: 7003 moveq #3,%d0 <== NOT EXECUTED
47b3a: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
47b3e: 46c1 movew %d1,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
47b40: 486a 0048 pea %a2@(72) <== NOT EXECUTED
47b44: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove> <== NOT EXECUTED
47b4a: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
47b50: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47b52: 4e93 jsr %a3@ <== NOT EXECUTED
47b54: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
47b58: 2002 movel %d2,%d0
47b5a: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5
47b60: 4e5e unlk %fp <== NOT EXECUTED
0004a674 <_Thread_queue_Enqueue_fifo>:
)
{
Thread_blocking_operation_States sync_state;
ISR_Level level;
_ISR_Disable( level );
4a674: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
Thread_blocking_operation_States _Thread_queue_Enqueue_fifo (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
4a67a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a67e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a682: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a684: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
4a688: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Thread_blocking_operation_States sync_state;
ISR_Level level;
_ISR_Disable( level );
4a68a: 40c1 movew %sr,%d1 <== NOT EXECUTED
4a68c: 8081 orl %d1,%d0 <== NOT EXECUTED
4a68e: 46c0 movew %d0,%sr <== NOT EXECUTED
sync_state = the_thread_queue->sync_state;
4a690: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
4a694: 7401 moveq #1,%d2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
sync_state = the_thread_queue->sync_state;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
4a696: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
4a69a: b480 cmpl %d0,%d2 <== NOT EXECUTED
4a69c: 661c bnes 4a6ba <_Thread_queue_Enqueue_fifo+0x46><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
4a69e: 2408 movel %a0,%d2 <== NOT EXECUTED
4a6a0: 5882 addql #4,%d2 <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
4a6a2: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
4a6a6: 2282 movel %d2,%a1@ <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
4a6a8: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED
old_last->next = the_node;
4a6ac: 2489 movel %a1,%a2@ <== NOT EXECUTED
the_node->previous = old_last;
4a6ae: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED
_Chain_Append_unprotected(
&the_thread_queue->Queues.Fifo,
&the_thread->Object.Node
);
the_thread->Wait.queue = the_thread_queue;
4a6b2: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
_ISR_Enable( level );
4a6b6: 46c1 movew %d1,%sr <== NOT EXECUTED
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
4a6b8: 6006 bras 4a6c0 <_Thread_queue_Enqueue_fifo+0x4c><== NOT EXECUTED
* 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;
4a6ba: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED
4a6be: 2081 movel %d1,%a0@ <== NOT EXECUTED
return sync_state;
}
4a6c0: 241f movel %sp@+,%d2 <== NOT EXECUTED
4a6c2: 245f moveal %sp@+,%a2 <== NOT EXECUTED
4a6c4: 4e5e unlk %fp <== NOT EXECUTED
00047bfc <_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
)
{
47bfc: 4e56 ffe0 linkw %fp,#-32
47c00: 206e 000c moveal %fp@(12),%a0
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
47c04: 43e8 003c lea %a0@(60),%a1
47c08: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@
47c0c: 246e 0008 moveal %fp@(8),%a2
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
47c10: 49e8 0038 lea %a0@(56),%a4
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
47c14: 2028 0014 movel %a0@(20),%d0
RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number (
Priority_Control the_priority
)
{
return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);
47c18: 2200 movel %d0,%d1
47c1a: ec89 lsrl #6,%d1
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
47c1c: 2a2a 0038 movel %a2@(56),%d5
Chain_Node *tail = _Chain_Tail( the_chain );
47c20: 2149 0038 movel %a1,%a0@(56)
head->next = tail;
head->previous = NULL;
47c24: 42a8 003c clrl %a0@(60)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
47c28: 214c 0040 movel %a4,%a0@(64)
if ( _Thread_queue_Is_reverse_search( priority ) )
47c2c: 0800 0005 btst #5,%d0
47c30: 6670 bnes 47ca2 <_Thread_queue_Enqueue_priority+0xa6>
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
47c32: 2401 movel %d1,%d2
if ( _Thread_queue_Is_reverse_search( priority ) )
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
47c34: 367c 0700 moveaw #1792,%a3
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
47c38: e58a lsll #2,%d2
47c3a: e989 lsll #4,%d1
47c3c: 9282 subl %d2,%d1
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
47c3e: 49f2 1804 lea %a2@(00000004,%d1:l),%a4
if ( _Thread_queue_Is_reverse_search( priority ) )
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
47c42: 260b movel %a3,%d3
47c44: 40c2 movew %sr,%d2
47c46: 8682 orl %d2,%d3
47c48: 46c3 movew %d3,%sr
47c4a: 2602 movel %d2,%d3
search_thread = (Thread_Control *) _Chain_First( header );
47c4c: 2272 1800 moveal %a2@(00000000,%d1:l),%a1
if ( _Thread_queue_Is_reverse_search( priority ) )
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
47c50: 78ff moveq #-1,%d4
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_First( header );
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
47c52: 601e bras 47c72 <_Thread_queue_Enqueue_priority+0x76>
search_priority = search_thread->current_priority;
47c54: 2829 0014 movel %a1@(20),%d4
if ( priority <= search_priority )
47c58: b880 cmpl %d0,%d4
47c5a: 641a bccs 47c76 <_Thread_queue_Enqueue_priority+0x7a>
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
47c5c: 2c0b movel %a3,%d6
47c5e: 46c2 movew %d2,%sr
47c60: 8c82 orl %d2,%d6
47c62: 46c6 movew %d6,%sr
RTEMS_INLINE_ROUTINE bool _States_Are_set (
States_Control the_states,
States_Control mask
)
{
return ( (the_states & mask) != STATES_READY);
47c64: 2c05 movel %d5,%d6
47c66: cca9 0010 andl %a1@(16),%d6
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
47c6a: 6604 bnes 47c70 <_Thread_queue_Enqueue_priority+0x74><== ALWAYS TAKEN
_ISR_Enable( level );
47c6c: 46c2 movew %d2,%sr <== NOT EXECUTED
goto restart_forward_search;
47c6e: 60d2 bras 47c42 <_Thread_queue_Enqueue_priority+0x46><== NOT EXECUTED
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
47c70: 2251 moveal %a1@,%a1
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_First( header );
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
47c72: b9c9 cmpal %a1,%a4
47c74: 66de bnes 47c54 <_Thread_queue_Enqueue_priority+0x58>
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
47c76: 7201 moveq #1,%d1
47c78: b2aa 0030 cmpl %a2@(48),%d1
47c7c: 6600 00b8 bnew 47d36 <_Thread_queue_Enqueue_priority+0x13a>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
47c80: 42aa 0030 clrl %a2@(48)
if ( priority == search_priority )
47c84: b880 cmpl %d0,%d4
47c86: 6700 0092 beqw 47d1a <_Thread_queue_Enqueue_priority+0x11e>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
47c8a: 2669 0004 moveal %a1@(4),%a3
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
47c8e: 2089 movel %a1,%a0@
the_node->previous = previous_node;
47c90: 214b 0004 movel %a3,%a0@(4)
previous_node->next = the_node;
47c94: 2688 movel %a0,%a3@
search_node->previous = the_node;
47c96: 2348 0004 movel %a0,%a1@(4)
the_thread->Wait.queue = the_thread_queue;
47c9a: 214a 0044 movel %a2,%a0@(68)
_ISR_Enable( level );
47c9e: 46c2 movew %d2,%sr
47ca0: 6074 bras 47d16 <_Thread_queue_Enqueue_priority+0x11a>
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
47ca2: 2401 movel %d1,%d2
47ca4: 280a movel %a2,%d4
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
47ca6: 367c 0700 moveaw #1792,%a3
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
47caa: e58a lsll #2,%d2
47cac: e989 lsll #4,%d1
47cae: 9282 subl %d2,%d1
47cb0: d881 addl %d1,%d4
47cb2: 2844 moveal %d4,%a4
47cb4: 508c addql #8,%a4
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
47cb6: 4282 clrl %d2
47cb8: 1439 0005 ae92 moveb 5ae92 <rtems_maximum_priority>,%d2
_ISR_Disable( level );
47cbe: 260b movel %a3,%d3
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
47cc0: 5282 addql #1,%d2
_ISR_Disable( level );
47cc2: 40c1 movew %sr,%d1
47cc4: 8681 orl %d1,%d3
47cc6: 46c3 movew %d3,%sr
47cc8: 2601 movel %d1,%d3
search_thread = (Thread_Control *) _Chain_Last( header );
47cca: 2254 moveal %a4@,%a1
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
47ccc: 6020 bras 47cee <_Thread_queue_Enqueue_priority+0xf2>
search_priority = search_thread->current_priority;
47cce: 2429 0014 movel %a1@(20),%d2
if ( priority >= search_priority )
47cd2: b480 cmpl %d0,%d2
47cd4: 631c blss 47cf2 <_Thread_queue_Enqueue_priority+0xf6><== ALWAYS TAKEN
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
47cd6: 2c0b movel %a3,%d6 <== NOT EXECUTED
47cd8: 46c1 movew %d1,%sr <== NOT EXECUTED
47cda: 8c81 orl %d1,%d6 <== NOT EXECUTED
47cdc: 46c6 movew %d6,%sr <== NOT EXECUTED
47cde: 2c05 movel %d5,%d6 <== NOT EXECUTED
47ce0: cca9 0010 andl %a1@(16),%d6 <== NOT EXECUTED
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
47ce4: 6604 bnes 47cea <_Thread_queue_Enqueue_priority+0xee><== NOT EXECUTED
_ISR_Enable( level );
47ce6: 46c1 movew %d1,%sr <== NOT EXECUTED
goto restart_reverse_search;
47ce8: 60cc bras 47cb6 <_Thread_queue_Enqueue_priority+0xba><== NOT EXECUTED
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
47cea: 2269 0004 moveal %a1@(4),%a1 <== NOT EXECUTED
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_Last( header );
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
47cee: b889 cmpl %a1,%d4
47cf0: 66dc bnes 47cce <_Thread_queue_Enqueue_priority+0xd2>
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
47cf2: 7801 moveq #1,%d4
47cf4: b8aa 0030 cmpl %a2@(48),%d4
47cf8: 663c bnes 47d36 <_Thread_queue_Enqueue_priority+0x13a><== NEVER TAKEN
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
47cfa: 42aa 0030 clrl %a2@(48)
if ( priority == search_priority )
47cfe: b480 cmpl %d0,%d2
47d00: 6718 beqs 47d1a <_Thread_queue_Enqueue_priority+0x11e><== NEVER TAKEN
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
47d02: 2651 moveal %a1@,%a3
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
47d04: 2149 0004 movel %a1,%a0@(4)
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
47d08: 208b movel %a3,%a0@
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
47d0a: 2748 0004 movel %a0,%a3@(4)
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
search_node->next = the_node;
47d0e: 2288 movel %a0,%a1@
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
47d10: 214a 0044 movel %a2,%a0@(68)
_ISR_Enable( level );
47d14: 46c1 movew %d1,%sr
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
47d16: 7001 moveq #1,%d0
47d18: 6026 bras 47d40 <_Thread_queue_Enqueue_priority+0x144>
equal_priority: /* add at end of priority group */
search_node = _Chain_Tail( &search_thread->Wait.Block2n );
47d1a: 49e9 003c lea %a1@(60),%a4 <== NOT EXECUTED
previous_node = search_node->previous;
47d1e: 2669 0040 moveal %a1@(64),%a3 <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
_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 );
47d22: 208c movel %a4,%a0@ <== NOT EXECUTED
previous_node = search_node->previous;
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
the_node->previous = previous_node;
47d24: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED
previous_node->next = the_node;
47d28: 2688 movel %a0,%a3@ <== NOT EXECUTED
search_node->previous = the_node;
47d2a: 2348 0040 movel %a0,%a1@(64) <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
47d2e: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED
_ISR_Enable( level );
47d32: 46c3 movew %d3,%sr <== NOT EXECUTED
47d34: 60e0 bras 47d16 <_Thread_queue_Enqueue_priority+0x11a><== NOT EXECUTED
* 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;
47d36: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED
return the_thread_queue->sync_state;
47d3a: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED
* 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;
47d3e: 2083 movel %d3,%a0@ <== NOT EXECUTED
return the_thread_queue->sync_state;
}
47d40: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4
47d44: 4e5e unlk %fp <== NOT EXECUTED
00047b64 <_Thread_queue_Enqueue_with_handler>:
void _Thread_queue_Enqueue_with_handler(
Thread_queue_Control *the_thread_queue,
Watchdog_Interval timeout,
Thread_queue_Timeout_callout handler
)
{
47b64: 4e56 fff0 linkw %fp,#-16
47b68: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
47b6c: 266e 0008 moveal %fp@(8),%a3
else
#endif
/*
* Set the blocking state for this thread queue in the thread.
*/
_Thread_Set_state( the_thread, the_thread_queue->state );
47b70: 2f2b 0038 movel %a3@(56),%sp@-
Thread_queue_Control *,
Thread_Control *,
ISR_Level *
);
the_thread = _Thread_Executing;
47b74: 2479 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a2
void _Thread_queue_Enqueue_with_handler(
Thread_queue_Control *the_thread_queue,
Watchdog_Interval timeout,
Thread_queue_Timeout_callout handler
)
{
47b7a: 242e 000c movel %fp@(12),%d2
else
#endif
/*
* Set the blocking state for this thread queue in the thread.
*/
_Thread_Set_state( the_thread, the_thread_queue->state );
47b7e: 2f0a movel %a2,%sp@-
47b80: 4eb9 0004 7ed8 jsr 47ed8 <_Thread_Set_state>
/*
* If the thread wants to timeout, then schedule its timer.
*/
if ( timeout ) {
47b86: 508f addql #8,%sp
47b88: 4a82 tstl %d2
47b8a: 672c beqs 47bb8 <_Thread_queue_Enqueue_with_handler+0x54><== ALWAYS TAKEN
_Watchdog_Initialize(
47b8c: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
47b90: 256e 0010 0064 movel %fp@(16),%a2@(100) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
47b96: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
47b9a: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED
the_watchdog->user_data = user_data;
47b9e: 42aa 006c clrl %a2@(108) <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
47ba2: 2542 0054 movel %d2,%a2@(84) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
47ba6: 486a 0048 pea %a2@(72) <== NOT EXECUTED
47baa: 4879 0005 c798 pea 5c798 <_Watchdog_Ticks_chain> <== NOT EXECUTED
47bb0: 4eb9 0004 844c jsr 4844c <_Watchdog_Insert> <== NOT EXECUTED
47bb6: 508f addql #8,%sp <== NOT EXECUTED
* Now enqueue the thread per the discipline for this thread queue.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
enqueue_p = _Thread_queue_Enqueue_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
enqueue_p = _Thread_queue_Enqueue_fifo;
47bb8: 41f9 0004 a674 lea 4a674 <_Thread_queue_Enqueue_fifo>,%a0
}
/*
* Now enqueue the thread per the discipline for this thread queue.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
47bbe: 7001 moveq #1,%d0
47bc0: b0ab 0034 cmpl %a3@(52),%d0
47bc4: 6606 bnes 47bcc <_Thread_queue_Enqueue_with_handler+0x68><== NEVER TAKEN
enqueue_p = _Thread_queue_Enqueue_priority;
47bc6: 41f9 0004 7bfc lea 47bfc <_Thread_queue_Enqueue_priority>,%a0
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
enqueue_p = _Thread_queue_Enqueue_fifo;
sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level );
47bcc: 486e fffc pea %fp@(-4)
47bd0: 2f0a movel %a2,%sp@-
47bd2: 2f0b movel %a3,%sp@-
47bd4: 4e90 jsr %a0@
if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
47bd6: 4fef 000c lea %sp@(12),%sp
47bda: 7201 moveq #1,%d1
47bdc: b280 cmpl %d0,%d1
47bde: 6712 beqs 47bf2 <_Thread_queue_Enqueue_with_handler+0x8e><== ALWAYS TAKEN
_Thread_blocking_operation_Cancel( sync_state, the_thread, level );
47be0: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
47be4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47be6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47be8: 4eb9 0004 7240 jsr 47240 <_Thread_blocking_operation_Cancel><== NOT EXECUTED
47bee: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
47bf2: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3
47bf8: 4e5e unlk %fp <== NOT EXECUTED
0004a6c8 <_Thread_queue_Extract>:
{
/*
* Can not use indirect function pointer here since Extract priority
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
4a6c8: 7201 moveq #1,%d1 <== NOT EXECUTED
void _Thread_queue_Extract(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
4a6ca: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a6ce: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a6d2: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
/*
* Can not use indirect function pointer here since Extract priority
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
4a6d6: b2a8 0034 cmpl %a0@(52),%d1 <== NOT EXECUTED
4a6da: 6614 bnes 4a6f0 <_Thread_queue_Extract+0x28> <== NOT EXECUTED
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
4a6dc: 42a7 clrl %sp@- <== NOT EXECUTED
4a6de: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a6e0: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4a6e2: 4eb9 0004 a700 jsr 4a700 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED
4a6e8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
}
4a6ec: 4e5e unlk %fp <== NOT EXECUTED
4a6ee: 4e75 rts <== NOT EXECUTED
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
4a6f0: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
4a6f4: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
4a6f8: 4e5e unlk %fp <== NOT EXECUTED
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
4a6fa: 4ef9 0004 ba6c jmp 4ba6c <_Thread_queue_Extract_fifo> <== NOT EXECUTED
0004ba6c <_Thread_queue_Extract_fifo>:
Thread_Control *the_thread
)
{
ISR_Level level;
_ISR_Disable( level );
4ba6c: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
void _Thread_queue_Extract_fifo(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread
)
{
4ba72: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4ba76: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ba78: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
4ba7c: 40c0 movew %sr,%d0 <== NOT EXECUTED
4ba7e: 8280 orl %d0,%d1 <== NOT EXECUTED
4ba80: 46c1 movew %d1,%sr <== NOT EXECUTED
4ba82: 222a 0010 movel %a2@(16),%d1 <== NOT EXECUTED
4ba86: 0281 0003 bee0 andil #245472,%d1 <== NOT EXECUTED
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
4ba8c: 660a bnes 4ba98 <_Thread_queue_Extract_fifo+0x2c><== NOT EXECUTED
_ISR_Enable( level );
4ba8e: 46c0 movew %d0,%sr <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
4ba90: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4ba94: 4e5e unlk %fp <== NOT EXECUTED
4ba96: 4e75 rts <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
4ba98: 2252 moveal %a2@,%a1 <== NOT EXECUTED
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4ba9a: 7202 moveq #2,%d1 <== NOT EXECUTED
previous = the_node->previous;
4ba9c: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED
next->previous = previous;
4baa0: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
previous->next = next;
4baa4: 2089 movel %a1,%a0@ <== NOT EXECUTED
return;
}
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
4baa6: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4baaa: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
4baae: 6704 beqs 4bab4 <_Thread_queue_Extract_fifo+0x48><== NOT EXECUTED
_ISR_Enable( level );
4bab0: 46c0 movew %d0,%sr <== NOT EXECUTED
4bab2: 6014 bras 4bac8 <_Thread_queue_Extract_fifo+0x5c><== NOT EXECUTED
4bab4: 7203 moveq #3,%d1 <== NOT EXECUTED
4bab6: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4baba: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4babc: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4bac0: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove> <== NOT EXECUTED
4bac6: 588f addql #4,%sp <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
4bac8: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
4bacc: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4bad0: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED
4bad6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
4bada: 4e5e unlk %fp <== NOT EXECUTED
4badc: 4ef9 0004 73cc jmp 473cc <_Thread_Clear_state> <== NOT EXECUTED
...
0004a700 <_Thread_queue_Extract_priority_helper>:
Chain_Node *new_first_node;
Chain_Node *new_second_node;
Chain_Node *last_node;
the_node = (Chain_Node *) the_thread;
_ISR_Disable( level );
4a700: 223c 0000 0700 movel #1792,%d1
void _Thread_queue_Extract_priority_helper(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread,
bool requeuing
)
{
4a706: 4e56 ffec linkw %fp,#-20
4a70a: 48d7 3c04 moveml %d2/%a2-%a5,%sp@
4a70e: 246e 000c moveal %fp@(12),%a2
4a712: 142e 0013 moveb %fp@(19),%d2
Chain_Node *new_first_node;
Chain_Node *new_second_node;
Chain_Node *last_node;
the_node = (Chain_Node *) the_thread;
_ISR_Disable( level );
4a716: 40c0 movew %sr,%d0
4a718: 8280 orl %d0,%d1
4a71a: 46c1 movew %d1,%sr
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
4a71c: 222a 0010 movel %a2@(16),%d1
4a720: 0281 0003 bee0 andil #245472,%d1
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
4a726: 6606 bnes 4a72e <_Thread_queue_Extract_priority_helper+0x2e><== ALWAYS TAKEN
_ISR_Enable( level );
4a728: 46c0 movew %d0,%sr <== NOT EXECUTED
return;
4a72a: 6000 0096 braw 4a7c2 <_Thread_queue_Extract_priority_helper+0xc2><== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
4a72e: 220a movel %a2,%d1
4a730: 0681 0000 003c addil #60,%d1
/*
* The thread was actually waiting on a thread queue so let's remove it.
*/
next_node = the_node->next;
4a736: 2252 moveal %a2@,%a1
previous_node = the_node->previous;
4a738: 266a 0004 moveal %a2@(4),%a3
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
4a73c: 206a 0038 moveal %a2@(56),%a0
*/
next_node = the_node->next;
previous_node = the_node->previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
4a740: b288 cmpl %a0,%d1
4a742: 6734 beqs 4a778 <_Thread_queue_Extract_priority_helper+0x78><== ALWAYS TAKEN
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
4a744: 286a 0040 moveal %a2@(64),%a4 <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
4a748: 2a50 moveal %a0@,%a5 <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
4a74a: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
4a74e: 2688 movel %a0,%a3@ <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
4a750: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
next_node->previous = new_first_node;
new_first_node->next = next_node;
4a754: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
4a756: 222a 0040 movel %a2@(64),%d1 <== NOT EXECUTED
4a75a: b2aa 0038 cmpl %a2@(56),%d1 <== NOT EXECUTED
4a75e: 671e beqs 4a77e <_Thread_queue_Extract_priority_helper+0x7e><== NOT EXECUTED
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
4a760: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED
4a764: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
new_second_node->previous = head;
head->next = new_second_node;
4a768: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED
tail->previous = last_node;
4a76c: 214c 0040 movel %a4,%a0@(64) <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
4a770: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED
4a774: 2888 movel %a0,%a4@ <== NOT EXECUTED
4a776: 6006 bras 4a77e <_Thread_queue_Extract_priority_helper+0x7e><== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
}
} else {
previous_node->next = next_node;
4a778: 2689 movel %a1,%a3@
next_node->previous = previous_node;
4a77a: 234b 0004 movel %a3,%a1@(4)
/*
* If we are not supposed to touch timers or the thread's state, return.
*/
if ( requeuing ) {
4a77e: 4a02 tstb %d2
4a780: 6704 beqs 4a786 <_Thread_queue_Extract_priority_helper+0x86><== NEVER TAKEN
_ISR_Enable( level );
4a782: 46c0 movew %d0,%sr
4a784: 603c bras 4a7c2 <_Thread_queue_Extract_priority_helper+0xc2>
return;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4a786: 7202 moveq #2,%d1 <== NOT EXECUTED
4a788: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
4a78c: 6704 beqs 4a792 <_Thread_queue_Extract_priority_helper+0x92><== NOT EXECUTED
_ISR_Enable( level );
4a78e: 46c0 movew %d0,%sr <== NOT EXECUTED
4a790: 6014 bras 4a7a6 <_Thread_queue_Extract_priority_helper+0xa6><== NOT EXECUTED
4a792: 7203 moveq #3,%d1 <== NOT EXECUTED
4a794: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4a798: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4a79a: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4a79e: 4eb9 0004 8568 jsr 48568 <_Watchdog_Remove> <== NOT EXECUTED
4a7a4: 588f addql #4,%sp <== NOT EXECUTED
4a7a6: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
4a7aa: 227c 1003 fff8 moveal #268697592,%a1 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
4a7b0: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED
4a7b6: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED
4a7ba: 4e5e unlk %fp <== NOT EXECUTED
4a7bc: 4ef9 0004 73cc jmp 473cc <_Thread_Clear_state> <== NOT EXECUTED
4a7c2: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5
4a7c8: 4e5e unlk %fp <== NOT EXECUTED
00047d48 <_Thread_queue_Extract_with_proxy>:
*/
bool _Thread_queue_Extract_with_proxy(
Thread_Control *the_thread
)
{
47d48: 4e56 0000 linkw %fp,#0
47d4c: 206e 0008 moveal %fp@(8),%a0
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
47d50: 2028 0010 movel %a0@(16),%d0
47d54: 0280 0003 bee0 andil #245472,%d0
States_Control state;
state = the_thread->current_state;
if ( _States_Is_waiting_on_thread_queue( state ) ) {
47d5a: 6712 beqs 47d6e <_Thread_queue_Extract_with_proxy+0x26><== ALWAYS TAKEN
if ( proxy_extract_callout )
(*proxy_extract_callout)( the_thread );
}
#endif
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
47d5c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
47d5e: 2f28 0044 movel %a0@(68),%sp@- <== NOT EXECUTED
47d62: 4eb9 0004 a6c8 jsr 4a6c8 <_Thread_queue_Extract> <== NOT EXECUTED
return true;
47d68: 508f addql #8,%sp <== NOT EXECUTED
47d6a: 7001 moveq #1,%d0 <== NOT EXECUTED
47d6c: 6002 bras 47d70 <_Thread_queue_Extract_with_proxy+0x28><== NOT EXECUTED
}
return false;
47d6e: 4200 clrb %d0
}
47d70: 4e5e unlk %fp <== NOT EXECUTED
00057d88 <_Thread_queue_First>:
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
first_p = _Thread_queue_First_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
57d88: 43f9 0005 8ef8 lea 58ef8 <_Thread_queue_First_fifo>,%a1 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue
)
{
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
57d8e: 7001 moveq #1,%d0 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First(
Thread_queue_Control *the_thread_queue
)
{
57d90: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
57d94: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
57d98: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED
57d9c: 6606 bnes 57da4 <_Thread_queue_First+0x1c> <== NOT EXECUTED
first_p = _Thread_queue_First_priority;
57d9e: 43f9 0005 7dac lea 57dac <_Thread_queue_First_priority>,%a1<== NOT EXECUTED
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
57da4: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
57da8: 4e5e unlk %fp <== NOT EXECUTED
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
first_p = _Thread_queue_First_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
57daa: 4ed1 jmp %a1@ <== NOT EXECUTED
00058ef8 <_Thread_queue_First_fifo>:
*/
Thread_Control *_Thread_queue_First_fifo(
Thread_queue_Control *the_thread_queue
)
{
58ef8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) )
return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo );
return NULL;
}
58efc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
58f00: 2018 movel %a0@+,%d0 <== NOT EXECUTED
Thread_Control *_Thread_queue_First_fifo(
Thread_queue_Control *the_thread_queue
)
{
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) )
58f02: b1c0 cmpal %d0,%a0 <== NOT EXECUTED
58f04: 6602 bnes 58f08 <_Thread_queue_First_fifo+0x10> <== NOT EXECUTED
return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo );
return NULL;
58f06: 4280 clrl %d0 <== NOT EXECUTED
}
58f08: 4e5e unlk %fp <== NOT EXECUTED
00057dac <_Thread_queue_First_priority>:
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
57dac: 4281 clrl %d1 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First_priority (
Thread_queue_Control *the_thread_queue
)
{
57dae: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
57db2: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
return (Thread_Control *) _Chain_First(
&the_thread_queue->Queues.Priority[ index ]
);
}
return NULL;
57db6: 2049 moveal %a1,%a0 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First_priority (
Thread_queue_Control *the_thread_queue
)
{
57db8: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
57dbc: 2601 movel %d1,%d3 <== NOT EXECUTED
57dbe: 2401 movel %d1,%d2 <== NOT EXECUTED
57dc0: e58b lsll #2,%d3 <== NOT EXECUTED
57dc2: e98a lsll #4,%d2 <== NOT EXECUTED
return (Thread_Control *) _Chain_First(
&the_thread_queue->Queues.Priority[ index ]
);
}
return NULL;
}
57dc4: 2010 movel %a0@,%d0 <== NOT EXECUTED
57dc6: 9483 subl %d3,%d2 <== NOT EXECUTED
57dc8: 45f1 2804 lea %a1@(00000004,%d2:l),%a2 <== NOT EXECUTED
uint32_t index;
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
57dcc: b5c0 cmpal %d0,%a2 <== NOT EXECUTED
57dce: 660e bnes 57dde <_Thread_queue_First_priority+0x32><== NOT EXECUTED
{
uint32_t index;
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
57dd0: 5281 addql #1,%d1 <== NOT EXECUTED
57dd2: 41e8 000c lea %a0@(12),%a0 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
57dd6: 7004 moveq #4,%d0 <== NOT EXECUTED
57dd8: b081 cmpl %d1,%d0 <== NOT EXECUTED
57dda: 66e0 bnes 57dbc <_Thread_queue_First_priority+0x10><== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
return (Thread_Control *) _Chain_First(
&the_thread_queue->Queues.Priority[ index ]
);
}
return NULL;
57ddc: 4200 clrb %d0 <== NOT EXECUTED
}
57dde: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED
57de2: 4e5e unlk %fp <== NOT EXECUTED
...
0004a7cc <_Thread_queue_Process_timeout>:
#include <rtems/score/tqdata.h>
void _Thread_queue_Process_timeout(
Thread_Control *the_thread
)
{
4a7cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a7d0: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
4a7d4: 2069 0044 moveal %a1@(68),%a0 <== NOT EXECUTED
* If it is not satisfied, then it is "nothing happened" and
* this is the "timeout" transition. After a request is satisfied,
* a timeout is not allowed to occur.
*/
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
4a7d8: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED
4a7dc: 671c beqs 4a7fa <_Thread_queue_Process_timeout+0x2e><== NOT EXECUTED
4a7de: b3f9 0005 c878 cmpal 5c878 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
4a7e4: 6614 bnes 4a7fa <_Thread_queue_Process_timeout+0x2e><== NOT EXECUTED
_Thread_Is_executing( the_thread ) ) {
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
4a7e6: 7203 moveq #3,%d1 <== NOT EXECUTED
4a7e8: b280 cmpl %d0,%d1 <== NOT EXECUTED
4a7ea: 6720 beqs 4a80c <_Thread_queue_Process_timeout+0x40><== NOT EXECUTED
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
4a7ec: 7002 moveq #2,%d0 <== NOT EXECUTED
*/
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
_Thread_Is_executing( the_thread ) ) {
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
4a7ee: 2368 003c 0034 movel %a0@(60),%a1@(52) <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
4a7f4: 2140 0030 movel %d0,%a0@(48) <== NOT EXECUTED
4a7f8: 6012 bras 4a80c <_Thread_queue_Process_timeout+0x40><== NOT EXECUTED
}
} else {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
4a7fa: 2368 003c 0034 movel %a0@(60),%a1@(52) <== NOT EXECUTED
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
4a800: 2f09 movel %a1,%sp@- <== NOT EXECUTED
4a802: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4a804: 4eb9 0004 a6c8 jsr 4a6c8 <_Thread_queue_Extract> <== NOT EXECUTED
4a80a: 508f addql #8,%sp <== NOT EXECUTED
}
}
4a80c: 4e5e unlk %fp <== NOT EXECUTED
00047e14 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
47e14: 4e56 fff0 linkw %fp,#-16
47e18: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
47e1c: 246e 0008 moveal %fp@(8),%a2
47e20: 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 )
47e24: 4a8a tstl %a2
47e26: 6746 beqs 47e6e <_Thread_queue_Requeue+0x5a> <== NEVER TAKEN
/*
* 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 ) {
47e28: 7001 moveq #1,%d0
47e2a: b0aa 0034 cmpl %a2@(52),%d0
47e2e: 663e bnes 47e6e <_Thread_queue_Requeue+0x5a> <== NEVER TAKEN
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
47e30: 303c 0700 movew #1792,%d0
47e34: 40c2 movew %sr,%d2
47e36: 8082 orl %d2,%d0
47e38: 46c0 movew %d0,%sr
47e3a: 202b 0010 movel %a3@(16),%d0
47e3e: 0280 0003 bee0 andil #245472,%d0
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
47e44: 6726 beqs 47e6c <_Thread_queue_Requeue+0x58> <== NEVER TAKEN
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;
47e46: 7001 moveq #1,%d0
47e48: 2540 0030 movel %d0,%a2@(48)
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
47e4c: 4878 0001 pea 1 <ADD>
47e50: 2f0b movel %a3,%sp@-
47e52: 2f0a movel %a2,%sp@-
47e54: 4eb9 0004 a700 jsr 4a700 <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
47e5a: 486e fffc pea %fp@(-4)
47e5e: 2f0b movel %a3,%sp@-
47e60: 2f0a movel %a2,%sp@-
47e62: 4eb9 0004 7bfc jsr 47bfc <_Thread_queue_Enqueue_priority>
47e68: 4fef 0018 lea %sp@(24),%sp
}
_ISR_Enable( level );
47e6c: 46c2 movew %d2,%sr
}
}
47e6e: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3
47e74: 4e5e unlk %fp <== NOT EXECUTED
00047e78 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
47e78: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
47e7c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47e80: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47e84: 4eb9 0004 7750 jsr 47750 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
47e8a: 508f addql #8,%sp <== NOT EXECUTED
47e8c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47e90: 6618 bnes 47eaa <_Thread_queue_Timeout+0x32> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
47e92: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47e94: 4eb9 0004 a7cc jsr 4a7cc <_Thread_queue_Process_timeout> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
47e9a: 588f addql #4,%sp <== NOT EXECUTED
47e9c: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
47ea2: 5380 subql #1,%d0 <== NOT EXECUTED
47ea4: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Unnest_dispatch();
break;
}
}
47eaa: 4e5e unlk %fp <== NOT EXECUTED
...
00051fa6 <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
51fa6: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
51faa: 41ee ffec lea %fp@(-20),%a0 <== NOT EXECUTED
51fae: 200e movel %fp,%d0 <== NOT EXECUTED
51fb0: 220e movel %fp,%d1 <== NOT EXECUTED
51fb2: 5181 subql #8,%d1 <== NOT EXECUTED
51fb4: 0680 ffff fff4 addil #-12,%d0 <== NOT EXECUTED
51fba: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
51fbe: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
51fc2: 260e movel %fp,%d3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(
const Chain_Control *the_chain
)
{
return &the_chain->Tail.Node;
51fc4: 2808 movel %a0,%d4 <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
51fc6: 2c0a movel %a2,%d6 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
51fc8: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED
51fce: 0686 0000 0040 addil #64,%d6 <== NOT EXECUTED
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
51fd4: 2a0a movel %a2,%d5 <== NOT EXECUTED
/*
* The current TOD is before the last TOD which indicates that
* TOD has been set backwards.
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
51fd6: 240a movel %a2,%d2 <== NOT EXECUTED
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
51fd8: 0685 0000 0030 addil #48,%d5 <== NOT EXECUTED
51fde: 47f9 0005 5c9c lea 55c9c <_Watchdog_Adjust_to_chain>,%a3 <== NOT EXECUTED
/*
* The current TOD is before the last TOD which indicates that
* TOD has been set backwards.
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
51fe4: 0682 0000 0068 addil #104,%d2 <== NOT EXECUTED
51fea: 4bf9 0005 5c1c lea 55c1c <_Watchdog_Adjust>,%a5 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(
const Chain_Control *the_chain
)
{
return &the_chain->Tail.Node;
51ff0: 2e01 movel %d1,%d7 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
51ff2: 2d48 ffe8 movel %a0,%fp@(-24) <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
51ff6: 41ea 0008 lea %a2@(8),%a0 <== NOT EXECUTED
51ffa: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED
head->previous = NULL;
51ffe: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED
tail->previous = head;
52002: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
52006: 42ae ffec clrl %fp@(-20) <== NOT EXECUTED
tail->previous = head;
5200a: 2d43 fff0 movel %d3,%fp@(-16) <== NOT EXECUTED
5200e: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
52012: 2d46 ffe0 movel %d6,%fp@(-32) <== NOT EXECUTED
Chain_Control *tmp;
/*
* 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;
52016: 41ee fff4 lea %fp@(-12),%a0 <== 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 );
5201a: 49f9 0005 5d2c lea 55d2c <_Watchdog_Insert>,%a4 <== NOT EXECUTED
Chain_Control *tmp;
/*
* 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;
52020: 2548 0078 movel %a0,%a2@(120) <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
52024: 2039 0007 511c movel 7511c <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
5202a: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
5202e: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
52032: 9081 subl %d1,%d0 <== NOT EXECUTED
52034: 2f03 movel %d3,%sp@- <== NOT EXECUTED
52036: 2f00 movel %d0,%sp@- <== NOT EXECUTED
52038: 2f05 movel %d5,%sp@- <== NOT EXECUTED
5203a: 4e93 jsr %a3@ <== 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();
5203c: 2039 0007 509e movel 7509e <_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 ) {
52042: 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;
52046: 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 ) {
5204a: b280 cmpl %d0,%d1 <== NOT EXECUTED
5204c: 6412 bccs 52060 <_Timer_server_Body+0xba> <== 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 );
5204e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
52050: 2c00 movel %d0,%d6 <== NOT EXECUTED
52052: 9c81 subl %d1,%d6 <== NOT EXECUTED
52054: 2f06 movel %d6,%sp@- <== NOT EXECUTED
52056: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED
5205a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5205c: 4e93 jsr %a3@ <== NOT EXECUTED
5205e: 6014 bras 52074 <_Timer_server_Body+0xce> <== NOT EXECUTED
} else if ( snapshot < last_snapshot ) {
52060: b280 cmpl %d0,%d1 <== NOT EXECUTED
52062: 6318 blss 5207c <_Timer_server_Body+0xd6> <== NOT EXECUTED
/*
* The current TOD is before the last TOD which indicates that
* TOD has been set backwards.
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
52064: 9280 subl %d0,%d1 <== NOT EXECUTED
52066: 2f01 movel %d1,%sp@- <== NOT EXECUTED
52068: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
5206c: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED
52070: 2f02 movel %d2,%sp@- <== NOT EXECUTED
52072: 4e95 jsr %a5@ <== NOT EXECUTED
52074: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED
52078: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
watchdogs->last_snapshot = snapshot;
5207c: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
52080: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
52084: 2f00 movel %d0,%sp@- <== NOT EXECUTED
52086: 4eb9 0005 2a50 jsr 52a50 <_Chain_Get> <== NOT EXECUTED
if ( timer == NULL ) {
5208c: 588f addql #4,%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 );
5208e: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( timer == NULL ) {
52090: 4a80 tstl %d0 <== NOT EXECUTED
52092: 6724 beqs 520b8 <_Timer_server_Body+0x112> <== NOT EXECUTED
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
52094: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED
52098: 7201 moveq #1,%d1 <== NOT EXECUTED
5209a: b280 cmpl %d0,%d1 <== NOT EXECUTED
5209c: 6608 bnes 520a6 <_Timer_server_Body+0x100> <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
5209e: 4868 0010 pea %a0@(16) <== NOT EXECUTED
520a2: 2f05 movel %d5,%sp@- <== NOT EXECUTED
520a4: 600c bras 520b2 <_Timer_server_Body+0x10c> <== NOT EXECUTED
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
520a6: 7c03 moveq #3,%d6 <== NOT EXECUTED
520a8: bc80 cmpl %d0,%d6 <== NOT EXECUTED
520aa: 66d4 bnes 52080 <_Timer_server_Body+0xda> <== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
520ac: 4868 0010 pea %a0@(16) <== NOT EXECUTED
520b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
520b2: 4e94 jsr %a4@ <== NOT EXECUTED
520b4: 508f addql #8,%sp <== NOT EXECUTED
520b6: 60c8 bras 52080 <_Timer_server_Body+0xda> <== 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 );
520b8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
520be: 40c1 movew %sr,%d1 <== NOT EXECUTED
520c0: 8081 orl %d1,%d0 <== NOT EXECUTED
520c2: 46c0 movew %d0,%sr <== NOT EXECUTED
tmp = ts->insert_chain;
520c4: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
if ( _Chain_Is_empty( insert_chain ) ) {
520c8: beae fff4 cmpl %fp@(-12),%d7 <== NOT EXECUTED
520cc: 6608 bnes 520d6 <_Timer_server_Body+0x130> <== NOT EXECUTED
ts->insert_chain = NULL;
520ce: 42aa 0078 clrl %a2@(120) <== NOT EXECUTED
do_loop = false;
520d2: 4200 clrb %d0 <== NOT EXECUTED
520d4: 6002 bras 520d8 <_Timer_server_Body+0x132> <== NOT EXECUTED
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
tmp = ts->insert_chain;
if ( _Chain_Is_empty( insert_chain ) ) {
520d6: 7001 moveq #1,%d0 <== NOT EXECUTED
ts->insert_chain = NULL;
do_loop = false;
}
_ISR_Enable( level );
520d8: 46c1 movew %d1,%sr <== NOT EXECUTED
* 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;
while ( do_loop ) {
520da: 4a00 tstb %d0 <== NOT EXECUTED
520dc: 6600 ff46 bnew 52024 <_Timer_server_Body+0x7e> <== NOT EXECUTED
_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 ) ) {
520e0: b8ae ffe8 cmpl %fp@(-24),%d4 <== NOT EXECUTED
520e4: 6742 beqs 52128 <_Timer_server_Body+0x182> <== NOT EXECUTED
/*
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
520e6: 2c3c 0000 0700 movel #1792,%d6 <== NOT EXECUTED
520ec: 2006 movel %d6,%d0 <== NOT EXECUTED
520ee: 40c1 movew %sr,%d1 <== NOT EXECUTED
520f0: 8081 orl %d1,%d0 <== NOT EXECUTED
520f2: 46c0 movew %d0,%sr <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
520f4: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
520f8: b888 cmpl %a0,%d4 <== NOT EXECUTED
520fa: 6726 beqs 52122 <_Timer_server_Body+0x17c> <== NOT EXECUTED
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
520fc: 2250 moveal %a0@,%a1 <== NOT EXECUTED
head->next = new_first;
520fe: 2d49 ffe8 movel %a1,%fp@(-24) <== NOT EXECUTED
new_first->previous = head;
52102: 2343 0004 movel %d3,%a1@(4) <== NOT EXECUTED
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
52106: 4a88 tstl %a0 <== NOT EXECUTED
52108: 6718 beqs 52122 <_Timer_server_Body+0x17c> <== NOT EXECUTED
watchdog->state = WATCHDOG_INACTIVE;
5210a: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
_ISR_Enable( level );
5210e: 46c1 movew %d1,%sr <== NOT EXECUTED
/*
* 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 );
52110: 2f28 0024 movel %a0@(36),%sp@- <== NOT EXECUTED
52114: 2f28 0020 movel %a0@(32),%sp@- <== NOT EXECUTED
52118: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED
5211c: 4e90 jsr %a0@ <== NOT EXECUTED
}
5211e: 508f addql #8,%sp <== NOT EXECUTED
52120: 60ca bras 520ec <_Timer_server_Body+0x146> <== NOT EXECUTED
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
_ISR_Enable( level );
} else {
_ISR_Enable( level );
52122: 46c1 movew %d1,%sr <== NOT EXECUTED
52124: 6000 fef0 braw 52016 <_Timer_server_Body+0x70> <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
52128: 49f9 0005 5e48 lea 55e48 <_Watchdog_Remove>,%a4 <== NOT EXECUTED
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
5212e: 4200 clrb %d0 <== NOT EXECUTED
52130: 1540 007c moveb %d0,%a2@(124) <== NOT EXECUTED
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
52134: 4eba fd96 jsr %pc@(51ecc <_Thread_Disable_dispatch>) <== NOT EXECUTED
_Thread_Set_state( ts->thread, STATES_DELAYING );
52138: 4878 0008 pea 8 <DIVIDE_BY_ZERO> <== NOT EXECUTED
5213c: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
5213e: 4eb9 0005 5608 jsr 55608 <_Thread_Set_state> <== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
52144: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52146: 4eba fd9a jsr %pc@(51ee2 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
5214a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5214c: 4eba fdf4 jsr %pc@(51f42 <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED
_Thread_Enable_dispatch();
52150: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
ts->active = true;
52156: 7201 moveq #1,%d1 <== NOT EXECUTED
52158: 1541 007c moveb %d1,%a2@(124) <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
5215c: 2f2e ffe4 movel %fp@(-28),%sp@- <== NOT EXECUTED
52160: 4e94 jsr %a4@ <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
52162: 2f2e ffe0 movel %fp@(-32),%sp@- <== NOT EXECUTED
52166: 4e94 jsr %a4@ <== NOT EXECUTED
52168: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
5216c: 6000 fea8 braw 52016 <_Timer_server_Body+0x70> <== NOT EXECUTED
00051ee2 <_Timer_server_Reset_interval_system_watchdog>:
}
static void _Timer_server_Reset_interval_system_watchdog(
Timer_server_Control *ts
)
{
51ee2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
51ee6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51ee8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
51eec: 2f02 movel %d2,%sp@- <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
51eee: 240a movel %a2,%d2 <== NOT EXECUTED
51ef0: 5082 addql #8,%d2 <== NOT EXECUTED
51ef2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51ef4: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
{
ISR_Level level;
_Timer_server_Stop_interval_system_watchdog( ts );
_ISR_Disable( level );
51efa: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51f00: 40c1 movew %sr,%d1 <== NOT EXECUTED
51f02: 8081 orl %d1,%d0 <== NOT EXECUTED
51f04: 46c0 movew %d0,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
51f06: 200a movel %a2,%d0 <== NOT EXECUTED
51f08: 0680 0000 0034 addil #52,%d0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
51f0e: 588f addql #4,%sp <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
51f10: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED
ISR_Level level;
_Timer_server_Stop_interval_system_watchdog( ts );
_ISR_Disable( level );
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
51f14: b088 cmpl %a0,%d0 <== NOT EXECUTED
51f16: 671c beqs 51f34 <_Timer_server_Reset_interval_system_watchdog+0x52><== NOT EXECUTED
Watchdog_Interval delta_interval =
51f18: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
_Watchdog_First( &ts->Interval_watchdogs.Chain )->delta_interval;
_ISR_Enable( level );
51f1c: 46c1 movew %d1,%sr <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
51f1e: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
51f22: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51f24: 4879 0007 50d4 pea 750d4 <_Watchdog_Ticks_chain> <== NOT EXECUTED
51f2a: 4eb9 0005 5d2c jsr 55d2c <_Watchdog_Insert> <== NOT EXECUTED
51f30: 508f addql #8,%sp <== NOT EXECUTED
51f32: 6002 bras 51f36 <_Timer_server_Reset_interval_system_watchdog+0x54><== NOT EXECUTED
_Watchdog_Insert_ticks(
&ts->Interval_watchdogs.System_watchdog,
delta_interval
);
} else {
_ISR_Enable( level );
51f34: 46c1 movew %d1,%sr <== NOT EXECUTED
}
}
51f36: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
51f3a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
51f3e: 4e5e unlk %fp <== NOT EXECUTED
00051f42 <_Timer_server_Reset_tod_system_watchdog>:
}
static void _Timer_server_Reset_tod_system_watchdog(
Timer_server_Control *ts
)
{
51f42: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
51f46: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51f48: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
51f4c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
51f4e: 240a movel %a2,%d2 <== NOT EXECUTED
51f50: 0682 0000 0040 addil #64,%d2 <== NOT EXECUTED
51f56: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51f58: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
{
ISR_Level level;
_Timer_server_Stop_tod_system_watchdog( ts );
_ISR_Disable( level );
51f5e: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51f64: 40c1 movew %sr,%d1 <== NOT EXECUTED
51f66: 8081 orl %d1,%d0 <== NOT EXECUTED
51f68: 46c0 movew %d0,%sr <== NOT EXECUTED
51f6a: 200a movel %a2,%d0 <== NOT EXECUTED
51f6c: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
51f72: 588f addql #4,%sp <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
51f74: 206a 0068 moveal %a2@(104),%a0 <== NOT EXECUTED
ISR_Level level;
_Timer_server_Stop_tod_system_watchdog( ts );
_ISR_Disable( level );
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
51f78: b088 cmpl %a0,%d0 <== NOT EXECUTED
51f7a: 671c beqs 51f98 <_Timer_server_Reset_tod_system_watchdog+0x56><== NOT EXECUTED
Watchdog_Interval delta_interval =
51f7c: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
_Watchdog_First( &ts->TOD_watchdogs.Chain )->delta_interval;
_ISR_Enable( level );
51f80: 46c1 movew %d1,%sr <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
51f82: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
51f86: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51f88: 4879 0007 50c8 pea 750c8 <_Watchdog_Seconds_chain> <== NOT EXECUTED
51f8e: 4eb9 0005 5d2c jsr 55d2c <_Watchdog_Insert> <== NOT EXECUTED
51f94: 508f addql #8,%sp <== NOT EXECUTED
51f96: 6002 bras 51f9a <_Timer_server_Reset_tod_system_watchdog+0x58><== NOT EXECUTED
_Watchdog_Insert_seconds(
&ts->TOD_watchdogs.System_watchdog,
delta_interval
);
} else {
_ISR_Enable( level );
51f98: 46c1 movew %d1,%sr <== NOT EXECUTED
}
}
51f9a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
51f9e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
51fa2: 4e5e unlk %fp <== NOT EXECUTED
00052170 <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
52170: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
52174: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
52178: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
5217c: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
52180: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
52184: 6600 00ea bnew 52270 <_Timer_server_Schedule_operation_method+0x100><== NOT EXECUTED
* is the reference point for the delta chain. Thus if we do not update the
* reference point we have to add DT to the initial delta of the watchdog
* being inserted. This could result in an integer overflow.
*/
_Thread_Disable_dispatch();
52188: 4eba fd42 jsr %pc@(51ecc <_Thread_Disable_dispatch>) <== NOT EXECUTED
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
5218c: 202b 0038 movel %a3@(56),%d0 <== NOT EXECUTED
52190: 7201 moveq #1,%d1 <== NOT EXECUTED
52192: b280 cmpl %d0,%d1 <== NOT EXECUTED
52194: 665c bnes 521f2 <_Timer_server_Schedule_operation_method+0x82><== NOT EXECUTED
/*
* We have to advance the last known ticks value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
52196: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
5219c: 40c2 movew %sr,%d2 <== NOT EXECUTED
5219e: 8082 orl %d2,%d0 <== NOT EXECUTED
521a0: 46c0 movew %d0,%sr <== NOT EXECUTED
snapshot = _Watchdog_Ticks_since_boot;
521a2: 2039 0007 511c movel 7511c <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
521a8: 43ea 0034 lea %a2@(52),%a1 <== NOT EXECUTED
last_snapshot = ts->Interval_watchdogs.last_snapshot;
521ac: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
521b0: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = _Watchdog_Ticks_since_boot;
last_snapshot = ts->Interval_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
521b4: b3c8 cmpal %a0,%a1 <== NOT EXECUTED
521b6: 6716 beqs 521ce <_Timer_server_Schedule_operation_method+0x5e><== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
521b8: 2240 moveal %d0,%a1 <== NOT EXECUTED
521ba: 93c1 subal %d1,%a1 <== NOT EXECUTED
delta_interval = first_watchdog->delta_interval;
521bc: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED
if (delta_interval > delta) {
521c0: b3c1 cmpal %d1,%a1 <== NOT EXECUTED
521c2: 6404 bccs 521c8 <_Timer_server_Schedule_operation_method+0x58><== NOT EXECUTED
delta_interval -= delta;
521c4: 9289 subl %a1,%d1 <== NOT EXECUTED
521c6: 6002 bras 521ca <_Timer_server_Schedule_operation_method+0x5a><== NOT EXECUTED
} else {
delta_interval = 0;
521c8: 4281 clrl %d1 <== NOT EXECUTED
}
first_watchdog->delta_interval = delta_interval;
521ca: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED
}
ts->Interval_watchdogs.last_snapshot = snapshot;
521ce: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED
_ISR_Enable( level );
521d2: 46c2 movew %d2,%sr <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
521d4: 486b 0010 pea %a3@(16) <== NOT EXECUTED
521d8: 486a 0030 pea %a2@(48) <== NOT EXECUTED
521dc: 4eb9 0005 5d2c jsr 55d2c <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
521e2: 508f addql #8,%sp <== NOT EXECUTED
521e4: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED
521e8: 6678 bnes 52262 <_Timer_server_Schedule_operation_method+0xf2><== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
521ea: 2f0a movel %a2,%sp@- <== NOT EXECUTED
521ec: 4eba fcf4 jsr %pc@(51ee2 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED
521f0: 606e bras 52260 <_Timer_server_Schedule_operation_method+0xf0><== NOT EXECUTED
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
521f2: 7203 moveq #3,%d1 <== NOT EXECUTED
521f4: b280 cmpl %d0,%d1 <== NOT EXECUTED
521f6: 666a bnes 52262 <_Timer_server_Schedule_operation_method+0xf2><== NOT EXECUTED
/*
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
521f8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
521fe: 40c2 movew %sr,%d2 <== NOT EXECUTED
52200: 8082 orl %d2,%d0 <== NOT EXECUTED
52202: 46c0 movew %d0,%sr <== NOT EXECUTED
52204: 200a movel %a2,%d0 <== NOT EXECUTED
52206: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
5220c: 2239 0007 509e movel 7509e <_TOD_Now>,%d1 <== NOT EXECUTED
last_snapshot = ts->TOD_watchdogs.last_snapshot;
52212: 226a 0074 moveal %a2@(116),%a1 <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
52216: 206a 0068 moveal %a2@(104),%a0 <== NOT EXECUTED
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
5221a: b088 cmpl %a0,%d0 <== NOT EXECUTED
5221c: 6720 beqs 5223e <_Timer_server_Schedule_operation_method+0xce><== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
5221e: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
if ( snapshot > last_snapshot ) {
52222: b3c1 cmpal %d1,%a1 <== NOT EXECUTED
52224: 640c bccs 52232 <_Timer_server_Schedule_operation_method+0xc2><== NOT EXECUTED
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
52226: 2841 moveal %d1,%a4 <== NOT EXECUTED
52228: 99c9 subal %a1,%a4 <== NOT EXECUTED
if (delta_interval > delta) {
5222a: b9c0 cmpal %d0,%a4 <== NOT EXECUTED
5222c: 640a bccs 52238 <_Timer_server_Schedule_operation_method+0xc8><== NOT EXECUTED
delta_interval -= delta;
5222e: 908c subl %a4,%d0 <== NOT EXECUTED
52230: 6008 bras 5223a <_Timer_server_Schedule_operation_method+0xca><== NOT EXECUTED
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
52232: d089 addl %a1,%d0 <== NOT EXECUTED
delta_interval += delta;
52234: 9081 subl %d1,%d0 <== NOT EXECUTED
52236: 6002 bras 5223a <_Timer_server_Schedule_operation_method+0xca><== NOT EXECUTED
*/
delta = snapshot - last_snapshot;
if (delta_interval > delta) {
delta_interval -= delta;
} else {
delta_interval = 0;
52238: 4280 clrl %d0 <== NOT EXECUTED
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
delta_interval += delta;
}
first_watchdog->delta_interval = delta_interval;
5223a: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED
}
ts->TOD_watchdogs.last_snapshot = snapshot;
5223e: 2541 0074 movel %d1,%a2@(116) <== NOT EXECUTED
_ISR_Enable( level );
52242: 46c2 movew %d2,%sr <== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
52244: 486b 0010 pea %a3@(16) <== NOT EXECUTED
52248: 486a 0068 pea %a2@(104) <== NOT EXECUTED
5224c: 4eb9 0005 5d2c jsr 55d2c <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
52252: 508f addql #8,%sp <== NOT EXECUTED
52254: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED
52258: 6608 bnes 52262 <_Timer_server_Schedule_operation_method+0xf2><== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
5225a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5225c: 4eba fce4 jsr %pc@(51f42 <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED
52260: 588f addql #4,%sp <== NOT EXECUTED
* 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 );
}
}
52262: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
52268: 4e5e unlk %fp <== NOT EXECUTED
if ( !ts->active ) {
_Timer_server_Reset_tod_system_watchdog( ts );
}
}
_Thread_Enable_dispatch();
5226a: 4ef9 0005 4d8e jmp 54d8e <_Thread_Enable_dispatch> <== 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 );
52270: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
52274: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED
}
}
52278: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== 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 );
5227e: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
}
}
52282: 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 );
52284: 4ef9 0005 29f0 jmp 529f0 <_Chain_Append> <== NOT EXECUTED
00048160 <_Timespec_Add_to>:
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
48160: 4e56 0000 linkw %fp,#0
48164: 226e 000c moveal %fp@(12),%a1
48168: 206e 0008 moveal %fp@(8),%a0
uint32_t seconds = add->tv_sec;
4816c: 2011 movel %a1@,%d0
/* Add the basics */
time->tv_sec += add->tv_sec;
4816e: d190 addl %d0,%a0@
time->tv_nsec += add->tv_nsec;
48170: 2229 0004 movel %a1@(4),%d1
48174: d3a8 0004 addl %d1,%a0@(4)
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
48178: 600e bras 48188 <_Timespec_Add_to+0x28>
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
time->tv_sec++;
4817a: 5290 addql #1,%a0@ <== NOT EXECUTED
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
4817c: 0681 c465 3600 addil #-1000000000,%d1 <== NOT EXECUTED
time->tv_sec++;
seconds++;
48182: 5280 addql #1,%d0 <== NOT EXECUTED
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
48184: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
48188: 2228 0004 movel %a0@(4),%d1
4818c: 0c81 3b9a c9ff cmpil #999999999,%d1
48192: 62e6 bhis 4817a <_Timespec_Add_to+0x1a> <== NEVER TAKEN
time->tv_sec++;
seconds++;
}
return seconds;
}
48194: 4e5e unlk %fp <== NOT EXECUTED
00049574 <_Timespec_Divide>:
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
49574: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
49578: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4957c: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
49580: 2a10 movel %a0@,%d5 <== NOT EXECUTED
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
49582: 49f9 0005 934c lea 5934c <__muldi3>,%a4 <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
49588: 2828 0004 movel %a0@(4),%d4 <== NOT EXECUTED
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
4958c: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
49592: 2a6e 000c moveal %fp@(12),%a5 <== NOT EXECUTED
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
49596: 42a7 clrl %sp@- <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
49598: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
4959c: 2f15 movel %a5@,%sp@- <== NOT EXECUTED
4959e: 5bc0 smi %d0 <== NOT EXECUTED
495a0: 49c0 extbl %d0 <== NOT EXECUTED
495a2: 2f00 movel %d0,%sp@- <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
495a4: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
495a8: 4e94 jsr %a4@ <== NOT EXECUTED
495aa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
495ae: 2040 moveal %d0,%a0 <== NOT EXECUTED
495b0: 2241 moveal %d1,%a1 <== NOT EXECUTED
right += rhs->tv_nsec;
495b2: 262d 0004 movel %a5@(4),%d3 <== NOT EXECUTED
495b6: 5bc2 smi %d2 <== NOT EXECUTED
495b8: 49c2 extbl %d2 <== NOT EXECUTED
495ba: 2208 movel %a0,%d1 <== NOT EXECUTED
495bc: d689 addl %a1,%d3 <== NOT EXECUTED
495be: d581 addxl %d1,%d2 <== NOT EXECUTED
if ( right == 0 ) {
495c0: 6606 bnes 495c8 <_Timespec_Divide+0x54> <== NOT EXECUTED
*ival_percentage = 0;
495c2: 4293 clrl %a3@ <== NOT EXECUTED
*fval_percentage = 0;
495c4: 4292 clrl %a2@ <== NOT EXECUTED
return;
495c6: 607a bras 49642 <_Timespec_Divide+0xce> <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
495c8: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
495ce: 42a7 clrl %sp@- <== NOT EXECUTED
495d0: 2f05 movel %d5,%sp@- <== NOT EXECUTED
495d2: 5bc1 smi %d1 <== NOT EXECUTED
495d4: 49c1 extbl %d1 <== NOT EXECUTED
495d6: 2f01 movel %d1,%sp@- <== NOT EXECUTED
left += lhs->tv_nsec;
495d8: 2a04 movel %d4,%d5 <== NOT EXECUTED
495da: 5bc4 smi %d4 <== NOT EXECUTED
495dc: 49c4 extbl %d4 <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
495de: 4e94 jsr %a4@ <== NOT EXECUTED
495e0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
495e4: 2040 moveal %d0,%a0 <== NOT EXECUTED
495e6: 2241 moveal %d1,%a1 <== NOT EXECUTED
* Put it back in the timespec result.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
495e8: 2f3c 0001 86a0 movel #100000,%sp@- <== NOT EXECUTED
495ee: 2008 movel %a0,%d0 <== NOT EXECUTED
495f0: 2209 movel %a1,%d1 <== NOT EXECUTED
495f2: 42a7 clrl %sp@- <== NOT EXECUTED
495f4: d285 addl %d5,%d1 <== NOT EXECUTED
495f6: d184 addxl %d4,%d0 <== NOT EXECUTED
495f8: 2f01 movel %d1,%sp@- <== NOT EXECUTED
495fa: 2f00 movel %d0,%sp@- <== NOT EXECUTED
495fc: 4e94 jsr %a4@ <== NOT EXECUTED
495fe: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49602: 49f9 0005 9b98 lea 59b98 <__udivdi3>,%a4 <== NOT EXECUTED
49608: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4960a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4960c: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4960e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49610: 4e94 jsr %a4@ <== NOT EXECUTED
49612: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49616: 2400 movel %d0,%d2 <== NOT EXECUTED
*ival_percentage = answer / 1000;
49618: 4878 03e8 pea 3e8 <DBL_MANT_DIG+0x3b3> <== NOT EXECUTED
* Put it back in the timespec result.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
4961c: 2601 movel %d1,%d3 <== NOT EXECUTED
*ival_percentage = answer / 1000;
4961e: 42a7 clrl %sp@- <== NOT EXECUTED
49620: 2f01 movel %d1,%sp@- <== NOT EXECUTED
49622: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49624: 4e94 jsr %a4@ <== NOT EXECUTED
49626: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4962a: 2681 movel %d1,%a3@ <== NOT EXECUTED
*fval_percentage = answer % 1000;
4962c: 4878 03e8 pea 3e8 <DBL_MANT_DIG+0x3b3> <== NOT EXECUTED
49630: 42a7 clrl %sp@- <== NOT EXECUTED
49632: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49634: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49636: 4eb9 0005 9f24 jsr 59f24 <__umoddi3> <== NOT EXECUTED
4963c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49640: 2481 movel %d1,%a2@ <== NOT EXECUTED
}
49642: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
49648: 4e5e unlk %fp <== NOT EXECUTED
000497ac <_Timespec_Divide_by_integer>:
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
497ac: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
497b0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
t *= TOD_NANOSECONDS_PER_SECOND;
497b4: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
497ba: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
t *= TOD_NANOSECONDS_PER_SECOND;
497be: 42a7 clrl %sp@- <== NOT EXECUTED
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
497c0: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
t *= TOD_NANOSECONDS_PER_SECOND;
497c4: 2f13 movel %a3@,%sp@- <== NOT EXECUTED
497c6: 5bc0 smi %d0 <== NOT EXECUTED
497c8: 49c0 extbl %d0 <== NOT EXECUTED
497ca: 2f00 movel %d0,%sp@- <== NOT EXECUTED
497cc: 4eb9 0005 901c jsr 5901c <__muldi3> <== NOT EXECUTED
497d2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
497d6: 2040 moveal %d0,%a0 <== NOT EXECUTED
497d8: 2241 moveal %d1,%a1 <== NOT EXECUTED
t += time->tv_nsec;
497da: 222b 0004 movel %a3@(4),%d1 <== NOT EXECUTED
497de: 5bc0 smi %d0 <== NOT EXECUTED
497e0: 49c0 extbl %d0 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
497e2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
497e6: 47f9 0005 9868 lea 59868 <__udivdi3>,%a3 <== NOT EXECUTED
497ec: 2408 movel %a0,%d2 <== NOT EXECUTED
497ee: 2609 movel %a1,%d3 <== NOT EXECUTED
497f0: 42a7 clrl %sp@- <== NOT EXECUTED
497f2: d681 addl %d1,%d3 <== NOT EXECUTED
497f4: d580 addxl %d0,%d2 <== NOT EXECUTED
497f6: 2f03 movel %d3,%sp@- <== NOT EXECUTED
497f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
497fa: 4e93 jsr %a3@ <== NOT EXECUTED
497fc: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49800: 2400 movel %d0,%d2 <== NOT EXECUTED
49802: 2601 movel %d1,%d3 <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
49804: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
4980a: 42a7 clrl %sp@- <== NOT EXECUTED
4980c: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4980e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49810: 4e93 jsr %a3@ <== NOT EXECUTED
49812: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49816: 2481 movel %d1,%a2@ <== NOT EXECUTED
result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND;
49818: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
4981e: 42a7 clrl %sp@- <== NOT EXECUTED
49820: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49822: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49824: 4eb9 0005 9bf4 jsr 59bf4 <__umoddi3> <== NOT EXECUTED
4982a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4982e: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED
}
49832: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED
49838: 4e5e unlk %fp <== NOT EXECUTED
00048d24 <_Timespec_From_ticks>:
struct timespec *time
)
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
48d24: 43f9 0005 ce30 lea 5ce30 <Configuration+0xc>,%a1 <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
48d2a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
48d2e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
48d32: 4c11 0800 mulsl %a1@,%d0 <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
48d36: 2f02 movel %d2,%sp@- <== NOT EXECUTED
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
48d38: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
48d3e: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
48d42: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED
48d46: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
TOD_NANOSECONDS_PER_MICROSECOND;
}
48d4a: 241f movel %sp@+,%d2 <== NOT EXECUTED
48d4c: 4e5e unlk %fp <== NOT EXECUTED
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
48d4e: 2080 movel %d0,%a0@ <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
48d50: 203c 0000 03e8 movel #1000,%d0 <== NOT EXECUTED
48d56: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED
48d5a: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
TOD_NANOSECONDS_PER_MICROSECOND;
}
0004983c <_Timespec_Greater_than>:
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
4983c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
49840: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
49844: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( lhs->tv_sec > rhs->tv_sec )
49848: 2211 movel %a1@,%d1 <== NOT EXECUTED
4984a: 2010 movel %a0@,%d0 <== NOT EXECUTED
4984c: b081 cmpl %d1,%d0 <== NOT EXECUTED
4984e: 6d10 blts 49860 <_Timespec_Greater_than+0x24> <== NOT EXECUTED
return true;
if ( lhs->tv_sec < rhs->tv_sec )
49850: 6e12 bgts 49864 <_Timespec_Greater_than+0x28> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Greater_than(
49852: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
49856: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED
4985a: 5dc0 slt %d0 <== NOT EXECUTED
4985c: 4480 negl %d0 <== NOT EXECUTED
4985e: 6006 bras 49866 <_Timespec_Greater_than+0x2a> <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec > rhs->tv_sec )
return true;
49860: 7001 moveq #1,%d0 <== NOT EXECUTED
49862: 6002 bras 49866 <_Timespec_Greater_than+0x2a> <== NOT EXECUTED
if ( lhs->tv_sec < rhs->tv_sec )
return false;
49864: 4200 clrb %d0 <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec > rhs->tv_nsec )
return true;
return false;
}
49866: 4e5e unlk %fp <== NOT EXECUTED
...
00048d60 <_Timespec_Is_valid>:
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
const struct timespec *time
)
{
48d60: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
48d64: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !time )
48d68: 4a88 tstl %a0 <== NOT EXECUTED
48d6a: 6716 beqs 48d82 <_Timespec_Is_valid+0x22> <== NOT EXECUTED
return false;
if ( time->tv_sec < 0 )
48d6c: 4a90 tstl %a0@ <== NOT EXECUTED
48d6e: 6d12 blts 48d82 <_Timespec_Is_valid+0x22> <== NOT EXECUTED
return false;
if ( time->tv_nsec < 0 )
48d70: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED
48d74: 6d0c blts 48d82 <_Timespec_Is_valid+0x22> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
48d76: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED
48d7c: 53c0 sls %d0 <== NOT EXECUTED
48d7e: 4480 negl %d0 <== NOT EXECUTED
48d80: 6002 bras 48d84 <_Timespec_Is_valid+0x24> <== NOT EXECUTED
if ( time->tv_sec < 0 )
return false;
if ( time->tv_nsec < 0 )
return false;
48d82: 4200 clrb %d0 <== NOT EXECUTED
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
return false;
return true;
}
48d84: 4e5e unlk %fp <== NOT EXECUTED
0004986c <_Timespec_Less_than>:
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
4986c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
49870: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
49874: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( lhs->tv_sec < rhs->tv_sec )
49878: 2211 movel %a1@,%d1 <== NOT EXECUTED
4987a: 2010 movel %a0@,%d0 <== NOT EXECUTED
4987c: b081 cmpl %d1,%d0 <== NOT EXECUTED
4987e: 6e10 bgts 49890 <_Timespec_Less_than+0x24> <== NOT EXECUTED
return true;
if ( lhs->tv_sec > rhs->tv_sec )
49880: 6d12 blts 49894 <_Timespec_Less_than+0x28> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Less_than(
49882: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
49886: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED
4988a: 5ec0 sgt %d0 <== NOT EXECUTED
4988c: 4480 negl %d0 <== NOT EXECUTED
4988e: 6006 bras 49896 <_Timespec_Less_than+0x2a> <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
return true;
49890: 7001 moveq #1,%d0 <== NOT EXECUTED
49892: 6002 bras 49896 <_Timespec_Less_than+0x2a> <== NOT EXECUTED
if ( lhs->tv_sec > rhs->tv_sec )
return false;
49894: 4200 clrb %d0 <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec < rhs->tv_nsec )
return true;
return false;
}
49896: 4e5e unlk %fp <== NOT EXECUTED
...
00048198 <_Timespec_Subtract>:
void _Timespec_Subtract(
const struct timespec *start,
const struct timespec *end,
struct timespec *result
)
{
48198: 4e56 0000 linkw %fp,#0
4819c: 226e 0008 moveal %fp@(8),%a1
481a0: 2f0a movel %a2,%sp@-
481a2: 246e 000c moveal %fp@(12),%a2
481a6: 206e 0010 moveal %fp@(16),%a0
if (end->tv_nsec < start->tv_nsec) {
481aa: 222a 0004 movel %a2@(4),%d1
481ae: 2029 0004 movel %a1@(4),%d0
void _Timespec_Subtract(
const struct timespec *start,
const struct timespec *end,
struct timespec *result
)
{
481b2: 2f02 movel %d2,%sp@-
if (end->tv_nsec < start->tv_nsec) {
481b4: b081 cmpl %d1,%d0
481b6: 6f10 bles 481c8 <_Timespec_Subtract+0x30> <== ALWAYS TAKEN
result->tv_sec = end->tv_sec - start->tv_sec - 1;
481b8: 2452 moveal %a2@,%a2 <== NOT EXECUTED
481ba: 538a subql #1,%a2 <== NOT EXECUTED
481bc: 95d1 subal %a1@,%a2 <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
481be: 0681 3b9a ca00 addil #1000000000,%d1 <== NOT EXECUTED
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
result->tv_sec = end->tv_sec - start->tv_sec - 1;
481c4: 208a movel %a2,%a0@ <== NOT EXECUTED
481c6: 6006 bras 481ce <_Timespec_Subtract+0x36> <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
481c8: 2412 movel %a2@,%d2
481ca: 9491 subl %a1@,%d2
481cc: 2082 movel %d2,%a0@
result->tv_nsec = end->tv_nsec - start->tv_nsec;
}
}
481ce: 241f movel %sp@+,%d2
result->tv_sec = end->tv_sec - start->tv_sec - 1;
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
result->tv_nsec = end->tv_nsec - start->tv_nsec;
481d0: 9280 subl %d0,%d1
}
}
481d2: 245f moveal %sp@+,%a2
481d4: 4e5e unlk %fp
result->tv_sec = end->tv_sec - start->tv_sec - 1;
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
result->tv_nsec = end->tv_nsec - start->tv_nsec;
481d6: 2141 0004 movel %d1,%a0@(4)
}
}
00048dcc <_Timespec_To_ticks>:
*/
uint32_t _Timespec_To_ticks(
const struct timespec *time
)
{
48dcc: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
48dd0: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
48dd4: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
48dd8: 2412 movel %a2@,%d2 <== NOT EXECUTED
48dda: 6606 bnes 48de2 <_Timespec_To_ticks+0x16> <== NOT EXECUTED
48ddc: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED
48de0: 672c beqs 48e0e <_Timespec_To_ticks+0x42> <== NOT EXECUTED
return 0;
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
48de2: 4eb9 0004 ae68 jsr 4ae68 <TOD_TICKS_PER_SECOND_method> <== NOT EXECUTED
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
48de8: 2239 0005 ce30 movel 5ce30 <Configuration+0xc>,%d1 <== NOT EXECUTED
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
return 0;
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
48dee: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
48df2: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED
48df8: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED
48dfc: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED
48e00: 4c41 3003 remul %d1,%d3,%d3 <== NOT EXECUTED
48e04: d083 addl %d3,%d0 <== NOT EXECUTED
if (ticks)
48e06: 6608 bnes 48e10 <_Timespec_To_ticks+0x44> <== NOT EXECUTED
return ticks;
return 1;
48e08: 103c 0001 moveb #1,%d0 <== NOT EXECUTED
48e0c: 6002 bras 48e10 <_Timespec_To_ticks+0x44> <== NOT EXECUTED
)
{
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
return 0;
48e0e: 4280 clrl %d0 <== NOT EXECUTED
if (ticks)
return ticks;
return 1;
}
48e10: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
48e16: 4e5e unlk %fp <== NOT EXECUTED
...
00048302 <_User_extensions_Fatal>:
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
48302: 4e56 fff0 linkw %fp,#-16
48306: 48d7 041c moveml %d2-%d4/%a2,%sp@
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
4830a: 4282 clrl %d2
4830c: 142e 000f moveb %fp@(15),%d2
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
48310: 282e 0008 movel %fp@(8),%d4
48314: 262e 0010 movel %fp@(16),%d3
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
48318: 2479 0005 c830 moveal 5c830 <_User_extensions_List+0x8>,%a2
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
4831e: 6018 bras 48338 <_User_extensions_Fatal+0x36>
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
48320: 206a 0030 moveal %a2@(48),%a0
48324: 4a88 tstl %a0
48326: 670c beqs 48334 <_User_extensions_Fatal+0x32>
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
48328: 2f03 movel %d3,%sp@-
4832a: 2f02 movel %d2,%sp@-
4832c: 2f04 movel %d4,%sp@-
4832e: 4e90 jsr %a0@
48330: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
48334: 246a 0004 moveal %a2@(4),%a2
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
48338: b5fc 0005 c828 cmpal #378920,%a2
4833e: 66e0 bnes 48320 <_User_extensions_Fatal+0x1e> <== ALWAYS TAKEN
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
48340: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED
48346: 4e5e unlk %fp <== NOT EXECUTED
...
000481dc <_User_extensions_Handler_initialization>:
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
481dc: 4e56 ffe8 linkw %fp,#-24
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
481e0: 203c 0005 c82c movel #378924,%d0
481e6: 23c0 0005 c828 movel %d0,5c828 <_User_extensions_List>
head->previous = NULL;
tail->previous = head;
481ec: 203c 0005 c828 movel #378920,%d0
481f2: 23c0 0005 c830 movel %d0,5c830 <_User_extensions_List+0x8>
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
481f8: 203c 0005 c6c0 movel #378560,%d0
481fe: 23c0 0005 c6bc movel %d0,5c6bc <_User_extensions_Switches_list>
head->previous = NULL;
tail->previous = head;
48204: 203c 0005 c6bc movel #378556,%d0
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
4820a: 42b9 0005 c82c clrl 5c82c <_User_extensions_List+0x4>
48210: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@
User_extensions_Control *extension;
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
48214: 2839 0005 aece movel 5aece <Configuration+0x3a>,%d4
initial_extensions = Configuration.User_extension_table;
4821a: 2639 0005 aed2 movel 5aed2 <Configuration+0x3e>,%d3
48220: 42b9 0005 c6c0 clrl 5c6c0 <_User_extensions_Switches_list+0x4>
tail->previous = head;
48226: 23c0 0005 c6c4 movel %d0,5c6c4 <_User_extensions_Switches_list+0x8>
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
4822c: 4a83 tstl %d3
4822e: 6754 beqs 48284 <_User_extensions_Handler_initialization+0xa8><== NEVER TAKEN
extension = (User_extensions_Control *)
_Workspace_Allocate_or_fatal_error(
48230: 7434 moveq #52,%d2
48232: 4c04 2800 mulsl %d4,%d2
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
48236: 49f9 0004 c3fc lea 4c3fc <memcpy>,%a4
_User_extensions_Add_set( extension );
4823c: 47f9 0004 a848 lea 4a848 <_User_extensions_Add_set>,%a3
48242: 2f02 movel %d2,%sp@-
48244: 4eb9 0004 86f4 jsr 486f4 <_Workspace_Allocate_or_fatal_error>
4824a: 2440 moveal %d0,%a2
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
4824c: 2f02 movel %d2,%sp@-
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
4824e: 4282 clrl %d2
extension = (User_extensions_Control *)
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
48250: 42a7 clrl %sp@-
48252: 2f00 movel %d0,%sp@-
48254: 4eb9 0004 c46c jsr 4c46c <memset>
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
4825a: 4fef 0010 lea %sp@(16),%sp
4825e: 6020 bras 48280 <_User_extensions_Handler_initialization+0xa4>
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
48260: 4878 0020 pea 20 <OPER2+0xc>
48264: 5282 addql #1,%d2
48266: 2f03 movel %d3,%sp@-
48268: 486a 0014 pea %a2@(20)
4826c: 0683 0000 0020 addil #32,%d3
48272: 4e94 jsr %a4@
_User_extensions_Add_set( extension );
48274: 2f0a movel %a2,%sp@-
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
48276: 45ea 0034 lea %a2@(52),%a2
4827a: 4e93 jsr %a3@
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
4827c: 4fef 0010 lea %sp@(16),%sp
48280: b882 cmpl %d2,%d4
48282: 62dc bhis 48260 <_User_extensions_Handler_initialization+0x84>
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
}
}
}
48284: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4
4828a: 4e5e unlk %fp
...
00049370 <_User_extensions_Remove_set>:
#include <rtems/score/userext.h>
void _User_extensions_Remove_set (
User_extensions_Control *the_extension
)
{
49370: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
49374: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49376: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
_Chain_Extract( &the_extension->Node );
4937a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4937c: 4eb9 0004 6ff8 jsr 46ff8 <_Chain_Extract> <== NOT EXECUTED
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
49382: 588f addql #4,%sp <== NOT EXECUTED
49384: 4aaa 0024 tstl %a2@(36) <== NOT EXECUTED
49388: 6712 beqs 4939c <_User_extensions_Remove_set+0x2c><== NOT EXECUTED
_Chain_Extract( &the_extension->Switch.Node );
4938a: 508a addql #8,%a2 <== NOT EXECUTED
4938c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
49390: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
49394: 4e5e unlk %fp <== NOT EXECUTED
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
_Chain_Extract( &the_extension->Switch.Node );
49396: 4ef9 0004 6ff8 jmp 46ff8 <_Chain_Extract> <== NOT EXECUTED
}
4939c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
493a0: 4e5e unlk %fp <== NOT EXECUTED
0004834c <_User_extensions_Thread_create>:
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
4834c: 4e56 0000 linkw %fp,#0
48350: 2f0a movel %a2,%sp@-
return false;
}
}
return true;
}
48352: 2479 0005 c828 moveal 5c828 <_User_extensions_List>,%a2
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
48358: 2f02 movel %d2,%sp@-
4835a: 242e 0008 movel %fp@(8),%d2
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _Chain_First( &_User_extensions_List );
4835e: 601a bras 4837a <_User_extensions_Thread_create+0x2e>
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
48360: 206a 0014 moveal %a2@(20),%a0
48364: 4a88 tstl %a0
48366: 6710 beqs 48378 <_User_extensions_Thread_create+0x2c>
status = (*the_extension->Callouts.thread_create)(
48368: 2f02 movel %d2,%sp@-
4836a: 2f39 0005 c878 movel 5c878 <_Per_CPU_Information+0xc>,%sp@-
48370: 4e90 jsr %a0@
_Thread_Executing,
the_thread
);
if ( !status )
48372: 508f addql #8,%sp
48374: 4a00 tstb %d0
48376: 670e beqs 48386 <_User_extensions_Thread_create+0x3a><== NEVER TAKEN
User_extensions_Control *the_extension;
bool status;
for ( the_node = _Chain_First( &_User_extensions_List );
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
48378: 2452 moveal %a2@,%a2
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _Chain_First( &_User_extensions_List );
4837a: b5fc 0005 c82c cmpal #378924,%a2
48380: 66de bnes 48360 <_User_extensions_Thread_create+0x14>
if ( !status )
return false;
}
}
return true;
48382: 7001 moveq #1,%d0
48384: 6002 bras 48388 <_User_extensions_Thread_create+0x3c>
status = (*the_extension->Callouts.thread_create)(
_Thread_Executing,
the_thread
);
if ( !status )
return false;
48386: 4200 clrb %d0 <== NOT EXECUTED
}
}
return true;
}
48388: 242e fff8 movel %fp@(-8),%d2
4838c: 246e fffc moveal %fp@(-4),%a2
48390: 4e5e unlk %fp <== NOT EXECUTED
00048394 <_User_extensions_Thread_delete>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
48394: 4e56 0000 linkw %fp,#0
48398: 2f0a movel %a2,%sp@-
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
4839a: 2479 0005 c830 moveal 5c830 <_User_extensions_List+0x8>,%a2
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
483a0: 2f02 movel %d2,%sp@-
483a2: 242e 0008 movel %fp@(8),%d2
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
483a6: 6018 bras 483c0 <_User_extensions_Thread_delete+0x2c>
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
483a8: 206a 0020 moveal %a2@(32),%a0
483ac: 4a88 tstl %a0
483ae: 670c beqs 483bc <_User_extensions_Thread_delete+0x28><== NEVER TAKEN
(*the_extension->Callouts.thread_delete)(
483b0: 2f02 movel %d2,%sp@-
483b2: 2f39 0005 c878 movel 5c878 <_Per_CPU_Information+0xc>,%sp@-
483b8: 4e90 jsr %a0@
483ba: 508f addql #8,%sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
483bc: 246a 0004 moveal %a2@(4),%a2
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
483c0: b5fc 0005 c828 cmpal #378920,%a2
483c6: 66e0 bnes 483a8 <_User_extensions_Thread_delete+0x14>
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
483c8: 242e fff8 movel %fp@(-8),%d2
483cc: 246e fffc moveal %fp@(-4),%a2
483d0: 4e5e unlk %fp <== NOT EXECUTED
000482c8 <_User_extensions_Thread_exitted>:
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
482c8: 4e56 0000 linkw %fp,#0
482cc: 2f0a movel %a2,%sp@-
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
482ce: 2479 0005 c830 moveal 5c830 <_User_extensions_List+0x8>,%a2
}
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
482d4: 2f02 movel %d2,%sp@-
482d6: 242e 0008 movel %fp@(8),%d2
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
482da: 6012 bras 482ee <_User_extensions_Thread_exitted+0x26>
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
482dc: 206a 002c moveal %a2@(44),%a0
482e0: 4a88 tstl %a0
482e2: 6706 beqs 482ea <_User_extensions_Thread_exitted+0x22><== ALWAYS TAKEN
(*the_extension->Callouts.thread_exitted)( executing );
482e4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
482e6: 4e90 jsr %a0@ <== NOT EXECUTED
482e8: 588f addql #4,%sp <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
482ea: 246a 0004 moveal %a2@(4),%a2
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
482ee: b5fc 0005 c828 cmpal #378920,%a2
482f4: 66e6 bnes 482dc <_User_extensions_Thread_exitted+0x14>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
(*the_extension->Callouts.thread_exitted)( executing );
}
}
482f6: 242e fff8 movel %fp@(-8),%d2
482fa: 246e fffc moveal %fp@(-4),%a2
482fe: 4e5e unlk %fp <== NOT EXECUTED
00048c10 <_User_extensions_Thread_restart>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
48c10: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
48c14: 2f0a movel %a2,%sp@- <== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
48c16: 2479 0005 d350 moveal 5d350 <_User_extensions_List>,%a2 <== NOT EXECUTED
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
48c1c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
48c1e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
48c22: 6016 bras 48c3a <_User_extensions_Thread_restart+0x2a><== NOT EXECUTED
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
48c24: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED
48c28: 4a88 tstl %a0 <== NOT EXECUTED
48c2a: 670c beqs 48c38 <_User_extensions_Thread_restart+0x28><== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
48c2c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
48c2e: 2f39 0005 d3a0 movel 5d3a0 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
48c34: 4e90 jsr %a0@ <== NOT EXECUTED
48c36: 508f addql #8,%sp <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
48c38: 2452 moveal %a2@,%a2 <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
48c3a: b5fc 0005 d354 cmpal #381780,%a2 <== NOT EXECUTED
48c40: 66e2 bnes 48c24 <_User_extensions_Thread_restart+0x14><== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
48c42: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
48c46: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
48c4a: 4e5e unlk %fp <== NOT EXECUTED
...
00049944 <_Watchdog_Adjust>:
Watchdog_Interval units
)
{
ISR_Level level;
_ISR_Disable( level );
49944: 327c 0700 moveaw #1792,%a1 <== NOT EXECUTED
49948: 2209 movel %a1,%d1 <== NOT EXECUTED
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
4994a: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
4994e: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
49952: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
49956: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
4995a: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
4995e: 40c0 movew %sr,%d0 <== NOT EXECUTED
49960: 8280 orl %d0,%d1 <== NOT EXECUTED
49962: 46c1 movew %d1,%sr <== NOT EXECUTED
}
}
_ISR_Enable( level );
}
49964: 244b moveal %a3,%a2 <== NOT EXECUTED
49966: 205a moveal %a2@+,%a0 <== NOT EXECUTED
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
49968: b5c8 cmpal %a0,%a2 <== NOT EXECUTED
4996a: 674c beqs 499b8 <_Watchdog_Adjust+0x74> <== NOT EXECUTED
switch ( direction ) {
4996c: 4a83 tstl %d3 <== NOT EXECUTED
4996e: 673c beqs 499ac <_Watchdog_Adjust+0x68> <== NOT EXECUTED
49970: 7201 moveq #1,%d1 <== NOT EXECUTED
49972: b283 cmpl %d3,%d1 <== NOT EXECUTED
49974: 6642 bnes 499b8 <_Watchdog_Adjust+0x74> <== NOT EXECUTED
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
49976: d5a8 0010 addl %d2,%a0@(16) <== NOT EXECUTED
break;
4997a: 603c bras 499b8 <_Watchdog_Adjust+0x74> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) _Chain_First( header ) );
4997c: 2053 moveal %a3@,%a0 <== NOT EXECUTED
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
4997e: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED
49982: b682 cmpl %d2,%d3 <== NOT EXECUTED
49984: 6308 blss 4998e <_Watchdog_Adjust+0x4a> <== NOT EXECUTED
_Watchdog_First( header )->delta_interval -= units;
49986: 9682 subl %d2,%d3 <== NOT EXECUTED
49988: 2143 0010 movel %d3,%a0@(16) <== NOT EXECUTED
break;
4998c: 602a bras 499b8 <_Watchdog_Adjust+0x74> <== NOT EXECUTED
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
4998e: 7201 moveq #1,%d1 <== NOT EXECUTED
49990: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED
_ISR_Enable( level );
49994: 46c0 movew %d0,%sr <== NOT EXECUTED
_Watchdog_Tickle( header );
49996: 2f0b movel %a3,%sp@- <== NOT EXECUTED
49998: 4e94 jsr %a4@ <== NOT EXECUTED
_ISR_Disable( level );
4999a: 2204 movel %d4,%d1 <== NOT EXECUTED
4999c: 40c0 movew %sr,%d0 <== NOT EXECUTED
4999e: 8280 orl %d0,%d1 <== NOT EXECUTED
499a0: 46c1 movew %d1,%sr <== NOT EXECUTED
if ( _Chain_Is_empty( header ) )
499a2: 588f addql #4,%sp <== NOT EXECUTED
499a4: b5d3 cmpal %a3@,%a2 <== NOT EXECUTED
499a6: 6710 beqs 499b8 <_Watchdog_Adjust+0x74> <== NOT EXECUTED
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
499a8: 9483 subl %d3,%d2 <== NOT EXECUTED
499aa: 6008 bras 499b4 <_Watchdog_Adjust+0x70> <== NOT EXECUTED
_Watchdog_First( header )->delta_interval = 1;
_ISR_Enable( level );
_Watchdog_Tickle( header );
499ac: 49f9 0004 9b5c lea 49b5c <_Watchdog_Tickle>,%a4 <== NOT EXECUTED
_ISR_Disable( level );
499b2: 2809 movel %a1,%d4 <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
499b4: 4a82 tstl %d2 <== NOT EXECUTED
499b6: 66c4 bnes 4997c <_Watchdog_Adjust+0x38> <== NOT EXECUTED
}
break;
}
}
_ISR_Enable( level );
499b8: 46c0 movew %d0,%sr <== NOT EXECUTED
}
499ba: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED
499c0: 4e5e unlk %fp <== NOT EXECUTED
00055c9c <_Watchdog_Adjust_to_chain>:
Chain_Control *header,
Watchdog_Interval units_arg,
Chain_Control *to_fire
)
{
55c9c: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
55ca0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
55ca4: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
55ca8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
55cac: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
if ( units <= 0 ) {
55cb0: 4a80 tstl %d0 <== NOT EXECUTED
55cb2: 6770 beqs 55d24 <_Watchdog_Adjust_to_chain+0x88> <== NOT EXECUTED
return;
}
_ISR_Disable( level );
55cb4: 307c 0700 moveaw #1792,%a0 <== NOT EXECUTED
55cb8: 2208 movel %a0,%d1 <== NOT EXECUTED
55cba: 40c2 movew %sr,%d2 <== NOT EXECUTED
55cbc: 8282 orl %d2,%d1 <== NOT EXECUTED
55cbe: 46c1 movew %d1,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
55cc0: 260a movel %a2,%d3 <== NOT EXECUTED
55cc2: 5883 addql #4,%d3 <== NOT EXECUTED
while ( 1 ) {
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
55cc4: 2808 movel %a0,%d4 <== NOT EXECUTED
55cc6: 6004 bras 55ccc <_Watchdog_Adjust_to_chain+0x30> <== NOT EXECUTED
}
_ISR_Disable( level );
while ( 1 ) {
if ( units <= 0 ) {
55cc8: 4a80 tstl %d0 <== NOT EXECUTED
55cca: 6756 beqs 55d22 <_Watchdog_Adjust_to_chain+0x86> <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
}
55ccc: 2252 moveal %a2@,%a1 <== NOT EXECUTED
while ( 1 ) {
if ( units <= 0 ) {
break;
}
if ( _Chain_Is_empty( header ) ) {
55cce: b689 cmpl %a1,%d3 <== NOT EXECUTED
55cd0: 6750 beqs 55d22 <_Watchdog_Adjust_to_chain+0x86> <== NOT EXECUTED
/*
* If it is longer than "units" until the first element on the chain
* fires, then bump it and quit.
*/
if ( units < first->delta_interval ) {
55cd2: 2229 0010 movel %a1@(16),%d1 <== NOT EXECUTED
55cd6: 2049 moveal %a1,%a0 <== NOT EXECUTED
55cd8: b280 cmpl %d0,%d1 <== NOT EXECUTED
55cda: 6308 blss 55ce4 <_Watchdog_Adjust_to_chain+0x48> <== NOT EXECUTED
first->delta_interval -= units;
55cdc: 9280 subl %d0,%d1 <== NOT EXECUTED
55cde: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED
break;
55ce2: 603e bras 55d22 <_Watchdog_Adjust_to_chain+0x86> <== NOT EXECUTED
/*
* The first set happens in less than units, so take all of them
* off the chain and adjust units to reflect this.
*/
units -= first->delta_interval;
55ce4: 9081 subl %d1,%d0 <== NOT EXECUTED
first->delta_interval = 0;
55ce6: 42a9 0010 clrl %a1@(16) <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
55cea: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
55cee: 220b movel %a3,%d1 <== NOT EXECUTED
55cf0: 5881 addql #4,%d1 <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
55cf2: 2850 moveal %a0@,%a4 <== NOT EXECUTED
previous = the_node->previous;
next->previous = previous;
previous->next = next;
55cf4: 228c movel %a4,%a1@ <== NOT EXECUTED
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
55cf6: 2949 0004 movel %a1,%a4@(4) <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
55cfa: 226b 0008 moveal %a3@(8),%a1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
55cfe: 2081 movel %d1,%a0@ <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
55d00: 2748 0008 movel %a0,%a3@(8) <== NOT EXECUTED
old_last->next = the_node;
55d04: 2288 movel %a0,%a1@ <== NOT EXECUTED
the_node->previous = old_last;
55d06: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED
while ( 1 ) {
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
55d0a: 2204 movel %d4,%d1 <== NOT EXECUTED
55d0c: 46c2 movew %d2,%sr <== NOT EXECUTED
55d0e: 8282 orl %d2,%d1 <== NOT EXECUTED
55d10: 46c1 movew %d1,%sr <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
}
55d12: 2212 movel %a2@,%d1 <== NOT EXECUTED
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
if ( _Chain_Is_empty( header ) )
55d14: b681 cmpl %d1,%d3 <== NOT EXECUTED
55d16: 67b0 beqs 55cc8 <_Watchdog_Adjust_to_chain+0x2c> <== NOT EXECUTED
55d18: 2041 moveal %d1,%a0 <== NOT EXECUTED
break;
first = _Watchdog_First( header );
if ( first->delta_interval != 0 )
55d1a: 4aa8 0010 tstl %a0@(16) <== NOT EXECUTED
55d1e: 67ca beqs 55cea <_Watchdog_Adjust_to_chain+0x4e> <== NOT EXECUTED
55d20: 60a6 bras 55cc8 <_Watchdog_Adjust_to_chain+0x2c> <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
55d22: 46c2 movew %d2,%sr <== NOT EXECUTED
}
55d24: 4cd7 1c1c moveml %sp@,%d2-%d4/%a2-%a4 <== NOT EXECUTED
55d28: 4e5e unlk %fp <== NOT EXECUTED
0004844c <_Watchdog_Insert>:
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
_ISR_Disable( level );
4844c: 327c 0700 moveaw #1792,%a1
48450: 2009 movel %a1,%d0
void _Watchdog_Insert(
Chain_Control *header,
Watchdog_Control *the_watchdog
)
{
48452: 4e56 ffec linkw %fp,#-20
48456: 206e 000c moveal %fp@(12),%a0
4845a: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@
4845e: 266e 0008 moveal %fp@(8),%a3
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
48462: 2439 0005 c874 movel 5c874 <_Per_CPU_Information+0x8>,%d2
_ISR_Disable( level );
48468: 40c1 movew %sr,%d1
4846a: 8081 orl %d1,%d0
4846c: 46c0 movew %d0,%sr
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
4846e: 4aa8 0008 tstl %a0@(8)
48472: 6706 beqs 4847a <_Watchdog_Insert+0x2e> <== ALWAYS TAKEN
_ISR_Enable( level );
48474: 46c1 movew %d1,%sr <== NOT EXECUTED
return;
48476: 6000 009a braw 48512 <_Watchdog_Insert+0xc6> <== NOT EXECUTED
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
4847a: 7001 moveq #1,%d0
break;
}
delta_interval -= after->delta_interval;
_ISR_Flash( level );
4847c: 2449 moveal %a1,%a2
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
4847e: 2140 0008 movel %d0,%a0@(8)
_Watchdog_Sync_count++;
48482: 2039 0005 c7dc movel 5c7dc <_Watchdog_Sync_count>,%d0
48488: 5280 addql #1,%d0
4848a: 23c0 0005 c7dc movel %d0,5c7dc <_Watchdog_Sync_count>
restart:
delta_interval = the_watchdog->initial;
48490: 2028 000c movel %a0@(12),%d0
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) _Chain_First( header ) );
48494: 2253 moveal %a3@,%a1
for ( after = _Watchdog_First( header ) ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
48496: 4a80 tstl %d0
48498: 673c beqs 484d6 <_Watchdog_Insert+0x8a> <== NEVER TAKEN
4849a: 4a91 tstl %a1@
4849c: 6738 beqs 484d6 <_Watchdog_Insert+0x8a> <== ALWAYS TAKEN
break;
if ( delta_interval < after->delta_interval ) {
4849e: 2629 0010 movel %a1@(16),%d3 <== NOT EXECUTED
484a2: b680 cmpl %d0,%d3 <== NOT EXECUTED
484a4: 6308 blss 484ae <_Watchdog_Insert+0x62> <== NOT EXECUTED
after->delta_interval -= delta_interval;
484a6: 9680 subl %d0,%d3 <== NOT EXECUTED
484a8: 2343 0010 movel %d3,%a1@(16) <== NOT EXECUTED
break;
484ac: 6028 bras 484d6 <_Watchdog_Insert+0x8a> <== NOT EXECUTED
}
delta_interval -= after->delta_interval;
_ISR_Flash( level );
484ae: 280a movel %a2,%d4 <== NOT EXECUTED
484b0: 46c1 movew %d1,%sr <== NOT EXECUTED
484b2: 8881 orl %d1,%d4 <== NOT EXECUTED
484b4: 46c4 movew %d4,%sr <== NOT EXECUTED
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
484b6: 7801 moveq #1,%d4 <== NOT EXECUTED
484b8: b8a8 0008 cmpl %a0@(8),%d4 <== NOT EXECUTED
484bc: 663e bnes 484fc <_Watchdog_Insert+0xb0> <== NOT EXECUTED
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
484be: 2839 0005 c77c movel 5c77c <_Watchdog_Sync_level>,%d4 <== NOT EXECUTED
484c4: b484 cmpl %d4,%d2 <== NOT EXECUTED
484c6: 6408 bccs 484d0 <_Watchdog_Insert+0x84> <== NOT EXECUTED
_Watchdog_Sync_level = insert_isr_nest_level;
484c8: 23c2 0005 c77c movel %d2,5c77c <_Watchdog_Sync_level> <== NOT EXECUTED
goto restart;
484ce: 60c0 bras 48490 <_Watchdog_Insert+0x44> <== NOT EXECUTED
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
_Watchdog_Sync_count--;
_ISR_Enable( level );
}
484d0: 2251 moveal %a1@,%a1 <== NOT EXECUTED
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
484d2: 9083 subl %d3,%d0 <== NOT EXECUTED
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
_Watchdog_Sync_level = insert_isr_nest_level;
goto restart;
}
}
484d4: 60c0 bras 48496 <_Watchdog_Insert+0x4a> <== NOT EXECUTED
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
484d6: 2269 0004 moveal %a1@(4),%a1
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_ACTIVE;
484da: 7602 moveq #2,%d3
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
484dc: 2451 moveal %a1@,%a2
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
484de: 2140 0010 movel %d0,%a0@(16)
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
484e2: 2039 0005 c7e0 movel 5c7e0 <_Watchdog_Ticks_since_boot>,%d0
484e8: 2143 0008 movel %d3,%a0@(8)
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
484ec: 2149 0004 movel %a1,%a0@(4)
before_node = after_node->next;
after_node->next = the_node;
484f0: 2288 movel %a0,%a1@
the_node->next = before_node;
before_node->previous = the_node;
484f2: 2548 0004 movel %a0,%a2@(4)
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
484f6: 208a movel %a2,%a0@
484f8: 2140 0014 movel %d0,%a0@(20)
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
484fc: 23c2 0005 c77c movel %d2,5c77c <_Watchdog_Sync_level>
_Watchdog_Sync_count--;
48502: 2039 0005 c7dc movel 5c7dc <_Watchdog_Sync_count>,%d0
48508: 5380 subql #1,%d0
4850a: 23c0 0005 c7dc movel %d0,5c7dc <_Watchdog_Sync_count>
_ISR_Enable( level );
48510: 46c1 movew %d1,%sr
}
48512: 4cd7 0c1c moveml %sp@,%d2-%d4/%a2-%a3
48516: 4e5e unlk %fp
...
00048568 <_Watchdog_Remove>:
{
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
48568: 203c 0000 0700 movel #1792,%d0
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
4856e: 4e56 0000 linkw %fp,#0
48572: 206e 0008 moveal %fp@(8),%a0
48576: 2f0a movel %a2,%sp@-
48578: 2f02 movel %d2,%sp@-
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
4857a: 40c1 movew %sr,%d1
4857c: 8081 orl %d1,%d0
4857e: 46c0 movew %d0,%sr
previous_state = the_watchdog->state;
48580: 2028 0008 movel %a0@(8),%d0
switch ( previous_state ) {
48584: 7401 moveq #1,%d2
48586: b480 cmpl %d0,%d2
48588: 670c beqs 48596 <_Watchdog_Remove+0x2e> <== NEVER TAKEN
4858a: 6242 bhis 485ce <_Watchdog_Remove+0x66> <== NEVER TAKEN
4858c: 143c 0003 moveb #3,%d2
48590: b480 cmpl %d0,%d2
48592: 653a bcss 485ce <_Watchdog_Remove+0x66> <== NEVER TAKEN
48594: 6006 bras 4859c <_Watchdog_Remove+0x34>
/*
* It is not actually on the chain so just change the state and
* the Insert operation we interrupted will be aborted.
*/
the_watchdog->state = WATCHDOG_INACTIVE;
48596: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
break;
4859a: 6032 bras 485ce <_Watchdog_Remove+0x66> <== NOT EXECUTED
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
_ISR_Enable( level );
return( previous_state );
}
4859c: 2250 moveal %a0@,%a1
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
4859e: 42a8 0008 clrl %a0@(8)
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
485a2: 4a91 tstl %a1@
485a4: 6708 beqs 485ae <_Watchdog_Remove+0x46> <== ALWAYS TAKEN
next_watchdog->delta_interval += the_watchdog->delta_interval;
485a6: 2428 0010 movel %a0@(16),%d2 <== NOT EXECUTED
485aa: d5a9 0010 addl %d2,%a1@(16) <== NOT EXECUTED
if ( _Watchdog_Sync_count )
485ae: 2479 0005 c7dc moveal 5c7dc <_Watchdog_Sync_count>,%a2
485b4: 4a8a tstl %a2
485b6: 670c beqs 485c4 <_Watchdog_Remove+0x5c> <== ALWAYS TAKEN
_Watchdog_Sync_level = _ISR_Nest_level;
485b8: 45f9 0005 c874 lea 5c874 <_Per_CPU_Information+0x8>,%a2 <== NOT EXECUTED
485be: 23d2 0005 c77c movel %a2@,5c77c <_Watchdog_Sync_level> <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
485c4: 2468 0004 moveal %a0@(4),%a2
next->previous = previous;
485c8: 234a 0004 movel %a2,%a1@(4)
previous->next = next;
485cc: 2489 movel %a1,%a2@
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
485ce: 2279 0005 c7e0 moveal 5c7e0 <_Watchdog_Ticks_since_boot>,%a1
485d4: 2149 0018 movel %a1,%a0@(24)
_ISR_Enable( level );
485d8: 46c1 movew %d1,%sr
return( previous_state );
}
485da: 241f movel %sp@+,%d2
485dc: 245f moveal %sp@+,%a2
485de: 4e5e unlk %fp
...
000495d4 <_Watchdog_Report>:
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
495d4: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
printk(
495d8: 223c 0005 bb7d movel #375677,%d1 <== NOT EXECUTED
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
495de: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
495e2: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED
495e6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
printk(
495ea: 2a28 0024 movel %a0@(36),%d5 <== NOT EXECUTED
495ee: 2828 0020 movel %a0@(32),%d4 <== NOT EXECUTED
495f2: 2628 001c movel %a0@(28),%d3 <== NOT EXECUTED
495f6: 2428 000c movel %a0@(12),%d2 <== NOT EXECUTED
495fa: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED
495fe: 4a80 tstl %d0 <== NOT EXECUTED
49600: 6608 bnes 4960a <_Watchdog_Report+0x36> <== NOT EXECUTED
49602: 223c 0005 bb82 movel #375682,%d1 <== NOT EXECUTED
49608: 2001 movel %d1,%d0 <== NOT EXECUTED
4960a: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4960c: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4960e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49610: 2f08 movel %a0,%sp@- <== NOT EXECUTED
49612: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49614: 2f09 movel %a1,%sp@- <== NOT EXECUTED
49616: 2f01 movel %d1,%sp@- <== NOT EXECUTED
49618: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4961a: 4879 0005 bd0c pea 5bd0c <C.0.4105+0x44> <== NOT EXECUTED
49620: 4eb9 0004 3dec jsr 43dec <printk> <== NOT EXECUTED
49626: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
watch,
watch->routine,
watch->id,
watch->user_data
);
}
4962a: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED
49630: 4e5e unlk %fp <== NOT EXECUTED
00049560 <_Watchdog_Report_chain>:
)
{
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
49560: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
49566: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4956a: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED
4956e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
49572: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
49576: 40c3 movew %sr,%d3 <== NOT EXECUTED
49578: 8083 orl %d3,%d0 <== NOT EXECUTED
4957a: 46c0 movew %d0,%sr <== NOT EXECUTED
printk( "Watchdog Chain: %s %p\n", name, header );
4957c: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4957e: 49f9 0004 3dec lea 43dec <printk>,%a4 <== NOT EXECUTED
49584: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49586: 4879 0005 bcd6 pea 5bcd6 <C.0.4105+0xe> <== NOT EXECUTED
4958c: 4e94 jsr %a4@ <== NOT EXECUTED
printk( "== end of %s \n", name );
} else {
printk( "Chain is empty\n" );
}
_ISR_Enable( level );
}
4958e: 245b moveal %a3@+,%a2 <== NOT EXECUTED
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
49590: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49594: b7ca cmpal %a2,%a3 <== NOT EXECUTED
49596: 6726 beqs 495be <_Watchdog_Report_chain+0x5e> <== NOT EXECUTED
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
49598: 49f9 0004 95d4 lea 495d4 <_Watchdog_Report>,%a4 <== NOT EXECUTED
4959e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
495a0: 42a7 clrl %sp@- <== NOT EXECUTED
495a2: 4e94 jsr %a4@ <== NOT EXECUTED
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = _Chain_First( header ) ;
node != _Chain_Tail(header) ;
node = node->next )
495a4: 2452 moveal %a2@,%a2 <== NOT EXECUTED
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = _Chain_First( header ) ;
495a6: 508f addql #8,%sp <== NOT EXECUTED
495a8: b7ca cmpal %a2,%a3 <== NOT EXECUTED
495aa: 66f2 bnes 4959e <_Watchdog_Report_chain+0x3e> <== NOT EXECUTED
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
495ac: 2f02 movel %d2,%sp@- <== NOT EXECUTED
495ae: 4879 0005 bced pea 5bced <C.0.4105+0x25> <== NOT EXECUTED
495b4: 4eb9 0004 3dec jsr 43dec <printk> <== NOT EXECUTED
495ba: 508f addql #8,%sp <== NOT EXECUTED
495bc: 600a bras 495c8 <_Watchdog_Report_chain+0x68> <== NOT EXECUTED
} else {
printk( "Chain is empty\n" );
495be: 4879 0005 bcfc pea 5bcfc <C.0.4105+0x34> <== NOT EXECUTED
495c4: 4e94 jsr %a4@ <== NOT EXECUTED
495c6: 588f addql #4,%sp <== NOT EXECUTED
}
_ISR_Enable( level );
495c8: 46c3 movew %d3,%sr <== NOT EXECUTED
}
495ca: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 <== NOT EXECUTED
495d0: 4e5e unlk %fp <== NOT EXECUTED
000485e4 <_Watchdog_Tickle>:
* See the comment in watchdoginsert.c and watchdogadjust.c
* about why it's safe not to declare header a pointer to
* volatile data - till, 2003/7
*/
_ISR_Disable( level );
485e4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
*/
void _Watchdog_Tickle(
Chain_Control *header
)
{
485ea: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
485ee: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED
485f2: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED
* See the comment in watchdoginsert.c and watchdogadjust.c
* about why it's safe not to declare header a pointer to
* volatile data - till, 2003/7
*/
_ISR_Disable( level );
485f6: 40c2 movew %sr,%d2 <== NOT EXECUTED
485f8: 8082 orl %d2,%d0 <== NOT EXECUTED
485fa: 46c0 movew %d0,%sr <== NOT EXECUTED
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
485fc: 264c moveal %a4,%a3 <== NOT EXECUTED
485fe: 245b moveal %a3@+,%a2 <== NOT EXECUTED
* volatile data - till, 2003/7
*/
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
48600: b7ca cmpal %a2,%a3 <== NOT EXECUTED
48602: 674c beqs 48650 <_Watchdog_Tickle+0x6c> <== NOT EXECUTED
* to be inserted has already had its delta_interval adjusted to 0, and
* so is added to the head of the chain with a delta_interval of 0.
*
* Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)
*/
if (the_watchdog->delta_interval != 0) {
48604: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED
48608: 6708 beqs 48612 <_Watchdog_Tickle+0x2e> <== NOT EXECUTED
the_watchdog->delta_interval--;
4860a: 5380 subql #1,%d0 <== NOT EXECUTED
4860c: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
if ( the_watchdog->delta_interval != 0 )
48610: 663e bnes 48650 <_Watchdog_Tickle+0x6c> <== NOT EXECUTED
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
48612: 4bf9 0004 8568 lea 48568 <_Watchdog_Remove>,%a5 <== NOT EXECUTED
case WATCHDOG_REMOVE_IT:
break;
}
_ISR_Disable( level );
48618: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED
if ( the_watchdog->delta_interval != 0 )
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
4861e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48620: 4e95 jsr %a5@ <== NOT EXECUTED
_ISR_Enable( level );
48622: 46c2 movew %d2,%sr <== NOT EXECUTED
switch( watchdog_state ) {
48624: 7202 moveq #2,%d1 <== NOT EXECUTED
48626: 588f addql #4,%sp <== NOT EXECUTED
48628: b280 cmpl %d0,%d1 <== NOT EXECUTED
4862a: 6610 bnes 4863c <_Watchdog_Tickle+0x58> <== NOT EXECUTED
case WATCHDOG_ACTIVE:
(*the_watchdog->routine)(
4862c: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED
48630: 2f2a 0020 movel %a2@(32),%sp@- <== NOT EXECUTED
48634: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED
48638: 4e90 jsr %a0@ <== NOT EXECUTED
the_watchdog->id,
the_watchdog->user_data
);
break;
4863a: 508f addql #8,%sp <== NOT EXECUTED
case WATCHDOG_REMOVE_IT:
break;
}
_ISR_Disable( level );
4863c: 2003 movel %d3,%d0 <== NOT EXECUTED
4863e: 40c2 movew %sr,%d2 <== NOT EXECUTED
48640: 8082 orl %d2,%d0 <== NOT EXECUTED
48642: 46c0 movew %d0,%sr <== NOT EXECUTED
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
48644: 2454 moveal %a4@,%a2 <== NOT EXECUTED
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
48646: b7ca cmpal %a2,%a3 <== NOT EXECUTED
48648: 6706 beqs 48650 <_Watchdog_Tickle+0x6c> <== NOT EXECUTED
}
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
4864a: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED
4864e: 67ce beqs 4861e <_Watchdog_Tickle+0x3a> <== NOT EXECUTED
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
48650: 46c2 movew %d2,%sr <== NOT EXECUTED
}
48652: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED
48658: 4e5e unlk %fp <== NOT EXECUTED
0004c1d4 <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
4c1d4: 4e56 ffe4 linkw %fp,#-28
4c1d8: 202e 0010 movel %fp@(16),%d0
4c1dc: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@
4c1e0: 242e 0008 movel %fp@(8),%d2
4c1e4: 262e 000c movel %fp@(12),%d3
4c1e8: 246e 0014 moveal %fp@(20),%a2
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
4c1ec: 4a82 tstl %d2
4c1ee: 677e beqs 4c26e <rtems_barrier_create+0x9a> <== NEVER TAKEN
return RTEMS_INVALID_NAME;
if ( !id )
4c1f0: 4a8a tstl %a2
4c1f2: 677e beqs 4c272 <rtems_barrier_create+0x9e> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
4c1f4: 0803 0004 btst #4,%d3
4c1f8: 670a beqs 4c204 <rtems_barrier_create+0x30> <== NEVER TAKEN
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
4c1fa: 42ae fff8 clrl %fp@(-8)
if ( maximum_waiters == 0 )
4c1fe: 4a80 tstl %d0
4c200: 6608 bnes 4c20a <rtems_barrier_create+0x36> <== ALWAYS TAKEN
4c202: 6072 bras 4c276 <rtems_barrier_create+0xa2> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
4c204: 7201 moveq #1,%d1 <== NOT EXECUTED
4c206: 2d41 fff8 movel %d1,%fp@(-8) <== NOT EXECUTED
the_attributes.maximum_count = maximum_waiters;
4c20a: 2d40 fffc movel %d0,%fp@(-4)
4c20e: 2039 0005 e9dc movel 5e9dc <_Thread_Dispatch_disable_level>,%d0
4c214: 5280 addql #1,%d0
4c216: 23c0 0005 e9dc movel %d0,5e9dc <_Thread_Dispatch_disable_level>
* This function allocates a barrier control block from
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void )
{
return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information );
4c21c: 4879 0005 ebd0 pea 5ebd0 <_Barrier_Information>
4c222: 49f9 0004 9342 lea 49342 <_Thread_Enable_dispatch>,%a4
4c228: 4eb9 0004 8478 jsr 48478 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
4c22e: 588f addql #4,%sp
4c230: 2640 moveal %d0,%a3
4c232: 4a80 tstl %d0
4c234: 6606 bnes 4c23c <rtems_barrier_create+0x68> <== ALWAYS TAKEN
_Thread_Enable_dispatch();
4c236: 4e94 jsr %a4@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
4c238: 7005 moveq #5,%d0 <== NOT EXECUTED
4c23a: 603c bras 4c278 <rtems_barrier_create+0xa4> <== NOT EXECUTED
}
the_barrier->attribute_set = attribute_set;
4c23c: 2743 0010 movel %d3,%a3@(16)
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
4c240: 486e fff8 pea %fp@(-8)
4c244: 486b 0014 pea %a3@(20)
4c248: 4eb9 0004 c9a8 jsr 4c9a8 <_CORE_barrier_Initialize>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
4c24e: 202b 0008 movel %a3@(8),%d0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4c252: 4281 clrl %d1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4c254: 2079 0005 ebe8 moveal 5ebe8 <_Barrier_Information+0x18>,%a0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4c25a: 3200 movew %d0,%d1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4c25c: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
4c260: 2742 000c movel %d2,%a3@(12)
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
4c264: 2480 movel %d0,%a2@
_Thread_Enable_dispatch();
4c266: 4e94 jsr %a4@
return RTEMS_SUCCESSFUL;
4c268: 508f addql #8,%sp
4c26a: 4280 clrl %d0
4c26c: 600a bras 4c278 <rtems_barrier_create+0xa4>
{
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
4c26e: 7003 moveq #3,%d0 <== NOT EXECUTED
4c270: 6006 bras 4c278 <rtems_barrier_create+0xa4> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
4c272: 7009 moveq #9,%d0 <== NOT EXECUTED
4c274: 6002 bras 4c278 <rtems_barrier_create+0xa4> <== NOT EXECUTED
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
4c276: 700a moveq #10,%d0 <== NOT EXECUTED
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4c278: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4
4c27e: 4e5e unlk %fp
...
0004c284 <rtems_barrier_delete>:
*/
rtems_status_code rtems_barrier_delete(
rtems_id id
)
{
4c284: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4c288: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
4c28a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4c28e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4c292: 4879 0005 ebd0 pea 5ebd0 <_Barrier_Information> <== NOT EXECUTED
4c298: 4eb9 0004 88d0 jsr 488d0 <_Objects_Get> <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
4c29e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4c2a2: 2440 moveal %d0,%a2 <== NOT EXECUTED
4c2a4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4c2a8: 663a bnes 4c2e4 <rtems_barrier_delete+0x60> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Flush(
4c2aa: 4878 0002 pea 2 <DOUBLE_FLOAT> <== NOT EXECUTED
4c2ae: 42a7 clrl %sp@- <== NOT EXECUTED
4c2b0: 486a 0014 pea %a2@(20) <== NOT EXECUTED
4c2b4: 4eb9 0004 998c jsr 4998c <_Thread_queue_Flush> <== NOT EXECUTED
&the_barrier->Barrier,
NULL,
CORE_BARRIER_WAS_DELETED
);
_Objects_Close( &_Barrier_Information, &the_barrier->Object );
4c2ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c2bc: 4879 0005 ebd0 pea 5ebd0 <_Barrier_Information> <== NOT EXECUTED
4c2c2: 4eb9 0004 84f4 jsr 484f4 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Barrier_Free (
Barrier_Control *the_barrier
)
{
_Objects_Free( &_Barrier_Information, &the_barrier->Object );
4c2c8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c2ca: 4879 0005 ebd0 pea 5ebd0 <_Barrier_Information> <== NOT EXECUTED
4c2d0: 4eb9 0004 876c jsr 4876c <_Objects_Free> <== NOT EXECUTED
_Barrier_Free( the_barrier );
_Thread_Enable_dispatch();
4c2d6: 4eb9 0004 9342 jsr 49342 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4c2dc: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4c2e0: 4280 clrl %d0 <== NOT EXECUTED
4c2e2: 6002 bras 4c2e6 <rtems_barrier_delete+0x62> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4c2e4: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4c2e6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4c2ea: 4e5e unlk %fp <== NOT EXECUTED
...
00045db0 <rtems_barrier_ident>:
rtems_status_code rtems_barrier_ident(
rtems_name name,
rtems_id *id
)
{
45db0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
45db4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
45db8: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
45dbe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
45dc2: 4879 0005 db7c pea 5db7c <_Barrier_Information> <== NOT EXECUTED
45dc8: 4eb9 0004 7d74 jsr 47d74 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
45dce: 41f9 0005 b6be lea 5b6be <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
45dd4: 4e5e unlk %fp <== NOT EXECUTED
45dd6: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
0004c320 <rtems_barrier_release>:
rtems_status_code rtems_barrier_release(
rtems_id id,
uint32_t *released
)
{
4c320: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4c324: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c326: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
4c32a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c32c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
4c330: 4a8a tstl %a2 <== NOT EXECUTED
4c332: 673c beqs 4c370 <rtems_barrier_release+0x50> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
4c334: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4c338: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c33a: 4879 0005 ebd0 pea 5ebd0 <_Barrier_Information> <== NOT EXECUTED
4c340: 4eb9 0004 88d0 jsr 488d0 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
4c346: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4c34a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4c34e: 6624 bnes 4c374 <rtems_barrier_release+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
*released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL );
4c350: 42a7 clrl %sp@- <== NOT EXECUTED
4c352: 2040 moveal %d0,%a0 <== NOT EXECUTED
4c354: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c356: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4c35a: 4eb9 0004 c9e4 jsr 4c9e4 <_CORE_barrier_Release> <== NOT EXECUTED
4c360: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4c362: 4eb9 0004 9342 jsr 49342 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4c368: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4c36c: 4280 clrl %d0 <== NOT EXECUTED
4c36e: 6006 bras 4c376 <rtems_barrier_release+0x56> <== NOT EXECUTED
{
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
return RTEMS_INVALID_ADDRESS;
4c370: 7009 moveq #9,%d0 <== NOT EXECUTED
4c372: 6002 bras 4c376 <rtems_barrier_release+0x56> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4c374: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4c376: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4c37a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4c37e: 4e5e unlk %fp <== NOT EXECUTED
...
0004c384 <rtems_barrier_wait>:
rtems_status_code rtems_barrier_wait(
rtems_id id,
rtems_interval timeout
)
{
4c384: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4c388: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c38a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4c38e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4c392: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c394: 4879 0005 ebd0 pea 5ebd0 <_Barrier_Information> <== NOT EXECUTED
4c39a: 4eb9 0004 88d0 jsr 488d0 <_Objects_Get> <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
4c3a0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4c3a4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4c3a8: 6634 bnes 4c3de <rtems_barrier_wait+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Wait(
4c3aa: 42a7 clrl %sp@- <== NOT EXECUTED
4c3ac: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4c3b0: 2040 moveal %d0,%a0 <== NOT EXECUTED
4c3b2: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4c3b6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c3b8: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4c3bc: 4eb9 0004 ca18 jsr 4ca18 <_CORE_barrier_Wait> <== NOT EXECUTED
id,
true,
timeout,
NULL
);
_Thread_Enable_dispatch();
4c3c2: 4eb9 0004 9342 jsr 49342 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _Barrier_Translate_core_barrier_return_code(
_Thread_Executing->Wait.return_code );
4c3c8: 2079 0005 eb9c moveal 5eb9c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
true,
timeout,
NULL
);
_Thread_Enable_dispatch();
return _Barrier_Translate_core_barrier_return_code(
4c3ce: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
4c3d2: 4eb9 0004 d39c jsr 4d39c <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED
4c3d8: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
4c3dc: 6002 bras 4c3e0 <rtems_barrier_wait+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4c3de: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4c3e0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4c3e4: 4e5e unlk %fp <== NOT EXECUTED
00046b60 <rtems_build_id>:
uint32_t api,
uint32_t class,
uint32_t node,
uint32_t index
)
{
46b60: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46b64: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
46b68: 2f03 movel %d3,%sp@- <== NOT EXECUTED
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46b6a: 761b moveq #27,%d3 <== NOT EXECUTED
46b6c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46b6e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46b72: e7a8 lsll %d3,%d0 <== NOT EXECUTED
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46b74: 163c 0018 moveb #24,%d3 <== NOT EXECUTED
46b78: e7aa lsll %d3,%d2 <== NOT EXECUTED
46b7a: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED
46b7e: 8082 orl %d2,%d0 <== NOT EXECUTED
return _Objects_Build_id( api, class, node, index );
}
46b80: 241f movel %sp@+,%d2 <== NOT EXECUTED
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46b82: 80ae 0014 orl %fp@(20),%d0 <== NOT EXECUTED
#if !defined(RTEMS_USE_16_BIT_OBJECT)
(( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) |
46b86: 4841 swap %d1 <== NOT EXECUTED
46b88: 4241 clrw %d1 <== NOT EXECUTED
46b8a: 261f movel %sp@+,%d3 <== NOT EXECUTED
46b8c: 4e5e unlk %fp <== NOT EXECUTED
46b8e: 8081 orl %d1,%d0 <== NOT EXECUTED
...
00046b94 <rtems_build_name>:
char C1,
char C2,
char C3,
char C4
)
{
46b94: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
46b98: 102e 000f moveb %fp@(15),%d0 <== NOT EXECUTED
46b9c: 122e 000b moveb %fp@(11),%d1 <== NOT EXECUTED
char C1,
char C2,
char C3,
char C4
)
{
46ba0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
46ba2: 7418 moveq #24,%d2 <== NOT EXECUTED
46ba4: 49c0 extbl %d0 <== NOT EXECUTED
46ba6: 49c1 extbl %d1 <== NOT EXECUTED
46ba8: 4840 swap %d0 <== NOT EXECUTED
46baa: 4240 clrw %d0 <== NOT EXECUTED
46bac: e5a9 lsll %d2,%d1 <== NOT EXECUTED
}
46bae: 241f movel %sp@+,%d2 <== NOT EXECUTED
char C2,
char C3,
char C4
)
{
return _Objects_Build_name( C1, C2, C3, C4 );
46bb0: 8081 orl %d1,%d0 <== NOT EXECUTED
46bb2: 122e 0013 moveb %fp@(19),%d1 <== NOT EXECUTED
46bb6: 49c1 extbl %d1 <== NOT EXECUTED
46bb8: e189 lsll #8,%d1 <== NOT EXECUTED
46bba: 8081 orl %d1,%d0 <== NOT EXECUTED
46bbc: 122e 0017 moveb %fp@(23),%d1 <== NOT EXECUTED
}
46bc0: 4e5e unlk %fp <== NOT EXECUTED
char C2,
char C3,
char C4
)
{
return _Objects_Build_name( C1, C2, C3, C4 );
46bc2: 49c1 extbl %d1 <== NOT EXECUTED
}
46bc4: 8081 orl %d1,%d0 <== NOT EXECUTED
000460e0 <rtems_chain_append_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
460e0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
460e4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
460e6: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
460ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool rtems_chain_append_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
)
{
return _Chain_Append_with_empty_check( chain, node );
460ec: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
460f0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
460f4: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
460f8: 4eb9 0004 661c jsr 4661c <_Chain_Append_with_empty_check> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_append_with_empty_check( chain, node );
if ( was_empty ) {
460fe: 508f addql #8,%sp <== NOT EXECUTED
46100: 4a00 tstb %d0 <== NOT EXECUTED
46102: 6718 beqs 4611c <rtems_chain_append_with_notification+0x3c><== NOT EXECUTED
sc = rtems_event_send( task, events );
46104: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
}
return sc;
}
46108: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_append_with_empty_check( chain, node );
if ( was_empty ) {
sc = rtems_event_send( task, events );
4610c: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return sc;
}
46110: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46114: 4e5e unlk %fp <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_append_with_empty_check( chain, node );
if ( was_empty ) {
sc = rtems_event_send( task, events );
46116: 4ef9 0004 5764 jmp 45764 <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
4611c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46120: 4280 clrl %d0 <== NOT EXECUTED
46122: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
46126: 4e5e unlk %fp <== NOT EXECUTED
...
0004612c <rtems_chain_get_with_notification>:
rtems_chain_control *chain,
rtems_id task,
rtems_event_set events,
rtems_chain_node **node
)
{
4612c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46130: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46132: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
46136: 2f02 movel %d2,%sp@- <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool rtems_chain_get_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node **node
)
{
return _Chain_Get_with_empty_check( chain, node );
46138: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
4613c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46140: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46144: 4eb9 0004 66bc jsr 466bc <_Chain_Get_with_empty_check> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool is_empty = rtems_chain_get_with_empty_check( chain, node );
if ( is_empty ) {
4614a: 508f addql #8,%sp <== NOT EXECUTED
4614c: 4a00 tstb %d0 <== NOT EXECUTED
4614e: 6718 beqs 46168 <rtems_chain_get_with_notification+0x3c><== NOT EXECUTED
sc = rtems_event_send( task, events );
46150: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
}
return sc;
}
46154: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool is_empty = rtems_chain_get_with_empty_check( chain, node );
if ( is_empty ) {
sc = rtems_event_send( task, events );
46158: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return sc;
}
4615c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46160: 4e5e unlk %fp <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool is_empty = rtems_chain_get_with_empty_check( chain, node );
if ( is_empty ) {
sc = rtems_event_send( task, events );
46162: 4ef9 0004 5764 jmp 45764 <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
46168: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4616c: 4280 clrl %d0 <== NOT EXECUTED
4616e: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
46172: 4e5e unlk %fp <== NOT EXECUTED
...
00046178 <rtems_chain_get_with_wait>:
rtems_chain_control *chain,
rtems_event_set events,
rtems_interval timeout,
rtems_chain_node **node_ptr
)
{
46178: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
4617c: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ <== NOT EXECUTED
while (
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
) {
rtems_event_set out;
sc = rtems_event_receive(
46180: 260e movel %fp,%d3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
46182: 47f9 0004 6704 lea 46704 <_Chain_Get>,%a3 <== NOT EXECUTED
46188: 5983 subql #4,%d3 <== NOT EXECUTED
4618a: 45f9 0004 5600 lea 45600 <rtems_event_receive>,%a2 <== NOT EXECUTED
rtems_chain_control *chain,
rtems_event_set events,
rtems_interval timeout,
rtems_chain_node **node_ptr
)
{
46190: 2c2e 0008 movel %fp@(8),%d6 <== NOT EXECUTED
46194: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED
46198: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
4619c: 6012 bras 461b0 <rtems_chain_get_with_wait+0x38> <== NOT EXECUTED
while (
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
) {
rtems_event_set out;
sc = rtems_event_receive(
4619e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
461a0: 2f04 movel %d4,%sp@- <== NOT EXECUTED
461a2: 42a7 clrl %sp@- <== NOT EXECUTED
461a4: 2f05 movel %d5,%sp@- <== NOT EXECUTED
461a6: 4e92 jsr %a2@ <== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
461a8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
461ac: 4a80 tstl %d0 <== NOT EXECUTED
461ae: 660c bnes 461bc <rtems_chain_get_with_wait+0x44> <== NOT EXECUTED
461b0: 2f06 movel %d6,%sp@- <== NOT EXECUTED
461b2: 4e93 jsr %a3@ <== NOT EXECUTED
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
461b4: 588f addql #4,%sp <== NOT EXECUTED
461b6: 2400 movel %d0,%d2 <== NOT EXECUTED
461b8: 67e4 beqs 4619e <rtems_chain_get_with_wait+0x26> <== NOT EXECUTED
461ba: 4280 clrl %d0 <== NOT EXECUTED
timeout,
&out
);
}
*node_ptr = node;
461bc: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED
461c0: 2082 movel %d2,%a0@ <== NOT EXECUTED
return sc;
}
461c2: 4cee 0c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a3 <== NOT EXECUTED
461c8: 4e5e unlk %fp <== NOT EXECUTED
000461cc <rtems_chain_prepend_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
461cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
461d0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
461d2: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
461d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
)
{
return _Chain_Prepend_with_empty_check( chain, node );
461d8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
461dc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
461e0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
461e4: 4eb9 0004 6768 jsr 46768 <_Chain_Prepend_with_empty_check> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
if (was_empty) {
461ea: 508f addql #8,%sp <== NOT EXECUTED
461ec: 4a00 tstb %d0 <== NOT EXECUTED
461ee: 6718 beqs 46208 <rtems_chain_prepend_with_notification+0x3c><== NOT EXECUTED
sc = rtems_event_send( task, events );
461f0: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
}
return sc;
}
461f4: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
if (was_empty) {
sc = rtems_event_send( task, events );
461f8: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return sc;
}
461fc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46200: 4e5e unlk %fp <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
if (was_empty) {
sc = rtems_event_send( task, events );
46202: 4ef9 0004 5764 jmp 45764 <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
46208: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4620c: 4280 clrl %d0 <== NOT EXECUTED
4620e: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
46212: 4e5e unlk %fp <== NOT EXECUTED
...
0004ef44 <rtems_clock_get>:
rtems_status_code rtems_clock_get(
rtems_clock_get_options option,
void *time_buffer
)
{
4ef44: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4ef48: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4ef4c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ef4e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
if ( !time_buffer )
4ef52: 4a8a tstl %a2 <== NOT EXECUTED
4ef54: 6760 beqs 4efb6 <rtems_clock_get+0x72> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
4ef56: 4a80 tstl %d0 <== NOT EXECUTED
4ef58: 6610 bnes 4ef6a <rtems_clock_get+0x26> <== NOT EXECUTED
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
4ef5a: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
4ef5e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4ef62: 4e5e unlk %fp <== NOT EXECUTED
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
4ef64: 4ef9 0004 f014 jmp 4f014 <rtems_clock_get_tod> <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
4ef6a: 7201 moveq #1,%d1 <== NOT EXECUTED
4ef6c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4ef6e: 6610 bnes 4ef80 <rtems_clock_get+0x3c> <== NOT EXECUTED
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
4ef70: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
4ef74: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4ef78: 4e5e unlk %fp <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
4ef7a: 4ef9 0004 efc4 jmp 4efc4 <rtems_clock_get_seconds_since_epoch><== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
4ef80: 7202 moveq #2,%d1 <== NOT EXECUTED
4ef82: b280 cmpl %d0,%d1 <== NOT EXECUTED
4ef84: 6608 bnes 4ef8e <rtems_clock_get+0x4a> <== NOT EXECUTED
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_since_boot();
4ef86: 4eb9 0004 f004 jsr 4f004 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
4ef8c: 600c bras 4ef9a <rtems_clock_get+0x56> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
4ef8e: 7203 moveq #3,%d1 <== NOT EXECUTED
4ef90: b280 cmpl %d0,%d1 <== NOT EXECUTED
4ef92: 660c bnes 4efa0 <rtems_clock_get+0x5c> <== NOT EXECUTED
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_per_second();
4ef94: 4eb9 0004 efec jsr 4efec <rtems_clock_get_ticks_per_second><== NOT EXECUTED
4ef9a: 2480 movel %d0,%a2@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4ef9c: 4280 clrl %d0 <== NOT EXECUTED
4ef9e: 601c bras 4efbc <rtems_clock_get+0x78> <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
4efa0: 7204 moveq #4,%d1 <== NOT EXECUTED
4efa2: b280 cmpl %d0,%d1 <== NOT EXECUTED
4efa4: 6614 bnes 4efba <rtems_clock_get+0x76> <== NOT EXECUTED
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
4efa6: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
4efaa: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4efae: 4e5e unlk %fp <== NOT EXECUTED
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
4efb0: 4ef9 0004 f0c8 jmp 4f0c8 <rtems_clock_get_tod_timeval> <== NOT EXECUTED
rtems_clock_get_options option,
void *time_buffer
)
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
4efb6: 7009 moveq #9,%d0 <== NOT EXECUTED
4efb8: 6002 bras 4efbc <rtems_clock_get+0x78> <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
4efba: 700a moveq #10,%d0 <== NOT EXECUTED
}
4efbc: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4efc0: 4e5e unlk %fp <== NOT EXECUTED
00045d90 <rtems_clock_get_seconds_since_epoch>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
45d90: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45d94: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !the_interval )
45d98: 4a88 tstl %a0 <== NOT EXECUTED
45d9a: 6712 beqs 45dae <rtems_clock_get_seconds_since_epoch+0x1e><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
45d9c: 4a39 0006 65b8 tstb 665b8 <_TOD_Is_set> <== NOT EXECUTED
45da2: 670e beqs 45db2 <rtems_clock_get_seconds_since_epoch+0x22><== NOT EXECUTED
return RTEMS_NOT_DEFINED;
*the_interval = _TOD_Seconds_since_epoch();
45da4: 20b9 0006 6652 movel 66652 <_TOD_Now>,%a0@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45daa: 4280 clrl %d0 <== NOT EXECUTED
45dac: 6006 bras 45db4 <rtems_clock_get_seconds_since_epoch+0x24><== NOT EXECUTED
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
if ( !the_interval )
return RTEMS_INVALID_ADDRESS;
45dae: 7009 moveq #9,%d0 <== NOT EXECUTED
45db0: 6002 bras 45db4 <rtems_clock_get_seconds_since_epoch+0x24><== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
45db2: 700b moveq #11,%d0 <== NOT EXECUTED
*the_interval = _TOD_Seconds_since_epoch();
return RTEMS_SUCCESSFUL;
}
45db4: 4e5e unlk %fp <== NOT EXECUTED
00044fc4 <rtems_clock_get_ticks_per_second>:
rtems_interval rtems_clock_get_ticks_per_second(void)
{
return TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
}
44fc4: 41f9 0005 aea0 lea 5aea0 <Configuration+0xc>,%a0 <== NOT EXECUTED
#include <rtems/score/thread.h>
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
rtems_interval rtems_clock_get_ticks_per_second(void)
{
44fca: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
}
44fce: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED
44fd4: 4e5e unlk %fp <== NOT EXECUTED
44fd6: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED
00044fdc <rtems_clock_get_ticks_since_boot>:
#include <rtems/score/thread.h>
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
rtems_interval rtems_clock_get_ticks_since_boot(void)
{
44fdc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Watchdog_Ticks_since_boot;
44fe0: 2039 0005 c7e0 movel 5c7e0 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
}
44fe6: 4e5e unlk %fp <== NOT EXECUTED
...
00045de0 <rtems_clock_get_tod>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod(
rtems_time_of_day *time_buffer
)
{
45de0: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED
45de4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45de6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
45dea: 2f02 movel %d2,%sp@- <== NOT EXECUTED
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
45dec: 4a8a tstl %a2 <== NOT EXECUTED
45dee: 6700 0090 beqw 45e80 <rtems_clock_get_tod+0xa0> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
45df2: 4a39 0006 65b8 tstb 665b8 <_TOD_Is_set> <== NOT EXECUTED
45df8: 6700 008a beqw 45e84 <rtems_clock_get_tod+0xa4> <== NOT EXECUTED
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
45dfc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
45e02: 40c2 movew %sr,%d2 <== NOT EXECUTED
45e04: 8082 orl %d2,%d0 <== NOT EXECUTED
45e06: 46c0 movew %d0,%sr <== NOT EXECUTED
_TOD_Get( &now );
45e08: 486e fff0 pea %fp@(-16) <== NOT EXECUTED
45e0c: 4eb9 0004 7540 jsr 47540 <_TOD_Get> <== NOT EXECUTED
_ISR_Enable(level);
45e12: 46c2 movew %d2,%sr <== NOT EXECUTED
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
45e14: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED
/* Obtain the current time */
_TOD_Get_timeval( &now );
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
45e1a: 486e ffcc pea %fp@(-52) <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
45e1e: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED
45e22: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
45e26: 2d6e fff0 fff8 movel %fp@(-16),%fp@(-8) <== NOT EXECUTED
time->tv_usec = useconds;
45e2c: 4c42 0800 remsl %d2,%d0,%d0 <== NOT EXECUTED
45e30: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
45e34: 4eb9 0004 d798 jsr 4d798 <gmtime_r> <== NOT EXECUTED
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
45e3a: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED
45e3e: 41e8 076c lea %a0@(1900),%a0 <== NOT EXECUTED
tmbuf->minute = time.tm_min;
tmbuf->second = time.tm_sec;
tmbuf->ticks = now.tv_usec /
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
45e42: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
tmbuf->month = time.tm_mon + 1;
45e46: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED
45e4a: 5280 addql #1,%d0 <== NOT EXECUTED
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
45e4c: 2488 movel %a0,%a2@ <== NOT EXECUTED
tmbuf->month = time.tm_mon + 1;
tmbuf->day = time.tm_mday;
tmbuf->hour = time.tm_hour;
tmbuf->minute = time.tm_min;
tmbuf->second = time.tm_sec;
tmbuf->ticks = now.tv_usec /
45e4e: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
45e52: 41f9 0005 cfc0 lea 5cfc0 <Configuration+0xc>,%a0 <== NOT EXECUTED
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
tmbuf->month = time.tm_mon + 1;
45e58: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
tmbuf->day = time.tm_mday;
45e5c: 256e ffd8 0008 movel %fp@(-40),%a2@(8) <== NOT EXECUTED
tmbuf->hour = time.tm_hour;
45e62: 256e ffd4 000c movel %fp@(-44),%a2@(12) <== NOT EXECUTED
tmbuf->minute = time.tm_min;
45e68: 256e ffd0 0010 movel %fp@(-48),%a2@(16) <== NOT EXECUTED
tmbuf->second = time.tm_sec;
45e6e: 256e ffcc 0014 movel %fp@(-52),%a2@(20) <== NOT EXECUTED
tmbuf->ticks = now.tv_usec /
45e74: 4c50 1001 remul %a0@,%d1,%d1 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
45e78: 4280 clrl %d0 <== NOT EXECUTED
tmbuf->month = time.tm_mon + 1;
tmbuf->day = time.tm_mday;
tmbuf->hour = time.tm_hour;
tmbuf->minute = time.tm_min;
tmbuf->second = time.tm_sec;
tmbuf->ticks = now.tv_usec /
45e7a: 2541 0018 movel %d1,%a2@(24) <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
45e7e: 6006 bras 45e86 <rtems_clock_get_tod+0xa6> <== NOT EXECUTED
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
45e80: 7009 moveq #9,%d0 <== NOT EXECUTED
45e82: 6002 bras 45e86 <rtems_clock_get_tod+0xa6> <== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
45e84: 700b moveq #11,%d0 <== NOT EXECUTED
tmbuf->second = time.tm_sec;
tmbuf->ticks = now.tv_usec /
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
}
45e86: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED
45e8a: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED
45e8e: 4e5e unlk %fp <== NOT EXECUTED
...
0004f0c8 <rtems_clock_get_tod_timeval>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
4f0c8: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
4f0cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4f0ce: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4f0d2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
if ( !time )
4f0d4: 4a8a tstl %a2 <== NOT EXECUTED
4f0d6: 673c beqs 4f114 <rtems_clock_get_tod_timeval+0x4c><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
4f0d8: 4a39 0007 5004 tstb 75004 <_TOD_Is_set> <== NOT EXECUTED
4f0de: 6738 beqs 4f118 <rtems_clock_get_tod_timeval+0x50><== NOT EXECUTED
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
4f0e0: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4f0e6: 40c2 movew %sr,%d2 <== NOT EXECUTED
4f0e8: 8082 orl %d2,%d0 <== NOT EXECUTED
4f0ea: 46c0 movew %d0,%sr <== NOT EXECUTED
_TOD_Get( &now );
4f0ec: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
4f0f0: 4eb9 0005 3168 jsr 53168 <_TOD_Get> <== NOT EXECUTED
_ISR_Enable(level);
4f0f6: 46c2 movew %d2,%sr <== NOT EXECUTED
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
4f0f8: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
4f0fe: 588f addql #4,%sp <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
4f100: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
4f104: 4c42 0800 remsl %d2,%d0,%d0 <== NOT EXECUTED
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
4f108: 24ae fff8 movel %fp@(-8),%a2@ <== NOT EXECUTED
time->tv_usec = useconds;
4f10c: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
4f110: 4280 clrl %d0 <== NOT EXECUTED
4f112: 6006 bras 4f11a <rtems_clock_get_tod_timeval+0x52><== NOT EXECUTED
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
if ( !time )
return RTEMS_INVALID_ADDRESS;
4f114: 7009 moveq #9,%d0 <== NOT EXECUTED
4f116: 6002 bras 4f11a <rtems_clock_get_tod_timeval+0x52><== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
4f118: 700b moveq #11,%d0 <== NOT EXECUTED
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
}
4f11a: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED
4f11e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
4f122: 4e5e unlk %fp <== NOT EXECUTED
...
0004521c <rtems_clock_get_uptime>:
* error code - if unsuccessful
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
4521c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45220: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
if ( !uptime )
45224: 670e beqs 45234 <rtems_clock_get_uptime+0x18> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_TOD_Get_uptime_as_timespec( uptime );
45226: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45228: 4eb9 0004 6738 jsr 46738 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4522e: 588f addql #4,%sp <== NOT EXECUTED
45230: 4280 clrl %d0 <== NOT EXECUTED
45232: 6002 bras 45236 <rtems_clock_get_uptime+0x1a> <== NOT EXECUTED
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
if ( !uptime )
return RTEMS_INVALID_ADDRESS;
45234: 7009 moveq #9,%d0 <== NOT EXECUTED
_TOD_Get_uptime_as_timespec( uptime );
return RTEMS_SUCCESSFUL;
}
45236: 4e5e unlk %fp <== NOT EXECUTED
...
00045eb0 <rtems_clock_set>:
*/
rtems_status_code rtems_clock_set(
rtems_time_of_day *time_buffer
)
{
45eb0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
45eb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45eb6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
struct timespec newtime;
if ( !time_buffer )
45eba: 4a8a tstl %a2 <== NOT EXECUTED
45ebc: 675a beqs 45f18 <rtems_clock_set+0x68> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
45ebe: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45ec0: 4eb9 0004 6000 jsr 46000 <_TOD_Validate> <== NOT EXECUTED
45ec6: 588f addql #4,%sp <== NOT EXECUTED
45ec8: 4a00 tstb %d0 <== NOT EXECUTED
45eca: 6750 beqs 45f1c <rtems_clock_set+0x6c> <== NOT EXECUTED
newtime.tv_sec = _TOD_To_seconds( time_buffer );
45ecc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45ece: 4eb9 0004 5f64 jsr 45f64 <_TOD_To_seconds> <== NOT EXECUTED
newtime.tv_nsec = time_buffer->ticks *
45ed4: 41f9 0005 cfc0 lea 5cfc0 <Configuration+0xc>,%a0 <== NOT EXECUTED
45eda: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
newtime.tv_sec = _TOD_To_seconds( time_buffer );
45ee0: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
newtime.tv_nsec = time_buffer->ticks *
45ee4: 202a 0018 movel %a2@(24),%d0 <== NOT EXECUTED
45ee8: 4c10 0800 mulsl %a0@,%d0 <== NOT EXECUTED
45eec: 4c00 1800 mulsl %d0,%d1 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45ef0: 2039 0006 65a8 movel 665a8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45ef6: 5280 addql #1,%d0 <== NOT EXECUTED
45ef8: 2d41 fffc movel %d1,%fp@(-4) <== NOT EXECUTED
45efc: 23c0 0006 65a8 movel %d0,665a8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
rtems_configuration_get_nanoseconds_per_tick();
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
45f02: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
45f06: 4eb9 0004 7648 jsr 47648 <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
45f0c: 4eb9 0004 8abe jsr 48abe <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45f12: 508f addql #8,%sp <== NOT EXECUTED
45f14: 4280 clrl %d0 <== NOT EXECUTED
45f16: 6006 bras 45f1e <rtems_clock_set+0x6e> <== NOT EXECUTED
)
{
struct timespec newtime;
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
45f18: 7009 moveq #9,%d0 <== NOT EXECUTED
45f1a: 6002 bras 45f1e <rtems_clock_set+0x6e> <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_INVALID_CLOCK;
45f1c: 7014 moveq #20,%d0 <== NOT EXECUTED
}
45f1e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
45f22: 4e5e unlk %fp <== NOT EXECUTED
...
00044fec <rtems_clock_set_nanoseconds_extension>:
* error code - if unsuccessful
*/
rtems_status_code rtems_clock_set_nanoseconds_extension(
rtems_nanoseconds_extension_routine routine
)
{
44fec: 4e56 0000 linkw %fp,#0
44ff0: 202e 0008 movel %fp@(8),%d0
if ( !routine )
44ff4: 670a beqs 45000 <rtems_clock_set_nanoseconds_extension+0x14><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
_Watchdog_Nanoseconds_since_tick_handler = routine;
44ff6: 23c0 0005 c824 movel %d0,5c824 <_Watchdog_Nanoseconds_since_tick_handler>
return RTEMS_SUCCESSFUL;
44ffc: 4280 clrl %d0
44ffe: 6002 bras 45002 <rtems_clock_set_nanoseconds_extension+0x16>
rtems_status_code rtems_clock_set_nanoseconds_extension(
rtems_nanoseconds_extension_routine routine
)
{
if ( !routine )
return RTEMS_INVALID_ADDRESS;
45000: 7009 moveq #9,%d0 <== NOT EXECUTED
_Watchdog_Nanoseconds_since_tick_handler = routine;
return RTEMS_SUCCESSFUL;
}
45002: 4e5e unlk %fp
...
00045008 <rtems_clock_tick>:
*
* NOTE: This routine only works for leap-years through 2099.
*/
rtems_status_code rtems_clock_tick( void )
{
45008: 4e56 0000 linkw %fp,#0
_TOD_Tickle_ticks();
4500c: 4eb9 0004 63cc jsr 463cc <_TOD_Tickle_ticks>
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void )
{
_Watchdog_Tickle( &_Watchdog_Ticks_chain );
45012: 4879 0005 c798 pea 5c798 <_Watchdog_Ticks_chain> <== NOT EXECUTED
45018: 4eb9 0004 85e4 jsr 485e4 <_Watchdog_Tickle> <== NOT EXECUTED
_Watchdog_Tickle_ticks();
_Thread_Tickle_timeslice();
4501e: 4eb9 0004 8110 jsr 48110 <_Thread_Tickle_timeslice> <== NOT EXECUTED
if ( _Thread_Is_context_switch_necessary() &&
45024: 588f addql #4,%sp <== NOT EXECUTED
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void )
{
return ( _Thread_Dispatch_necessary );
45026: 1039 0005 c884 moveb 5c884 <_Per_CPU_Information+0x18>,%d0 <== NOT EXECUTED
4502c: 670e beqs 4503c <rtems_clock_tick+0x34> <== NOT EXECUTED
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void )
{
return ( _Thread_Dispatch_disable_level == 0 );
4502e: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45034: 6606 bnes 4503c <rtems_clock_tick+0x34> <== NOT EXECUTED
_Thread_Is_dispatching_enabled() )
_Thread_Dispatch();
45036: 4eb9 0004 75ec jsr 475ec <_Thread_Dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
4503c: 4280 clrl %d0 <== NOT EXECUTED
4503e: 4e5e unlk %fp <== NOT EXECUTED
...
00049f6c <rtems_debug_enable>:
* rtems_debug_enable
*/
void rtems_debug_enable (
rtems_debug_control to_be_enabled
)
{
49f6c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
_Debug_Level |= to_be_enabled;
49f70: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
}
49f74: 4e5e unlk %fp <== NOT EXECUTED
*/
void rtems_debug_enable (
rtems_debug_control to_be_enabled
)
{
_Debug_Level |= to_be_enabled;
49f76: 81b9 0005 c780 orl %d0,5c780 <_Debug_Level> <== NOT EXECUTED
}
00049fa6 <rtems_debug_is_enabled>:
* rtems_debug_is_enabled
*/
bool rtems_debug_is_enabled(
rtems_debug_control level
)
{
49fa6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (_Debug_Level & level) ? true : false;
49faa: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
}
49fae: 4e5e unlk %fp <== NOT EXECUTED
*/
bool rtems_debug_is_enabled(
rtems_debug_control level
)
{
return (_Debug_Level & level) ? true : false;
49fb0: c0b9 0005 c780 andl 5c780 <_Debug_Level>,%d0 <== NOT EXECUTED
49fb6: 56c0 sne %d0 <== NOT EXECUTED
}
49fb8: 4480 negl %d0 <== NOT EXECUTED
00045044 <rtems_event_receive>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
45044: 4e56 0000 linkw %fp,#0
45048: 202e 0008 movel %fp@(8),%d0
4504c: 206e 0014 moveal %fp@(20),%a0
RTEMS_API_Control *api;
if ( !event_out )
45050: 4a88 tstl %a0
45052: 6748 beqs 4509c <rtems_event_receive+0x58> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
45054: 2279 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a1
4505a: 2269 00fc moveal %a1@(252),%a1
if ( _Event_sets_Is_empty( event_in ) ) {
4505e: 4a80 tstl %d0
45060: 6604 bnes 45066 <rtems_event_receive+0x22> <== ALWAYS TAKEN
*event_out = api->pending_events;
45062: 2091 movel %a1@,%a0@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45064: 6038 bras 4509e <rtems_event_receive+0x5a> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45066: 2239 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d1
4506c: 5281 addql #1,%d1
4506e: 23c1 0005 c6b8 movel %d1,5c6b8 <_Thread_Dispatch_disable_level>
}
_Thread_Disable_dispatch();
_Event_Seize( event_in, option_set, ticks, event_out );
45074: 2f08 movel %a0,%sp@-
45076: 2f2e 0010 movel %fp@(16),%sp@-
4507a: 2f2e 000c movel %fp@(12),%sp@-
4507e: 2f00 movel %d0,%sp@-
45080: 4eb9 0004 50a4 jsr 450a4 <_Event_Seize>
_Thread_Enable_dispatch();
45086: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return( _Thread_Executing->Wait.return_code );
4508c: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
45092: 4fef 0010 lea %sp@(16),%sp
45096: 2028 0034 movel %a0@(52),%d0
4509a: 6002 bras 4509e <rtems_event_receive+0x5a>
)
{
RTEMS_API_Control *api;
if ( !event_out )
return RTEMS_INVALID_ADDRESS;
4509c: 7009 moveq #9,%d0 <== NOT EXECUTED
_Thread_Disable_dispatch();
_Event_Seize( event_in, option_set, ticks, event_out );
_Thread_Enable_dispatch();
return( _Thread_Executing->Wait.return_code );
}
4509e: 4e5e unlk %fp
...
000451a8 <rtems_event_send>:
rtems_status_code rtems_event_send(
rtems_id id,
rtems_event_set event_in
)
{
451a8: 4e56 fffc linkw %fp,#-4
451ac: 2f02 movel %d2,%sp@-
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
the_thread = _Thread_Get( id, &location );
451ae: 486e fffc pea %fp@(-4)
451b2: 2f2e 0008 movel %fp@(8),%sp@-
451b6: 4eb9 0004 7750 jsr 47750 <_Thread_Get>
switch ( location ) {
451bc: 508f addql #8,%sp
451be: 4aae fffc tstl %fp@(-4)
451c2: 662e bnes 451f2 <rtems_event_send+0x4a> <== NEVER TAKEN
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
451c4: 2240 moveal %d0,%a1
rtems_event_set *the_event_set
)
{
ISR_Level level;
_ISR_Disable( level );
451c6: 223c 0000 0700 movel #1792,%d1
451cc: 2069 00fc moveal %a1@(252),%a0
451d0: 40c2 movew %sr,%d2
451d2: 8282 orl %d2,%d1
451d4: 46c1 movew %d1,%sr
*the_event_set |= the_new_events;
451d6: 222e 000c movel %fp@(12),%d1
451da: 8390 orl %d1,%a0@
_ISR_Enable( level );
451dc: 46c2 movew %d2,%sr
_Event_sets_Post( event_in, &api->pending_events );
_Event_Surrender( the_thread );
451de: 2f00 movel %d0,%sp@-
451e0: 4eb9 0004 51fc jsr 451fc <_Event_Surrender>
_Thread_Enable_dispatch();
451e6: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
451ec: 588f addql #4,%sp
451ee: 4280 clrl %d0
451f0: 6002 bras 451f4 <rtems_event_send+0x4c>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
451f2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
451f4: 242e fff8 movel %fp@(-8),%d2
451f8: 4e5e unlk %fp <== NOT EXECUTED
00046dec <rtems_extension_create>:
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
46dec: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
46df0: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
46df4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46df8: 286e 0010 moveal %fp@(16),%a4 <== NOT EXECUTED
Extension_Control *the_extension;
if ( !id )
46dfc: 4a8c tstl %a4 <== NOT EXECUTED
46dfe: 6770 beqs 46e70 <rtems_extension_create+0x84> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
46e00: 4a82 tstl %d2 <== NOT EXECUTED
46e02: 6770 beqs 46e74 <rtems_extension_create+0x88> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
46e04: 2039 0006 65a8 movel 665a8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46e0a: 5280 addql #1,%d0 <== NOT EXECUTED
46e0c: 23c0 0006 65a8 movel %d0,665a8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
#ifndef __EXTENSION_MANAGER_inl
#define __EXTENSION_MANAGER_inl
RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
{
return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
46e12: 4879 0006 6730 pea 66730 <_Extension_Information> <== NOT EXECUTED
46e18: 47f9 0004 8abe lea 48abe <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
46e1e: 4eb9 0004 7b58 jsr 47b58 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
46e24: 588f addql #4,%sp <== NOT EXECUTED
46e26: 2440 moveal %d0,%a2 <== NOT EXECUTED
46e28: 4a80 tstl %d0 <== NOT EXECUTED
46e2a: 6606 bnes 46e32 <rtems_extension_create+0x46> <== NOT EXECUTED
_Thread_Enable_dispatch();
46e2c: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
46e2e: 7005 moveq #5,%d0 <== NOT EXECUTED
46e30: 6044 bras 46e76 <rtems_extension_create+0x8a> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
46e32: 4878 0020 pea 20 <OPER2+0xc> <== NOT EXECUTED
46e36: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
46e3a: 486a 0024 pea %a2@(36) <== NOT EXECUTED
46e3e: 4eb9 0004 d7b4 jsr 4d7b4 <memcpy> <== NOT EXECUTED
_User_extensions_Add_set( extension );
46e44: 486a 0010 pea %a2@(16) <== NOT EXECUTED
46e48: 4eb9 0004 9690 jsr 49690 <_User_extensions_Add_set> <== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
46e4e: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
46e52: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
46e54: 2079 0006 6748 moveal 66748 <_Extension_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
46e5a: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
46e5c: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
46e60: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
&_Extension_Information,
&the_extension->Object,
(Objects_Name) name
);
*id = the_extension->Object.id;
46e64: 2880 movel %d0,%a4@ <== NOT EXECUTED
_Thread_Enable_dispatch();
46e66: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46e68: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
46e6c: 4280 clrl %d0 <== NOT EXECUTED
46e6e: 6006 bras 46e76 <rtems_extension_create+0x8a> <== NOT EXECUTED
)
{
Extension_Control *the_extension;
if ( !id )
return RTEMS_INVALID_ADDRESS;
46e70: 7009 moveq #9,%d0 <== NOT EXECUTED
46e72: 6002 bras 46e76 <rtems_extension_create+0x8a> <== NOT EXECUTED
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
46e74: 7003 moveq #3,%d0 <== NOT EXECUTED
);
*id = the_extension->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
46e76: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
46e7c: 4e5e unlk %fp <== NOT EXECUTED
00046c6c <rtems_extension_delete>:
#include <rtems/extension.h>
rtems_status_code rtems_extension_delete(
rtems_id id
)
{
46c6c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46c70: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Extension_Control *)
_Objects_Get( &_Extension_Information, id, location );
46c72: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46c76: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46c7a: 4879 0006 60c0 pea 660c0 <_Extension_Information> <== NOT EXECUTED
46c80: 4eb9 0004 7d3c jsr 47d3c <_Objects_Get> <== NOT EXECUTED
Extension_Control *the_extension;
Objects_Locations location;
the_extension = _Extension_Get( id, &location );
switch ( location ) {
46c86: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46c8a: 2440 moveal %d0,%a2 <== NOT EXECUTED
46c8c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46c90: 6634 bnes 46cc6 <rtems_extension_delete+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_User_extensions_Remove_set( &the_extension->Extension );
46c92: 486a 0010 pea %a2@(16) <== NOT EXECUTED
46c96: 4eb9 0004 9370 jsr 49370 <_User_extensions_Remove_set> <== NOT EXECUTED
_Objects_Close( &_Extension_Information, &the_extension->Object );
46c9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46c9e: 4879 0006 60c0 pea 660c0 <_Extension_Information> <== NOT EXECUTED
46ca4: 4eb9 0004 7960 jsr 47960 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Extension_Free (
Extension_Control *the_extension
)
{
_Objects_Free( &_Extension_Information, &the_extension->Object );
46caa: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46cac: 4879 0006 60c0 pea 660c0 <_Extension_Information> <== NOT EXECUTED
46cb2: 4eb9 0004 7bd8 jsr 47bd8 <_Objects_Free> <== NOT EXECUTED
_Extension_Free( the_extension );
_Thread_Enable_dispatch();
46cb8: 4eb9 0004 877e jsr 4877e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46cbe: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
46cc2: 4280 clrl %d0 <== NOT EXECUTED
46cc4: 6002 bras 46cc8 <rtems_extension_delete+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
46cc6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
46cc8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
46ccc: 4e5e unlk %fp <== NOT EXECUTED
00047674 <rtems_extension_ident>:
rtems_status_code rtems_extension_ident(
rtems_name name,
rtems_id *id
)
{
47674: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
47678: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4767c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
47682: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47686: 4879 0005 f250 pea 5f250 <_Extension_Information> <== NOT EXECUTED
4768c: 4eb9 0004 880c jsr 4880c <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
47692: 41f9 0005 c8fa lea 5c8fa <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
47698: 4e5e unlk %fp <== NOT EXECUTED
4769a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
0004772c <rtems_get_version_string>:
#endif
#include <rtems/system.h>
const char *rtems_get_version_string(void)
{
4772c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _RTEMS_version;
}
47730: 203c 0005 d7fc movel #382972,%d0 <== NOT EXECUTED
47736: 4e5e unlk %fp <== NOT EXECUTED
...
00045c22 <rtems_initialize_start_multitasking>:
45c22: 7002 moveq #2,%d0
}
void rtems_initialize_start_multitasking(void)
{
45c24: 4e56 0000 linkw %fp,#0
****** APPLICATION RUNS HERE ******
****** RETURNS WHEN SYSTEM IS SHUT DOWN ******
*******************************************************************
*******************************************************************
*******************************************************************/
}
45c28: 4e5e unlk %fp
45c2a: 23c0 0005 c820 movel %d0,5c820 <_System_state_Current>
void rtems_initialize_start_multitasking(void)
{
_System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING );
_Thread_Start_multitasking();
45c30: 4ef9 0004 8020 jmp 48020 <_Thread_Start_multitasking>
...
00045380 <rtems_interrupt_catch>:
rtems_status_code rtems_interrupt_catch(
rtems_isr_entry new_isr_handler,
rtems_vector_number vector,
rtems_isr_entry *old_isr_handler
)
{
45380: 4e56 0000 linkw %fp,#0
45384: 222e 0008 movel %fp@(8),%d1
45388: 202e 000c movel %fp@(12),%d0
4538c: 206e 0010 moveal %fp@(16),%a0
if ( !_ISR_Is_vector_number_valid( vector ) )
45390: 0c80 0000 00ff cmpil #255,%d0
45396: 621c bhis 453b4 <rtems_interrupt_catch+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) )
45398: 4a81 tstl %d1
4539a: 671c beqs 453b8 <rtems_interrupt_catch+0x38> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) )
4539c: 4a88 tstl %a0
4539e: 6718 beqs 453b8 <rtems_interrupt_catch+0x38> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
_ISR_Install_vector(
453a0: 2f08 movel %a0,%sp@-
453a2: 2f01 movel %d1,%sp@-
453a4: 2f00 movel %d0,%sp@-
453a6: 4eb9 0004 8816 jsr 48816 <_CPU_ISR_install_vector>
vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler );
return RTEMS_SUCCESSFUL;
453ac: 4fef 000c lea %sp@(12),%sp
453b0: 4280 clrl %d0
453b2: 6006 bras 453ba <rtems_interrupt_catch+0x3a>
rtems_vector_number vector,
rtems_isr_entry *old_isr_handler
)
{
if ( !_ISR_Is_vector_number_valid( vector ) )
return RTEMS_INVALID_NUMBER;
453b4: 700a moveq #10,%d0 <== NOT EXECUTED
453b6: 6002 bras 453ba <rtems_interrupt_catch+0x3a> <== NOT EXECUTED
if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) )
return RTEMS_INVALID_ADDRESS;
if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) )
return RTEMS_INVALID_ADDRESS;
453b8: 7009 moveq #9,%d0 <== NOT EXECUTED
_ISR_Install_vector(
vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler );
return RTEMS_SUCCESSFUL;
}
453ba: 4e5e unlk %fp
...
00045f18 <rtems_interrupt_disable>:
rtems_interrupt_level rtems_interrupt_disable( void )
{
rtems_interrupt_level previous_level;
_ISR_Disable( previous_level );
45f18: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
*/
#undef rtems_interrupt_disable
rtems_interrupt_level rtems_interrupt_disable( void )
{
45f1e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_interrupt_level previous_level;
_ISR_Disable( previous_level );
45f22: 40c0 movew %sr,%d0 <== NOT EXECUTED
45f24: 8280 orl %d0,%d1 <== NOT EXECUTED
45f26: 46c1 movew %d1,%sr <== NOT EXECUTED
return previous_level;
}
45f28: 4e5e unlk %fp <== NOT EXECUTED
00045f2c <rtems_interrupt_enable>:
#undef rtems_interrupt_enable
void rtems_interrupt_enable(
rtems_interrupt_level previous_level
)
{
45f2c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
_ISR_Enable( previous_level );
45f30: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
45f34: 46c0 movew %d0,%sr <== NOT EXECUTED
}
45f36: 4e5e unlk %fp <== NOT EXECUTED
00045f3a <rtems_interrupt_flash>:
#undef rtems_interrupt_flash
void rtems_interrupt_flash(
rtems_interrupt_level previous_level
)
{
45f3a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
_ISR_Flash( previous_level );
45f3e: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
45f42: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
45f48: 46c1 movew %d1,%sr <== NOT EXECUTED
45f4a: 8081 orl %d1,%d0 <== NOT EXECUTED
45f4c: 46c0 movew %d0,%sr <== NOT EXECUTED
}
45f4e: 4e5e unlk %fp <== NOT EXECUTED
00045f52 <rtems_interrupt_is_in_progress>:
*/
#undef rtems_interrupt_is_in_progress
bool rtems_interrupt_is_in_progress( void )
{
45f52: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _ISR_Is_in_progress();
45f56: 4ab9 0005 da84 tstl 5da84 <_Per_CPU_Information+0x8> <== NOT EXECUTED
45f5c: 56c0 sne %d0 <== NOT EXECUTED
}
45f5e: 4e5e unlk %fp <== NOT EXECUTED
45f60: 4480 negl %d0 <== NOT EXECUTED
000459b4 <rtems_interrupt_level_attribute>:
rtems_attribute rtems_interrupt_level_attribute(
uint32_t level
)
{
return RTEMS_INTERRUPT_LEVEL(level);
}
459b4: 7007 moveq #7,%d0 <== NOT EXECUTED
uint32_t rtems_interrupt_mask = RTEMS_INTERRUPT_MASK;
rtems_attribute rtems_interrupt_level_attribute(
uint32_t level
)
{
459b6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return RTEMS_INTERRUPT_LEVEL(level);
}
459ba: c0ae 0008 andl %fp@(8),%d0 <== NOT EXECUTED
459be: 4e5e unlk %fp <== NOT EXECUTED
...
0004b87c <rtems_io_close>:
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4b87c: 4e56 0000 linkw %fp,#0
4b880: 202e 0008 movel %fp@(8),%d0
4b884: 2f03 movel %d3,%sp@-
4b886: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4b888: b0b9 0005 c8e8 cmpl 5c8e8 <_IO_Number_of_drivers>,%d0
4b88e: 6420 bccs 4b8b0 <rtems_io_close+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
4b890: 2600 movel %d0,%d3
4b892: 2200 movel %d0,%d1
4b894: e78b lsll #3,%d3
4b896: eb89 lsll #5,%d1
4b898: 2279 0005 c8ec moveal 5c8ec <_IO_Driver_address_table>,%a1
4b89e: 9283 subl %d3,%d1
4b8a0: 2271 1808 moveal %a1@(00000008,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b8a4: 4a89 tstl %a1
4b8a6: 670c beqs 4b8b4 <rtems_io_close+0x38> <== NEVER TAKEN
}
4b8a8: 241f movel %sp@+,%d2
4b8aa: 261f movel %sp@+,%d3
4b8ac: 4e5e unlk %fp
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b8ae: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4b8b0: 700a moveq #10,%d0 <== NOT EXECUTED
4b8b2: 6002 bras 4b8b6 <rtems_io_close+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b8b4: 4280 clrl %d0 <== NOT EXECUTED
}
4b8b6: 241f movel %sp@+,%d2 <== NOT EXECUTED
4b8b8: 261f movel %sp@+,%d3 <== NOT EXECUTED
4b8ba: 4e5e unlk %fp <== NOT EXECUTED
...
0004b8c0 <rtems_io_control>:
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4b8c0: 4e56 0000 linkw %fp,#0
4b8c4: 202e 0008 movel %fp@(8),%d0
4b8c8: 2f03 movel %d3,%sp@-
4b8ca: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4b8cc: b0b9 0005 c8e8 cmpl 5c8e8 <_IO_Number_of_drivers>,%d0
4b8d2: 6420 bccs 4b8f4 <rtems_io_control+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
4b8d4: 2600 movel %d0,%d3
4b8d6: 2200 movel %d0,%d1
4b8d8: e78b lsll #3,%d3
4b8da: eb89 lsll #5,%d1
4b8dc: 2279 0005 c8ec moveal 5c8ec <_IO_Driver_address_table>,%a1
4b8e2: 9283 subl %d3,%d1
4b8e4: 2271 1814 moveal %a1@(00000014,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b8e8: 4a89 tstl %a1
4b8ea: 670c beqs 4b8f8 <rtems_io_control+0x38> <== NEVER TAKEN
}
4b8ec: 241f movel %sp@+,%d2
4b8ee: 261f movel %sp@+,%d3
4b8f0: 4e5e unlk %fp
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b8f2: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4b8f4: 700a moveq #10,%d0 <== NOT EXECUTED
4b8f6: 6002 bras 4b8fa <rtems_io_control+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b8f8: 4280 clrl %d0 <== NOT EXECUTED
}
4b8fa: 241f movel %sp@+,%d2 <== NOT EXECUTED
4b8fc: 261f movel %sp@+,%d3 <== NOT EXECUTED
4b8fe: 4e5e unlk %fp <== NOT EXECUTED
...
00049fbc <rtems_io_initialize>:
rtems_status_code rtems_io_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
49fbc: 4e56 0000 linkw %fp,#0
49fc0: 202e 0008 movel %fp@(8),%d0
49fc4: 2f03 movel %d3,%sp@-
49fc6: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
49fc8: b0b9 0005 c8e8 cmpl 5c8e8 <_IO_Number_of_drivers>,%d0
49fce: 6420 bccs 49ff0 <rtems_io_initialize+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
49fd0: 2600 movel %d0,%d3
49fd2: 2400 movel %d0,%d2
49fd4: e78b lsll #3,%d3
49fd6: 2279 0005 c8ec moveal 5c8ec <_IO_Driver_address_table>,%a1
49fdc: 93c3 subal %d3,%a1
49fde: eb8a lsll #5,%d2
49fe0: 2271 2800 moveal %a1@(00000000,%d2:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
49fe4: 4a89 tstl %a1
49fe6: 670c beqs 49ff4 <rtems_io_initialize+0x38>
}
49fe8: 241f movel %sp@+,%d2
49fea: 261f movel %sp@+,%d3
49fec: 4e5e unlk %fp
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
49fee: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
49ff0: 700a moveq #10,%d0 <== NOT EXECUTED
49ff2: 6002 bras 49ff6 <rtems_io_initialize+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
49ff4: 4280 clrl %d0
}
49ff6: 241f movel %sp@+,%d2
49ff8: 261f movel %sp@+,%d3
49ffa: 4e5e unlk %fp
...
0004b904 <rtems_io_open>:
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4b904: 4e56 0000 linkw %fp,#0
4b908: 202e 0008 movel %fp@(8),%d0
4b90c: 2f03 movel %d3,%sp@-
4b90e: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4b910: b0b9 0005 c8e8 cmpl 5c8e8 <_IO_Number_of_drivers>,%d0
4b916: 6420 bccs 4b938 <rtems_io_open+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
4b918: 2600 movel %d0,%d3
4b91a: 2200 movel %d0,%d1
4b91c: e78b lsll #3,%d3
4b91e: eb89 lsll #5,%d1
4b920: 2279 0005 c8ec moveal 5c8ec <_IO_Driver_address_table>,%a1
4b926: 9283 subl %d3,%d1
4b928: 2271 1804 moveal %a1@(00000004,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b92c: 4a89 tstl %a1
4b92e: 670c beqs 4b93c <rtems_io_open+0x38> <== NEVER TAKEN
}
4b930: 241f movel %sp@+,%d2
4b932: 261f movel %sp@+,%d3
4b934: 4e5e unlk %fp
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b936: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4b938: 700a moveq #10,%d0 <== NOT EXECUTED
4b93a: 6002 bras 4b93e <rtems_io_open+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b93c: 4280 clrl %d0 <== NOT EXECUTED
}
4b93e: 241f movel %sp@+,%d2 <== NOT EXECUTED
4b940: 261f movel %sp@+,%d3 <== NOT EXECUTED
4b942: 4e5e unlk %fp <== NOT EXECUTED
...
0004b948 <rtems_io_read>:
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4b948: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4b94c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4b950: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4b952: 2f02 movel %d2,%sp@- <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4b954: b0b9 0005 c8e8 cmpl 5c8e8 <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED
4b95a: 6420 bccs 4b97c <rtems_io_read+0x34> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
4b95c: 2600 movel %d0,%d3 <== NOT EXECUTED
4b95e: 2200 movel %d0,%d1 <== NOT EXECUTED
4b960: e78b lsll #3,%d3 <== NOT EXECUTED
4b962: eb89 lsll #5,%d1 <== NOT EXECUTED
4b964: 2279 0005 c8ec moveal 5c8ec <_IO_Driver_address_table>,%a1 <== NOT EXECUTED
4b96a: 9283 subl %d3,%d1 <== NOT EXECUTED
4b96c: 2271 180c moveal %a1@(0000000c,%d1:l),%a1 <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b970: 4a89 tstl %a1 <== NOT EXECUTED
4b972: 670c beqs 4b980 <rtems_io_read+0x38> <== NOT EXECUTED
}
4b974: 241f movel %sp@+,%d2 <== NOT EXECUTED
4b976: 261f movel %sp@+,%d3 <== NOT EXECUTED
4b978: 4e5e unlk %fp <== NOT EXECUTED
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b97a: 4ed1 jmp %a1@ <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4b97c: 700a moveq #10,%d0 <== NOT EXECUTED
4b97e: 6002 bras 4b982 <rtems_io_read+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b980: 4280 clrl %d0 <== NOT EXECUTED
}
4b982: 241f movel %sp@+,%d2 <== NOT EXECUTED
4b984: 261f movel %sp@+,%d3 <== NOT EXECUTED
4b986: 4e5e unlk %fp <== NOT EXECUTED
...
00046bfc <rtems_io_register_driver>:
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
)
{
46bfc: 4e56 0000 linkw %fp,#0
46c00: 206e 000c moveal %fp@(12),%a0
46c04: 2f0a movel %a2,%sp@-
46c06: 226e 0010 moveal %fp@(16),%a1
46c0a: 2f02 movel %d2,%sp@-
46c0c: 242e 0008 movel %fp@(8),%d2
rtems_device_major_number major_limit = _IO_Number_of_drivers;
46c10: 2039 0005 ff90 movel 5ff90 <_IO_Number_of_drivers>,%d0
if ( rtems_interrupt_is_in_progress() )
46c16: 4ab9 0005 ff1c tstl 5ff1c <_Per_CPU_Information+0x8>
46c1c: 6600 00d8 bnew 46cf6 <rtems_io_register_driver+0xfa>
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
46c20: 4a89 tstl %a1
46c22: 6700 00d6 beqw 46cfa <rtems_io_register_driver+0xfe>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
46c26: 2280 movel %d0,%a1@
if ( driver_table == NULL )
46c28: 4a88 tstl %a0
46c2a: 6700 00ce beqw 46cfa <rtems_io_register_driver+0xfe>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
46c2e: 4a90 tstl %a0@
46c30: 6600 00da bnew 46d0c <rtems_io_register_driver+0x110>
46c34: 4aa8 0004 tstl %a0@(4)
46c38: 6600 00d2 bnew 46d0c <rtems_io_register_driver+0x110>
46c3c: 6000 00bc braw 46cfa <rtems_io_register_driver+0xfe> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
46c40: 2039 0005 fd60 movel 5fd60 <_Thread_Dispatch_disable_level>,%d0
46c46: 5280 addql #1,%d0
46c48: 23c0 0005 fd60 movel %d0,5fd60 <_Thread_Dispatch_disable_level>
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
46c4e: 4a82 tstl %d2
46c50: 662c bnes 46c7e <rtems_io_register_driver+0x82> <== NEVER TAKEN
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
46c52: 2039 0005 ff90 movel 5ff90 <_IO_Number_of_drivers>,%d0
46c58: 2479 0005 ff94 moveal 5ff94 <_IO_Driver_address_table>,%a2
46c5e: 6010 bras 46c70 <rtems_io_register_driver+0x74>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
46c60: 4a92 tstl %a2@
46c62: 6600 00b0 bnew 46d14 <rtems_io_register_driver+0x118>
46c66: 4aaa 0004 tstl %a2@(4)
46c6a: 6600 00a8 bnew 46d14 <rtems_io_register_driver+0x118>
46c6e: 6004 bras 46c74 <rtems_io_register_driver+0x78>
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 ) {
46c70: b082 cmpl %d2,%d0
46c72: 62ec bhis 46c60 <rtems_io_register_driver+0x64> <== ALWAYS TAKEN
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
46c74: 2282 movel %d2,%a1@
if ( m != n )
46c76: b082 cmpl %d2,%d0
46c78: 6638 bnes 46cb2 <rtems_io_register_driver+0xb6> <== ALWAYS TAKEN
46c7a: 6000 00a2 braw 46d1e <rtems_io_register_driver+0x122> <== NOT EXECUTED
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
46c7e: 2202 movel %d2,%d1 <== NOT EXECUTED
46c80: 2002 movel %d2,%d0 <== NOT EXECUTED
46c82: e789 lsll #3,%d1 <== NOT EXECUTED
46c84: eb88 lsll #5,%d0 <== NOT EXECUTED
46c86: 2479 0005 ff94 moveal 5ff94 <_IO_Driver_address_table>,%a2 <== NOT EXECUTED
46c8c: 9081 subl %d1,%d0 <== NOT EXECUTED
46c8e: d5c0 addal %d0,%a2 <== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
46c90: 4a92 tstl %a2@ <== NOT EXECUTED
46c92: 660c bnes 46ca0 <rtems_io_register_driver+0xa4> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
}
rtems_status_code rtems_io_register_driver(
46c94: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED
46c98: 57c0 seq %d0 <== NOT EXECUTED
46c9a: 49c0 extbl %d0 <== NOT EXECUTED
46c9c: 4480 negl %d0 <== NOT EXECUTED
46c9e: 6002 bras 46ca2 <rtems_io_register_driver+0xa6> <== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
46ca0: 4280 clrl %d0 <== NOT EXECUTED
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
46ca2: 4a00 tstb %d0 <== NOT EXECUTED
46ca4: 660a bnes 46cb0 <rtems_io_register_driver+0xb4> <== NOT EXECUTED
_Thread_Enable_dispatch();
46ca6: 4eb9 0004 8746 jsr 48746 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
46cac: 700c moveq #12,%d0 <== NOT EXECUTED
46cae: 6050 bras 46d00 <rtems_io_register_driver+0x104> <== NOT EXECUTED
}
*registered_major = major;
46cb0: 2282 movel %d2,%a1@ <== NOT EXECUTED
}
_IO_Driver_address_table [major] = *driver_table;
46cb2: 2202 movel %d2,%d1
46cb4: 2002 movel %d2,%d0
46cb6: 4878 0018 pea 18 <OPER2+0x4>
46cba: e789 lsll #3,%d1
46cbc: eb88 lsll #5,%d0
46cbe: 2f08 movel %a0,%sp@-
46cc0: 9081 subl %d1,%d0
46cc2: d0b9 0005 ff94 addl 5ff94 <_IO_Driver_address_table>,%d0
46cc8: 2f00 movel %d0,%sp@-
46cca: 4eb9 0004 fbbc jsr 4fbbc <memcpy>
_Thread_Enable_dispatch();
46cd0: 4eb9 0004 8746 jsr 48746 <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
}
46cd6: 246e fffc moveal %fp@(-4),%a2
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
46cda: 4fef 000c lea %sp@(12),%sp
46cde: 2d42 0008 movel %d2,%fp@(8)
}
46ce2: 242e fff8 movel %fp@(-8),%d2
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
46ce6: 42ae 0010 clrl %fp@(16)
46cea: 42ae 000c clrl %fp@(12)
}
46cee: 4e5e unlk %fp
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
46cf0: 4ef9 0004 d728 jmp 4d728 <rtems_io_initialize>
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
46cf6: 7012 moveq #18,%d0 <== NOT EXECUTED
46cf8: 6006 bras 46d00 <rtems_io_register_driver+0x104> <== NOT EXECUTED
if ( driver_table == NULL )
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
46cfa: 7009 moveq #9,%d0 <== NOT EXECUTED
46cfc: 6002 bras 46d00 <rtems_io_register_driver+0x104> <== NOT EXECUTED
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
46cfe: 700a moveq #10,%d0 <== NOT EXECUTED
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
46d00: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46d04: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46d08: 4e5e unlk %fp <== NOT EXECUTED
46d0a: 4e75 rts <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
46d0c: b082 cmpl %d2,%d0
46d0e: 6200 ff30 bhiw 46c40 <rtems_io_register_driver+0x44>
46d12: 60ea bras 46cfe <rtems_io_register_driver+0x102> <== NOT EXECUTED
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 ) {
46d14: 5282 addql #1,%d2
46d16: 45ea 0018 lea %a2@(24),%a2
46d1a: 6000 ff54 braw 46c70 <rtems_io_register_driver+0x74>
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
46d1e: 4eb9 0004 8746 jsr 48746 <_Thread_Enable_dispatch> <== NOT EXECUTED
*major = m;
if ( m != n )
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
46d24: 7005 moveq #5,%d0 <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
return sc;
46d26: 60d8 bras 46d00 <rtems_io_register_driver+0x104> <== NOT EXECUTED
00046d28 <rtems_io_unregister_driver>:
*/
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
46d28: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46d2c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
46d30: 4ab9 0005 ff1c tstl 5ff1c <_Per_CPU_Information+0x8> <== NOT EXECUTED
46d36: 6640 bnes 46d78 <rtems_io_unregister_driver+0x50><== NOT EXECUTED
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
46d38: b0b9 0005 ff90 cmpl 5ff90 <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED
46d3e: 643c bccs 46d7c <rtems_io_unregister_driver+0x54><== NOT EXECUTED
46d40: 2239 0005 fd60 movel 5fd60 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED
46d46: 5281 addql #1,%d1 <== NOT EXECUTED
46d48: 23c1 0005 fd60 movel %d1,5fd60 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
memset(
&_IO_Driver_address_table[major],
46d4e: 2200 movel %d0,%d1 <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
46d50: 4878 0018 pea 18 <OPER2+0x4> <== NOT EXECUTED
&_IO_Driver_address_table[major],
46d54: e789 lsll #3,%d1 <== NOT EXECUTED
46d56: eb88 lsll #5,%d0 <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
46d58: 42a7 clrl %sp@- <== NOT EXECUTED
&_IO_Driver_address_table[major],
46d5a: 9081 subl %d1,%d0 <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
46d5c: d0b9 0005 ff94 addl 5ff94 <_IO_Driver_address_table>,%d0 <== NOT EXECUTED
46d62: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46d64: 4eb9 0004 fc2c jsr 4fc2c <memset> <== NOT EXECUTED
&_IO_Driver_address_table[major],
0,
sizeof( rtems_driver_address_table )
);
_Thread_Enable_dispatch();
46d6a: 4eb9 0004 8746 jsr 48746 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46d70: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46d74: 4280 clrl %d0 <== NOT EXECUTED
46d76: 6006 bras 46d7e <rtems_io_unregister_driver+0x56><== NOT EXECUTED
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
46d78: 7012 moveq #18,%d0 <== NOT EXECUTED
46d7a: 6002 bras 46d7e <rtems_io_unregister_driver+0x56><== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
46d7c: 700d moveq #13,%d0 <== NOT EXECUTED
}
46d7e: 4e5e unlk %fp <== NOT EXECUTED
...
0004b98c <rtems_io_write>:
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4b98c: 4e56 0000 linkw %fp,#0
4b990: 202e 0008 movel %fp@(8),%d0
4b994: 2f03 movel %d3,%sp@-
4b996: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4b998: b0b9 0005 c8e8 cmpl 5c8e8 <_IO_Number_of_drivers>,%d0
4b99e: 6420 bccs 4b9c0 <rtems_io_write+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
4b9a0: 2600 movel %d0,%d3
4b9a2: 2200 movel %d0,%d1
4b9a4: e78b lsll #3,%d3
4b9a6: eb89 lsll #5,%d1
4b9a8: 2279 0005 c8ec moveal 5c8ec <_IO_Driver_address_table>,%a1
4b9ae: 9283 subl %d3,%d1
4b9b0: 2271 1810 moveal %a1@(00000010,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b9b4: 4a89 tstl %a1
4b9b6: 670c beqs 4b9c4 <rtems_io_write+0x38> <== NEVER TAKEN
}
4b9b8: 241f movel %sp@+,%d2
4b9ba: 261f movel %sp@+,%d3
4b9bc: 4e5e unlk %fp
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b9be: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4b9c0: 700a moveq #10,%d0 <== NOT EXECUTED
4b9c2: 6002 bras 4b9c6 <rtems_io_write+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4b9c4: 4280 clrl %d0 <== NOT EXECUTED
}
4b9c6: 241f movel %sp@+,%d2 <== NOT EXECUTED
4b9c8: 261f movel %sp@+,%d3 <== NOT EXECUTED
4b9ca: 4e5e unlk %fp <== NOT EXECUTED
...
00047b00 <rtems_iterate_over_all_threads>:
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
{
47b00: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
47b04: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
47b08: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
47b0c: 4a8c tstl %a4 <== NOT EXECUTED
47b0e: 673c beqs 47b4c <rtems_iterate_over_all_threads+0x4c><== NOT EXECUTED
47b10: 45f9 0006 6568 lea 66568 <_Objects_Information_table+0x4>,%a2<== NOT EXECUTED
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
#if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
47b16: 205a moveal %a2@+,%a0 <== NOT EXECUTED
47b18: 4a88 tstl %a0 <== NOT EXECUTED
47b1a: 6728 beqs 47b44 <rtems_iterate_over_all_threads+0x44><== NOT EXECUTED
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
47b1c: 2668 0004 moveal %a0@(4),%a3 <== NOT EXECUTED
if ( !information )
47b20: 4a8b tstl %a3 <== NOT EXECUTED
47b22: 6720 beqs 47b44 <rtems_iterate_over_all_threads+0x44><== NOT EXECUTED
47b24: 7401 moveq #1,%d2 <== NOT EXECUTED
47b26: 6012 bras 47b3a <rtems_iterate_over_all_threads+0x3a><== NOT EXECUTED
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
47b28: 206b 0018 moveal %a3@(24),%a0 <== NOT EXECUTED
47b2c: 2030 2c00 movel %a0@(00000000,%d2:l:4),%d0 <== NOT EXECUTED
if ( !the_thread )
47b30: 6706 beqs 47b38 <rtems_iterate_over_all_threads+0x38><== NOT EXECUTED
continue;
(*routine)(the_thread);
47b32: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47b34: 4e94 jsr %a4@ <== NOT EXECUTED
47b36: 588f addql #4,%sp <== NOT EXECUTED
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
47b38: 5282 addql #1,%d2 <== NOT EXECUTED
47b3a: 4280 clrl %d0 <== NOT EXECUTED
47b3c: 302b 000e movew %a3@(14),%d0 <== NOT EXECUTED
47b40: b082 cmpl %d2,%d0 <== NOT EXECUTED
47b42: 64e4 bccs 47b28 <rtems_iterate_over_all_threads+0x28><== NOT EXECUTED
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
47b44: b5fc 0006 6574 cmpal #419188,%a2 <== NOT EXECUTED
47b4a: 66ca bnes 47b16 <rtems_iterate_over_all_threads+0x16><== NOT EXECUTED
(*routine)(the_thread);
}
}
}
47b4c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
47b52: 4e5e unlk %fp <== NOT EXECUTED
...
0004f8a0 <rtems_message_queue_broadcast>:
rtems_id id,
const void *buffer,
size_t size,
uint32_t *count
)
{
4f8a0: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4f8a4: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4f8a8: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4f8ac: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4f8b0: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status core_status;
if ( !buffer )
4f8b4: 4a82 tstl %d2 <== NOT EXECUTED
4f8b6: 674e beqs 4f906 <rtems_message_queue_broadcast+0x66><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !count )
4f8b8: 4a84 tstl %d4 <== NOT EXECUTED
4f8ba: 674a beqs 4f906 <rtems_message_queue_broadcast+0x66><== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
4f8bc: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4f8c0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4f8c2: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4f8c8: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4f8ce: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4f8d2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4f8d6: 6632 bnes 4f90a <rtems_message_queue_broadcast+0x6a><== NOT EXECUTED
case OBJECTS_LOCAL:
core_status = _CORE_message_queue_Broadcast(
4f8d8: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4f8da: 2040 moveal %d0,%a0 <== NOT EXECUTED
4f8dc: 42a7 clrl %sp@- <== NOT EXECUTED
4f8de: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4f8e0: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4f8e4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4f8e6: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4f8ea: 4eb9 0005 2ac8 jsr 52ac8 <_CORE_message_queue_Broadcast> <== NOT EXECUTED
4f8f0: 2400 movel %d0,%d2 <== NOT EXECUTED
NULL,
#endif
count
);
_Thread_Enable_dispatch();
4f8f2: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return
4f8f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4f8fa: 4eb9 0004 fc24 jsr 4fc24 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
4f900: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4f904: 6006 bras 4f90c <rtems_message_queue_broadcast+0x6c><== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !count )
return RTEMS_INVALID_ADDRESS;
4f906: 7009 moveq #9,%d0 <== NOT EXECUTED
4f908: 6002 bras 4f90c <rtems_message_queue_broadcast+0x6c><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4f90a: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4f90c: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4f912: 4e5e unlk %fp <== NOT EXECUTED
...
0004cc58 <rtems_message_queue_create>:
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
4cc58: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
4cc5c: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
4cc60: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4cc64: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
4cc68: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
4cc6c: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED
4cc70: 286e 0018 moveal %fp@(24),%a4 <== NOT EXECUTED
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
4cc74: 4a82 tstl %d2 <== NOT EXECUTED
4cc76: 6700 009a beqw 4cd12 <rtems_message_queue_create+0xba><== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
4cc7a: 4a8c tstl %a4 <== NOT EXECUTED
4cc7c: 6700 0098 beqw 4cd16 <rtems_message_queue_create+0xbe><== NOT EXECUTED
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
4cc80: 4a8b tstl %a3 <== NOT EXECUTED
4cc82: 6700 0096 beqw 4cd1a <rtems_message_queue_create+0xc2><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
4cc86: 4a83 tstl %d3 <== NOT EXECUTED
4cc88: 6700 0094 beqw 4cd1e <rtems_message_queue_create+0xc6><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4cc8c: 2039 0006 51e0 movel 651e0 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4cc92: 5280 addql #1,%d0 <== NOT EXECUTED
4cc94: 23c0 0006 51e0 movel %d0,651e0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
#endif
#endif
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
4cc9a: 4eb9 0005 1cf4 jsr 51cf4 <_Message_queue_Allocate> <== NOT EXECUTED
4cca0: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( !the_message_queue ) {
4cca2: 4a80 tstl %d0 <== NOT EXECUTED
4cca4: 660a bnes 4ccb0 <rtems_message_queue_create+0x58><== NOT EXECUTED
_Thread_Enable_dispatch();
4cca6: 4eb9 0004 f7d6 jsr 4f7d6 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
4ccac: 7005 moveq #5,%d0 <== NOT EXECUTED
4ccae: 6070 bras 4cd20 <rtems_message_queue_create+0xc8><== NOT EXECUTED
#endif
the_message_queue->attribute_set = attribute_set;
if (_Attributes_Is_priority( attribute_set ) )
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
4ccb0: 204e moveal %fp,%a0 <== NOT EXECUTED
4ccb2: 44c4 movew %d4,%ccr <== NOT EXECUTED
4ccb4: 56c0 sne %d0 <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_message_queue->attribute_set = attribute_set;
4ccb6: 2544 0010 movel %d4,%a2@(16) <== NOT EXECUTED
if (_Attributes_Is_priority( attribute_set ) )
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
4ccba: 49c0 extbl %d0 <== NOT EXECUTED
4ccbc: 5280 addql #1,%d0 <== NOT EXECUTED
4ccbe: 2100 movel %d0,%a0@- <== NOT EXECUTED
else
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
if ( ! _CORE_message_queue_Initialize(
4ccc0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4ccc2: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4ccc4: 47f9 0004 f7d6 lea 4f7d6 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
4ccca: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4cccc: 486a 0014 pea %a2@(20) <== NOT EXECUTED
4ccd0: 4eb9 0004 dddc jsr 4dddc <_CORE_message_queue_Initialize> <== NOT EXECUTED
4ccd6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4ccda: 4a00 tstb %d0 <== NOT EXECUTED
4ccdc: 6616 bnes 4ccf4 <rtems_message_queue_create+0x9c><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
4ccde: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4cce0: 4879 0006 53d8 pea 653d8 <_Message_queue_Information> <== NOT EXECUTED
4cce6: 4eb9 0004 eb34 jsr 4eb34 <_Objects_Free> <== NOT EXECUTED
_Objects_MP_Close(
&_Message_queue_Information, the_message_queue->Object.id);
#endif
_Message_queue_Free( the_message_queue );
_Thread_Enable_dispatch();
4ccec: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_UNSATISFIED;
4ccee: 508f addql #8,%sp <== NOT EXECUTED
4ccf0: 700d moveq #13,%d0 <== NOT EXECUTED
4ccf2: 602c bras 4cd20 <rtems_message_queue_create+0xc8><== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
4ccf4: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4ccf8: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4ccfa: 2079 0006 53f0 moveal 653f0 <_Message_queue_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4cd00: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4cd02: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
4cd06: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
&_Message_queue_Information,
&the_message_queue->Object,
(Objects_Name) name
);
*id = the_message_queue->Object.id;
4cd0a: 2880 movel %d0,%a4@ <== NOT EXECUTED
name,
0
);
#endif
_Thread_Enable_dispatch();
4cd0c: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4cd0e: 4280 clrl %d0 <== NOT EXECUTED
4cd10: 600e bras 4cd20 <rtems_message_queue_create+0xc8><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
4cd12: 7003 moveq #3,%d0 <== NOT EXECUTED
4cd14: 600a bras 4cd20 <rtems_message_queue_create+0xc8><== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
4cd16: 7009 moveq #9,%d0 <== NOT EXECUTED
4cd18: 6006 bras 4cd20 <rtems_message_queue_create+0xc8><== NOT EXECUTED
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
return RTEMS_INVALID_NUMBER;
4cd1a: 700a moveq #10,%d0 <== NOT EXECUTED
4cd1c: 6002 bras 4cd20 <rtems_message_queue_create+0xc8><== NOT EXECUTED
if ( max_message_size == 0 )
return RTEMS_INVALID_SIZE;
4cd1e: 7008 moveq #8,%d0 <== NOT EXECUTED
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4cd20: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED
4cd26: 4e5e unlk %fp <== NOT EXECUTED
...
0004f9ec <rtems_message_queue_delete>:
*/
rtems_status_code rtems_message_queue_delete(
rtems_id id
)
{
4f9ec: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4f9f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
4f9f2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4f9f6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4f9fa: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4fa00: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4fa06: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fa0a: 2440 moveal %d0,%a2 <== NOT EXECUTED
4fa0c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fa10: 663a bnes 4fa4c <rtems_message_queue_delete+0x60><== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Message_queue_Information,
4fa12: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4fa14: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4fa1a: 4eb9 0005 3ec4 jsr 53ec4 <_Objects_Close> <== NOT EXECUTED
&the_message_queue->Object );
_CORE_message_queue_Close(
4fa20: 4878 0005 pea 5 <COMPARE> <== NOT EXECUTED
4fa24: 42a7 clrl %sp@- <== NOT EXECUTED
4fa26: 486a 0014 pea %a2@(20) <== NOT EXECUTED
4fa2a: 4eb9 0005 2b38 jsr 52b38 <_CORE_message_queue_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
4fa30: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fa32: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4fa38: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
0, /* Not used */
0
);
}
#endif
_Thread_Enable_dispatch();
4fa3e: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fa44: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4fa48: 4280 clrl %d0 <== NOT EXECUTED
4fa4a: 6002 bras 4fa4e <rtems_message_queue_delete+0x62><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4fa4c: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4fa4e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4fa52: 4e5e unlk %fp <== NOT EXECUTED
...
0004fa58 <rtems_message_queue_flush>:
rtems_status_code rtems_message_queue_flush(
rtems_id id,
uint32_t *count
)
{
4fa58: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4fa5c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fa5e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
4fa62: 4a8a tstl %a2 <== NOT EXECUTED
4fa64: 6738 beqs 4fa9e <rtems_message_queue_flush+0x46> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
4fa66: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fa6a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4fa6e: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4fa74: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4fa7a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fa7e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fa82: 661e bnes 4faa2 <rtems_message_queue_flush+0x4a> <== NOT EXECUTED
case OBJECTS_LOCAL:
*count = _CORE_message_queue_Flush( &the_message_queue->message_queue );
4fa84: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fa86: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4fa8a: 4eb9 0005 2b78 jsr 52b78 <_CORE_message_queue_Flush> <== NOT EXECUTED
4fa90: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4fa92: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fa98: 588f addql #4,%sp <== NOT EXECUTED
4fa9a: 4280 clrl %d0 <== NOT EXECUTED
4fa9c: 6006 bras 4faa4 <rtems_message_queue_flush+0x4c> <== NOT EXECUTED
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
return RTEMS_INVALID_ADDRESS;
4fa9e: 7009 moveq #9,%d0 <== NOT EXECUTED
4faa0: 6002 bras 4faa4 <rtems_message_queue_flush+0x4c> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4faa2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4faa4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4faa8: 4e5e unlk %fp <== NOT EXECUTED
0004faac <rtems_message_queue_get_number_pending>:
rtems_status_code rtems_message_queue_get_number_pending(
rtems_id id,
uint32_t *count
)
{
4faac: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4fab0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fab2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
4fab6: 4a8a tstl %a2 <== NOT EXECUTED
4fab8: 672e beqs 4fae8 <rtems_message_queue_get_number_pending+0x3c><== NOT EXECUTED
4faba: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fabe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4fac2: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4fac8: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4face: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fad2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fad6: 6614 bnes 4faec <rtems_message_queue_get_number_pending+0x40><== NOT EXECUTED
case OBJECTS_LOCAL:
*count = the_message_queue->message_queue.number_of_pending_messages;
4fad8: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fada: 24a8 005c movel %a0@(92),%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4fade: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fae4: 4280 clrl %d0 <== NOT EXECUTED
4fae6: 6006 bras 4faee <rtems_message_queue_get_number_pending+0x42><== NOT EXECUTED
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
return RTEMS_INVALID_ADDRESS;
4fae8: 7009 moveq #9,%d0 <== NOT EXECUTED
4faea: 6002 bras 4faee <rtems_message_queue_get_number_pending+0x42><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4faec: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4faee: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4faf2: 4e5e unlk %fp <== NOT EXECUTED
...
0004cd2c <rtems_message_queue_ident>:
rtems_status_code rtems_message_queue_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
4cd2c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
4cd30: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4cd34: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4cd38: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4cd3c: 4879 0006 53d8 pea 653d8 <_Message_queue_Information> <== NOT EXECUTED
4cd42: 4eb9 0004 ee00 jsr 4ee00 <_Objects_Name_to_id_u32> <== NOT EXECUTED
node,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
4cd48: 41f9 0006 2afa lea 62afa <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
4cd4e: 4e5e unlk %fp <== NOT EXECUTED
4cd50: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004cd58 <rtems_message_queue_receive>:
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
4cd58: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4cd5c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4cd60: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4cd64: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
4cd68: 4a82 tstl %d2 <== NOT EXECUTED
4cd6a: 6762 beqs 4cdce <rtems_message_queue_receive+0x76><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !size )
4cd6c: 4a83 tstl %d3 <== NOT EXECUTED
4cd6e: 675e beqs 4cdce <rtems_message_queue_receive+0x76><== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
4cd70: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4cd74: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4cd78: 4879 0006 53d8 pea 653d8 <_Message_queue_Information> <== NOT EXECUTED
4cd7e: 4eb9 0004 ec98 jsr 4ec98 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4cd84: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4cd88: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4cd8c: 6644 bnes 4cdd2 <rtems_message_queue_receive+0x7a><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT) ? true : false;
4cd8e: 7201 moveq #1,%d1 <== NOT EXECUTED
if ( _Options_Is_no_wait( option_set ) )
wait = false;
else
wait = true;
_CORE_message_queue_Seize(
4cd90: 7801 moveq #1,%d4 <== NOT EXECUTED
4cd92: 2040 moveal %d0,%a0 <== NOT EXECUTED
4cd94: c2ae 0014 andl %fp@(20),%d1 <== NOT EXECUTED
4cd98: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED
4cd9c: b384 eorl %d1,%d4 <== NOT EXECUTED
4cd9e: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4cda0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4cda2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cda4: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
4cda8: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4cdac: 4eb9 0004 de90 jsr 4de90 <_CORE_message_queue_Seize> <== NOT EXECUTED
buffer,
size,
wait,
timeout
);
_Thread_Enable_dispatch();
4cdb2: 4eb9 0004 f7d6 jsr 4f7d6 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _Message_queue_Translate_core_message_queue_return_code(
_Thread_Executing->Wait.return_code
4cdb8: 2079 0006 53a0 moveal 653a0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
size,
wait,
timeout
);
_Thread_Enable_dispatch();
return _Message_queue_Translate_core_message_queue_return_code(
4cdbe: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
4cdc2: 4eb9 0004 ce58 jsr 4ce58 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
4cdc8: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4cdcc: 6006 bras 4cdd4 <rtems_message_queue_receive+0x7c><== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
4cdce: 7009 moveq #9,%d0 <== NOT EXECUTED
4cdd0: 6002 bras 4cdd4 <rtems_message_queue_receive+0x7c><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4cdd2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4cdd4: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4cdda: 4e5e unlk %fp <== NOT EXECUTED
...
0004cde0 <rtems_message_queue_send>:
rtems_status_code rtems_message_queue_send(
rtems_id id,
const void *buffer,
size_t size
)
{
4cde0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4cde4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4cde6: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4cdea: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cdec: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
4cdf0: 6754 beqs 4ce46 <rtems_message_queue_send+0x66> <== NOT EXECUTED
4cdf2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4cdf6: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4cdf8: 4879 0006 53d8 pea 653d8 <_Message_queue_Information> <== NOT EXECUTED
4cdfe: 4eb9 0004 ec98 jsr 4ec98 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4ce04: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4ce08: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4ce0c: 663c bnes 4ce4a <rtems_message_queue_send+0x6a> <== NOT EXECUTED
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
bool wait,
Watchdog_Interval timeout
)
{
return _CORE_message_queue_Submit(
4ce0e: 42a7 clrl %sp@- <== NOT EXECUTED
4ce10: 2040 moveal %d0,%a0 <== NOT EXECUTED
4ce12: 42a7 clrl %sp@- <== NOT EXECUTED
4ce14: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
4ce1a: 42a7 clrl %sp@- <== NOT EXECUTED
4ce1c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4ce1e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4ce22: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4ce24: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4ce28: 4eb9 0004 df78 jsr 4df78 <_CORE_message_queue_Submit> <== NOT EXECUTED
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
4ce2e: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
4ce32: 2400 movel %d0,%d2 <== NOT EXECUTED
4ce34: 4eb9 0004 f7d6 jsr 4f7d6 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* Since this API does not allow for blocking sends, we can directly
* return the returned status.
*/
return _Message_queue_Translate_core_message_queue_return_code(status);
4ce3a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4ce3c: 4eb9 0004 ce58 jsr 4ce58 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
4ce42: 588f addql #4,%sp <== NOT EXECUTED
4ce44: 6006 bras 4ce4c <rtems_message_queue_send+0x6c> <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
4ce46: 7009 moveq #9,%d0 <== NOT EXECUTED
4ce48: 6002 bras 4ce4c <rtems_message_queue_send+0x6c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4ce4a: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4ce4c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4ce50: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
4ce54: 4e5e unlk %fp <== NOT EXECUTED
0004fc3c <rtems_message_queue_urgent>:
rtems_status_code rtems_message_queue_urgent(
rtems_id id,
const void *buffer,
size_t size
)
{
4fc3c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4fc40: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4fc42: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4fc46: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4fc48: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
4fc4c: 6754 beqs 4fca2 <rtems_message_queue_urgent+0x66><== NOT EXECUTED
4fc4e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fc52: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4fc54: 4879 0007 51f4 pea 751f4 <_Message_queue_Information> <== NOT EXECUTED
4fc5a: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4fc60: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fc64: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fc68: 663c bnes 4fca6 <rtems_message_queue_urgent+0x6a><== NOT EXECUTED
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
bool wait,
Watchdog_Interval timeout
)
{
return _CORE_message_queue_Submit(
4fc6a: 42a7 clrl %sp@- <== NOT EXECUTED
4fc6c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fc6e: 42a7 clrl %sp@- <== NOT EXECUTED
4fc70: 2f3c 8000 0000 movel #-2147483648,%sp@- <== NOT EXECUTED
4fc76: 42a7 clrl %sp@- <== NOT EXECUTED
4fc78: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4fc7a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4fc7e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4fc80: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4fc84: 4eb9 0005 2d8c jsr 52d8c <_CORE_message_queue_Submit> <== NOT EXECUTED
id,
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
4fc8a: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
4fc8e: 2400 movel %d0,%d2 <== NOT EXECUTED
4fc90: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* Since this API does not allow for blocking sends, we can directly
* return the returned status.
*/
return _Message_queue_Translate_core_message_queue_return_code(status);
4fc96: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4fc98: 4eb9 0004 fc24 jsr 4fc24 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
4fc9e: 588f addql #4,%sp <== NOT EXECUTED
4fca0: 6006 bras 4fca8 <rtems_message_queue_urgent+0x6c><== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
4fca2: 7009 moveq #9,%d0 <== NOT EXECUTED
4fca4: 6002 bras 4fca8 <rtems_message_queue_urgent+0x6c><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4fca6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4fca8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4fcac: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
4fcb0: 4e5e unlk %fp <== NOT EXECUTED
00046bc8 <rtems_object_api_maximum_class>:
#include <rtems/rtems/types.h>
int rtems_object_api_maximum_class(
int api
)
{
46bc8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_API_maximum_class(api);
}
46bcc: 4e5e unlk %fp <== NOT EXECUTED
int rtems_object_api_maximum_class(
int api
)
{
return _Objects_API_maximum_class(api);
46bce: 4ef9 0004 8320 jmp 48320 <_Objects_API_maximum_class> <== NOT EXECUTED
00046bd4 <rtems_object_api_minimum_class>:
uint32_t api
)
{
if ( _Objects_Is_api_valid( api ) )
return 1;
return -1;
46bd4: 7203 moveq #3,%d1 <== NOT EXECUTED
#include <rtems/rtems/types.h>
uint32_t rtems_object_api_minimum_class(
uint32_t api
)
{
46bd6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
46bda: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
46bde: 5380 subql #1,%d0 <== NOT EXECUTED
if ( _Objects_Is_api_valid( api ) )
return 1;
return -1;
46be0: b280 cmpl %d0,%d1 <== NOT EXECUTED
46be2: 53c0 sls %d0 <== NOT EXECUTED
46be4: 49c0 extbl %d0 <== NOT EXECUTED
}
46be6: 123c 0001 moveb #1,%d1 <== NOT EXECUTED
46bea: 4e5e unlk %fp <== NOT EXECUTED
46bec: 8081 orl %d1,%d0 <== NOT EXECUTED
00046bf0 <rtems_object_get_api_class_name>:
)
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
46bf0: 7001 moveq #1,%d0 <== NOT EXECUTED
const char *rtems_object_get_api_class_name(
int the_api,
int the_class
)
{
46bf2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46bf6: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
46bfa: 2f02 movel %d2,%sp@- <== NOT EXECUTED
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
46bfc: b081 cmpl %d1,%d0 <== NOT EXECUTED
46bfe: 6714 beqs 46c14 <rtems_object_get_api_class_name+0x24><== NOT EXECUTED
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
46c00: 7402 moveq #2,%d2 <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
else if ( the_api == OBJECTS_POSIX_API )
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
46c02: 203c 0005 ca8e movel #379534,%d0 <== NOT EXECUTED
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
46c08: b481 cmpl %d1,%d2 <== NOT EXECUTED
46c0a: 662a bnes 46c36 <rtems_object_get_api_class_name+0x46><== NOT EXECUTED
api_assoc = rtems_object_api_classic_assoc;
46c0c: 203c 0005 da8c movel #383628,%d0 <== NOT EXECUTED
46c12: 6006 bras 46c1a <rtems_object_get_api_class_name+0x2a><== NOT EXECUTED
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
46c14: 203c 0005 da74 movel #383604,%d0 <== NOT EXECUTED
else if ( the_api == OBJECTS_POSIX_API )
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
46c1a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
46c1e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46c20: 4eb9 0004 b120 jsr 4b120 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( class_assoc )
46c26: 508f addql #8,%sp <== NOT EXECUTED
else if ( the_api == OBJECTS_POSIX_API )
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
46c28: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( class_assoc )
return class_assoc->name;
return "BAD CLASS";
46c2a: 203c 0005 ca96 movel #379542,%d0 <== NOT EXECUTED
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
if ( class_assoc )
46c30: 4a88 tstl %a0 <== NOT EXECUTED
46c32: 6702 beqs 46c36 <rtems_object_get_api_class_name+0x46><== NOT EXECUTED
return class_assoc->name;
46c34: 2010 movel %a0@,%d0 <== NOT EXECUTED
return "BAD CLASS";
}
46c36: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
46c3a: 4e5e unlk %fp <== NOT EXECUTED
...
00046c40 <rtems_object_get_api_name>:
};
const char *rtems_object_get_api_name(
int api
)
{
46c40: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
46c44: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46c48: 4879 0005 db04 pea 5db04 <rtems_objects_api_assoc> <== NOT EXECUTED
46c4e: 4eb9 0004 b120 jsr 4b120 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( api_assoc )
46c54: 508f addql #8,%sp <== NOT EXECUTED
int api
)
{
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
46c56: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( api_assoc )
return api_assoc->name;
return "BAD CLASS";
46c58: 203c 0005 ca96 movel #379542,%d0 <== NOT EXECUTED
)
{
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
if ( api_assoc )
46c5e: 4a88 tstl %a0 <== NOT EXECUTED
46c60: 6702 beqs 46c64 <rtems_object_get_api_name+0x24> <== NOT EXECUTED
return api_assoc->name;
46c62: 2010 movel %a0@,%d0 <== NOT EXECUTED
return "BAD CLASS";
}
46c64: 4e5e unlk %fp <== NOT EXECUTED
00046ca0 <rtems_object_get_class_information>:
rtems_status_code rtems_object_get_class_information(
int the_api,
int the_class,
rtems_object_api_class_information *info
)
{
46ca0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46ca4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46ca6: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
46caa: 2f02 movel %d2,%sp@- <== NOT EXECUTED
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
46cac: 4a8a tstl %a2 <== NOT EXECUTED
46cae: 6752 beqs 46d02 <rtems_object_get_class_information+0x62><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
46cb0: 3f2e 000e movew %fp@(14),%sp@- <== NOT EXECUTED
46cb4: 4267 clrw %sp@- <== NOT EXECUTED
46cb6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46cba: 4eb9 0004 866c jsr 4866c <_Objects_Get_information> <== NOT EXECUTED
if ( !obj_info )
46cc0: 508f addql #8,%sp <== NOT EXECUTED
* Validate parameters and look up information structure.
*/
if ( !info )
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
46cc2: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( !obj_info )
46cc4: 4a80 tstl %d0 <== NOT EXECUTED
46cc6: 673e beqs 46d06 <rtems_object_get_class_information+0x66><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
46cc8: 24a8 0006 movel %a0@(6),%a2@ <== NOT EXECUTED
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
46ccc: 4282 clrl %d2 <== NOT EXECUTED
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
46cce: 7001 moveq #1,%d0 <== NOT EXECUTED
46cd0: 4281 clrl %d1 <== NOT EXECUTED
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
46cd2: 2568 000a 0004 movel %a0@(10),%a2@(4) <== NOT EXECUTED
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
46cd8: 3428 000e movew %a0@(14),%d2 <== NOT EXECUTED
/*
* 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;
46cdc: 1568 0010 000c moveb %a0@(16),%a2@(12) <== NOT EXECUTED
info->maximum = obj_info->maximum;
46ce2: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
46ce6: 600e bras 46cf6 <rtems_object_get_class_information+0x56><== NOT EXECUTED
if ( !obj_info->local_table[i] )
46ce8: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED
46cec: 4ab1 0c00 tstl %a1@(00000000,%d0:l:4) <== NOT EXECUTED
46cf0: 6602 bnes 46cf4 <rtems_object_get_class_information+0x54><== NOT EXECUTED
unallocated++;
46cf2: 5281 addql #1,%d1 <== NOT EXECUTED
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++ )
46cf4: 5280 addql #1,%d0 <== NOT EXECUTED
46cf6: b480 cmpl %d0,%d2 <== NOT EXECUTED
46cf8: 64ee bccs 46ce8 <rtems_object_get_class_information+0x48><== NOT EXECUTED
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
46cfa: 2541 000e movel %d1,%a2@(14) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46cfe: 4280 clrl %d0 <== NOT EXECUTED
46d00: 6006 bras 46d08 <rtems_object_get_class_information+0x68><== NOT EXECUTED
/*
* Validate parameters and look up information structure.
*/
if ( !info )
return RTEMS_INVALID_ADDRESS;
46d02: 7009 moveq #9,%d0 <== NOT EXECUTED
46d04: 6002 bras 46d08 <rtems_object_get_class_information+0x68><== NOT EXECUTED
obj_info = _Objects_Get_information( the_api, the_class );
if ( !obj_info )
return RTEMS_INVALID_NUMBER;
46d06: 700a moveq #10,%d0 <== NOT EXECUTED
unallocated++;
info->unallocated = unallocated;
return RTEMS_SUCCESSFUL;
}
46d08: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46d0c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46d10: 4e5e unlk %fp <== NOT EXECUTED
000461d0 <rtems_object_get_classic_name>:
rtems_status_code rtems_object_get_classic_name(
rtems_id id,
rtems_name *name
)
{
461d0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
461d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
461d6: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Name name_u;
if ( !name )
461da: 4a8a tstl %a2 <== NOT EXECUTED
461dc: 6720 beqs 461fe <rtems_object_get_classic_name+0x2e><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
status = _Objects_Id_to_name( id, &name_u );
461de: 486e fffc pea %fp@(-4) <== NOT EXECUTED
461e2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
461e6: 4eb9 0004 7ba0 jsr 47ba0 <_Objects_Id_to_name> <== NOT EXECUTED
*name = name_u.name_u32;
461ec: 24ae fffc movel %fp@(-4),%a2@ <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
461f0: 41f9 0005 b5f0 lea 5b5f0 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
461f6: 508f addql #8,%sp <== NOT EXECUTED
461f8: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
461fc: 6002 bras 46200 <rtems_object_get_classic_name+0x30><== NOT EXECUTED
{
Objects_Name_or_id_lookup_errors status;
Objects_Name name_u;
if ( !name )
return RTEMS_INVALID_ADDRESS;
461fe: 7009 moveq #9,%d0 <== NOT EXECUTED
status = _Objects_Id_to_name( id, &name_u );
*name = name_u.name_u32;
return _Status_Object_name_errors_to_status[ status ];
}
46200: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
46204: 4e5e unlk %fp <== NOT EXECUTED
00046400 <rtems_object_get_name>:
char *rtems_object_get_name(
Objects_Id id,
size_t length,
char *name
)
{
46400: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_name_as_string( id, length, name );
}
46404: 4e5e unlk %fp <== NOT EXECUTED
Objects_Id id,
size_t length,
char *name
)
{
return _Objects_Get_name_as_string( id, length, name );
46406: 4ef9 0004 7fb0 jmp 47fb0 <_Objects_Get_name_as_string> <== NOT EXECUTED
00046d20 <rtems_object_id_api_maximum>:
#undef rtems_object_id_api_maximum
int rtems_object_id_api_maximum(void)
{
return OBJECTS_APIS_LAST;
}
46d20: 7003 moveq #3,%d0 <== NOT EXECUTED
#include <rtems/score/object.h>
#include <rtems/rtems/types.h>
#undef rtems_object_id_api_maximum
int rtems_object_id_api_maximum(void)
{
46d22: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return OBJECTS_APIS_LAST;
}
46d26: 4e5e unlk %fp <== NOT EXECUTED
...
00046d2c <rtems_object_id_api_minimum>:
#undef rtems_object_id_api_minimum
int rtems_object_id_api_minimum(void)
{
return OBJECTS_INTERNAL_API;
}
46d2c: 7001 moveq #1,%d0 <== NOT EXECUTED
#include <rtems/score/object.h>
#include <rtems/rtems/types.h>
#undef rtems_object_id_api_minimum
int rtems_object_id_api_minimum(void)
{
46d2e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return OBJECTS_INTERNAL_API;
}
46d32: 4e5e unlk %fp <== NOT EXECUTED
...
00046d38 <rtems_object_id_get_api>:
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
46d38: 4280 clrl %d0 <== NOT EXECUTED
int rtems_object_id_get_api(
rtems_id id
)
{
return _Objects_Get_API( id );
}
46d3a: 7207 moveq #7,%d1 <== NOT EXECUTED
#undef rtems_object_id_get_api
int rtems_object_id_get_api(
rtems_id id
)
{
46d3c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46d40: 102e 0008 moveb %fp@(8),%d0 <== NOT EXECUTED
return _Objects_Get_API( id );
}
46d44: 4e5e unlk %fp <== NOT EXECUTED
46d46: c081 andl %d1,%d0 <== NOT EXECUTED
...
00046d4c <rtems_object_id_get_class>:
int rtems_object_id_get_class(
rtems_id id
)
{
return _Objects_Get_class( id );
}
46d4c: 721b moveq #27,%d1 <== NOT EXECUTED
#undef rtems_object_id_get_class
int rtems_object_id_get_class(
rtems_id id
)
{
46d4e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_class( id );
}
46d52: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
46d56: 4e5e unlk %fp <== NOT EXECUTED
46d58: e2a8 lsrl %d1,%d0 <== NOT EXECUTED
00046d5c <rtems_object_id_get_index>:
int rtems_object_id_get_index(
rtems_id id
)
{
return _Objects_Get_index( id );
}
46d5c: 4280 clrl %d0 <== NOT EXECUTED
#undef rtems_object_id_get_index
int rtems_object_id_get_index(
rtems_id id
)
{
46d5e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_index( id );
}
46d62: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED
46d66: 4e5e unlk %fp <== NOT EXECUTED
...
00046d6c <rtems_object_id_get_node>:
int rtems_object_id_get_node(
rtems_id id
)
{
return _Objects_Get_node( id );
}
46d6c: 4280 clrl %d0 <== NOT EXECUTED
#undef rtems_object_id_get_node
int rtems_object_id_get_node(
rtems_id id
)
{
46d6e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_node( id );
}
46d72: 102e 0009 moveb %fp@(9),%d0 <== NOT EXECUTED
46d76: 4e5e unlk %fp <== NOT EXECUTED
...
00046d7c <rtems_object_set_name>:
*/
rtems_status_code rtems_object_set_name(
rtems_id id,
const char *name
)
{
46d7c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
46d80: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
46d84: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
46d88: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
46d8c: 674e beqs 46ddc <rtems_object_set_name+0x60> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
46d8e: 4a83 tstl %d3 <== NOT EXECUTED
46d90: 660a bnes 46d9c <rtems_object_set_name+0x20> <== NOT EXECUTED
46d92: 2079 0005 f3b0 moveal 5f3b0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
46d98: 2628 0008 movel %a0@(8),%d3 <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
46d9c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46d9e: 4eb9 0004 8640 jsr 48640 <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
46da4: 588f addql #4,%sp <== NOT EXECUTED
if ( !name )
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
information = _Objects_Get_information_id( tmpId );
46da6: 2400 movel %d0,%d2 <== NOT EXECUTED
if ( !information )
46da8: 6736 beqs 46de0 <rtems_object_set_name+0x64> <== NOT EXECUTED
return RTEMS_INVALID_ID;
the_object = _Objects_Get( information, tmpId, &location );
46daa: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46dae: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46db0: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46db2: 4eb9 0004 87ec jsr 487ec <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
46db8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46dbc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46dc0: 661e bnes 46de0 <rtems_object_set_name+0x64> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
46dc2: 2f04 movel %d4,%sp@- <== NOT EXECUTED
46dc4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46dc6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46dc8: 4eb9 0004 89d8 jsr 489d8 <_Objects_Set_name> <== NOT EXECUTED
_Thread_Enable_dispatch();
46dce: 4eb9 0004 932e jsr 4932e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46dd4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46dd8: 4280 clrl %d0 <== NOT EXECUTED
46dda: 6006 bras 46de2 <rtems_object_set_name+0x66> <== NOT EXECUTED
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
return RTEMS_INVALID_ADDRESS;
46ddc: 7009 moveq #9,%d0 <== NOT EXECUTED
46dde: 6002 bras 46de2 <rtems_object_set_name+0x66> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
46de0: 7004 moveq #4,%d0 <== NOT EXECUTED
}
46de2: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
46de8: 4e5e unlk %fp <== NOT EXECUTED
0004fcb4 <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
4fcb4: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
4fcb8: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED
4fcbc: 2a2e 0008 movel %fp@(8),%d5 <== NOT EXECUTED
4fcc0: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
4fcc4: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
4fcc8: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED
4fccc: 246e 001c moveal %fp@(28),%a2 <== NOT EXECUTED
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
4fcd0: 4a85 tstl %d5 <== NOT EXECUTED
4fcd2: 6700 00ac beqw 4fd80 <rtems_partition_create+0xcc> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !starting_address )
4fcd6: 4a84 tstl %d4 <== NOT EXECUTED
4fcd8: 6700 00ae beqw 4fd88 <rtems_partition_create+0xd4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !id )
4fcdc: 4a8a tstl %a2 <== NOT EXECUTED
4fcde: 6700 00a8 beqw 4fd88 <rtems_partition_create+0xd4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
4fce2: 4a83 tstl %d3 <== NOT EXECUTED
4fce4: 6700 009e beqw 4fd84 <rtems_partition_create+0xd0> <== NOT EXECUTED
4fce8: 4a82 tstl %d2 <== NOT EXECUTED
4fcea: 6700 0098 beqw 4fd84 <rtems_partition_create+0xd0> <== NOT EXECUTED
4fcee: b483 cmpl %d3,%d2 <== NOT EXECUTED
4fcf0: 6200 0092 bhiw 4fd84 <rtems_partition_create+0xd0> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (
uint32_t buffer_size
)
{
return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0);
4fcf4: 7003 moveq #3,%d0 <== NOT EXECUTED
4fcf6: c082 andl %d2,%d0 <== NOT EXECUTED
4fcf8: 6600 008a bnew 4fd84 <rtems_partition_create+0xd0> <== NOT EXECUTED
)
{
#if (CPU_ALIGNMENT == 0)
return true;
#else
return (((uintptr_t)address % CPU_ALIGNMENT) == 0);
4fcfc: 103c 0003 moveb #3,%d0 <== NOT EXECUTED
4fd00: c084 andl %d4,%d0 <== NOT EXECUTED
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
4fd02: 6600 0084 bnew 4fd88 <rtems_partition_create+0xd4> <== NOT EXECUTED
4fd06: 2039 0007 4ff4 movel 74ff4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4fd0c: 5280 addql #1,%d0 <== NOT EXECUTED
4fd0e: 23c0 0007 4ff4 movel %d0,74ff4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* This function allocates a partition control block from
* the inactive chain of free partition control blocks.
*/
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )
{
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
4fd14: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4fd1a: 49f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
4fd20: 4eb9 0005 3e48 jsr 53e48 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
4fd26: 588f addql #4,%sp <== NOT EXECUTED
4fd28: 2640 moveal %d0,%a3 <== NOT EXECUTED
4fd2a: 4a80 tstl %d0 <== NOT EXECUTED
4fd2c: 6606 bnes 4fd34 <rtems_partition_create+0x80> <== NOT EXECUTED
_Thread_Enable_dispatch();
4fd2e: 4e94 jsr %a4@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
4fd30: 7005 moveq #5,%d0 <== NOT EXECUTED
4fd32: 6056 bras 4fd8a <rtems_partition_create+0xd6> <== NOT EXECUTED
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
4fd34: 2743 0014 movel %d3,%a3@(20) <== NOT EXECUTED
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
4fd38: 276e 0018 001c movel %fp@(24),%a3@(28) <== NOT EXECUTED
the_partition->number_of_used_blocks = 0;
_Chain_Initialize( &the_partition->Memory, starting_address,
4fd3e: 4c42 3003 remul %d2,%d3,%d3 <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
4fd42: 2744 0010 movel %d4,%a3@(16) <== NOT EXECUTED
the_partition->length = length;
the_partition->buffer_size = buffer_size;
4fd46: 2742 0018 movel %d2,%a3@(24) <== NOT EXECUTED
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
4fd4a: 42ab 0020 clrl %a3@(32) <== NOT EXECUTED
_Chain_Initialize( &the_partition->Memory, starting_address,
4fd4e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4fd50: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4fd52: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4fd54: 486b 0024 pea %a3@(36) <== NOT EXECUTED
4fd58: 4eb9 0005 2a84 jsr 52a84 <_Chain_Initialize> <== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
4fd5e: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4fd62: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4fd64: 2079 0007 4eac moveal 74eac <_Partition_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4fd6a: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4fd6c: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
4fd70: 2745 000c movel %d5,%a3@(12) <== NOT EXECUTED
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
4fd74: 2480 movel %d0,%a2@ <== NOT EXECUTED
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
4fd76: 4e94 jsr %a4@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fd78: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4fd7c: 4280 clrl %d0 <== NOT EXECUTED
4fd7e: 600a bras 4fd8a <rtems_partition_create+0xd6> <== NOT EXECUTED
)
{
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
4fd80: 7003 moveq #3,%d0 <== NOT EXECUTED
4fd82: 6006 bras 4fd8a <rtems_partition_create+0xd6> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
4fd84: 7008 moveq #8,%d0 <== NOT EXECUTED
4fd86: 6002 bras 4fd8a <rtems_partition_create+0xd6> <== NOT EXECUTED
if ( !_Addresses_Is_aligned( starting_address ) )
return RTEMS_INVALID_ADDRESS;
4fd88: 7009 moveq #9,%d0 <== NOT EXECUTED
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4fd8a: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED
4fd90: 4e5e unlk %fp <== NOT EXECUTED
0004fd94 <rtems_partition_delete>:
*/
rtems_status_code rtems_partition_delete(
rtems_id id
)
{
4fd94: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4fd98: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4fd9a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
_Objects_Get( &_Partition_Information, id, location );
4fd9c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fda0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4fda4: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4fdaa: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
4fdb0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fdb4: 2440 moveal %d0,%a2 <== NOT EXECUTED
4fdb6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fdba: 6638 bnes 4fdf4 <rtems_partition_delete+0x60> <== NOT EXECUTED
4fdbc: 47f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_partition->number_of_used_blocks == 0 ) {
4fdc2: 4aaa 0020 tstl %a2@(32) <== NOT EXECUTED
4fdc6: 6626 bnes 4fdee <rtems_partition_delete+0x5a> <== NOT EXECUTED
_Objects_Close( &_Partition_Information, &the_partition->Object );
4fdc8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4fdca: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4fdd0: 4eb9 0005 3ec4 jsr 53ec4 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Partition_Free (
Partition_Control *the_partition
)
{
_Objects_Free( &_Partition_Information, &the_partition->Object );
4fdd6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fdd8: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4fdde: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
4fde4: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fde6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4fdea: 4280 clrl %d0 <== NOT EXECUTED
4fdec: 6008 bras 4fdf6 <rtems_partition_delete+0x62> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
4fdee: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
4fdf0: 700c moveq #12,%d0 <== NOT EXECUTED
4fdf2: 6002 bras 4fdf6 <rtems_partition_delete+0x62> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4fdf4: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4fdf6: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
4fdfa: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
4fdfe: 4e5e unlk %fp <== NOT EXECUTED
...
0004fe04 <rtems_partition_get_buffer>:
rtems_status_code rtems_partition_get_buffer(
rtems_id id,
void **buffer
)
{
4fe04: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4fe08: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
4fe0c: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
4fe10: 4a8b tstl %a3 <== NOT EXECUTED
4fe12: 6748 beqs 4fe5c <rtems_partition_get_buffer+0x58><== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
_Objects_Get( &_Partition_Information, id, location );
4fe14: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fe18: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4fe1c: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4fe22: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
4fe28: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fe2c: 2440 moveal %d0,%a2 <== NOT EXECUTED
4fe2e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fe32: 662c bnes 4fe60 <rtems_partition_get_buffer+0x5c><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer (
Partition_Control *the_partition
)
{
return _Chain_Get( &the_partition->Memory );
4fe34: 486a 0024 pea %a2@(36) <== NOT EXECUTED
4fe38: 4eb9 0005 2a50 jsr 52a50 <_Chain_Get> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_buffer = _Partition_Allocate_buffer( the_partition );
if ( the_buffer ) {
4fe3e: 588f addql #4,%sp <== NOT EXECUTED
4fe40: 41f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a0 <== NOT EXECUTED
4fe46: 2400 movel %d0,%d2 <== NOT EXECUTED
4fe48: 670c beqs 4fe56 <rtems_partition_get_buffer+0x52><== NOT EXECUTED
the_partition->number_of_used_blocks += 1;
4fe4a: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED
_Thread_Enable_dispatch();
4fe4e: 4e90 jsr %a0@ <== NOT EXECUTED
*buffer = the_buffer;
return RTEMS_SUCCESSFUL;
4fe50: 4280 clrl %d0 <== NOT EXECUTED
case OBJECTS_LOCAL:
the_buffer = _Partition_Allocate_buffer( the_partition );
if ( the_buffer ) {
the_partition->number_of_used_blocks += 1;
_Thread_Enable_dispatch();
*buffer = the_buffer;
4fe52: 2682 movel %d2,%a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fe54: 600c bras 4fe62 <rtems_partition_get_buffer+0x5e><== NOT EXECUTED
}
_Thread_Enable_dispatch();
4fe56: 4e90 jsr %a0@ <== NOT EXECUTED
return RTEMS_UNSATISFIED;
4fe58: 700d moveq #13,%d0 <== NOT EXECUTED
4fe5a: 6006 bras 4fe62 <rtems_partition_get_buffer+0x5e><== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
4fe5c: 7009 moveq #9,%d0 <== NOT EXECUTED
4fe5e: 6002 bras 4fe62 <rtems_partition_get_buffer+0x5e><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4fe60: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4fe62: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED
4fe68: 4e5e unlk %fp <== NOT EXECUTED
0004fe6c <rtems_partition_ident>:
rtems_status_code rtems_partition_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
4fe6c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id );
4fe70: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4fe74: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4fe78: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4fe7c: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4fe82: 4eb9 0005 4440 jsr 54440 <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
}
4fe88: 41f9 0006 e620 lea 6e620 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
4fe8e: 4e5e unlk %fp <== NOT EXECUTED
4fe90: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004fe98 <rtems_partition_return_buffer>:
rtems_status_code rtems_partition_return_buffer(
rtems_id id,
void *buffer
)
{
4fe98: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4fe9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fe9e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
_Objects_Get( &_Partition_Information, id, location );
4fea0: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fea4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4fea8: 4879 0007 4e94 pea 74e94 <_Partition_Information> <== NOT EXECUTED
4feae: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4feb2: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
4feb8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4febc: 2440 moveal %d0,%a2 <== NOT EXECUTED
4febe: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4fec2: 663e bnes 4ff02 <rtems_partition_return_buffer+0x6a><== NOT EXECUTED
)
{
void *starting;
void *ending;
starting = the_partition->starting_address;
4fec4: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED
ending = _Addresses_Add_offset( starting, the_partition->length );
4fec8: 222a 0014 movel %a2@(20),%d1 <== NOT EXECUTED
const void *address,
const void *base,
const void *limit
)
{
return (address >= base && address <= limit);
4fecc: b082 cmpl %d2,%d0 <== NOT EXECUTED
4fece: 6240 bhis 4ff10 <rtems_partition_return_buffer+0x78><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
4fed0: d280 addl %d0,%d1 <== NOT EXECUTED
const void *address,
const void *base,
const void *limit
)
{
return (address >= base && address <= limit);
4fed2: b282 cmpl %d2,%d1 <== NOT EXECUTED
4fed4: 653a bcss 4ff10 <rtems_partition_return_buffer+0x78><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
const void *left,
const void *right
)
{
return (int32_t) ((const char *) left - (const char *) right);
4fed6: 2202 movel %d2,%d1 <== NOT EXECUTED
4fed8: 9280 subl %d0,%d1 <== NOT EXECUTED
4feda: 2001 movel %d1,%d0 <== NOT EXECUTED
offset = (uint32_t) _Addresses_Subtract(
the_buffer,
the_partition->starting_address
);
return ((offset % the_partition->buffer_size) == 0);
4fedc: 4c6a 0001 0018 remul %a2@(24),%d1,%d0 <== NOT EXECUTED
starting = the_partition->starting_address;
ending = _Addresses_Add_offset( starting, the_partition->length );
return (
_Addresses_Is_in_range( the_buffer, starting, ending ) &&
4fee2: 4a81 tstl %d1 <== NOT EXECUTED
4fee4: 662a bnes 4ff10 <rtems_partition_return_buffer+0x78><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
Partition_Control *the_partition,
Chain_Node *the_buffer
)
{
_Chain_Append( &the_partition->Memory, the_buffer );
4fee6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4fee8: 486a 0024 pea %a2@(36) <== NOT EXECUTED
4feec: 4eb9 0005 29f0 jsr 529f0 <_Chain_Append> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) {
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
4fef2: 53aa 0020 subql #1,%a2@(32) <== NOT EXECUTED
_Thread_Enable_dispatch();
4fef6: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4fefc: 508f addql #8,%sp <== NOT EXECUTED
4fefe: 4280 clrl %d0 <== NOT EXECUTED
4ff00: 6002 bras 4ff04 <rtems_partition_return_buffer+0x6c><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4ff02: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4ff04: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4ff08: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4ff0c: 4e5e unlk %fp <== NOT EXECUTED
4ff0e: 4e75 rts <== NOT EXECUTED
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
4ff10: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
4ff16: 7009 moveq #9,%d0 <== NOT EXECUTED
4ff18: 60ea bras 4ff04 <rtems_partition_return_buffer+0x6c><== NOT EXECUTED
...
0004f338 <rtems_port_create>:
void *internal_start,
void *external_start,
uint32_t length,
rtems_id *id
)
{
4f338: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4f33c: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
4f340: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4f344: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
4f348: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
4f34c: 246e 0018 moveal %fp@(24),%a2 <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
4f350: 4a82 tstl %d2 <== NOT EXECUTED
4f352: 676c beqs 4f3c0 <rtems_port_create+0x88> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
4f354: 4a8a tstl %a2 <== NOT EXECUTED
4f356: 676c beqs 4f3c4 <rtems_port_create+0x8c> <== NOT EXECUTED
* id - port id
* RTEMS_SUCCESSFUL - if successful
* error code - if unsuccessful
*/
rtems_status_code rtems_port_create(
4f358: 2003 movel %d3,%d0 <== NOT EXECUTED
4f35a: 7203 moveq #3,%d1 <== NOT EXECUTED
4f35c: 8084 orl %d4,%d0 <== NOT EXECUTED
4f35e: c081 andl %d1,%d0 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( internal_start ) ||
4f360: 6662 bnes 4f3c4 <rtems_port_create+0x8c> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4f362: 2039 0007 4ff4 movel 74ff4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4f368: 5280 addql #1,%d0 <== NOT EXECUTED
4f36a: 23c0 0007 4ff4 movel %d0,74ff4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Dual_ported_memory_Control
*_Dual_ported_memory_Allocate ( void )
{
return (Dual_ported_memory_Control *)
_Objects_Allocate( &_Dual_ported_memory_Information );
4f370: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f376: 4eb9 0005 3e48 jsr 53e48 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_port = _Dual_ported_memory_Allocate();
if ( !the_port ) {
4f37c: 588f addql #4,%sp <== NOT EXECUTED
4f37e: 43f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a1 <== NOT EXECUTED
4f384: 2040 moveal %d0,%a0 <== NOT EXECUTED
4f386: 4a80 tstl %d0 <== NOT EXECUTED
4f388: 6606 bnes 4f390 <rtems_port_create+0x58> <== NOT EXECUTED
_Thread_Enable_dispatch();
4f38a: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
4f38c: 7005 moveq #5,%d0 <== NOT EXECUTED
4f38e: 6036 bras 4f3c6 <rtems_port_create+0x8e> <== NOT EXECUTED
}
the_port->internal_base = internal_start;
the_port->external_base = external_start;
the_port->length = length - 1;
4f390: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED
4f394: 5380 subql #1,%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4f396: 4281 clrl %d1 <== NOT EXECUTED
4f398: 2140 0018 movel %d0,%a0@(24) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
4f39c: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4f3a0: 2679 0007 4e74 moveal 74e74 <_Dual_ported_memory_Information+0x18>,%a3<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4f3a6: 3200 movew %d0,%d1 <== NOT EXECUTED
if ( !the_port ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_port->internal_base = internal_start;
4f3a8: 2144 0010 movel %d4,%a0@(16) <== NOT EXECUTED
the_port->external_base = external_start;
4f3ac: 2143 0014 movel %d3,%a0@(20) <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4f3b0: 2788 1c00 movel %a0,%a3@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
4f3b4: 2142 000c movel %d2,%a0@(12) <== NOT EXECUTED
&_Dual_ported_memory_Information,
&the_port->Object,
(Objects_Name) name
);
*id = the_port->Object.id;
4f3b8: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4f3ba: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4f3bc: 4280 clrl %d0 <== NOT EXECUTED
4f3be: 6006 bras 4f3c6 <rtems_port_create+0x8e> <== NOT EXECUTED
)
{
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
4f3c0: 7003 moveq #3,%d0 <== NOT EXECUTED
4f3c2: 6002 bras 4f3c6 <rtems_port_create+0x8e> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( internal_start ) ||
!_Addresses_Is_aligned( external_start ) )
return RTEMS_INVALID_ADDRESS;
4f3c4: 7009 moveq #9,%d0 <== NOT EXECUTED
);
*id = the_port->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4f3c6: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
4f3cc: 4e5e unlk %fp <== NOT EXECUTED
0004f3d0 <rtems_port_delete>:
*/
rtems_status_code rtems_port_delete(
rtems_id id
)
{
4f3d0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4f3d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Dual_ported_memory_Control *)
_Objects_Get( &_Dual_ported_memory_Information, id, location );
4f3d6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4f3da: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4f3de: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f3e4: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
4f3ea: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4f3ee: 2400 movel %d0,%d2 <== NOT EXECUTED
4f3f0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4f3f4: 662a bnes 4f420 <rtems_port_delete+0x50> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Dual_ported_memory_Information, &the_port->Object );
4f3f6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4f3f8: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f3fe: 4eb9 0005 3ec4 jsr 53ec4 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free (
Dual_ported_memory_Control *the_port
)
{
_Objects_Free( &_Dual_ported_memory_Information, &the_port->Object );
4f404: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4f406: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f40c: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
_Dual_ported_memory_Free( the_port );
_Thread_Enable_dispatch();
4f412: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4f418: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4f41c: 4280 clrl %d0 <== NOT EXECUTED
4f41e: 6002 bras 4f422 <rtems_port_delete+0x52> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4f420: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4f422: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4f426: 4e5e unlk %fp <== NOT EXECUTED
...
0004f42c <rtems_port_external_to_internal>:
rtems_status_code rtems_port_external_to_internal(
rtems_id id,
void *external,
void **internal
)
{
4f42c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4f430: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4f432: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
4f436: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4f438: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
4f43c: 4a8a tstl %a2 <== NOT EXECUTED
4f43e: 6740 beqs 4f480 <rtems_port_external_to_internal+0x54><== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Dual_ported_memory_Control *)
_Objects_Get( &_Dual_ported_memory_Information, id, location );
4f440: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4f444: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4f448: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f44e: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
4f454: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4f458: 2040 moveal %d0,%a0 <== NOT EXECUTED
4f45a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4f45e: 6624 bnes 4f484 <rtems_port_external_to_internal+0x58><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
const void *left,
const void *right
)
{
return (int32_t) ((const char *) left - (const char *) right);
4f460: 2002 movel %d2,%d0 <== NOT EXECUTED
4f462: 90a8 0014 subl %a0@(20),%d0 <== NOT EXECUTED
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( external, the_port->external_base );
if ( ending > the_port->length )
4f466: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED
4f46a: 6304 blss 4f470 <rtems_port_external_to_internal+0x44><== NOT EXECUTED
*internal = external;
4f46c: 2482 movel %d2,%a2@ <== NOT EXECUTED
4f46e: 6006 bras 4f476 <rtems_port_external_to_internal+0x4a><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
4f470: d0a8 0010 addl %a0@(16),%d0 <== NOT EXECUTED
4f474: 2480 movel %d0,%a2@ <== NOT EXECUTED
else
*internal = _Addresses_Add_offset( the_port->internal_base,
ending );
_Thread_Enable_dispatch();
4f476: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4f47c: 4280 clrl %d0 <== NOT EXECUTED
4f47e: 6006 bras 4f486 <rtems_port_external_to_internal+0x5a><== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
return RTEMS_INVALID_ADDRESS;
4f480: 7009 moveq #9,%d0 <== NOT EXECUTED
4f482: 6002 bras 4f486 <rtems_port_external_to_internal+0x5a><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4f484: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4f486: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4f48a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4f48e: 4e5e unlk %fp <== NOT EXECUTED
...
0004f494 <rtems_port_ident>:
rtems_status_code rtems_port_ident(
rtems_name name,
rtems_id *id
)
{
4f494: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
4f498: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4f49c: 42a7 clrl %sp@- <== NOT EXECUTED
4f49e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4f4a2: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f4a8: 4eb9 0005 4440 jsr 54440 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_ALL_NODES,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
4f4ae: 41f9 0006 e620 lea 6e620 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
4f4b4: 4e5e unlk %fp <== NOT EXECUTED
4f4b6: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
0004f4bc <rtems_port_internal_to_external>:
rtems_status_code rtems_port_internal_to_external(
rtems_id id,
void *internal,
void **external
)
{
4f4bc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4f4c0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4f4c2: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
4f4c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4f4c8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
4f4cc: 4a8a tstl %a2 <== NOT EXECUTED
4f4ce: 6740 beqs 4f510 <rtems_port_internal_to_external+0x54><== NOT EXECUTED
4f4d0: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4f4d4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4f4d8: 4879 0007 4e5c pea 74e5c <_Dual_ported_memory_Information> <== NOT EXECUTED
4f4de: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
4f4e4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4f4e8: 2040 moveal %d0,%a0 <== NOT EXECUTED
4f4ea: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4f4ee: 6624 bnes 4f514 <rtems_port_internal_to_external+0x58><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
const void *left,
const void *right
)
{
return (int32_t) ((const char *) left - (const char *) right);
4f4f0: 2002 movel %d2,%d0 <== NOT EXECUTED
4f4f2: 90a8 0010 subl %a0@(16),%d0 <== NOT EXECUTED
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( internal, the_port->internal_base );
if ( ending > the_port->length )
4f4f6: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED
4f4fa: 6304 blss 4f500 <rtems_port_internal_to_external+0x44><== NOT EXECUTED
*external = internal;
4f4fc: 2482 movel %d2,%a2@ <== NOT EXECUTED
4f4fe: 6006 bras 4f506 <rtems_port_internal_to_external+0x4a><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
4f500: d0a8 0014 addl %a0@(20),%d0 <== NOT EXECUTED
4f504: 2480 movel %d0,%a2@ <== NOT EXECUTED
else
*external = _Addresses_Add_offset( the_port->external_base,
ending );
_Thread_Enable_dispatch();
4f506: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4f50c: 4280 clrl %d0 <== NOT EXECUTED
4f50e: 6006 bras 4f516 <rtems_port_internal_to_external+0x5a><== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
return RTEMS_INVALID_ADDRESS;
4f510: 7009 moveq #9,%d0 <== NOT EXECUTED
4f512: 6002 bras 4f516 <rtems_port_internal_to_external+0x5a><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4f514: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4f516: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4f51a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4f51e: 4e5e unlk %fp <== NOT EXECUTED
...
0004ff1c <rtems_rate_monotonic_cancel>:
*/
rtems_status_code rtems_rate_monotonic_cancel(
rtems_id id
)
{
4ff1c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4ff20: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4ff22: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
_Objects_Get( &_Rate_monotonic_Information, id, location );
4ff24: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4ff28: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4ff2c: 4879 0007 4ecc pea 74ecc <_Rate_monotonic_Information> <== NOT EXECUTED
4ff32: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
4ff38: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4ff3c: 2440 moveal %d0,%a2 <== NOT EXECUTED
4ff3e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4ff42: 662e bnes 4ff72 <rtems_rate_monotonic_cancel+0x56><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
4ff44: 2039 0007 51bc movel 751bc <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
4ff4a: 47f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
4ff50: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED
4ff54: 6706 beqs 4ff5c <rtems_rate_monotonic_cancel+0x40><== NOT EXECUTED
_Thread_Enable_dispatch();
4ff56: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_NOT_OWNER_OF_RESOURCE;
4ff58: 7017 moveq #23,%d0 <== NOT EXECUTED
4ff5a: 6018 bras 4ff74 <rtems_rate_monotonic_cancel+0x58><== NOT EXECUTED
}
(void) _Watchdog_Remove( &the_period->Timer );
4ff5c: 486a 0010 pea %a2@(16) <== NOT EXECUTED
4ff60: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
4ff66: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED
_Thread_Enable_dispatch();
4ff6a: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4ff6c: 588f addql #4,%sp <== NOT EXECUTED
4ff6e: 4280 clrl %d0 <== NOT EXECUTED
4ff70: 6002 bras 4ff74 <rtems_rate_monotonic_cancel+0x58><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4ff72: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4ff74: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
4ff78: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
4ff7c: 4e5e unlk %fp <== NOT EXECUTED
00046034 <rtems_rate_monotonic_create>:
rtems_status_code rtems_rate_monotonic_create(
rtems_name name,
rtems_id *id
)
{
46034: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
46038: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
4603c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46040: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
46044: 6700 009c beqw 460e2 <rtems_rate_monotonic_create+0xae><== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
46048: 4a8c tstl %a4 <== NOT EXECUTED
4604a: 6700 009a beqw 460e6 <rtems_rate_monotonic_create+0xb2><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4604e: 2039 0005 e330 movel 5e330 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46054: 5280 addql #1,%d0 <== NOT EXECUTED
46056: 23c0 0005 e330 movel %d0,5e330 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* the inactive chain of free period control blocks.
*/
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void )
{
return (Rate_monotonic_Control *)
_Objects_Allocate( &_Rate_monotonic_Information );
4605c: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
46062: 47f9 0004 8d3e lea 48d3e <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
46068: 4eb9 0004 7d64 jsr 47d64 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_period = _Rate_monotonic_Allocate();
if ( !the_period ) {
4606e: 588f addql #4,%sp <== NOT EXECUTED
46070: 2440 moveal %d0,%a2 <== NOT EXECUTED
46072: 4a80 tstl %d0 <== NOT EXECUTED
46074: 6606 bnes 4607c <rtems_rate_monotonic_create+0x48><== NOT EXECUTED
_Thread_Enable_dispatch();
46076: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
46078: 7005 moveq #5,%d0 <== NOT EXECUTED
4607a: 606c bras 460e8 <rtems_rate_monotonic_create+0xb4><== NOT EXECUTED
}
the_period->owner = _Thread_Executing;
4607c: 41f9 0005 e4f0 lea 5e4f0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
46082: 2550 0040 movel %a0@,%a2@(64) <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
46086: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4608a: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
4608e: 42aa 002c clrl %a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
46092: 42aa 0030 clrl %a2@(48) <== NOT EXECUTED
the_watchdog->user_data = user_data;
46096: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
4609a: 4878 0038 pea 38 <DBL_MANT_DIG+0x3> <== NOT EXECUTED
4609e: 42a7 clrl %sp@- <== NOT EXECUTED
460a0: 486a 0054 pea %a2@(84) <== NOT EXECUTED
460a4: 4eb9 0004 db54 jsr 4db54 <memset> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
460aa: 2079 0005 e258 moveal 5e258 <_Rate_monotonic_Information+0x18>,%a0<== NOT EXECUTED
460b0: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
460b6: 4281 clrl %d1 <== NOT EXECUTED
460b8: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED
460bc: 2540 0060 movel %d0,%a2@(96) <== NOT EXECUTED
460c0: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED
460c4: 2540 0078 movel %d0,%a2@(120) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
460c8: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
460cc: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
460ce: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
460d2: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
&_Rate_monotonic_Information,
&the_period->Object,
(Objects_Name) name
);
*id = the_period->Object.id;
460d6: 2880 movel %d0,%a4@ <== NOT EXECUTED
_Thread_Enable_dispatch();
460d8: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
460da: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
460de: 4280 clrl %d0 <== NOT EXECUTED
460e0: 6006 bras 460e8 <rtems_rate_monotonic_create+0xb4><== NOT EXECUTED
)
{
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
460e2: 7003 moveq #3,%d0 <== NOT EXECUTED
460e4: 6002 bras 460e8 <rtems_rate_monotonic_create+0xb4><== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
460e6: 7009 moveq #9,%d0 <== NOT EXECUTED
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
460e8: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
460ee: 4e5e unlk %fp <== NOT EXECUTED
...
00050040 <rtems_rate_monotonic_delete>:
*/
rtems_status_code rtems_rate_monotonic_delete(
rtems_id id
)
{
50040: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
50044: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
_Objects_Get( &_Rate_monotonic_Information, id, location );
50046: 486e fffc pea %fp@(-4) <== NOT EXECUTED
5004a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
5004e: 4879 0007 4ecc pea 74ecc <_Rate_monotonic_Information> <== NOT EXECUTED
50054: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
5005a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
5005e: 2440 moveal %d0,%a2 <== NOT EXECUTED
50060: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
50064: 6638 bnes 5009e <rtems_rate_monotonic_delete+0x5e><== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Rate_monotonic_Information, &the_period->Object );
50066: 2f00 movel %d0,%sp@- <== NOT EXECUTED
50068: 4879 0007 4ecc pea 74ecc <_Rate_monotonic_Information> <== NOT EXECUTED
5006e: 4eb9 0005 3ec4 jsr 53ec4 <_Objects_Close> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_period->Timer );
50074: 486a 0010 pea %a2@(16) <== NOT EXECUTED
50078: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
5007e: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free (
Rate_monotonic_Control *the_period
)
{
_Objects_Free( &_Rate_monotonic_Information, &the_period->Object );
50082: 2f0a movel %a2,%sp@- <== NOT EXECUTED
50084: 4879 0007 4ecc pea 74ecc <_Rate_monotonic_Information> <== NOT EXECUTED
5008a: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
_Rate_monotonic_Free( the_period );
_Thread_Enable_dispatch();
50090: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
50096: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
5009a: 4280 clrl %d0 <== NOT EXECUTED
5009c: 6002 bras 500a0 <rtems_rate_monotonic_delete+0x60><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
5009e: 7004 moveq #4,%d0 <== NOT EXECUTED
}
500a0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
500a4: 4e5e unlk %fp <== NOT EXECUTED
0004b394 <rtems_rate_monotonic_get_statistics>:
rtems_status_code rtems_rate_monotonic_get_statistics(
rtems_id id,
rtems_rate_monotonic_period_statistics *statistics
)
{
4b394: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4b398: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b39a: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
4b39e: 4a8a tstl %a2 <== NOT EXECUTED
4b3a0: 6700 0096 beqw 4b438 <rtems_rate_monotonic_get_statistics+0xa4><== NOT EXECUTED
4b3a4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4b3a8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4b3ac: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
4b3b2: 4eb9 0004 8288 jsr 48288 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
4b3b8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4b3bc: 2040 moveal %d0,%a0 <== NOT EXECUTED
4b3be: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4b3c2: 6678 bnes 4b43c <rtems_rate_monotonic_get_statistics+0xa8><== NOT EXECUTED
case OBJECTS_LOCAL:
dst = statistics;
src = &the_period->Statistics;
dst->count = src->count;
4b3c4: 24a8 0054 movel %a0@(84),%a2@ <== NOT EXECUTED
dst->missed_count = src->missed_count;
4b3c8: 2568 0058 0004 movel %a0@(88),%a2@(4) <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time );
4b3ce: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED
4b3d2: 2228 0060 movel %a0@(96),%d1 <== NOT EXECUTED
4b3d6: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED
4b3da: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED
_Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time );
4b3de: 2028 0064 movel %a0@(100),%d0 <== NOT EXECUTED
4b3e2: 2228 0068 movel %a0@(104),%d1 <== NOT EXECUTED
4b3e6: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
4b3ea: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED
_Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time );
4b3ee: 2028 006c movel %a0@(108),%d0 <== NOT EXECUTED
4b3f2: 2228 0070 movel %a0@(112),%d1 <== NOT EXECUTED
4b3f6: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED
4b3fa: 2541 001c movel %d1,%a2@(28) <== NOT EXECUTED
_Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time );
4b3fe: 2028 0074 movel %a0@(116),%d0 <== NOT EXECUTED
4b402: 2228 0078 movel %a0@(120),%d1 <== NOT EXECUTED
4b406: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED
4b40a: 2541 0024 movel %d1,%a2@(36) <== NOT EXECUTED
_Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time );
4b40e: 2028 007c movel %a0@(124),%d0 <== NOT EXECUTED
4b412: 2228 0080 movel %a0@(128),%d1 <== NOT EXECUTED
4b416: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED
4b41a: 2541 002c movel %d1,%a2@(44) <== NOT EXECUTED
_Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time );
4b41e: 2028 0084 movel %a0@(132),%d0 <== NOT EXECUTED
4b422: 2228 0088 movel %a0@(136),%d1 <== NOT EXECUTED
4b426: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED
4b42a: 2541 0034 movel %d1,%a2@(52) <== NOT EXECUTED
dst->min_wall_time = src->min_wall_time;
dst->max_wall_time = src->max_wall_time;
dst->total_wall_time = src->total_wall_time;
#endif
_Thread_Enable_dispatch();
4b42e: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4b434: 4280 clrl %d0 <== NOT EXECUTED
4b436: 6006 bras 4b43e <rtems_rate_monotonic_get_statistics+0xaa><== NOT EXECUTED
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
return RTEMS_INVALID_ADDRESS;
4b438: 7009 moveq #9,%d0 <== NOT EXECUTED
4b43a: 6002 bras 4b43e <rtems_rate_monotonic_get_statistics+0xaa><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4b43c: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4b43e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4b442: 4e5e unlk %fp <== NOT EXECUTED
...
0004b448 <rtems_rate_monotonic_get_status>:
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
4b448: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4b44c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b44e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
4b452: 4a8a tstl %a2 <== NOT EXECUTED
4b454: 6700 0092 beqw 4b4e8 <rtems_rate_monotonic_get_status+0xa0><== NOT EXECUTED
4b458: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4b45c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4b460: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
4b466: 4eb9 0004 8288 jsr 48288 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
4b46c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4b470: 2040 moveal %d0,%a0 <== NOT EXECUTED
4b472: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4b476: 6674 bnes 4b4ec <rtems_rate_monotonic_get_status+0xa4><== NOT EXECUTED
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
4b478: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED
4b47c: 24a9 0008 movel %a1@(8),%a2@ <== NOT EXECUTED
status->state = the_period->state;
4b480: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED
4b484: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
4b488: 6612 bnes 4b49c <rtems_rate_monotonic_get_status+0x54><== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timespec_Set_to_zero( &status->since_last_period );
4b48a: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED
4b48e: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
_Timespec_Set_to_zero( &status->executed_since_last_period );
4b492: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED
4b496: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED
4b49a: 6042 bras 4b4de <rtems_rate_monotonic_get_status+0x96><== NOT EXECUTED
} else {
/*
* Grab the current status.
*/
valid_status =
4b49c: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
4b4a0: 486e ffec pea %fp@(-20) <== NOT EXECUTED
4b4a4: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4b4a6: 4eb9 0004 6120 jsr 46120 <_Rate_monotonic_Get_status> <== NOT EXECUTED
_Rate_monotonic_Get_status(
the_period, &since_last_period, &executed
);
if (!valid_status) {
4b4ac: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4b4b0: 4a00 tstb %d0 <== NOT EXECUTED
4b4b2: 660a bnes 4b4be <rtems_rate_monotonic_get_status+0x76><== NOT EXECUTED
_Thread_Enable_dispatch();
4b4b4: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
4b4ba: 700b moveq #11,%d0 <== NOT EXECUTED
4b4bc: 6030 bras 4b4ee <rtems_rate_monotonic_get_status+0xa6><== NOT EXECUTED
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec(
4b4be: 202e ffec movel %fp@(-20),%d0 <== NOT EXECUTED
4b4c2: 222e fff0 movel %fp@(-16),%d1 <== NOT EXECUTED
4b4c6: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED
4b4ca: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED
&since_last_period, &status->since_last_period
);
_Timestamp_To_timespec(
4b4ce: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED
4b4d2: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED
4b4d6: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
4b4da: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED
status->since_last_period = since_last_period;
status->executed_since_last_period = executed;
#endif
}
_Thread_Enable_dispatch();
4b4de: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4b4e4: 4280 clrl %d0 <== NOT EXECUTED
4b4e6: 6006 bras 4b4ee <rtems_rate_monotonic_get_status+0xa6><== NOT EXECUTED
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
return RTEMS_INVALID_ADDRESS;
4b4e8: 7009 moveq #9,%d0 <== NOT EXECUTED
4b4ea: 6002 bras 4b4ee <rtems_rate_monotonic_get_status+0xa6><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4b4ec: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4b4ee: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED
4b4f2: 4e5e unlk %fp <== NOT EXECUTED
...
000460f4 <rtems_rate_monotonic_ident>:
rtems_status_code rtems_rate_monotonic_ident(
rtems_name name,
rtems_id *id
)
{
460f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
460f8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
460fc: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
46102: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46106: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
4610c: 4eb9 0004 83f0 jsr 483f0 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
46112: 41f9 0005 bce6 lea 5bce6 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
46118: 4e5e unlk %fp <== NOT EXECUTED
4611a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
0004632a <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
4632a: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4632e: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
_Objects_Get( &_Rate_monotonic_Information, id, location );
46332: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46336: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4633a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4633c: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
46342: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46346: 4eb9 0004 8288 jsr 48288 <_Objects_Get> <== NOT EXECUTED
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
4634c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46350: 2440 moveal %d0,%a2 <== NOT EXECUTED
46352: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46356: 6600 0148 bnew 464a0 <rtems_rate_monotonic_period+0x176><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
4635a: 2039 0005 e4f0 movel 5e4f0 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
46360: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED
46364: 670c beqs 46372 <rtems_rate_monotonic_period+0x48><== NOT EXECUTED
_Thread_Enable_dispatch();
46366: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_OWNER_OF_RESOURCE;
4636c: 7417 moveq #23,%d2 <== NOT EXECUTED
4636e: 6000 0132 braw 464a2 <rtems_rate_monotonic_period+0x178><== NOT EXECUTED
}
if ( length == RTEMS_PERIOD_STATUS ) {
46372: 4a82 tstl %d2 <== NOT EXECUTED
46374: 6622 bnes 46398 <rtems_rate_monotonic_period+0x6e><== NOT EXECUTED
switch ( the_period->state ) {
46376: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED
4637a: 7204 moveq #4,%d1 <== NOT EXECUTED
4637c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4637e: 650c bcss 4638c <rtems_rate_monotonic_period+0x62><== NOT EXECUTED
46380: 41f9 0005 bb06 lea 5bb06 <CSWTCH.2>,%a0 <== NOT EXECUTED
46386: 2430 0c00 movel %a0@(00000000,%d0:l:4),%d2 <== NOT EXECUTED
4638a: 6002 bras 4638e <rtems_rate_monotonic_period+0x64><== NOT EXECUTED
4638c: 4282 clrl %d2 <== NOT EXECUTED
case RATE_MONOTONIC_ACTIVE:
default: /* unreached -- only to remove warnings */
return_value = RTEMS_SUCCESSFUL;
break;
}
_Thread_Enable_dispatch();
4638e: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return( return_value );
46394: 6000 010c braw 464a2 <rtems_rate_monotonic_period+0x178><== NOT EXECUTED
}
_ISR_Disable( level );
46398: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4639e: 40c4 movew %sr,%d4 <== NOT EXECUTED
463a0: 8084 orl %d4,%d0 <== NOT EXECUTED
463a2: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {
463a4: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED
463a8: 664a bnes 463f4 <rtems_rate_monotonic_period+0xca><== NOT EXECUTED
_ISR_Enable( level );
463aa: 46c4 movew %d4,%sr <== NOT EXECUTED
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
463ac: 2f0a movel %a2,%sp@- <== NOT EXECUTED
463ae: 4eb9 0004 61be jsr 461be <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
463b4: 7002 moveq #2,%d0 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
463b6: 223c 0004 66ec movel #288492,%d1 <== NOT EXECUTED
463bc: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
463c0: 2541 002c movel %d1,%a2@(44) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
463c4: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
463c8: 2543 0030 movel %d3,%a2@(48) <== NOT EXECUTED
the_watchdog->user_data = user_data;
463cc: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
463d0: 2542 003c movel %d2,%a2@(60) <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
463d4: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
463d8: 486a 0010 pea %a2@(16) <== NOT EXECUTED
463dc: 4879 0005 e410 pea 5e410 <_Watchdog_Ticks_chain> <== NOT EXECUTED
463e2: 4eb9 0004 9b50 jsr 49b50 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
463e8: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
463ee: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
463f2: 606c bras 46460 <rtems_rate_monotonic_period+0x136><== NOT EXECUTED
}
if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {
463f4: 7202 moveq #2,%d1 <== NOT EXECUTED
463f6: b280 cmpl %d0,%d1 <== NOT EXECUTED
463f8: 666a bnes 46464 <rtems_rate_monotonic_period+0x13a><== NOT EXECUTED
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
463fa: 2f0a movel %a2,%sp@- <== NOT EXECUTED
463fc: 4eb9 0004 6236 jsr 46236 <_Rate_monotonic_Update_statistics><== NOT EXECUTED
/*
* 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;
46402: 7001 moveq #1,%d0 <== NOT EXECUTED
the_period->next_length = length;
46404: 2542 003c movel %d2,%a2@(60) <== NOT EXECUTED
/*
* 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;
46408: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
the_period->next_length = length;
_ISR_Enable( level );
4640c: 46c4 movew %d4,%sr <== NOT EXECUTED
_Thread_Executing->Wait.id = the_period->Object.id;
4640e: 2079 0005 e4f0 moveal 5e4f0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
46414: 216a 0008 0020 movel %a2@(8),%a0@(32) <== NOT EXECUTED
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
4641a: 4878 4000 pea 4000 <D_MAX_EXP+0x3801> <== NOT EXECUTED
4641e: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46420: 4eb9 0004 94ec jsr 494ec <_Thread_Set_state> <== NOT EXECUTED
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
46426: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4642c: 40c1 movew %sr,%d1 <== NOT EXECUTED
4642e: 8081 orl %d1,%d0 <== NOT EXECUTED
46430: 46c0 movew %d0,%sr <== NOT EXECUTED
local_state = the_period->state;
the_period->state = RATE_MONOTONIC_ACTIVE;
46432: 7402 moveq #2,%d2 <== NOT EXECUTED
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
46434: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
46438: 2542 0038 movel %d2,%a2@(56) <== NOT EXECUTED
_ISR_Enable( level );
4643c: 46c1 movew %d1,%sr <== NOT EXECUTED
/*
* 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 )
4643e: 7203 moveq #3,%d1 <== NOT EXECUTED
46440: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46444: b280 cmpl %d0,%d1 <== NOT EXECUTED
46446: 6612 bnes 4645a <rtems_rate_monotonic_period+0x130><== NOT EXECUTED
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
46448: 4878 4000 pea 4000 <D_MAX_EXP+0x3801> <== NOT EXECUTED
4644c: 2f39 0005 e4f0 movel 5e4f0 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
46452: 4eb9 0004 89e0 jsr 489e0 <_Thread_Clear_state> <== NOT EXECUTED
46458: 508f addql #8,%sp <== NOT EXECUTED
_Thread_Enable_dispatch();
4645a: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46460: 4282 clrl %d2 <== NOT EXECUTED
46462: 603e bras 464a2 <rtems_rate_monotonic_period+0x178><== NOT EXECUTED
}
if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {
46464: 7204 moveq #4,%d1 <== NOT EXECUTED
46466: b280 cmpl %d0,%d1 <== NOT EXECUTED
46468: 6636 bnes 464a0 <rtems_rate_monotonic_period+0x176><== NOT EXECUTED
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
4646a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4646c: 4eb9 0004 6236 jsr 46236 <_Rate_monotonic_Update_statistics><== NOT EXECUTED
_ISR_Enable( level );
46472: 46c4 movew %d4,%sr <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
46474: 7002 moveq #2,%d0 <== NOT EXECUTED
the_period->next_length = length;
46476: 2542 003c movel %d2,%a2@(60) <== NOT EXECUTED
*/
_Rate_monotonic_Update_statistics( the_period );
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
4647a: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
4647e: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
46482: 486a 0010 pea %a2@(16) <== NOT EXECUTED
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_TIMEOUT;
46486: 7406 moveq #6,%d2 <== NOT EXECUTED
46488: 4879 0005 e410 pea 5e410 <_Watchdog_Ticks_chain> <== NOT EXECUTED
4648e: 4eb9 0004 9b50 jsr 49b50 <_Watchdog_Insert> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
46494: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TIMEOUT;
4649a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4649e: 6002 bras 464a2 <rtems_rate_monotonic_period+0x178><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
464a0: 7404 moveq #4,%d2 <== NOT EXECUTED
}
464a2: 2002 movel %d2,%d0 <== NOT EXECUTED
464a4: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED
464aa: 4e5e unlk %fp <== NOT EXECUTED
...
0004662c <rtems_rate_monotonic_report_statistics>:
void rtems_rate_monotonic_report_statistics( void )
{
4662c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin );
46630: 4879 0004 b25c pea 4b25c <printk_plugin> <== NOT EXECUTED
46636: 42a7 clrl %sp@- <== NOT EXECUTED
46638: 4eb9 0004 64b0 jsr 464b0 <rtems_rate_monotonic_report_statistics_with_plugin><== NOT EXECUTED
4663e: 508f addql #8,%sp <== NOT EXECUTED
}
46640: 4e5e unlk %fp <== NOT EXECUTED
000464b0 <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
464b0: 4e56 ff78 linkw %fp,#-136 <== NOT EXECUTED
464b4: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
464b8: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
464bc: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
464c0: 4a8a tstl %a2 <== NOT EXECUTED
464c2: 6700 015e beqw 46622 <rtems_rate_monotonic_report_statistics_with_plugin+0x172><== NOT EXECUTED
return;
(*print)( context, "Period information by period\n" );
464c6: 4879 0005 bb1a pea 5bb1a <CSWTCH.2+0x14> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
status = rtems_rate_monotonic_get_status( id, &the_status );
if ( status != RTEMS_SUCCESSFUL )
continue;
#else
(void) rtems_rate_monotonic_get_status( id, &the_status );
464cc: 2e0e movel %fp,%d7 <== NOT EXECUTED
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
464ce: 2a0e movel %fp,%d5 <== 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 );
464d0: 280e movel %fp,%d4 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
status = rtems_rate_monotonic_get_status( id, &the_status );
if ( status != RTEMS_SUCCESSFUL )
continue;
#else
(void) rtems_rate_monotonic_get_status( id, &the_status );
464d2: 0687 ffff ffda addil #-38,%d7 <== NOT EXECUTED
464d8: 4bf9 0004 b448 lea 4b448 <rtems_rate_monotonic_get_status>,%a5<== NOT EXECUTED
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
464de: 5b85 subql #5,%d5 <== NOT EXECUTED
464e0: 49f9 0004 67b0 lea 467b0 <rtems_object_get_name>,%a4 <== 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 );
464e6: 0684 ffff fff2 addil #-14,%d4 <== NOT EXECUTED
464ec: 47f9 0004 97ac lea 497ac <_Timespec_Divide_by_integer>,%a3 <== NOT EXECUTED
char name[5];
if ( !print )
return;
(*print)( context, "Period information by period\n" );
464f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
464f4: 4e92 jsr %a2@ <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
464f6: 4879 0005 bb38 pea 5bb38 <CSWTCH.2+0x32> <== NOT EXECUTED
464fc: 2f02 movel %d2,%sp@- <== NOT EXECUTED
464fe: 4e92 jsr %a2@ <== NOT EXECUTED
(*print)( context, "--- Wall times are in seconds ---\n" );
46500: 4879 0005 bb5a pea 5bb5a <CSWTCH.2+0x54> <== NOT EXECUTED
46506: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46508: 4e92 jsr %a2@ <== NOT EXECUTED
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
4650a: 4879 0005 bb7d pea 5bb7d <CSWTCH.2+0x77> <== NOT EXECUTED
46510: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46512: 4e92 jsr %a2@ <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
46514: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
46518: 2ebc 0005 bbc8 movel #375752,%sp@ <== NOT EXECUTED
4651e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46520: 4e92 jsr %a2@ <== NOT EXECUTED
/*
* 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 ;
46522: 2639 0005 e246 movel 5e246 <_Rate_monotonic_Information+0x6>,%d3<== NOT EXECUTED
46528: 508f addql #8,%sp <== NOT EXECUTED
4652a: 6000 00ec braw 46618 <rtems_rate_monotonic_report_statistics_with_plugin+0x168><== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
4652e: 486e ffa2 pea %fp@(-94) <== NOT EXECUTED
46532: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46534: 4eb9 0004 b394 jsr 4b394 <rtems_rate_monotonic_get_statistics><== NOT EXECUTED
if ( status != RTEMS_SUCCESSFUL )
4653a: 508f addql #8,%sp <== NOT EXECUTED
4653c: 4a80 tstl %d0 <== NOT EXECUTED
4653e: 6600 00d6 bnew 46616 <rtems_rate_monotonic_report_statistics_with_plugin+0x166><== NOT EXECUTED
#if defined(RTEMS_DEBUG)
status = rtems_rate_monotonic_get_status( id, &the_status );
if ( status != RTEMS_SUCCESSFUL )
continue;
#else
(void) rtems_rate_monotonic_get_status( id, &the_status );
46542: 2f07 movel %d7,%sp@- <== NOT EXECUTED
46544: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46546: 4e95 jsr %a5@ <== NOT EXECUTED
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
46548: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4654a: 4878 0005 pea 5 <COMPARE> <== NOT EXECUTED
4654e: 2f2e ffda movel %fp@(-38),%sp@- <== NOT EXECUTED
46552: 4e94 jsr %a4@ <== NOT EXECUTED
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
46554: 2f2e ffa6 movel %fp@(-90),%sp@- <== NOT EXECUTED
46558: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED
4655c: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4655e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46560: 4879 0005 bc14 pea 5bc14 <CSWTCH.2+0x10e> <== NOT EXECUTED
46566: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46568: 4e92 jsr %a2@ <== NOT EXECUTED
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
4656a: 202e ffa2 movel %fp@(-94),%d0 <== NOT EXECUTED
4656e: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED
46572: 6610 bnes 46584 <rtems_rate_monotonic_report_statistics_with_plugin+0xd4><== NOT EXECUTED
(*print)( context, "\n" );
46574: 4879 0005 ba3e pea 5ba3e <rtems_status_assoc+0x19e> <== NOT EXECUTED
4657a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4657c: 4e92 jsr %a2@ <== NOT EXECUTED
continue;
4657e: 508f addql #8,%sp <== NOT EXECUTED
46580: 6000 0094 braw 46616 <rtems_rate_monotonic_report_statistics_with_plugin+0x166><== 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 );
46584: 2f04 movel %d4,%sp@- <== NOT EXECUTED
46586: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46588: 486e ffba pea %fp@(-70) <== NOT EXECUTED
4658c: 4e93 jsr %a3@ <== NOT EXECUTED
(*print)( context,
4658e: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED
46592: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED
46598: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED
4659c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4659e: 202e ffb6 movel %fp@(-74),%d0 <== NOT EXECUTED
465a2: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED
465a6: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED
465aa: 2f00 movel %d0,%sp@- <== NOT EXECUTED
465ac: 202e ffae movel %fp@(-82),%d0 <== NOT EXECUTED
465b0: 2f2e ffb2 movel %fp@(-78),%sp@- <== NOT EXECUTED
465b4: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED
465b8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
465ba: 2f2e ffaa movel %fp@(-86),%sp@- <== NOT EXECUTED
465be: 4879 0005 bc2b pea 5bc2b <CSWTCH.2+0x125> <== NOT EXECUTED
465c4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
465c6: 4e92 jsr %a2@ <== NOT EXECUTED
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);
465c8: 4fef 0028 lea %sp@(40),%sp <== NOT EXECUTED
465cc: 2e84 movel %d4,%sp@ <== NOT EXECUTED
465ce: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED
465d2: 486e ffd2 pea %fp@(-46) <== NOT EXECUTED
465d6: 4e93 jsr %a3@ <== NOT EXECUTED
(*print)( context,
465d8: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED
465dc: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED
465e2: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED
465e6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
465e8: 202e ffce movel %fp@(-50),%d0 <== NOT EXECUTED
465ec: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED
465f0: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED
465f4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
465f6: 202e ffc6 movel %fp@(-58),%d0 <== NOT EXECUTED
465fa: 2f2e ffca movel %fp@(-54),%sp@- <== NOT EXECUTED
465fe: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED
46602: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46604: 2f2e ffc2 movel %fp@(-62),%sp@- <== NOT EXECUTED
46608: 4879 0005 bc4a pea 5bc4a <CSWTCH.2+0x144> <== NOT EXECUTED
4660e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46610: 4e92 jsr %a2@ <== NOT EXECUTED
46612: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED
* 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++ ) {
46616: 5283 addql #1,%d3 <== NOT EXECUTED
/*
* 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 ;
46618: b6b9 0005 e24a cmpl 5e24a <_Rate_monotonic_Information+0xa>,%d3<== NOT EXECUTED
4661e: 6300 ff0e blsw 4652e <rtems_rate_monotonic_report_statistics_with_plugin+0x7e><== NOT EXECUTED
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
46622: 4cee 3cfc ff78 moveml %fp@(-136),%d2-%d7/%a2-%a5 <== NOT EXECUTED
46628: 4e5e unlk %fp <== NOT EXECUTED
00046644 <rtems_rate_monotonic_reset_all_statistics>:
/*
* rtems_rate_monotonic_reset_all_statistics
*/
void rtems_rate_monotonic_reset_all_statistics( void )
{
46644: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46648: 2039 0005 e330 movel 5e330 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4664e: 5280 addql #1,%d0 <== NOT EXECUTED
46650: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46652: 23c0 0005 e330 movel %d0,5e330 <_Thread_Dispatch_disable_level><== NOT EXECUTED
46658: 2f02 movel %d2,%sp@- <== NOT EXECUTED
/*
* Cycle through all possible ids and try to reset 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 ;
4665a: 2439 0005 e246 movel 5e246 <_Rate_monotonic_Information+0x6>,%d2<== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
(void) rtems_rate_monotonic_reset_statistics( id );
46660: 45f9 0004 6688 lea 46688 <rtems_rate_monotonic_reset_statistics>,%a2<== NOT EXECUTED
/*
* Cycle through all possible ids and try to reset 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 ;
46666: 6008 bras 46670 <rtems_rate_monotonic_reset_all_statistics+0x2c><== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
(void) rtems_rate_monotonic_reset_statistics( id );
46668: 2f02 movel %d2,%sp@- <== NOT EXECUTED
* Cycle through all possible ids and try to reset 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++ ) {
4666a: 5282 addql #1,%d2 <== NOT EXECUTED
(void) rtems_rate_monotonic_reset_statistics( id );
4666c: 4e92 jsr %a2@ <== NOT EXECUTED
* Cycle through all possible ids and try to reset 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++ ) {
4666e: 588f addql #4,%sp <== NOT EXECUTED
/*
* Cycle through all possible ids and try to reset 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 ;
46670: b4b9 0005 e24a cmpl 5e24a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED
46676: 63f0 blss 46668 <rtems_rate_monotonic_reset_all_statistics+0x24><== NOT EXECUTED
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
}
46678: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4667c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46680: 4e5e unlk %fp <== NOT EXECUTED
}
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
46682: 4ef9 0004 8d3e jmp 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
00046688 <rtems_rate_monotonic_reset_statistics>:
*/
rtems_status_code rtems_rate_monotonic_reset_statistics(
rtems_id id
)
{
46688: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4668c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4668e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46692: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46696: 4879 0005 e240 pea 5e240 <_Rate_monotonic_Information> <== NOT EXECUTED
4669c: 4eb9 0004 8288 jsr 48288 <_Objects_Get> <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
466a2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
466a6: 2440 moveal %d0,%a2 <== NOT EXECUTED
466a8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
466ac: 6634 bnes 466e2 <rtems_rate_monotonic_reset_statistics+0x5a><== NOT EXECUTED
case OBJECTS_LOCAL:
_Rate_monotonic_Reset_statistics( the_period );
466ae: 4878 0038 pea 38 <DBL_MANT_DIG+0x3> <== NOT EXECUTED
466b2: 42a7 clrl %sp@- <== NOT EXECUTED
466b4: 486a 0054 pea %a2@(84) <== NOT EXECUTED
466b8: 4eb9 0004 db54 jsr 4db54 <memset> <== NOT EXECUTED
466be: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED
466c4: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED
466c8: 2540 0060 movel %d0,%a2@(96) <== NOT EXECUTED
466cc: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED
466d0: 2540 0078 movel %d0,%a2@(120) <== NOT EXECUTED
_Thread_Enable_dispatch();
466d4: 4eb9 0004 8d3e jsr 48d3e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
466da: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
466de: 4280 clrl %d0 <== NOT EXECUTED
466e0: 6002 bras 466e4 <rtems_rate_monotonic_reset_statistics+0x5c><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
466e2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
466e4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
466e8: 4e5e unlk %fp <== NOT EXECUTED
0005068c <rtems_region_create>:
uintptr_t length,
uintptr_t page_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
5068c: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
50690: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ <== NOT EXECUTED
50694: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
50698: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
5069c: 2c2e 0010 movel %fp@(16),%d6 <== NOT EXECUTED
506a0: 2a2e 0014 movel %fp@(20),%d5 <== NOT EXECUTED
506a4: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED
506a8: 266e 001c moveal %fp@(28),%a3 <== NOT EXECUTED
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
506ac: 4a83 tstl %d3 <== NOT EXECUTED
506ae: 6700 00be beqw 5076e <rtems_region_create+0xe2> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !starting_address )
506b2: 4a82 tstl %d2 <== NOT EXECUTED
506b4: 6700 00bc beqw 50772 <rtems_region_create+0xe6> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !id )
506b8: 4a8b tstl %a3 <== NOT EXECUTED
506ba: 6700 00b6 beqw 50772 <rtems_region_create+0xe6> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
506be: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
506c4: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
* This function allocates a region control block from
* the inactive chain of free region control blocks.
*/
RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void )
{
return (Region_Control *) _Objects_Allocate( &_Region_Information );
506ca: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
506d0: 4eb9 0005 3e48 jsr 53e48 <_Objects_Allocate> <== NOT EXECUTED
the_region = _Region_Allocate();
if ( !the_region )
506d6: 508f addql #8,%sp <== NOT EXECUTED
506d8: 2440 moveal %d0,%a2 <== NOT EXECUTED
506da: 4a80 tstl %d0 <== NOT EXECUTED
506dc: 677e beqs 5075c <rtems_region_create+0xd0> <== NOT EXECUTED
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
506de: 2f05 movel %d5,%sp@- <== NOT EXECUTED
506e0: 2f06 movel %d6,%sp@- <== NOT EXECUTED
506e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
506e4: 486a 0068 pea %a2@(104) <== NOT EXECUTED
506e8: 4eb9 0005 3a54 jsr 53a54 <_Heap_Initialize> <== NOT EXECUTED
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
506ee: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
if ( !the_region )
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
506f2: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
506f6: 6614 bnes 5070c <rtems_region_create+0x80> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
506f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
506fa: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
_Region_Free( the_region );
return_status = RTEMS_INVALID_SIZE;
50700: 7408 moveq #8,%d2 <== NOT EXECUTED
50702: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
50708: 508f addql #8,%sp <== NOT EXECUTED
5070a: 6052 bras 5075e <rtems_region_create+0xd2> <== NOT EXECUTED
}
else {
the_region->starting_address = starting_address;
5070c: 2542 0050 movel %d2,%a2@(80) <== NOT EXECUTED
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
return_status = RTEMS_SUCCESSFUL;
50710: 4282 clrl %d2 <== NOT EXECUTED
}
else {
the_region->starting_address = starting_address;
the_region->length = length;
50712: 2546 0054 movel %d6,%a2@(84) <== NOT EXECUTED
the_region->page_size = page_size;
the_region->attribute_set = attribute_set;
the_region->number_of_used_blocks = 0;
_Thread_queue_Initialize(
50716: 44c4 movew %d4,%ccr <== NOT EXECUTED
50718: 57c0 seq %d0 <== NOT EXECUTED
else {
the_region->starting_address = starting_address;
the_region->length = length;
the_region->page_size = page_size;
5071a: 2545 0058 movel %d5,%a2@(88) <== NOT EXECUTED
the_region->attribute_set = attribute_set;
the_region->number_of_used_blocks = 0;
_Thread_queue_Initialize(
5071e: 49c0 extbl %d0 <== NOT EXECUTED
50720: 4480 negl %d0 <== NOT EXECUTED
else {
the_region->starting_address = starting_address;
the_region->length = length;
the_region->page_size = page_size;
the_region->attribute_set = attribute_set;
50722: 2544 0060 movel %d4,%a2@(96) <== NOT EXECUTED
the_region->number_of_used_blocks = 0;
50726: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED
_Thread_queue_Initialize(
5072a: 4878 0006 pea 6 <EXTENDSFDF> <== NOT EXECUTED
5072e: 4878 0040 pea 40 <DBL_MANT_DIG+0xb> <== NOT EXECUTED
50732: 2f00 movel %d0,%sp@- <== NOT EXECUTED
50734: 486a 0010 pea %a2@(16) <== NOT EXECUTED
50738: 4eb9 0005 540c jsr 5540c <_Thread_queue_Initialize> <== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
5073e: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
50742: 4281 clrl %d1 <== NOT EXECUTED
&_Region_Information,
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
50744: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
50748: 2079 0007 4f1c moveal 74f1c <_Region_Information+0x18>,%a0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
5074e: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
50750: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
50754: 2543 000c movel %d3,%a2@(12) <== NOT EXECUTED
50758: 2680 movel %d0,%a3@ <== NOT EXECUTED
5075a: 6002 bras 5075e <rtems_region_create+0xd2> <== NOT EXECUTED
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Allocate();
if ( !the_region )
return_status = RTEMS_TOO_MANY;
5075c: 7405 moveq #5,%d2 <== NOT EXECUTED
*id = the_region->Object.id;
return_status = RTEMS_SUCCESSFUL;
}
}
_RTEMS_Unlock_allocator();
5075e: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50764: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
5076a: 588f addql #4,%sp <== NOT EXECUTED
5076c: 6006 bras 50774 <rtems_region_create+0xe8> <== NOT EXECUTED
{
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
5076e: 7403 moveq #3,%d2 <== NOT EXECUTED
50770: 6002 bras 50774 <rtems_region_create+0xe8> <== NOT EXECUTED
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
if ( !id )
return RTEMS_INVALID_ADDRESS;
50772: 7409 moveq #9,%d2 <== NOT EXECUTED
}
}
_RTEMS_Unlock_allocator();
return return_status;
}
50774: 2002 movel %d2,%d0 <== NOT EXECUTED
50776: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED
5077c: 4e5e unlk %fp <== NOT EXECUTED
00050780 <rtems_region_delete>:
*/
rtems_status_code rtems_region_delete(
rtems_id id
)
{
50780: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
50784: 2f0a movel %a2,%sp@- <== NOT EXECUTED
50786: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
_RTEMS_Lock_allocator();
50788: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5078e: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
_Objects_Get_no_protection( &_Region_Information, id, location );
50794: 486e fffc pea %fp@(-4) <== NOT EXECUTED
50798: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
5079c: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
507a2: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
507a8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
507ac: 2440 moveal %d0,%a2 <== NOT EXECUTED
507ae: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
507b2: 662a bnes 507de <rtems_region_delete+0x5e> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 5 );
if ( the_region->number_of_used_blocks != 0 )
507b4: 4aaa 0064 tstl %a2@(100) <== NOT EXECUTED
507b8: 6628 bnes 507e2 <rtems_region_delete+0x62> <== NOT EXECUTED
return_status = RTEMS_RESOURCE_IN_USE;
else {
_Objects_Close( &_Region_Information, &the_region->Object );
507ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED
507bc: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
_Region_Free( the_region );
return_status = RTEMS_SUCCESSFUL;
507c2: 4282 clrl %d2 <== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 5 );
if ( the_region->number_of_used_blocks != 0 )
return_status = RTEMS_RESOURCE_IN_USE;
else {
_Objects_Close( &_Region_Information, &the_region->Object );
507c4: 4eb9 0005 3ec4 jsr 53ec4 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
507ca: 2f0a movel %a2,%sp@- <== NOT EXECUTED
507cc: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
507d2: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
507d8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
507dc: 6006 bras 507e4 <rtems_region_delete+0x64> <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
507de: 7404 moveq #4,%d2 <== NOT EXECUTED
507e0: 6002 bras 507e4 <rtems_region_delete+0x64> <== NOT EXECUTED
switch ( location ) {
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 5 );
if ( the_region->number_of_used_blocks != 0 )
return_status = RTEMS_RESOURCE_IN_USE;
507e2: 740c moveq #12,%d2 <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
507e4: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
507ea: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
}
507f0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
507f4: 2002 movel %d2,%d0 <== NOT EXECUTED
507f6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
507fa: 4e5e unlk %fp <== NOT EXECUTED
...
00050800 <rtems_region_extend>:
rtems_status_code rtems_region_extend(
rtems_id id,
void *starting_address,
uintptr_t length
)
{
50800: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
50804: 2f0a movel %a2,%sp@- <== NOT EXECUTED
50806: 2f02 movel %d2,%sp@- <== NOT EXECUTED
50808: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
bool extend_ok;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
5080c: 676e beqs 5087c <rtems_region_extend+0x7c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
5080e: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50814: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
_Objects_Get_no_protection( &_Region_Information, id, location );
5081a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
5081e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50822: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
50828: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
5082e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50832: 2440 moveal %d0,%a2 <== NOT EXECUTED
50834: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED
50838: 662c bnes 50866 <rtems_region_extend+0x66> <== NOT EXECUTED
case OBJECTS_LOCAL:
extend_ok = _Heap_Extend(
5083a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
5083e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
50842: 2f02 movel %d2,%sp@- <== NOT EXECUTED
50844: 486a 0068 pea %a2@(104) <== NOT EXECUTED
50848: 4eb9 0005 3514 jsr 53514 <_Heap_Extend> <== NOT EXECUTED
starting_address,
length,
&amount_extended
);
if ( extend_ok ) {
5084e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50852: 4a00 tstb %d0 <== NOT EXECUTED
50854: 6714 beqs 5086a <rtems_region_extend+0x6a> <== NOT EXECUTED
the_region->length += amount_extended;
50856: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED
5085a: d1aa 0054 addl %d0,%a2@(84) <== NOT EXECUTED
the_region->maximum_segment_size += amount_extended;
return_status = RTEMS_SUCCESSFUL;
5085e: 4282 clrl %d2 <== NOT EXECUTED
&amount_extended
);
if ( extend_ok ) {
the_region->length += amount_extended;
the_region->maximum_segment_size += amount_extended;
50860: d1aa 005c addl %d0,%a2@(92) <== NOT EXECUTED
50864: 6006 bras 5086c <rtems_region_extend+0x6c> <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
50866: 7404 moveq #4,%d2 <== NOT EXECUTED
50868: 6002 bras 5086c <rtems_region_extend+0x6c> <== NOT EXECUTED
if ( extend_ok ) {
the_region->length += amount_extended;
the_region->maximum_segment_size += amount_extended;
return_status = RTEMS_SUCCESSFUL;
} else {
return_status = RTEMS_INVALID_ADDRESS;
5086a: 7409 moveq #9,%d2 <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
5086c: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50872: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
50878: 588f addql #4,%sp <== NOT EXECUTED
5087a: 6002 bras 5087e <rtems_region_extend+0x7e> <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
5087c: 7409 moveq #9,%d2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
5087e: 2002 movel %d2,%d0 <== NOT EXECUTED
50880: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED
50884: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
50888: 4e5e unlk %fp <== NOT EXECUTED
0005088c <rtems_region_get_free_information>:
rtems_status_code rtems_region_get_free_information(
rtems_id id,
Heap_Information_block *the_info
)
{
5088c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
50890: 2f0a movel %a2,%sp@- <== NOT EXECUTED
50892: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
50896: 4a8a tstl %a2 <== NOT EXECUTED
50898: 675e beqs 508f8 <rtems_region_get_free_information+0x6c><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
5089a: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
508a0: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
508a6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
508aa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
508ae: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
508b4: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
508ba: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
508be: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
508c2: 6620 bnes 508e4 <rtems_region_get_free_information+0x58><== NOT EXECUTED
case OBJECTS_LOCAL:
the_info->Used.number = 0;
508c4: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
the_info->Used.total = 0;
the_info->Used.largest = 0;
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
508c8: 2040 moveal %d0,%a0 <== NOT EXECUTED
switch ( location ) {
case OBJECTS_LOCAL:
the_info->Used.number = 0;
the_info->Used.total = 0;
508ca: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED
the_info->Used.largest = 0;
508ce: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
508d2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
508d4: 4868 0068 pea %a0@(104) <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
508d8: 95ca subal %a2,%a2 <== NOT EXECUTED
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
508da: 4eb9 0005 3874 jsr 53874 <_Heap_Get_free_information> <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
break;
508e0: 508f addql #8,%sp <== NOT EXECUTED
508e2: 6004 bras 508e8 <rtems_region_get_free_information+0x5c><== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
508e4: 347c 0004 moveaw #4,%a2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
508e8: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
508ee: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
508f4: 588f addql #4,%sp <== NOT EXECUTED
508f6: 6004 bras 508fc <rtems_region_get_free_information+0x70><== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
508f8: 347c 0009 moveaw #9,%a2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
508fc: 200a movel %a2,%d0 <== NOT EXECUTED
508fe: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
50902: 4e5e unlk %fp <== NOT EXECUTED
...
00050908 <rtems_region_get_information>:
rtems_status_code rtems_region_get_information(
rtems_id id,
Heap_Information_block *the_info
)
{
50908: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
5090c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5090e: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
50912: 6750 beqs 50964 <rtems_region_get_information+0x5c><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
50914: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5091a: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
50920: 486e fffc pea %fp@(-4) <== NOT EXECUTED
50924: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50928: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
5092e: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
50934: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50938: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
5093c: 6614 bnes 50952 <rtems_region_get_information+0x4a><== NOT EXECUTED
case OBJECTS_LOCAL:
_Heap_Get_information( &the_region->Memory, the_info );
5093e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
50940: 2040 moveal %d0,%a0 <== NOT EXECUTED
50942: 4868 0068 pea %a0@(104) <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
50946: 4282 clrl %d2 <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_Heap_Get_information( &the_region->Memory, the_info );
50948: 4eb9 0005 38b8 jsr 538b8 <_Heap_Get_information> <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
break;
5094e: 508f addql #8,%sp <== NOT EXECUTED
50950: 6002 bras 50954 <rtems_region_get_information+0x4c><== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
50952: 7404 moveq #4,%d2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
50954: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5095a: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
50960: 588f addql #4,%sp <== NOT EXECUTED
50962: 6002 bras 50966 <rtems_region_get_information+0x5e><== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
50964: 7409 moveq #9,%d2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
50966: 2002 movel %d2,%d0 <== NOT EXECUTED
50968: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
5096c: 4e5e unlk %fp <== NOT EXECUTED
00050970 <rtems_region_get_segment>:
uintptr_t size,
rtems_option option_set,
rtems_interval timeout,
void **segment
)
{
50970: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
50974: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED
50978: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
5097c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
50980: 286e 0018 moveal %fp@(24),%a4 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
50984: 4a8c tstl %a4 <== NOT EXECUTED
50986: 6700 00e4 beqw 50a6c <rtems_region_get_segment+0xfc> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
*segment = NULL;
5098a: 4294 clrl %a4@ <== NOT EXECUTED
if ( size == 0 )
5098c: 4a82 tstl %d2 <== NOT EXECUTED
5098e: 6700 00e0 beqw 50a70 <rtems_region_get_segment+0x100> <== NOT EXECUTED
return RTEMS_INVALID_SIZE;
_RTEMS_Lock_allocator();
50992: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50998: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
5099e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
509a2: 2f03 movel %d3,%sp@- <== NOT EXECUTED
509a4: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
executing = _Thread_Executing;
509aa: 2679 0007 51bc moveal 751bc <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED
509b0: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
509b6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
509ba: 2440 moveal %d0,%a2 <== NOT EXECUTED
509bc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
509c0: 6600 0090 bnew 50a52 <rtems_region_get_segment+0xe2> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( size > the_region->maximum_segment_size )
509c4: b4aa 005c cmpl %a2@(92),%d2 <== NOT EXECUTED
509c8: 6200 008c bhiw 50a56 <rtems_region_get_segment+0xe6> <== NOT EXECUTED
* @brief See _Heap_Allocate_aligned_with_boundary() with alignment and
* boundary equals zero.
*/
RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size )
{
return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
509cc: 42a7 clrl %sp@- <== NOT EXECUTED
509ce: 42a7 clrl %sp@- <== NOT EXECUTED
509d0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
509d2: 486a 0068 pea %a2@(104) <== NOT EXECUTED
509d6: 4eb9 0005 3378 jsr 53378 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED
the_segment = _Region_Allocate_segment( the_region, size );
_Region_Debug_Walk( the_region, 2 );
if ( the_segment ) {
509dc: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
509e0: 4a80 tstl %d0 <== NOT EXECUTED
509e2: 670a beqs 509ee <rtems_region_get_segment+0x7e> <== NOT EXECUTED
the_region->number_of_used_blocks += 1;
509e4: 52aa 0064 addql #1,%a2@(100) <== NOT EXECUTED
*segment = the_segment;
return_status = RTEMS_SUCCESSFUL;
509e8: 4282 clrl %d2 <== NOT EXECUTED
_Region_Debug_Walk( the_region, 2 );
if ( the_segment ) {
the_region->number_of_used_blocks += 1;
*segment = the_segment;
509ea: 2880 movel %d0,%a4@ <== NOT EXECUTED
509ec: 606e bras 50a5c <rtems_region_get_segment+0xec> <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
} else if ( _Options_Is_no_wait( option_set ) ) {
509ee: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
509f2: 0800 0000 btst #0,%d0 <== NOT EXECUTED
509f6: 6662 bnes 50a5a <rtems_region_get_segment+0xea> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
509f8: 2039 0007 4ff4 movel 74ff4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
509fe: 5280 addql #1,%d0 <== NOT EXECUTED
50a00: 23c0 0007 4ff4 movel %d0,74ff4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* Switch from using the memory allocation mutex to using a
* dispatching disabled critical section. We have to do this
* because this thread is going to block.
*/
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
50a06: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50a0c: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
executing->Wait.queue = &the_region->Wait_queue;
50a12: 200a movel %a2,%d0 <== NOT EXECUTED
50a14: 0680 0000 0010 addil #16,%d0 <== NOT EXECUTED
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;
50a1a: 7201 moveq #1,%d1 <== NOT EXECUTED
50a1c: 2740 0044 movel %d0,%a3@(68) <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.count = size;
50a20: 2742 0024 movel %d2,%a3@(36) <== NOT EXECUTED
*/
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
executing->Wait.queue = &the_region->Wait_queue;
executing->Wait.id = id;
50a24: 2743 0020 movel %d3,%a3@(32) <== NOT EXECUTED
executing->Wait.count = size;
executing->Wait.return_argument = segment;
50a28: 274c 0028 movel %a4,%a3@(40) <== NOT EXECUTED
50a2c: 2541 0040 movel %d1,%a2@(64) <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_region->Wait_queue );
_Thread_queue_Enqueue( &the_region->Wait_queue, timeout );
50a30: 4879 0005 54dc pea 554dc <_Thread_queue_Timeout> <== NOT EXECUTED
50a36: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
50a3a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
50a3c: 4eb9 0005 51c8 jsr 551c8 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
50a42: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return (rtems_status_code) executing->Wait.return_code;
50a48: 242b 0034 movel %a3@(52),%d2 <== NOT EXECUTED
50a4c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50a50: 6020 bras 50a72 <rtems_region_get_segment+0x102> <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
50a52: 7404 moveq #4,%d2 <== NOT EXECUTED
50a54: 6006 bras 50a5c <rtems_region_get_segment+0xec> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( size > the_region->maximum_segment_size )
return_status = RTEMS_INVALID_SIZE;
50a56: 7408 moveq #8,%d2 <== NOT EXECUTED
50a58: 6002 bras 50a5c <rtems_region_get_segment+0xec> <== NOT EXECUTED
if ( the_segment ) {
the_region->number_of_used_blocks += 1;
*segment = the_segment;
return_status = RTEMS_SUCCESSFUL;
} else if ( _Options_Is_no_wait( option_set ) ) {
return_status = RTEMS_UNSATISFIED;
50a5a: 740d moveq #13,%d2 <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
50a5c: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50a62: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
50a68: 588f addql #4,%sp <== NOT EXECUTED
50a6a: 6006 bras 50a72 <rtems_region_get_segment+0x102> <== NOT EXECUTED
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
return RTEMS_INVALID_ADDRESS;
50a6c: 7409 moveq #9,%d2 <== NOT EXECUTED
50a6e: 6002 bras 50a72 <rtems_region_get_segment+0x102> <== NOT EXECUTED
*segment = NULL;
if ( size == 0 )
return RTEMS_INVALID_SIZE;
50a70: 7408 moveq #8,%d2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
50a72: 2002 movel %d2,%d0 <== NOT EXECUTED
50a74: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 <== NOT EXECUTED
50a7a: 4e5e unlk %fp <== NOT EXECUTED
...
00050a80 <rtems_region_get_segment_size>:
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
50a80: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
50a84: 2f03 movel %d3,%sp@- <== NOT EXECUTED
50a86: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
50a8a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
50a8c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
50a90: 6768 beqs 50afa <rtems_region_get_segment_size+0x7a><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !size )
50a92: 4a83 tstl %d3 <== NOT EXECUTED
50a94: 6764 beqs 50afa <rtems_region_get_segment_size+0x7a><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
50a96: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50a9c: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
50aa2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
50aa6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50aaa: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
50ab0: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
50ab6: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
50aba: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50abe: 6708 beqs 50ac8 <rtems_region_get_segment_size+0x48><== NOT EXECUTED
50ac0: 7001 moveq #1,%d0 <== NOT EXECUTED
50ac2: b081 cmpl %d1,%d0 <== NOT EXECUTED
50ac4: 661a bnes 50ae0 <rtems_region_get_segment_size+0x60><== NOT EXECUTED
50ac6: 601c bras 50ae4 <rtems_region_get_segment_size+0x64><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
50ac8: 2f03 movel %d3,%sp@- <== NOT EXECUTED
50aca: 2040 moveal %d0,%a0 <== NOT EXECUTED
50acc: 2f02 movel %d2,%sp@- <== NOT EXECUTED
50ace: 4868 0068 pea %a0@(104) <== NOT EXECUTED
50ad2: 4eb9 0005 3d1c jsr 53d1c <_Heap_Size_of_alloc_area> <== NOT EXECUTED
50ad8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
50adc: 4a00 tstb %d0 <== NOT EXECUTED
50ade: 6708 beqs 50ae8 <rtems_region_get_segment_size+0x68><== NOT EXECUTED
void *segment,
uintptr_t *size
)
{
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
50ae0: 4282 clrl %d2 <== NOT EXECUTED
50ae2: 6006 bras 50aea <rtems_region_get_segment_size+0x6a><== NOT EXECUTED
case OBJECTS_REMOTE: /* this error cannot be returned */
break;
#endif
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
50ae4: 7404 moveq #4,%d2 <== NOT EXECUTED
50ae6: 6002 bras 50aea <rtems_region_get_segment_size+0x6a><== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
return_status = RTEMS_INVALID_ADDRESS;
50ae8: 7409 moveq #9,%d2 <== NOT EXECUTED
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
50aea: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50af0: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
50af6: 588f addql #4,%sp <== NOT EXECUTED
50af8: 6002 bras 50afc <rtems_region_get_segment_size+0x7c><== NOT EXECUTED
if ( !segment )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
50afa: 7409 moveq #9,%d2 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
50afc: 2002 movel %d2,%d0 <== NOT EXECUTED
50afe: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
50b02: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
50b06: 4e5e unlk %fp <== NOT EXECUTED
...
00050b0c <rtems_region_ident>:
rtems_status_code rtems_region_ident(
rtems_name name,
rtems_id *id
)
{
50b0c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
50b10: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
50b14: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
50b1a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50b1e: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
50b24: 4eb9 0005 4440 jsr 54440 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
50b2a: 41f9 0006 e620 lea 6e620 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
50b30: 4e5e unlk %fp <== NOT EXECUTED
50b32: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
00050b38 <rtems_region_resize_segment>:
rtems_id id,
void *segment,
uintptr_t size,
uintptr_t *old_size
)
{
50b38: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
50b3c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
50b40: 266e 0014 moveal %fp@(20),%a3 <== NOT EXECUTED
uintptr_t osize;
rtems_status_code return_status;
Heap_Resize_status status;
register Region_Control *the_region;
if ( !old_size )
50b44: 4a8b tstl %a3 <== NOT EXECUTED
50b46: 6700 008e beqw 50bd6 <rtems_region_resize_segment+0x9e><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
50b4a: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50b50: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
50b56: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
50b5a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50b5e: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
50b64: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
50b6a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50b6e: 2440 moveal %d0,%a2 <== NOT EXECUTED
50b70: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED
50b74: 664e bnes 50bc4 <rtems_region_resize_segment+0x8c><== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 7 );
status = _Heap_Resize_block(
50b76: 486e fffc pea %fp@(-4) <== NOT EXECUTED
50b7a: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
50b7e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
50b82: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
50b86: 486a 0068 pea %a2@(104) <== NOT EXECUTED
50b8a: 4eb9 0005 3c44 jsr 53c44 <_Heap_Resize_block> <== NOT EXECUTED
segment,
(uint32_t) size,
&osize,
&avail_size
);
*old_size = (uint32_t) osize;
50b90: 26ae fff4 movel %fp@(-12),%a3@ <== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 7 );
status = _Heap_Resize_block(
50b94: 2400 movel %d0,%d2 <== NOT EXECUTED
);
*old_size = (uint32_t) osize;
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
50b96: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
50b9a: 660e bnes 50baa <rtems_region_resize_segment+0x72><== NOT EXECUTED
_Region_Process_queue( the_region ); /* unlocks allocator */
50b9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
50b9e: 4eb9 0005 75cc jsr 575cc <_Region_Process_queue> <== NOT EXECUTED
50ba4: 588f addql #4,%sp <== NOT EXECUTED
else
_RTEMS_Unlock_allocator();
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
50ba6: 4280 clrl %d0 <== NOT EXECUTED
50ba8: 602e bras 50bd8 <rtems_region_resize_segment+0xa0><== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
_Region_Process_queue( the_region ); /* unlocks allocator */
else
_RTEMS_Unlock_allocator();
50baa: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50bb0: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
if (status == HEAP_RESIZE_UNSATISFIED)
50bb6: 588f addql #4,%sp <== NOT EXECUTED
50bb8: 7001 moveq #1,%d0 <== NOT EXECUTED
50bba: b082 cmpl %d2,%d0 <== NOT EXECUTED
50bbc: 6618 bnes 50bd6 <rtems_region_resize_segment+0x9e><== NOT EXECUTED
return RTEMS_UNSATISFIED;
50bbe: 103c 000d moveb #13,%d0 <== NOT EXECUTED
50bc2: 6014 bras 50bd8 <rtems_region_resize_segment+0xa0><== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
50bc4: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50bca: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
50bd0: 588f addql #4,%sp <== NOT EXECUTED
50bd2: 7004 moveq #4,%d0 <== NOT EXECUTED
50bd4: 6002 bras 50bd8 <rtems_region_resize_segment+0xa0><== NOT EXECUTED
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
if (status == HEAP_RESIZE_UNSATISFIED)
return RTEMS_UNSATISFIED;
return RTEMS_INVALID_ADDRESS;
50bd6: 7009 moveq #9,%d0 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
50bd8: 4cee 0c04 ffe8 moveml %fp@(-24),%d2/%a2-%a3 <== NOT EXECUTED
50bde: 4e5e unlk %fp <== NOT EXECUTED
...
00050be4 <rtems_region_return_segment>:
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
50be4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
50be8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
50bea: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50bf0: 4eb9 0005 295c jsr 5295c <_API_Mutex_Lock> <== NOT EXECUTED
50bf6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
50bfa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50bfe: 4879 0007 4f04 pea 74f04 <_Region_Information> <== NOT EXECUTED
50c04: 4eb9 0005 42a0 jsr 542a0 <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
50c0a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
50c0e: 2440 moveal %d0,%a2 <== NOT EXECUTED
50c10: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
50c14: 6626 bnes 50c3c <rtems_region_return_segment+0x58><== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
Region_Control *the_region,
void *the_segment
)
{
return _Heap_Free( &the_region->Memory, the_segment );
50c16: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
50c1a: 486a 0068 pea %a2@(104) <== NOT EXECUTED
50c1e: 4eb9 0005 3708 jsr 53708 <_Heap_Free> <== NOT EXECUTED
#endif
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
50c24: 508f addql #8,%sp <== NOT EXECUTED
50c26: 4a00 tstb %d0 <== NOT EXECUTED
50c28: 6718 beqs 50c42 <rtems_region_return_segment+0x5e><== NOT EXECUTED
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
50c2a: 53aa 0064 subql #1,%a2@(100) <== NOT EXECUTED
_Region_Process_queue(the_region); /* unlocks allocator */
50c2e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
50c30: 95ca subal %a2,%a2 <== NOT EXECUTED
if ( !status )
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
_Region_Process_queue(the_region); /* unlocks allocator */
50c32: 4eb9 0005 75cc jsr 575cc <_Region_Process_queue> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
50c38: 588f addql #4,%sp <== NOT EXECUTED
50c3a: 6018 bras 50c54 <rtems_region_return_segment+0x70><== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
50c3c: 347c 0004 moveaw #4,%a2 <== NOT EXECUTED
50c40: 6004 bras 50c46 <rtems_region_return_segment+0x62><== NOT EXECUTED
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
return_status = RTEMS_INVALID_ADDRESS;
50c42: 347c 0009 moveaw #9,%a2 <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
50c46: 2f39 0007 50b4 movel 750b4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50c4c: 4eb9 0005 29bc jsr 529bc <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
50c52: 588f addql #4,%sp <== NOT EXECUTED
}
50c54: 200a movel %a2,%d0 <== NOT EXECUTED
50c56: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
50c5a: 4e5e unlk %fp <== NOT EXECUTED
...
000453c0 <rtems_semaphore_create>:
uint32_t count,
rtems_attribute attribute_set,
rtems_task_priority priority_ceiling,
rtems_id *id
)
{
453c0: 4e56 ffd0 linkw %fp,#-48
453c4: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@
453c8: 2a2e 0008 movel %fp@(8),%d5
453cc: 262e 000c movel %fp@(12),%d3
453d0: 242e 0010 movel %fp@(16),%d2
453d4: 266e 0018 moveal %fp@(24),%a3
register Semaphore_Control *the_semaphore;
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
453d8: 4a85 tstl %d5
453da: 6700 0166 beqw 45542 <rtems_semaphore_create+0x182>
return RTEMS_INVALID_NAME;
if ( !id )
453de: 4a8b tstl %a3
453e0: 6700 0164 beqw 45546 <rtems_semaphore_create+0x186>
* id - semaphore id
* RTEMS_SUCCESSFUL - if successful
* error code - if unsuccessful
*/
rtems_status_code rtems_semaphore_create(
453e4: 2002 movel %d2,%d0
453e6: 0280 0000 00c0 andil #192,%d0
return RTEMS_NOT_DEFINED;
} else
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
453ec: 671c beqs 4540a <rtems_semaphore_create+0x4a>
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE);
453ee: 7230 moveq #48,%d1
_Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
453f0: 7810 moveq #16,%d4
453f2: c282 andl %d2,%d1
453f4: b881 cmpl %d1,%d4
453f6: 6600 0152 bnew 4554a <rtems_semaphore_create+0x18a>
453fa: 44c2 movew %d2,%ccr
453fc: 6600 014c bnew 4554a <rtems_semaphore_create+0x18a>
_Attributes_Is_priority( attribute_set ) ) )
return RTEMS_NOT_DEFINED;
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
45400: 0c80 0000 00c0 cmpil #192,%d0
45406: 6700 0142 beqw 4554a <rtems_semaphore_create+0x18a>
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
4540a: 7830 moveq #48,%d4
4540c: c882 andl %d2,%d4
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
4540e: 6708 beqs 45418 <rtems_semaphore_create+0x58>
45410: 7001 moveq #1,%d0
45412: b083 cmpl %d3,%d0
45414: 6500 0138 bcsw 4554e <rtems_semaphore_create+0x18e>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45418: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
4541e: 5280 addql #1,%d0
45420: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level>
* This function allocates a semaphore control block from
* the inactive chain of free semaphore control blocks.
*/
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void )
{
return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information );
45426: 4879 0005 c600 pea 5c600 <_Semaphore_Information>
4542c: 4eb9 0004 681c jsr 4681c <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_semaphore = _Semaphore_Allocate();
if ( !the_semaphore ) {
45432: 588f addql #4,%sp
45434: 2440 moveal %d0,%a2
45436: 4a80 tstl %d0
45438: 660c bnes 45446 <rtems_semaphore_create+0x86>
_Thread_Enable_dispatch();
4543a: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return RTEMS_TOO_MANY;
45440: 7005 moveq #5,%d0
45442: 6000 010c braw 45550 <rtems_semaphore_create+0x190>
45446: 7004 moveq #4,%d0
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_semaphore->attribute_set = attribute_set;
45448: 2542 0010 movel %d2,%a2@(16)
4544c: c082 andl %d2,%d0
/*
* Initialize it as a counting semaphore.
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
4544e: 4a84 tstl %d4
45450: 6632 bnes 45484 <rtems_semaphore_create+0xc4>
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
45452: 4a80 tstl %d0
45454: 57c0 seq %d0
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
_CORE_semaphore_Initialize(
45456: 2f03 movel %d3,%sp@-
45458: 486e fff8 pea %fp@(-8)
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
4545c: 49c0 extbl %d0
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
4545e: 72ff moveq #-1,%d1
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
45460: 5280 addql #1,%d0
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
_CORE_semaphore_Initialize(
45462: 486a 0014 pea %a2@(20)
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
45466: 2d41 fff8 movel %d1,%fp@(-8)
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
4546a: 2d40 fffc movel %d0,%fp@(-4)
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
4546e: 42ae ffea clrl %fp@(-22)
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
45472: 42ae fff4 clrl %fp@(-12)
_CORE_semaphore_Initialize(
45476: 4eb9 0004 62a0 jsr 462a0 <_CORE_semaphore_Initialize>
4547c: 4fef 000c lea %sp@(12),%sp
45480: 6000 009e braw 45520 <rtems_semaphore_create+0x160>
/*
* It is either simple binary semaphore or a more powerful mutex
* style binary semaphore. This is the mutex style.
*/
if ( _Attributes_Is_priority( attribute_set ) )
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
45484: 4a80 tstl %d0
45486: 57c0 seq %d0
45488: 49c0 extbl %d0
4548a: 5280 addql #1,%d0
4548c: 2d40 fff0 movel %d0,%fp@(-16)
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
45490: 7010 moveq #16,%d0
45492: b084 cmpl %d4,%d0
45494: 6640 bnes 454d6 <rtems_semaphore_create+0x116>
the_mutex_attr.priority_ceiling = priority_ceiling;
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
45496: 42ae ffea clrl %fp@(-22)
the_mutex_attr.only_owner_release = false;
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
4549a: 7801 moveq #1,%d4
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
the_mutex_attr.priority_ceiling = priority_ceiling;
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.only_owner_release = false;
4549c: 4201 clrb %d1
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
the_mutex_attr.priority_ceiling = priority_ceiling;
4549e: 2d6e 0014 fff4 movel %fp@(20),%fp@(-12)
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.only_owner_release = false;
454a4: 1d41 ffee moveb %d1,%fp@(-18)
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
454a8: b8ae fff0 cmpl %fp@(-16),%d4
454ac: 6634 bnes 454e2 <rtems_semaphore_create+0x122>
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
454ae: 0802 0006 btst #6,%d2
454b2: 6710 beqs 454c4 <rtems_semaphore_create+0x104> <== NEVER TAKEN
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
454b4: 103c 0002 moveb #2,%d0
the_mutex_attr.only_owner_release = true;
454b8: 7201 moveq #1,%d1
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.only_owner_release = false;
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
454ba: 2d40 fff0 movel %d0,%fp@(-16)
the_mutex_attr.only_owner_release = true;
454be: 1d41 ffee moveb %d1,%fp@(-18)
454c2: 601e bras 454e2 <rtems_semaphore_create+0x122>
} else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
454c4: 4a02 tstb %d2 <== NOT EXECUTED
454c6: 6c1a bges 454e2 <rtems_semaphore_create+0x122> <== NOT EXECUTED
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
454c8: 7803 moveq #3,%d4 <== NOT EXECUTED
the_mutex_attr.only_owner_release = true;
454ca: 7001 moveq #1,%d0 <== NOT EXECUTED
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
the_mutex_attr.only_owner_release = true;
} else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
454cc: 2d44 fff0 movel %d4,%fp@(-16) <== NOT EXECUTED
the_mutex_attr.only_owner_release = true;
454d0: 1d40 ffee moveb %d0,%fp@(-18) <== NOT EXECUTED
454d4: 600c bras 454e2 <rtems_semaphore_create+0x122> <== NOT EXECUTED
}
}
} else /* must be simple binary semaphore */ {
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
454d6: 7202 moveq #2,%d1
the_mutex_attr.only_owner_release = false;
454d8: 4204 clrb %d4
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
the_mutex_attr.only_owner_release = true;
}
}
} else /* must be simple binary semaphore */ {
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
454da: 2d41 ffea movel %d1,%fp@(-22)
the_mutex_attr.only_owner_release = false;
454de: 1d44 ffee moveb %d4,%fp@(-18)
}
mutex_status = _CORE_mutex_Initialize(
454e2: 7001 moveq #1,%d0
454e4: b083 cmpl %d3,%d0
454e6: 57c0 seq %d0
454e8: 49c0 extbl %d0
454ea: 4480 negl %d0
454ec: 2f00 movel %d0,%sp@-
454ee: 486e ffea pea %fp@(-22)
454f2: 486a 0014 pea %a2@(20)
454f6: 4eb9 0004 6000 jsr 46000 <_CORE_mutex_Initialize>
&the_semaphore->Core_control.mutex,
&the_mutex_attr,
(count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED
);
if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {
454fc: 4fef 000c lea %sp@(12),%sp
45500: 7206 moveq #6,%d1
45502: b280 cmpl %d0,%d1
45504: 661a bnes 45520 <rtems_semaphore_create+0x160> <== ALWAYS TAKEN
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
45506: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45508: 4879 0005 c600 pea 5c600 <_Semaphore_Information> <== NOT EXECUTED
4550e: 4eb9 0004 6b10 jsr 46b10 <_Objects_Free> <== NOT EXECUTED
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
45514: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
4551a: 508f addql #8,%sp <== NOT EXECUTED
4551c: 7013 moveq #19,%d0 <== NOT EXECUTED
4551e: 6030 bras 45550 <rtems_semaphore_create+0x190> <== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
45520: 202a 0008 movel %a2@(8),%d0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
45524: 4281 clrl %d1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45526: 2079 0005 c618 moveal 5c618 <_Semaphore_Information+0x18>,%a0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4552c: 3200 movew %d0,%d1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4552e: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
45532: 2545 000c movel %d5,%a2@(12)
&_Semaphore_Information,
&the_semaphore->Object,
(Objects_Name) name
);
*id = the_semaphore->Object.id;
45536: 2680 movel %d0,%a3@
the_semaphore->Object.id,
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
45538: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
4553e: 4280 clrl %d0
45540: 600e bras 45550 <rtems_semaphore_create+0x190>
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
45542: 7003 moveq #3,%d0 <== NOT EXECUTED
45544: 600a bras 45550 <rtems_semaphore_create+0x190> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
45546: 7009 moveq #9,%d0 <== NOT EXECUTED
45548: 6006 bras 45550 <rtems_semaphore_create+0x190> <== NOT EXECUTED
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
4554a: 700b moveq #11,%d0 <== NOT EXECUTED
4554c: 6002 bras 45550 <rtems_semaphore_create+0x190> <== NOT EXECUTED
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
return RTEMS_INVALID_NUMBER;
4554e: 700a moveq #10,%d0 <== NOT EXECUTED
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
45550: 4cee 0c3c ffd0 moveml %fp@(-48),%d2-%d5/%a2-%a3
45556: 4e5e unlk %fp
...
0004555c <rtems_semaphore_delete>:
#endif
rtems_status_code rtems_semaphore_delete(
rtems_id id
)
{
4555c: 4e56 fffc linkw %fp,#-4
45560: 2f0a movel %a2,%sp@-
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
_Objects_Get( &_Semaphore_Information, id, location );
45562: 486e fffc pea %fp@(-4)
45566: 2f2e 0008 movel %fp@(8),%sp@-
4556a: 4879 0005 c600 pea 5c600 <_Semaphore_Information>
45570: 4eb9 0004 6c74 jsr 46c74 <_Objects_Get>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
45576: 4fef 000c lea %sp@(12),%sp
4557a: 2440 moveal %d0,%a2
4557c: 4aae fffc tstl %fp@(-4)
45580: 666c bnes 455ee <rtems_semaphore_delete+0x92> <== NEVER TAKEN
45582: 7030 moveq #48,%d0
45584: c0aa 0010 andl %a2@(16),%d0
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
45588: 6728 beqs 455b2 <rtems_semaphore_delete+0x56>
if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) &&
4558a: 4aaa 0062 tstl %a2@(98)
4558e: 6610 bnes 455a0 <rtems_semaphore_delete+0x44>
45590: 7220 moveq #32,%d1
45592: b280 cmpl %d0,%d1
45594: 670a beqs 455a0 <rtems_semaphore_delete+0x44> <== ALWAYS TAKEN
!_Attributes_Is_simple_binary_semaphore(
the_semaphore->attribute_set ) ) {
_Thread_Enable_dispatch();
45596: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
4559c: 700c moveq #12,%d0 <== NOT EXECUTED
4559e: 6050 bras 455f0 <rtems_semaphore_delete+0x94> <== NOT EXECUTED
}
_CORE_mutex_Flush(
455a0: 4878 0004 pea 4 <CONTEXT_ARG>
455a4: 42a7 clrl %sp@-
455a6: 486a 0014 pea %a2@(20)
455aa: 4eb9 0004 5ff4 jsr 45ff4 <_CORE_mutex_Flush>
455b0: 6010 bras 455c2 <rtems_semaphore_delete+0x66>
&the_semaphore->Core_control.mutex,
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_MUTEX_WAS_DELETED
);
} else {
_CORE_semaphore_Flush(
455b2: 4878 0002 pea 2 <DOUBLE_FLOAT>
455b6: 42a7 clrl %sp@-
455b8: 486a 0014 pea %a2@(20)
455bc: 4eb9 0004 6294 jsr 46294 <_CORE_semaphore_Flush>
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_WAS_DELETED
);
}
_Objects_Close( &_Semaphore_Information, &the_semaphore->Object );
455c2: 508f addql #8,%sp
455c4: 2e8a movel %a2,%sp@
455c6: 4879 0005 c600 pea 5c600 <_Semaphore_Information>
455cc: 4eb9 0004 6898 jsr 46898 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
455d2: 2f0a movel %a2,%sp@-
455d4: 4879 0005 c600 pea 5c600 <_Semaphore_Information>
455da: 4eb9 0004 6b10 jsr 46b10 <_Objects_Free>
0, /* Not used */
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
455e0: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
455e6: 4fef 0010 lea %sp@(16),%sp
455ea: 4280 clrl %d0
455ec: 6002 bras 455f0 <rtems_semaphore_delete+0x94>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
455ee: 7004 moveq #4,%d0 <== NOT EXECUTED
}
455f0: 246e fff8 moveal %fp@(-8),%a2
455f4: 4e5e unlk %fp <== NOT EXECUTED
0004d2d8 <rtems_semaphore_flush>:
#endif
rtems_status_code rtems_semaphore_flush(
rtems_id id
)
{
4d2d8: 4e56 fffc linkw %fp,#-4
4d2dc: 486e fffc pea %fp@(-4)
4d2e0: 2f2e 0008 movel %fp@(8),%sp@-
4d2e4: 4879 0005 fca8 pea 5fca8 <_Semaphore_Information>
4d2ea: 4eb9 0004 7c7c jsr 47c7c <_Objects_Get>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
4d2f0: 4fef 000c lea %sp@(12),%sp
4d2f4: 4aae fffc tstl %fp@(-4)
4d2f8: 663c bnes 4d336 <rtems_semaphore_flush+0x5e> <== NEVER TAKEN
4d2fa: 2040 moveal %d0,%a0
4d2fc: 7230 moveq #48,%d1
4d2fe: 0680 0000 0014 addil #20,%d0
4d304: c2a8 0010 andl %a0@(16),%d1
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
4d308: 6710 beqs 4d31a <rtems_semaphore_flush+0x42> <== NEVER TAKEN
_CORE_mutex_Flush(
4d30a: 4878 0001 pea 1 <ADD>
4d30e: 42a7 clrl %sp@-
4d310: 2f00 movel %d0,%sp@-
4d312: 4eb9 0004 6ffc jsr 46ffc <_CORE_mutex_Flush>
4d318: 600e bras 4d328 <rtems_semaphore_flush+0x50>
&the_semaphore->Core_control.mutex,
SEND_OBJECT_WAS_DELETED,
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT
);
} else {
_CORE_semaphore_Flush(
4d31a: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4d31e: 42a7 clrl %sp@- <== NOT EXECUTED
4d320: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4d322: 4eb9 0004 729c jsr 4729c <_CORE_semaphore_Flush> <== NOT EXECUTED
4d328: 4fef 000c lea %sp@(12),%sp
&the_semaphore->Core_control.semaphore,
SEND_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT
);
}
_Thread_Enable_dispatch();
4d32c: 4eb9 0004 8746 jsr 48746 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
4d332: 4280 clrl %d0
4d334: 6002 bras 4d338 <rtems_semaphore_flush+0x60>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4d336: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4d338: 4e5e unlk %fp <== NOT EXECUTED
00050efc <rtems_semaphore_ident>:
rtems_status_code rtems_semaphore_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
50efc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id );
50f00: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
50f04: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
50f08: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
50f0c: 4879 0007 4f3c pea 74f3c <_Semaphore_Information> <== NOT EXECUTED
50f12: 4eb9 0005 4440 jsr 54440 <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
}
50f18: 41f9 0006 e620 lea 6e620 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
50f1e: 4e5e unlk %fp <== NOT EXECUTED
50f20: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
000455f8 <rtems_semaphore_obtain>:
rtems_status_code rtems_semaphore_obtain(
rtems_id id,
rtems_option option_set,
rtems_interval timeout
)
{
455f8: 4e56 ffec linkw %fp,#-20
455fc: 48d7 001c moveml %d2-%d4,%sp@
Objects_Locations *location,
ISR_Level *level
)
{
return (Semaphore_Control *)
_Objects_Get_isr_disable( &_Semaphore_Information, id, location, level );
45600: 486e fff8 pea %fp@(-8)
45604: 486e fffc pea %fp@(-4)
45608: 242e 0008 movel %fp@(8),%d2
4560c: 2f02 movel %d2,%sp@-
4560e: 4879 0005 c600 pea 5c600 <_Semaphore_Information>
45614: 282e 000c movel %fp@(12),%d4
45618: 262e 0010 movel %fp@(16),%d3
4561c: 4eb9 0004 6c1c jsr 46c1c <_Objects_Get_isr_disable>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
ISR_Level level;
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
45622: 4fef 0010 lea %sp@(16),%sp
45626: 2040 moveal %d0,%a0
45628: 4aae fffc tstl %fp@(-4)
4562c: 6600 00c4 bnew 456f2 <rtems_semaphore_obtain+0xfa>
45630: 7030 moveq #48,%d0
45632: c0a8 0010 andl %a0@(16),%d0
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
45636: 6732 beqs 4566a <rtems_semaphore_obtain+0x72> <== NEVER TAKEN
_CORE_mutex_Seize(
45638: 2f2e fff8 movel %fp@(-8),%sp@-
*/
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT) ? true : false;
4563c: 7001 moveq #1,%d0
4563e: c880 andl %d0,%d4
45640: 2f03 movel %d3,%sp@-
45642: b980 eorl %d4,%d0
45644: 2f00 movel %d0,%sp@-
45646: 2f02 movel %d2,%sp@-
45648: 4868 0014 pea %a0@(20)
4564c: 4eb9 0004 610c jsr 4610c <_CORE_mutex_Seize>
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
return _Semaphore_Translate_core_mutex_return_code(
_Thread_Executing->Wait.return_code );
45652: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
return _Semaphore_Translate_core_mutex_return_code(
45658: 2f28 0034 movel %a0@(52),%sp@-
4565c: 4eb9 0004 5784 jsr 45784 <_Semaphore_Translate_core_mutex_return_code>
45662: 4fef 0018 lea %sp@(24),%sp
45666: 6000 008c braw 456f4 <rtems_semaphore_obtain+0xfc>
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
4566a: 2279 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( the_semaphore->count != 0 ) {
45670: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
45674: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED
if ( the_semaphore->count != 0 ) {
45678: 4a80 tstl %d0 <== NOT EXECUTED
4567a: 670e beqs 4568a <rtems_semaphore_obtain+0x92> <== NOT EXECUTED
the_semaphore->count -= 1;
4567c: 5380 subql #1,%d0 <== NOT EXECUTED
4567e: 2140 005c movel %d0,%a0@(92) <== NOT EXECUTED
_ISR_Enable( *level_p );
45682: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
45686: 46c0 movew %d0,%sr <== NOT EXECUTED
45688: 6054 bras 456de <rtems_semaphore_obtain+0xe6> <== NOT EXECUTED
return;
}
if ( !wait ) {
4568a: 0804 0000 btst #0,%d4 <== NOT EXECUTED
4568e: 670e beqs 4569e <rtems_semaphore_obtain+0xa6> <== NOT EXECUTED
_ISR_Enable( *level_p );
45690: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
45694: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
45696: 7001 moveq #1,%d0 <== NOT EXECUTED
45698: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED
4569c: 6040 bras 456de <rtems_semaphore_obtain+0xe6> <== NOT EXECUTED
4569e: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
456a4: 5280 addql #1,%d0 <== NOT EXECUTED
456a6: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
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;
456ac: 7001 moveq #1,%d0 <== NOT EXECUTED
456ae: 2140 0044 movel %d0,%a0@(68) <== NOT EXECUTED
return;
}
_Thread_Disable_dispatch();
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
456b2: 41e8 0014 lea %a0@(20),%a0 <== NOT EXECUTED
executing->Wait.id = id;
456b6: 2342 0020 movel %d2,%a1@(32) <== NOT EXECUTED
return;
}
_Thread_Disable_dispatch();
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
456ba: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED
executing->Wait.id = id;
_ISR_Enable( *level_p );
456be: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
456c2: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
456c4: 4879 0004 7e78 pea 47e78 <_Thread_queue_Timeout> <== NOT EXECUTED
456ca: 2f03 movel %d3,%sp@- <== NOT EXECUTED
456cc: 2f08 movel %a0,%sp@- <== NOT EXECUTED
456ce: 4eb9 0004 7b64 jsr 47b64 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
456d4: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch> <== NOT EXECUTED
456da: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
_Thread_Executing->Wait.return_code );
456de: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
456e4: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
456e8: 4eb9 0004 579a jsr 4579a <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED
456ee: 588f addql #4,%sp <== NOT EXECUTED
456f0: 6002 bras 456f4 <rtems_semaphore_obtain+0xfc> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
456f2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
456f4: 4cee 001c ffec moveml %fp@(-20),%d2-%d4
456fa: 4e5e unlk %fp
...
00045700 <rtems_semaphore_release>:
#endif
rtems_status_code rtems_semaphore_release(
rtems_id id
)
{
45700: 4e56 fffc linkw %fp,#-4
45704: 2f0a movel %a2,%sp@-
45706: 2f02 movel %d2,%sp@-
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
_Objects_Get( &_Semaphore_Information, id, location );
45708: 486e fffc pea %fp@(-4)
4570c: 242e 0008 movel %fp@(8),%d2
45710: 2f02 movel %d2,%sp@-
45712: 4879 0005 c600 pea 5c600 <_Semaphore_Information>
45718: 4eb9 0004 6c74 jsr 46c74 <_Objects_Get>
Objects_Locations location;
CORE_mutex_Status mutex_status;
CORE_semaphore_Status semaphore_status;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
4571e: 4fef 000c lea %sp@(12),%sp
45722: 4aae fffc tstl %fp@(-4)
45726: 664e bnes 45776 <rtems_semaphore_release+0x76> <== NEVER TAKEN
45728: 2040 moveal %d0,%a0
4572a: 7230 moveq #48,%d1
4572c: 0680 0000 0014 addil #20,%d0
45732: 45f9 0004 772a lea 4772a <_Thread_Enable_dispatch>,%a2
45738: c2a8 0010 andl %a0@(16),%d1
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
4573c: 671a beqs 45758 <rtems_semaphore_release+0x58> <== NEVER TAKEN
mutex_status = _CORE_mutex_Surrender(
4573e: 42a7 clrl %sp@-
45740: 2f02 movel %d2,%sp@-
45742: 2f00 movel %d0,%sp@-
45744: 4eb9 0004 61b0 jsr 461b0 <_CORE_mutex_Surrender>
4574a: 2400 movel %d0,%d2
&the_semaphore->Core_control.mutex,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
4574c: 4e92 jsr %a2@
return _Semaphore_Translate_core_mutex_return_code( mutex_status );
4574e: 2f02 movel %d2,%sp@-
45750: 4eb9 0004 5784 jsr 45784 <_Semaphore_Translate_core_mutex_return_code>
45756: 6018 bras 45770 <rtems_semaphore_release+0x70>
} else {
semaphore_status = _CORE_semaphore_Surrender(
45758: 42a7 clrl %sp@- <== NOT EXECUTED
4575a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4575c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4575e: 4eb9 0004 62e8 jsr 462e8 <_CORE_semaphore_Surrender> <== NOT EXECUTED
45764: 2400 movel %d0,%d2 <== NOT EXECUTED
&the_semaphore->Core_control.semaphore,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
45766: 4e92 jsr %a2@ <== NOT EXECUTED
return
45768: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4576a: 4eb9 0004 579a jsr 4579a <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED
45770: 4fef 0010 lea %sp@(16),%sp
45774: 6002 bras 45778 <rtems_semaphore_release+0x78>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
45776: 7004 moveq #4,%d0
}
45778: 242e fff4 movel %fp@(-12),%d2
4577c: 246e fff8 moveal %fp@(-8),%a2
45780: 4e5e unlk %fp <== NOT EXECUTED
00045c38 <rtems_shutdown_executive>:
void rtems_shutdown_executive(
uint32_t result
)
{
if ( _System_state_Is_up( _System_state_Get() ) ) {
45c38: 7003 moveq #3,%d0
*/
void rtems_shutdown_executive(
uint32_t result
)
{
45c3a: 4e56 0000 linkw %fp,#0
if ( _System_state_Is_up( _System_state_Get() ) ) {
45c3e: b0b9 0005 c820 cmpl 5c820 <_System_state_Current>,%d0
45c44: 6618 bnes 45c5e <rtems_shutdown_executive+0x26>
45c46: 103c 0004 moveb #4,%d0
* if we were running within the same context, it would work.
*
* And we will not return to this thread, so there is no point of
* saving the context.
*/
_Context_Restart_self( &_Thread_BSP_context );
45c4a: 4879 0005 c684 pea 5c684 <_Thread_BSP_context>
45c50: 23c0 0005 c820 movel %d0,5c820 <_System_state_Current>
45c56: 4eb9 0004 873e jsr 4873e <_CPU_Context_Restart_self>
45c5c: 588f addql #4,%sp <== NOT EXECUTED
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking();
}
_Internal_error_Occurred(
45c5e: 4878 0014 pea 14 <OPER2>
45c62: 4878 0001 pea 1 <ADD>
45c66: 42a7 clrl %sp@-
45c68: 4eb9 0004 6768 jsr 46768 <_Internal_error_Occurred>
...
00046568 <rtems_signal_catch>:
rtems_status_code rtems_signal_catch(
rtems_asr_entry asr_handler,
rtems_mode mode_set
)
{
46568: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4656c: 2239 0005 dae0 movel 5dae0 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED
46572: 5281 addql #1,%d1 <== NOT EXECUTED
RTEMS_API_Control *api;
ASR_Information *asr;
/* XXX normalize mode */
executing = _Thread_Executing;
api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ];
46574: 2079 0005 dca0 moveal 5dca0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
rtems_status_code rtems_signal_catch(
rtems_asr_entry asr_handler,
rtems_mode mode_set
)
{
4657a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
RTEMS_API_Control *api;
ASR_Information *asr;
/* XXX normalize mode */
executing = _Thread_Executing;
api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ];
4657e: 2068 00fc moveal %a0@(252),%a0 <== NOT EXECUTED
46582: 23c1 0005 dae0 movel %d1,5dae0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
asr = &api->Signal;
_Thread_Disable_dispatch(); /* cannot reschedule while */
/* the thread is inconsistent */
if ( !_ASR_Is_null_handler( asr_handler ) ) {
46588: 4a80 tstl %d0 <== NOT EXECUTED
4658a: 670c beqs 46598 <rtems_signal_catch+0x30> <== NOT EXECUTED
asr->mode_set = mode_set;
asr->handler = asr_handler;
4658c: 2140 000a movel %d0,%a0@(10) <== NOT EXECUTED
_Thread_Disable_dispatch(); /* cannot reschedule while */
/* the thread is inconsistent */
if ( !_ASR_Is_null_handler( asr_handler ) ) {
asr->mode_set = mode_set;
46590: 216e 000c 000e movel %fp@(12),%a0@(14) <== NOT EXECUTED
46596: 601a bras 465b2 <rtems_signal_catch+0x4a> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = false;
information->handler = NULL;
46598: 42a8 000a clrl %a0@(10) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = false;
4659c: 4200 clrb %d0 <== NOT EXECUTED
information->handler = NULL;
information->mode_set = RTEMS_DEFAULT_MODES;
4659e: 42a8 000e clrl %a0@(14) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = false;
465a2: 1140 0008 moveb %d0,%a0@(8) <== NOT EXECUTED
information->handler = NULL;
information->mode_set = RTEMS_DEFAULT_MODES;
information->signals_posted = 0;
465a6: 42a8 0012 clrl %a0@(18) <== NOT EXECUTED
information->signals_pending = 0;
465aa: 42a8 0016 clrl %a0@(22) <== NOT EXECUTED
information->nest_level = 0;
465ae: 42a8 001a clrl %a0@(26) <== NOT EXECUTED
asr->handler = asr_handler;
}
else
_ASR_Initialize( asr );
_Thread_Enable_dispatch();
465b2: 4eb9 0004 877e jsr 4877e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
465b8: 4280 clrl %d0 <== NOT EXECUTED
465ba: 4e5e unlk %fp <== NOT EXECUTED
...
000510e0 <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
510e0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
510e4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
510e6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
510e8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
510ec: 677a beqs 51168 <rtems_signal_send+0x88> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
510ee: 486e fffc pea %fp@(-4) <== NOT EXECUTED
510f2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
510f6: 4eb9 0005 4db4 jsr 54db4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
510fc: 508f addql #8,%sp <== NOT EXECUTED
510fe: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51102: 6668 bnes 5116c <rtems_signal_send+0x8c> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
51104: 2240 moveal %d0,%a1 <== NOT EXECUTED
51106: 2069 00fc moveal %a1@(252),%a0 <== NOT EXECUTED
asr = &api->Signal;
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
5110a: 4aa8 000a tstl %a0@(10) <== NOT EXECUTED
5110e: 674e beqs 5115e <rtems_signal_send+0x7e> <== NOT EXECUTED
if ( asr->is_enabled ) {
51110: 4a28 0008 tstb %a0@(8) <== NOT EXECUTED
51114: 672c beqs 51142 <rtems_signal_send+0x62> <== NOT EXECUTED
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
51116: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
5111c: 40c3 movew %sr,%d3 <== NOT EXECUTED
5111e: 8283 orl %d3,%d1 <== NOT EXECUTED
51120: 46c1 movew %d1,%sr <== NOT EXECUTED
*signal_set |= signals;
51122: 85a8 0012 orl %d2,%a0@(18) <== NOT EXECUTED
_ISR_Enable( _level );
51126: 46c3 movew %d3,%sr <== NOT EXECUTED
_ASR_Post_signals( signal_set, &asr->signals_posted );
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
51128: 4ab9 0007 51b8 tstl 751b8 <_Per_CPU_Information+0x8> <== NOT EXECUTED
5112e: 6724 beqs 51154 <rtems_signal_send+0x74> <== NOT EXECUTED
51130: b0b9 0007 51bc cmpl 751bc <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
51136: 661c bnes 51154 <rtems_signal_send+0x74> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
51138: 7001 moveq #1,%d0 <== NOT EXECUTED
5113a: 13c0 0007 51c8 moveb %d0,751c8 <_Per_CPU_Information+0x18> <== NOT EXECUTED
51140: 6012 bras 51154 <rtems_signal_send+0x74> <== NOT EXECUTED
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
51142: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51148: 40c1 movew %sr,%d1 <== NOT EXECUTED
5114a: 8081 orl %d1,%d0 <== NOT EXECUTED
5114c: 46c0 movew %d0,%sr <== NOT EXECUTED
*signal_set |= signals;
5114e: 85a8 0016 orl %d2,%a0@(22) <== NOT EXECUTED
_ISR_Enable( _level );
51152: 46c1 movew %d1,%sr <== NOT EXECUTED
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
51154: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
5115a: 4280 clrl %d0 <== NOT EXECUTED
5115c: 6010 bras 5116e <rtems_signal_send+0x8e> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
5115e: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
51164: 700b moveq #11,%d0 <== NOT EXECUTED
51166: 6006 bras 5116e <rtems_signal_send+0x8e> <== NOT EXECUTED
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
51168: 700a moveq #10,%d0 <== NOT EXECUTED
5116a: 6002 bras 5116e <rtems_signal_send+0x8e> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
5116c: 7004 moveq #4,%d0 <== NOT EXECUTED
}
5116e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
51172: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
51176: 4e5e unlk %fp <== NOT EXECUTED
...
000457b0 <rtems_task_create>:
size_t stack_size,
rtems_mode initial_modes,
rtems_attribute attribute_set,
rtems_id *id
)
{
457b0: 4e56 ffe8 linkw %fp,#-24
457b4: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@
457b8: 266e 0008 moveal %fp@(8),%a3
457bc: 262e 000c movel %fp@(12),%d3
457c0: 242e 0014 movel %fp@(20),%d2
457c4: 282e 0018 movel %fp@(24),%d4
457c8: 286e 001c moveal %fp@(28),%a4
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
457cc: 4a8c tstl %a4
457ce: 6700 00f0 beqw 458c0 <rtems_task_create+0x110>
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
457d2: 4a8b tstl %a3
457d4: 6700 00ee beqw 458c4 <rtems_task_create+0x114>
/*
* Validate the RTEMS API priority and convert it to the core priority range.
*/
if ( !_Attributes_Is_system_task( the_attribute_set ) ) {
457d8: 4a44 tstw %d4
457da: 6d1e blts 457fa <rtems_task_create+0x4a> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
457dc: 4a83 tstl %d3
457de: 6712 beqs 457f2 <rtems_task_create+0x42> <== NEVER TAKEN
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
457e0: 4280 clrl %d0
457e2: 1039 0005 ae92 moveb 5ae92 <rtems_maximum_priority>,%d0
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
457e8: b083 cmpl %d3,%d0
457ea: 54c0 scc %d0
457ec: 49c0 extbl %d0
457ee: 4480 negl %d0
457f0: 6002 bras 457f4 <rtems_task_create+0x44>
457f2: 4280 clrl %d0 <== NOT EXECUTED
if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) )
457f4: 4a00 tstb %d0
457f6: 6700 00d0 beqw 458c8 <rtems_task_create+0x118>
*/
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
457fa: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@-
45800: 4eb9 0004 5ecc jsr 45ecc <_API_Mutex_Lock>
* This function allocates a task control block from
* the inactive chain of free task control blocks.
*/
RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information );
45806: 4879 0005 c638 pea 5c638 <_RTEMS_tasks_Information>
4580c: 4eb9 0004 681c jsr 4681c <_Objects_Allocate>
* the event of an error.
*/
the_thread = _RTEMS_tasks_Allocate();
if ( !the_thread ) {
45812: 508f addql #8,%sp
45814: 2440 moveal %d0,%a2
45816: 4a80 tstl %d0
45818: 6614 bnes 4582e <rtems_task_create+0x7e> <== ALWAYS TAKEN
_RTEMS_Unlock_allocator();
4581a: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
45820: 4eb9 0004 5f2c jsr 45f2c <_API_Mutex_Unlock> <== NOT EXECUTED
return RTEMS_TOO_MANY;
45826: 588f addql #4,%sp <== NOT EXECUTED
45828: 7005 moveq #5,%d0 <== NOT EXECUTED
4582a: 6000 009e braw 458ca <rtems_task_create+0x11a> <== NOT EXECUTED
/*
* Initialize the core thread for this task.
*/
status = _Thread_Initialize(
4582e: 7007 moveq #7,%d0
45830: 2f0b movel %a3,%sp@-
45832: 47f9 0004 5f2c lea 45f2c <_API_Mutex_Unlock>,%a3
45838: c082 andl %d2,%d0
4583a: 2f00 movel %d0,%sp@-
4583c: 0802 0009 btst #9,%d2
45840: 56c0 sne %d0
45842: 42a7 clrl %sp@-
45844: 49c0 extbl %d0
45846: 4480 negl %d0
45848: 2f00 movel %d0,%sp@-
4584a: 0802 0008 btst #8,%d2
4584e: 57c0 seq %d0
45850: 49c0 extbl %d0
45852: 4480 negl %d0
45854: 2f00 movel %d0,%sp@-
45856: 7001 moveq #1,%d0
45858: 2f03 movel %d3,%sp@-
4585a: c084 andl %d4,%d0
4585c: 2f00 movel %d0,%sp@-
4585e: 2f2e 0010 movel %fp@(16),%sp@-
45862: 42a7 clrl %sp@-
45864: 2f0a movel %a2,%sp@-
45866: 4879 0005 c638 pea 5c638 <_RTEMS_tasks_Information>
4586c: 4eb9 0004 77dc jsr 477dc <_Thread_Initialize>
NULL, /* no budget algorithm callout */
_Modes_Get_interrupt_level(initial_modes),
(Objects_Name) name
);
if ( !status ) {
45872: 4fef 002c lea %sp@(44),%sp
45876: 4a00 tstb %d0
45878: 6624 bnes 4589e <rtems_task_create+0xee>
*/
RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free (
Thread_Control *the_task
)
{
_Objects_Free(
4587a: 2f2a 0008 movel %a2@(8),%sp@-
4587e: 4eb9 0004 6b94 jsr 46b94 <_Objects_Get_information_id>
45884: 2f0a movel %a2,%sp@-
45886: 2f00 movel %d0,%sp@-
45888: 4eb9 0004 6b10 jsr 46b10 <_Objects_Free>
#if defined(RTEMS_MULTIPROCESSING)
if ( is_global )
_Objects_MP_Free_global_object( the_global_object );
#endif
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
4588e: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@-
45894: 4e93 jsr %a3@
return RTEMS_UNSATISFIED;
45896: 4fef 0010 lea %sp@(16),%sp
4589a: 700d moveq #13,%d0
4589c: 602c bras 458ca <rtems_task_create+0x11a>
}
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
4589e: 206a 00fc moveal %a2@(252),%a0
* id - thread id
* RTEMS_SUCCESSFUL - if successful
* error code - if unsuccessful
*/
rtems_status_code rtems_task_create(
458a2: 0802 000a btst #10,%d2
458a6: 57c0 seq %d0
458a8: 4480 negl %d0
}
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
458aa: 1140 0008 moveb %d0,%a0@(8)
*id = the_thread->Object.id;
458ae: 28aa 0008 movel %a2@(8),%a4@
);
}
#endif
_RTEMS_Unlock_allocator();
458b2: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@-
458b8: 4e93 jsr %a3@
return RTEMS_SUCCESSFUL;
458ba: 588f addql #4,%sp
458bc: 4280 clrl %d0
458be: 600a bras 458ca <rtems_task_create+0x11a>
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
return RTEMS_INVALID_ADDRESS;
458c0: 7009 moveq #9,%d0 <== NOT EXECUTED
458c2: 6006 bras 458ca <rtems_task_create+0x11a> <== NOT EXECUTED
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
458c4: 7003 moveq #3,%d0 <== NOT EXECUTED
458c6: 6002 bras 458ca <rtems_task_create+0x11a> <== NOT EXECUTED
* Validate the RTEMS API priority and convert it to the core priority range.
*/
if ( !_Attributes_Is_system_task( the_attribute_set ) ) {
if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) )
return RTEMS_INVALID_PRIORITY;
458c8: 7013 moveq #19,%d0 <== NOT EXECUTED
}
#endif
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}
458ca: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4
458d0: 4e5e unlk %fp <== NOT EXECUTED
000458d4 <rtems_task_delete>:
*/
rtems_status_code rtems_task_delete(
rtems_id id
)
{
458d4: 4e56 fff0 linkw %fp,#-16
458d8: 48d7 1c00 moveml %a2-%a4,%sp@
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
458dc: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@-
458e2: 47f9 0004 5f2c lea 45f2c <_API_Mutex_Unlock>,%a3
458e8: 4eb9 0004 5ecc jsr 45ecc <_API_Mutex_Lock>
the_thread = _Thread_Get( id, &location );
458ee: 486e fffc pea %fp@(-4)
458f2: 2f2e 0008 movel %fp@(8),%sp@-
458f6: 4eb9 0004 7750 jsr 47750 <_Thread_Get>
switch ( location ) {
458fc: 4fef 000c lea %sp@(12),%sp
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
the_thread = _Thread_Get( id, &location );
45900: 2440 moveal %d0,%a2
switch ( location ) {
45902: 4aae fffc tstl %fp@(-4)
45906: 663c bnes 45944 <rtems_task_delete+0x70> <== NEVER TAKEN
case OBJECTS_LOCAL:
the_information = _Objects_Get_information_id( the_thread->Object.id );
45908: 2f2a 0008 movel %a2@(8),%sp@-
4590c: 49f9 0004 6b94 lea 46b94 <_Objects_Get_information_id>,%a4
45912: 4e94 jsr %a4@
0 /* Not used */
);
}
#endif
_Thread_Close( the_information, the_thread );
45914: 2f0a movel %a2,%sp@-
45916: 2f00 movel %d0,%sp@-
45918: 4eb9 0004 741c jsr 4741c <_Thread_Close>
4591e: 2f2a 0008 movel %a2@(8),%sp@-
45922: 4e94 jsr %a4@
45924: 2f0a movel %a2,%sp@-
45926: 2f00 movel %d0,%sp@-
45928: 4eb9 0004 6b10 jsr 46b10 <_Objects_Free>
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
4592e: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@-
45934: 4e93 jsr %a3@
_Thread_Enable_dispatch();
45936: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
4593c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
45940: 4280 clrl %d0 <== NOT EXECUTED
45942: 600c bras 45950 <rtems_task_delete+0x7c> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
_RTEMS_Unlock_allocator();
45944: 2f39 0005 c778 movel 5c778 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4594a: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_INVALID_ID;
4594c: 588f addql #4,%sp <== NOT EXECUTED
4594e: 7004 moveq #4,%d0 <== NOT EXECUTED
}
45950: 4cee 1c00 fff0 moveml %fp@(-16),%a2-%a4 <== NOT EXECUTED
45956: 4e5e unlk %fp <== NOT EXECUTED
...
000470cc <rtems_task_get_note>:
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
470cc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
470d0: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
470d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
470d6: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
470da: 2f02 movel %d2,%sp@- <== NOT EXECUTED
470dc: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
470e0: 4a39 0005 d604 tstb 5d604 <Configuration_RTEMS_API+0x4> <== NOT EXECUTED
470e6: 6752 beqs 4713a <rtems_task_get_note+0x6e> <== NOT EXECUTED
return RTEMS_NOT_CONFIGURED;
if ( !note )
470e8: 4a8a tstl %a2 <== NOT EXECUTED
470ea: 6752 beqs 4713e <rtems_task_get_note+0x72> <== NOT EXECUTED
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
470ec: 720f moveq #15,%d1 <== NOT EXECUTED
470ee: b282 cmpl %d2,%d1 <== NOT EXECUTED
470f0: 6550 bcss 47142 <rtems_task_get_note+0x76> <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
470f2: 4a80 tstl %d0 <== NOT EXECUTED
470f4: 670c beqs 47102 <rtems_task_get_note+0x36> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
470f6: 2079 0005 f2c0 moveal 5f2c0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
470fc: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED
47100: 6610 bnes 47112 <rtems_task_get_note+0x46> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
47102: 2079 0005 f2c0 moveal 5f2c0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
*note = api->Notepads[ notepad ];
47108: 2068 00fc moveal %a0@(252),%a0 <== NOT EXECUTED
4710c: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED
47110: 6024 bras 47136 <rtems_task_get_note+0x6a> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
47112: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47116: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47118: 4eb9 0004 9180 jsr 49180 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
4711e: 508f addql #8,%sp <== NOT EXECUTED
47120: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47124: 6620 bnes 47146 <rtems_task_get_note+0x7a> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
47126: 2240 moveal %d0,%a1 <== NOT EXECUTED
47128: 2069 00fc moveal %a1@(252),%a0 <== NOT EXECUTED
4712c: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
47130: 4eb9 0004 915a jsr 4915a <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
47136: 4280 clrl %d0 <== NOT EXECUTED
47138: 600e bras 47148 <rtems_task_get_note+0x7c> <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
4713a: 7016 moveq #22,%d0 <== NOT EXECUTED
4713c: 600a bras 47148 <rtems_task_get_note+0x7c> <== NOT EXECUTED
if ( !note )
return RTEMS_INVALID_ADDRESS;
4713e: 7009 moveq #9,%d0 <== NOT EXECUTED
47140: 6006 bras 47148 <rtems_task_get_note+0x7c> <== NOT EXECUTED
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
return RTEMS_INVALID_NUMBER;
47142: 700a moveq #10,%d0 <== NOT EXECUTED
47144: 6002 bras 47148 <rtems_task_get_note+0x7c> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
47146: 7004 moveq #4,%d0 <== NOT EXECUTED
}
47148: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4714c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
47150: 4e5e unlk %fp <== NOT EXECUTED
0004595c <rtems_task_ident>:
rtems_status_code rtems_task_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
4595c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45960: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
45964: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
if ( !id )
45968: 4a88 tstl %a0 <== NOT EXECUTED
4596a: 6734 beqs 459a0 <rtems_task_ident+0x44> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( name == OBJECTS_ID_OF_SELF ) {
4596c: 4a80 tstl %d0 <== NOT EXECUTED
4596e: 660c bnes 4597c <rtems_task_ident+0x20> <== NOT EXECUTED
*id = _Thread_Executing->Object.id;
45970: 2279 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
45976: 20a9 0008 movel %a1@(8),%a0@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4597a: 6026 bras 459a2 <rtems_task_ident+0x46> <== NOT EXECUTED
}
status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id );
4597c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4597e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
45982: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45984: 4879 0005 c638 pea 5c638 <_RTEMS_tasks_Information> <== NOT EXECUTED
4598a: 4eb9 0004 6ddc jsr 46ddc <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
45990: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
45994: 41f9 0005 a15e lea 5a15e <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
4599a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
4599e: 6002 bras 459a2 <rtems_task_ident+0x46> <== NOT EXECUTED
)
{
Objects_Name_or_id_lookup_errors status;
if ( !id )
return RTEMS_INVALID_ADDRESS;
459a0: 7009 moveq #9,%d0 <== NOT EXECUTED
}
status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id );
return _Status_Object_name_errors_to_status[ status ];
}
459a2: 4e5e unlk %fp <== NOT EXECUTED
...
00051480 <rtems_task_is_suspended>:
*/
rtems_status_code rtems_task_is_suspended(
rtems_id id
)
{
51480: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
51484: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51488: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
5148c: 4eb9 0005 4db4 jsr 54db4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
51492: 508f addql #8,%sp <== NOT EXECUTED
51494: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51498: 661c bnes 514b6 <rtems_task_is_suspended+0x36> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
5149a: 2040 moveal %d0,%a0 <== NOT EXECUTED
5149c: 7202 moveq #2,%d1 <== NOT EXECUTED
5149e: c2a8 0010 andl %a0@(16),%d1 <== NOT EXECUTED
514a2: 41f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a0 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
514a8: 6606 bnes 514b0 <rtems_task_is_suspended+0x30> <== NOT EXECUTED
_Thread_Enable_dispatch();
514aa: 4e90 jsr %a0@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
514ac: 4280 clrl %d0 <== NOT EXECUTED
514ae: 6008 bras 514b8 <rtems_task_is_suspended+0x38> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
514b0: 4e90 jsr %a0@ <== NOT EXECUTED
return RTEMS_ALREADY_SUSPENDED;
514b2: 700f moveq #15,%d0 <== NOT EXECUTED
514b4: 6002 bras 514b8 <rtems_task_is_suspended+0x38> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
514b6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
514b8: 4e5e unlk %fp <== NOT EXECUTED
0004b750 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
4b750: 4e56 ffe4 linkw %fp,#-28
4b754: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@
4b758: 262e 0008 movel %fp@(8),%d3
4b75c: 282e 000c movel %fp@(12),%d4
4b760: 286e 0010 moveal %fp@(16),%a4
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
4b764: 4a8c tstl %a4
4b766: 6700 0104 beqw 4b86c <rtems_task_mode+0x11c>
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
4b76a: 2679 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a3
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4b770: 4a2b 0074 tstb %a3@(116)
4b774: 57c2 seq %d2
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
4b776: 246b 00fc moveal %a3@(252),%a2
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4b77a: 49c2 extbl %d2
4b77c: 0282 0000 0100 andil #256,%d2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
4b782: 4aab 007a tstl %a3@(122)
4b786: 6704 beqs 4b78c <rtems_task_mode+0x3c> <== ALWAYS TAKEN
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
4b788: 08c2 0009 bset #9,%d2 <== NOT EXECUTED
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
4b78c: 4a2a 0008 tstb %a2@(8)
4b790: 57c5 seq %d5
old_mode |= _ISR_Get_level();
4b792: 4eb9 0004 87e4 jsr 487e4 <_CPU_ISR_Get_level>
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
4b798: 49c5 extbl %d5
4b79a: 0285 0000 0400 andil #1024,%d5
4b7a0: 8085 orl %d5,%d0
old_mode |= _ISR_Get_level();
4b7a2: 8082 orl %d2,%d0
4b7a4: 2880 movel %d0,%a4@
*previous_mode_set = old_mode;
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
4b7a6: 0804 0008 btst #8,%d4
4b7aa: 670c beqs 4b7b8 <rtems_task_mode+0x68> <== NEVER TAKEN
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
4b7ac: 0803 0008 btst #8,%d3
4b7b0: 57c0 seq %d0
4b7b2: 4480 negl %d0
4b7b4: 1740 0074 moveb %d0,%a3@(116)
if ( mask & RTEMS_TIMESLICE_MASK ) {
4b7b8: 0804 0009 btst #9,%d4
4b7bc: 671c beqs 4b7da <rtems_task_mode+0x8a>
if ( _Modes_Is_timeslice(mode_set) ) {
4b7be: 0803 0009 btst #9,%d3
4b7c2: 6712 beqs 4b7d6 <rtems_task_mode+0x86> <== ALWAYS TAKEN
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
4b7c4: 41f9 0005 c670 lea 5c670 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
if ( mask & RTEMS_PREEMPT_MASK )
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
4b7ca: 7001 moveq #1,%d0 <== NOT EXECUTED
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
4b7cc: 2750 0076 movel %a0@,%a3@(118) <== NOT EXECUTED
if ( mask & RTEMS_PREEMPT_MASK )
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
4b7d0: 2740 007a movel %d0,%a3@(122) <== NOT EXECUTED
4b7d4: 6004 bras 4b7da <rtems_task_mode+0x8a> <== NOT EXECUTED
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
} else
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
4b7d6: 42ab 007a clrl %a3@(122)
}
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
4b7da: 7007 moveq #7,%d0
4b7dc: c084 andl %d4,%d0
4b7de: 6712 beqs 4b7f2 <rtems_task_mode+0xa2>
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
4b7e0: 40c0 movew %sr,%d0
*/
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (
Modes_Control mode_set
)
{
return ( mode_set & RTEMS_INTERRUPT_MASK );
4b7e2: 7207 moveq #7,%d1
4b7e4: c283 andl %d3,%d1
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
4b7e6: 0280 0000 f8ff andil #63743,%d0
4b7ec: e189 lsll #8,%d1
4b7ee: 8081 orl %d1,%d0
4b7f0: 46c0 movew %d0,%sr
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
4b7f2: 0804 000a btst #10,%d4
4b7f6: 6740 beqs 4b838 <rtems_task_mode+0xe8>
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
4b7f8: 4281 clrl %d1
4b7fa: 122a 0008 moveb %a2@(8),%d1
4b7fe: 4282 clrl %d2
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
4b800: 0803 000a btst #10,%d3
4b804: 57c0 seq %d0
4b806: 4480 negl %d0
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
4b808: 1400 moveb %d0,%d2
4b80a: b282 cmpl %d2,%d1
4b80c: 672a beqs 4b838 <rtems_task_mode+0xe8> <== ALWAYS TAKEN
asr->is_enabled = is_asr_enabled;
4b80e: 1540 0008 moveb %d0,%a2@(8) <== NOT EXECUTED
)
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
4b812: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4b818: 40c1 movew %sr,%d1 <== NOT EXECUTED
4b81a: 8081 orl %d1,%d0 <== NOT EXECUTED
4b81c: 46c0 movew %d0,%sr <== NOT EXECUTED
_signals = information->signals_pending;
4b81e: 202a 0016 movel %a2@(22),%d0 <== NOT EXECUTED
information->signals_pending = information->signals_posted;
4b822: 256a 0012 0016 movel %a2@(18),%a2@(22) <== NOT EXECUTED
information->signals_posted = _signals;
4b828: 2540 0012 movel %d0,%a2@(18) <== NOT EXECUTED
_ISR_Enable( _level );
4b82c: 46c1 movew %d1,%sr <== NOT EXECUTED
/*
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
4b82e: 4aaa 0012 tstl %a2@(18) <== NOT EXECUTED
4b832: 56c0 sne %d0 <== NOT EXECUTED
4b834: 4480 negl %d0 <== NOT EXECUTED
4b836: 6002 bras 4b83a <rtems_task_mode+0xea> <== NOT EXECUTED
4b838: 4200 clrb %d0
needs_asr_dispatching = true;
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
4b83a: 7203 moveq #3,%d1
4b83c: b2b9 0005 c820 cmpl 5c820 <_System_state_Current>,%d1
4b842: 662c bnes 4b870 <rtems_task_mode+0x120> <== NEVER TAKEN
bool are_signals_pending
)
{
Thread_Control *executing;
executing = _Thread_Executing;
4b844: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
if ( are_signals_pending ||
4b84a: 4a00 tstb %d0
4b84c: 660e bnes 4b85c <rtems_task_mode+0x10c> <== NEVER TAKEN
4b84e: b1f9 0005 c87c cmpal 5c87c <_Per_CPU_Information+0x10>,%a0
4b854: 671a beqs 4b870 <rtems_task_mode+0x120> <== ALWAYS TAKEN
(!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
4b856: 4a28 0074 tstb %a0@(116) <== NOT EXECUTED
4b85a: 6714 beqs 4b870 <rtems_task_mode+0x120> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
4b85c: 7001 moveq #1,%d0 <== NOT EXECUTED
4b85e: 13c0 0005 c884 moveb %d0,5c884 <_Per_CPU_Information+0x18> <== NOT EXECUTED
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
4b864: 4eb9 0004 75ec jsr 475ec <_Thread_Dispatch> <== NOT EXECUTED
4b86a: 6004 bras 4b870 <rtems_task_mode+0x120> <== NOT EXECUTED
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
4b86c: 7009 moveq #9,%d0 <== NOT EXECUTED
4b86e: 6002 bras 4b872 <rtems_task_mode+0x122> <== NOT EXECUTED
if ( _System_state_Is_up( _System_state_Get() ) ) {
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
}
return RTEMS_SUCCESSFUL;
4b870: 4280 clrl %d0
}
4b872: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4
4b878: 4e5e unlk %fp <== NOT EXECUTED
0004618c <rtems_task_restart>:
rtems_status_code rtems_task_restart(
rtems_id id,
uint32_t argument
)
{
4618c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
46190: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46194: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46198: 4eb9 0004 7f08 jsr 47f08 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
4619e: 508f addql #8,%sp <== NOT EXECUTED
461a0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
461a4: 6628 bnes 461ce <rtems_task_restart+0x42> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _Thread_Restart( the_thread, NULL, argument ) ) {
461a6: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
461aa: 42a7 clrl %sp@- <== NOT EXECUTED
461ac: 2f00 movel %d0,%sp@- <== NOT EXECUTED
461ae: 4eb9 0004 8668 jsr 48668 <_Thread_Restart> <== NOT EXECUTED
461b4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
461b8: 41f9 0004 7ee2 lea 47ee2 <_Thread_Enable_dispatch>,%a0 <== NOT EXECUTED
461be: 4a00 tstb %d0 <== NOT EXECUTED
461c0: 6706 beqs 461c8 <rtems_task_restart+0x3c> <== NOT EXECUTED
_Thread_Enable_dispatch();
461c2: 4e90 jsr %a0@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
461c4: 4280 clrl %d0 <== NOT EXECUTED
461c6: 6008 bras 461d0 <rtems_task_restart+0x44> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
461c8: 4e90 jsr %a0@ <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
461ca: 700e moveq #14,%d0 <== NOT EXECUTED
461cc: 6002 bras 461d0 <rtems_task_restart+0x44> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
461ce: 7004 moveq #4,%d0 <== NOT EXECUTED
}
461d0: 4e5e unlk %fp <== NOT EXECUTED
00048798 <rtems_task_resume>:
*/
rtems_status_code rtems_task_resume(
rtems_id id
)
{
48798: 4e56 fffc linkw %fp,#-4
4879c: 2f0a movel %a2,%sp@-
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
4879e: 486e fffc pea %fp@(-4)
487a2: 2f2e 0008 movel %fp@(8),%sp@-
487a6: 4eb9 0004 a564 jsr 4a564 <_Thread_Get>
switch ( location ) {
487ac: 508f addql #8,%sp
487ae: 4aae fffc tstl %fp@(-4)
487b2: 662a bnes 487de <rtems_task_resume+0x46> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
487b4: 7202 moveq #2,%d1
487b6: 2040 moveal %d0,%a0
487b8: 45f9 0004 a53e lea 4a53e <_Thread_Enable_dispatch>,%a2
487be: c2a8 0010 andl %a0@(16),%d1
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
487c2: 6714 beqs 487d8 <rtems_task_resume+0x40> <== NEVER TAKEN
_Thread_Resume( the_thread, true );
487c4: 4878 0001 pea 1 <ADD>
487c8: 2f00 movel %d0,%sp@-
487ca: 4eb9 0004 acc4 jsr 4acc4 <_Thread_Resume>
_Thread_Enable_dispatch();
487d0: 4e92 jsr %a2@
return RTEMS_SUCCESSFUL;
487d2: 508f addql #8,%sp
487d4: 4280 clrl %d0
487d6: 6008 bras 487e0 <rtems_task_resume+0x48>
}
_Thread_Enable_dispatch();
487d8: 4e92 jsr %a2@ <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
487da: 700e moveq #14,%d0 <== NOT EXECUTED
487dc: 6002 bras 487e0 <rtems_task_resume+0x48> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
487de: 7004 moveq #4,%d0 <== NOT EXECUTED
}
487e0: 246e fff8 moveal %fp@(-8),%a2
487e4: 4e5e unlk %fp <== NOT EXECUTED
00047234 <rtems_task_set_note>:
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
47234: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
47238: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4723c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4723e: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
47242: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47244: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
47248: 4a39 0005 d604 tstb 5d604 <Configuration_RTEMS_API+0x4> <== NOT EXECUTED
4724e: 674e beqs 4729e <rtems_task_set_note+0x6a> <== NOT EXECUTED
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
47250: 720f moveq #15,%d1 <== NOT EXECUTED
47252: b282 cmpl %d2,%d1 <== NOT EXECUTED
47254: 654c bcss 472a2 <rtems_task_set_note+0x6e> <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
47256: 4a80 tstl %d0 <== NOT EXECUTED
47258: 670c beqs 47266 <rtems_task_set_note+0x32> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
4725a: 2079 0005 f2c0 moveal 5f2c0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
47260: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED
47264: 6610 bnes 47276 <rtems_task_set_note+0x42> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
47266: 2079 0005 f2c0 moveal 5f2c0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
api->Notepads[ notepad ] = note;
4726c: 2068 00fc moveal %a0@(252),%a0 <== NOT EXECUTED
47270: 2183 2c1e movel %d3,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED
47274: 6024 bras 4729a <rtems_task_set_note+0x66> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
47276: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4727a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4727c: 4eb9 0004 9180 jsr 49180 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
47282: 508f addql #8,%sp <== NOT EXECUTED
47284: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47288: 661c bnes 472a6 <rtems_task_set_note+0x72> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
4728a: 2240 moveal %d0,%a1 <== NOT EXECUTED
4728c: 2069 00fc moveal %a1@(252),%a0 <== NOT EXECUTED
47290: 2183 2c1e movel %d3,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED
_Thread_Enable_dispatch();
47294: 4eb9 0004 915a jsr 4915a <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4729a: 4280 clrl %d0 <== NOT EXECUTED
4729c: 600a bras 472a8 <rtems_task_set_note+0x74> <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
4729e: 7016 moveq #22,%d0 <== NOT EXECUTED
472a0: 6006 bras 472a8 <rtems_task_set_note+0x74> <== NOT EXECUTED
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
return RTEMS_INVALID_NUMBER;
472a2: 700a moveq #10,%d0 <== NOT EXECUTED
472a4: 6002 bras 472a8 <rtems_task_set_note+0x74> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
472a6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
472a8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
472ac: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
472b0: 4e5e unlk %fp <== NOT EXECUTED
000492d4 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
492d4: 4e56 fffc linkw %fp,#-4
492d8: 2f0a movel %a2,%sp@-
492da: 246e 0010 moveal %fp@(16),%a2
492de: 2f02 movel %d2,%sp@-
492e0: 242e 000c movel %fp@(12),%d2
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
492e4: 670c beqs 492f2 <rtems_task_set_priority+0x1e> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
492e6: 4280 clrl %d0
492e8: 1039 0005 e7c2 moveb 5e7c2 <rtems_maximum_priority>,%d0
492ee: b082 cmpl %d2,%d0
492f0: 654e bcss 49340 <rtems_task_set_priority+0x6c> <== NEVER TAKEN
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
492f2: 4a8a tstl %a2
492f4: 674e beqs 49344 <rtems_task_set_priority+0x70> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
492f6: 486e fffc pea %fp@(-4)
492fa: 2f2e 0008 movel %fp@(8),%sp@-
492fe: 4eb9 0004 b1ec jsr 4b1ec <_Thread_Get>
switch ( location ) {
49304: 508f addql #8,%sp
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
49306: 2040 moveal %d0,%a0
switch ( location ) {
49308: 4aae fffc tstl %fp@(-4)
4930c: 663a bnes 49348 <rtems_task_set_priority+0x74> <== NEVER TAKEN
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
4930e: 24a8 0014 movel %a0@(20),%a2@
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
49312: 4a82 tstl %d2
49314: 6720 beqs 49336 <rtems_task_set_priority+0x62> <== NEVER TAKEN
the_thread->real_priority = new_priority;
49316: 2142 0018 movel %d2,%a0@(24)
if ( the_thread->resource_count == 0 ||
4931a: 4aa8 001c tstl %a0@(28)
4931e: 6706 beqs 49326 <rtems_task_set_priority+0x52> <== ALWAYS TAKEN
49320: b4a8 0014 cmpl %a0@(20),%d2
49324: 6410 bccs 49336 <rtems_task_set_priority+0x62> <== NOT EXECUTED
the_thread->current_priority > new_priority )
_Thread_Change_priority( the_thread, new_priority, false );
49326: 42a7 clrl %sp@-
49328: 2f02 movel %d2,%sp@-
4932a: 2f08 movel %a0,%sp@-
4932c: 4eb9 0004 ad2c jsr 4ad2c <_Thread_Change_priority>
49332: 4fef 000c lea %sp@(12),%sp
}
_Thread_Enable_dispatch();
49336: 4eb9 0004 b1c6 jsr 4b1c6 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
4933c: 4280 clrl %d0
4933e: 600a bras 4934a <rtems_task_set_priority+0x76>
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
49340: 7013 moveq #19,%d0
49342: 6006 bras 4934a <rtems_task_set_priority+0x76> <== NOT EXECUTED
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
49344: 7009 moveq #9,%d0 <== NOT EXECUTED
49346: 6002 bras 4934a <rtems_task_set_priority+0x76> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
49348: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4934a: 242e fff4 movel %fp@(-12),%d2
4934e: 246e fff8 moveal %fp@(-8),%a2
49352: 4e5e unlk %fp
...
00045a2c <rtems_task_start>:
rtems_status_code rtems_task_start(
rtems_id id,
rtems_task_entry entry_point,
rtems_task_argument argument
)
{
45a2c: 4e56 fffc linkw %fp,#-4
45a30: 2f02 movel %d2,%sp@-
45a32: 242e 000c movel %fp@(12),%d2
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
45a36: 6742 beqs 45a7a <rtems_task_start+0x4e>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
45a38: 486e fffc pea %fp@(-4)
45a3c: 2f2e 0008 movel %fp@(8),%sp@-
45a40: 4eb9 0004 7750 jsr 47750 <_Thread_Get>
switch ( location ) {
45a46: 508f addql #8,%sp
45a48: 4aae fffc tstl %fp@(-4)
45a4c: 6630 bnes 45a7e <rtems_task_start+0x52> <== NEVER TAKEN
case OBJECTS_LOCAL:
if ( _Thread_Start(
45a4e: 2f2e 0010 movel %fp@(16),%sp@-
45a52: 42a7 clrl %sp@-
45a54: 2f02 movel %d2,%sp@-
45a56: 42a7 clrl %sp@-
45a58: 2f00 movel %d0,%sp@-
45a5a: 4eb9 0004 8070 jsr 48070 <_Thread_Start>
45a60: 4fef 0014 lea %sp@(20),%sp
45a64: 41f9 0004 772a lea 4772a <_Thread_Enable_dispatch>,%a0
45a6a: 4a00 tstb %d0
45a6c: 6706 beqs 45a74 <rtems_task_start+0x48> <== NEVER TAKEN
the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
45a6e: 4e90 jsr %a0@
return RTEMS_SUCCESSFUL;
45a70: 4280 clrl %d0
45a72: 600c bras 45a80 <rtems_task_start+0x54>
}
_Thread_Enable_dispatch();
45a74: 4e90 jsr %a0@ <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
45a76: 700e moveq #14,%d0 <== NOT EXECUTED
45a78: 6006 bras 45a80 <rtems_task_start+0x54> <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
return RTEMS_INVALID_ADDRESS;
45a7a: 7009 moveq #9,%d0
45a7c: 6002 bras 45a80 <rtems_task_start+0x54>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
45a7e: 7004 moveq #4,%d0 <== NOT EXECUTED
}
45a80: 242e fff8 movel %fp@(-8),%d2
45a84: 4e5e unlk %fp <== NOT EXECUTED
00045a88 <rtems_task_suspend>:
*/
rtems_status_code rtems_task_suspend(
rtems_id id
)
{
45a88: 4e56 fffc linkw %fp,#-4
45a8c: 2f0a movel %a2,%sp@-
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
45a8e: 486e fffc pea %fp@(-4)
45a92: 2f2e 0008 movel %fp@(8),%sp@-
45a96: 4eb9 0004 7750 jsr 47750 <_Thread_Get>
switch ( location ) {
45a9c: 508f addql #8,%sp
45a9e: 4aae fffc tstl %fp@(-4)
45aa2: 6626 bnes 45aca <rtems_task_suspend+0x42> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
45aa4: 7202 moveq #2,%d1
45aa6: 2040 moveal %d0,%a0
45aa8: 45f9 0004 772a lea 4772a <_Thread_Enable_dispatch>,%a2
45aae: c2a8 0010 andl %a0@(16),%d1
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
45ab2: 6610 bnes 45ac4 <rtems_task_suspend+0x3c> <== NEVER TAKEN
_Thread_Suspend( the_thread );
45ab4: 2f00 movel %d0,%sp@-
45ab6: 4eb9 0004 80c4 jsr 480c4 <_Thread_Suspend>
_Thread_Enable_dispatch();
45abc: 4e92 jsr %a2@
return RTEMS_SUCCESSFUL;
45abe: 588f addql #4,%sp
45ac0: 4280 clrl %d0
45ac2: 6008 bras 45acc <rtems_task_suspend+0x44>
}
_Thread_Enable_dispatch();
45ac4: 4e92 jsr %a2@ <== NOT EXECUTED
return RTEMS_ALREADY_SUSPENDED;
45ac6: 700f moveq #15,%d0 <== NOT EXECUTED
45ac8: 6002 bras 45acc <rtems_task_suspend+0x44> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
45aca: 7004 moveq #4,%d0 <== NOT EXECUTED
}
45acc: 246e fff8 moveal %fp@(-8),%a2
45ad0: 4e5e unlk %fp <== NOT EXECUTED
0004656c <rtems_task_variable_add>:
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
4656c: 4e56 fff0 linkw %fp,#-16
46570: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
46574: 246e 000c moveal %fp@(12),%a2
46578: 242e 0010 movel %fp@(16),%d2
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
4657c: 4a8a tstl %a2
4657e: 676e beqs 465ee <rtems_task_variable_add+0x82>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
46580: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46584: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46588: 4eb9 0004 8328 jsr 48328 <_Thread_Get> <== NOT EXECUTED
switch (location) {
4658e: 508f addql #8,%sp <== NOT EXECUTED
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
46590: 2640 moveal %d0,%a3 <== NOT EXECUTED
switch (location) {
46592: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46596: 665a bnes 465f2 <rtems_task_variable_add+0x86> <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
46598: 206b 0108 moveal %a3@(264),%a0 <== NOT EXECUTED
while (tvp) {
4659c: 6014 bras 465b2 <rtems_task_variable_add+0x46> <== NOT EXECUTED
if (tvp->ptr == ptr) {
4659e: b5e8 0004 cmpal %a0@(4),%a2 <== NOT EXECUTED
465a2: 660c bnes 465b0 <rtems_task_variable_add+0x44> <== NOT EXECUTED
tvp->dtor = dtor;
465a4: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED
_Thread_Enable_dispatch();
465a8: 4eb9 0004 8302 jsr 48302 <_Thread_Enable_dispatch> <== NOT EXECUTED
465ae: 603a bras 465ea <rtems_task_variable_add+0x7e> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
465b0: 2050 moveal %a0@,%a0 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
465b2: 4a88 tstl %a0 <== NOT EXECUTED
465b4: 66e8 bnes 4659e <rtems_task_variable_add+0x32> <== NOT EXECUTED
/*
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
_Workspace_Allocate(sizeof(rtems_task_variable_t));
465b6: 4878 0014 pea 14 <OPER2> <== NOT EXECUTED
465ba: 4eb9 0004 9298 jsr 49298 <_Workspace_Allocate> <== NOT EXECUTED
if (new == NULL) {
465c0: 588f addql #4,%sp <== NOT EXECUTED
465c2: 43f9 0004 8302 lea 48302 <_Thread_Enable_dispatch>,%a1 <== NOT EXECUTED
/*
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
_Workspace_Allocate(sizeof(rtems_task_variable_t));
465c8: 2040 moveal %d0,%a0 <== NOT EXECUTED
if (new == NULL) {
465ca: 4a80 tstl %d0 <== NOT EXECUTED
465cc: 6606 bnes 465d4 <rtems_task_variable_add+0x68> <== NOT EXECUTED
_Thread_Enable_dispatch();
465ce: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_NO_MEMORY;
465d0: 701a moveq #26,%d0 <== NOT EXECUTED
465d2: 6020 bras 465f4 <rtems_task_variable_add+0x88> <== NOT EXECUTED
}
new->gval = *ptr;
465d4: 2152 0008 movel %a2@,%a0@(8) <== NOT EXECUTED
new->ptr = ptr;
new->dtor = dtor;
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
465d8: 20ab 0108 movel %a3@(264),%a0@ <== NOT EXECUTED
if (new == NULL) {
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
}
new->gval = *ptr;
new->ptr = ptr;
465dc: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
new->dtor = dtor;
465e0: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
the_thread->task_variables = new;
465e4: 2740 0108 movel %d0,%a3@(264) <== NOT EXECUTED
_Thread_Enable_dispatch();
465e8: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
465ea: 4280 clrl %d0 <== NOT EXECUTED
465ec: 6006 bras 465f4 <rtems_task_variable_add+0x88> <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
465ee: 7009 moveq #9,%d0
465f0: 6002 bras 465f4 <rtems_task_variable_add+0x88>
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
465f2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
465f4: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3
465fa: 4e5e unlk %fp
...
00046600 <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
46600: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46604: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46606: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
4660a: 6758 beqs 46664 <rtems_task_variable_delete+0x64><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
4660c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46610: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46614: 4eb9 0004 8328 jsr 48328 <_Thread_Get> <== NOT EXECUTED
switch (location) {
4661a: 508f addql #8,%sp <== NOT EXECUTED
4661c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46620: 6646 bnes 46668 <rtems_task_variable_delete+0x68><== NOT EXECUTED
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
46622: 2240 moveal %d0,%a1 <== NOT EXECUTED
46624: 2069 0108 moveal %a1@(264),%a0 <== NOT EXECUTED
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
prev = NULL;
46628: 93c9 subal %a1,%a1 <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
4662a: 602e bras 4665a <rtems_task_variable_delete+0x5a><== NOT EXECUTED
if (tvp->ptr == ptr) {
4662c: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED
46630: 6624 bnes 46656 <rtems_task_variable_delete+0x56><== NOT EXECUTED
if (prev)
46632: 4a89 tstl %a1 <== NOT EXECUTED
46634: 6704 beqs 4663a <rtems_task_variable_delete+0x3a><== NOT EXECUTED
prev->next = tvp->next;
46636: 2290 movel %a0@,%a1@ <== NOT EXECUTED
46638: 6006 bras 46640 <rtems_task_variable_delete+0x40><== NOT EXECUTED
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
4663a: 2240 moveal %d0,%a1 <== NOT EXECUTED
4663c: 2350 0108 movel %a0@,%a1@(264) <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
46640: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46642: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46644: 4eb9 0004 66dc jsr 466dc <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED
_Thread_Enable_dispatch();
4664a: 4eb9 0004 8302 jsr 48302 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46650: 508f addql #8,%sp <== NOT EXECUTED
46652: 4280 clrl %d0 <== NOT EXECUTED
46654: 6014 bras 4666a <rtems_task_variable_delete+0x6a><== NOT EXECUTED
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
46656: 2248 moveal %a0,%a1 <== NOT EXECUTED
46658: 2050 moveal %a0@,%a0 <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
4665a: 4a88 tstl %a0 <== NOT EXECUTED
4665c: 66ce bnes 4662c <rtems_task_variable_delete+0x2c><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
4665e: 4eb9 0004 8302 jsr 48302 <_Thread_Enable_dispatch> <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
46664: 7009 moveq #9,%d0 <== NOT EXECUTED
46666: 6002 bras 4666a <rtems_task_variable_delete+0x6a><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
46668: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4666a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4666e: 4e5e unlk %fp <== NOT EXECUTED
...
00046674 <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
46674: 4e56 fffc linkw %fp,#-4
46678: 2f0a movel %a2,%sp@-
4667a: 246e 0010 moveal %fp@(16),%a2
4667e: 2f02 movel %d2,%sp@-
46680: 242e 000c movel %fp@(12),%d2
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
46684: 6742 beqs 466c8 <rtems_task_variable_get+0x54> <== ALWAYS TAKEN
return RTEMS_INVALID_ADDRESS;
if ( !result )
46686: 4a8a tstl %a2 <== NOT EXECUTED
46688: 673e beqs 466c8 <rtems_task_variable_get+0x54> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
4668a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4668e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46692: 4eb9 0004 8328 jsr 48328 <_Thread_Get> <== NOT EXECUTED
switch (location) {
46698: 508f addql #8,%sp <== NOT EXECUTED
4669a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4669e: 662c bnes 466cc <rtems_task_variable_get+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
466a0: 2240 moveal %d0,%a1 <== NOT EXECUTED
466a2: 2069 0108 moveal %a1@(264),%a0 <== NOT EXECUTED
while (tvp) {
466a6: 6016 bras 466be <rtems_task_variable_get+0x4a> <== NOT EXECUTED
if (tvp->ptr == ptr) {
466a8: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED
466ac: 660e bnes 466bc <rtems_task_variable_get+0x48> <== NOT EXECUTED
/*
* Should this return the current (i.e not the
* saved) value if `tid' is the current task?
*/
*result = tvp->tval;
466ae: 24a8 000c movel %a0@(12),%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
466b2: 4eb9 0004 8302 jsr 48302 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
466b8: 4280 clrl %d0 <== NOT EXECUTED
466ba: 6012 bras 466ce <rtems_task_variable_get+0x5a> <== NOT EXECUTED
}
tvp = (rtems_task_variable_t *)tvp->next;
466bc: 2050 moveal %a0@,%a0 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
466be: 4a88 tstl %a0 <== NOT EXECUTED
466c0: 66e6 bnes 466a8 <rtems_task_variable_get+0x34> <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
466c2: 4eb9 0004 8302 jsr 48302 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
if ( !result )
return RTEMS_INVALID_ADDRESS;
466c8: 7009 moveq #9,%d0
466ca: 6002 bras 466ce <rtems_task_variable_get+0x5a>
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
466cc: 7004 moveq #4,%d0 <== NOT EXECUTED
}
466ce: 242e fff4 movel %fp@(-12),%d2
466d2: 246e fff8 moveal %fp@(-8),%a2
466d6: 4e5e unlk %fp
...
00045ad4 <rtems_task_wake_after>:
*/
rtems_status_code rtems_task_wake_after(
rtems_interval ticks
)
{
45ad4: 4e56 0000 linkw %fp,#0
45ad8: 2039 0005 c6b8 movel 5c6b8 <_Thread_Dispatch_disable_level>,%d0
45ade: 5280 addql #1,%d0
45ae0: 2f02 movel %d2,%sp@-
45ae2: 242e 0008 movel %fp@(8),%d2
45ae6: 23c0 0005 c6b8 movel %d0,5c6b8 <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
45aec: 4a82 tstl %d2
45aee: 6612 bnes 45b02 <rtems_task_wake_after+0x2e> <== ALWAYS TAKEN
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield( &_Scheduler );
45af0: 4879 0005 c73e pea 5c73e <_Scheduler> <== NOT EXECUTED
45af6: 2079 0005 c746 moveal 5c746 <_Scheduler+0x8>,%a0 <== NOT EXECUTED
45afc: 4e90 jsr %a0@ <== NOT EXECUTED
45afe: 588f addql #4,%sp <== NOT EXECUTED
45b00: 6048 bras 45b4a <rtems_task_wake_after+0x76> <== NOT EXECUTED
_Scheduler_Yield();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
45b02: 4878 0008 pea 8 <DIVIDE_BY_ZERO>
45b06: 2f39 0005 c878 movel 5c878 <_Per_CPU_Information+0xc>,%sp@-
45b0c: 4eb9 0004 7ed8 jsr 47ed8 <_Thread_Set_state>
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
45b12: 2079 0005 c878 moveal 5c878 <_Per_CPU_Information+0xc>,%a0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
45b18: 223c 0004 75b0 movel #292272,%d1
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
_Scheduler_Yield();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
_Watchdog_Initialize(
45b1e: 2028 0008 movel %a0@(8),%d0
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
45b22: 42a8 0050 clrl %a0@(80)
the_watchdog->routine = routine;
45b26: 2141 0064 movel %d1,%a0@(100)
the_watchdog->id = id;
45b2a: 2140 0068 movel %d0,%a0@(104)
the_watchdog->user_data = user_data;
45b2e: 42a8 006c clrl %a0@(108)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
45b32: 2142 0054 movel %d2,%a0@(84)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45b36: 4868 0048 pea %a0@(72)
45b3a: 4879 0005 c798 pea 5c798 <_Watchdog_Ticks_chain>
45b40: 4eb9 0004 844c jsr 4844c <_Watchdog_Insert>
45b46: 4fef 0010 lea %sp@(16),%sp
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
}
_Thread_Enable_dispatch();
45b4a: 4eb9 0004 772a jsr 4772a <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
}
45b50: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
45b54: 4280 clrl %d0 <== NOT EXECUTED
45b56: 4e5e unlk %fp <== NOT EXECUTED
...
000466d4 <rtems_task_wake_when>:
*/
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
466d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
466d8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466da: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
466de: 4a39 0005 dc80 tstb 5dc80 <_TOD_Is_set> <== NOT EXECUTED
466e4: 6700 0096 beqw 4677c <rtems_task_wake_when+0xa8> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
466e8: 4a8a tstl %a2 <== NOT EXECUTED
466ea: 6700 0094 beqw 46780 <rtems_task_wake_when+0xac> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
time_buffer->ticks = 0;
466ee: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
if ( !_TOD_Validate( time_buffer ) )
466f2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466f4: 4eb9 0004 5b84 jsr 45b84 <_TOD_Validate> <== NOT EXECUTED
466fa: 588f addql #4,%sp <== NOT EXECUTED
466fc: 4a00 tstb %d0 <== NOT EXECUTED
466fe: 6700 0084 beqw 46784 <rtems_task_wake_when+0xb0> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
46702: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46704: 4eb9 0004 5ae8 jsr 45ae8 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
4670a: 588f addql #4,%sp <== NOT EXECUTED
time_buffer->ticks = 0;
if ( !_TOD_Validate( time_buffer ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
4670c: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
4670e: b0b9 0005 dd1a cmpl 5dd1a <_TOD_Now>,%d0 <== NOT EXECUTED
46714: 636e blss 46784 <rtems_task_wake_when+0xb0> <== NOT EXECUTED
46716: 2039 0005 dc70 movel 5dc70 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4671c: 5280 addql #1,%d0 <== NOT EXECUTED
4671e: 23c0 0005 dc70 movel %d0,5dc70 <_Thread_Dispatch_disable_level><== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
46724: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
46728: 2f39 0005 de30 movel 5de30 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
4672e: 4eb9 0004 8b00 jsr 48b00 <_Thread_Set_state> <== NOT EXECUTED
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
46734: 2079 0005 de30 moveal 5de30 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
NULL
);
_Watchdog_Insert_seconds(
4673a: 95f9 0005 dd1a subal 5dd1a <_TOD_Now>,%a2 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
46740: 223c 0004 81d8 movel #295384,%d1 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
_Watchdog_Initialize(
46746: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4674a: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
4674e: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
46752: 2141 0064 movel %d1,%a0@(100) <== NOT EXECUTED
the_watchdog->id = id;
the_watchdog->user_data = user_data;
46756: 42a8 006c clrl %a0@(108) <== NOT EXECUTED
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_seconds(
4675a: 214a 0054 movel %a2,%a0@(84) <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
4675e: 4868 0048 pea %a0@(72) <== NOT EXECUTED
46762: 4879 0005 dd44 pea 5dd44 <_Watchdog_Seconds_chain> <== NOT EXECUTED
46768: 4eb9 0004 90f4 jsr 490f4 <_Watchdog_Insert> <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
4676e: 4eb9 0004 8352 jsr 48352 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46774: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
46778: 4280 clrl %d0 <== NOT EXECUTED
4677a: 600a bras 46786 <rtems_task_wake_when+0xb2> <== NOT EXECUTED
)
{
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
4677c: 700b moveq #11,%d0 <== NOT EXECUTED
4677e: 6006 bras 46786 <rtems_task_wake_when+0xb2> <== NOT EXECUTED
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
46780: 7009 moveq #9,%d0 <== NOT EXECUTED
46782: 6002 bras 46786 <rtems_task_wake_when+0xb2> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
46784: 7014 moveq #20,%d0 <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
46786: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4678a: 4e5e unlk %fp <== NOT EXECUTED
...
00051970 <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
51970: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
51974: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51978: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
5197c: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51982: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51988: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
5198c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51990: 6620 bnes 519b2 <rtems_timer_cancel+0x42> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
51992: 7204 moveq #4,%d1 <== NOT EXECUTED
51994: 2040 moveal %d0,%a0 <== NOT EXECUTED
51996: b2a8 0038 cmpl %a0@(56),%d1 <== NOT EXECUTED
5199a: 670c beqs 519a8 <rtems_timer_cancel+0x38> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_timer->Ticker );
5199c: 4868 0010 pea %a0@(16) <== NOT EXECUTED
519a0: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
519a6: 588f addql #4,%sp <== NOT EXECUTED
_Thread_Enable_dispatch();
519a8: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
519ae: 4280 clrl %d0 <== NOT EXECUTED
519b0: 6002 bras 519b4 <rtems_timer_cancel+0x44> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
519b2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
519b4: 4e5e unlk %fp <== NOT EXECUTED
00045cb0 <rtems_timer_create>:
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
45cb0: 4e56 fff4 linkw %fp,#-12
45cb4: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
45cb8: 242e 0008 movel %fp@(8),%d2
45cbc: 246e 000c moveal %fp@(12),%a2
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
45cc0: 6766 beqs 45d28 <rtems_timer_create+0x78> <== NEVER TAKEN
return RTEMS_INVALID_NAME;
if ( !id )
45cc2: 4a8a tstl %a2
45cc4: 6766 beqs 45d2c <rtems_timer_create+0x7c> <== NEVER TAKEN
45cc6: 2039 0005 c92a movel 5c92a <_Thread_Dispatch_disable_level>,%d0
45ccc: 5280 addql #1,%d0
45cce: 23c0 0005 c92a movel %d0,5c92a <_Thread_Dispatch_disable_level>
* This function allocates a timer control block from
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void )
{
return (Timer_Control *) _Objects_Allocate( &_Timer_Information );
45cd4: 4879 0005 cb20 pea 5cb20 <_Timer_Information>
45cda: 4eb9 0004 6aac jsr 46aac <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
45ce0: 588f addql #4,%sp
45ce2: 43f9 0004 7946 lea 47946 <_Thread_Enable_dispatch>,%a1
45ce8: 2040 moveal %d0,%a0
45cea: 4a80 tstl %d0
45cec: 6606 bnes 45cf4 <rtems_timer_create+0x44> <== ALWAYS TAKEN
_Thread_Enable_dispatch();
45cee: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
45cf0: 7005 moveq #5,%d0 <== NOT EXECUTED
45cf2: 603a bras 45d2e <rtems_timer_create+0x7e> <== NOT EXECUTED
}
the_timer->the_class = TIMER_DORMANT;
45cf4: 7004 moveq #4,%d0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
45cf6: 4281 clrl %d1
45cf8: 2140 0038 movel %d0,%a0@(56)
information,
_Objects_Get_index( the_object->id ),
45cfc: 2028 0008 movel %a0@(8),%d0
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45d00: 2679 0005 cb38 moveal 5cb38 <_Timer_Information+0x18>,%a3
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
45d06: 3200 movew %d0,%d1
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
45d08: 42a8 0018 clrl %a0@(24)
the_watchdog->routine = routine;
45d0c: 42a8 002c clrl %a0@(44)
the_watchdog->id = id;
45d10: 42a8 0030 clrl %a0@(48)
the_watchdog->user_data = user_data;
45d14: 42a8 0034 clrl %a0@(52)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45d18: 2788 1c00 movel %a0,%a3@(00000000,%d1:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
45d1c: 2142 000c movel %d2,%a0@(12)
&_Timer_Information,
&the_timer->Object,
(Objects_Name) name
);
*id = the_timer->Object.id;
45d20: 2480 movel %d0,%a2@
_Thread_Enable_dispatch();
45d22: 4e91 jsr %a1@
return RTEMS_SUCCESSFUL;
45d24: 4280 clrl %d0
45d26: 6006 bras 45d2e <rtems_timer_create+0x7e>
)
{
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
45d28: 7003 moveq #3,%d0 <== NOT EXECUTED
45d2a: 6002 bras 45d2e <rtems_timer_create+0x7e> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
45d2c: 7009 moveq #9,%d0 <== NOT EXECUTED
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
45d2e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
45d34: 4e5e unlk %fp <== NOT EXECUTED
00051a40 <rtems_timer_delete>:
*/
rtems_status_code rtems_timer_delete(
rtems_id id
)
{
51a40: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
51a44: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
51a46: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51a4a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51a4e: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51a54: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51a5a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51a5e: 2440 moveal %d0,%a2 <== NOT EXECUTED
51a60: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51a64: 6634 bnes 51a9a <rtems_timer_delete+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Timer_Information, &the_timer->Object );
51a66: 2f00 movel %d0,%sp@- <== NOT EXECUTED
51a68: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51a6e: 4eb9 0005 3ec4 jsr 53ec4 <_Objects_Close> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_timer->Ticker );
51a74: 486a 0010 pea %a2@(16) <== NOT EXECUTED
51a78: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Timer_Free (
Timer_Control *the_timer
)
{
_Objects_Free( &_Timer_Information, &the_timer->Object );
51a7e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51a80: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51a86: 4eb9 0005 413c jsr 5413c <_Objects_Free> <== NOT EXECUTED
_Timer_Free( the_timer );
_Thread_Enable_dispatch();
51a8c: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51a92: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
51a96: 4280 clrl %d0 <== NOT EXECUTED
51a98: 6002 bras 51a9c <rtems_timer_delete+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51a9a: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51a9c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
51aa0: 4e5e unlk %fp <== NOT EXECUTED
00045d38 <rtems_timer_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
45d38: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
45d3c: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
45d40: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED
45d44: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
45d48: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
45d4c: 4a83 tstl %d3 <== NOT EXECUTED
45d4e: 6700 0088 beqw 45dd8 <rtems_timer_fire_after+0xa0> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
if ( !routine )
45d52: 4a85 tstl %d5 <== NOT EXECUTED
45d54: 6700 0086 beqw 45ddc <rtems_timer_fire_after+0xa4> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
45d58: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45d5c: 2f04 movel %d4,%sp@- <== NOT EXECUTED
45d5e: 4879 0005 cb20 pea 5cb20 <_Timer_Information> <== NOT EXECUTED
45d64: 4eb9 0004 6f04 jsr 46f04 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
45d6a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45d6e: 2440 moveal %d0,%a2 <== NOT EXECUTED
45d70: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45d74: 666a bnes 45de0 <rtems_timer_fire_after+0xa8> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
45d76: 2400 movel %d0,%d2 <== NOT EXECUTED
45d78: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
45d7e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45d80: 4eb9 0004 8784 jsr 48784 <_Watchdog_Remove> <== NOT EXECUTED
_ISR_Disable( level );
45d86: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
45d8c: 40c1 movew %sr,%d1 <== NOT EXECUTED
45d8e: 8081 orl %d1,%d0 <== NOT EXECUTED
45d90: 46c0 movew %d0,%sr <== NOT EXECUTED
45d92: 47f9 0004 7946 lea 47946 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
45d98: 588f addql #4,%sp <== NOT EXECUTED
45d9a: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED
45d9e: 6706 beqs 45da6 <rtems_timer_fire_after+0x6e> <== NOT EXECUTED
_ISR_Enable( level );
45da0: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_Enable_dispatch();
45da2: 4e93 jsr %a3@ <== NOT EXECUTED
45da4: 602e bras 45dd4 <rtems_timer_fire_after+0x9c> <== NOT EXECUTED
/*
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
the_timer->the_class = TIMER_INTERVAL;
45da6: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED
45daa: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
45db0: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
45db4: 2545 002c movel %d5,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
45db8: 2544 0030 movel %d4,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_ISR_Enable( level );
45dbc: 46c1 movew %d1,%sr <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
45dbe: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45dc2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45dc4: 4879 0005 ca0a pea 5ca0a <_Watchdog_Ticks_chain> <== NOT EXECUTED
45dca: 4eb9 0004 8668 jsr 48668 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_timer->Ticker, ticks );
_Thread_Enable_dispatch();
45dd0: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45dd2: 508f addql #8,%sp <== NOT EXECUTED
45dd4: 4280 clrl %d0 <== NOT EXECUTED
45dd6: 600a bras 45de2 <rtems_timer_fire_after+0xaa> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
45dd8: 700a moveq #10,%d0 <== NOT EXECUTED
45dda: 6006 bras 45de2 <rtems_timer_fire_after+0xaa> <== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
45ddc: 7009 moveq #9,%d0 <== NOT EXECUTED
45dde: 6002 bras 45de2 <rtems_timer_fire_after+0xaa> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
45de0: 7004 moveq #4,%d0 <== NOT EXECUTED
}
45de2: 4cee 0c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a3 <== NOT EXECUTED
45de8: 4e5e unlk %fp <== NOT EXECUTED
00051b58 <rtems_timer_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
51b58: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
51b5c: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED
51b60: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED
51b64: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
51b68: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
51b6c: 4a39 0007 5004 tstb 75004 <_TOD_Is_set> <== NOT EXECUTED
51b72: 6700 0098 beqw 51c0c <rtems_timer_fire_when+0xb4> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
51b76: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51b78: 4eb9 0004 f2b4 jsr 4f2b4 <_TOD_Validate> <== NOT EXECUTED
51b7e: 588f addql #4,%sp <== NOT EXECUTED
51b80: 4a00 tstb %d0 <== NOT EXECUTED
51b82: 6700 0090 beqw 51c14 <rtems_timer_fire_when+0xbc> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
if ( !routine )
51b86: 4a85 tstl %d5 <== NOT EXECUTED
51b88: 6700 0086 beqw 51c10 <rtems_timer_fire_when+0xb8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
51b8c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51b8e: 4eb9 0004 f218 jsr 4f218 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51b94: 588f addql #4,%sp <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
51b96: 2600 movel %d0,%d3 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51b98: b0b9 0007 509e cmpl 7509e <_TOD_Now>,%d0 <== NOT EXECUTED
51b9e: 6374 blss 51c14 <rtems_timer_fire_when+0xbc> <== NOT EXECUTED
51ba0: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51ba4: 2f04 movel %d4,%sp@- <== NOT EXECUTED
51ba6: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51bac: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51bb2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51bb6: 2440 moveal %d0,%a2 <== NOT EXECUTED
51bb8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51bbc: 665a bnes 51c18 <rtems_timer_fire_when+0xc0> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
51bbe: 2400 movel %d0,%d2 <== NOT EXECUTED
51bc0: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
51bc6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51bc8: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
51bce: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED
the_timer->the_class = TIMER_TIME_OF_DAY;
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_Watchdog_Insert_seconds(
51bd4: 96b9 0007 509e subl 7509e <_TOD_Now>,%d3 <== NOT EXECUTED
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;
51bda: 7002 moveq #2,%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
51bdc: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
51be0: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
the_watchdog->routine = routine;
51be4: 2545 002c movel %d5,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
51be8: 2544 0030 movel %d4,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_Watchdog_Insert_seconds(
51bec: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
51bf0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51bf2: 4879 0007 50c8 pea 750c8 <_Watchdog_Seconds_chain> <== NOT EXECUTED
51bf8: 4eb9 0005 5d2c jsr 55d2c <_Watchdog_Insert> <== NOT EXECUTED
&the_timer->Ticker,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
51bfe: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51c04: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51c08: 4280 clrl %d0 <== NOT EXECUTED
51c0a: 600e bras 51c1a <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
51c0c: 700b moveq #11,%d0 <== NOT EXECUTED
51c0e: 600a bras 51c1a <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
51c10: 7009 moveq #9,%d0 <== NOT EXECUTED
51c12: 6006 bras 51c1a <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
51c14: 7014 moveq #20,%d0 <== NOT EXECUTED
51c16: 6002 bras 51c1a <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51c18: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51c1a: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED
51c20: 4e5e unlk %fp <== NOT EXECUTED
00051c24 <rtems_timer_get_information>:
rtems_status_code rtems_timer_get_information(
rtems_id id,
rtems_timer_information *the_info
)
{
51c24: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
51c28: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51c2a: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
51c2e: 4a8a tstl %a2 <== NOT EXECUTED
51c30: 6740 beqs 51c72 <rtems_timer_get_information+0x4e><== NOT EXECUTED
51c32: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51c36: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51c3a: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51c40: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51c46: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51c4a: 2040 moveal %d0,%a0 <== NOT EXECUTED
51c4c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51c50: 6624 bnes 51c76 <rtems_timer_get_information+0x52><== NOT EXECUTED
case OBJECTS_LOCAL:
the_info->the_class = the_timer->the_class;
51c52: 24a8 0038 movel %a0@(56),%a2@ <== NOT EXECUTED
the_info->initial = the_timer->Ticker.initial;
51c56: 2568 001c 0004 movel %a0@(28),%a2@(4) <== NOT EXECUTED
the_info->start_time = the_timer->Ticker.start_time;
51c5c: 2568 0024 0008 movel %a0@(36),%a2@(8) <== NOT EXECUTED
the_info->stop_time = the_timer->Ticker.stop_time;
51c62: 2568 0028 000c movel %a0@(40),%a2@(12) <== NOT EXECUTED
_Thread_Enable_dispatch();
51c68: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51c6e: 4280 clrl %d0 <== NOT EXECUTED
51c70: 6006 bras 51c78 <rtems_timer_get_information+0x54><== NOT EXECUTED
{
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
51c72: 7009 moveq #9,%d0 <== NOT EXECUTED
51c74: 6002 bras 51c78 <rtems_timer_get_information+0x54><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51c76: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51c78: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
51c7c: 4e5e unlk %fp <== NOT EXECUTED
00051c80 <rtems_timer_ident>:
rtems_status_code rtems_timer_ident(
rtems_name name,
rtems_id *id
)
{
51c80: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
51c84: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
51c88: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
51c8e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51c92: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51c98: 4eb9 0005 4440 jsr 54440 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
51c9e: 41f9 0006 e620 lea 6e620 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
51ca4: 4e5e unlk %fp <== NOT EXECUTED
51ca6: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
0005228a <rtems_timer_initiate_server>:
rtems_status_code rtems_timer_initiate_server(
uint32_t priority,
uint32_t stack_size,
rtems_attribute attribute_set
)
{
5228a: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
5228e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
52292: 2f03 movel %d3,%sp@- <== NOT EXECUTED
52294: 2f02 movel %d2,%sp@- <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
52296: 4a80 tstl %d0 <== NOT EXECUTED
52298: 6712 beqs 522ac <rtems_timer_initiate_server+0x22><== NOT EXECUTED
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
5229a: 4281 clrl %d1 <== NOT EXECUTED
5229c: 1239 0006 f422 moveb 6f422 <rtems_maximum_priority>,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
522a2: b280 cmpl %d0,%d1 <== NOT EXECUTED
522a4: 54c1 scc %d1 <== NOT EXECUTED
522a6: 49c1 extbl %d1 <== NOT EXECUTED
522a8: 4481 negl %d1 <== NOT EXECUTED
522aa: 6002 bras 522ae <rtems_timer_initiate_server+0x24><== NOT EXECUTED
522ac: 4281 clrl %d1 <== NOT EXECUTED
* Make sure the requested priority is valid. The if is
* structured so we check it is invalid before looking for
* a specific invalid value as the default.
*/
_priority = priority;
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
522ae: 4a01 tstb %d1 <== NOT EXECUTED
522b0: 660c bnes 522be <rtems_timer_initiate_server+0x34><== NOT EXECUTED
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
522b2: 72ff moveq #-1,%d1 <== NOT EXECUTED
522b4: b280 cmpl %d0,%d1 <== NOT EXECUTED
522b6: 6600 013a bnew 523f2 <rtems_timer_initiate_server+0x168><== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
_priority = 0;
522ba: 4282 clrl %d2 <== NOT EXECUTED
522bc: 6002 bras 522c0 <rtems_timer_initiate_server+0x36><== NOT EXECUTED
* Make sure the requested priority is valid. The if is
* structured so we check it is invalid before looking for
* a specific invalid value as the default.
*/
_priority = priority;
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
522be: 2400 movel %d0,%d2 <== NOT EXECUTED
}
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
522c0: 4eba fc0a jsr %pc@(51ecc <_Thread_Disable_dispatch>) <== NOT EXECUTED
tmpInitialized = initialized;
initialized = true;
522c4: 7001 moveq #1,%d0 <== NOT EXECUTED
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
tmpInitialized = initialized;
522c6: 1639 0007 04de moveb 704de <initialized.3664>,%d3 <== NOT EXECUTED
initialized = true;
522cc: 13c0 0007 04de moveb %d0,704de <initialized.3664> <== NOT EXECUTED
_Thread_Enable_dispatch();
522d2: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( tmpInitialized )
522d8: 4a03 tstb %d3 <== NOT EXECUTED
522da: 6600 011a bnew 523f6 <rtems_timer_initiate_server+0x16c><== NOT EXECUTED
* other library rules. For example, if using a TSR written in Ada the
* Server should run at the same priority as the priority Ada task.
* Otherwise, the priority ceiling for the mutex used to protect the
* GNAT run-time is violated.
*/
status = rtems_task_create(
522de: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED
522e2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
522e6: 08c1 000f bset #15,%d1 <== NOT EXECUTED
522ea: 2f01 movel %d1,%sp@- <== NOT EXECUTED
522ec: 4878 0100 pea 100 <DBL_MANT_DIG+0xcb> <== NOT EXECUTED
522f0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
522f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
522f6: 2f3c 5449 4d45 movel #1414090053,%sp@- <== NOT EXECUTED
522fc: 4eb9 0005 117c jsr 5117c <rtems_task_create> <== NOT EXECUTED
/* user may want floating point but we need */
/* system task specified for 0 priority */
attribute_set | RTEMS_SYSTEM_TASK,
&id /* get the id back */
);
if (status) {
52302: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
52306: 4a80 tstl %d0 <== NOT EXECUTED
52308: 670c beqs 52316 <rtems_timer_initiate_server+0x8c><== NOT EXECUTED
initialized = false;
5230a: 4201 clrb %d1 <== NOT EXECUTED
5230c: 13c1 0007 04de moveb %d1,704de <initialized.3664> <== NOT EXECUTED
return status;
52312: 6000 00e4 braw 523f8 <rtems_timer_initiate_server+0x16e><== NOT EXECUTED
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
&_RTEMS_tasks_Information,
_Objects_Get_index(id)
52316: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
5231a: 4281 clrl %d1 <== NOT EXECUTED
5231c: 2079 0007 4f8c moveal 74f8c <_RTEMS_tasks_Information+0x18>,%a0<== NOT EXECUTED
52322: 3200 movew %d0,%d1 <== NOT EXECUTED
/*
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
52324: 41f0 1c00 lea %a0@(00000000,%d1:l:4),%a0 <== NOT EXECUTED
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
tail->previous = head;
52328: 223c 0007 0490 movel #459920,%d1 <== NOT EXECUTED
5232e: 23d0 0007 0460 movel %a0@,70460 <_Timer_server_Default> <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
52334: 41f9 0007 0494 lea 70494 <_Timer_server_Default+0x34>,%a0 <== NOT EXECUTED
head->previous = NULL;
tail->previous = head;
5233a: 23c1 0007 0498 movel %d1,70498 <_Timer_server_Default+0x38><== NOT EXECUTED
52340: 223c 0007 04c8 movel #459976,%d1 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
52346: 23c8 0007 0490 movel %a0,70490 <_Timer_server_Default+0x30><== NOT EXECUTED
5234c: 41f9 0007 04cc lea 704cc <_Timer_server_Default+0x6c>,%a0 <== NOT EXECUTED
head->previous = NULL;
tail->previous = head;
52352: 23c1 0007 04d0 movel %d1,704d0 <_Timer_server_Default+0x70><== NOT EXECUTED
/*
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
52358: 223c 0005 2170 movel #336240,%d1 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
5235e: 23c8 0007 04c8 movel %a0,704c8 <_Timer_server_Default+0x68><== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
52364: 41f9 0005 4c14 lea 54c14 <_Thread_Delay_ended>,%a0 <== NOT EXECUTED
5236a: 23c1 0007 0464 movel %d1,70464 <_Timer_server_Default+0x4> <== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
52370: 2239 0007 511c movel 7511c <_Watchdog_Ticks_since_boot>,%d1<== NOT EXECUTED
52376: 23c8 0007 0484 movel %a0,70484 <_Timer_server_Default+0x24><== NOT EXECUTED
5237c: 23c8 0007 04bc movel %a0,704bc <_Timer_server_Default+0x5c><== NOT EXECUTED
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
52382: 41f9 0007 509e lea 7509e <_TOD_Now>,%a0 <== NOT EXECUTED
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
52388: 23c1 0007 049c movel %d1,7049c <_Timer_server_Default+0x3c><== NOT EXECUTED
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
5238e: 23d0 0007 04d4 movel %a0@,704d4 <_Timer_server_Default+0x74><== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
52394: 41f9 0007 0460 lea 70460 <_Timer_server_Default>,%a0 <== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ts->insert_chain = NULL;
ts->active = false;
5239a: 4201 clrb %d1 <== NOT EXECUTED
_Timer_server = ts;
/*
* Start the timer server
*/
status = rtems_task_start(
5239c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
5239e: 487a fc06 pea %pc@(51fa6 <_Timer_server_Body>) <== NOT EXECUTED
ts->schedule_operation = _Timer_server_Schedule_operation_method;
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ts->insert_chain = NULL;
523a2: 42b9 0007 04d8 clrl 704d8 <_Timer_server_Default+0x78> <== NOT EXECUTED
ts->active = false;
523a8: 13c1 0007 04dc moveb %d1,704dc <_Timer_server_Default+0x7c><== NOT EXECUTED
_Timer_server = ts;
/*
* Start the timer server
*/
status = rtems_task_start(
523ae: 2f00 movel %d0,%sp@- <== NOT EXECUTED
head->previous = NULL;
523b0: 42b9 0007 0494 clrl 70494 <_Timer_server_Default+0x34> <== NOT EXECUTED
523b6: 42b9 0007 04cc clrl 704cc <_Timer_server_Default+0x6c> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
523bc: 42b9 0007 0470 clrl 70470 <_Timer_server_Default+0x10> <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
523c2: 23c0 0007 0488 movel %d0,70488 <_Timer_server_Default+0x28><== NOT EXECUTED
the_watchdog->user_data = user_data;
523c8: 42b9 0007 048c clrl 7048c <_Timer_server_Default+0x2c> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
523ce: 42b9 0007 04a8 clrl 704a8 <_Timer_server_Default+0x48> <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
523d4: 23c0 0007 04c0 movel %d0,704c0 <_Timer_server_Default+0x60><== NOT EXECUTED
the_watchdog->user_data = user_data;
523da: 42b9 0007 04c4 clrl 704c4 <_Timer_server_Default+0x64> <== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
523e0: 23c8 0007 5264 movel %a0,75264 <_Timer_server> <== NOT EXECUTED
/*
* Start the timer server
*/
status = rtems_task_start(
523e6: 4eb9 0005 1784 jsr 51784 <rtems_task_start> <== NOT EXECUTED
if (status) {
initialized = false;
}
#endif
return status;
523ec: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
523f0: 6006 bras 523f8 <rtems_timer_initiate_server+0x16e><== NOT EXECUTED
* a specific invalid value as the default.
*/
_priority = priority;
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
return RTEMS_INVALID_PRIORITY;
523f2: 7013 moveq #19,%d0 <== NOT EXECUTED
523f4: 6002 bras 523f8 <rtems_timer_initiate_server+0x16e><== NOT EXECUTED
tmpInitialized = initialized;
initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
return RTEMS_INCORRECT_STATE;
523f6: 700e moveq #14,%d0 <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
523f8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
523fc: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
52400: 4e5e unlk %fp <== NOT EXECUTED
00051cac <rtems_timer_reset>:
*/
rtems_status_code rtems_timer_reset(
rtems_id id
)
{
51cac: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
51cb0: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51cb2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51cb4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51cb8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51cbc: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51cc2: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51cc8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51ccc: 2440 moveal %d0,%a2 <== NOT EXECUTED
51cce: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51cd2: 6656 bnes 51d2a <rtems_timer_reset+0x7e> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
51cd4: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED
51cd8: 661c bnes 51cf6 <rtems_timer_reset+0x4a> <== NOT EXECUTED
_Watchdog_Remove( &the_timer->Ticker );
51cda: 45ea 0010 lea %a2@(16),%a2 <== NOT EXECUTED
51cde: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51ce0: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
51ce6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51ce8: 4879 0007 50d4 pea 750d4 <_Watchdog_Ticks_chain> <== NOT EXECUTED
51cee: 4eb9 0005 5d2c jsr 55d2c <_Watchdog_Insert> <== NOT EXECUTED
51cf4: 6020 bras 51d16 <rtems_timer_reset+0x6a> <== NOT EXECUTED
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
51cf6: 7201 moveq #1,%d1 <== NOT EXECUTED
51cf8: b280 cmpl %d0,%d1 <== NOT EXECUTED
51cfa: 6622 bnes 51d1e <rtems_timer_reset+0x72> <== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
51cfc: 486a 0010 pea %a2@(16) <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
_Watchdog_Remove( &the_timer->Ticker );
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
Timer_server_Control *timer_server = _Timer_server;
51d00: 2679 0007 5264 moveal 75264 <_Timer_server>,%a3 <== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
51d06: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
51d0c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51d0e: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51d10: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED
51d14: 4e90 jsr %a0@ <== NOT EXECUTED
51d16: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
rtems_id id
)
{
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
51d1a: 95ca subal %a2,%a2 <== NOT EXECUTED
51d1c: 6004 bras 51d22 <rtems_timer_reset+0x76> <== NOT EXECUTED
/*
* Must be dormant or time of day timer (e.g. TIMER_DORMANT,
* TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We
* can only reset active interval timers.
*/
status = RTEMS_NOT_DEFINED;
51d1e: 347c 000b moveaw #11,%a2 <== NOT EXECUTED
}
_Thread_Enable_dispatch();
51d22: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return status;
51d28: 6004 bras 51d2e <rtems_timer_reset+0x82> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51d2a: 347c 0004 moveaw #4,%a2 <== NOT EXECUTED
}
51d2e: 200a movel %a2,%d0 <== NOT EXECUTED
51d30: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
51d34: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
51d38: 4e5e unlk %fp <== NOT EXECUTED
00051d3c <rtems_timer_server_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
51d3c: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
51d40: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
51d44: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
51d48: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
51d4c: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
51d50: 2679 0007 5264 moveal 75264 <_Timer_server>,%a3 <== NOT EXECUTED
if ( !timer_server )
51d56: 4a8b tstl %a3 <== NOT EXECUTED
51d58: 6700 0086 beqw 51de0 <rtems_timer_server_fire_after+0xa4><== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !routine )
51d5c: 4a84 tstl %d4 <== NOT EXECUTED
51d5e: 6700 0084 beqw 51de4 <rtems_timer_server_fire_after+0xa8><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
51d62: 4a82 tstl %d2 <== NOT EXECUTED
51d64: 6700 0082 beqw 51de8 <rtems_timer_server_fire_after+0xac><== NOT EXECUTED
51d68: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51d6c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
51d6e: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51d74: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51d7a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51d7e: 2440 moveal %d0,%a2 <== NOT EXECUTED
51d80: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51d84: 6666 bnes 51dec <rtems_timer_server_fire_after+0xb0><== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
51d86: 486a 0010 pea %a2@(16) <== NOT EXECUTED
51d8a: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
_ISR_Disable( level );
51d90: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51d96: 40c1 movew %sr,%d1 <== NOT EXECUTED
51d98: 8081 orl %d1,%d0 <== NOT EXECUTED
51d9a: 46c0 movew %d0,%sr <== NOT EXECUTED
51d9c: 49f9 0005 4d8e lea 54d8e <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
51da2: 588f addql #4,%sp <== NOT EXECUTED
51da4: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED
51da8: 6706 beqs 51db0 <rtems_timer_server_fire_after+0x74><== NOT EXECUTED
_ISR_Enable( level );
51daa: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_Enable_dispatch();
51dac: 4e94 jsr %a4@ <== NOT EXECUTED
51dae: 602c bras 51ddc <rtems_timer_server_fire_after+0xa0><== NOT EXECUTED
/*
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
the_timer->the_class = TIMER_INTERVAL_ON_TASK;
51db0: 7001 moveq #1,%d0 <== NOT EXECUTED
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
51db2: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED
51db8: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
51dbc: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
51dc0: 2544 002c movel %d4,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
51dc4: 2543 0030 movel %d3,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = ticks;
51dc8: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
_ISR_Enable( level );
51dcc: 46c1 movew %d1,%sr <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
51dce: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51dd0: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51dd2: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED
51dd6: 4e90 jsr %a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
51dd8: 4e94 jsr %a4@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51dda: 508f addql #8,%sp <== NOT EXECUTED
51ddc: 4280 clrl %d0 <== NOT EXECUTED
51dde: 600e bras 51dee <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
51de0: 700e moveq #14,%d0 <== NOT EXECUTED
51de2: 600a bras 51dee <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
51de4: 7009 moveq #9,%d0 <== NOT EXECUTED
51de6: 6006 bras 51dee <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
51de8: 700a moveq #10,%d0 <== NOT EXECUTED
51dea: 6002 bras 51dee <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51dec: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51dee: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED
51df4: 4e5e unlk %fp <== NOT EXECUTED
00051df8 <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
51df8: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
51dfc: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
51e00: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
51e04: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
51e08: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
51e0c: 2679 0007 5264 moveal 75264 <_Timer_server>,%a3 <== NOT EXECUTED
if ( !timer_server )
51e12: 4a8b tstl %a3 <== NOT EXECUTED
51e14: 6700 0098 beqw 51eae <rtems_timer_server_fire_when+0xb6><== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
51e18: 4a39 0007 5004 tstb 75004 <_TOD_Is_set> <== NOT EXECUTED
51e1e: 6700 0092 beqw 51eb2 <rtems_timer_server_fire_when+0xba><== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !routine )
51e22: 4a84 tstl %d4 <== NOT EXECUTED
51e24: 6700 0090 beqw 51eb6 <rtems_timer_server_fire_when+0xbe><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
51e28: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51e2a: 4eb9 0004 f2b4 jsr 4f2b4 <_TOD_Validate> <== NOT EXECUTED
51e30: 588f addql #4,%sp <== NOT EXECUTED
51e32: 4a00 tstb %d0 <== NOT EXECUTED
51e34: 6700 0084 beqw 51eba <rtems_timer_server_fire_when+0xc2><== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
51e38: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51e3a: 4eb9 0004 f218 jsr 4f218 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51e40: 588f addql #4,%sp <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
51e42: 2400 movel %d0,%d2 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51e44: b0b9 0007 509e cmpl 7509e <_TOD_Now>,%d0 <== NOT EXECUTED
51e4a: 636e blss 51eba <rtems_timer_server_fire_when+0xc2><== NOT EXECUTED
51e4c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51e50: 2f03 movel %d3,%sp@- <== NOT EXECUTED
51e52: 4879 0007 522c pea 7522c <_Timer_Information> <== NOT EXECUTED
51e58: 4eb9 0005 42d8 jsr 542d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51e5e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51e62: 2440 moveal %d0,%a2 <== NOT EXECUTED
51e64: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51e68: 6654 bnes 51ebe <rtems_timer_server_fire_when+0xc6><== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
51e6a: 486a 0010 pea %a2@(16) <== NOT EXECUTED
51e6e: 4eb9 0005 5e48 jsr 55e48 <_Watchdog_Remove> <== NOT EXECUTED
the_watchdog->user_data = user_data;
51e74: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED
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();
51e7a: 94b9 0007 509e subl 7509e <_TOD_Now>,%d2 <== NOT EXECUTED
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;
51e80: 7003 moveq #3,%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
51e82: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
51e86: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
the_watchdog->routine = routine;
51e8a: 2544 002c movel %d4,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
51e8e: 2543 0030 movel %d3,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
51e92: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
51e96: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51e98: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51e9a: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED
51e9e: 4e90 jsr %a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
51ea0: 4eb9 0005 4d8e jsr 54d8e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51ea6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51eaa: 4280 clrl %d0 <== NOT EXECUTED
51eac: 6012 bras 51ec0 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
51eae: 700e moveq #14,%d0 <== NOT EXECUTED
51eb0: 600e bras 51ec0 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
51eb2: 700b moveq #11,%d0 <== NOT EXECUTED
51eb4: 600a bras 51ec0 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
51eb6: 7009 moveq #9,%d0 <== NOT EXECUTED
51eb8: 6006 bras 51ec0 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
51eba: 7014 moveq #20,%d0 <== NOT EXECUTED
51ebc: 6002 bras 51ec0 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51ebe: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51ec0: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED
51ec6: 4e5e unlk %fp <== NOT EXECUTED
...
0004608e <rtems_workspace_allocate>:
*/
bool rtems_workspace_allocate(
uintptr_t bytes,
void **pointer
)
{
4608e: 4e56 0000 linkw %fp,#0
46092: 202e 0008 movel %fp@(8),%d0
46096: 2f0a movel %a2,%sp@-
46098: 246e 000c moveal %fp@(12),%a2
void *ptr;
/*
* check the arguments
*/
if ( !pointer )
4609c: 4a8a tstl %a2
4609e: 6724 beqs 460c4 <rtems_workspace_allocate+0x36> <== NEVER TAKEN
return false;
if ( !bytes )
460a0: 4a80 tstl %d0
460a2: 6720 beqs 460c4 <rtems_workspace_allocate+0x36> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
460a4: 42a7 clrl %sp@-
460a6: 42a7 clrl %sp@-
460a8: 2f00 movel %d0,%sp@-
460aa: 4879 0005 d006 pea 5d006 <_Workspace_Area>
460b0: 4eb9 0004 7520 jsr 47520 <_Protected_heap_Allocate_aligned_with_boundary>
/*
* Allocate the memory
*/
ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes );
if (!ptr)
460b6: 4fef 0010 lea %sp@(16),%sp
460ba: 4a80 tstl %d0
460bc: 6706 beqs 460c4 <rtems_workspace_allocate+0x36> <== NEVER TAKEN
return false;
*pointer = ptr;
460be: 2480 movel %d0,%a2@
return true;
460c0: 7001 moveq #1,%d0
460c2: 6002 bras 460c6 <rtems_workspace_allocate+0x38>
/*
* Allocate the memory
*/
ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes );
if (!ptr)
return false;
460c4: 4200 clrb %d0
*pointer = ptr;
return true;
}
460c6: 246e fffc moveal %fp@(-4),%a2
460ca: 4e5e unlk %fp <== NOT EXECUTED
000460ce <rtems_workspace_free>:
* _Workspace_Allocate
*/
bool rtems_workspace_free(
void *pointer
)
{
460ce: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Protected_heap_Free( &_Workspace_Area, pointer );
460d2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
460d6: 4879 0005 d006 pea 5d006 <_Workspace_Area> <== NOT EXECUTED
460dc: 4eb9 0004 7560 jsr 47560 <_Protected_heap_Free> <== NOT EXECUTED
}
460e2: 4e5e unlk %fp <== NOT EXECUTED
...
0004606c <rtems_workspace_get_information>:
#include <string.h> /* for memset */
bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
4606c: 4e56 0000 linkw %fp,#0
46070: 202e 0008 movel %fp@(8),%d0
if ( !the_info )
46074: 6712 beqs 46088 <rtems_workspace_get_information+0x1c><== NEVER TAKEN
return false;
return _Protected_heap_Get_information( &_Workspace_Area, the_info );
46076: 2f00 movel %d0,%sp@-
46078: 4879 0005 d006 pea 5d006 <_Workspace_Area>
4607e: 4eb9 0004 7598 jsr 47598 <_Protected_heap_Get_information>
46084: 508f addql #8,%sp
46086: 6002 bras 4608a <rtems_workspace_get_information+0x1e>
bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
if ( !the_info )
return false;
46088: 4200 clrb %d0
return _Protected_heap_Get_information( &_Workspace_Area, the_info );
}
4608a: 4e5e unlk %fp <== NOT EXECUTED