RTEMS 4.11Annotated Report
Fri Oct 8 20:14:09 2010
0004ad24 <TOD_MICROSECONDS_TO_TICKS>:
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
return (microseconds / rtems_configuration_get_microseconds_per_tick());
}
4ad24: 41f9 0006 1060 lea 61060 <Configuration+0xc>,%a0 <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
4ad2a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (microseconds / rtems_configuration_get_microseconds_per_tick());
}
4ad2e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4ad32: 4e5e unlk %fp <== NOT EXECUTED
4ad34: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED
...
00046c18 <TOD_MILLISECONDS_TO_TICKS>:
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
46c18: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
46c1c: 2039 0005 d340 movel 5d340 <Configuration+0xc>,%d0 <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
46c22: 2f02 movel %d2,%sp@- <== NOT EXECUTED
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
46c24: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED
46c2a: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED
}
46c2e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46c32: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED
46c36: 2002 movel %d2,%d0 <== NOT EXECUTED
46c38: 241f movel %sp@+,%d2 <== NOT EXECUTED
46c3a: 4e5e unlk %fp <== NOT EXECUTED
...
0004c68c <TOD_TICKS_PER_SECOND_method>:
uint32_t TOD_TICKS_PER_SECOND_method(void)
{
return (TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick());
}
4c68c: 41f9 0005 c190 lea 5c190 <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)
{
4c692: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick());
}
4c696: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED
4c69c: 4e5e unlk %fp <== NOT EXECUTED
4c69e: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED
00045f74 <_API_Mutex_Unlock>:
#include <rtems/score/apimutex.h>
void _API_Mutex_Unlock(
API_Mutex_Control *the_mutex
)
{
45f74: 4e56 0000 linkw %fp,#0
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45f78: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
45f7e: 5280 addql #1,%d0
45f80: 206e 0008 moveal %fp@(8),%a0
45f84: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
_CORE_mutex_Surrender(
45f8a: 42a7 clrl %sp@-
45f8c: 2f28 0008 movel %a0@(8),%sp@-
45f90: 4868 0010 pea %a0@(16)
45f94: 4eb9 0004 61f8 jsr 461f8 <_CORE_mutex_Surrender>
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
45f9a: 4fef 000c lea %sp@(12),%sp
}
45f9e: 4e5e unlk %fp
_CORE_mutex_Surrender(
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
45fa0: 4ef9 0004 7522 jmp 47522 <_Thread_Enable_dispatch>
...
0004e4ec <_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];
}
4e4ec: 41f9 0005 e740 lea 5e740 <_Barrier_Translate_core_barrier_return_code_>,%a0<== NOT EXECUTED
};
rtems_status_code _Barrier_Translate_core_barrier_return_code (
CORE_barrier_Status the_barrier_status
)
{
4e4f2: 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];
}
4e4f6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4e4fa: 4e5e unlk %fp <== NOT EXECUTED
4e4fc: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
00047f68 <_CORE_RWLock_Initialize>:
void _CORE_RWLock_Initialize(
CORE_RWLock_Control *the_rwlock,
CORE_RWLock_Attributes *the_rwlock_attributes
)
{
47f68: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47f6c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
the_rwlock->Attributes = *the_rwlock_attributes;
47f70: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
47f74: 2151 0040 movel %a1@,%a0@(64) <== NOT EXECUTED
/*
the_rwlock->number_of_waiting_threads = 0;
*/
the_rwlock->number_of_readers = 0;
47f78: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
47f7c: 42a8 0044 clrl %a0@(68) <== NOT EXECUTED
_Thread_queue_Initialize(
47f80: 4878 0003 pea 3 <DIVIDE> <== NOT EXECUTED
47f84: 2f3c 0002 0000 movel #131072,%sp@- <== NOT EXECUTED
47f8a: 42a7 clrl %sp@- <== NOT EXECUTED
47f8c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
47f8e: 4eb9 0004 9be0 jsr 49be0 <_Thread_queue_Initialize> <== NOT EXECUTED
47f94: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
&the_rwlock->Wait_queue,
THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_RWLOCK,
CORE_RWLOCK_TIMEOUT
);
}
47f98: 4e5e unlk %fp <== NOT EXECUTED
00047f9c <_CORE_RWLock_Obtain_for_reading>:
* If unlocked, then OK to read.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
47f9c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
47fa2: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
47fa6: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
47faa: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
47fae: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
47fb2: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
47fb6: 1a2e 0013 moveb %fp@(19),%d5 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
47fba: 2679 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED
* If unlocked, then OK to read.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
47fc0: 40c2 movew %sr,%d2 <== NOT EXECUTED
47fc2: 8082 orl %d2,%d0 <== NOT EXECUTED
47fc4: 46c0 movew %d0,%sr <== NOT EXECUTED
switch ( the_rwlock->current_state ) {
47fc6: 202a 0044 movel %a2@(68),%d0 <== NOT EXECUTED
47fca: 6708 beqs 47fd4 <_CORE_RWLock_Obtain_for_reading+0x38><== NOT EXECUTED
47fcc: 7201 moveq #1,%d1 <== NOT EXECUTED
47fce: b280 cmpl %d0,%d1 <== NOT EXECUTED
47fd0: 662a bnes 47ffc <_CORE_RWLock_Obtain_for_reading+0x60><== NOT EXECUTED
47fd2: 600e bras 47fe2 <_CORE_RWLock_Obtain_for_reading+0x46><== NOT EXECUTED
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
47fd4: 7001 moveq #1,%d0 <== NOT EXECUTED
the_rwlock->number_of_readers += 1;
47fd6: 52aa 0048 addql #1,%a2@(72) <== NOT EXECUTED
*/
_ISR_Disable( level );
switch ( the_rwlock->current_state ) {
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
47fda: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED
the_rwlock->number_of_readers += 1;
_ISR_Enable( level );
47fde: 46c2 movew %d2,%sr <== NOT EXECUTED
47fe0: 6014 bras 47ff6 <_CORE_RWLock_Obtain_for_reading+0x5a><== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
return;
case CORE_RWLOCK_LOCKED_FOR_READING: {
Thread_Control *waiter;
waiter = _Thread_queue_First( &the_rwlock->Wait_queue );
47fe2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47fe4: 4eb9 0004 9b4c jsr 49b4c <_Thread_queue_First> <== NOT EXECUTED
if ( !waiter ) {
47fea: 588f addql #4,%sp <== NOT EXECUTED
47fec: 4a80 tstl %d0 <== NOT EXECUTED
47fee: 660c bnes 47ffc <_CORE_RWLock_Obtain_for_reading+0x60><== NOT EXECUTED
the_rwlock->number_of_readers += 1;
47ff0: 52aa 0048 addql #1,%a2@(72) <== NOT EXECUTED
_ISR_Enable( level );
47ff4: 46c2 movew %d2,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
47ff6: 42ab 0034 clrl %a3@(52) <== NOT EXECUTED
return;
47ffa: 6046 bras 48042 <_CORE_RWLock_Obtain_for_reading+0xa6><== NOT EXECUTED
/*
* If the thread is not willing to wait, then return immediately.
*/
if ( !wait ) {
47ffc: 4a05 tstb %d5 <== NOT EXECUTED
47ffe: 660a bnes 4800a <_CORE_RWLock_Obtain_for_reading+0x6e><== NOT EXECUTED
_ISR_Enable( level );
48000: 46c2 movew %d2,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
48002: 7202 moveq #2,%d1 <== NOT EXECUTED
48004: 2741 0034 movel %d1,%a3@(52) <== NOT EXECUTED
48008: 6038 bras 48042 <_CORE_RWLock_Obtain_for_reading+0xa6><== NOT EXECUTED
4800a: 7001 moveq #1,%d0 <== NOT EXECUTED
4800c: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED
/*
* We need to wait to enter this critical section
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
48010: 274a 0044 movel %a2,%a3@(68) <== NOT EXECUTED
executing->Wait.id = id;
48014: 2744 0020 movel %d4,%a3@(32) <== NOT EXECUTED
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
48018: 42ab 0030 clrl %a3@(48) <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
4801c: 42ab 0034 clrl %a3@(52) <== NOT EXECUTED
_ISR_Enable( level );
48020: 46c2 movew %d2,%sr <== NOT EXECUTED
_Thread_queue_Enqueue_with_handler(
48022: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
48026: 223c 0004 818c movel #295308,%d1 <== NOT EXECUTED
4802c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
timeout,
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
48030: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
48036: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED
timeout,
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
4803a: 4e5e unlk %fp <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
4803c: 4ef9 0004 9840 jmp 49840 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
timeout,
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
48042: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED
48048: 4e5e unlk %fp <== NOT EXECUTED
0004804c <_CORE_RWLock_Obtain_for_writing>:
* Otherwise, we have to block.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
4804c: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
48052: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
48056: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
4805a: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4805e: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
48062: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
48066: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
4806c: 182e 0013 moveb %fp@(19),%d4 <== NOT EXECUTED
* Otherwise, we have to block.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
48070: 40c0 movew %sr,%d0 <== NOT EXECUTED
48072: 8280 orl %d0,%d1 <== NOT EXECUTED
48074: 46c1 movew %d1,%sr <== NOT EXECUTED
switch ( the_rwlock->current_state ) {
48076: 4aa9 0044 tstl %a1@(68) <== NOT EXECUTED
4807a: 660e bnes 4808a <_CORE_RWLock_Obtain_for_writing+0x3e><== NOT EXECUTED
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;
4807c: 7202 moveq #2,%d1 <== NOT EXECUTED
4807e: 2341 0044 movel %d1,%a1@(68) <== NOT EXECUTED
_ISR_Enable( level );
48082: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
48084: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
return;
48088: 6044 bras 480ce <_CORE_RWLock_Obtain_for_writing+0x82><== NOT EXECUTED
/*
* If the thread is not willing to wait, then return immediately.
*/
if ( !wait ) {
4808a: 4a04 tstb %d4 <== NOT EXECUTED
4808c: 660a bnes 48098 <_CORE_RWLock_Obtain_for_writing+0x4c><== NOT EXECUTED
_ISR_Enable( level );
4808e: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
48090: 7002 moveq #2,%d0 <== NOT EXECUTED
48092: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED
48096: 6036 bras 480ce <_CORE_RWLock_Obtain_for_writing+0x82><== NOT EXECUTED
48098: 7201 moveq #1,%d1 <== NOT EXECUTED
4809a: 2341 0030 movel %d1,%a1@(48) <== NOT EXECUTED
/*
* We need to wait to enter this critical section
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
4809e: 2149 0044 movel %a1,%a0@(68) <== NOT EXECUTED
executing->Wait.id = id;
480a2: 2143 0020 movel %d3,%a0@(32) <== NOT EXECUTED
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE;
480a6: 2141 0030 movel %d1,%a0@(48) <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
480aa: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
_ISR_Enable( level );
480ae: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_queue_Enqueue_with_handler(
480b0: 2d42 000c movel %d2,%fp@(12) <== NOT EXECUTED
480b4: 203c 0004 818c movel #295308,%d0 <== NOT EXECUTED
480ba: 2d49 0008 movel %a1,%fp@(8) <== NOT EXECUTED
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
480be: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
480c2: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
480c6: 4e5e unlk %fp <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
480c8: 4ef9 0004 9840 jmp 49840 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
480ce: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
480d2: 4e5e unlk %fp <== NOT EXECUTED
...
000480d8 <_CORE_RWLock_Release>:
* Otherwise, we have to block.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
480d8: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
*/
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
480de: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
480e2: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
*/
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
480e8: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
480ec: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
* Otherwise, we have to block.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
480f0: 40c0 movew %sr,%d0 <== NOT EXECUTED
480f2: 8280 orl %d0,%d1 <== NOT EXECUTED
480f4: 46c1 movew %d1,%sr <== NOT EXECUTED
if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){
480f6: 222a 0044 movel %a2@(68),%d1 <== NOT EXECUTED
480fa: 660a bnes 48106 <_CORE_RWLock_Release+0x2e> <== NOT EXECUTED
_ISR_Enable( level );
480fc: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
480fe: 7002 moveq #2,%d0 <== NOT EXECUTED
48100: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED
return CORE_RWLOCK_SUCCESSFUL;
48104: 6078 bras 4817e <_CORE_RWLock_Release+0xa6> <== NOT EXECUTED
}
if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
48106: 7401 moveq #1,%d2 <== NOT EXECUTED
48108: b481 cmpl %d1,%d2 <== NOT EXECUTED
4810a: 6610 bnes 4811c <_CORE_RWLock_Release+0x44> <== NOT EXECUTED
the_rwlock->number_of_readers -= 1;
4810c: 222a 0048 movel %a2@(72),%d1 <== NOT EXECUTED
48110: 5381 subql #1,%d1 <== NOT EXECUTED
48112: 2541 0048 movel %d1,%a2@(72) <== NOT EXECUTED
if ( the_rwlock->number_of_readers != 0 ) {
48116: 6704 beqs 4811c <_CORE_RWLock_Release+0x44> <== NOT EXECUTED
/* must be unlocked again */
_ISR_Enable( level );
48118: 46c0 movew %d0,%sr <== NOT EXECUTED
return CORE_RWLOCK_SUCCESSFUL;
4811a: 6062 bras 4817e <_CORE_RWLock_Release+0xa6> <== NOT EXECUTED
}
}
/* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
4811c: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
/*
* Implicitly transition to "unlocked" and find another thread interested
* in obtaining this rwlock.
*/
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
48120: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED
_ISR_Enable( level );
48124: 46c0 movew %d0,%sr <== NOT EXECUTED
next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );
48126: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48128: 4eb9 0004 9704 jsr 49704 <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( next ) {
4812e: 588f addql #4,%sp <== NOT EXECUTED
48130: 4a80 tstl %d0 <== NOT EXECUTED
48132: 674a beqs 4817e <_CORE_RWLock_Release+0xa6> <== NOT EXECUTED
if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
48134: 7201 moveq #1,%d1 <== NOT EXECUTED
48136: 2040 moveal %d0,%a0 <== NOT EXECUTED
48138: b2a8 0030 cmpl %a0@(48),%d1 <== NOT EXECUTED
4813c: 6608 bnes 48146 <_CORE_RWLock_Release+0x6e> <== NOT EXECUTED
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;
4813e: 7002 moveq #2,%d0 <== NOT EXECUTED
48140: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED
return CORE_RWLOCK_SUCCESSFUL;
48144: 6038 bras 4817e <_CORE_RWLock_Release+0xa6> <== NOT EXECUTED
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
48146: 7201 moveq #1,%d1 <== NOT EXECUTED
}
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
48148: 52aa 0048 addql #1,%a2@(72) <== NOT EXECUTED
/*
* Now see if more readers can be let go.
*/
while ( 1 ) {
next = _Thread_queue_First( &the_rwlock->Wait_queue );
4814c: 49f9 0004 9b4c lea 49b4c <_Thread_queue_First>,%a4 <== NOT EXECUTED
if ( !next ||
next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
return CORE_RWLOCK_SUCCESSFUL;
the_rwlock->number_of_readers += 1;
_Thread_queue_Extract( &the_rwlock->Wait_queue, next );
48152: 47f9 0004 9a20 lea 49a20 <_Thread_queue_Extract>,%a3 <== NOT EXECUTED
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
48158: 2541 0044 movel %d1,%a2@(68) <== NOT EXECUTED
/*
* Now see if more readers can be let go.
*/
while ( 1 ) {
next = _Thread_queue_First( &the_rwlock->Wait_queue );
4815c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4815e: 4e94 jsr %a4@ <== NOT EXECUTED
if ( !next ||
48160: 588f addql #4,%sp <== NOT EXECUTED
48162: 4a80 tstl %d0 <== NOT EXECUTED
48164: 6718 beqs 4817e <_CORE_RWLock_Release+0xa6> <== NOT EXECUTED
48166: 7401 moveq #1,%d2 <== NOT EXECUTED
48168: 2040 moveal %d0,%a0 <== NOT EXECUTED
4816a: b4a8 0030 cmpl %a0@(48),%d2 <== NOT EXECUTED
4816e: 670e beqs 4817e <_CORE_RWLock_Release+0xa6> <== NOT EXECUTED
next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
return CORE_RWLOCK_SUCCESSFUL;
the_rwlock->number_of_readers += 1;
48170: 52aa 0048 addql #1,%a2@(72) <== NOT EXECUTED
_Thread_queue_Extract( &the_rwlock->Wait_queue, next );
48174: 2f00 movel %d0,%sp@- <== NOT EXECUTED
48176: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48178: 4e93 jsr %a3@ <== NOT EXECUTED
}
4817a: 508f addql #8,%sp <== NOT EXECUTED
4817c: 60de bras 4815c <_CORE_RWLock_Release+0x84> <== NOT EXECUTED
}
/* indentation is to match _ISR_Disable at top */
return CORE_RWLOCK_SUCCESSFUL;
}
4817e: 4280 clrl %d0 <== NOT EXECUTED
48180: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
48186: 4e5e unlk %fp <== NOT EXECUTED
...
0004818c <_CORE_RWLock_Timeout>:
void _CORE_RWLock_Timeout(
Objects_Id id,
void *ignored
)
{
4818c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
48190: 486e fffc pea %fp@(-4) <== NOT EXECUTED
48194: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
48198: 4eb9 0004 93e4 jsr 493e4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
4819e: 508f addql #8,%sp <== NOT EXECUTED
481a0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
481a4: 6618 bnes 481be <_CORE_RWLock_Timeout+0x32> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
481a6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
481a8: 4eb9 0004 9c4c jsr 49c4c <_Thread_queue_Process_timeout> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
481ae: 588f addql #4,%sp <== NOT EXECUTED
481b0: 2039 0006 0440 movel 60440 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
481b6: 5380 subql #1,%d0 <== NOT EXECUTED
481b8: 23c0 0006 0440 movel %d0,60440 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Unnest_dispatch();
break;
}
}
481be: 4e5e unlk %fp <== NOT EXECUTED
...
0004b984 <_CORE_barrier_Release>:
#else
Objects_Id id __attribute__((unused)),
CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused))
#endif
)
{
4b984: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4b988: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
4b98c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Thread_Control *the_thread;
uint32_t count;
count = 0;
4b990: 4282 clrl %d2 <== NOT EXECUTED
while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) {
4b992: 47f9 0004 8858 lea 48858 <_Thread_queue_Dequeue>,%a3 <== NOT EXECUTED
4b998: 6002 bras 4b99c <_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++;
4b99a: 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)) ) {
4b99c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b99e: 4e93 jsr %a3@ <== NOT EXECUTED
4b9a0: 588f addql #4,%sp <== NOT EXECUTED
4b9a2: 4a80 tstl %d0 <== NOT EXECUTED
4b9a4: 66f4 bnes 4b99a <_CORE_barrier_Release+0x16> <== NOT EXECUTED
#endif
count++;
}
the_barrier->number_of_waiting_threads = 0;
return count;
}
4b9a6: 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;
4b9a8: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED
return count;
}
4b9ac: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED
4b9b2: 4e5e unlk %fp <== NOT EXECUTED
...
0004700c <_CORE_barrier_Wait>:
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
4700c: 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
)
{
47012: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
47016: 2279 0005 f4b0 moveal 5f4b0 <_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
)
{
4701c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
47020: 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;
47024: 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
)
{
47028: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4702c: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
47030: 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 );
47034: 40c1 movew %sr,%d1 <== NOT EXECUTED
47036: 8081 orl %d1,%d0 <== NOT EXECUTED
47038: 46c0 movew %d0,%sr <== NOT EXECUTED
the_barrier->number_of_waiting_threads++;
4703a: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED
4703e: 5280 addql #1,%d0 <== NOT EXECUTED
47040: 2140 0048 movel %d0,%a0@(72) <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
47044: 4aa8 0040 tstl %a0@(64) <== NOT EXECUTED
47048: 6626 bnes 47070 <_CORE_barrier_Wait+0x64> <== NOT EXECUTED
if ( the_barrier->number_of_waiting_threads ==
4704a: b0a8 0044 cmpl %a0@(68),%d0 <== NOT EXECUTED
4704e: 6620 bnes 47070 <_CORE_barrier_Wait+0x64> <== NOT EXECUTED
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
47050: 7001 moveq #1,%d0 <== NOT EXECUTED
47052: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED
_ISR_Enable( level );
47056: 46c1 movew %d1,%sr <== NOT EXECUTED
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
47058: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED
4705c: 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 );
}
47060: 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 );
47064: 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 );
}
47068: 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 );
4706a: 4ef9 0004 b984 jmp 4b984 <_CORE_barrier_Release> <== 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;
47070: 7001 moveq #1,%d0 <== NOT EXECUTED
47072: 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;
47076: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED
executing->Wait.id = id;
4707a: 2342 0020 movel %d2,%a1@(32) <== NOT EXECUTED
_ISR_Enable( level );
4707e: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
47080: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
47084: 203c 0004 8ca4 movel #298148,%d0 <== NOT EXECUTED
4708a: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
4708e: 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 );
47092: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED
}
47096: 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 );
47098: 4ef9 0004 8994 jmp 48994 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
...
00052b0c <_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
)
{
52b0c: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
52b10: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED
52b14: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
52b18: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED
52b1c: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
52b20: 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 ) {
52b24: b6aa 004c cmpl %a2@(76),%d3 <== NOT EXECUTED
52b28: 6244 bhis 52b6e <_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 ) {
52b2a: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED
52b2e: 6610 bnes 52b40 <_CORE_message_queue_Broadcast+0x34><== NOT EXECUTED
52b30: 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 =
52b32: 283c 0005 4f88 movel #348040,%d4 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
52b38: 4bf9 0005 a784 lea 5a784 <memcpy>,%a5 <== NOT EXECUTED
52b3e: 601a bras 52b5a <_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;
52b40: 4294 clrl %a4@ <== NOT EXECUTED
52b42: 6026 bras 52b6a <_CORE_message_queue_Broadcast+0x5e><== NOT EXECUTED
52b44: 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;
52b46: 5282 addql #1,%d2 <== NOT EXECUTED
52b48: 2f05 movel %d5,%sp@- <== NOT EXECUTED
52b4a: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED
52b4e: 4e95 jsr %a5@ <== NOT EXECUTED
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
52b50: 206b 0028 moveal %a3@(40),%a0 <== NOT EXECUTED
52b54: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
52b58: 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 =
52b5a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52b5c: 2044 moveal %d4,%a0 <== NOT EXECUTED
52b5e: 4e90 jsr %a0@ <== NOT EXECUTED
52b60: 588f addql #4,%sp <== NOT EXECUTED
52b62: 2640 moveal %d0,%a3 <== NOT EXECUTED
52b64: 4a80 tstl %d0 <== NOT EXECUTED
52b66: 66dc bnes 52b44 <_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;
52b68: 2882 movel %d2,%a4@ <== NOT EXECUTED
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
52b6a: 4280 clrl %d0 <== NOT EXECUTED
52b6c: 6002 bras 52b70 <_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;
52b6e: 7001 moveq #1,%d0 <== NOT EXECUTED
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
52b70: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
52b76: 4e5e unlk %fp <== NOT EXECUTED
...
0004ba9c <_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
)
{
4ba9c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4baa0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
/*
* This will flush blocked threads whether they were blocked on
* a send or receive.
*/
_Thread_queue_Flush(
4baa2: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4baa6: 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
)
{
4baaa: 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(
4baae: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4bab0: 4eb9 0004 d920 jsr 4d920 <_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 )
4bab6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4baba: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED
4babe: 670a beqs 4baca <_CORE_message_queue_Close+0x2e> <== NOT EXECUTED
(void) _CORE_message_queue_Flush_support( the_message_queue );
4bac0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4bac2: 4eb9 0004 badc jsr 4badc <_CORE_message_queue_Flush_support><== NOT EXECUTED
4bac8: 588f addql #4,%sp <== NOT EXECUTED
(void) _Workspace_Free( the_message_queue->message_buffers );
4baca: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED
}
4bad0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4bad4: 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 );
4bad6: 4ef9 0004 e588 jmp 4e588 <_Workspace_Free> <== NOT EXECUTED
00052bbc <_CORE_message_queue_Flush>:
*/
uint32_t _CORE_message_queue_Flush(
CORE_message_queue_Control *the_message_queue
)
{
52bbc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
52bc0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( the_message_queue->number_of_pending_messages != 0 )
52bc4: 4aa8 0048 tstl %a0@(72) <== NOT EXECUTED
52bc8: 6708 beqs 52bd2 <_CORE_message_queue_Flush+0x16> <== NOT EXECUTED
return _CORE_message_queue_Flush_support( the_message_queue );
else
return 0;
}
52bca: 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 );
52bcc: 4ef9 0005 2bd8 jmp 52bd8 <_CORE_message_queue_Flush_support><== NOT EXECUTED
else
return 0;
}
52bd2: 4280 clrl %d0 <== NOT EXECUTED
52bd4: 4e5e unlk %fp <== NOT EXECUTED
0004badc <_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 );
4badc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
*/
uint32_t _CORE_message_queue_Flush_support(
CORE_message_queue_Control *the_message_queue
)
{
4bae2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4bae6: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4baea: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4baec: 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 );
4baee: 40c1 movew %sr,%d1 <== NOT EXECUTED
4baf0: 8081 orl %d1,%d0 <== NOT EXECUTED
4baf2: 46c0 movew %d0,%sr <== NOT EXECUTED
inactive_first = the_message_queue->Inactive_messages.first;
message_queue_first = the_message_queue->Pending_messages.first;
4baf4: 2268 0050 moveal %a0@(80),%a1 <== 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_first = the_message_queue->Inactive_messages.first;
4baf8: 2468 0068 moveal %a0@(104),%a2 <== NOT EXECUTED
message_queue_first = the_message_queue->Pending_messages.first;
message_queue_last = the_message_queue->Pending_messages.last;
4bafc: 2668 0058 moveal %a0@(88),%a3 <== NOT EXECUTED
the_message_queue->Inactive_messages.first = message_queue_first;
4bb00: 2149 0068 movel %a1,%a0@(104) <== NOT EXECUTED
message_queue_first->previous =
_Chain_Head( &the_message_queue->Inactive_messages );
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
count = the_message_queue->number_of_pending_messages;
4bb04: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED
message_queue_first = the_message_queue->Pending_messages.first;
message_queue_last = the_message_queue->Pending_messages.last;
the_message_queue->Inactive_messages.first = message_queue_first;
message_queue_last->next = inactive_first;
inactive_first->previous = message_queue_last;
4bb08: 254b 0004 movel %a3,%a2@(4) <== NOT EXECUTED
inactive_first = the_message_queue->Inactive_messages.first;
message_queue_first = the_message_queue->Pending_messages.first;
message_queue_last = the_message_queue->Pending_messages.last;
the_message_queue->Inactive_messages.first = message_queue_first;
message_queue_last->next = inactive_first;
4bb0c: 268a movel %a2,%a3@ <== NOT EXECUTED
inactive_first->previous = message_queue_last;
message_queue_first->previous =
_Chain_Head( &the_message_queue->Inactive_messages );
4bb0e: 45e8 0068 lea %a0@(104),%a2 <== NOT EXECUTED
4bb12: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4bb16: 43e8 0054 lea %a0@(84),%a1 <== NOT EXECUTED
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
4bb1a: 45e8 0050 lea %a0@(80),%a2 <== NOT EXECUTED
4bb1e: 2149 0050 movel %a1,%a0@(80) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
4bb22: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED
4bb26: 214a 0058 movel %a2,%a0@(88) <== NOT EXECUTED
count = the_message_queue->number_of_pending_messages;
the_message_queue->number_of_pending_messages = 0;
4bb2a: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED
_ISR_Enable( level );
4bb2e: 46c1 movew %d1,%sr <== NOT EXECUTED
return count;
}
4bb30: 245f moveal %sp@+,%a2 <== NOT EXECUTED
4bb32: 265f moveal %sp@+,%a3 <== NOT EXECUTED
4bb34: 4e5e unlk %fp <== NOT EXECUTED
0004de38 <_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)) {
4de38: 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
)
{
4de3a: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4de3e: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED
4de42: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
4de46: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4de4a: 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)) {
4de4e: 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;
4de50: 2542 0044 movel %d2,%a2@(68) <== NOT EXECUTED
the_message_queue->number_of_pending_messages = 0;
4de54: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED
the_message_queue->maximum_message_size = maximum_message_size;
4de58: 2541 004c movel %d1,%a2@(76) <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
4de5c: 42aa 0060 clrl %a2@(96) <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
4de60: 42aa 0064 clrl %a2@(100) <== 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)) {
4de64: 4a80 tstl %d0 <== NOT EXECUTED
4de66: 670e beqs 4de76 <_CORE_message_queue_Initialize+0x3e><== NOT EXECUTED
allocated_message_size += sizeof(uint32_t);
4de68: 2001 movel %d1,%d0 <== NOT EXECUTED
4de6a: 5880 addql #4,%d0 <== NOT EXECUTED
allocated_message_size &= ~(sizeof(uint32_t) - 1);
4de6c: 76fc moveq #-4,%d3 <== NOT EXECUTED
4de6e: c083 andl %d3,%d0 <== NOT EXECUTED
}
if (allocated_message_size < maximum_message_size)
4de70: b280 cmpl %d0,%d1 <== NOT EXECUTED
4de72: 6272 bhis 4dee6 <_CORE_message_queue_Initialize+0xae><== NOT EXECUTED
4de74: 6002 bras 4de78 <_CORE_message_queue_Initialize+0x40><== 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)) {
4de76: 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));
4de78: 2600 movel %d0,%d3 <== NOT EXECUTED
4de7a: 0683 0000 0014 addil #20,%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 *
4de80: 2203 movel %d3,%d1 <== NOT EXECUTED
4de82: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
4de86: b081 cmpl %d1,%d0 <== NOT EXECUTED
4de88: 625c bhis 4dee6 <_CORE_message_queue_Initialize+0xae><== NOT EXECUTED
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
4de8a: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4de8c: 4eb9 0005 0890 jsr 50890 <_Workspace_Allocate> <== NOT EXECUTED
if (the_message_queue->message_buffers == 0)
4de92: 588f addql #4,%sp <== NOT EXECUTED
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
4de94: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
4de98: 674c beqs 4dee6 <_CORE_message_queue_Initialize+0xae><== NOT EXECUTED
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
4de9a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4de9c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4de9e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4dea0: 486a 0068 pea %a2@(104) <== NOT EXECUTED
4dea4: 4eb9 0005 2ad4 jsr 52ad4 <_Chain_Initialize> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4deaa: 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(
4deae: 7001 moveq #1,%d0 <== NOT EXECUTED
4deb0: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED
the_message_queue->message_buffers,
(size_t) maximum_pending_messages,
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
4deb4: 41ea 0050 lea %a2@(80),%a0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
4deb8: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED
4debc: 2548 0058 movel %a0,%a2@(88) <== NOT EXECUTED
_Thread_queue_Initialize(
4dec0: 4878 0006 pea 6 <EXTENDSFDF> <== NOT EXECUTED
4dec4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
4dec8: 4878 0080 pea 80 <DBL_MANT_DIG+0x4b> <== NOT EXECUTED
4decc: b090 cmpl %a0@,%d0 <== NOT EXECUTED
4dece: 57c0 seq %d0 <== NOT EXECUTED
4ded0: 49c0 extbl %d0 <== NOT EXECUTED
4ded2: 4480 negl %d0 <== NOT EXECUTED
4ded4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4ded6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ded8: 4eb9 0004 fd64 jsr 4fd64 <_Thread_queue_Initialize> <== NOT EXECUTED
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
4dede: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
4dee2: 7001 moveq #1,%d0 <== NOT EXECUTED
4dee4: 6002 bras 4dee8 <_CORE_message_queue_Initialize+0xb0><== 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;
4dee6: 4200 clrb %d0 <== NOT EXECUTED
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
4dee8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
4deee: 4e5e unlk %fp <== NOT EXECUTED
...
00052b14 <_CORE_message_queue_Insert_message>:
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
)
{
52b14: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
52b18: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
52b1c: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
52b20: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
52b24: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
52b28: 2340 0008 movel %d0,%a1@(8) <== 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 );
#else
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) {
52b2c: 0c80 7fff ffff cmpil #2147483647,%d0 <== NOT EXECUTED
52b32: 6634 bnes 52b68 <_CORE_message_queue_Insert_message+0x54><== NOT EXECUTED
_ISR_Disable( level );
52b34: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
52b3a: 40c2 movew %sr,%d2 <== NOT EXECUTED
52b3c: 8082 orl %d2,%d0 <== NOT EXECUTED
52b3e: 46c0 movew %d0,%sr <== NOT EXECUTED
SET_NOTIFY();
52b40: 2228 0048 movel %a0@(72),%d1 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
52b44: 57c0 seq %d0 <== NOT EXECUTED
_ISR_Enable( level );
#else
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) {
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52b46: 5281 addql #1,%d1 <== NOT EXECUTED
52b48: 45e8 0054 lea %a0@(84),%a2 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
52b4c: 4480 negl %d0 <== NOT EXECUTED
_ISR_Enable( level );
#else
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) {
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52b4e: 2141 0048 movel %d1,%a0@(72) <== NOT EXECUTED
52b52: 228a movel %a2,%a1@ <== NOT EXECUTED
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
52b54: 2468 0058 moveal %a0@(88),%a2 <== NOT EXECUTED
the_chain->last = the_node;
52b58: 2149 0058 movel %a1,%a0@(88) <== NOT EXECUTED
old_last_node->next = the_node;
52b5c: 2489 movel %a1,%a2@ <== NOT EXECUTED
the_node->previous = old_last_node;
52b5e: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
52b62: 46c2 movew %d2,%sr <== NOT EXECUTED
52b64: 6000 0082 braw 52be8 <_CORE_message_queue_Insert_message+0xd4><== NOT EXECUTED
} else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) {
52b68: 0c80 8000 0000 cmpil #-2147483648,%d0 <== NOT EXECUTED
52b6e: 6630 bnes 52ba0 <_CORE_message_queue_Insert_message+0x8c><== NOT EXECUTED
_ISR_Disable( level );
52b70: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
52b76: 40c2 movew %sr,%d2 <== NOT EXECUTED
52b78: 8082 orl %d2,%d0 <== NOT EXECUTED
52b7a: 46c0 movew %d0,%sr <== NOT EXECUTED
SET_NOTIFY();
52b7c: 2228 0048 movel %a0@(72),%d1 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
52b80: 57c0 seq %d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Prepend_unprotected (
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message
)
{
_Chain_Prepend_unprotected(
52b82: 45e8 0050 lea %a0@(80),%a2 <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
} else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) {
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52b86: 5281 addql #1,%d1 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
52b88: 4480 negl %d0 <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
} else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) {
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52b8a: 2141 0048 movel %d1,%a0@(72) <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
52b8e: 2652 moveal %a2@,%a3 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
52b90: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
52b94: 2489 movel %a1,%a2@ <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
52b96: 2749 0004 movel %a1,%a3@(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;
52b9a: 228b movel %a3,%a1@ <== NOT EXECUTED
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
52b9c: 46c2 movew %d2,%sr <== NOT EXECUTED
52b9e: 6048 bras 52be8 <_CORE_message_queue_Insert_message+0xd4><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
52ba0: 2208 movel %a0,%d1 <== NOT EXECUTED
52ba2: 0681 0000 0054 addil #84,%d1 <== NOT EXECUTED
Chain_Control *the_header;
int the_priority;
the_priority = _CORE_message_queue_Get_message_priority(the_message);
the_header = &the_message_queue->Pending_messages;
the_node = the_header->first;
52ba8: 2468 0050 moveal %a0@(80),%a2 <== NOT EXECUTED
while ( !_Chain_Is_tail( the_header, the_node ) ) {
52bac: 6008 bras 52bb6 <_CORE_message_queue_Insert_message+0xa2><== NOT EXECUTED
this_message = (CORE_message_queue_Buffer_control *) the_node;
this_priority = _CORE_message_queue_Get_message_priority(this_message);
if ( this_priority <= the_priority ) {
52bae: b0aa 0008 cmpl %a2@(8),%d0 <== NOT EXECUTED
52bb2: 6d06 blts 52bba <_CORE_message_queue_Insert_message+0xa6><== NOT EXECUTED
the_node = the_node->next;
52bb4: 2452 moveal %a2@,%a2 <== NOT EXECUTED
int the_priority;
the_priority = _CORE_message_queue_Get_message_priority(the_message);
the_header = &the_message_queue->Pending_messages;
the_node = the_header->first;
while ( !_Chain_Is_tail( the_header, the_node ) ) {
52bb6: b28a cmpl %a2,%d1 <== NOT EXECUTED
52bb8: 66f4 bnes 52bae <_CORE_message_queue_Insert_message+0x9a><== NOT EXECUTED
the_node = the_node->next;
continue;
}
break;
}
_ISR_Disable( level );
52bba: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
52bc0: 40c2 movew %sr,%d2 <== NOT EXECUTED
52bc2: 8082 orl %d2,%d0 <== NOT EXECUTED
52bc4: 46c0 movew %d0,%sr <== NOT EXECUTED
SET_NOTIFY();
52bc6: 2228 0048 movel %a0@(72),%d1 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
52bca: 57c0 seq %d0 <== NOT EXECUTED
break;
}
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
_Chain_Insert_unprotected( the_node->previous, &the_message->Node );
52bcc: 246a 0004 moveal %a2@(4),%a2 <== NOT EXECUTED
}
break;
}
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52bd0: 5281 addql #1,%d1 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
52bd2: 4480 negl %d0 <== NOT EXECUTED
}
break;
}
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
52bd4: 2141 0048 movel %d1,%a0@(72) <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
52bd8: 2652 moveal %a2@,%a3 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
52bda: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
52bde: 2489 movel %a1,%a2@ <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
52be0: 2749 0004 movel %a1,%a3@(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;
52be4: 228b movel %a3,%a1@ <== NOT EXECUTED
_Chain_Insert_unprotected( the_node->previous, &the_message->Node );
_ISR_Enable( level );
52be6: 46c2 movew %d2,%sr <== NOT EXECUTED
/*
* According to POSIX, does this happen before or after the message
* is actually enqueued. It is logical to think afterwards, because
* the message is actually in the queue at this point.
*/
if ( notify && the_message_queue->notify_handler )
52be8: 4a00 tstb %d0 <== NOT EXECUTED
52bea: 6716 beqs 52c02 <_CORE_message_queue_Insert_message+0xee><== NOT EXECUTED
52bec: 2268 0060 moveal %a0@(96),%a1 <== NOT EXECUTED
52bf0: 4a89 tstl %a1 <== NOT EXECUTED
52bf2: 670e beqs 52c02 <_CORE_message_queue_Insert_message+0xee><== NOT EXECUTED
(*the_message_queue->notify_handler)(the_message_queue->notify_argument);
52bf4: 2d68 0064 0008 movel %a0@(100),%fp@(8) <== NOT EXECUTED
#endif
}
52bfa: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED
52bfe: 4e5e unlk %fp <== NOT EXECUTED
* According to POSIX, does this happen before or after the message
* is actually enqueued. It is logical to think afterwards, because
* 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);
52c00: 4ed1 jmp %a1@ <== NOT EXECUTED
#endif
}
52c02: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED
52c06: 4e5e unlk %fp <== NOT EXECUTED
...
0004def4 <_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 );
4def4: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
4defa: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
4defe: 2079 0006 6b54 moveal 66b54 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
4df04: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED
4df08: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4df0c: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
4df10: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED
4df14: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED
4df18: 242e 001c movel %fp@(28),%d2 <== NOT EXECUTED
4df1c: 182e 001b moveb %fp@(27),%d4 <== 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;
4df20: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
_ISR_Disable( level );
4df24: 40c0 movew %sr,%d0 <== NOT EXECUTED
4df26: 8280 orl %d0,%d1 <== NOT EXECUTED
4df28: 46c1 movew %d1,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4df2a: 220a movel %a2,%d1 <== NOT EXECUTED
4df2c: 0681 0000 0054 addil #84,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4df32: 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))
4df36: b28b cmpl %a3,%d1 <== NOT EXECUTED
4df38: 6700 00a8 beqw 4dfe2 <_CORE_message_queue_Seize+0xee> <== NOT EXECUTED
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
4df3c: 2213 movel %a3@,%d1 <== NOT EXECUTED
CORE_message_queue_Buffer_control *_CORE_message_queue_Get_pending_message (
CORE_message_queue_Control *the_message_queue
)
{
return (CORE_message_queue_Buffer_control *)
_Chain_Get_unprotected( &the_message_queue->Pending_messages );
4df3e: 4bea 0050 lea %a2@(80),%a5 <== NOT EXECUTED
4df42: 2841 moveal %d1,%a4 <== NOT EXECUTED
the_chain->first = new_first;
4df44: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
4df48: 294d 0004 movel %a5,%a4@(4) <== NOT EXECUTED
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
4df4c: 4a8b tstl %a3 <== NOT EXECUTED
4df4e: 6700 0092 beqw 4dfe2 <_CORE_message_queue_Seize+0xee> <== NOT EXECUTED
the_message_queue->number_of_pending_messages -= 1;
4df52: 53aa 0048 subql #1,%a2@(72) <== NOT EXECUTED
_ISR_Enable( level );
4df56: 46c0 movew %d0,%sr <== NOT EXECUTED
*size_p = the_message->Contents.size;
_Thread_Executing->Wait.count =
4df58: 2079 0006 6b54 moveal 66b54 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
the_message_queue->number_of_pending_messages -= 1;
_ISR_Enable( level );
*size_p = the_message->Contents.size;
4df5e: 22ab 000c movel %a3@(12),%a1@ <== NOT EXECUTED
_Thread_Executing->Wait.count =
_CORE_message_queue_Get_message_priority( the_message );
_CORE_message_queue_Copy_buffer(
the_message->Contents.buffer,
4df62: 240b movel %a3,%d2 <== NOT EXECUTED
4df64: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
if ( the_message != NULL ) {
the_message_queue->number_of_pending_messages -= 1;
_ISR_Enable( level );
*size_p = the_message->Contents.size;
_Thread_Executing->Wait.count =
4df6a: 216b 0008 0024 movel %a3@(8),%a0@(36) <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4df70: 49f9 0005 53a8 lea 553a8 <memcpy>,%a4 <== NOT EXECUTED
4df76: 2f11 movel %a1@,%sp@- <== NOT EXECUTED
4df78: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4df7a: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4df7c: 4e94 jsr %a4@ <== NOT EXECUTED
* is not, then we can go ahead and free the buffer.
*
* NOTE: If we note that the queue was not full before this receive,
* then we can avoid this dequeue.
*/
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
4df7e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4df80: 4eb9 0004 f9e8 jsr 4f9e8 <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( !the_thread ) {
4df86: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
* is not, then we can go ahead and free the buffer.
*
* NOTE: If we note that the queue was not full before this receive,
* then we can avoid this dequeue.
*/
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
4df8a: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( !the_thread ) {
4df8c: 4a80 tstl %d0 <== NOT EXECUTED
4df8e: 661a bnes 4dfaa <_CORE_message_queue_Seize+0xb6> <== 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 );
4df90: 45ea 0068 lea %a2@(104),%a2 <== NOT EXECUTED
4df94: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED
4df98: 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 );
}
4df9c: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
4dfa2: 4e5e unlk %fp <== NOT EXECUTED
4dfa4: 4ef9 0004 dd74 jmp 4dd74 <_Chain_Append> <== NOT EXECUTED
*/
_CORE_message_queue_Set_message_priority(
the_message,
the_thread->Wait.count
);
the_message->Contents.size = (size_t) the_thread->Wait.option;
4dfaa: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
4dfae: 2768 0024 0008 movel %a0@(36),%a3@(8) <== NOT EXECUTED
4dfb4: 2740 000c movel %d0,%a3@(12) <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4dfb8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4dfba: 2f28 002c movel %a0@(44),%sp@- <== NOT EXECUTED
4dfbe: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4dfc0: 4e94 jsr %a4@ <== NOT EXECUTED
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
4dfc2: 2d6b 0008 0010 movel %a3@(8),%fp@(16) <== NOT EXECUTED
4dfc8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4dfcc: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED
4dfd0: 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 );
}
4dfd4: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
4dfda: 4e5e unlk %fp <== NOT EXECUTED
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
4dfdc: 4ef9 0005 2b14 jmp 52b14 <_CORE_message_queue_Insert_message><== NOT EXECUTED
return;
}
#endif
}
if ( !wait ) {
4dfe2: 4a04 tstb %d4 <== NOT EXECUTED
4dfe4: 6612 bnes 4dff8 <_CORE_message_queue_Seize+0x104><== NOT EXECUTED
_ISR_Enable( level );
4dfe6: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
4dfe8: 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 );
}
4dfea: 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;
4dff0: 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 );
}
4dff4: 4e5e unlk %fp <== NOT EXECUTED
4dff6: 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;
4dff8: 7201 moveq #1,%d1 <== NOT EXECUTED
4dffa: 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;
4dffe: 2145 002c movel %d5,%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;
4e002: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED
executing->Wait.id = id;
4e006: 2143 0020 movel %d3,%a0@(32) <== NOT EXECUTED
executing->Wait.return_argument_second.mutable_object = buffer;
executing->Wait.return_argument = size_p;
4e00a: 2149 0028 movel %a1,%a0@(40) <== NOT EXECUTED
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
4e00e: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
4e010: 49f9 0004 fe34 lea 4fe34 <_Thread_queue_Timeout>,%a4 <== NOT EXECUTED
4e016: 2d42 000c movel %d2,%fp@(12) <== NOT EXECUTED
4e01a: 2d4c 0010 movel %a4,%fp@(16) <== NOT EXECUTED
4e01e: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
4e022: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
4e028: 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 );
4e02a: 4ef9 0004 fb24 jmp 4fb24 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
0004e030 <_CORE_message_queue_Submit>:
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
4e030: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
4e034: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
4e038: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4e03c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
4e040: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
4e044: 262e 001c movel %fp@(28),%d3 <== NOT EXECUTED
4e048: 1a2e 0023 moveb %fp@(35),%d5 <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
4e04c: b4aa 004c cmpl %a2@(76),%d2 <== NOT EXECUTED
4e050: 6200 00cc bhiw 4e11e <_CORE_message_queue_Submit+0xee><== NOT EXECUTED
}
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
4e054: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED
4e058: 662e bnes 4e088 <_CORE_message_queue_Submit+0x58><== NOT EXECUTED
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
4e05a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4e05c: 4eb9 0004 f9e8 jsr 4f9e8 <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( the_thread ) {
4e062: 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 );
4e064: 2640 moveal %d0,%a3 <== NOT EXECUTED
if ( the_thread ) {
4e066: 4a80 tstl %d0 <== NOT EXECUTED
4e068: 671e beqs 4e088 <_CORE_message_queue_Submit+0x58><== NOT EXECUTED
4e06a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4e06c: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4e06e: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED
4e072: 4eb9 0005 53a8 jsr 553a8 <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;
4e078: 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;
4e07c: 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;
4e080: 2082 movel %d2,%a0@ <== NOT EXECUTED
the_thread->Wait.count = (uint32_t) submit_type;
4e082: 2743 0024 movel %d3,%a3@(36) <== NOT EXECUTED
4e086: 603c bras 4e0c4 <_CORE_message_queue_Submit+0x94><== 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 <
4e088: 202a 0044 movel %a2@(68),%d0 <== NOT EXECUTED
4e08c: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED
4e090: 6336 blss 4e0c8 <_CORE_message_queue_Submit+0x98><== 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 );
4e092: 486a 0068 pea %a2@(104) <== NOT EXECUTED
4e096: 4eb9 0004 ddd4 jsr 4ddd4 <_Chain_Get> <== NOT EXECUTED
4e09c: 2640 moveal %d0,%a3 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
4e09e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4e0a0: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4e0a2: 486b 0010 pea %a3@(16) <== NOT EXECUTED
4e0a6: 4eb9 0005 53a8 jsr 553a8 <memcpy> <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_message->Contents.buffer,
size
);
the_message->Contents.size = size;
4e0ac: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
4e0b0: 2743 0008 movel %d3,%a3@(8) <== NOT EXECUTED
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
4e0b4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4e0b6: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4e0b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4e0ba: 4eb9 0005 2b14 jsr 52b14 <_CORE_message_queue_Insert_message><== NOT EXECUTED
the_message_queue,
the_message,
submit_type
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
4e0c0: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4e0c4: 4280 clrl %d0 <== NOT EXECUTED
4e0c6: 6060 bras 4e128 <_CORE_message_queue_Submit+0xf8><== NOT EXECUTED
/*
* No message buffers were available so we may need to return an
* overflow error or block the sender until the message is placed
* on the queue.
*/
if ( !wait ) {
4e0c8: 4a05 tstb %d5 <== NOT EXECUTED
4e0ca: 6756 beqs 4e122 <_CORE_message_queue_Submit+0xf2><== NOT EXECUTED
/*
* Do NOT block on a send if the caller is in an ISR. It is
* deadly to block in an ISR.
*/
if ( _ISR_Is_in_progress() ) {
4e0cc: 4ab9 0006 6b50 tstl 66b50 <_Per_CPU_Information+0x8> <== NOT EXECUTED
4e0d2: 6652 bnes 4e126 <_CORE_message_queue_Submit+0xf6><== NOT EXECUTED
* Thus the unusual choice to open a new scope and declare
* it as a variable. Doing this emphasizes how dangerous it
* would be to use this variable prior to here.
*/
{
Thread_Control *executing = _Thread_Executing;
4e0d4: 2079 0006 6b54 moveal 66b54 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
4e0da: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4e0e0: 40c1 movew %sr,%d1 <== NOT EXECUTED
4e0e2: 8081 orl %d1,%d0 <== NOT EXECUTED
4e0e4: 46c0 movew %d0,%sr <== NOT EXECUTED
4e0e6: 7001 moveq #1,%d0 <== NOT EXECUTED
4e0e8: 2540 0030 movel %d0,%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;
4e0ec: 216e 0014 0020 movel %fp@(20),%a0@(32) <== NOT EXECUTED
Thread_Control *executing = _Thread_Executing;
ISR_Level level;
_ISR_Disable( level );
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
4e0f2: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.return_argument_second.immutable_object = buffer;
4e0f6: 2144 002c movel %d4,%a0@(44) <== NOT EXECUTED
executing->Wait.option = (uint32_t) size;
4e0fa: 2142 0030 movel %d2,%a0@(48) <== NOT EXECUTED
executing->Wait.count = submit_type;
4e0fe: 2143 0024 movel %d3,%a0@(36) <== NOT EXECUTED
_ISR_Enable( level );
4e102: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
4e104: 4879 0004 fe34 pea 4fe34 <_Thread_queue_Timeout> <== NOT EXECUTED
4e10a: 2f2e 0024 movel %fp@(36),%sp@- <== NOT EXECUTED
4e10e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4e110: 4eb9 0004 fb24 jsr 4fb24 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
4e116: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4e11a: 7007 moveq #7,%d0 <== NOT EXECUTED
4e11c: 600a bras 4e128 <_CORE_message_queue_Submit+0xf8><== 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;
4e11e: 7001 moveq #1,%d0 <== NOT EXECUTED
4e120: 6006 bras 4e128 <_CORE_message_queue_Submit+0xf8><== NOT EXECUTED
* No message buffers were available so we may need to return an
* overflow error or block the sender until the message is placed
* on the queue.
*/
if ( !wait ) {
return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY;
4e122: 7002 moveq #2,%d0 <== NOT EXECUTED
4e124: 6002 bras 4e128 <_CORE_message_queue_Submit+0xf8><== NOT EXECUTED
/*
* Do NOT block on a send if the caller is in an ISR. It is
* deadly to block in an ISR.
*/
if ( _ISR_Is_in_progress() ) {
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED;
4e126: 7003 moveq #3,%d0 <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
4e128: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED
4e12e: 4e5e unlk %fp <== NOT EXECUTED
...
00046048 <_CORE_mutex_Initialize>:
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
46048: 4e56 fff4 linkw %fp,#-12
4604c: 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;
46050: 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
)
{
46054: 266e 000c moveal %fp@(12),%a3
46058: 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;
4605c: 2f0b movel %a3,%sp@-
4605e: 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
)
{
46062: 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;
46066: 4eb9 0004 d138 jsr 4d138 <memcpy>
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
4606c: 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;
46070: 2542 004e movel %d2,%a2@(78)
the_mutex->blocked_count = 0;
46074: 42aa 0056 clrl %a2@(86)
if ( initial_lock == CORE_MUTEX_LOCKED ) {
46078: 4a82 tstl %d2
4607a: 6638 bnes 460b4 <_CORE_mutex_Initialize+0x6c>
the_mutex->nest_count = 1;
4607c: 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 ) ||
4607e: 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;
46080: 2079 0005 debc moveal 5debc <_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;
46086: 2540 0052 movel %d0,%a2@(82)
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
4608a: 2568 0008 005e movel %a0@(8),%a2@(94)
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
46090: 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;
46094: 2548 005a movel %a0,%a2@(90)
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
46098: b280 cmpl %d0,%d1
4609a: 6708 beqs 460a4 <_CORE_mutex_Initialize+0x5c> <== NEVER TAKEN
4609c: 123c 0003 moveb #3,%d1
460a0: b280 cmpl %d0,%d1
460a2: 661c bnes 460c0 <_CORE_mutex_Initialize+0x78> <== ALWAYS TAKEN
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
460a4: 202a 004a movel %a2@(74),%d0 <== NOT EXECUTED
460a8: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED
460ac: 6236 bhis 460e4 <_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++;
460ae: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED
460b2: 600c bras 460c0 <_CORE_mutex_Initialize+0x78> <== NOT EXECUTED
}
} else {
the_mutex->nest_count = 0;
460b4: 42aa 0052 clrl %a2@(82)
the_mutex->holder = NULL;
460b8: 42aa 005a clrl %a2@(90)
the_mutex->holder_id = 0;
460bc: 42aa 005e clrl %a2@(94)
}
_Thread_queue_Initialize(
460c0: 4878 0005 pea 5 <COMPARE>
460c4: 4878 0400 pea 400 <D_BIAS+0x2>
460c8: 4aab 0006 tstl %a3@(6)
460cc: 56c0 sne %d0
460ce: 49c0 extbl %d0
460d0: 4480 negl %d0
460d2: 2f00 movel %d0,%sp@-
460d4: 2f0a movel %a2,%sp@-
460d6: 4eb9 0004 7be4 jsr 47be4 <_Thread_queue_Initialize>
THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY,
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
460dc: 4fef 0010 lea %sp@(16),%sp
460e0: 4280 clrl %d0
460e2: 6002 bras 460e6 <_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;
460e4: 7006 moveq #6,%d0 <== NOT EXECUTED
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
460e6: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
460ec: 4e5e unlk %fp <== NOT EXECUTED
00046154 <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
46154: 4e56 0000 linkw %fp,#0
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
46158: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
4615e: 2f0a movel %a2,%sp@-
46160: 246e 0008 moveal %fp@(8),%a2
46164: 2f02 movel %d2,%sp@-
46166: 142e 0013 moveb %fp@(19),%d2
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
4616a: 4a80 tstl %d0
4616c: 671c beqs 4618a <_CORE_mutex_Seize+0x36>
4616e: 4a02 tstb %d2
46170: 6718 beqs 4618a <_CORE_mutex_Seize+0x36> <== NEVER TAKEN
46172: 7001 moveq #1,%d0
46174: b0b9 0005 db9a cmpl 5db9a <_System_state_Current>,%d0
4617a: 640e bccs 4618a <_CORE_mutex_Seize+0x36>
4617c: 4878 0012 pea 12 <INVALID_OPERATION+0x2>
46180: 42a7 clrl %sp@-
46182: 42a7 clrl %sp@-
46184: 4eb9 0004 67b0 jsr 467b0 <_Internal_error_Occurred>
4618a: 486e 0018 pea %fp@(24)
4618e: 2f0a movel %a2,%sp@-
46190: 4eb9 0004 a980 jsr 4a980 <_CORE_mutex_Seize_interrupt_trylock>
46196: 508f addql #8,%sp
46198: 4a80 tstl %d0
4619a: 6750 beqs 461ec <_CORE_mutex_Seize+0x98>
4619c: 4a02 tstb %d2
4619e: 6614 bnes 461b4 <_CORE_mutex_Seize+0x60> <== ALWAYS TAKEN
461a0: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED
461a4: 46c0 movew %d0,%sr <== NOT EXECUTED
461a6: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
461ac: 7001 moveq #1,%d0 <== NOT EXECUTED
461ae: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED
461b2: 6038 bras 461ec <_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;
461b4: 7001 moveq #1,%d0
461b6: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
461bc: 2540 0030 movel %d0,%a2@(48)
461c0: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
461c6: 5280 addql #1,%d0
461c8: 216e 000c 0020 movel %fp@(12),%a0@(32)
461ce: 214a 0044 movel %a2,%a0@(68)
461d2: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level>
461d8: 202e 0018 movel %fp@(24),%d0
461dc: 46c0 movew %d0,%sr
461de: 2f2e 0014 movel %fp@(20),%sp@-
461e2: 2f0a movel %a2,%sp@-
461e4: 4eb9 0004 60f0 jsr 460f0 <_CORE_mutex_Seize_interrupt_blocking>
461ea: 508f addql #8,%sp
}
461ec: 242e fff8 movel %fp@(-8),%d2
461f0: 246e fffc moveal %fp@(-4),%a2
461f4: 4e5e unlk %fp <== NOT EXECUTED
000460f0 <_CORE_mutex_Seize_interrupt_blocking>:
)
{
Thread_Control *executing;
executing = _Thread_Executing;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
460f0: 7002 moveq #2,%d0
void _CORE_mutex_Seize_interrupt_blocking(
CORE_mutex_Control *the_mutex,
Watchdog_Interval timeout
)
{
460f2: 4e56 0000 linkw %fp,#0
Thread_Control *executing;
executing = _Thread_Executing;
460f6: 2279 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a1
void _CORE_mutex_Seize_interrupt_blocking(
CORE_mutex_Control *the_mutex,
Watchdog_Interval timeout
)
{
460fc: 2f0a movel %a2,%sp@-
460fe: 246e 0008 moveal %fp@(8),%a2
46102: 2f02 movel %d2,%sp@-
46104: 242e 000c movel %fp@(12),%d2
Thread_Control *executing;
executing = _Thread_Executing;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
46108: b0aa 0046 cmpl %a2@(70),%d0
4610c: 661e bnes 4612c <_CORE_mutex_Seize_interrupt_blocking+0x3c>
if ( the_mutex->holder->current_priority > executing->current_priority ) {
4610e: 206a 005a moveal %a2@(90),%a0
46112: 2029 0014 movel %a1@(20),%d0
46116: b0a8 0014 cmpl %a0@(20),%d0
4611a: 6410 bccs 4612c <_CORE_mutex_Seize_interrupt_blocking+0x3c><== NEVER TAKEN
_Thread_Change_priority(
4611c: 42a7 clrl %sp@-
4611e: 2f00 movel %d0,%sp@-
46120: 2f08 movel %a0,%sp@-
46122: 4eb9 0004 703c jsr 4703c <_Thread_Change_priority>
46128: 4fef 000c lea %sp@(12),%sp
false
);
}
}
the_mutex->blocked_count++;
4612c: 52aa 0056 addql #1,%a2@(86)
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
46130: 4879 0004 7cb4 pea 47cb4 <_Thread_queue_Timeout>
46136: 2f02 movel %d2,%sp@-
46138: 2f0a movel %a2,%sp@-
4613a: 4eb9 0004 79a4 jsr 479a4 <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
}
46140: 242e fff8 movel %fp@(-8),%d2
}
the_mutex->blocked_count++;
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
_Thread_Enable_dispatch();
46144: 4fef 000c lea %sp@(12),%sp
}
46148: 246e fffc moveal %fp@(-4),%a2
4614c: 4e5e unlk %fp
}
the_mutex->blocked_count++;
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
_Thread_Enable_dispatch();
4614e: 4ef9 0004 7522 jmp 47522 <_Thread_Enable_dispatch>
0004a980 <_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
)
{
4a980: 4e56 fff4 linkw %fp,#-12
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
4a984: 2279 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a1
4a98a: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
4a98e: 206e 0008 moveal %fp@(8),%a0
4a992: 246e 000c moveal %fp@(12),%a2
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
4a996: 42a9 0034 clrl %a1@(52)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
4a99a: 4aa8 004e tstl %a0@(78)
4a99e: 6700 009e beqw 4aa3e <_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;
4a9a2: 7001 moveq #1,%d0
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
4a9a4: 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;
4a9a6: 2169 0008 005e movel %a1@(8),%a0@(94)
the_mutex->nest_count = 1;
4a9ac: 2140 0052 movel %d0,%a0@(82)
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
4a9b0: 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;
4a9b4: 42a8 004e clrl %a0@(78)
the_mutex->holder = executing;
4a9b8: 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 ) ||
4a9bc: b280 cmpl %d0,%d1
4a9be: 6706 beqs 4a9c6 <_CORE_mutex_Seize_interrupt_trylock+0x46>
4a9c0: 7403 moveq #3,%d2
4a9c2: b480 cmpl %d0,%d2
4a9c4: 6612 bnes 4a9d8 <_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++;
4a9c6: 2229 001c movel %a1@(28),%d1
4a9ca: 2401 movel %d1,%d2
4a9cc: 5282 addql #1,%d2
4a9ce: 2342 001c movel %d2,%a1@(28)
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
4a9d2: 7403 moveq #3,%d2
4a9d4: b480 cmpl %d0,%d2
4a9d6: 6708 beqs 4a9e0 <_CORE_mutex_Seize_interrupt_trylock+0x60><== NEVER TAKEN
_ISR_Enable( *level_p );
4a9d8: 2012 movel %a2@,%d0
4a9da: 46c0 movew %d0,%sr
4a9dc: 6000 008a braw 4aa68 <_CORE_mutex_Seize_interrupt_trylock+0xe8>
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
4a9e0: 2028 004a movel %a0@(74),%d0 <== NOT EXECUTED
current = executing->current_priority;
4a9e4: 2669 0014 moveal %a1@(20),%a3 <== NOT EXECUTED
if ( current == ceiling ) {
4a9e8: b08b cmpl %a3,%d0 <== NOT EXECUTED
4a9ea: 6606 bnes 4a9f2 <_CORE_mutex_Seize_interrupt_trylock+0x72><== NOT EXECUTED
_ISR_Enable( *level_p );
4a9ec: 2012 movel %a2@,%d0 <== NOT EXECUTED
4a9ee: 46c0 movew %d0,%sr <== NOT EXECUTED
4a9f0: 6076 bras 4aa68 <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED
return 0;
}
if ( current > ceiling ) {
4a9f2: b08b cmpl %a3,%d0 <== NOT EXECUTED
4a9f4: 642e bccs 4aa24 <_CORE_mutex_Seize_interrupt_trylock+0xa4><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4a9f6: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4a9fc: 5280 addql #1,%d0 <== NOT EXECUTED
4a9fe: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
4aa04: 2012 movel %a2@,%d0 <== NOT EXECUTED
4aa06: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_Change_priority(
4aa08: 42a7 clrl %sp@- <== NOT EXECUTED
4aa0a: 2f28 004a movel %a0@(74),%sp@- <== NOT EXECUTED
4aa0e: 2f28 005a movel %a0@(90),%sp@- <== NOT EXECUTED
4aa12: 4eb9 0004 703c jsr 4703c <_Thread_Change_priority> <== NOT EXECUTED
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
4aa18: 4eb9 0004 7522 jsr 47522 <_Thread_Enable_dispatch> <== NOT EXECUTED
4aa1e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4aa22: 6044 bras 4aa68 <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
4aa24: 7006 moveq #6,%d0 <== NOT EXECUTED
the_mutex->lock = CORE_MUTEX_UNLOCKED;
4aa26: 7401 moveq #1,%d2 <== NOT EXECUTED
);
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
4aa28: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED
the_mutex->lock = CORE_MUTEX_UNLOCKED;
4aa2c: 2142 004e movel %d2,%a0@(78) <== NOT EXECUTED
the_mutex->nest_count = 0; /* undo locking above */
4aa30: 42a8 0052 clrl %a0@(82) <== NOT EXECUTED
executing->resource_count--; /* undo locking above */
4aa34: 2341 001c movel %d1,%a1@(28) <== NOT EXECUTED
_ISR_Enable( *level_p );
4aa38: 2012 movel %a2@,%d0 <== NOT EXECUTED
4aa3a: 46c0 movew %d0,%sr <== NOT EXECUTED
4aa3c: 602a bras 4aa68 <_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 ) ) {
4aa3e: 2668 005a moveal %a0@(90),%a3
4aa42: b3cb cmpal %a3,%a1
4aa44: 6626 bnes 4aa6c <_CORE_mutex_Seize_interrupt_trylock+0xec>
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
4aa46: 2028 0040 movel %a0@(64),%d0
4aa4a: 6708 beqs 4aa54 <_CORE_mutex_Seize_interrupt_trylock+0xd4><== NEVER TAKEN
4aa4c: 7201 moveq #1,%d1
4aa4e: b280 cmpl %d0,%d1
4aa50: 661a bnes 4aa6c <_CORE_mutex_Seize_interrupt_trylock+0xec><== ALWAYS TAKEN
4aa52: 600a bras 4aa5e <_CORE_mutex_Seize_interrupt_trylock+0xde><== NOT EXECUTED
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
4aa54: 52a8 0052 addql #1,%a0@(82) <== NOT EXECUTED
_ISR_Enable( *level_p );
4aa58: 2012 movel %a2@,%d0 <== NOT EXECUTED
4aa5a: 46c0 movew %d0,%sr <== NOT EXECUTED
4aa5c: 600a bras 4aa68 <_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;
4aa5e: 7402 moveq #2,%d2 <== NOT EXECUTED
4aa60: 2742 0034 movel %d2,%a3@(52) <== NOT EXECUTED
_ISR_Enable( *level_p );
4aa64: 2012 movel %a2@,%d0 <== NOT EXECUTED
4aa66: 46c0 movew %d0,%sr <== NOT EXECUTED
return 0;
4aa68: 4280 clrl %d0
4aa6a: 6002 bras 4aa6e <_CORE_mutex_Seize_interrupt_trylock+0xee>
/*
* The mutex is not available and the caller must deal with the possibility
* of blocking.
*/
return 1;
4aa6c: 7001 moveq #1,%d0
4aa6e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
4aa74: 4e5e unlk %fp <== NOT EXECUTED
000461f8 <_CORE_mutex_Surrender>:
#else
Objects_Id id __attribute__((unused)),
CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused))
#endif
)
{
461f8: 4e56 0000 linkw %fp,#0
461fc: 2f0a movel %a2,%sp@-
461fe: 246e 0008 moveal %fp@(8),%a2
Thread_Control *the_thread;
Thread_Control *holder;
holder = the_mutex->holder;
46202: 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 ) {
46206: 4a2a 0044 tstb %a2@(68)
4620a: 670a beqs 46216 <_CORE_mutex_Surrender+0x1e>
if ( !_Thread_Is_executing( holder ) )
4620c: b1f9 0005 debc cmpal 5debc <_Per_CPU_Information+0xc>,%a0
46212: 6600 00ba bnew 462ce <_CORE_mutex_Surrender+0xd6>
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
}
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
46216: 202a 0052 movel %a2@(82),%d0
4621a: 6700 00b6 beqw 462d2 <_CORE_mutex_Surrender+0xda>
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
4621e: 5380 subql #1,%d0
46220: 2540 0052 movel %d0,%a2@(82)
if ( the_mutex->nest_count != 0 ) {
46224: 6600 00ac bnew 462d2 <_CORE_mutex_Surrender+0xda>
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
46228: 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 ) ||
4622c: 7202 moveq #2,%d1
4622e: b280 cmpl %d0,%d1
46230: 6708 beqs 4623a <_CORE_mutex_Surrender+0x42>
46232: 123c 0003 moveb #3,%d1
46236: b280 cmpl %d0,%d1
46238: 6628 bnes 46262 <_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--;
4623a: 2028 001c movel %a0@(28),%d0
4623e: 5380 subql #1,%d0
46240: 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 &&
46244: 661c bnes 46262 <_CORE_mutex_Surrender+0x6a>
holder->real_priority != holder->current_priority ) {
46246: 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 &&
4624a: b0a8 0014 cmpl %a0@(20),%d0
4624e: 6712 beqs 46262 <_CORE_mutex_Surrender+0x6a>
holder->real_priority != holder->current_priority ) {
_Thread_Change_priority( holder, holder->real_priority, true );
46250: 4878 0001 pea 1 <ADD>
46254: 2f00 movel %d0,%sp@-
46256: 2f08 movel %a0,%sp@-
46258: 4eb9 0004 703c jsr 4703c <_Thread_Change_priority>
4625e: 4fef 000c lea %sp@(12),%sp
}
}
the_mutex->holder = NULL;
46262: 42aa 005a clrl %a2@(90)
the_mutex->holder_id = 0;
46266: 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 ) ) ) {
4626a: 2f0a movel %a2,%sp@-
4626c: 4eb9 0004 7868 jsr 47868 <_Thread_queue_Dequeue>
46272: 588f addql #4,%sp
46274: 2040 moveal %d0,%a0
46276: 4a80 tstl %d0
46278: 674a beqs 462c4 <_CORE_mutex_Surrender+0xcc>
} else
#endif
{
the_mutex->holder = the_thread;
4627a: 2540 005a movel %d0,%a2@(90)
the_mutex->holder_id = the_thread->Object.id;
the_mutex->nest_count = 1;
4627e: 7001 moveq #1,%d0
switch ( the_mutex->Attributes.discipline ) {
46280: 7202 moveq #2,%d1
} else
#endif
{
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
46282: 2568 0008 005e movel %a0@(8),%a2@(94)
the_mutex->nest_count = 1;
46288: 2540 0052 movel %d0,%a2@(82)
switch ( the_mutex->Attributes.discipline ) {
4628c: 202a 0046 movel %a2@(70),%d0
46290: b280 cmpl %d0,%d1
46292: 670a beqs 4629e <_CORE_mutex_Surrender+0xa6> <== ALWAYS TAKEN
46294: 123c 0003 moveb #3,%d1 <== NOT EXECUTED
46298: b280 cmpl %d0,%d1 <== NOT EXECUTED
4629a: 6636 bnes 462d2 <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED
4629c: 6006 bras 462a4 <_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++;
4629e: 52a8 001c addql #1,%a0@(28)
462a2: 602e bras 462d2 <_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 <
462a4: 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++;
462a8: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
462ac: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED
462b0: 6420 bccs 462d2 <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED
the_thread->current_priority){
_Thread_Change_priority(
462b2: 42a7 clrl %sp@- <== NOT EXECUTED
462b4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
462b6: 2f08 movel %a0,%sp@- <== NOT EXECUTED
462b8: 4eb9 0004 703c jsr 4703c <_Thread_Change_priority> <== NOT EXECUTED
462be: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
462c2: 600e bras 462d2 <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED
}
break;
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
462c4: 7001 moveq #1,%d0
462c6: 2540 004e movel %d0,%a2@(78)
return CORE_MUTEX_STATUS_SUCCESSFUL;
462ca: 4200 clrb %d0
462cc: 6006 bras 462d4 <_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;
462ce: 7003 moveq #3,%d0 <== NOT EXECUTED
462d0: 6002 bras 462d4 <_CORE_mutex_Surrender+0xdc> <== NOT EXECUTED
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
462d2: 4280 clrl %d0
}
462d4: 246e fffc moveal %fp@(-4),%a2
462d8: 4e5e unlk %fp <== NOT EXECUTED
0004e5fc <_CORE_semaphore_Seize>:
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
_ISR_Disable( level );
4e5fc: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
bool wait,
Watchdog_Interval timeout
)
{
4e602: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
4e606: 2279 0006 2e38 moveal 62e38 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
bool wait,
Watchdog_Interval timeout
)
{
4e60c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4e610: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4e614: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
4e618: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED
4e61c: 182e 0013 moveb %fp@(19),%d4 <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
4e620: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED
_ISR_Disable( level );
4e624: 40c0 movew %sr,%d0 <== NOT EXECUTED
4e626: 8280 orl %d0,%d1 <== NOT EXECUTED
4e628: 46c1 movew %d1,%sr <== NOT EXECUTED
if ( the_semaphore->count != 0 ) {
4e62a: 2228 0048 movel %a0@(72),%d1 <== NOT EXECUTED
4e62e: 670a beqs 4e63a <_CORE_semaphore_Seize+0x3e> <== NOT EXECUTED
the_semaphore->count -= 1;
4e630: 5381 subql #1,%d1 <== NOT EXECUTED
4e632: 2141 0048 movel %d1,%a0@(72) <== NOT EXECUTED
_ISR_Enable( level );
4e636: 46c0 movew %d0,%sr <== NOT EXECUTED
return;
4e638: 603c bras 4e676 <_CORE_semaphore_Seize+0x7a> <== NOT EXECUTED
/*
* If the semaphore was not available and the caller was not willing
* to block, then return immediately with a status indicating that
* the semaphore was not available and the caller never blocked.
*/
if ( !wait ) {
4e63a: 4a04 tstb %d4 <== NOT EXECUTED
4e63c: 660a bnes 4e648 <_CORE_semaphore_Seize+0x4c> <== NOT EXECUTED
_ISR_Enable( level );
4e63e: 46c0 movew %d0,%sr <== NOT EXECUTED
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
4e640: 7001 moveq #1,%d0 <== NOT EXECUTED
4e642: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED
4e646: 602e bras 4e676 <_CORE_semaphore_Seize+0x7a> <== NOT EXECUTED
4e648: 7201 moveq #1,%d1 <== NOT EXECUTED
4e64a: 2141 0030 movel %d1,%a0@(48) <== NOT EXECUTED
/*
* If the semaphore is not available and the caller is willing to
* block, then we now block the caller with optional timeout.
*/
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
4e64e: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED
executing->Wait.id = id;
4e652: 2343 0020 movel %d3,%a1@(32) <== NOT EXECUTED
_ISR_Enable( level );
4e656: 46c0 movew %d0,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
4e658: 2d42 000c movel %d2,%fp@(12) <== NOT EXECUTED
4e65c: 203c 0004 b2fc movel #307964,%d0 <== NOT EXECUTED
4e662: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
4e666: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
*/
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
4e66a: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED
}
4e66e: 4e5e unlk %fp <== NOT EXECUTED
*/
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
4e670: 4ef9 0004 afec jmp 4afec <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
}
4e676: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
4e67a: 4e5e unlk %fp <== NOT EXECUTED
...
00046330 <_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
)
{
46330: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46334: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46336: 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)) ) {
4633a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4633c: 4eb9 0004 7868 jsr 47868 <_Thread_queue_Dequeue> <== NOT EXECUTED
46342: 588f addql #4,%sp <== NOT EXECUTED
46344: 4a80 tstl %d0 <== NOT EXECUTED
46346: 6624 bnes 4636c <_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 );
46348: 303c 0700 movew #1792,%d0 <== NOT EXECUTED
4634c: 40c1 movew %sr,%d1 <== NOT EXECUTED
4634e: 8081 orl %d1,%d0 <== NOT EXECUTED
46350: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
46352: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED
46356: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED
4635a: 640a bccs 46366 <_CORE_semaphore_Surrender+0x36> <== NOT EXECUTED
the_semaphore->count += 1;
4635c: 5280 addql #1,%d0 <== NOT EXECUTED
4635e: 2540 0048 movel %d0,%a2@(72) <== NOT EXECUTED
{
Thread_Control *the_thread;
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
46362: 4280 clrl %d0 <== NOT EXECUTED
46364: 6002 bras 46368 <_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;
46366: 7004 moveq #4,%d0 <== NOT EXECUTED
_ISR_Enable( level );
46368: 46c1 movew %d1,%sr <== NOT EXECUTED
4636a: 6002 bras 4636e <_CORE_semaphore_Surrender+0x3e> <== NOT EXECUTED
{
Thread_Control *the_thread;
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
4636c: 4280 clrl %d0 <== NOT EXECUTED
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
4636e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46372: 4e5e unlk %fp <== NOT EXECUTED
...
00046c74 <_CORE_spinlock_Initialize>:
void _CORE_spinlock_Initialize(
CORE_spinlock_Control *the_spinlock,
CORE_spinlock_Attributes *the_spinlock_attributes
)
{
46c74: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46c78: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
the_spinlock->Attributes = *the_spinlock_attributes;
46c7c: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
the_spinlock->lock = 0;
the_spinlock->users = 0;
the_spinlock->holder = 0;
}
46c80: 4e5e unlk %fp <== NOT EXECUTED
CORE_spinlock_Control *the_spinlock,
CORE_spinlock_Attributes *the_spinlock_attributes
)
{
the_spinlock->Attributes = *the_spinlock_attributes;
46c82: 2091 movel %a1@,%a0@ <== NOT EXECUTED
the_spinlock->lock = 0;
46c84: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
the_spinlock->users = 0;
46c88: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
the_spinlock->holder = 0;
46c8c: 42a8 000c clrl %a0@(12) <== NOT EXECUTED
}
...
00046c94 <_CORE_spinlock_Release>:
CORE_spinlock_Control *the_spinlock
)
{
ISR_Level level;
_ISR_Disable( level );
46c94: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
*/
CORE_spinlock_Status _CORE_spinlock_Release(
CORE_spinlock_Control *the_spinlock
)
{
46c9a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46c9e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
46ca2: 40c0 movew %sr,%d0 <== NOT EXECUTED
46ca4: 8280 orl %d0,%d1 <== NOT EXECUTED
46ca6: 46c1 movew %d1,%sr <== NOT EXECUTED
/*
* It must locked before it can be unlocked.
*/
if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) {
46ca8: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED
46cac: 6606 bnes 46cb4 <_CORE_spinlock_Release+0x20> <== NOT EXECUTED
_ISR_Enable( level );
46cae: 46c0 movew %d0,%sr <== NOT EXECUTED
return CORE_SPINLOCK_NOT_LOCKED;
46cb0: 7006 moveq #6,%d0 <== NOT EXECUTED
46cb2: 602c bras 46ce0 <_CORE_spinlock_Release+0x4c> <== NOT EXECUTED
}
/*
* It must locked by the current thread before it can be unlocked.
*/
if ( the_spinlock->holder != _Thread_Executing->Object.id ) {
46cb4: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED
46cb8: 2279 0005 ee9c moveal 5ee9c <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
46cbe: b2a9 0008 cmpl %a1@(8),%d1 <== NOT EXECUTED
46cc2: 6706 beqs 46cca <_CORE_spinlock_Release+0x36> <== NOT EXECUTED
_ISR_Enable( level );
46cc4: 46c0 movew %d0,%sr <== NOT EXECUTED
return CORE_SPINLOCK_NOT_HOLDER;
46cc6: 7002 moveq #2,%d0 <== NOT EXECUTED
46cc8: 6016 bras 46ce0 <_CORE_spinlock_Release+0x4c> <== NOT EXECUTED
}
/*
* Let it be unlocked.
*/
the_spinlock->users -= 1;
46cca: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED
46cce: 5381 subql #1,%d1 <== NOT EXECUTED
46cd0: 2141 0008 movel %d1,%a0@(8) <== NOT EXECUTED
the_spinlock->lock = CORE_SPINLOCK_UNLOCKED;
46cd4: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
the_spinlock->holder = 0;
46cd8: 42a8 000c clrl %a0@(12) <== NOT EXECUTED
_ISR_Enable( level );
46cdc: 46c0 movew %d0,%sr <== NOT EXECUTED
return CORE_SPINLOCK_SUCCESSFUL;
46cde: 4280 clrl %d0 <== NOT EXECUTED
}
46ce0: 4e5e unlk %fp <== NOT EXECUTED
00046ce4 <_CORE_spinlock_Wait>:
ISR_Level level;
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout;
#endif
_ISR_Disable( level );
46ce4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
CORE_spinlock_Status _CORE_spinlock_Wait(
CORE_spinlock_Control *the_spinlock,
bool wait,
Watchdog_Interval timeout
)
{
46cea: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
46cee: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED
46cf2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
46cf6: 162e 000f moveb %fp@(15),%d3 <== NOT EXECUTED
ISR_Level level;
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout;
#endif
_ISR_Disable( level );
46cfa: 40c1 movew %sr,%d1 <== NOT EXECUTED
46cfc: 8081 orl %d1,%d0 <== NOT EXECUTED
46cfe: 46c0 movew %d0,%sr <== NOT EXECUTED
46d00: 2001 movel %d1,%d0 <== NOT EXECUTED
if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
46d02: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED
46d06: 7401 moveq #1,%d2 <== NOT EXECUTED
46d08: b488 cmpl %a0,%d2 <== NOT EXECUTED
46d0a: 6616 bnes 46d22 <_CORE_spinlock_Wait+0x3e> <== NOT EXECUTED
(the_spinlock->holder == _Thread_Executing->Object.id) ) {
46d0c: 226a 000c moveal %a2@(12),%a1 <== NOT EXECUTED
46d10: 2079 0005 ee9c moveal 5ee9c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout;
#endif
_ISR_Disable( level );
if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
46d16: b3e8 0008 cmpal %a0@(8),%a1 <== NOT EXECUTED
46d1a: 6606 bnes 46d22 <_CORE_spinlock_Wait+0x3e> <== NOT EXECUTED
(the_spinlock->holder == _Thread_Executing->Object.id) ) {
_ISR_Enable( level );
46d1c: 46c1 movew %d1,%sr <== NOT EXECUTED
return CORE_SPINLOCK_HOLDER_RELOCKING;
46d1e: 7001 moveq #1,%d0 <== NOT EXECUTED
46d20: 6068 bras 46d8a <_CORE_spinlock_Wait+0xa6> <== NOT EXECUTED
}
the_spinlock->users += 1;
46d22: 222a 0008 movel %a2@(8),%d1 <== NOT EXECUTED
46d26: 5281 addql #1,%d1 <== NOT EXECUTED
*/
_ISR_Enable( level );
/* An ISR could occur here */
_Thread_Enable_dispatch();
46d28: 47f9 0004 7eca lea 47eca <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
/* Another thread could get dispatched here */
/* Reenter the critical sections so we can attempt the lock again. */
_Thread_Disable_dispatch();
_ISR_Disable( level );
46d2e: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED
if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
(the_spinlock->holder == _Thread_Executing->Object.id) ) {
_ISR_Enable( level );
return CORE_SPINLOCK_HOLDER_RELOCKING;
}
the_spinlock->users += 1;
46d34: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED
for ( ;; ) {
if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) {
46d38: 222a 0004 movel %a2@(4),%d1 <== NOT EXECUTED
46d3c: 661c bnes 46d5a <_CORE_spinlock_Wait+0x76> <== NOT EXECUTED
the_spinlock->lock = CORE_SPINLOCK_LOCKED;
the_spinlock->holder = _Thread_Executing->Object.id;
46d3e: 2079 0005 ee9c moveal 5ee9c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
return CORE_SPINLOCK_HOLDER_RELOCKING;
}
the_spinlock->users += 1;
for ( ;; ) {
if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) {
the_spinlock->lock = CORE_SPINLOCK_LOCKED;
46d44: 123c 0001 moveb #1,%d1 <== NOT EXECUTED
46d48: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED
the_spinlock->holder = _Thread_Executing->Object.id;
46d4c: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED
46d50: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED
_ISR_Enable( level );
46d54: 46c0 movew %d0,%sr <== NOT EXECUTED
return CORE_SPINLOCK_SUCCESSFUL;
46d56: 4280 clrl %d0 <== NOT EXECUTED
46d58: 6030 bras 46d8a <_CORE_spinlock_Wait+0xa6> <== NOT EXECUTED
}
/*
* Spinlock is unavailable. If not willing to wait, return.
*/
if ( !wait ) {
46d5a: 4a03 tstb %d3 <== NOT EXECUTED
46d5c: 6610 bnes 46d6e <_CORE_spinlock_Wait+0x8a> <== NOT EXECUTED
the_spinlock->users -= 1;
46d5e: 222a 0008 movel %a2@(8),%d1 <== NOT EXECUTED
46d62: 5381 subql #1,%d1 <== NOT EXECUTED
46d64: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED
_ISR_Enable( level );
46d68: 46c0 movew %d0,%sr <== NOT EXECUTED
return CORE_SPINLOCK_UNAVAILABLE;
46d6a: 7005 moveq #5,%d0 <== NOT EXECUTED
46d6c: 601c bras 46d8a <_CORE_spinlock_Wait+0xa6> <== NOT EXECUTED
*
* A spinlock cannot be deleted while it is being used so we are
* safe from deletion.
*/
_ISR_Enable( level );
46d6e: 46c0 movew %d0,%sr <== NOT EXECUTED
/* An ISR could occur here */
_Thread_Enable_dispatch();
46d70: 4e93 jsr %a3@ <== NOT EXECUTED
46d72: 2039 0005 ea0c movel 5ea0c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46d78: 5280 addql #1,%d0 <== NOT EXECUTED
46d7a: 23c0 0005 ea0c movel %d0,5ea0c <_Thread_Dispatch_disable_level><== NOT EXECUTED
/* Another thread could get dispatched here */
/* Reenter the critical sections so we can attempt the lock again. */
_Thread_Disable_dispatch();
_ISR_Disable( level );
46d80: 2202 movel %d2,%d1 <== NOT EXECUTED
46d82: 40c0 movew %sr,%d0 <== NOT EXECUTED
46d84: 8280 orl %d0,%d1 <== NOT EXECUTED
46d86: 46c1 movew %d1,%sr <== NOT EXECUTED
}
46d88: 60ae bras 46d38 <_CORE_spinlock_Wait+0x54> <== NOT EXECUTED
}
46d8a: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED
46d90: 4e5e unlk %fp <== NOT EXECUTED
0004653c <_Chain_Append_with_empty_check>:
)
{
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
4653c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
bool _Chain_Append_with_empty_check(
Chain_Control *chain,
Chain_Node *node
)
{
46542: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46546: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
4654a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4654c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
46550: 2f02 movel %d2,%sp@- <== NOT EXECUTED
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
46552: 40c2 movew %sr,%d2 <== NOT EXECUTED
46554: 8082 orl %d2,%d0 <== NOT EXECUTED
46556: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
46558: 2209 movel %a1,%d1 <== NOT EXECUTED
4655a: 5881 addql #4,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4655c: b291 cmpl %a1@,%d1 <== NOT EXECUTED
4655e: 57c0 seq %d0 <== NOT EXECUTED
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
46560: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
46564: 4480 negl %d0 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
46566: 2081 movel %d1,%a0@ <== NOT EXECUTED
old_last_node = the_chain->last;
the_chain->last = the_node;
46568: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED
old_last_node->next = the_node;
4656c: 2488 movel %a0,%a2@ <== NOT EXECUTED
the_node->previous = old_last_node;
4656e: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
was_empty = _Chain_Append_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
46572: 46c2 movew %d2,%sr <== NOT EXECUTED
return was_empty;
}
46574: 241f movel %sp@+,%d2 <== NOT EXECUTED
46576: 245f moveal %sp@+,%a2 <== NOT EXECUTED
46578: 4e5e unlk %fp <== NOT EXECUTED
000465dc <_Chain_Get_with_empty_check>:
)
{
ISR_Level level;
bool is_empty_now;
_ISR_Disable( level );
465dc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
bool _Chain_Get_with_empty_check(
Chain_Control *chain,
Chain_Node **node
)
{
465e2: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
465e6: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED
465ea: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
465ee: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED
ISR_Level level;
bool is_empty_now;
_ISR_Disable( level );
465f2: 40c1 movew %sr,%d1 <== NOT EXECUTED
465f4: 8081 orl %d1,%d0 <== NOT EXECUTED
465f6: 46c0 movew %d0,%sr <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node **the_node
)
{
bool is_empty_now = true;
Chain_Node *first = the_chain->first;
465f8: 204b moveal %a3,%a0 <== NOT EXECUTED
465fa: 2458 moveal %a0@+,%a2 <== NOT EXECUTED
if ( first != _Chain_Tail( the_chain ) ) {
465fc: b1ca cmpal %a2,%a0 <== NOT EXECUTED
465fe: 6712 beqs 46612 <_Chain_Get_with_empty_check+0x36><== NOT EXECUTED
Chain_Node *new_first = first->next;
46600: 2252 moveal %a2@,%a1 <== NOT EXECUTED
the_chain->first = new_first;
new_first->previous = _Chain_Head( the_chain );
*the_node = first;
is_empty_now = new_first == _Chain_Tail( the_chain );
46602: b1c9 cmpal %a1,%a0 <== NOT EXECUTED
46604: 57c0 seq %d0 <== NOT EXECUTED
Chain_Node *first = the_chain->first;
if ( first != _Chain_Tail( the_chain ) ) {
Chain_Node *new_first = first->next;
the_chain->first = new_first;
46606: 2689 movel %a1,%a3@ <== NOT EXECUTED
new_first->previous = _Chain_Head( the_chain );
*the_node = first;
is_empty_now = new_first == _Chain_Tail( the_chain );
46608: 4480 negl %d0 <== NOT EXECUTED
if ( first != _Chain_Tail( the_chain ) ) {
Chain_Node *new_first = first->next;
the_chain->first = new_first;
new_first->previous = _Chain_Head( the_chain );
4660a: 234b 0004 movel %a3,%a1@(4) <== NOT EXECUTED
*the_node = first;
4660e: 288a movel %a2,%a4@ <== NOT EXECUTED
46610: 6004 bras 46616 <_Chain_Get_with_empty_check+0x3a><== NOT EXECUTED
is_empty_now = new_first == _Chain_Tail( the_chain );
} else
*the_node = NULL;
46612: 4294 clrl %a4@ <== 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;
46614: 7001 moveq #1,%d0 <== NOT EXECUTED
is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
46616: 46c1 movew %d1,%sr <== NOT EXECUTED
return is_empty_now;
}
46618: 4cd7 1c00 moveml %sp@,%a2-%a4 <== NOT EXECUTED
4661c: 4e5e unlk %fp <== NOT EXECUTED
00046684 <_Chain_Prepend_with_empty_check>:
)
{
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
46684: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
bool _Chain_Prepend_with_empty_check(
Chain_Control *chain,
Chain_Node *node
)
{
4668a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4668e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46692: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46694: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
ISR_Level level;
bool was_empty;
_ISR_Disable( level );
46698: 40c1 movew %sr,%d1 <== NOT EXECUTED
4669a: 8081 orl %d1,%d0 <== NOT EXECUTED
4669c: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4669e: 2008 movel %a0,%d0 <== NOT EXECUTED
466a0: 5880 addql #4,%d0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
466a2: b090 cmpl %a0@,%d0 <== NOT EXECUTED
466a4: 57c0 seq %d0 <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
466a6: 2450 moveal %a0@,%a2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
466a8: 4480 negl %d0 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
466aa: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
466ae: 2089 movel %a1,%a0@ <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
466b0: 2549 0004 movel %a1,%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;
466b4: 228a movel %a2,%a1@ <== NOT EXECUTED
was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
466b6: 46c1 movew %d1,%sr <== NOT EXECUTED
return was_empty;
}
466b8: 245f moveal %sp@+,%a2 <== NOT EXECUTED
466ba: 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 debc moveal 5debc <_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 010a moveal %a2@(266),%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 e26a movel %d2,5e26a <_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 daee pea 5daee <_Watchdog_Ticks_chain>
4514a: 4eb9 0004 849c jsr 4849c <_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 7d5c jsr 47d5c <_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 e26a movel 5e26a <_Event_Sync_state>,%d0
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
45174: 42b9 0005 e26a clrl 5e26a <_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 6fec jmp 46fec <_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 010a moveal %a2@(266),%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 deb8 tstl 5deb8 <_Per_CPU_Information+0x8>
45234: 674a beqs 45280 <_Event_Surrender+0x84> <== ALWAYS TAKEN
45236: b5f9 0005 debc cmpal 5debc <_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 e26a moveal 5e26a <_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 e26a moveal 5e26a <_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 e26a movel %d0,5e26a <_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 717c lea 4717c <_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 85b8 jsr 485b8 <_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 7548 jsr 47548 <_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 debc cmpl 5debc <_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 e26a movel 5e26a <_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 e26a movel %d1,5e26a <_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 717c jsr 4717c <_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 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4536c: 5380 subql #1,%d0 <== NOT EXECUTED
4536e: 23c0 0005 da2c movel %d0,5da2c <_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
0004aae4 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
4aae4: 4e56 ffbc linkw %fp,#-68
4aae8: 202e 000c movel %fp@(12),%d0
4aaec: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@
4aaf0: 246e 0008 moveal %fp@(8),%a2
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
4aaf4: 2e00 movel %d0,%d7
4aaf6: 5887 addql #4,%d7
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
4aaf8: 222e 0010 movel %fp@(16),%d1
4aafc: 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;
4ab00: 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 ) {
4ab04: b087 cmpl %d7,%d0
4ab06: 6200 014e bhiw 4ac56 <_Heap_Allocate_aligned_with_boundary+0x172>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
4ab0a: 4a85 tstl %d5
4ab0c: 670c beqs 4ab1a <_Heap_Allocate_aligned_with_boundary+0x36><== ALWAYS TAKEN
if ( boundary < alloc_size ) {
4ab0e: b085 cmpl %d5,%d0 <== NOT EXECUTED
4ab10: 6200 0144 bhiw 4ac56 <_Heap_Allocate_aligned_with_boundary+0x172><== NOT EXECUTED
return NULL;
}
if ( alignment == 0 ) {
4ab14: 4a81 tstl %d1 <== NOT EXECUTED
4ab16: 6602 bnes 4ab1a <_Heap_Allocate_aligned_with_boundary+0x36><== NOT EXECUTED
alignment = page_size;
4ab18: 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
4ab1a: 2406 movel %d6,%d2
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
4ab1c: 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
4ab1e: 5e82 addql #7,%d2
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
4ab20: 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 ) {
4ab22: 4283 clrl %d3
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
4ab24: 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
4ab28: 2d42 fff8 movel %d2,%fp@(-8)
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
4ab2c: 2d44 fff4 movel %d4,%fp@(-12)
4ab30: 2d47 ffe4 movel %d7,%fp@(-28)
4ab34: 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 ) {
4ab38: 6000 00ea braw 4ac24 <_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 ) {
4ab3c: 2428 0004 movel %a0@(4),%d2
4ab40: b4ae ffe4 cmpl %fp@(-28),%d2
4ab44: 6300 00d2 blsw 4ac18 <_Heap_Allocate_aligned_with_boundary+0x134>
4ab48: 43e8 0008 lea %a0@(8),%a1
if ( alignment == 0 ) {
4ab4c: 4a81 tstl %d1
4ab4e: 6606 bnes 4ab56 <_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;
4ab50: 2409 movel %a1,%d2
4ab52: 6000 00c6 braw 4ac1a <_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;
4ab56: 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;
4ab58: 266a 0014 moveal %a2@(20),%a3
4ab5c: 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;
4ab5e: 282e fff8 movel %fp@(-8),%d4
4ab62: 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;
4ab64: 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
4ab66: 2c04 movel %d4,%d6
4ab68: 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;
4ab6a: d4ae fff4 addl %fp@(-12),%d2
4ab6e: 2d42 fffc movel %d2,%fp@(-4)
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4ab72: 4c41 2007 remul %d1,%d7,%d2
4ab76: 242e fffc movel %fp@(-4),%d2
4ab7a: 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 ) {
4ab7c: bc82 cmpl %d2,%d6
4ab7e: 640a bccs 4ab8a <_Heap_Allocate_aligned_with_boundary+0xa6><== ALWAYS TAKEN
4ab80: 2806 movel %d6,%d4 <== NOT EXECUTED
4ab82: 4c41 4002 remul %d1,%d2,%d4 <== NOT EXECUTED
4ab86: 9c82 subl %d2,%d6 <== NOT EXECUTED
4ab88: 2406 movel %d6,%d2 <== NOT EXECUTED
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
4ab8a: 4a85 tstl %d5
4ab8c: 675c beqs 4abea <_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;
4ab8e: 2c02 movel %d2,%d6 <== NOT EXECUTED
4ab90: dc80 addl %d0,%d6 <== NOT EXECUTED
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
4ab92: 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;
4ab96: 2d46 fff0 movel %d6,%fp@(-16) <== NOT EXECUTED
4ab9a: 2a6e fff0 moveal %fp@(-16),%a5 <== NOT EXECUTED
4ab9e: 4c45 6004 remul %d5,%d4,%d6 <== NOT EXECUTED
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
4aba2: 2d4c fffc movel %a4,%fp@(-4) <== NOT EXECUTED
4aba6: 2e2e ffe4 movel %fp@(-28),%d7 <== NOT EXECUTED
4abaa: 9bc4 subal %d4,%a5 <== NOT EXECUTED
4abac: 284d moveal %a5,%a4 <== NOT EXECUTED
4abae: 2d43 ffe8 movel %d3,%fp@(-24) <== NOT EXECUTED
4abb2: 282e fff0 movel %fp@(-16),%d4 <== NOT EXECUTED
4abb6: 6022 bras 4abda <_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 ) {
4abb8: b9ee fffc cmpal %fp@(-4),%a4 <== NOT EXECUTED
4abbc: 6552 bcss 4ac10 <_Heap_Allocate_aligned_with_boundary+0x12c><== NOT EXECUTED
return 0;
}
alloc_begin = boundary_line - alloc_size;
4abbe: 240c movel %a4,%d2 <== NOT EXECUTED
4abc0: 9480 subl %d0,%d2 <== NOT EXECUTED
4abc2: 2802 movel %d2,%d4 <== NOT EXECUTED
4abc4: 4c41 4003 remul %d1,%d3,%d4 <== NOT EXECUTED
4abc8: 9483 subl %d3,%d2 <== NOT EXECUTED
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
4abca: 2802 movel %d2,%d4 <== NOT EXECUTED
4abcc: d880 addl %d0,%d4 <== NOT EXECUTED
4abce: 2c04 movel %d4,%d6 <== NOT EXECUTED
4abd0: 2a44 moveal %d4,%a5 <== NOT EXECUTED
4abd2: 4c45 6003 remul %d5,%d3,%d6 <== NOT EXECUTED
4abd6: 9bc3 subal %d3,%a5 <== NOT EXECUTED
4abd8: 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 ) {
4abda: b9c2 cmpal %d2,%a4 <== NOT EXECUTED
4abdc: 6304 blss 4abe2 <_Heap_Allocate_aligned_with_boundary+0xfe><== NOT EXECUTED
4abde: b88c cmpl %a4,%d4 <== NOT EXECUTED
4abe0: 62d6 bhis 4abb8 <_Heap_Allocate_aligned_with_boundary+0xd4><== NOT EXECUTED
4abe2: 262e ffe8 movel %fp@(-24),%d3 <== NOT EXECUTED
4abe6: 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 ) {
4abea: b3c2 cmpal %d2,%a1
4abec: 622a bhis 4ac18 <_Heap_Allocate_aligned_with_boundary+0x134><== NEVER TAKEN
4abee: 2c2e ffec movel %fp@(-20),%d6
4abf2: 2802 movel %d2,%d4
4abf4: 327c fff8 moveaw #-8,%a1
4abf8: 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);
4abfa: d3c2 addal %d2,%a1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4abfc: 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;
4ac00: 93c7 subal %d7,%a1
if ( free_size >= min_block_size || free_size == 0 ) {
4ac02: b7c9 cmpal %a1,%a3
4ac04: 6314 blss 4ac1a <_Heap_Allocate_aligned_with_boundary+0x136><== ALWAYS TAKEN
return alloc_begin;
}
}
return 0;
4ac06: 4a89 tstl %a1 <== NOT EXECUTED
4ac08: 57c4 seq %d4 <== NOT EXECUTED
4ac0a: 49c4 extbl %d4 <== NOT EXECUTED
4ac0c: c484 andl %d4,%d2 <== NOT EXECUTED
4ac0e: 600a bras 4ac1a <_Heap_Allocate_aligned_with_boundary+0x136><== NOT EXECUTED
4ac10: 262e ffe8 movel %fp@(-24),%d3 <== NOT EXECUTED
4ac14: 2d47 ffe4 movel %d7,%fp@(-28) <== NOT EXECUTED
4ac18: 4282 clrl %d2
);
}
}
/* Statistics */
++search_count;
4ac1a: 5283 addql #1,%d3
if ( alloc_begin != 0 ) {
4ac1c: 4a82 tstl %d2
4ac1e: 660e bnes 4ac2e <_Heap_Allocate_aligned_with_boundary+0x14a>
break;
}
block = block->next;
4ac20: 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 ) {
4ac24: b5c8 cmpal %a0,%a2
4ac26: 6600 ff14 bnew 4ab3c <_Heap_Allocate_aligned_with_boundary+0x58>
4ac2a: 4282 clrl %d2
4ac2c: 601a bras 4ac48 <_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;
4ac2e: 52aa 0048 addql #1,%a2@(72)
stats->searches += search_count;
4ac32: d7aa 004c addl %d3,%a2@(76)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4ac36: 2f00 movel %d0,%sp@-
4ac38: 2f02 movel %d2,%sp@-
4ac3a: 2f08 movel %a0,%sp@-
4ac3c: 2f0a movel %a2,%sp@-
4ac3e: 4eb9 0004 66c2 jsr 466c2 <_Heap_Block_allocate>
4ac44: 4fef 0010 lea %sp@(16),%sp
boundary
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
4ac48: b6aa 0044 cmpl %a2@(68),%d3
4ac4c: 6304 blss 4ac52 <_Heap_Allocate_aligned_with_boundary+0x16e>
stats->max_search = search_count;
4ac4e: 2543 0044 movel %d3,%a2@(68)
}
return (void *) alloc_begin;
4ac52: 2002 movel %d2,%d0
4ac54: 6002 bras 4ac58 <_Heap_Allocate_aligned_with_boundary+0x174>
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
4ac56: 4280 clrl %d0 <== NOT EXECUTED
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
4ac58: 4cee 3cfc ffbc moveml %fp@(-68),%d2-%d7/%a2-%a5
4ac5e: 4e5e unlk %fp
...
000466c2 <_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;
466c2: 70fe moveq #-2,%d0
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
466c4: 4e56 ffe0 linkw %fp,#-32
466c8: 222e 0010 movel %fp@(16),%d1
466cc: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@
466d0: 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;
466d4: 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;
466d6: 2841 moveal %d1,%a4
466d8: 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;
466da: 260c movel %a4,%d3
466dc: 968a subl %a2,%d3
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
466de: 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;
466e2: c082 andl %d2,%d0
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
466e4: 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);
466e8: 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;
466ec: c8ad 0004 andl %a5@(4),%d4
466f0: 2a2e 0014 movel %fp@(20),%d5
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
466f4: 4a84 tstl %d4
466f6: 6620 bnes 46718 <_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;
466f8: 282a 0008 movel %a2@(8),%d4
Heap_Block *prev = block->prev;
prev->next = next;
next->prev = prev;
466fc: 2244 moveal %d4,%a1
free_list_anchor = block->prev;
466fe: 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;
46702: 2144 0008 movel %d4,%a0@(8)
next->prev = prev;
46706: 2348 000c movel %a0,%a1@(12)
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
4670a: 53ab 0038 subql #1,%a3@(56)
++stats->used_blocks;
4670e: 52ab 0040 addql #1,%a3@(64)
stats->free_size -= _Heap_Block_size( block );
46712: 91ab 0030 subl %d0,%a3@(48)
46716: 6002 bras 4671a <_Heap_Block_allocate+0x58>
} else {
free_list_anchor = _Heap_Free_list_head( heap );
46718: 204b moveal %a3,%a0 <== NOT EXECUTED
}
if ( alloc_area_offset < heap->page_size ) {
4671a: 202b 0010 movel %a3@(16),%d0
4671e: b083 cmpl %d3,%d0
46720: 6316 blss 46738 <_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 );
46722: 2243 moveal %d3,%a1
46724: 4871 5800 pea %a1@(00000000,%d5:l)
46728: 2f08 movel %a0,%sp@-
4672a: 2f0a movel %a2,%sp@-
4672c: 2f0b movel %a3,%sp@-
4672e: 4eba fd5c jsr %pc@(4648c <_Heap_Block_split>)
46732: 4fef 0010 lea %sp@(16),%sp
46736: 605e bras 46796 <_Heap_Block_allocate+0xd4>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
46738: 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;
4673c: 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);
4673e: 99c3 subal %d3,%a4
block_end = new_block_begin;
block_size = block_end - block_begin;
46740: 200c movel %a4,%d0
46742: 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;
46744: 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;
46748: 928c subl %a4,%d1
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
if ( _Heap_Is_prev_used( block ) ) {
4674a: 0802 0000 btst #0,%d2
4674e: 671c beqs 4676c <_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;
46750: 2a68 0008 moveal %a0@(8),%a5
new_block->next = next;
new_block->prev = block_before;
46754: 2548 000c movel %a0,%a2@(12)
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
46758: 254d 0008 movel %a5,%a2@(8)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
4675c: 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;
46760: 214a 0008 movel %a2,%a0@(8)
_Heap_Free_list_insert_after( free_list_anchor, block );
free_list_anchor = block;
/* Statistics */
++stats->free_blocks;
46764: 52ab 0038 addql #1,%a3@(56)
46768: 204a moveal %a2,%a0
4676a: 600a bras 46776 <_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);
4676c: 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;
4676e: 74fe moveq #-2,%d2 <== NOT EXECUTED
46770: c4aa 0004 andl %a2@(4),%d2 <== NOT EXECUTED
Heap_Block *const prev_block = _Heap_Prev_block( block );
uintptr_t const prev_block_size = _Heap_Block_size( prev_block );
block = prev_block;
block_begin = (uintptr_t) block;
block_size += prev_block_size;
46774: d082 addl %d2,%d0 <== NOT EXECUTED
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
46776: 7401 moveq #1,%d2
46778: 8480 orl %d0,%d2
new_block->prev_size = block_size;
4677a: 2880 movel %d0,%a4@
block = prev_block;
block_begin = (uintptr_t) block;
block_size += prev_block_size;
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
4677c: 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 );
46780: 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;
46782: 2941 0004 movel %d1,%a4@(4)
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
46786: 2f05 movel %d5,%sp@-
46788: 2f08 movel %a0,%sp@-
4678a: 2f0c movel %a4,%sp@-
4678c: 2f0b movel %a3,%sp@-
4678e: 4eba fcfc jsr %pc@(4648c <_Heap_Block_split>)
46792: 4fef 0010 lea %sp@(16),%sp
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
46796: 202b 0030 movel %a3@(48),%d0
4679a: b0ab 0034 cmpl %a3@(52),%d0
4679e: 6404 bccs 467a4 <_Heap_Block_allocate+0xe2> <== NEVER TAKEN
stats->min_free_size = stats->free_size;
467a0: 2740 0034 movel %d0,%a3@(52)
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
467a4: 200a movel %a2,%d0
467a6: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5
467ac: 4e5e unlk %fp <== NOT EXECUTED
0004648c <_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;
4648c: 70fe moveq #-2,%d0
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
4648e: 4e56 ffe0 linkw %fp,#-32
46492: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@
46496: 246e 0008 moveal %fp@(8),%a2
4649a: 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;
4649e: 282a 0014 movel %a2@(20),%d4
uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE;
464a2: 2044 moveal %d4,%a0
464a4: 5188 subql #8,%a0
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
464a6: 262b 0004 movel %a3@(4),%d3
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
464aa: 286e 0010 moveal %fp@(16),%a4
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
464ae: 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;
464b2: 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;
464b6: 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;
464b8: b1c2 cmpal %d2,%a0
464ba: 6302 blss 464be <_Heap_Block_split+0x32>
464bc: 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 =
464be: 5082 addql #8,%d2
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
464c0: 2c02 movel %d2,%d6
464c2: 4c41 6005 remul %d1,%d5,%d6
if ( remainder != 0 ) {
464c6: 4a85 tstl %d5
464c8: 6706 beqs 464d0 <_Heap_Block_split+0x44>
return value - remainder + alignment;
464ca: d282 addl %d2,%d1
464cc: 9285 subl %d5,%d1
464ce: 6002 bras 464d2 <_Heap_Block_split+0x46>
} else {
return value;
464d0: 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;
464d2: 2240 moveal %d0,%a1
464d4: 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);
464d6: 41f3 0800 lea %a3@(00000000,%d0:l),%a0
464da: 93c2 subal %d2,%a1
uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS;
464dc: 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 ) {
464de: b889 cmpl %a1,%d4
464e0: 626a bhis 4654c <_Heap_Block_split+0xc0> <== NEVER TAKEN
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;
464e2: 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);
464e4: 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;
464e8: 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;
464ea: c682 andl %d2,%d3
block->size_and_flag = size | flag;
464ec: 8283 orl %d3,%d1
464ee: 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;
464f2: 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;
464f4: d1aa 0030 addl %d0,%a2@(48)
464f8: 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;
464fc: c4b0 1804 andl %a0@(00000004,%d1:l),%d2
if ( _Heap_Is_used( next_block ) ) {
46500: 671a beqs 4651c <_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;
46502: 266c 0008 moveal %a4@(8),%a3
new_block->next = next;
new_block->prev = block_before;
46506: 234c 000c movel %a4,%a1@(12)
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
4650a: 234b 0008 movel %a3,%a1@(8)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
4650e: 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;
46512: 2949 0008 movel %a1,%a4@(8)
_Heap_Free_list_insert_after( free_list_anchor, free_block );
/* Statistics */
++stats->free_blocks;
46516: 52aa 0038 addql #1,%a2@(56)
4651a: 601e bras 4653a <_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;
4651c: 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;
46520: d081 addl %d1,%d0 <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
46522: 2068 000c moveal %a0@(12),%a0 <== NOT EXECUTED
new_block->next = next;
46526: 234a 0008 movel %a2,%a1@(8) <== NOT EXECUTED
new_block->prev = prev;
4652a: 2348 000c movel %a0,%a1@(12) <== NOT EXECUTED
next->prev = new_block;
prev->next = new_block;
4652e: 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);
46532: 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;
46536: 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;
4653a: 7201 moveq #1,%d1
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4653c: 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;
4653e: 8280 orl %d0,%d1
next_block->prev_size = free_block_size;
46540: 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;
46542: 2341 0004 movel %d1,%a1@(4)
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
46546: c5a8 0004 andl %d2,%a0@(4)
4654a: 6006 bras 46552 <_Heap_Block_split+0xc6>
_Heap_Protection_block_initialize( heap, free_block );
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
4654c: 7001 moveq #1,%d0
4654e: 81a8 0004 orl %d0,%a0@(4)
}
}
46552: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4
46556: 4e5e unlk %fp <== NOT EXECUTED
0004af60 <_Heap_Extend>:
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t *extended_size_ptr
)
{
4af60: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED
4af64: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
4af68: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
4af6c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4af70: 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;
4af74: 2403 movel %d3,%d2 <== NOT EXECUTED
4af76: d480 addl %d0,%d2 <== NOT EXECUTED
uintptr_t const free_size = stats->free_size;
4af78: 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;
4af7c: 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;
4af80: 2a2a 0010 movel %a2@(16),%d5 <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
4af84: 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;
4af88: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED
Heap_Block *extend_last_block = NULL;
4af8c: 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;
4af90: 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 ) {
4af94: b682 cmpl %d2,%d3 <== NOT EXECUTED
4af96: 6200 01aa bhiw 4b142 <_Heap_Extend+0x1e2> <== NOT EXECUTED
return false;
}
extend_area_ok = _Heap_Get_first_and_last_block(
4af9a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
4af9e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4afa2: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4afa4: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4afa6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4afa8: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4afaa: 4eb9 0004 686e jsr 4686e <_Heap_Get_first_and_last_block> <== NOT EXECUTED
page_size,
min_block_size,
&extend_first_block,
&extend_last_block
);
if (!extend_area_ok ) {
4afb0: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
4afb4: 4a00 tstb %d0 <== NOT EXECUTED
4afb6: 6700 018a beqw 4b142 <_Heap_Extend+0x1e2> <== NOT EXECUTED
4afba: 2044 moveal %d4,%a0 <== NOT EXECUTED
4afbc: 9bcd subal %a5,%a5 <== NOT EXECUTED
4afbe: 4281 clrl %d1 <== NOT EXECUTED
4afc0: 97cb subal %a3,%a3 <== NOT EXECUTED
4afc2: 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;
4afc4: b888 cmpl %a0,%d4 <== NOT EXECUTED
4afc6: 6704 beqs 4afcc <_Heap_Extend+0x6c> <== NOT EXECUTED
4afc8: 2248 moveal %a0,%a1 <== NOT EXECUTED
4afca: 6004 bras 4afd0 <_Heap_Extend+0x70> <== NOT EXECUTED
4afcc: 226a 0018 moveal %a2@(24),%a1 <== NOT EXECUTED
uintptr_t const sub_area_end = start_block->prev_size;
4afd0: 2010 movel %a0@,%d0 <== NOT EXECUTED
Heap_Block *const end_block =
_Heap_Block_of_alloc_area( sub_area_end, page_size );
if (
4afd2: b680 cmpl %d0,%d3 <== NOT EXECUTED
4afd4: 6406 bccs 4afdc <_Heap_Extend+0x7c> <== NOT EXECUTED
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
4afd6: b3c2 cmpal %d2,%a1 <== NOT EXECUTED
4afd8: 6500 0168 bcsw 4b142 <_Heap_Extend+0x1e2> <== NOT EXECUTED
) {
return false;
}
if ( extend_area_end == sub_area_begin ) {
4afdc: b3c2 cmpal %d2,%a1 <== NOT EXECUTED
4afde: 6706 beqs 4afe6 <_Heap_Extend+0x86> <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
4afe0: b082 cmpl %d2,%d0 <== NOT EXECUTED
4afe2: 6206 bhis 4afea <_Heap_Extend+0x8a> <== NOT EXECUTED
4afe4: 6006 bras 4afec <_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 ) {
4afe6: 2848 moveal %a0,%a4 <== NOT EXECUTED
4afe8: 6002 bras 4afec <_Heap_Extend+0x8c> <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
4afea: 2208 movel %a0,%d1 <== NOT EXECUTED
4afec: 2e00 movel %d0,%d7 <== NOT EXECUTED
4afee: 2240 moveal %d0,%a1 <== NOT EXECUTED
4aff0: 5189 subql #8,%a1 <== NOT EXECUTED
4aff2: 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);
4aff6: 93c6 subal %d6,%a1 <== NOT EXECUTED
link_below_block = start_block;
}
if ( sub_area_end == extend_area_begin ) {
4aff8: b680 cmpl %d0,%d3 <== NOT EXECUTED
4affa: 6606 bnes 4b002 <_Heap_Extend+0xa2> <== NOT EXECUTED
start_block->prev_size = extend_area_end;
4affc: 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 )
4affe: 2649 moveal %a1,%a3 <== NOT EXECUTED
4b000: 6006 bras 4b008 <_Heap_Extend+0xa8> <== NOT EXECUTED
merge_above_block = end_block;
} else if ( sub_area_end < extend_area_begin ) {
4b002: b680 cmpl %d0,%d3 <== NOT EXECUTED
4b004: 6302 blss 4b008 <_Heap_Extend+0xa8> <== NOT EXECUTED
4b006: 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;
4b008: 70fe moveq #-2,%d0 <== NOT EXECUTED
4b00a: 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);
4b00e: 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 );
4b012: b888 cmpl %a0,%d4 <== NOT EXECUTED
4b014: 66ae bnes 4afc4 <_Heap_Extend+0x64> <== NOT EXECUTED
if ( extend_area_begin < heap->area_begin ) {
4b016: b6aa 0018 cmpl %a2@(24),%d3 <== NOT EXECUTED
4b01a: 6406 bccs 4b022 <_Heap_Extend+0xc2> <== NOT EXECUTED
heap->area_begin = extend_area_begin;
4b01c: 2543 0018 movel %d3,%a2@(24) <== NOT EXECUTED
4b020: 600a bras 4b02c <_Heap_Extend+0xcc> <== NOT EXECUTED
} else if ( heap->area_end < extend_area_end ) {
4b022: b4aa 001c cmpl %a2@(28),%d2 <== NOT EXECUTED
4b026: 6304 blss 4b02c <_Heap_Extend+0xcc> <== NOT EXECUTED
heap->area_end = extend_area_end;
4b028: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
4b02c: 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 =
4b030: 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;
4b032: 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;
4b034: 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 =
4b038: 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;
4b03a: 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;
4b03c: 2282 movel %d2,%a1@ <== NOT EXECUTED
extend_first_block->size_and_flag =
extend_first_block_size | HEAP_PREV_BLOCK_USED;
4b03e: 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;
4b042: 2080 movel %d0,%a0@ <== NOT EXECUTED
extend_last_block->size_and_flag = 0;
4b044: 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 ) {
4b048: b3ea 0020 cmpal %a2@(32),%a1 <== NOT EXECUTED
4b04c: 6406 bccs 4b054 <_Heap_Extend+0xf4> <== NOT EXECUTED
heap->first_block = extend_first_block;
4b04e: 2549 0020 movel %a1,%a2@(32) <== NOT EXECUTED
4b052: 600a bras 4b05e <_Heap_Extend+0xfe> <== NOT EXECUTED
} else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
4b054: b1ea 0024 cmpal %a2@(36),%a0 <== NOT EXECUTED
4b058: 6304 blss 4b05e <_Heap_Extend+0xfe> <== NOT EXECUTED
heap->last_block = extend_last_block;
4b05a: 2548 0024 movel %a0,%a2@(36) <== NOT EXECUTED
}
if ( merge_below_block != NULL ) {
4b05e: 4a8c tstl %a4 <== NOT EXECUTED
4b060: 6732 beqs 4b094 <_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;
4b062: 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 );
4b066: 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;
4b068: 2803 movel %d3,%d4 <== NOT EXECUTED
4b06a: 4c40 4001 remul %d0,%d1,%d4 <== NOT EXECUTED
if ( remainder != 0 ) {
4b06e: 4a81 tstl %d1 <== NOT EXECUTED
4b070: 6704 beqs 4b076 <_Heap_Extend+0x116> <== NOT EXECUTED
return value - remainder + alignment;
4b072: d680 addl %d0,%d3 <== NOT EXECUTED
4b074: 9681 subl %d1,%d3 <== NOT EXECUTED
uintptr_t const new_first_block_begin =
4b076: 2043 moveal %d3,%a0 <== NOT EXECUTED
4b078: 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 =
4b07a: 200c movel %a4,%d0 <== NOT EXECUTED
4b07c: 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;
4b07e: 7201 moveq #1,%d1 <== NOT EXECUTED
4b080: 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;
4b082: 2094 movel %a4@,%a0@ <== NOT EXECUTED
new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
4b084: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
_Heap_Free_block( heap, new_first_block );
4b088: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4b08a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b08c: 4eba feb6 jsr %pc@(4af44 <_Heap_Free_block>) <== NOT EXECUTED
4b090: 508f addql #8,%sp <== NOT EXECUTED
4b092: 6012 bras 4b0a6 <_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 ) {
4b094: 4a81 tstl %d1 <== NOT EXECUTED
4b096: 670e beqs 4b0a6 <_Heap_Extend+0x146> <== NOT EXECUTED
_Heap_Link_below(
4b098: 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;
4b09c: 7801 moveq #1,%d4 <== NOT EXECUTED
4b09e: 9288 subl %a0,%d1 <== NOT EXECUTED
4b0a0: 8881 orl %d1,%d4 <== NOT EXECUTED
4b0a2: 2144 0004 movel %d4,%a0@(4) <== NOT EXECUTED
link_below_block,
extend_last_block
);
}
if ( merge_above_block != NULL ) {
4b0a6: 4a8b tstl %a3 <== NOT EXECUTED
4b0a8: 6734 beqs 4b0de <_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,
4b0aa: 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(
4b0ac: 948b subl %a3,%d2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
4b0ae: 2202 movel %d2,%d1 <== NOT EXECUTED
4b0b0: 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;
4b0b6: 7201 moveq #1,%d1 <== NOT EXECUTED
4b0b8: 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)
4b0ba: 202b 0004 movel %a3@(4),%d0 <== NOT EXECUTED
4b0be: 9082 subl %d2,%d0 <== NOT EXECUTED
| HEAP_PREV_BLOCK_USED;
4b0c0: 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;
4b0c2: 7001 moveq #1,%d0 <== NOT EXECUTED
4b0c4: 2781 2804 movel %d1,%a3@(00000004,%d2:l) <== NOT EXECUTED
4b0c8: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED
block->size_and_flag = size | flag;
4b0cc: 8480 orl %d0,%d2 <== NOT EXECUTED
4b0ce: 2742 0004 movel %d2,%a3@(4) <== NOT EXECUTED
_Heap_Block_set_size( last_block, last_block_new_size );
_Heap_Free_block( heap, last_block );
4b0d2: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4b0d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b0d6: 4eba fe6c jsr %pc@(4af44 <_Heap_Free_block>) <== NOT EXECUTED
4b0da: 508f addql #8,%sp <== NOT EXECUTED
4b0dc: 6020 bras 4b0fe <_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 ) {
4b0de: 4a8d tstl %a5 <== NOT EXECUTED
4b0e0: 671c beqs 4b0fe <_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;
4b0e2: 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;
4b0e4: 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 );
4b0e6: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
4b0ea: 928d subl %a5,%d1 <== NOT EXECUTED
4b0ec: 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(
4b0f0: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED
block->size_and_flag = size | flag;
4b0f4: 8280 orl %d0,%d1 <== NOT EXECUTED
4b0f6: 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;
4b0fa: 89a8 0004 orl %d4,%a0@(4) <== NOT EXECUTED
extend_first_block,
extend_last_block
);
}
if ( merge_below_block == NULL && merge_above_block == NULL ) {
4b0fe: 4a8c tstl %a4 <== NOT EXECUTED
4b100: 6610 bnes 4b112 <_Heap_Extend+0x1b2> <== NOT EXECUTED
4b102: 4a8b tstl %a3 <== NOT EXECUTED
4b104: 660c bnes 4b112 <_Heap_Extend+0x1b2> <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
4b106: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
4b10a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b10c: 4eba fe36 jsr %pc@(4af44 <_Heap_Free_block>) <== NOT EXECUTED
4b110: 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
4b112: 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;
4b116: 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(
4b118: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED
4b11c: 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;
4b11e: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
block->size_and_flag = size | flag;
4b122: 8280 orl %d0,%d1 <== NOT EXECUTED
}
_Heap_Set_last_block_size( heap );
extended_size = stats->free_size - free_size;
4b124: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED
4b128: 90ae fff4 subl %fp@(-12),%d0 <== NOT EXECUTED
4b12c: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
4b130: d1aa 002c addl %d0,%a2@(44) <== NOT EXECUTED
if ( extended_size_ptr != NULL )
4b134: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED
4b138: 670c beqs 4b146 <_Heap_Extend+0x1e6> <== NOT EXECUTED
*extended_size_ptr = extended_size;
4b13a: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED
4b13e: 2080 movel %d0,%a0@ <== NOT EXECUTED
4b140: 6004 bras 4b146 <_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;
4b142: 4200 clrb %d0 <== NOT EXECUTED
4b144: 6002 bras 4b148 <_Heap_Extend+0x1e8> <== NOT EXECUTED
stats->size += extended_size;
if ( extended_size_ptr != NULL )
*extended_size_ptr = extended_size;
return true;
4b146: 7001 moveq #1,%d0 <== NOT EXECUTED
}
4b148: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED
4b14e: 4e5e unlk %fp <== NOT EXECUTED
...
0004ac64 <_Heap_Free>:
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
4ac64: 4e56 ffe8 linkw %fp,#-24
4ac68: 202e 000c movel %fp@(12),%d0
4ac6c: 2240 moveal %d0,%a1
4ac6e: 5189 subql #8,%a1
4ac70: 206e 0008 moveal %fp@(8),%a0
4ac74: 4c68 0001 0010 remul %a0@(16),%d1,%d0
4ac7a: 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
4ac7e: 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);
4ac82: 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;
4ac84: b889 cmpl %a1,%d4
4ac86: 620c bhis 4ac94 <_Heap_Free+0x30> <== NEVER TAKEN
4ac88: b3e8 0024 cmpal %a0@(36),%a1
4ac8c: 53c0 sls %d0
4ac8e: 49c0 extbl %d0
4ac90: 4480 negl %d0
4ac92: 6002 bras 4ac96 <_Heap_Free+0x32>
4ac94: 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 ) ) {
4ac96: 4a00 tstb %d0
4ac98: 6700 012c beqw 4adc6 <_Heap_Free+0x162>
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
4ac9c: 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;
4aca0: 70fe moveq #-2,%d0
4aca2: 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);
4aca4: 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;
4aca8: b88a cmpl %a2,%d4
4acaa: 620c bhis 4acb8 <_Heap_Free+0x54> <== NEVER TAKEN
4acac: b5e8 0024 cmpal %a0@(36),%a2
4acb0: 53c1 sls %d1
4acb2: 49c1 extbl %d1
4acb4: 4481 negl %d1
4acb6: 6002 bras 4acba <_Heap_Free+0x56>
4acb8: 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 ) ) {
4acba: 4a01 tstb %d1
4acbc: 6700 0108 beqw 4adc6 <_Heap_Free+0x162>
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
4acc0: 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 ) ) {
4acc4: 0802 0000 btst #0,%d2
4acc8: 6700 00fc beqw 4adc6 <_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;
4accc: 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
4acce: 2668 0024 moveal %a0@(36),%a3
4acd2: c481 andl %d1,%d2
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
4acd4: b7ca cmpal %a2,%a3
4acd6: 670c beqs 4ace4 <_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;
4acd8: 7201 moveq #1,%d1
4acda: c2b2 2804 andl %a2@(00000004,%d2:l),%d1
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
4acde: 5381 subql #1,%d1
4ace0: 4481 negl %d1
4ace2: 6002 bras 4ace6 <_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 ));
4ace4: 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
4ace6: 1a01 moveb %d1,%d5
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
4ace8: 0803 0000 btst #0,%d3
4acec: 6662 bnes 4ad50 <_Heap_Free+0xec>
uintptr_t const prev_size = block->prev_size;
4acee: 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);
4acf0: 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;
4acf2: b889 cmpl %a1,%d4
4acf4: 620a bhis 4ad00 <_Heap_Free+0x9c> <== NEVER TAKEN
4acf6: b3cb cmpal %a3,%a1
4acf8: 53c1 sls %d1
4acfa: 49c1 extbl %d1
4acfc: 4481 negl %d1
4acfe: 6002 bras 4ad02 <_Heap_Free+0x9e>
4ad00: 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 ) ) {
4ad02: 4a01 tstb %d1
4ad04: 6700 00c0 beqw 4adc6 <_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;
4ad08: 7201 moveq #1,%d1
4ad0a: 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) ) {
4ad0e: 6700 00b6 beqw 4adc6 <_Heap_Free+0x162>
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
4ad12: 4a05 tstb %d5
4ad14: 6726 beqs 4ad3c <_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;
4ad16: 266a 0008 moveal %a2@(8),%a3 <== NOT EXECUTED
uintptr_t const size = block_size + prev_size + next_block_size;
4ad1a: d480 addl %d0,%d2 <== NOT EXECUTED
4ad1c: 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;
4ad1e: 7401 moveq #1,%d2 <== NOT EXECUTED
Heap_Block *prev = block->prev;
4ad20: 246a 000c moveal %a2@(12),%a2 <== NOT EXECUTED
prev->next = next;
4ad24: 254b 0008 movel %a3,%a2@(8) <== NOT EXECUTED
4ad28: 8483 orl %d3,%d2 <== NOT EXECUTED
next->prev = prev;
4ad2a: 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;
4ad2e: 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;
4ad32: 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;
4ad36: 2342 0004 movel %d2,%a1@(4) <== NOT EXECUTED
4ad3a: 607a bras 4adb6 <_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;
4ad3c: d680 addl %d0,%d3
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4ad3e: 7201 moveq #1,%d1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4ad40: 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;
4ad42: 8283 orl %d3,%d1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = size;
4ad44: 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;
4ad46: 2341 0004 movel %d1,%a1@(4)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4ad4a: c5aa 0004 andl %d2,%a2@(4)
4ad4e: 6066 bras 4adb6 <_Heap_Free+0x152>
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
4ad50: 4a01 tstb %d1
4ad52: 672a beqs 4ad7e <_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;
4ad54: 266a 0008 moveal %a2@(8),%a3
uintptr_t const size = block_size + next_block_size;
4ad58: 2202 movel %d2,%d1
4ad5a: d280 addl %d0,%d1
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
4ad5c: 7401 moveq #1,%d2
Heap_Block *prev = old_block->prev;
4ad5e: 246a 000c moveal %a2@(12),%a2
new_block->next = next;
4ad62: 234b 0008 movel %a3,%a1@(8)
4ad66: 8481 orl %d1,%d2
new_block->prev = prev;
4ad68: 234a 000c movel %a2,%a1@(12)
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
4ad6c: 2381 1800 movel %d1,%a1@(00000000,%d1:l)
next->prev = new_block;
4ad70: 2749 000c movel %a1,%a3@(12)
prev->next = new_block;
4ad74: 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;
4ad78: 2342 0004 movel %d2,%a1@(4)
4ad7c: 6038 bras 4adb6 <_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;
4ad7e: 7201 moveq #1,%d1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
4ad80: 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;
4ad82: 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;
4ad84: 2668 0008 moveal %a0@(8),%a3
new_block->next = next;
new_block->prev = block_before;
4ad88: 2348 000c movel %a0,%a1@(12)
4ad8c: 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;
4ad90: 2228 0038 movel %a0@(56),%d1
4ad94: 5281 addql #1,%d1
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
4ad96: 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;
4ad9a: c5aa 0004 andl %d2,%a2@(4)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
4ad9e: 2749 000c movel %a1,%a3@(12)
next_block->prev_size = block_size;
4ada2: 2480 movel %d0,%a2@
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
4ada4: 2149 0008 movel %a1,%a0@(8)
/* Statistics */
++stats->free_blocks;
4ada8: 2141 0038 movel %d1,%a0@(56)
if ( stats->max_free_blocks < stats->free_blocks ) {
4adac: b2a8 003c cmpl %a0@(60),%d1
4adb0: 6304 blss 4adb6 <_Heap_Free+0x152> <== NEVER TAKEN
stats->max_free_blocks = stats->free_blocks;
4adb2: 2141 003c movel %d1,%a0@(60)
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
4adb6: d1a8 0030 addl %d0,%a0@(48)
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
4adba: 53a8 0040 subql #1,%a0@(64)
++stats->frees;
4adbe: 52a8 0050 addql #1,%a0@(80)
stats->free_size += block_size;
return( true );
4adc2: 7001 moveq #1,%d0
4adc4: 6002 bras 4adc8 <_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 );
4adc6: 4200 clrb %d0 <== NOT EXECUTED
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
4adc8: 4cd7 0c3c moveml %sp@,%d2-%d5/%a2-%a3
4adcc: 4e5e unlk %fp <== NOT EXECUTED
0004af44 <_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 )
{
4af44: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4af48: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
Heap_Statistics *const stats = &heap->stats;
/* Statistics */
++stats->used_blocks;
4af4c: 52a8 0040 addql #1,%a0@(64) <== NOT EXECUTED
--stats->frees;
4af50: 53a8 0050 subql #1,%a0@(80) <== NOT EXECUTED
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ));
4af54: 50ae 000c addql #8,%fp@(12) <== NOT EXECUTED
}
4af58: 4e5e unlk %fp <== NOT EXECUTED
/* Statistics */
++stats->used_blocks;
--stats->frees;
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ));
4af5a: 4ef9 0004 b154 jmp 4b154 <_Heap_Free> <== NOT EXECUTED
0004655a <_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
)
{
4655a: 4e56 fff4 linkw %fp,#-12
4655e: 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 );
46562: 2008 movel %a0,%d0
46564: 5080 addql #8,%d0
uintptr_t page_size,
uintptr_t min_block_size,
Heap_Block **first_block_ptr,
Heap_Block **last_block_ptr
)
{
46566: 48d7 001c moveml %d2-%d4,%sp@
4656a: 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;
4656e: 2800 movel %d0,%d4
46570: 242e 000c movel %fp@(12),%d2
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
46574: 43f0 2800 lea %a0@(00000000,%d2:l),%a1
46578: 4c41 4003 remul %d1,%d3,%d4
if ( remainder != 0 ) {
4657c: 4a83 tstl %d3
4657e: 6704 beqs 46584 <_Heap_Get_first_and_last_block+0x2a><== ALWAYS TAKEN
return value - remainder + alignment;
46580: d081 addl %d1,%d0 <== NOT EXECUTED
46582: 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 (
46584: b1c9 cmpal %a1,%a0
46586: 622e bhis 465b6 <_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);
46588: 2240 moveal %d0,%a1
4658a: 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 =
4658c: 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
4658e: b082 cmpl %d2,%d0
46590: 6424 bccs 465b6 <_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 );
46592: 9480 subl %d0,%d2
46594: 2002 movel %d2,%d0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
46596: 2602 movel %d2,%d3
46598: 4c41 3002 remul %d1,%d2,%d3
4659c: 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
4659e: b0ae 0014 cmpl %fp@(20),%d0
465a2: 6512 bcss 465b6 <_Heap_Get_first_and_last_block+0x5c><== NEVER TAKEN
) {
/* Invalid area or area too small */
return false;
}
*first_block_ptr = first_block;
465a4: 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);
465a8: d089 addl %a1,%d0
465aa: 2089 movel %a1,%a0@
465ac: 206e 001c moveal %fp@(28),%a0
465b0: 2080 movel %d0,%a0@
*last_block_ptr = last_block;
return true;
465b2: 7001 moveq #1,%d0
465b4: 6002 bras 465b8 <_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;
465b6: 4200 clrb %d0
*first_block_ptr = first_block;
*last_block_ptr = last_block;
return true;
}
465b8: 4cd7 001c moveml %sp@,%d2-%d4
465bc: 4e5e unlk %fp <== NOT EXECUTED
0004f204 <_Heap_Get_free_information>:
void _Heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
4f204: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4f208: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
4f20c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4f20e: 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;
4f212: 4290 clrl %a0@ <== NOT EXECUTED
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
4f214: 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;
4f218: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
info->total = 0;
4f21c: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
for(the_block = _Heap_Free_list_first(the_heap);
4f220: 601a bras 4f23c <_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;
4f222: 70fe moveq #-2,%d0 <== NOT EXECUTED
4f224: 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++;
4f228: 5290 addql #1,%a0@ <== NOT EXECUTED
info->total += the_size;
4f22a: d1a8 0008 addl %d0,%a0@(8) <== NOT EXECUTED
if ( info->largest < the_size )
4f22e: b0a8 0004 cmpl %a0@(4),%d0 <== NOT EXECUTED
4f232: 6304 blss 4f238 <_Heap_Get_free_information+0x34><== NOT EXECUTED
info->largest = the_size;
4f234: 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)
4f238: 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);
4f23c: b5c9 cmpal %a1,%a2 <== NOT EXECUTED
4f23e: 66e2 bnes 4f222 <_Heap_Get_free_information+0x1e><== NOT EXECUTED
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
4f240: 245f moveal %sp@+,%a2 <== NOT EXECUTED
4f242: 4e5e unlk %fp <== NOT EXECUTED
...
000465c0 <_Heap_Initialize>:
Heap_Control *heap,
void *heap_area_begin_ptr,
uintptr_t heap_area_size,
uintptr_t page_size
)
{
465c0: 4e56 ffe4 linkw %fp,#-28
465c4: 48d7 043c moveml %d2-%d5/%a2,%sp@
465c8: 246e 0008 moveal %fp@(8),%a2
465cc: 282e 000c movel %fp@(12),%d4
465d0: 2a2e 0010 movel %fp@(16),%d5
465d4: 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;
465d8: 42ae fffc clrl %fp@(-4)
Heap_Block *last_block = NULL;
465dc: 42ae fff8 clrl %fp@(-8)
if ( page_size == 0 ) {
465e0: 4a82 tstl %d2
465e2: 6714 beqs 465f8 <_Heap_Initialize+0x38> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
465e4: 7003 moveq #3,%d0
465e6: c082 andl %d2,%d0
if ( remainder != 0 ) {
465e8: 6704 beqs 465ee <_Heap_Initialize+0x2e> <== ALWAYS TAKEN
return value - remainder + alignment;
465ea: 5882 addql #4,%d2 <== NOT EXECUTED
465ec: 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 ) {
465ee: 7003 moveq #3,%d0
465f0: b082 cmpl %d2,%d0
465f2: 6506 bcss 465fa <_Heap_Initialize+0x3a> <== ALWAYS TAKEN
465f4: 6000 00c0 braw 466b6 <_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;
465f8: 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;
465fa: 7210 moveq #16,%d1
465fc: 4c42 1000 remul %d2,%d0,%d1
if ( remainder != 0 ) {
46600: 4a80 tstl %d0
46602: 670c beqs 46610 <_Heap_Initialize+0x50> <== ALWAYS TAKEN
return value - remainder + alignment;
46604: 2602 movel %d2,%d3 <== NOT EXECUTED
46606: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED
4660c: 9680 subl %d0,%d3 <== NOT EXECUTED
4660e: 6002 bras 46612 <_Heap_Initialize+0x52> <== NOT EXECUTED
} else {
return value;
46610: 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(
46612: 486e fff8 pea %fp@(-8)
46616: 486e fffc pea %fp@(-4)
4661a: 2f03 movel %d3,%sp@-
4661c: 2f02 movel %d2,%sp@-
4661e: 2f05 movel %d5,%sp@-
46620: 2f04 movel %d4,%sp@-
46622: 4eb9 0004 655a jsr 4655a <_Heap_Get_first_and_last_block>
page_size,
min_block_size,
&first_block,
&last_block
);
if ( !area_ok ) {
46628: 4fef 0018 lea %sp@(24),%sp
4662c: 4a00 tstb %d0
4662e: 6700 0086 beqw 466b6 <_Heap_Initialize+0xf6>
return 0;
}
memset(heap, 0, sizeof(*heap));
46632: 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;
46636: da84 addl %d4,%d5
);
if ( !area_ok ) {
return 0;
}
memset(heap, 0, sizeof(*heap));
46638: 42a7 clrl %sp@-
4663a: 2f0a movel %a2,%sp@-
4663c: 4eb9 0004 d1a8 jsr 4d1a8 <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;
46642: 226e fff8 moveal %fp@(-8),%a1
first_block_size = last_block_begin - first_block_begin;
46646: 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;
46648: 7201 moveq #1,%d1
);
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
4664a: 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;
4664e: 206e fffc moveal %fp@(-4),%a0
last_block_begin = (uintptr_t) last_block;
first_block_size = last_block_begin - first_block_begin;
46652: 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;
46654: 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;
46656: 2085 movel %d5,%a0@
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
46658: 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;
4665c: 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 );
4665e: 214a 0008 movel %a2,%a0@(8)
first_block->prev = _Heap_Free_list_head( heap );
46662: 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;
46666: 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;
4666a: 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;
4666e: 2542 0010 movel %d2,%a2@(16)
heap->min_block_size = min_block_size;
46672: 2543 0014 movel %d3,%a2@(20)
heap->area_begin = heap_area_begin;
46676: 2544 0018 movel %d4,%a2@(24)
heap->area_end = heap_area_end;
4667a: 2545 001c movel %d5,%a2@(28)
heap->first_block = first_block;
heap->last_block = last_block;
4667e: 2549 0024 movel %a1,%a2@(36)
_Heap_Free_list_head( heap )->next = first_block;
_Heap_Free_list_tail( heap )->prev = first_block;
46682: 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(
46686: 91c9 subal %a1,%a0
/* Last block */
last_block->prev_size = first_block_size;
46688: 2280 movel %d0,%a1@
4668a: 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;
4668e: 2541 0038 movel %d1,%a2@(56)
stats->max_free_blocks = 1;
46692: 2541 003c movel %d1,%a2@(60)
stats->instance = instance++;
46696: 2239 0005 d1dc movel 5d1dc <instance>,%d1
4669c: 2541 0028 movel %d1,%a2@(40)
466a0: 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;
466a2: 2540 002c movel %d0,%a2@(44)
stats->free_size = first_block_size;
466a6: 2540 0030 movel %d0,%a2@(48)
stats->min_free_size = first_block_size;
466aa: 2540 0034 movel %d0,%a2@(52)
stats->free_blocks = 1;
stats->max_free_blocks = 1;
stats->instance = instance++;
466ae: 23c1 0005 d1dc movel %d1,5d1dc <instance>
);
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
466b4: 6002 bras 466b8 <_Heap_Initialize+0xf8>
min_block_size,
&first_block,
&last_block
);
if ( !area_ok ) {
return 0;
466b6: 4280 clrl %d0
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
}
466b8: 4cee 043c ffe4 moveml %fp@(-28),%d2-%d5/%a2
466be: 4e5e unlk %fp <== NOT EXECUTED
0005a448 <_Heap_Resize_block>:
void *alloc_begin_ptr,
uintptr_t new_alloc_size,
uintptr_t *old_size,
uintptr_t *new_size
)
{
5a448: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
5a44c: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED
5a450: 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);
5a454: 2202 movel %d2,%d1 <== NOT EXECUTED
5a456: 2042 moveal %d2,%a0 <== NOT EXECUTED
5a458: 5188 subql #8,%a0 <== NOT EXECUTED
5a45a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
5a45e: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
5a462: 286e 0014 moveal %fp@(20),%a4 <== NOT EXECUTED
5a466: 266e 0018 moveal %fp@(24),%a3 <== NOT EXECUTED
5a46a: 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;
5a470: 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);
5a472: 91c0 subal %d0,%a0 <== NOT EXECUTED
*new_size = 0;
5a474: 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;
5a476: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED
5a47a: 6500 0096 bcsw 5a512 <_Heap_Resize_block+0xca> <== NOT EXECUTED
5a47e: b1ea 0024 cmpal %a2@(36),%a0 <== NOT EXECUTED
5a482: 6200 008e bhiw 5a512 <_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;
5a486: 70fe moveq #-2,%d0 <== NOT EXECUTED
5a488: 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;
5a48a: 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;
5a48c: 7604 moveq #4,%d3 <== NOT EXECUTED
5a48e: 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;
5a490: 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;
5a494: 43f0 0800 lea %a0@(00000000,%d0:l),%a1 <== NOT EXECUTED
uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;
5a498: d689 addl %a1,%d3 <== NOT EXECUTED
5a49a: 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;
5a49e: 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;
5a4a2: 2883 movel %d3,%a4@ <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(
const Heap_Block *block
)
{
return !_Heap_Is_used( block );
5a4a4: 4a85 tstl %d5 <== NOT EXECUTED
5a4a6: 57c5 seq %d5 <== NOT EXECUTED
5a4a8: 4485 negl %d5 <== NOT EXECUTED
if ( next_block_is_free ) {
5a4aa: 4a05 tstb %d5 <== NOT EXECUTED
5a4ac: 6704 beqs 5a4b2 <_Heap_Resize_block+0x6a> <== NOT EXECUTED
block_size += next_block_size;
5a4ae: d081 addl %d1,%d0 <== NOT EXECUTED
alloc_size += next_block_size;
5a4b0: d681 addl %d1,%d3 <== NOT EXECUTED
}
if ( new_alloc_size > alloc_size ) {
5a4b2: b684 cmpl %d4,%d3 <== NOT EXECUTED
5a4b4: 6558 bcss 5a50e <_Heap_Resize_block+0xc6> <== NOT EXECUTED
return HEAP_RESIZE_UNSATISFIED;
}
if ( next_block_is_free ) {
5a4b6: 4a05 tstb %d5 <== NOT EXECUTED
5a4b8: 672a beqs 5a4e4 <_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;
5a4ba: 7601 moveq #1,%d3 <== NOT EXECUTED
5a4bc: 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;
5a4c0: 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;
5a4c4: 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;
5a4c6: 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;
5a4ca: 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;
5a4ce: 7601 moveq #1,%d3 <== NOT EXECUTED
5a4d0: 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;
5a4d4: 234c 0008 movel %a4,%a1@(8) <== NOT EXECUTED
next->prev = prev;
5a4d8: 2949 000c movel %a1,%a4@(12) <== NOT EXECUTED
/* Statistics */
--stats->free_blocks;
5a4dc: 53aa 0038 subql #1,%a2@(56) <== NOT EXECUTED
stats->free_size -= next_block_size;
5a4e0: 93aa 0030 subl %d1,%a2@(48) <== NOT EXECUTED
}
block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
5a4e4: 2f04 movel %d4,%sp@- <== NOT EXECUTED
5a4e6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a4e8: 2f08 movel %a0,%sp@- <== NOT EXECUTED
5a4ea: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5a4ec: 4eb9 0004 66c2 jsr 466c2 <_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;
5a4f2: 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;
5a4f6: 72fe moveq #-2,%d1 <== NOT EXECUTED
5a4f8: 2040 moveal %d0,%a0 <== NOT EXECUTED
return HEAP_RESIZE_SUCCESSFUL;
5a4fa: 4280 clrl %d0 <== NOT EXECUTED
5a4fc: 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;
5a500: 91c2 subal %d2,%a0 <== NOT EXECUTED
5a502: 41f0 1804 lea %a0@(00000004,%d1:l),%a0 <== NOT EXECUTED
5a506: 2688 movel %a0,%a3@ <== NOT EXECUTED
/* Statistics */
++stats->resizes;
5a508: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED
5a50c: 6006 bras 5a514 <_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;
5a50e: 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(
5a510: 6002 bras 5a514 <_Heap_Resize_block+0xcc> <== NOT EXECUTED
new_alloc_size,
old_size,
new_size
);
} else {
return HEAP_RESIZE_FATAL_ERROR;
5a512: 7002 moveq #2,%d0 <== NOT EXECUTED
}
}
5a514: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED
5a51a: 4e5e unlk %fp <== NOT EXECUTED
...
0005a520 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
5a520: 4e56 0000 linkw %fp,#0
5a524: 202e 000c movel %fp@(12),%d0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
5a528: 2040 moveal %d0,%a0
5a52a: 5188 subql #8,%a0
5a52c: 226e 0008 moveal %fp@(8),%a1
5a530: 2f02 movel %d2,%sp@-
5a532: 2400 movel %d0,%d2
5a534: 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
5a53a: 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);
5a53e: 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;
5a540: b488 cmpl %a0,%d2
5a542: 620c bhis 5a550 <_Heap_Size_of_alloc_area+0x30> <== NEVER TAKEN
5a544: b1e9 0024 cmpal %a1@(36),%a0
5a548: 53c1 sls %d1
5a54a: 49c1 extbl %d1
5a54c: 4481 negl %d1
5a54e: 6002 bras 5a552 <_Heap_Size_of_alloc_area+0x32>
5a550: 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 ) ) {
5a552: 4a01 tstb %d1
5a554: 6738 beqs 5a58e <_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;
5a556: 72fe moveq #-2,%d1
5a558: 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);
5a55c: 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;
5a55e: b488 cmpl %a0,%d2
5a560: 620c bhis 5a56e <_Heap_Size_of_alloc_area+0x4e> <== NEVER TAKEN
5a562: b1e9 0024 cmpal %a1@(36),%a0
5a566: 53c1 sls %d1
5a568: 49c1 extbl %d1
5a56a: 4481 negl %d1
5a56c: 6002 bras 5a570 <_Heap_Size_of_alloc_area+0x50>
5a56e: 4281 clrl %d1 <== NOT EXECUTED
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
5a570: 4a01 tstb %d1
5a572: 671a beqs 5a58e <_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;
5a574: 7201 moveq #1,%d1
5a576: c2a8 0004 andl %a0@(4),%d1
!_Heap_Is_block_in_heap( heap, next_block )
|| !_Heap_Is_prev_used( next_block )
5a57a: 6712 beqs 5a58e <_Heap_Size_of_alloc_area+0x6e> <== NEVER TAKEN
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
5a57c: 7204 moveq #4,%d1
5a57e: 9280 subl %d0,%d1
5a580: 2001 movel %d1,%d0
5a582: d088 addl %a0,%d0
5a584: 226e 0010 moveal %fp@(16),%a1
5a588: 2280 movel %d0,%a1@
return true;
5a58a: 7001 moveq #1,%d0
5a58c: 6002 bras 5a590 <_Heap_Size_of_alloc_area+0x70>
if (
!_Heap_Is_block_in_heap( heap, next_block )
|| !_Heap_Is_prev_used( next_block )
) {
return false;
5a58e: 4200 clrb %d0 <== NOT EXECUTED
}
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
return true;
}
5a590: 241f movel %sp@+,%d2
5a592: 4e5e unlk %fp
...
0004719e <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
4719e: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED
471a2: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
471a6: 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;
471aa: 45fa ffac lea %pc@(47158 <_Heap_Walk_print_nothing>),%a2<== NOT EXECUTED
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
471ae: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
471b2: 282b 0010 movel %a3@(16),%d4 <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
471b6: 2a2b 0014 movel %a3@(20),%d5 <== NOT EXECUTED
Heap_Block *const first_block = heap->first_block;
471ba: 2c2b 0020 movel %a3@(32),%d6 <== NOT EXECUTED
Heap_Block *const last_block = heap->last_block;
471be: 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;
471c2: 4a2e 0013 tstb %fp@(19) <== NOT EXECUTED
471c6: 6704 beqs 471cc <_Heap_Walk+0x2e> <== NOT EXECUTED
471c8: 45fa ff96 lea %pc@(47160 <_Heap_Walk_print>),%a2 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
471cc: 7003 moveq #3,%d0 <== NOT EXECUTED
471ce: b0b9 0005 ff02 cmpl 5ff02 <_System_state_Current>,%d0 <== NOT EXECUTED
471d4: 6600 02fc bnew 474d2 <_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)(
471d8: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED
471dc: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED
471e0: 2f07 movel %d7,%sp@- <== NOT EXECUTED
471e2: 2f06 movel %d6,%sp@- <== NOT EXECUTED
471e4: 2f2b 001c movel %a3@(28),%sp@- <== NOT EXECUTED
471e8: 2f2b 0018 movel %a3@(24),%sp@- <== NOT EXECUTED
471ec: 2f05 movel %d5,%sp@- <== NOT EXECUTED
471ee: 2f04 movel %d4,%sp@- <== NOT EXECUTED
471f0: 4879 0005 c1a1 pea 5c1a1 <C.0.4034+0x57> <== NOT EXECUTED
471f6: 42a7 clrl %sp@- <== NOT EXECUTED
471f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
471fa: 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 ) {
471fc: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED
47200: 4a84 tstl %d4 <== NOT EXECUTED
47202: 6608 bnes 4720c <_Heap_Walk+0x6e> <== NOT EXECUTED
(*printer)( source, true, "page size is zero\n" );
47204: 4879 0005 c232 pea 5c232 <C.0.4034+0xe8> <== NOT EXECUTED
4720a: 6050 bras 4725c <_Heap_Walk+0xbe> <== NOT EXECUTED
)
{
#if (CPU_ALIGNMENT == 0)
return true;
#else
return (((uintptr_t)address % CPU_ALIGNMENT) == 0);
4720c: 7003 moveq #3,%d0 <== NOT EXECUTED
4720e: c084 andl %d4,%d0 <== NOT EXECUTED
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
47210: 670c beqs 4721e <_Heap_Walk+0x80> <== NOT EXECUTED
(*printer)(
47212: 2f04 movel %d4,%sp@- <== NOT EXECUTED
47214: 4879 0005 c245 pea 5c245 <C.0.4034+0xfb> <== NOT EXECUTED
4721a: 6000 02ca braw 474e6 <_Heap_Walk+0x348> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
4721e: 2205 movel %d5,%d1 <== NOT EXECUTED
47220: 4c44 1000 remul %d4,%d0,%d1 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
47224: 4a80 tstl %d0 <== NOT EXECUTED
47226: 670c beqs 47234 <_Heap_Walk+0x96> <== NOT EXECUTED
(*printer)(
47228: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4722a: 4879 0005 c263 pea 5c263 <C.0.4034+0x119> <== NOT EXECUTED
47230: 6000 02b4 braw 474e6 <_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;
47234: 2006 movel %d6,%d0 <== NOT EXECUTED
47236: 5080 addql #8,%d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
47238: 4c44 0001 remul %d4,%d1,%d0 <== NOT EXECUTED
);
return false;
}
if (
4723c: 4a81 tstl %d1 <== NOT EXECUTED
4723e: 670c beqs 4724c <_Heap_Walk+0xae> <== NOT EXECUTED
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
47240: 2f06 movel %d6,%sp@- <== NOT EXECUTED
47242: 4879 0005 c287 pea 5c287 <C.0.4034+0x13d> <== NOT EXECUTED
47248: 6000 029c braw 474e6 <_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;
4724c: 7001 moveq #1,%d0 <== NOT EXECUTED
4724e: 2046 moveal %d6,%a0 <== NOT EXECUTED
47250: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
47254: 6616 bnes 4726c <_Heap_Walk+0xce> <== NOT EXECUTED
(*printer)(
47256: 4879 0005 c2b8 pea 5c2b8 <C.0.4034+0x16e> <== NOT EXECUTED
4725c: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47260: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47262: 4e92 jsr %a2@ <== NOT EXECUTED
47264: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47268: 6000 00ba braw 47324 <_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;
4726c: 70fe moveq #-2,%d0 <== NOT EXECUTED
4726e: 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);
47270: 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;
47272: 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);
47276: 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;
47278: 7001 moveq #1,%d0 <== NOT EXECUTED
4727a: c0ac 0004 andl %a4@(4),%d0 <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
4727e: 6608 bnes 47288 <_Heap_Walk+0xea> <== NOT EXECUTED
(*printer)(
47280: 4879 0005 c2e6 pea 5c2e6 <C.0.4034+0x19c> <== NOT EXECUTED
47286: 60d4 bras 4725c <_Heap_Walk+0xbe> <== NOT EXECUTED
);
return false;
}
if (
47288: bc8c cmpl %a4,%d6 <== NOT EXECUTED
4728a: 6708 beqs 47294 <_Heap_Walk+0xf6> <== NOT EXECUTED
_Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
) {
(*printer)(
4728c: 4879 0005 c2fb pea 5c2fb <C.0.4034+0x1b1> <== NOT EXECUTED
47292: 60c8 bras 4725c <_Heap_Walk+0xbe> <== NOT EXECUTED
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
47294: 262b 0010 movel %a3@(16),%d3 <== NOT EXECUTED
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
47298: 220b movel %a3,%d1 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
4729a: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED
4729e: 2d44 fff8 movel %d4,%fp@(-8) <== NOT EXECUTED
472a2: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED
472a6: 6000 0088 braw 47330 <_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;
472aa: b1eb 0020 cmpal %a3@(32),%a0 <== NOT EXECUTED
472ae: 650c bcss 472bc <_Heap_Walk+0x11e> <== NOT EXECUTED
472b0: b1eb 0024 cmpal %a3@(36),%a0 <== NOT EXECUTED
472b4: 53c0 sls %d0 <== NOT EXECUTED
472b6: 49c0 extbl %d0 <== NOT EXECUTED
472b8: 4480 negl %d0 <== NOT EXECUTED
472ba: 6002 bras 472be <_Heap_Walk+0x120> <== NOT EXECUTED
472bc: 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 ) ) {
472be: 4a00 tstb %d0 <== NOT EXECUTED
472c0: 660c bnes 472ce <_Heap_Walk+0x130> <== NOT EXECUTED
(*printer)(
472c2: 2f08 movel %a0,%sp@- <== NOT EXECUTED
472c4: 4879 0005 c32a pea 5c32a <C.0.4034+0x1e0> <== NOT EXECUTED
472ca: 6000 021a braw 474e6 <_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;
472ce: 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;
472d2: 200d movel %a5,%d0 <== NOT EXECUTED
472d4: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
472d8: 4c43 0004 remul %d3,%d4,%d0 <== NOT EXECUTED
);
return false;
}
if (
472dc: 4a84 tstl %d4 <== NOT EXECUTED
472de: 670c beqs 472ec <_Heap_Walk+0x14e> <== NOT EXECUTED
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
472e0: 2f08 movel %a0,%sp@- <== NOT EXECUTED
472e2: 4879 0005 c34a pea 5c34a <C.0.4034+0x200> <== NOT EXECUTED
472e8: 6000 01fc braw 474e6 <_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;
472ec: 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;
472ee: 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;
472f0: 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;
472f4: c6b0 0804 andl %a0@(00000004,%d0:l),%d3 <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
472f8: 670c beqs 47306 <_Heap_Walk+0x168> <== NOT EXECUTED
(*printer)(
472fa: 2f08 movel %a0,%sp@- <== NOT EXECUTED
472fc: 4879 0005 c37a pea 5c37a <C.0.4034+0x230> <== NOT EXECUTED
47302: 6000 01e2 braw 474e6 <_Heap_Walk+0x348> <== NOT EXECUTED
);
return false;
}
if ( free_block->prev != prev_block ) {
47306: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED
4730a: b280 cmpl %d0,%d1 <== NOT EXECUTED
4730c: 671c beqs 4732a <_Heap_Walk+0x18c> <== NOT EXECUTED
(*printer)(
4730e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47310: 2f08 movel %a0,%sp@- <== NOT EXECUTED
47312: 4879 0005 c396 pea 5c396 <C.0.4034+0x24c> <== NOT EXECUTED
47318: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4731c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4731e: 4e92 jsr %a2@ <== NOT EXECUTED
47320: 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;
47324: 4200 clrb %d0 <== NOT EXECUTED
47326: 6000 01ac braw 474d4 <_Heap_Walk+0x336> <== NOT EXECUTED
return false;
}
prev_block = free_block;
free_block = free_block->next;
4732a: 2208 movel %a0,%d1 <== NOT EXECUTED
4732c: 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 ) {
47330: b7c8 cmpal %a0,%a3 <== NOT EXECUTED
47332: 6600 ff76 bnew 472aa <_Heap_Walk+0x10c> <== NOT EXECUTED
47336: 282e fff8 movel %fp@(-8),%d4 <== NOT EXECUTED
4733a: 6002 bras 4733e <_Heap_Walk+0x1a0> <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
4733c: 284d moveal %a5,%a4 <== NOT EXECUTED
return true;
}
4733e: 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;
47342: 76fe moveq #-2,%d3 <== NOT EXECUTED
47344: c680 andl %d0,%d3 <== NOT EXECUTED
47346: 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);
4734a: 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;
4734e: bbeb 0020 cmpal %a3@(32),%a5 <== NOT EXECUTED
47352: 650c bcss 47360 <_Heap_Walk+0x1c2> <== NOT EXECUTED
47354: bbeb 0024 cmpal %a3@(36),%a5 <== NOT EXECUTED
47358: 53c0 sls %d0 <== NOT EXECUTED
4735a: 49c0 extbl %d0 <== NOT EXECUTED
4735c: 4480 negl %d0 <== NOT EXECUTED
4735e: 6002 bras 47362 <_Heap_Walk+0x1c4> <== NOT EXECUTED
47360: 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 ) ) {
47362: 4a00 tstb %d0 <== NOT EXECUTED
47364: 660c bnes 47372 <_Heap_Walk+0x1d4> <== NOT EXECUTED
(*printer)(
47366: 2f0d movel %a5,%sp@- <== NOT EXECUTED
47368: 2f0c movel %a4,%sp@- <== NOT EXECUTED
4736a: 4879 0005 c3c8 pea 5c3c8 <C.0.4034+0x27e> <== NOT EXECUTED
47370: 60a6 bras 47318 <_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;
47372: be8c cmpl %a4,%d7 <== NOT EXECUTED
47374: 56c0 sne %d0 <== NOT EXECUTED
47376: 2200 movel %d0,%d1 <== NOT EXECUTED
47378: 4481 negl %d1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
4737a: 2003 movel %d3,%d0 <== NOT EXECUTED
4737c: 1d41 fffb moveb %d1,%fp@(-5) <== NOT EXECUTED
47380: 4c44 0001 remul %d4,%d1,%d0 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
47384: 4a81 tstl %d1 <== NOT EXECUTED
47386: 6714 beqs 4739c <_Heap_Walk+0x1fe> <== NOT EXECUTED
47388: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED
4738c: 670e beqs 4739c <_Heap_Walk+0x1fe> <== NOT EXECUTED
(*printer)(
4738e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47390: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47392: 4879 0005 c3f5 pea 5c3f5 <C.0.4034+0x2ab> <== NOT EXECUTED
47398: 6000 ff7e braw 47318 <_Heap_Walk+0x17a> <== NOT EXECUTED
);
return false;
}
if ( block_size < min_block_size && is_not_last_block ) {
4739c: ba83 cmpl %d3,%d5 <== NOT EXECUTED
4739e: 6322 blss 473c2 <_Heap_Walk+0x224> <== NOT EXECUTED
473a0: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED
473a4: 671c beqs 473c2 <_Heap_Walk+0x224> <== NOT EXECUTED
(*printer)(
473a6: 2f05 movel %d5,%sp@- <== NOT EXECUTED
473a8: 2f03 movel %d3,%sp@- <== NOT EXECUTED
473aa: 2f0c movel %a4,%sp@- <== NOT EXECUTED
473ac: 4879 0005 c423 pea 5c423 <C.0.4034+0x2d9> <== NOT EXECUTED
473b2: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
473b6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
473b8: 4e92 jsr %a2@ <== NOT EXECUTED
block,
block_size,
min_block_size
);
return false;
473ba: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
473be: 6000 ff64 braw 47324 <_Heap_Walk+0x186> <== NOT EXECUTED
}
if ( next_block_begin <= block_begin && is_not_last_block ) {
473c2: b9cd cmpal %a5,%a4 <== NOT EXECUTED
473c4: 6514 bcss 473da <_Heap_Walk+0x23c> <== NOT EXECUTED
473c6: 4a2e fffb tstb %fp@(-5) <== NOT EXECUTED
473ca: 670e beqs 473da <_Heap_Walk+0x23c> <== NOT EXECUTED
(*printer)(
473cc: 2f0d movel %a5,%sp@- <== NOT EXECUTED
473ce: 2f0c movel %a4,%sp@- <== NOT EXECUTED
473d0: 4879 0005 c44e pea 5c44e <C.0.4034+0x304> <== NOT EXECUTED
473d6: 6000 ff40 braw 47318 <_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;
473da: 7001 moveq #1,%d0 <== NOT EXECUTED
473dc: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED
473e0: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
473e4: 7001 moveq #1,%d0 <== NOT EXECUTED
473e6: c0ad 0004 andl %a5@(4),%d0 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
473ea: 6600 00ae bnew 4749a <_Heap_Walk+0x2fc> <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
473ee: 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)(
473f2: 43f9 0005 c16e lea 5c16e <C.0.4034+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 ?
473f8: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
473fc: 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)(
47400: b1eb 000c cmpal %a3@(12),%a0 <== NOT EXECUTED
47404: 6710 beqs 47416 <_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)" : "")
47406: 43f9 0005 c0a8 lea 5c0a8 <rtems_filesystem_default_pathconf+0xb4>,%a1<== NOT EXECUTED
4740c: b7c8 cmpal %a0,%a3 <== NOT EXECUTED
4740e: 6606 bnes 47416 <_Heap_Walk+0x278> <== NOT EXECUTED
47410: 43f9 0005 c17d lea 5c17d <C.0.4034+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 ?
47416: 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)(
4741a: 223c 0005 c187 movel #377223,%d1 <== NOT EXECUTED
47420: b0ae fff8 cmpl %fp@(-8),%d0 <== NOT EXECUTED
47424: 6710 beqs 47436 <_Heap_Walk+0x298> <== NOT EXECUTED
block,
block_size,
block->prev,
block->prev == first_free_block ?
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
47426: 223c 0005 c0a8 movel #377000,%d1 <== NOT EXECUTED
4742c: b7c0 cmpal %d0,%a3 <== NOT EXECUTED
4742e: 6606 bnes 47436 <_Heap_Walk+0x298> <== NOT EXECUTED
47430: 223c 0005 c197 movel #377239,%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)(
47436: 2f09 movel %a1,%sp@- <== NOT EXECUTED
47438: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4743a: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4743c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4743e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47440: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47442: 4879 0005 c482 pea 5c482 <C.0.4034+0x338> <== NOT EXECUTED
47448: 42a7 clrl %sp@- <== NOT EXECUTED
4744a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4744c: 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 ) {
4744e: 2015 movel %a5@,%d0 <== NOT EXECUTED
47450: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
47454: b083 cmpl %d3,%d0 <== NOT EXECUTED
47456: 671e beqs 47476 <_Heap_Walk+0x2d8> <== NOT EXECUTED
(*printer)(
47458: 2f0d movel %a5,%sp@- <== NOT EXECUTED
4745a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4745c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4745e: 2f0c movel %a4,%sp@- <== NOT EXECUTED
47460: 4879 0005 c4b7 pea 5c4b7 <C.0.4034+0x36d> <== NOT EXECUTED
47466: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4746a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4746c: 4e92 jsr %a2@ <== NOT EXECUTED
4746e: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
47472: 6000 feb0 braw 47324 <_Heap_Walk+0x186> <== NOT EXECUTED
);
return false;
}
if ( !prev_used ) {
47476: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4747a: 660a bnes 47486 <_Heap_Walk+0x2e8> <== NOT EXECUTED
(*printer)(
4747c: 2f0c movel %a4,%sp@- <== NOT EXECUTED
4747e: 4879 0005 c4f0 pea 5c4f0 <C.0.4034+0x3a6> <== NOT EXECUTED
47484: 6060 bras 474e6 <_Heap_Walk+0x348> <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
47486: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED
4748a: 6008 bras 47494 <_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 ) {
4748c: b9c8 cmpal %a0,%a4 <== NOT EXECUTED
4748e: 673c beqs 474cc <_Heap_Walk+0x32e> <== NOT EXECUTED
return true;
}
free_block = free_block->next;
47490: 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 ) {
47494: b7c8 cmpal %a0,%a3 <== NOT EXECUTED
47496: 66f4 bnes 4748c <_Heap_Walk+0x2ee> <== NOT EXECUTED
47498: 6044 bras 474de <_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) {
4749a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4749e: 6716 beqs 474b6 <_Heap_Walk+0x318> <== NOT EXECUTED
(*printer)(
474a0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
474a2: 2f0c movel %a4,%sp@- <== NOT EXECUTED
474a4: 4879 0005 c51f pea 5c51f <C.0.4034+0x3d5> <== NOT EXECUTED
474aa: 42a7 clrl %sp@- <== NOT EXECUTED
474ac: 2f02 movel %d2,%sp@- <== NOT EXECUTED
474ae: 4e92 jsr %a2@ <== NOT EXECUTED
474b0: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
474b4: 6016 bras 474cc <_Heap_Walk+0x32e> <== NOT EXECUTED
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
474b6: 2f14 movel %a4@,%sp@- <== NOT EXECUTED
474b8: 2f03 movel %d3,%sp@- <== NOT EXECUTED
474ba: 2f0c movel %a4,%sp@- <== NOT EXECUTED
474bc: 4879 0005 c536 pea 5c536 <C.0.4034+0x3ec> <== NOT EXECUTED
474c2: 42a7 clrl %sp@- <== NOT EXECUTED
474c4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
474c6: 4e92 jsr %a2@ <== NOT EXECUTED
474c8: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
474cc: bc8d cmpl %a5,%d6 <== NOT EXECUTED
474ce: 6600 fe6c bnew 4733c <_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;
474d2: 7001 moveq #1,%d0 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
474d4: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED
474da: 4e5e unlk %fp <== NOT EXECUTED
474dc: 4e75 rts <== NOT EXECUTED
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
474de: 2f0c movel %a4,%sp@- <== NOT EXECUTED
474e0: 4879 0005 c55b pea 5c55b <C.0.4034+0x411> <== NOT EXECUTED
474e6: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
474ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED
474ec: 4e92 jsr %a2@ <== NOT EXECUTED
474ee: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
474f2: 6000 fe30 braw 47324 <_Heap_Walk+0x186> <== NOT EXECUTED
...
00047160 <_Heap_Walk_print>:
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
47160: 41f9 0004 3b54 lea 43b54 <printk>,%a0 <== NOT EXECUTED
47166: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4716a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
va_list ap;
if ( error ) {
4716e: 4a2e 000f tstb %fp@(15) <== NOT EXECUTED
47172: 670a beqs 4717e <_Heap_Walk_print+0x1e> <== NOT EXECUTED
printk( "FAIL[%d]: ", source );
47174: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47176: 4879 0005 c158 pea 5c158 <C.0.4034+0xe> <== NOT EXECUTED
4717c: 6008 bras 47186 <_Heap_Walk_print+0x26> <== NOT EXECUTED
} else {
printk( "PASS[%d]: ", source );
4717e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47180: 4879 0005 c163 pea 5c163 <C.0.4034+0x19> <== NOT EXECUTED
47186: 4e90 jsr %a0@ <== NOT EXECUTED
47188: 508f addql #8,%sp <== NOT EXECUTED
}
va_start( ap, fmt );
vprintk( fmt, ap );
4718a: 486e 0014 pea %fp@(20) <== NOT EXECUTED
4718e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
47192: 4eb9 0004 546c jsr 4546c <vprintk> <== NOT EXECUTED
va_end( ap );
47198: 508f addql #8,%sp <== NOT EXECUTED
}
4719a: 4e5e unlk %fp <== NOT EXECUTED
00047158 <_Heap_Walk_print_nothing>:
int source,
bool error,
const char *fmt,
...
)
{
47158: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
/* Do nothing */
}
4715c: 4e5e unlk %fp <== NOT EXECUTED
000467b0 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
467b0: 4e56 0000 linkw %fp,#0
467b4: 222e 000c movel %fp@(12),%d1
467b8: 2f02 movel %d2,%sp@-
467ba: 242e 0010 movel %fp@(16),%d2
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
467be: 13c1 0005 dac6 moveb %d1,5dac6 <_Internal_errors_What_happened+0x4>
_Internal_errors_What_happened.the_error = the_error;
_User_extensions_Fatal( the_source, is_internal, the_error );
467c4: 2f02 movel %d2,%sp@-
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
467c6: 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 );
467ca: 0281 0000 00ff andil #255,%d1
bool is_internal,
Internal_errors_t the_error
)
{
_Internal_errors_What_happened.the_source = the_source;
467d0: 23c0 0005 dac2 movel %d0,5dac2 <_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 );
467d6: 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;
467d8: 23c2 0005 dac8 movel %d2,5dac8 <_Internal_errors_What_happened+0x6>
_User_extensions_Fatal( the_source, is_internal, the_error );
467de: 2f00 movel %d0,%sp@-
467e0: 4eb9 0004 8352 jsr 48352 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
467e6: 7005 moveq #5,%d0 <== NOT EXECUTED
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
467e8: 2042 moveal %d2,%a0 <== NOT EXECUTED
467ea: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED
467f0: 23c0 0005 db9a movel %d0,5db9a <_System_state_Current> <== NOT EXECUTED
467f6: 40c0 movew %sr,%d0 <== NOT EXECUTED
467f8: 8082 orl %d2,%d0 <== NOT EXECUTED
467fa: 46c0 movew %d0,%sr <== NOT EXECUTED
467fc: 2008 movel %a0,%d0 <== NOT EXECUTED
467fe: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED
46804: 4ac8 halt <== NOT EXECUTED
46806: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4680a: 60fe bras 4680a <_Internal_error_Occurred+0x5a> <== NOT EXECUTED
00052708 <_Message_queue_Allocate>:
* Output parameters:
* the_message_queue - set if successful, NULL otherwise
*/
Message_queue_Control *_Message_queue_Allocate(void)
{
52708: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (Message_queue_Control *)
_Objects_Allocate(&_Message_queue_Information);
5270c: 4879 0006 6f06 pea 66f06 <_Message_queue_Information> <== NOT EXECUTED
52712: 4eb9 0004 e95c jsr 4e95c <_Objects_Allocate> <== NOT EXECUTED
}
52718: 4e5e unlk %fp <== NOT EXECUTED
0004ce6c <_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];
}
4ce6c: 41f9 0006 4e78 lea 64e78 <_Message_queue_Translate_core_return_code_>,%a0<== NOT EXECUTED
};
rtems_status_code _Message_queue_Translate_core_message_queue_return_code (
uint32_t status
)
{
4ce72: 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];
}
4ce76: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4ce7a: 4e5e unlk %fp <== NOT EXECUTED
4ce7c: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004add0 <_Objects_API_maximum_class>:
#include <rtems/score/object.h>
unsigned int _Objects_API_maximum_class(
uint32_t api
)
{
4add0: 7202 moveq #2,%d1
4add2: 4e56 0000 linkw %fp,#0
4add6: 202e 0008 movel %fp@(8),%d0
4adda: 5380 subql #1,%d0
4addc: b280 cmpl %d0,%d1
4adde: 650c bcss 4adec <_Objects_API_maximum_class+0x1c><== NEVER TAKEN
4ade0: 41f9 0005 b74a lea 5b74a <CSWTCH.1>,%a0
4ade6: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0
4adea: 6002 bras 4adee <_Objects_API_maximum_class+0x1e>
4adec: 4280 clrl %d0 <== NOT EXECUTED
case OBJECTS_NO_API:
default:
break;
}
return 0;
}
4adee: 4e5e unlk %fp
...
00046864 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
46864: 4e56 fff0 linkw %fp,#-16
46868: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@
4686c: 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 )
46870: 4aaa 0014 tstl %a2@(20)
46874: 675e beqs 468d4 <_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 );
46876: 240a movel %a2,%d2
46878: 0682 0000 001c addil #28,%d2
4687e: 47f9 0004 6008 lea 46008 <_Chain_Get>,%a3
46884: 2f02 movel %d2,%sp@-
46886: 4e93 jsr %a3@
if ( information->auto_extend ) {
46888: 588f addql #4,%sp
4688a: 4a2a 0010 tstb %a2@(16)
4688e: 6746 beqs 468d6 <_Objects_Allocate+0x72>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
46890: 4a80 tstl %d0
46892: 6612 bnes 468a6 <_Objects_Allocate+0x42> <== ALWAYS TAKEN
_Objects_Extend_information( information );
46894: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46896: 4eb9 0004 690c jsr 4690c <_Objects_Extend_information> <== NOT EXECUTED
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
4689c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4689e: 4e93 jsr %a3@ <== NOT EXECUTED
}
if ( the_object ) {
468a0: 508f addql #8,%sp <== NOT EXECUTED
468a2: 4a80 tstl %d0 <== NOT EXECUTED
468a4: 6730 beqs 468d6 <_Objects_Allocate+0x72> <== NOT EXECUTED
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
468a6: 2040 moveal %d0,%a0
468a8: 4281 clrl %d1
468aa: 4282 clrl %d2
468ac: 3228 000a movew %a0@(10),%d1
468b0: 342a 0008 movew %a2@(8),%d2
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
468b4: 206a 002a moveal %a2@(42),%a0
}
if ( the_object ) {
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
468b8: 9282 subl %d2,%d1
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
468ba: 342a 0012 movew %a2@(18),%d2
468be: 4c42 1001 remul %d2,%d1,%d1
information->inactive_per_block[ block ]--;
468c2: e589 lsll #2,%d1
468c4: d1c1 addal %d1,%a0
468c6: 5390 subql #1,%a0@
information->inactive--;
468c8: 322a 0028 movew %a2@(40),%d1
468cc: 5381 subql #1,%d1
468ce: 3541 0028 movew %d1,%a2@(40)
468d2: 6002 bras 468d6 <_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;
468d4: 4280 clrl %d0 <== NOT EXECUTED
);
}
#endif
return the_object;
}
468d6: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3
468dc: 4e5e unlk %fp <== NOT EXECUTED
000468e0 <_Objects_Close>:
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
468e0: 4280 clrl %d0
void _Objects_Close(
Objects_Information *information,
Objects_Control *the_object
)
{
468e2: 4e56 0000 linkw %fp,#0
468e6: 226e 000c moveal %fp@(12),%a1
468ea: 206e 0008 moveal %fp@(8),%a0
468ee: 2f0a movel %a2,%sp@-
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
468f0: 2468 0018 moveal %a0@(24),%a2
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
468f4: 3029 000a movew %a1@(10),%d0
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
468f8: 42b2 0c00 clrl %a2@(00000000,%d0:l:4)
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
}
468fc: 245f moveal %sp@+,%a2
Objects_Control *the_object
)
{
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
468fe: 2d49 000c movel %a1,%fp@(12)
}
46902: 4e5e unlk %fp
Objects_Control *the_object
)
{
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
46904: 4ef9 0004 6e18 jmp 46e18 <_Objects_Namespace_remove>
...
0004690c <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
4690c: 4e56 ffc8 linkw %fp,#-56
46910: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@
46914: 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 );
46918: 4283 clrl %d3
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
4691a: 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 );
4691e: 362a 0008 movew %a2@(8),%d3
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
46922: 4a88 tstl %a0
46924: 6730 beqs 46956 <_Objects_Extend_information+0x4a><== ALWAYS TAKEN
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
46926: 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 );
46928: 2403 movel %d3,%d2 <== NOT EXECUTED
index_base = minimum_index;
block = 0;
4692a: 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;
4692c: 302a 0012 movew %a2@(18),%d0 <== NOT EXECUTED
46930: 3c2a 000e movew %a2@(14),%d6 <== NOT EXECUTED
46934: 0286 0000 ffff andil #65535,%d6 <== NOT EXECUTED
4693a: 8cc0 divuw %d0,%d6 <== NOT EXECUTED
4693c: 0286 0000 ffff andil #65535,%d6 <== NOT EXECUTED
for ( ; block < block_count; block++ ) {
46942: 6008 bras 4694c <_Objects_Extend_information+0x40><== NOT EXECUTED
if ( information->object_blocks[ block ] == NULL ) {
46944: 4a98 tstl %a0@+ <== NOT EXECUTED
46946: 671a beqs 46962 <_Objects_Extend_information+0x56><== NOT EXECUTED
46948: 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++ ) {
4694a: 5285 addql #1,%d5 <== NOT EXECUTED
4694c: bc85 cmpl %d5,%d6 <== NOT EXECUTED
4694e: 62f4 bhis 46944 <_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;
46950: 367c 0001 moveaw #1,%a3 <== NOT EXECUTED
46954: 600e bras 46964 <_Objects_Extend_information+0x58><== NOT EXECUTED
minimum_index = _Objects_Get_index( information->minimum_id );
46956: 2403 movel %d3,%d2
index_base = minimum_index;
block = 0;
46958: 4285 clrl %d5
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
4695a: 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;
4695c: 367c 0001 moveaw #1,%a3
46960: 6002 bras 46964 <_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;
46962: 97cb subal %a3,%a3 <== NOT EXECUTED
} else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
46964: 4280 clrl %d0
46966: 4287 clrl %d7
46968: 302a 0012 movew %a2@(18),%d0
4696c: 3e2a 000e movew %a2@(14),%d7
46970: 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 ) {
46972: 0c87 0000 ffff cmpil #65535,%d7
46978: 6200 01d4 bhiw 46b4e <_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;
4697c: 41ea 0014 lea %a2@(20),%a0
46980: 4c10 0800 mulsl %a0@,%d0
if ( information->auto_extend ) {
46984: 4a2a 0010 tstb %a2@(16)
46988: 6712 beqs 4699c <_Objects_Extend_information+0x90>
new_object_block = _Workspace_Allocate( block_size );
4698a: 2f00 movel %d0,%sp@-
4698c: 4eb9 0004 8710 jsr 48710 <_Workspace_Allocate>
if ( !new_object_block )
46992: 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 );
46994: 2800 movel %d0,%d4
if ( !new_object_block )
46996: 6610 bnes 469a8 <_Objects_Extend_information+0x9c><== ALWAYS TAKEN
46998: 6000 01b4 braw 46b4e <_Objects_Extend_information+0x242><== NOT EXECUTED
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
4699c: 2f00 movel %d0,%sp@-
4699e: 4eb9 0004 8744 jsr 48744 <_Workspace_Allocate_or_fatal_error>
469a4: 588f addql #4,%sp
469a6: 2800 movel %d0,%d4
}
/*
* Do we need to grow the tables?
*/
if ( do_extend ) {
469a8: 300b movew %a3,%d0
469aa: 4a00 tstb %d0
469ac: 6700 0110 beqw 46abe <_Objects_Extend_information+0x1b2>
*/
/*
* Up the block count and maximum
*/
block_count++;
469b0: 2846 moveal %d6,%a4
469b2: 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 *));
469b4: 2007 movel %d7,%d0
469b6: d083 addl %d3,%d0
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
469b8: 41f4 ca00 lea %a4@(00000000,%a4:l:2),%a0
469bc: d088 addl %a0,%d0
block_count++;
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
469be: 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 );
469c0: 2f00 movel %d0,%sp@-
469c2: 4eb9 0004 8710 jsr 48710 <_Workspace_Allocate>
if ( !object_blocks ) {
469c8: 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 );
469ca: 2640 moveal %d0,%a3
if ( !object_blocks ) {
469cc: 4a80 tstl %d0
469ce: 660e bnes 469de <_Objects_Extend_information+0xd2><== ALWAYS TAKEN
_Workspace_Free( new_object_block );
469d0: 2f04 movel %d4,%sp@- <== NOT EXECUTED
469d2: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
return;
469d8: 588f addql #4,%sp <== NOT EXECUTED
469da: 6000 0172 braw 46b4e <_Objects_Extend_information+0x242><== NOT EXECUTED
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
469de: 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 ) {
469e0: 4280 clrl %d0
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
469e2: 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 ) {
469e4: 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);
469e8: 4bf3 1800 lea %a3@(00000000,%d1:l),%a5
469ec: 49f5 1800 lea %a5@(00000000,%d1:l),%a4
469f0: b680 cmpl %d0,%d3
469f2: 6506 bcss 469fa <_Objects_Extend_information+0xee><== NEVER TAKEN
469f4: 204c moveal %a4,%a0
469f6: 4280 clrl %d0
469f8: 604a bras 46a44 <_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,
469fa: 2206 movel %d6,%d1 <== NOT EXECUTED
469fc: e589 lsll #2,%d1 <== NOT EXECUTED
469fe: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46a00: 2f2a 002e movel %a2@(46),%sp@- <== NOT EXECUTED
46a04: 2d41 fff0 movel %d1,%fp@(-16) <== NOT EXECUTED
46a08: 2f0b movel %a3,%sp@- <== NOT EXECUTED
46a0a: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
46a10: 222e fff0 movel %fp@(-16),%d1 <== NOT EXECUTED
46a14: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46a16: 2f2a 002a movel %a2@(42),%sp@- <== NOT EXECUTED
46a1a: 2f0d movel %a5,%sp@- <== NOT EXECUTED
46a1c: 4eb9 0004 d138 jsr 4d138 <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 *) );
46a22: 4280 clrl %d0 <== NOT EXECUTED
46a24: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED
46a28: 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,
46a2a: e58b lsll #2,%d3 <== NOT EXECUTED
46a2c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
46a2e: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED
46a32: 2f0c movel %a4,%sp@- <== NOT EXECUTED
46a34: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
46a3a: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
46a3e: 6008 bras 46a48 <_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;
46a40: 4298 clrl %a0@+
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
46a42: 5280 addql #1,%d0
46a44: b680 cmpl %d0,%d3
46a46: 62f8 bhis 46a40 <_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 );
46a48: 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 ;
46a4a: 2002 movel %d2,%d0
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
46a4c: e58e lsll #2,%d6
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
46a4e: 322a 0012 movew %a2@(18),%d1
46a52: 41f4 2c00 lea %a4@(00000000,%d2:l:4),%a0
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
46a56: 42b3 6800 clrl %a3@(00000000,%d6:l)
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
46a5a: d282 addl %d2,%d1
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
46a5c: 42b5 6800 clrl %a5@(00000000,%d6:l)
for ( index=index_base ;
46a60: 6004 bras 46a66 <_Objects_Extend_information+0x15a>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
46a62: 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++ ) {
46a64: 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 ;
46a66: b280 cmpl %d0,%d1
46a68: 62f8 bhis 46a62 <_Objects_Extend_information+0x156>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
46a6a: 203c 0000 0700 movel #1792,%d0
46a70: 40c3 movew %sr,%d3
46a72: 8083 orl %d3,%d0
46a74: 46c0 movew %d0,%sr
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46a76: 2012 movel %a2@,%d0
46a78: 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(
46a7a: 4281 clrl %d1
46a7c: eda8 lsll %d6,%d0
46a7e: 322a 0004 movew %a2@(4),%d1
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46a82: 1c3c 001b moveb #27,%d6
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46a86: 08c0 0010 bset #16,%d0
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46a8a: 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;
46a8c: 3547 000e movew %d7,%a2@(14)
information->maximum_id = _Objects_Build_id(
46a90: 0287 0000 ffff andil #65535,%d7
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
46a96: 206a 002e moveal %a2@(46),%a0
46a9a: 8081 orl %d1,%d0
information->object_blocks = object_blocks;
46a9c: 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) |
46aa0: 8087 orl %d7,%d0
information->inactive_per_block = inactive_per_block;
46aa2: 254d 002a movel %a5,%a2@(42)
information->local_table = local_table;
46aa6: 254c 0018 movel %a4,%a2@(24)
46aaa: 2540 000a movel %d0,%a2@(10)
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
46aae: 46c3 movew %d3,%sr
if ( old_tables )
46ab0: 4a88 tstl %a0
46ab2: 670a beqs 46abe <_Objects_Extend_information+0x1b2><== ALWAYS TAKEN
_Workspace_Free( old_tables );
46ab4: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46ab6: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
46abc: 588f addql #4,%sp <== NOT EXECUTED
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
46abe: 206a 002e moveal %a2@(46),%a0
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
46ac2: 4280 clrl %d0
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
46ac4: 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 ) {
46ac6: 49f9 0004 6008 lea 46008 <_Chain_Get>,%a4
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
46acc: 0683 0000 001c addil #28,%d3
46ad2: 47f9 0004 5fa8 lea 45fa8 <_Chain_Append>,%a3
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
46ad8: e58d lsll #2,%d5
46ada: 2184 5800 movel %d4,%a0@(00000000,%d5:l)
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
46ade: 2f2a 0014 movel %a2@(20),%sp@-
46ae2: 302a 0012 movew %a2@(18),%d0
46ae6: 2f00 movel %d0,%sp@-
46ae8: 2f04 movel %d4,%sp@-
46aea: 280e movel %fp,%d4
46aec: 0684 ffff fff4 addil #-12,%d4
46af2: 2f04 movel %d4,%sp@-
46af4: 4eb9 0004 a940 jsr 4a940 <_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 ) {
46afa: 4fef 0010 lea %sp@(16),%sp
46afe: 602a bras 46b2a <_Objects_Extend_information+0x21e>
46b00: 2212 movel %a2@,%d1
46b02: 7e18 moveq #24,%d7
the_object->id = _Objects_Build_id(
46b04: 4286 clrl %d6
46b06: 2040 moveal %d0,%a0
46b08: 3c2a 0004 movew %a2@(4),%d6
46b0c: efa9 lsll %d7,%d1
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46b0e: 1e3c 001b moveb #27,%d7
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46b12: 08c1 0010 bset #16,%d1
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
46b16: efae lsll %d7,%d6
46b18: 8286 orl %d6,%d1
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
46b1a: 8282 orl %d2,%d1
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
46b1c: 5282 addql #1,%d2
46b1e: 2141 0008 movel %d1,%a0@(8)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
46b22: 2f00 movel %d0,%sp@-
46b24: 2f03 movel %d3,%sp@-
46b26: 4e93 jsr %a3@
index++;
46b28: 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 ) {
46b2a: 2f04 movel %d4,%sp@-
46b2c: 4e94 jsr %a4@
46b2e: 588f addql #4,%sp
46b30: 4a80 tstl %d0
46b32: 66cc bnes 46b00 <_Objects_Extend_information+0x1f4>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
46b34: 4281 clrl %d1
46b36: 302a 0012 movew %a2@(18),%d0
46b3a: 206a 002a moveal %a2@(42),%a0
46b3e: 3200 movew %d0,%d1
46b40: 2181 5800 movel %d1,%a0@(00000000,%d5:l)
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
46b44: 322a 0028 movew %a2@(40),%d1
46b48: d081 addl %d1,%d0
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
46b4a: 3540 0028 movew %d0,%a2@(40)
(Objects_Maximum)(information->inactive + information->allocation_size);
}
46b4e: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5
46b54: 4e5e unlk %fp <== NOT EXECUTED
00046b58 <_Objects_Free>:
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
46b58: 4e56 fff0 linkw %fp,#-16
46b5c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@
46b60: 246e 0008 moveal %fp@(8),%a2
46b64: 266e 000c moveal %fp@(12),%a3
uint32_t allocation_size = information->allocation_size;
46b68: 342a 0012 movew %a2@(18),%d2
_Chain_Append( &information->Inactive, &the_object->Node );
46b6c: 2f0b movel %a3,%sp@-
46b6e: 486a 001c pea %a2@(28)
46b72: 4eb9 0004 5fa8 jsr 45fa8 <_Chain_Append>
if ( information->auto_extend ) {
46b78: 508f addql #8,%sp
46b7a: 4a2a 0010 tstb %a2@(16)
46b7e: 6750 beqs 46bd0 <_Objects_Free+0x78> <== ALWAYS TAKEN
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
uint32_t allocation_size = information->allocation_size;
46b80: 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 ) -
46b82: 4280 clrl %d0 <== NOT EXECUTED
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
uint32_t allocation_size = information->allocation_size;
46b84: 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 ) -
46b86: 4282 clrl %d2 <== NOT EXECUTED
46b88: 302b 000a movew %a3@(10),%d0 <== NOT EXECUTED
46b8c: 342a 0008 movew %a2@(8),%d2 <== NOT EXECUTED
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
information->inactive_per_block[ block ]++;
46b90: 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 ) -
46b94: 9082 subl %d2,%d0 <== NOT EXECUTED
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
46b96: 342a 0012 movew %a2@(18),%d2 <== NOT EXECUTED
46b9a: 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 ) ) ) {
46b9e: 2401 movel %d1,%d2 <== NOT EXECUTED
46ba0: e28a lsrl #1,%d2 <== NOT EXECUTED
46ba2: 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 ]++;
46ba4: e588 lsll #2,%d0 <== NOT EXECUTED
46ba6: d1c0 addal %d0,%a0 <== NOT EXECUTED
46ba8: 5290 addql #1,%a0@ <== NOT EXECUTED
information->inactive++;
46baa: 302a 0028 movew %a2@(40),%d0 <== NOT EXECUTED
46bae: 5280 addql #1,%d0 <== NOT EXECUTED
46bb0: 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 ) ) ) {
46bb4: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED
46bba: b280 cmpl %d0,%d1 <== NOT EXECUTED
46bbc: 6412 bccs 46bd0 <_Objects_Free+0x78> <== NOT EXECUTED
_Objects_Shrink_information( information );
46bbe: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
}
}
46bc2: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED
46bc8: 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 );
46bca: 4ef9 0004 6ebc jmp 46ebc <_Objects_Shrink_information> <== NOT EXECUTED
}
}
}
46bd0: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3
46bd6: 4e5e unlk %fp
...
00046cbc <_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;
46cbc: 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 ) {
46cbe: 4281 clrl %d1
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
46cc0: 4e56 0000 linkw %fp,#0
46cc4: 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;
46cc8: 90a8 0006 subl %a0@(6),%d0
46ccc: d0ae 000c addl %fp@(12),%d0
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
46cd0: 2f0a movel %a2,%sp@-
46cd2: 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 ) {
46cd6: 3228 000e movew %a0@(14),%d1
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
46cda: 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 ) {
46cdc: b280 cmpl %d0,%d1
46cde: 6528 bcss 46d08 <_Objects_Get+0x4c> <== NEVER TAKEN
46ce0: 2239 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d1
46ce6: 5281 addql #1,%d1
46ce8: 23c1 0005 da2c movel %d1,5da2c <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
if ( (the_object = information->local_table[ index ]) != NULL ) {
46cee: 2068 0018 moveal %a0@(24),%a0
46cf2: 2430 0c00 movel %a0@(00000000,%d0:l:4),%d2
46cf6: 6704 beqs 46cfc <_Objects_Get+0x40> <== NEVER TAKEN
*location = OBJECTS_LOCAL;
46cf8: 4292 clrl %a2@
return the_object;
46cfa: 6012 bras 46d0e <_Objects_Get+0x52>
/*
* Valid Id for this API, Class and Node but the object has not
* been allocated yet.
*/
_Thread_Enable_dispatch();
46cfc: 4eb9 0004 7522 jsr 47522 <_Thread_Enable_dispatch> <== NOT EXECUTED
*location = OBJECTS_ERROR;
46d02: 7201 moveq #1,%d1 <== NOT EXECUTED
46d04: 2481 movel %d1,%a2@ <== NOT EXECUTED
return NULL;
46d06: 6006 bras 46d0e <_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;
46d08: 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;
46d0a: 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;
46d0c: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
#endif
}
46d0e: 2002 movel %d2,%d0
46d10: 242e fff8 movel %fp@(-8),%d2
46d14: 246e fffc moveal %fp@(-4),%a2
46d18: 4e5e unlk %fp <== NOT EXECUTED
00046c08 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint16_t the_class
)
{
46c08: 4e56 0000 linkw %fp,#0
46c0c: 2f03 movel %d3,%sp@-
46c0e: 362e 000e movew %fp@(14),%d3
46c12: 2f02 movel %d2,%sp@-
46c14: 242e 0008 movel %fp@(8),%d2
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
46c18: 4a43 tstw %d3
46c1a: 673a beqs 46c56 <_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 );
46c1c: 2f02 movel %d2,%sp@-
46c1e: 4eb9 0004 add0 jsr 4add0 <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
46c24: 588f addql #4,%sp
46c26: 4a80 tstl %d0
46c28: 672c beqs 46c56 <_Objects_Get_information+0x4e> <== NEVER TAKEN
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
46c2a: 0283 0000 ffff andil #65535,%d3
46c30: b083 cmpl %d3,%d0
46c32: 6522 bcss 46c56 <_Objects_Get_information+0x4e> <== NEVER TAKEN
return NULL;
if ( !_Objects_Information_table[ the_api ] )
46c34: 41f9 0005 d9e8 lea 5d9e8 <_Objects_Information_table>,%a0
46c3a: 2070 2c00 moveal %a0@(00000000,%d2:l:4),%a0
46c3e: 4a88 tstl %a0
46c40: 6714 beqs 46c56 <_Objects_Get_information+0x4e> <== NEVER TAKEN
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
46c42: 2030 3c00 movel %a0@(00000000,%d3:l:4),%d0
if ( !info )
46c46: 6710 beqs 46c58 <_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;
46c48: 2040 moveal %d0,%a0
46c4a: 4a68 000e tstw %a0@(14)
46c4e: 56c1 sne %d1
46c50: 49c1 extbl %d1
46c52: c081 andl %d1,%d0
46c54: 6002 bras 46c58 <_Objects_Get_information+0x50>
if ( the_class > (uint32_t) the_class_api_maximum )
return NULL;
if ( !_Objects_Information_table[ the_api ] )
return NULL;
46c56: 4280 clrl %d0 <== NOT EXECUTED
if ( info->maximum == 0 )
return NULL;
#endif
return info;
}
46c58: 242e fff8 movel %fp@(-8),%d2
46c5c: 262e fffc movel %fp@(-4),%d3
46c60: 4e5e unlk %fp <== NOT EXECUTED
00046c64 <_Objects_Get_isr_disable>:
{
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
46c64: 7001 moveq #1,%d0
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
46c66: 4e56 0000 linkw %fp,#0
46c6a: 226e 0008 moveal %fp@(8),%a1
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
46c6e: 90a9 0006 subl %a1@(6),%d0
46c72: d0ae 000c addl %fp@(12),%d0
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
46c76: 2f02 movel %d2,%sp@-
46c78: 206e 0010 moveal %fp@(16),%a0
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
_ISR_Disable( level );
46c7c: 243c 0000 0700 movel #1792,%d2
46c82: 40c1 movew %sr,%d1
46c84: 8481 orl %d1,%d2
46c86: 46c2 movew %d2,%sr
if ( information->maximum >= index ) {
46c88: 4282 clrl %d2
46c8a: 3429 000e movew %a1@(14),%d2
46c8e: b082 cmpl %d2,%d0
46c90: 621c bhis 46cae <_Objects_Get_isr_disable+0x4a> <== NEVER TAKEN
if ( (the_object = information->local_table[ index ]) != NULL ) {
46c92: 2269 0018 moveal %a1@(24),%a1
46c96: 2031 0c00 movel %a1@(00000000,%d0:l:4),%d0
46c9a: 670a beqs 46ca6 <_Objects_Get_isr_disable+0x42> <== NEVER TAKEN
*location = OBJECTS_LOCAL;
46c9c: 4290 clrl %a0@
*level_p = level;
46c9e: 206e 0014 moveal %fp@(20),%a0
46ca2: 2081 movel %d1,%a0@
return the_object;
46ca4: 6010 bras 46cb6 <_Objects_Get_isr_disable+0x52>
}
_ISR_Enable( level );
46ca6: 46c1 movew %d1,%sr <== NOT EXECUTED
*location = OBJECTS_ERROR;
46ca8: 7201 moveq #1,%d1 <== NOT EXECUTED
46caa: 2081 movel %d1,%a0@ <== NOT EXECUTED
return NULL;
46cac: 6008 bras 46cb6 <_Objects_Get_isr_disable+0x52> <== NOT EXECUTED
}
_ISR_Enable( level );
46cae: 46c1 movew %d1,%sr <== NOT EXECUTED
*location = OBJECTS_ERROR;
46cb0: 7001 moveq #1,%d0 <== NOT EXECUTED
46cb2: 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;
46cb4: 4280 clrl %d0 <== NOT EXECUTED
#endif
}
46cb6: 241f movel %sp@+,%d2
46cb8: 4e5e unlk %fp <== NOT EXECUTED
00047ff0 <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
47ff0: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
47ff4: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED
47ff8: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
47ffc: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
48000: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
48004: 4a84 tstl %d4 <== NOT EXECUTED
48006: 6700 00c2 beqw 480ca <_Objects_Get_name_as_string+0xda><== NOT EXECUTED
return NULL;
if ( name == NULL )
4800a: 4a82 tstl %d2 <== NOT EXECUTED
4800c: 6700 00be beqw 480cc <_Objects_Get_name_as_string+0xdc><== NOT EXECUTED
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
48010: 4a83 tstl %d3 <== NOT EXECUTED
48012: 660a bnes 4801e <_Objects_Get_name_as_string+0x2e><== NOT EXECUTED
48014: 2079 0006 7e46 moveal 67e46 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4801a: 2628 0008 movel %a0@(8),%d3 <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
4801e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
48020: 4eb9 0004 7f10 jsr 47f10 <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
48026: 588f addql #4,%sp <== NOT EXECUTED
if ( name == NULL )
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
information = _Objects_Get_information_id( tmpId );
48028: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( !information )
4802a: 4a80 tstl %d0 <== NOT EXECUTED
4802c: 6700 009c beqw 480ca <_Objects_Get_name_as_string+0xda><== NOT EXECUTED
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
48030: 486e fffc pea %fp@(-4) <== NOT EXECUTED
48034: 2f03 movel %d3,%sp@- <== NOT EXECUTED
48036: 2f00 movel %d0,%sp@- <== NOT EXECUTED
48038: 4eb9 0004 80d8 jsr 480d8 <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
4803e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
48042: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
48046: 6600 0082 bnew 480ca <_Objects_Get_name_as_string+0xda><== NOT EXECUTED
return NULL;
case OBJECTS_LOCAL:
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
4804a: 4a2a 0032 tstb %a2@(50) <== NOT EXECUTED
4804e: 670c beqs 4805c <_Objects_Get_name_as_string+0x6c><== NOT EXECUTED
s = the_object->name.name_p;
48050: 2040 moveal %d0,%a0 <== NOT EXECUTED
48052: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED
lname[ 4 ] = '\0';
s = lname;
}
d = name;
if ( s ) {
48056: 6638 bnes 48090 <_Objects_Get_name_as_string+0xa0><== NOT EXECUTED
48058: 2042 moveal %d2,%a0 <== NOT EXECUTED
4805a: 6064 bras 480c0 <_Objects_Get_name_as_string+0xd0><== 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;
4805c: 2040 moveal %d0,%a0 <== NOT EXECUTED
lname[ 0 ] = (u32_name >> 24) & 0xff;
4805e: 7618 moveq #24,%d3 <== 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;
48060: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED
lname[ 0 ] = (u32_name >> 24) & 0xff;
48064: 2200 movel %d0,%d1 <== NOT EXECUTED
48066: e6a9 lsrl %d3,%d1 <== NOT EXECUTED
48068: 1d41 fff7 moveb %d1,%fp@(-9) <== NOT EXECUTED
lname[ 1 ] = (u32_name >> 16) & 0xff;
4806c: 2200 movel %d0,%d1 <== NOT EXECUTED
4806e: 4241 clrw %d1 <== NOT EXECUTED
48070: 4841 swap %d1 <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
48072: 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;
48076: 1d41 fff8 moveb %d1,%fp@(-8) <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
4807a: 2200 movel %d0,%d1 <== NOT EXECUTED
4807c: e089 lsrl #8,%d1 <== NOT EXECUTED
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
4807e: 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;
48080: 1d41 fff9 moveb %d1,%fp@(-7) <== NOT EXECUTED
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
48084: 1d40 fffb moveb %d0,%fp@(-5) <== NOT EXECUTED
s = lname;
48088: 200e movel %fp,%d0 <== NOT EXECUTED
4808a: 0680 ffff fff7 addil #-9,%d0 <== 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';
48090: 2240 moveal %d0,%a1 <== NOT EXECUTED
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
*d = (isprint((unsigned char)*s)) ? *s : '*';
48092: 2042 moveal %d2,%a0 <== NOT EXECUTED
48094: 4281 clrl %d1 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
48096: 5384 subql #1,%d4 <== NOT EXECUTED
48098: 601e bras 480b8 <_Objects_Get_name_as_string+0xc8><== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
4809a: 4283 clrl %d3 <== NOT EXECUTED
4809c: 1600 moveb %d0,%d3 <== NOT EXECUTED
4809e: 2479 0005 e54c moveal 5e54c <__ctype_ptr__>,%a2 <== NOT EXECUTED
480a4: 1632 3801 moveb %a2@(00000001,%d3:l),%d3 <== NOT EXECUTED
480a8: 49c3 extbl %d3 <== NOT EXECUTED
480aa: 0283 0000 0097 andil #151,%d3 <== NOT EXECUTED
480b0: 6602 bnes 480b4 <_Objects_Get_name_as_string+0xc4><== NOT EXECUTED
480b2: 702a moveq #42,%d0 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
480b4: 5281 addql #1,%d1 <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
480b6: 10c0 moveb %d0,%a0@+ <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
480b8: b881 cmpl %d1,%d4 <== NOT EXECUTED
480ba: 6304 blss 480c0 <_Objects_Get_name_as_string+0xd0><== NOT EXECUTED
480bc: 1019 moveb %a1@+,%d0 <== NOT EXECUTED
480be: 66da bnes 4809a <_Objects_Get_name_as_string+0xaa><== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
480c0: 4210 clrb %a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
480c2: 4eb9 0004 88ca jsr 488ca <_Thread_Enable_dispatch> <== NOT EXECUTED
return name;
480c8: 6002 bras 480cc <_Objects_Get_name_as_string+0xdc><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
/* not supported */
#endif
case OBJECTS_ERROR:
return NULL;
480ca: 4282 clrl %d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
return name;
}
return NULL; /* unreachable path */
}
480cc: 2002 movel %d2,%d0 <== NOT EXECUTED
480ce: 4cee 041c ffe4 moveml %fp@(-28),%d2-%d4/%a2 <== NOT EXECUTED
480d4: 4e5e unlk %fp <== NOT EXECUTED
00046e48 <_Objects_Get_next>:
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
46e48: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
46e4c: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED
46e50: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
46e54: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46e58: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
46e5c: 286e 0014 moveal %fp@(20),%a4 <== NOT EXECUTED
Objects_Control *object;
Objects_Id next_id;
if ( !information )
46e60: 4a8b tstl %a3 <== NOT EXECUTED
46e62: 6744 beqs 46ea8 <_Objects_Get_next+0x60> <== NOT EXECUTED
return NULL;
if ( !location_p )
46e64: 4a8a tstl %a2 <== NOT EXECUTED
46e66: 6740 beqs 46ea8 <_Objects_Get_next+0x60> <== NOT EXECUTED
return NULL;
if ( !next_id_p )
46e68: 4a8c tstl %a4 <== NOT EXECUTED
46e6a: 673c beqs 46ea8 <_Objects_Get_next+0x60> <== NOT EXECUTED
return NULL;
if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)
46e6c: 4a42 tstw %d2 <== NOT EXECUTED
46e6e: 6604 bnes 46e74 <_Objects_Get_next+0x2c> <== NOT EXECUTED
next_id = information->minimum_id;
46e70: 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);
46e74: 4bf9 0004 6eb4 lea 46eb4 <_Objects_Get>,%a5 <== NOT EXECUTED
else
next_id = id;
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
46e7a: 4281 clrl %d1 <== NOT EXECUTED
46e7c: 4280 clrl %d0 <== NOT EXECUTED
46e7e: 322b 000e movew %a3@(14),%d1 <== NOT EXECUTED
46e82: 3002 movew %d2,%d0 <== NOT EXECUTED
46e84: b081 cmpl %d1,%d0 <== NOT EXECUTED
46e86: 630a blss 46e92 <_Objects_Get_next+0x4a> <== NOT EXECUTED
{
*location_p = OBJECTS_ERROR;
46e88: 7201 moveq #1,%d1 <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
46e8a: 70ff moveq #-1,%d0 <== NOT EXECUTED
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
{
*location_p = OBJECTS_ERROR;
46e8c: 2481 movel %d1,%a2@ <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
46e8e: 2880 movel %d0,%a4@ <== NOT EXECUTED
46e90: 6016 bras 46ea8 <_Objects_Get_next+0x60> <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
46e92: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46e94: 2f02 movel %d2,%sp@- <== NOT EXECUTED
next_id++;
46e96: 5282 addql #1,%d2 <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
46e98: 2f0b movel %a3,%sp@- <== NOT EXECUTED
46e9a: 4e95 jsr %a5@ <== NOT EXECUTED
next_id++;
} while (*location_p != OBJECTS_LOCAL);
46e9c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46ea0: 4a92 tstl %a2@ <== NOT EXECUTED
46ea2: 66d6 bnes 46e7a <_Objects_Get_next+0x32> <== NOT EXECUTED
*next_id_p = next_id;
46ea4: 2882 movel %d2,%a4@ <== NOT EXECUTED
return object;
46ea6: 6002 bras 46eaa <_Objects_Get_next+0x62> <== NOT EXECUTED
if ( !location_p )
return NULL;
if ( !next_id_p )
return NULL;
46ea8: 4280 clrl %d0 <== NOT EXECUTED
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
return 0;
}
46eaa: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED
46eb0: 4e5e unlk %fp <== NOT EXECUTED
000543a4 <_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;
543a4: 7001 moveq #1,%d0 <== NOT EXECUTED
if ( information->maximum >= index ) {
543a6: 4281 clrl %d1 <== NOT EXECUTED
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
543a8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
543ac: 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;
543b0: 90a8 0006 subl %a0@(6),%d0 <== NOT EXECUTED
543b4: d0ae 000c addl %fp@(12),%d0 <== NOT EXECUTED
if ( information->maximum >= index ) {
543b8: 3228 000e movew %a0@(14),%d1 <== NOT EXECUTED
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
543bc: 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 ) {
543c0: b081 cmpl %d1,%d0 <== NOT EXECUTED
543c2: 620e bhis 543d2 <_Objects_Get_no_protection+0x2e><== NOT EXECUTED
if ( (the_object = information->local_table[ index ]) != NULL ) {
543c4: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED
543c8: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
543cc: 6704 beqs 543d2 <_Objects_Get_no_protection+0x2e><== NOT EXECUTED
*location = OBJECTS_LOCAL;
543ce: 4291 clrl %a1@ <== NOT EXECUTED
return the_object;
543d0: 6006 bras 543d8 <_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;
543d2: 7001 moveq #1,%d0 <== NOT EXECUTED
543d4: 2280 movel %d0,%a1@ <== NOT EXECUTED
return NULL;
543d6: 4280 clrl %d0 <== NOT EXECUTED
}
543d8: 4e5e unlk %fp <== NOT EXECUTED
00047be8 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
47be8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
47bec: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
47bf0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
47bf2: 4a81 tstl %d1 <== NOT EXECUTED
47bf4: 660a bnes 47c00 <_Objects_Id_to_name+0x18> <== NOT EXECUTED
47bf6: 2079 0005 f384 moveal 5f384 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
47bfc: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED
47c00: 7418 moveq #24,%d2 <== NOT EXECUTED
47c02: 2001 movel %d1,%d0 <== NOT EXECUTED
47c04: e4a8 lsrl %d2,%d0 <== NOT EXECUTED
47c06: 143c 0007 moveb #7,%d2 <== NOT EXECUTED
47c0a: 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 )
47c0c: 143c 0002 moveb #2,%d2 <== NOT EXECUTED
47c10: 2040 moveal %d0,%a0 <== NOT EXECUTED
47c12: 5388 subql #1,%a0 <== NOT EXECUTED
47c14: b488 cmpl %a0,%d2 <== NOT EXECUTED
47c16: 6540 bcss 47c58 <_Objects_Id_to_name+0x70> <== NOT EXECUTED
47c18: 6048 bras 47c62 <_Objects_Id_to_name+0x7a> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
47c1a: 2001 movel %d1,%d0 <== NOT EXECUTED
47c1c: 741b moveq #27,%d2 <== NOT EXECUTED
47c1e: 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 ];
47c20: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED
if ( !information )
47c24: 4a88 tstl %a0 <== NOT EXECUTED
47c26: 6730 beqs 47c58 <_Objects_Id_to_name+0x70> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
47c28: 4a28 0032 tstb %a0@(50) <== NOT EXECUTED
47c2c: 662a bnes 47c58 <_Objects_Id_to_name+0x70> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
47c2e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47c32: 2f01 movel %d1,%sp@- <== NOT EXECUTED
47c34: 2f08 movel %a0,%sp@- <== NOT EXECUTED
47c36: 4eb9 0004 7b88 jsr 47b88 <_Objects_Get> <== NOT EXECUTED
if ( !the_object )
47c3c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47c40: 4a80 tstl %d0 <== NOT EXECUTED
47c42: 6714 beqs 47c58 <_Objects_Id_to_name+0x70> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
47c44: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
47c48: 2240 moveal %d0,%a1 <== NOT EXECUTED
47c4a: 20a9 000c movel %a1@(12),%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
47c4e: 4eb9 0004 847a jsr 4847a <_Thread_Enable_dispatch> <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
47c54: 4280 clrl %d0 <== NOT EXECUTED
47c56: 6002 bras 47c5a <_Objects_Id_to_name+0x72> <== 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;
47c58: 7003 moveq #3,%d0 <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
47c5a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
47c5e: 4e5e unlk %fp <== NOT EXECUTED
47c60: 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 ] )
47c62: 41f9 0005 eeb0 lea 5eeb0 <_Objects_Information_table>,%a0 <== NOT EXECUTED
47c68: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED
47c6c: 4a88 tstl %a0 <== NOT EXECUTED
47c6e: 66aa bnes 47c1a <_Objects_Id_to_name+0x32> <== NOT EXECUTED
47c70: 60e6 bras 47c58 <_Objects_Id_to_name+0x70> <== NOT EXECUTED
...
000510ec <_Objects_Name_to_id_string>:
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string(
Objects_Information *information,
const char *name,
Objects_Id *id
)
{
510ec: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
510f0: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED
510f4: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
510f8: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
510fc: 286e 0010 moveal %fp@(16),%a4 <== NOT EXECUTED
uint32_t index;
uint32_t name_length;
/* ASSERT: information->is_string == true */
if ( !id )
51100: 4a8c tstl %a4 <== NOT EXECUTED
51102: 6750 beqs 51154 <_Objects_Name_to_id_string+0x68><== NOT EXECUTED
return OBJECTS_INVALID_ADDRESS;
if ( !name )
51104: 4a83 tstl %d3 <== NOT EXECUTED
51106: 6750 beqs 51158 <_Objects_Name_to_id_string+0x6c><== NOT EXECUTED
return OBJECTS_INVALID_NAME;
if ( information->maximum != 0 ) {
51108: 382b 000e movew %a3@(14),%d4 <== NOT EXECUTED
5110c: 674a beqs 51158 <_Objects_Name_to_id_string+0x6c><== NOT EXECUTED
5110e: 7401 moveq #1,%d2 <== NOT EXECUTED
continue;
if ( !the_object->name.name_p )
continue;
if (!strncmp( name, the_object->name.name_p, information->name_length)) {
51110: 4bf9 0005 4848 lea 54848 <strncmp>,%a5 <== NOT EXECUTED
return OBJECTS_INVALID_NAME;
if ( information->maximum != 0 ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
51116: 0284 0000 ffff andil #65535,%d4 <== NOT EXECUTED
5111c: 6030 bras 5114e <_Objects_Name_to_id_string+0x62><== NOT EXECUTED
the_object = information->local_table[ index ];
5111e: 206b 0018 moveal %a3@(24),%a0 <== NOT EXECUTED
51122: 2470 2c00 moveal %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED
if ( !the_object )
51126: 4a8a tstl %a2 <== NOT EXECUTED
51128: 6722 beqs 5114c <_Objects_Name_to_id_string+0x60><== NOT EXECUTED
continue;
if ( !the_object->name.name_p )
5112a: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED
5112e: 671c beqs 5114c <_Objects_Name_to_id_string+0x60><== NOT EXECUTED
continue;
if (!strncmp( name, the_object->name.name_p, information->name_length)) {
51130: 4281 clrl %d1 <== NOT EXECUTED
51132: 322b 0034 movew %a3@(52),%d1 <== NOT EXECUTED
51136: 2f01 movel %d1,%sp@- <== NOT EXECUTED
51138: 2f00 movel %d0,%sp@- <== NOT EXECUTED
5113a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
5113c: 4e95 jsr %a5@ <== NOT EXECUTED
5113e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51142: 4a80 tstl %d0 <== NOT EXECUTED
51144: 6606 bnes 5114c <_Objects_Name_to_id_string+0x60><== NOT EXECUTED
*id = the_object->id;
51146: 28aa 0008 movel %a2@(8),%a4@ <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
5114a: 600e bras 5115a <_Objects_Name_to_id_string+0x6e><== NOT EXECUTED
return OBJECTS_INVALID_NAME;
if ( information->maximum != 0 ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
5114c: 5282 addql #1,%d2 <== NOT EXECUTED
5114e: b882 cmpl %d2,%d4 <== NOT EXECUTED
51150: 64cc bccs 5111e <_Objects_Name_to_id_string+0x32><== NOT EXECUTED
51152: 6004 bras 51158 <_Objects_Name_to_id_string+0x6c><== NOT EXECUTED
uint32_t name_length;
/* ASSERT: information->is_string == true */
if ( !id )
return OBJECTS_INVALID_ADDRESS;
51154: 7002 moveq #2,%d0 <== NOT EXECUTED
51156: 6002 bras 5115a <_Objects_Name_to_id_string+0x6e><== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
}
}
return OBJECTS_INVALID_NAME;
51158: 7001 moveq #1,%d0 <== NOT EXECUTED
}
5115a: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED
51160: 4e5e unlk %fp <== NOT EXECUTED
00046e48 <_Objects_Name_to_id_u32>:
Objects_Information *information,
uint32_t name,
uint32_t node,
Objects_Id *id
)
{
46e48: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
46e4c: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
46e50: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
46e54: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46e58: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
46e5c: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
46e60: 4a8a tstl %a2 <== NOT EXECUTED
46e62: 674a beqs 46eae <_Objects_Name_to_id_u32+0x66> <== NOT EXECUTED
return OBJECTS_INVALID_ADDRESS;
if ( name == 0 )
46e64: 4a82 tstl %d2 <== NOT EXECUTED
46e66: 674a beqs 46eb2 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
46e68: 3229 000e movew %a1@(14),%d1 <== NOT EXECUTED
46e6c: 6744 beqs 46eb2 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
46e6e: 4a80 tstl %d0 <== NOT EXECUTED
46e70: 672e beqs 46ea0 <_Objects_Name_to_id_u32+0x58> <== NOT EXECUTED
(node == OBJECTS_SEARCH_ALL_NODES ||
46e72: 0c80 7fff ffff cmpil #2147483647,%d0 <== NOT EXECUTED
46e78: 6726 beqs 46ea0 <_Objects_Name_to_id_u32+0x58> <== NOT EXECUTED
node == OBJECTS_SEARCH_LOCAL_NODE ||
46e7a: 7601 moveq #1,%d3 <== NOT EXECUTED
46e7c: b680 cmpl %d0,%d3 <== NOT EXECUTED
46e7e: 6632 bnes 46eb2 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
46e80: 601e bras 46ea0 <_Objects_Name_to_id_u32+0x58> <== NOT EXECUTED
if ( search_local_node ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
the_object = information->local_table[ index ];
46e82: 2069 0018 moveal %a1@(24),%a0 <== NOT EXECUTED
46e86: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED
if ( !the_object )
46e8a: 4a88 tstl %a0 <== NOT EXECUTED
46e8c: 670e beqs 46e9c <_Objects_Name_to_id_u32+0x54> <== NOT EXECUTED
continue;
if ( name == the_object->name.name_u32 ) {
46e8e: b4a8 000c cmpl %a0@(12),%d2 <== NOT EXECUTED
46e92: 6608 bnes 46e9c <_Objects_Name_to_id_u32+0x54> <== NOT EXECUTED
*id = the_object->id;
46e94: 24a8 0008 movel %a0@(8),%a2@ <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
46e98: 4280 clrl %d0 <== NOT EXECUTED
46e9a: 6018 bras 46eb4 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED
search_local_node = true;
if ( search_local_node ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
46e9c: 5280 addql #1,%d0 <== NOT EXECUTED
46e9e: 6008 bras 46ea8 <_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 ||
46ea0: 7001 moveq #1,%d0 <== NOT EXECUTED
search_local_node = true;
if ( search_local_node ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
46ea2: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED
46ea8: b280 cmpl %d0,%d1 <== NOT EXECUTED
46eaa: 64d6 bccs 46e82 <_Objects_Name_to_id_u32+0x3a> <== NOT EXECUTED
46eac: 6004 bras 46eb2 <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED
#endif
/* ASSERT: information->is_string == false */
if ( !id )
return OBJECTS_INVALID_ADDRESS;
46eae: 7002 moveq #2,%d0 <== NOT EXECUTED
46eb0: 6002 bras 46eb4 <_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;
46eb2: 7001 moveq #1,%d0 <== NOT EXECUTED
#endif
}
46eb4: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED
46eb8: 4e5e unlk %fp <== NOT EXECUTED
00046e18 <_Objects_Namespace_remove>:
void _Objects_Namespace_remove(
Objects_Information *information,
Objects_Control *the_object
)
{
46e18: 4e56 0000 linkw %fp,#0
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/*
* If this is a string format name, then free the memory.
*/
if ( information->is_string && the_object->name.name_p )
46e1c: 206e 0008 moveal %fp@(8),%a0
void _Objects_Namespace_remove(
Objects_Information *information,
Objects_Control *the_object
)
{
46e20: 2f0a movel %a2,%sp@-
46e22: 246e 000c moveal %fp@(12),%a2
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/*
* If this is a string format name, then free the memory.
*/
if ( information->is_string && the_object->name.name_p )
46e26: 4a28 0032 tstb %a0@(50)
46e2a: 6710 beqs 46e3c <_Objects_Namespace_remove+0x24> <== ALWAYS TAKEN
46e2c: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED
46e30: 670a beqs 46e3c <_Objects_Namespace_remove+0x24> <== NOT EXECUTED
_Workspace_Free( (void *)the_object->name.name_p );
46e32: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46e34: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
46e3a: 588f addql #4,%sp <== NOT EXECUTED
* Clear out either format.
*/
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
the_object->name.name_p = NULL;
#endif
the_object->name.name_u32 = 0;
46e3c: 42aa 000c clrl %a2@(12)
}
46e40: 246e fffc moveal %fp@(-4),%a2
46e44: 4e5e unlk %fp <== NOT EXECUTED
00047234 <_Objects_Set_name>:
{
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
47234: 4280 clrl %d0 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
47236: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4723a: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED
4723e: 2a6e 0008 moveal %fp@(8),%a5 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
47242: 302d 0034 movew %a5@(52),%d0 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
47246: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
4724a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
4724c: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
47250: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47252: 4eb9 0004 e460 jsr 4e460 <strnlen> <== NOT EXECUTED
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
47258: 508f addql #8,%sp <== NOT EXECUTED
{
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
4725a: 2640 moveal %d0,%a3 <== NOT EXECUTED
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
4725c: 4a2d 0032 tstb %a5@(50) <== NOT EXECUTED
47260: 6744 beqs 472a6 <_Objects_Set_name+0x72> <== NOT EXECUTED
char *d;
d = _Workspace_Allocate( length + 1 );
47262: 486b 0001 pea %a3@(1) <== NOT EXECUTED
47266: 4eb9 0004 8b58 jsr 48b58 <_Workspace_Allocate> <== NOT EXECUTED
if ( !d )
4726c: 588f addql #4,%sp <== NOT EXECUTED
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
char *d;
d = _Workspace_Allocate( length + 1 );
4726e: 2a40 moveal %d0,%a5 <== NOT EXECUTED
if ( !d )
47270: 4a80 tstl %d0 <== NOT EXECUTED
47272: 6700 0082 beqw 472f6 <_Objects_Set_name+0xc2> <== NOT EXECUTED
return false;
if ( the_object->name.name_p ) {
47276: 202c 000c movel %a4@(12),%d0 <== NOT EXECUTED
4727a: 670e beqs 4728a <_Objects_Set_name+0x56> <== NOT EXECUTED
_Workspace_Free( (void *)the_object->name.name_p );
4727c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4727e: 4eb9 0004 8b74 jsr 48b74 <_Workspace_Free> <== NOT EXECUTED
the_object->name.name_p = NULL;
47284: 588f addql #4,%sp <== NOT EXECUTED
47286: 42ac 000c clrl %a4@(12) <== NOT EXECUTED
}
strncpy( d, name, length );
4728a: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4728c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4728e: 2f0d movel %a5,%sp@- <== NOT EXECUTED
47290: 4eb9 0004 e3dc jsr 4e3dc <strncpy> <== NOT EXECUTED
d[length] = '\0';
the_object->name.name_p = d;
47296: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
_Workspace_Free( (void *)the_object->name.name_p );
the_object->name.name_p = NULL;
}
strncpy( d, name, length );
d[length] = '\0';
4729a: 4200 clrb %d0 <== NOT EXECUTED
4729c: 1b80 b800 moveb %d0,%a5@(00000000,%a3:l) <== NOT EXECUTED
the_object->name.name_p = d;
472a0: 294d 000c movel %a5,%a4@(12) <== NOT EXECUTED
472a4: 604c bras 472f2 <_Objects_Set_name+0xbe> <== NOT EXECUTED
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
472a6: 7418 moveq #24,%d2 <== NOT EXECUTED
472a8: 1212 moveb %a2@,%d1 <== NOT EXECUTED
472aa: 7020 moveq #32,%d0 <== NOT EXECUTED
472ac: 4840 swap %d0 <== NOT EXECUTED
472ae: 49c1 extbl %d1 <== NOT EXECUTED
472b0: e5a9 lsll %d2,%d1 <== NOT EXECUTED
472b2: 143c 0001 moveb #1,%d2 <== NOT EXECUTED
472b6: b48b cmpl %a3,%d2 <== NOT EXECUTED
472b8: 640a bccs 472c4 <_Objects_Set_name+0x90> <== NOT EXECUTED
472ba: 102a 0001 moveb %a2@(1),%d0 <== NOT EXECUTED
472be: 49c0 extbl %d0 <== NOT EXECUTED
472c0: 4840 swap %d0 <== NOT EXECUTED
472c2: 4240 clrw %d0 <== NOT EXECUTED
472c4: 7402 moveq #2,%d2 <== NOT EXECUTED
472c6: 8280 orl %d0,%d1 <== NOT EXECUTED
472c8: 203c 0000 2000 movel #8192,%d0 <== NOT EXECUTED
472ce: b48b cmpl %a3,%d2 <== NOT EXECUTED
472d0: 6408 bccs 472da <_Objects_Set_name+0xa6> <== NOT EXECUTED
472d2: 102a 0002 moveb %a2@(2),%d0 <== NOT EXECUTED
472d6: 49c0 extbl %d0 <== NOT EXECUTED
472d8: e188 lsll #8,%d0 <== NOT EXECUTED
472da: 8081 orl %d1,%d0 <== NOT EXECUTED
472dc: 7203 moveq #3,%d1 <== NOT EXECUTED
472de: b28b cmpl %a3,%d1 <== NOT EXECUTED
472e0: 6408 bccs 472ea <_Objects_Set_name+0xb6> <== NOT EXECUTED
472e2: 142a 0003 moveb %a2@(3),%d2 <== NOT EXECUTED
472e6: 49c2 extbl %d2 <== NOT EXECUTED
472e8: 6002 bras 472ec <_Objects_Set_name+0xb8> <== NOT EXECUTED
472ea: 7420 moveq #32,%d2 <== NOT EXECUTED
472ec: 8082 orl %d2,%d0 <== NOT EXECUTED
472ee: 2940 000c movel %d0,%a4@(12) <== NOT EXECUTED
((3 < length) ? s[ 3 ] : ' ')
);
}
return true;
472f2: 7001 moveq #1,%d0 <== NOT EXECUTED
472f4: 6002 bras 472f8 <_Objects_Set_name+0xc4> <== NOT EXECUTED
if ( information->is_string ) {
char *d;
d = _Workspace_Allocate( length + 1 );
if ( !d )
return false;
472f6: 4200 clrb %d0 <== NOT EXECUTED
);
}
return true;
}
472f8: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED
472fe: 4e5e unlk %fp <== NOT EXECUTED
...
00046ebc <_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) /
46ebc: 4280 clrl %d0 <== NOT EXECUTED
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
46ebe: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
46ec2: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
46ec6: 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 );
46eca: 4283 clrl %d3 <== NOT EXECUTED
block_count = (information->maximum - index_base) /
46ecc: 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 );
46ece: 362a 0008 movew %a2@(8),%d3 <== NOT EXECUTED
block_count = (information->maximum - index_base) /
46ed2: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED
46ed6: 382a 0012 movew %a2@(18),%d4 <== NOT EXECUTED
46eda: 9083 subl %d3,%d0 <== NOT EXECUTED
46edc: 4c44 0000 remul %d4,%d0,%d0 <== NOT EXECUTED
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
46ee0: 4281 clrl %d1 <== NOT EXECUTED
46ee2: 6072 bras 46f56 <_Objects_Shrink_information+0x9a><== NOT EXECUTED
46ee4: 2401 movel %d1,%d2 <== NOT EXECUTED
46ee6: e58a lsll #2,%d2 <== NOT EXECUTED
if ( information->inactive_per_block[ block ] ==
46ee8: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED
46eec: b8b0 2800 cmpl %a0@(00000000,%d2:l),%d4 <== NOT EXECUTED
46ef0: 6660 bnes 46f52 <_Objects_Shrink_information+0x96><== NOT EXECUTED
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
46ef2: 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 );
46ef6: 47f9 0004 5fe0 lea 45fe0 <_Chain_Extract>,%a3 <== NOT EXECUTED
46efc: 6002 bras 46f00 <_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;
46efe: 2044 moveal %d4,%a0 <== NOT EXECUTED
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
do {
index = _Objects_Get_index( the_object->id );
46f00: 4280 clrl %d0 <== NOT EXECUTED
46f02: 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;
46f06: 2810 movel %a0@,%d4 <== NOT EXECUTED
if ((index >= index_base) &&
46f08: b680 cmpl %d0,%d3 <== NOT EXECUTED
46f0a: 6212 bhis 46f1e <_Objects_Shrink_information+0x62><== NOT EXECUTED
(index < (index_base + information->allocation_size))) {
46f0c: 4281 clrl %d1 <== NOT EXECUTED
46f0e: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED
46f12: 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) &&
46f14: b280 cmpl %d0,%d1 <== NOT EXECUTED
46f16: 6306 blss 46f1e <_Objects_Shrink_information+0x62><== NOT EXECUTED
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
46f18: 2f08 movel %a0,%sp@- <== NOT EXECUTED
46f1a: 4e93 jsr %a3@ <== NOT EXECUTED
46f1c: 588f addql #4,%sp <== NOT EXECUTED
}
}
while ( the_object );
46f1e: 4a84 tstl %d4 <== NOT EXECUTED
46f20: 66dc bnes 46efe <_Objects_Shrink_information+0x42><== NOT EXECUTED
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
46f22: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED
46f26: 2f30 2800 movel %a0@(00000000,%d2:l),%sp@- <== NOT EXECUTED
46f2a: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
information->object_blocks[ block ] = NULL;
46f30: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
return;
46f34: 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;
46f36: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED
information->inactive_per_block[ block ] = 0;
46f3a: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED
information->inactive -= information->allocation_size;
46f3e: 302a 0028 movew %a2@(40),%d0 <== NOT EXECUTED
46f42: 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;
46f46: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED
information->inactive -= information->allocation_size;
46f4a: 9081 subl %d1,%d0 <== NOT EXECUTED
46f4c: 3540 0028 movew %d0,%a2@(40) <== NOT EXECUTED
return;
46f50: 6008 bras 46f5a <_Objects_Shrink_information+0x9e><== NOT EXECUTED
}
index_base += information->allocation_size;
46f52: 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++ ) {
46f54: 5281 addql #1,%d1 <== NOT EXECUTED
46f56: b081 cmpl %d1,%d0 <== NOT EXECUTED
46f58: 628a bhis 46ee4 <_Objects_Shrink_information+0x28><== NOT EXECUTED
return;
}
index_base += information->allocation_size;
}
}
46f5a: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
46f60: 4e5e unlk %fp <== NOT EXECUTED
00047450 <_POSIX_Absolute_timeout_to_ticks>:
*/
POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks(
const struct timespec *abstime,
Watchdog_Interval *ticks_out
)
{
47450: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
47454: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED
47458: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4745c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
/*
* Make sure there is always a value returned.
*/
*ticks_out = 0;
47460: 4292 clrl %a2@ <== NOT EXECUTED
/*
* Is the absolute time even valid?
*/
if ( !_Timespec_Is_valid(abstime) )
47462: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47464: 4eb9 0004 adf8 jsr 4adf8 <_Timespec_Is_valid> <== NOT EXECUTED
4746a: 588f addql #4,%sp <== NOT EXECUTED
4746c: 4a00 tstb %d0 <== NOT EXECUTED
4746e: 674c beqs 474bc <_POSIX_Absolute_timeout_to_ticks+0x6c><== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_INVALID;
/*
* Is the absolute time in the past?
*/
_TOD_Get( ¤t_time );
47470: 240e movel %fp,%d2 <== NOT EXECUTED
47472: 5182 subql #8,%d2 <== NOT EXECUTED
47474: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47476: 4eb9 0004 8f94 jsr 48f94 <_TOD_Get> <== NOT EXECUTED
if ( _Timespec_Less_than( abstime, ¤t_time ) )
4747c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4747e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47480: 4eb9 0004 ae20 jsr 4ae20 <_Timespec_Less_than> <== NOT EXECUTED
47486: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4748a: 4a00 tstb %d0 <== NOT EXECUTED
4748c: 6632 bnes 474c0 <_POSIX_Absolute_timeout_to_ticks+0x70><== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;
/*
* How long until the requested absolute time?
*/
_Timespec_Subtract( ¤t_time, abstime, &difference );
4748e: 280e movel %fp,%d4 <== NOT EXECUTED
47490: 0684 ffff fff0 addil #-16,%d4 <== NOT EXECUTED
47496: 2f04 movel %d4,%sp@- <== NOT EXECUTED
47498: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4749a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4749c: 4eb9 0004 ae50 jsr 4ae50 <_Timespec_Subtract> <== NOT EXECUTED
/*
* Internally the SuperCore uses ticks, so convert to them.
*/
*ticks_out = _Timespec_To_ticks( &difference );
474a2: 2f04 movel %d4,%sp@- <== NOT EXECUTED
474a4: 4eb9 0004 ae94 jsr 4ae94 <_Timespec_To_ticks> <== NOT EXECUTED
/*
* If the difference was 0, then the future is now. It is so bright
* we better wear shades.
*/
if ( !*ticks_out )
474aa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_IS_NOW;
474ae: 7202 moveq #2,%d1 <== NOT EXECUTED
_Timespec_Subtract( ¤t_time, abstime, &difference );
/*
* Internally the SuperCore uses ticks, so convert to them.
*/
*ticks_out = _Timespec_To_ticks( &difference );
474b0: 2480 movel %d0,%a2@ <== NOT EXECUTED
/*
* If the difference was 0, then the future is now. It is so bright
* we better wear shades.
*/
if ( !*ticks_out )
return POSIX_ABSOLUTE_TIMEOUT_IS_NOW;
474b2: 56c0 sne %d0 <== NOT EXECUTED
474b4: 49c0 extbl %d0 <== NOT EXECUTED
474b6: 9280 subl %d0,%d1 <== NOT EXECUTED
474b8: 2001 movel %d1,%d0 <== NOT EXECUTED
474ba: 6006 bras 474c2 <_POSIX_Absolute_timeout_to_ticks+0x72><== NOT EXECUTED
/*
* Is the absolute time even valid?
*/
if ( !_Timespec_Is_valid(abstime) )
return POSIX_ABSOLUTE_TIMEOUT_INVALID;
474bc: 4280 clrl %d0 <== NOT EXECUTED
474be: 6002 bras 474c2 <_POSIX_Absolute_timeout_to_ticks+0x72><== NOT EXECUTED
* Is the absolute time in the past?
*/
_TOD_Get( ¤t_time );
if ( _Timespec_Less_than( abstime, ¤t_time ) )
return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;
474c0: 7001 moveq #1,%d0 <== NOT EXECUTED
/*
* This is the case we were expecting and it took this long to
* get here.
*/
return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE;
}
474c2: 4cee 041c ffe0 moveml %fp@(-32),%d2-%d4/%a2 <== NOT EXECUTED
474c8: 4e5e unlk %fp <== NOT EXECUTED
0004af58 <_POSIX_Barrier_Translate_core_barrier_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_barrier_status > CORE_BARRIER_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Barrier_Return_codes[the_barrier_status];
}
4af58: 41f9 0005 cb96 lea 5cb96 <_POSIX_Barrier_Return_codes>,%a0 <== NOT EXECUTED
int _POSIX_Barrier_Translate_core_barrier_return_code(
CORE_barrier_Status the_barrier_status
)
{
4af5e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_barrier_status > CORE_BARRIER_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Barrier_Return_codes[the_barrier_status];
}
4af62: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4af66: 4e5e unlk %fp <== NOT EXECUTED
4af68: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
000460a4 <_POSIX_Condition_variables_Get>:
POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get (
pthread_cond_t *cond,
Objects_Locations *location
)
{
460a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
460a8: 2f0b movel %a3,%sp@- <== NOT EXECUTED
460aa: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
460ae: 2f0a movel %a2,%sp@- <== NOT EXECUTED
460b0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
int status;
if ( !cond ) {
460b4: 4a8a tstl %a2 <== NOT EXECUTED
460b6: 6716 beqs 460ce <_POSIX_Condition_variables_Get+0x2a><== NOT EXECUTED
*location = OBJECTS_ERROR;
return (POSIX_Condition_variables_Control *) 0;
}
if ( *cond == PTHREAD_COND_INITIALIZER ) {
460b8: 70ff moveq #-1,%d0 <== NOT EXECUTED
460ba: b092 cmpl %a2@,%d0 <== NOT EXECUTED
460bc: 6618 bnes 460d6 <_POSIX_Condition_variables_Get+0x32><== NOT EXECUTED
/*
* Do an "auto-create" here.
*/
status = pthread_cond_init( cond, 0 );
460be: 42a7 clrl %sp@- <== NOT EXECUTED
460c0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
460c2: 4eb9 0004 60f8 jsr 460f8 <pthread_cond_init> <== NOT EXECUTED
if ( status ) {
460c8: 508f addql #8,%sp <== NOT EXECUTED
460ca: 4a80 tstl %d0 <== NOT EXECUTED
460cc: 6708 beqs 460d6 <_POSIX_Condition_variables_Get+0x32><== NOT EXECUTED
*location = OBJECTS_ERROR;
460ce: 7001 moveq #1,%d0 <== NOT EXECUTED
460d0: 2680 movel %d0,%a3@ <== NOT EXECUTED
return (POSIX_Condition_variables_Control *) 0;
460d2: 4280 clrl %d0 <== NOT EXECUTED
460d4: 6014 bras 460ea <_POSIX_Condition_variables_Get+0x46><== NOT EXECUTED
}
/*
* Now call Objects_Get()
*/
return (POSIX_Condition_variables_Control *)_Objects_Get(
460d6: 2f0b movel %a3,%sp@- <== NOT EXECUTED
460d8: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
460da: 4879 0006 02fc pea 602fc <_POSIX_Condition_variables_Information><== NOT EXECUTED
460e0: 4eb9 0004 896c jsr 4896c <_Objects_Get> <== NOT EXECUTED
460e6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
&_POSIX_Condition_variables_Information,
(Objects_Id) *cond,
location
);
}
460ea: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
460ee: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED
460f2: 4e5e unlk %fp <== NOT EXECUTED
...
000461b0 <_POSIX_Condition_variables_Signal_support>:
int _POSIX_Condition_variables_Signal_support(
pthread_cond_t *cond,
bool is_broadcast
)
{
461b0: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
461b4: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
Thread_Control *the_thread;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
461b8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
461bc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
int _POSIX_Condition_variables_Signal_support(
pthread_cond_t *cond,
bool is_broadcast
)
{
461c0: 162e 000f moveb %fp@(15),%d3 <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
Thread_Control *the_thread;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
461c4: 4eb9 0004 60a4 jsr 460a4 <_POSIX_Condition_variables_Get> <== NOT EXECUTED
switch ( location ) {
461ca: 508f addql #8,%sp <== NOT EXECUTED
{
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
Thread_Control *the_thread;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
461cc: 2440 moveal %d0,%a2 <== NOT EXECUTED
switch ( location ) {
461ce: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
461d2: 662e bnes 46202 <_POSIX_Condition_variables_Signal_support+0x52><== NOT EXECUTED
case OBJECTS_LOCAL:
do {
the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue );
461d4: 2400 movel %d0,%d2 <== NOT EXECUTED
461d6: 0682 0000 0018 addil #24,%d2 <== NOT EXECUTED
461dc: 47f9 0004 94a4 lea 494a4 <_Thread_queue_Dequeue>,%a3 <== NOT EXECUTED
461e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
461e4: 4e93 jsr %a3@ <== NOT EXECUTED
if ( !the_thread )
461e6: 588f addql #4,%sp <== NOT EXECUTED
461e8: 4a80 tstl %d0 <== NOT EXECUTED
461ea: 6604 bnes 461f0 <_POSIX_Condition_variables_Signal_support+0x40><== NOT EXECUTED
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
461ec: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED
} while ( is_broadcast && the_thread );
461f0: 4a03 tstb %d3 <== NOT EXECUTED
461f2: 6704 beqs 461f8 <_POSIX_Condition_variables_Signal_support+0x48><== NOT EXECUTED
461f4: 4a80 tstl %d0 <== NOT EXECUTED
461f6: 66ea bnes 461e2 <_POSIX_Condition_variables_Signal_support+0x32><== NOT EXECUTED
_Thread_Enable_dispatch();
461f8: 4eb9 0004 915e jsr 4915e <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
461fe: 4280 clrl %d0 <== NOT EXECUTED
46200: 6002 bras 46204 <_POSIX_Condition_variables_Signal_support+0x54><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
46202: 7016 moveq #22,%d0 <== NOT EXECUTED
}
46204: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED
4620a: 4e5e unlk %fp <== NOT EXECUTED
...
00046270 <_POSIX_Condition_variables_Wait_support>:
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
46270: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
46274: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
46278: 240e movel %fp,%d2 <== NOT EXECUTED
4627a: 5982 subql #4,%d2 <== NOT EXECUTED
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
4627c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
46280: 2f02 movel %d2,%sp@- <== NOT EXECUTED
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
46282: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
46286: 2f0a movel %a2,%sp@- <== NOT EXECUTED
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
46288: 162e 0017 moveb %fp@(23),%d3 <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
4628c: 4eb9 0004 63cc jsr 463cc <_POSIX_Mutex_Get> <== NOT EXECUTED
46292: 508f addql #8,%sp <== NOT EXECUTED
46294: 4a80 tstl %d0 <== NOT EXECUTED
46296: 6700 00ac beqw 46344 <_POSIX_Condition_variables_Wait_support+0xd4><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
4629a: 2039 0005 ff4c movel 5ff4c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
462a0: 5380 subql #1,%d0 <== NOT EXECUTED
return EINVAL;
}
_Thread_Unnest_dispatch();
the_cond = _POSIX_Condition_variables_Get( cond, &location );
462a2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
462a4: 23c0 0005 ff4c movel %d0,5ff4c <_Thread_Dispatch_disable_level><== NOT EXECUTED
462aa: 2f0c movel %a4,%sp@- <== NOT EXECUTED
462ac: 4eb9 0004 60a4 jsr 460a4 <_POSIX_Condition_variables_Get> <== NOT EXECUTED
switch ( location ) {
462b2: 508f addql #8,%sp <== NOT EXECUTED
return EINVAL;
}
_Thread_Unnest_dispatch();
the_cond = _POSIX_Condition_variables_Get( cond, &location );
462b4: 2640 moveal %d0,%a3 <== NOT EXECUTED
switch ( location ) {
462b6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
462ba: 6600 0088 bnew 46344 <_POSIX_Condition_variables_Wait_support+0xd4><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {
462be: 202b 0014 movel %a3@(20),%d0 <== NOT EXECUTED
462c2: 670c beqs 462d0 <_POSIX_Condition_variables_Wait_support+0x60><== NOT EXECUTED
462c4: b092 cmpl %a2@,%d0 <== NOT EXECUTED
462c6: 6708 beqs 462d0 <_POSIX_Condition_variables_Wait_support+0x60><== NOT EXECUTED
_Thread_Enable_dispatch();
462c8: 4eb9 0004 915e jsr 4915e <_Thread_Enable_dispatch> <== NOT EXECUTED
462ce: 6074 bras 46344 <_POSIX_Condition_variables_Wait_support+0xd4><== NOT EXECUTED
return EINVAL;
}
(void) pthread_mutex_unlock( mutex );
462d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
462d2: 4bf9 0004 915e lea 4915e <_Thread_Enable_dispatch>,%a5 <== NOT EXECUTED
462d8: 4eb9 0004 6624 jsr 46624 <pthread_mutex_unlock> <== NOT EXECUTED
_Thread_Enable_dispatch();
return EINVAL;
}
*/
if ( !already_timedout ) {
462de: 588f addql #4,%sp <== NOT EXECUTED
462e0: 4a03 tstb %d3 <== NOT EXECUTED
462e2: 664e bnes 46332 <_POSIX_Condition_variables_Wait_support+0xc2><== NOT EXECUTED
the_cond->Mutex = *mutex;
462e4: 2752 0014 movel %a2@,%a3@(20) <== 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;
462e8: 7001 moveq #1,%d0 <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
462ea: 2079 0006 03dc moveal 603dc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
462f0: 2740 0048 movel %d0,%a3@(72) <== NOT EXECUTED
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
462f4: 47eb 0018 lea %a3@(24),%a3 <== NOT EXECUTED
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
462f8: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
_Thread_Executing->Wait.id = *cond;
462fc: 2154 0020 movel %a4@,%a0@(32) <== NOT EXECUTED
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
46300: 214b 0044 movel %a3,%a0@(68) <== NOT EXECUTED
_Thread_Executing->Wait.id = *cond;
_Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );
46304: 4879 0004 9950 pea 49950 <_Thread_queue_Timeout> <== NOT EXECUTED
4630a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4630e: 2f0b movel %a3,%sp@- <== NOT EXECUTED
46310: 4eb9 0004 95e0 jsr 495e0 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
46316: 4e95 jsr %a5@ <== NOT EXECUTED
* a POSIX signal, then pthread_cond_wait returns spuriously,
* according to the POSIX standard. It means that pthread_cond_wait
* returns a success status, except for the fact that it was not
* woken up a pthread_cond_signal or a pthread_cond_broadcast.
*/
status = _Thread_Executing->Wait.return_code;
46318: 2079 0006 03dc moveal 603dc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
if ( status == EINTR )
status = 0;
4631e: 7004 moveq #4,%d0 <== NOT EXECUTED
* according to the POSIX standard. It means that pthread_cond_wait
* returns a success status, except for the fact that it was not
* woken up a pthread_cond_signal or a pthread_cond_broadcast.
*/
status = _Thread_Executing->Wait.return_code;
if ( status == EINTR )
46320: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
* a POSIX signal, then pthread_cond_wait returns spuriously,
* according to the POSIX standard. It means that pthread_cond_wait
* returns a success status, except for the fact that it was not
* woken up a pthread_cond_signal or a pthread_cond_broadcast.
*/
status = _Thread_Executing->Wait.return_code;
46324: 2428 0034 movel %a0@(52),%d2 <== NOT EXECUTED
if ( status == EINTR )
status = 0;
46328: b082 cmpl %d2,%d0 <== NOT EXECUTED
4632a: 56c0 sne %d0 <== NOT EXECUTED
4632c: 49c0 extbl %d0 <== NOT EXECUTED
4632e: c480 andl %d0,%d2 <== NOT EXECUTED
46330: 6004 bras 46336 <_POSIX_Condition_variables_Wait_support+0xc6><== NOT EXECUTED
} else {
_Thread_Enable_dispatch();
46332: 4e95 jsr %a5@ <== NOT EXECUTED
status = ETIMEDOUT;
46334: 7474 moveq #116,%d2 <== NOT EXECUTED
/*
* When we get here the dispatch disable level is 0.
*/
mutex_status = pthread_mutex_lock( mutex );
46336: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46338: 4eb9 0004 658c jsr 4658c <pthread_mutex_lock> <== NOT EXECUTED
if ( mutex_status )
4633e: 588f addql #4,%sp <== NOT EXECUTED
46340: 4a80 tstl %d0 <== NOT EXECUTED
46342: 6702 beqs 46346 <_POSIX_Condition_variables_Wait_support+0xd6><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
46344: 7416 moveq #22,%d2 <== NOT EXECUTED
}
46346: 2002 movel %d2,%d0 <== NOT EXECUTED
46348: 4cee 3c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a5 <== NOT EXECUTED
4634e: 4e5e unlk %fp <== NOT EXECUTED
...
000456c8 <_POSIX_Keys_Free_memory>:
#include <rtems/posix/key.h>
void _POSIX_Keys_Free_memory(
POSIX_Keys_Control *the_key
)
{
456c8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
456cc: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>
#include <rtems/posix/key.h>
void _POSIX_Keys_Free_memory(
456d0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
456d4: 7403 moveq #3,%d2 <== NOT EXECUTED
456d6: 45ea 0018 lea %a2@(24),%a2 <== NOT EXECUTED
{
uint32_t the_api;
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )
if ( the_key->Values[ the_api ] )
_Workspace_Free( the_key->Values[ the_api ] );
456da: 47f9 0004 956c lea 4956c <_Workspace_Free>,%a3 <== NOT EXECUTED
)
{
uint32_t the_api;
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )
if ( the_key->Values[ the_api ] )
456e0: 201a movel %a2@+,%d0 <== NOT EXECUTED
456e2: 6706 beqs 456ea <_POSIX_Keys_Free_memory+0x22> <== NOT EXECUTED
_Workspace_Free( the_key->Values[ the_api ] );
456e4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
456e6: 4e93 jsr %a3@ <== NOT EXECUTED
456e8: 588f addql #4,%sp <== NOT EXECUTED
456ea: 5382 subql #1,%d2 <== NOT EXECUTED
POSIX_Keys_Control *the_key
)
{
uint32_t the_api;
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )
456ec: 66f2 bnes 456e0 <_POSIX_Keys_Free_memory+0x18> <== NOT EXECUTED
if ( the_key->Values[ the_api ] )
_Workspace_Free( the_key->Values[ the_api ] );
}
456ee: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED
456f4: 4e5e unlk %fp <== NOT EXECUTED
0004c134 <_POSIX_Keys_Run_destructors>:
4c134: 7218 moveq #24,%d1
*/
void _POSIX_Keys_Run_destructors(
Thread_Control *thread
)
{
4c136: 4e56 ffe8 linkw %fp,#-24
Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id );
4c13a: 206e 0008 moveal %fp@(8),%a0
*/
void _POSIX_Keys_Run_destructors(
Thread_Control *thread
)
{
4c13e: 48d7 047c moveml %d2-%d6/%a2,%sp@
Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id );
4c142: 2428 0008 movel %a0@(8),%d2
4c146: 2002 movel %d2,%d0
4c148: e2a8 lsrl %d1,%d0
4c14a: 123c 0007 moveb #7,%d1
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
void *value = key->Values [ thread_api ][ thread_index ];
4c14e: 0282 0000 ffff andil #65535,%d2
4c154: c081 andl %d1,%d0
4c156: e58a lsll #2,%d2
4c158: 2a00 movel %d0,%d5
4c15a: 5a85 addql #5,%d5
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
4c15c: 4286 clrl %d6
4c15e: 7601 moveq #1,%d3
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
4c160: 7201 moveq #1,%d1
for ( index = 1 ; index <= max ; ++index ) {
4c162: 3c39 0005 ddb0 movew 5ddb0 <_POSIX_Keys_Information+0xe>,%d6
4c168: 602e bras 4c198 <_POSIX_Keys_Run_destructors+0x64>
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
4c16a: 2079 0005 ddba moveal 5ddba <_POSIX_Keys_Information+0x18>,%a0<== NOT EXECUTED
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
4c170: 2070 4c00 moveal %a0@(00000000,%d4:l:4),%a0 <== NOT EXECUTED
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
4c174: 4a88 tstl %a0 <== NOT EXECUTED
4c176: 671e beqs 4c196 <_POSIX_Keys_Run_destructors+0x62><== NOT EXECUTED
4c178: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED
4c17c: 4a89 tstl %a1 <== NOT EXECUTED
4c17e: 6716 beqs 4c196 <_POSIX_Keys_Run_destructors+0x62><== NOT EXECUTED
void *value = key->Values [ thread_api ][ thread_index ];
4c180: 2470 5c00 moveal %a0@(00000000,%d5:l:4),%a2 <== NOT EXECUTED
4c184: d5c2 addal %d2,%a2 <== NOT EXECUTED
4c186: 2052 moveal %a2@,%a0 <== NOT EXECUTED
if ( value != NULL ) {
4c188: 4a88 tstl %a0 <== NOT EXECUTED
4c18a: 670a beqs 4c196 <_POSIX_Keys_Run_destructors+0x62><== NOT EXECUTED
key->Values [ thread_api ][ thread_index ] = NULL;
4c18c: 4292 clrl %a2@ <== NOT EXECUTED
(*key->destructor)( value );
4c18e: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4c190: 4e91 jsr %a1@ <== NOT EXECUTED
4c192: 588f addql #4,%sp <== NOT EXECUTED
done = false;
4c194: 4201 clrb %d1 <== NOT EXECUTED
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
4c196: 5283 addql #1,%d3 <== NOT EXECUTED
4c198: 4284 clrl %d4
4c19a: 3803 movew %d3,%d4
4c19c: bc84 cmpl %d4,%d6
4c19e: 64ca bccs 4c16a <_POSIX_Keys_Run_destructors+0x36><== NEVER TAKEN
* number of iterations. An infinite loop may happen if destructors set
* thread specific data. This can be considered dubious.
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
4c1a0: 4a01 tstb %d1
4c1a2: 67b8 beqs 4c15c <_POSIX_Keys_Run_destructors+0x28><== NEVER TAKEN
done = false;
}
}
}
}
}
4c1a4: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2
4c1aa: 4e5e unlk %fp
...
0004fc68 <_POSIX_Message_queue_Create_support>:
const char *name_arg,
int pshared,
struct mq_attr *attr_ptr,
POSIX_Message_queue_Control **message_queue
)
{
4fc68: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
4fc6c: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
CORE_message_queue_Attributes *the_mq_attr;
struct mq_attr attr;
char *name;
size_t n;
n = strnlen( name_arg, NAME_MAX );
4fc70: 4878 00ff pea ff <DBL_MANT_DIG+0xca> <== NOT EXECUTED
const char *name_arg,
int pshared,
struct mq_attr *attr_ptr,
POSIX_Message_queue_Control **message_queue
)
{
4fc74: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
4fc78: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
CORE_message_queue_Attributes *the_mq_attr;
struct mq_attr attr;
char *name;
size_t n;
n = strnlen( name_arg, NAME_MAX );
4fc7c: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4fc7e: 4eb9 0005 49bc jsr 549bc <strnlen> <== NOT EXECUTED
4fc84: 2a00 movel %d0,%d5 <== NOT EXECUTED
4fc86: 2039 0006 5c68 movel 65c68 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4fc8c: 5280 addql #1,%d0 <== NOT EXECUTED
4fc8e: 23c0 0006 5c68 movel %d0,65c68 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* There is no real basis for the default values. They will work
* but were not compared against any existing implementation for
* compatibility. See README.mqueue for an example program we
* think will print out the defaults. Report anything you find with it.
*/
if ( attr_ptr == NULL ) {
4fc94: 508f addql #8,%sp <== NOT EXECUTED
4fc96: 4a8a tstl %a2 <== NOT EXECUTED
4fc98: 6722 beqs 4fcbc <_POSIX_Message_queue_Create_support+0x54><== NOT EXECUTED
attr.mq_maxmsg = 10;
attr.mq_msgsize = 16;
} else {
if ( attr_ptr->mq_maxmsg <= 0 ){
4fc9a: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED
4fc9e: 6f06 bles 4fca6 <_POSIX_Message_queue_Create_support+0x3e><== NOT EXECUTED
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( attr_ptr->mq_msgsize <= 0 ){
4fca0: 282a 0008 movel %a2@(8),%d4 <== NOT EXECUTED
4fca4: 6e1a bgts 4fcc0 <_POSIX_Message_queue_Create_support+0x58><== NOT EXECUTED
_Thread_Enable_dispatch();
4fca6: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
4fcac: 7616 moveq #22,%d3 <== NOT EXECUTED
4fcae: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
4fcb4: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fcb6: 2083 movel %d3,%a0@ <== NOT EXECUTED
4fcb8: 6000 00d2 braw 4fd8c <_POSIX_Message_queue_Create_support+0x124><== NOT EXECUTED
* compatibility. See README.mqueue for an example program we
* think will print out the defaults. Report anything you find with it.
*/
if ( attr_ptr == NULL ) {
attr.mq_maxmsg = 10;
attr.mq_msgsize = 16;
4fcbc: 7810 moveq #16,%d4 <== NOT EXECUTED
* but were not compared against any existing implementation for
* compatibility. See README.mqueue for an example program we
* think will print out the defaults. Report anything you find with it.
*/
if ( attr_ptr == NULL ) {
attr.mq_maxmsg = 10;
4fcbe: 760a moveq #10,%d3 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE
POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void )
{
return (POSIX_Message_queue_Control *)
_Objects_Allocate( &_POSIX_Message_queue_Information );
4fcc0: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
4fcc6: 4eb9 0004 c5c8 jsr 4c5c8 <_Objects_Allocate> <== NOT EXECUTED
attr = *attr_ptr;
}
the_mq = _POSIX_Message_queue_Allocate();
if ( !the_mq ) {
4fccc: 588f addql #4,%sp <== NOT EXECUTED
4fcce: 2440 moveal %d0,%a2 <== NOT EXECUTED
4fcd0: 4a80 tstl %d0 <== NOT EXECUTED
4fcd2: 6616 bnes 4fcea <_POSIX_Message_queue_Create_support+0x82><== NOT EXECUTED
_Thread_Enable_dispatch();
4fcd4: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENFILE );
4fcda: 7417 moveq #23,%d2 <== NOT EXECUTED
4fcdc: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
4fce2: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fce4: 2082 movel %d2,%a0@ <== NOT EXECUTED
4fce6: 6000 00a4 braw 4fd8c <_POSIX_Message_queue_Create_support+0x124><== NOT EXECUTED
/*
* Make a copy of the user's string for name just in case it was
* dynamically constructed.
*/
name = _Workspace_Allocate(n+1);
4fcea: 5285 addql #1,%d5 <== NOT EXECUTED
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
the_mq->process_shared = pshared;
the_mq->named = true;
4fcec: 7001 moveq #1,%d0 <== NOT EXECUTED
if ( !the_mq ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
the_mq->process_shared = pshared;
4fcee: 256e 000c 0010 movel %fp@(12),%a2@(16) <== NOT EXECUTED
the_mq->named = true;
4fcf4: 1540 0014 moveb %d0,%a2@(20) <== NOT EXECUTED
the_mq->open_count = 1;
4fcf8: 7001 moveq #1,%d0 <== NOT EXECUTED
4fcfa: 2540 0016 movel %d0,%a2@(22) <== NOT EXECUTED
the_mq->linked = true;
4fcfe: 1540 0015 moveb %d0,%a2@(21) <== NOT EXECUTED
/*
* Make a copy of the user's string for name just in case it was
* dynamically constructed.
*/
name = _Workspace_Allocate(n+1);
4fd02: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4fd04: 4eb9 0004 e56c jsr 4e56c <_Workspace_Allocate> <== NOT EXECUTED
if (!name) {
4fd0a: 588f addql #4,%sp <== NOT EXECUTED
/*
* Make a copy of the user's string for name just in case it was
* dynamically constructed.
*/
name = _Workspace_Allocate(n+1);
4fd0c: 2400 movel %d0,%d2 <== NOT EXECUTED
if (!name) {
4fd0e: 6624 bnes 4fd34 <_POSIX_Message_queue_Create_support+0xcc><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free (
POSIX_Message_queue_Control *the_mq
)
{
_Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object );
4fd10: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fd12: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
4fd18: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free( the_mq );
_Thread_Enable_dispatch();
4fd1e: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
4fd24: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
4fd2a: 508f addql #8,%sp <== NOT EXECUTED
4fd2c: 720c moveq #12,%d1 <== NOT EXECUTED
4fd2e: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fd30: 2081 movel %d1,%a0@ <== NOT EXECUTED
4fd32: 6058 bras 4fd8c <_POSIX_Message_queue_Create_support+0x124><== NOT EXECUTED
}
strncpy( name, name_arg, n+1 );
4fd34: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4fd36: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4fd38: 47f9 0004 d292 lea 4d292 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
4fd3e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4fd40: 4eb9 0005 4938 jsr 54938 <strncpy> <== NOT EXECUTED
*
* Joel: Cite POSIX or OpenGroup on above statement so we can determine
* if it is a real requirement.
*/
the_mq_attr = &the_mq->Message_queue.Attributes;
the_mq_attr->discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
4fd46: 42aa 005a clrl %a2@(90) <== NOT EXECUTED
if ( !_CORE_message_queue_Initialize(
4fd4a: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4fd4c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4fd4e: 486a 005a pea %a2@(90) <== NOT EXECUTED
4fd52: 486a 001a pea %a2@(26) <== NOT EXECUTED
4fd56: 4eb9 0005 0af8 jsr 50af8 <_CORE_message_queue_Initialize> <== NOT EXECUTED
4fd5c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4fd60: 4a00 tstb %d0 <== NOT EXECUTED
4fd62: 662c bnes 4fd90 <_POSIX_Message_queue_Create_support+0x128><== NOT EXECUTED
4fd64: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fd66: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
4fd6c: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
attr.mq_maxmsg,
attr.mq_msgsize
) ) {
_POSIX_Message_queue_Free( the_mq );
_Workspace_Free(name);
4fd72: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4fd74: 4eb9 0004 e588 jsr 4e588 <_Workspace_Free> <== NOT EXECUTED
_Thread_Enable_dispatch();
4fd7a: 4e93 jsr %a3@ <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
4fd7c: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
4fd82: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4fd86: 2040 moveal %d0,%a0 <== NOT EXECUTED
4fd88: 701c moveq #28,%d0 <== NOT EXECUTED
4fd8a: 2080 movel %d0,%a0@ <== NOT EXECUTED
4fd8c: 70ff moveq #-1,%d0 <== NOT EXECUTED
4fd8e: 601e bras 4fdae <_POSIX_Message_queue_Create_support+0x146><== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
4fd90: 4280 clrl %d0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4fd92: 2079 0006 5f30 moveal 65f30 <_POSIX_Message_queue_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
4fd98: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4fd9c: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED
&_POSIX_Message_queue_Information,
&the_mq->Object,
name
);
*message_queue = the_mq;
4fda0: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
4fda4: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
4fda8: 208a movel %a2,%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4fdaa: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
4fdac: 4280 clrl %d0 <== NOT EXECUTED
}
4fdae: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED
4fdb4: 4e5e unlk %fp <== NOT EXECUTED
00049968 <_POSIX_Message_queue_Delete>:
*/
void _POSIX_Message_queue_Delete(
POSIX_Message_queue_Control *the_mq
)
{
49968: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4996c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4996e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
if ( !the_mq->linked && !the_mq->open_count ) {
49972: 4a2a 0015 tstb %a2@(21) <== NOT EXECUTED
49976: 6636 bnes 499ae <_POSIX_Message_queue_Delete+0x46><== NOT EXECUTED
49978: 4aaa 0016 tstl %a2@(22) <== NOT EXECUTED
4997c: 6630 bnes 499ae <_POSIX_Message_queue_Delete+0x46><== NOT EXECUTED
);
_Workspace_Free( (void *)the_object->name.name_p );
}
#endif
_Objects_Close( &_POSIX_Message_queue_Information, the_object );
4997e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49980: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
49986: 4eb9 0004 c644 jsr 4c644 <_Objects_Close> <== NOT EXECUTED
_CORE_message_queue_Close(
4998c: 4878 0005 pea 5 <COMPARE> <== NOT EXECUTED
49990: 42a7 clrl %sp@- <== NOT EXECUTED
49992: 486a 001a pea %a2@(26) <== NOT EXECUTED
49996: 4eb9 0004 ba9c jsr 4ba9c <_CORE_message_queue_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free (
POSIX_Message_queue_Control *the_mq
)
{
_Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object );
4999c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4999e: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
499a4: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
499aa: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
);
_POSIX_Message_queue_Free( the_mq );
}
}
499ae: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
499b2: 4e5e unlk %fp <== NOT EXECUTED
...
0004fdb8 <_POSIX_Message_queue_Name_to_id>:
*/
int _POSIX_Message_queue_Name_to_id(
const char *name,
Objects_Id *id
)
{
4fdb8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4fdbc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fdbe: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Id the_id;
if ( !name )
4fdc2: 4a8a tstl %a2 <== NOT EXECUTED
4fdc4: 673e beqs 4fe04 <_POSIX_Message_queue_Name_to_id+0x4c><== NOT EXECUTED
return EINVAL;
if ( !name[0] )
4fdc6: 4a12 tstb %a2@ <== NOT EXECUTED
4fdc8: 673a beqs 4fe04 <_POSIX_Message_queue_Name_to_id+0x4c><== NOT EXECUTED
return EINVAL;
if ( strnlen( name, NAME_MAX ) >= NAME_MAX )
4fdca: 4878 00ff pea ff <DBL_MANT_DIG+0xca> <== NOT EXECUTED
4fdce: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fdd0: 4eb9 0005 49bc jsr 549bc <strnlen> <== NOT EXECUTED
4fdd6: 508f addql #8,%sp <== NOT EXECUTED
4fdd8: 0c80 0000 00fe cmpil #254,%d0 <== NOT EXECUTED
4fdde: 6228 bhis 4fe08 <_POSIX_Message_queue_Name_to_id+0x50><== NOT EXECUTED
return ENAMETOOLONG;
status = _Objects_Name_to_id_string(
4fde0: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4fde4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4fde6: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
4fdec: 4eb9 0005 10ec jsr 510ec <_Objects_Name_to_id_string> <== NOT EXECUTED
&_POSIX_Message_queue_Information,
name,
&the_id
);
*id = the_id;
4fdf2: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
4fdf6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
status = _Objects_Name_to_id_string(
&_POSIX_Message_queue_Information,
name,
&the_id
);
*id = the_id;
4fdfa: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
4fdfe: 4a80 tstl %d0 <== NOT EXECUTED
4fe00: 660a bnes 4fe0c <_POSIX_Message_queue_Name_to_id+0x54><== NOT EXECUTED
4fe02: 600a bras 4fe0e <_POSIX_Message_queue_Name_to_id+0x56><== NOT EXECUTED
if ( !name )
return EINVAL;
if ( !name[0] )
return EINVAL;
4fe04: 7016 moveq #22,%d0 <== NOT EXECUTED
4fe06: 6006 bras 4fe0e <_POSIX_Message_queue_Name_to_id+0x56><== NOT EXECUTED
if ( strnlen( name, NAME_MAX ) >= NAME_MAX )
return ENAMETOOLONG;
4fe08: 705b moveq #91,%d0 <== NOT EXECUTED
4fe0a: 6002 bras 4fe0e <_POSIX_Message_queue_Name_to_id+0x56><== NOT EXECUTED
*id = the_id;
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
return ENOENT;
4fe0c: 7002 moveq #2,%d0 <== NOT EXECUTED
}
4fe0e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4fe12: 4e5e unlk %fp <== NOT EXECUTED
...
00049a30 <_POSIX_Message_queue_Notify_handler>:
*/
void _POSIX_Message_queue_Notify_handler(
void *user_data
)
{
49a30: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
49a34: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49a36: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
49a3a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
the_mq = user_data;
kill( getpid(), the_mq->notification.sigev_signo );
49a3c: 242a 0092 movel %a2@(146),%d2 <== NOT EXECUTED
49a40: 4eb9 0004 f644 jsr 4f644 <getpid> <== NOT EXECUTED
49a46: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49a48: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49a4a: 4eb9 0004 fc50 jsr 4fc50 <kill> <== NOT EXECUTED
_CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL );
}
49a50: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
the_message_queue->notify_argument = the_argument;
49a54: 508f addql #8,%sp <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
49a56: 42aa 007a clrl %a2@(122) <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
49a5a: 42aa 007e clrl %a2@(126) <== NOT EXECUTED
49a5e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
49a62: 4e5e unlk %fp <== NOT EXECUTED
00049ca4 <_POSIX_Message_queue_Receive_support>:
size_t msg_len,
unsigned int *msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
49ca4: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
49ca8: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
49cac: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49cb0: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
49cb4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49cb6: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49cbc: 162e 001b moveb %fp@(27),%d3 <== NOT EXECUTED
49cc0: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
Objects_Locations location;
size_t length_out;
bool do_wait;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
49cc6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49cca: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
49cce: 6600 00c0 bnew 49d90 <_POSIX_Message_queue_Receive_support+0xec><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
49cd2: 2040 moveal %d0,%a0 <== NOT EXECUTED
49cd4: 7803 moveq #3,%d4 <== NOT EXECUTED
49cd6: 7a01 moveq #1,%d5 <== NOT EXECUTED
49cd8: 2228 0014 movel %a0@(20),%d1 <== NOT EXECUTED
49cdc: c881 andl %d1,%d4 <== NOT EXECUTED
49cde: ba84 cmpl %d4,%d5 <== NOT EXECUTED
49ce0: 660a bnes 49cec <_POSIX_Message_queue_Receive_support+0x48><== NOT EXECUTED
_Thread_Enable_dispatch();
49ce2: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
49ce8: 6000 00a6 braw 49d90 <_POSIX_Message_queue_Receive_support+0xec><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
}
the_mq = the_mq_fd->Queue;
49cec: 2240 moveal %d0,%a1 <== NOT EXECUTED
49cee: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED
if ( msg_len < the_mq->Message_queue.maximum_message_size ) {
49cf2: 2028 0066 movel %a0@(102),%d0 <== NOT EXECUTED
49cf6: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED
49cfa: 6316 blss 49d12 <_POSIX_Message_queue_Receive_support+0x6e><== NOT EXECUTED
_Thread_Enable_dispatch();
49cfc: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EMSGSIZE );
49d02: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49d08: 727a moveq #122,%d1 <== NOT EXECUTED
49d0a: 2040 moveal %d0,%a0 <== NOT EXECUTED
49d0c: 2081 movel %d1,%a0@ <== NOT EXECUTED
49d0e: 6000 008c braw 49d9c <_POSIX_Message_queue_Receive_support+0xf8><== NOT EXECUTED
/*
* Now if something goes wrong, we return a "length" of -1
* to indicate an error.
*/
length_out = -1;
49d12: 70ff moveq #-1,%d0 <== NOT EXECUTED
49d14: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
49d18: 4a03 tstb %d3 <== NOT EXECUTED
49d1a: 670a beqs 49d26 <_POSIX_Message_queue_Receive_support+0x82><== NOT EXECUTED
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
49d1c: 0801 000e btst #14,%d1 <== NOT EXECUTED
49d20: 57c0 seq %d0 <== NOT EXECUTED
49d22: 4480 negl %d0 <== NOT EXECUTED
49d24: 6002 bras 49d28 <_POSIX_Message_queue_Receive_support+0x84><== NOT EXECUTED
length_out = -1;
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
49d26: 4200 clrb %d0 <== NOT EXECUTED
do_wait = wait;
/*
* Now perform the actual message receive
*/
_CORE_message_queue_Seize(
49d28: 2f2e 001c movel %fp@(28),%sp@- <== NOT EXECUTED
49d2c: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED
49d32: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49d34: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
49d38: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49d3c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49d3e: 4868 001a pea %a0@(26) <== NOT EXECUTED
49d42: 4eb9 0004 bb38 jsr 4bb38 <_CORE_message_queue_Seize> <== NOT EXECUTED
&length_out,
do_wait,
timeout
);
_Thread_Enable_dispatch();
49d48: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
*msg_prio =
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
49d4e: 2079 0006 60f8 moveal 660f8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
CORE_message_queue_Submit_types priority
)
{
/* absolute value without a library dependency */
return ((priority >= 0) ? priority : -priority);
49d54: 2028 0024 movel %a0@(36),%d0 <== NOT EXECUTED
49d58: 6c02 bges 49d5c <_POSIX_Message_queue_Receive_support+0xb8><== NOT EXECUTED
49d5a: 4480 negl %d0 <== NOT EXECUTED
do_wait,
timeout
);
_Thread_Enable_dispatch();
*msg_prio =
49d5c: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
if ( !_Thread_Executing->Wait.return_code )
49d60: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
do_wait,
timeout
);
_Thread_Enable_dispatch();
*msg_prio =
49d64: 2280 movel %d0,%a1@ <== NOT EXECUTED
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
if ( !_Thread_Executing->Wait.return_code )
49d66: 4aa8 0034 tstl %a0@(52) <== NOT EXECUTED
49d6a: 6606 bnes 49d72 <_POSIX_Message_queue_Receive_support+0xce><== NOT EXECUTED
return length_out;
49d6c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
49d70: 602c bras 49d9e <_POSIX_Message_queue_Receive_support+0xfa><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(
49d72: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49d78: 2079 0006 60f8 moveal 660f8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
49d7e: 2440 moveal %d0,%a2 <== NOT EXECUTED
49d80: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
49d84: 4eb9 0004 9fb8 jsr 49fb8 <_POSIX_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
49d8a: 588f addql #4,%sp <== NOT EXECUTED
49d8c: 2480 movel %d0,%a2@ <== NOT EXECUTED
49d8e: 600c bras 49d9c <_POSIX_Message_queue_Receive_support+0xf8><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
49d90: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49d96: 2040 moveal %d0,%a0 <== NOT EXECUTED
49d98: 7009 moveq #9,%d0 <== NOT EXECUTED
49d9a: 2080 movel %d0,%a0@ <== NOT EXECUTED
49d9c: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
49d9e: 4cee 043c ffe4 moveml %fp@(-28),%d2-%d5/%a2 <== NOT EXECUTED
49da4: 4e5e unlk %fp <== NOT EXECUTED
00049dcc <_POSIX_Message_queue_Send_support>:
/*
* Validate the priority.
* XXX - Do not validate msg_prio is not less than 0.
*/
if ( msg_prio > MQ_PRIO_MAX )
49dcc: 7020 moveq #32,%d0 <== NOT EXECUTED
size_t msg_len,
uint32_t msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
49dce: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
49dd2: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED
49dd6: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
49dda: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
49dde: 182e 001b moveb %fp@(27),%d4 <== NOT EXECUTED
/*
* Validate the priority.
* XXX - Do not validate msg_prio is not less than 0.
*/
if ( msg_prio > MQ_PRIO_MAX )
49de2: b083 cmpl %d3,%d0 <== NOT EXECUTED
49de4: 6410 bccs 49df6 <_POSIX_Message_queue_Send_support+0x2a><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
49de6: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49dec: 7216 moveq #22,%d1 <== NOT EXECUTED
49dee: 2040 moveal %d0,%a0 <== NOT EXECUTED
49df0: 2081 movel %d1,%a0@ <== NOT EXECUTED
49df2: 6000 00b2 braw 49ea6 <_POSIX_Message_queue_Send_support+0xda><== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
49df6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49dfa: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49dfc: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49e02: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
49e08: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49e0c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
49e10: 6600 0088 bnew 49e9a <_POSIX_Message_queue_Send_support+0xce><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {
49e14: 2240 moveal %d0,%a1 <== NOT EXECUTED
49e16: 7a03 moveq #3,%d5 <== NOT EXECUTED
49e18: 2229 0014 movel %a1@(20),%d1 <== NOT EXECUTED
49e1c: ca81 andl %d1,%d5 <== NOT EXECUTED
49e1e: 6608 bnes 49e28 <_POSIX_Message_queue_Send_support+0x5c><== NOT EXECUTED
_Thread_Enable_dispatch();
49e20: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
49e26: 6072 bras 49e9a <_POSIX_Message_queue_Send_support+0xce><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
}
the_mq = the_mq_fd->Queue;
49e28: 2240 moveal %d0,%a1 <== NOT EXECUTED
49e2a: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
49e2e: 4a04 tstb %d4 <== NOT EXECUTED
49e30: 670a beqs 49e3c <_POSIX_Message_queue_Send_support+0x70><== NOT EXECUTED
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
49e32: 0801 000e btst #14,%d1 <== NOT EXECUTED
49e36: 57c0 seq %d0 <== NOT EXECUTED
49e38: 4480 negl %d0 <== NOT EXECUTED
49e3a: 6002 bras 49e3e <_POSIX_Message_queue_Send_support+0x72><== NOT EXECUTED
the_mq = the_mq_fd->Queue;
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
49e3c: 4200 clrb %d0 <== NOT EXECUTED
do_wait = wait;
/*
* Now perform the actual message receive
*/
msg_status = _CORE_message_queue_Submit(
49e3e: 2f2e 001c movel %fp@(28),%sp@- <== NOT EXECUTED
49e42: 4483 negl %d3 <== NOT EXECUTED
49e44: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED
49e4a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49e4c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49e4e: 42a7 clrl %sp@- <== NOT EXECUTED
49e50: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49e52: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
49e56: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49e5a: 4868 001a pea %a0@(26) <== NOT EXECUTED
49e5e: 4eb9 0004 bc74 jsr 4bc74 <_CORE_message_queue_Submit> <== NOT EXECUTED
_POSIX_Message_queue_Priority_to_core( msg_prio ),
do_wait,
timeout /* no timeout */
);
_Thread_Enable_dispatch();
49e64: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
do_wait = wait;
/*
* Now perform the actual message receive
*/
msg_status = _CORE_message_queue_Submit(
49e68: 2400 movel %d0,%d2 <== NOT EXECUTED
_POSIX_Message_queue_Priority_to_core( msg_prio ),
do_wait,
timeout /* no timeout */
);
_Thread_Enable_dispatch();
49e6a: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
* after it wakes up. The returned status is correct for
* non-blocking operations but if we blocked, then we need
* to look at the status in our TCB.
*/
if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT )
49e70: 7007 moveq #7,%d0 <== NOT EXECUTED
49e72: b082 cmpl %d2,%d0 <== NOT EXECUTED
49e74: 660a bnes 49e80 <_POSIX_Message_queue_Send_support+0xb4><== NOT EXECUTED
msg_status = _Thread_Executing->Wait.return_code;
49e76: 2079 0006 60f8 moveal 660f8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
49e7c: 2428 0034 movel %a0@(52),%d2 <== NOT EXECUTED
if ( !msg_status )
49e80: 4a82 tstl %d2 <== NOT EXECUTED
49e82: 6726 beqs 49eaa <_POSIX_Message_queue_Send_support+0xde><== NOT EXECUTED
return msg_status;
rtems_set_errno_and_return_minus_one(
49e84: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49e8a: 2440 moveal %d0,%a2 <== NOT EXECUTED
49e8c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49e8e: 4eb9 0004 9fb8 jsr 49fb8 <_POSIX_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
49e94: 588f addql #4,%sp <== NOT EXECUTED
49e96: 2480 movel %d0,%a2@ <== NOT EXECUTED
49e98: 600c bras 49ea6 <_POSIX_Message_queue_Send_support+0xda><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
49e9a: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49ea0: 2040 moveal %d0,%a0 <== NOT EXECUTED
49ea2: 7009 moveq #9,%d0 <== NOT EXECUTED
49ea4: 2080 movel %d0,%a0@ <== NOT EXECUTED
49ea6: 70ff moveq #-1,%d0 <== NOT EXECUTED
49ea8: 6002 bras 49eac <_POSIX_Message_queue_Send_support+0xe0><== NOT EXECUTED
if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT )
msg_status = _Thread_Executing->Wait.return_code;
if ( !msg_status )
return msg_status;
49eaa: 4280 clrl %d0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
}
49eac: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED
49eb2: 4e5e unlk %fp <== NOT EXECUTED
...
00049fb8 <_POSIX_Message_queue_Translate_core_message_queue_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_message_queue_status > CORE_MESSAGE_QUEUE_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Message_queue_Return_codes[the_message_queue_status];
}
49fb8: 41f9 0006 2e2a lea 62e2a <_POSIX_Message_queue_Return_codes>,%a0<== NOT EXECUTED
int _POSIX_Message_queue_Translate_core_message_queue_return_code(
uint32_t the_message_queue_status
)
{
49fbe: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_message_queue_status > CORE_MESSAGE_QUEUE_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Message_queue_Return_codes[the_message_queue_status];
}
49fc2: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
49fc6: 4e5e unlk %fp <== NOT EXECUTED
49fc8: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
00047050 <_POSIX_Mutex_Get>:
POSIX_Mutex_Control *_POSIX_Mutex_Get (
pthread_mutex_t *mutex,
Objects_Locations *location
)
{
47050: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47054: 2f0b movel %a3,%sp@- <== NOT EXECUTED
47056: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
4705a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4705c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
47060: 4a8a tstl %a2 <== NOT EXECUTED
47062: 6716 beqs 4707a <_POSIX_Mutex_Get+0x2a> <== NOT EXECUTED
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
47064: 70ff moveq #-1,%d0 <== NOT EXECUTED
47066: b092 cmpl %a2@,%d0 <== NOT EXECUTED
47068: 6618 bnes 47082 <_POSIX_Mutex_Get+0x32> <== NOT EXECUTED
4706a: 42a7 clrl %sp@- <== NOT EXECUTED
4706c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4706e: 4eb9 0004 7140 jsr 47140 <pthread_mutex_init> <== NOT EXECUTED
47074: 508f addql #8,%sp <== NOT EXECUTED
47076: 4a80 tstl %d0 <== NOT EXECUTED
47078: 6708 beqs 47082 <_POSIX_Mutex_Get+0x32> <== NOT EXECUTED
4707a: 7001 moveq #1,%d0 <== NOT EXECUTED
4707c: 2680 movel %d0,%a3@ <== NOT EXECUTED
4707e: 4280 clrl %d0 <== NOT EXECUTED
47080: 6014 bras 47096 <_POSIX_Mutex_Get+0x46> <== NOT EXECUTED
return (POSIX_Mutex_Control *)
_Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location );
47082: 2f0b movel %a3,%sp@- <== NOT EXECUTED
47084: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
47086: 4879 0006 2896 pea 62896 <_POSIX_Mutex_Information> <== NOT EXECUTED
4708c: 4eb9 0004 9940 jsr 49940 <_Objects_Get> <== NOT EXECUTED
{
___POSIX_Mutex_Get_support_error_check( mutex, location );
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
return (POSIX_Mutex_Control *)
47092: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
_Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location );
}
47096: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4709a: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED
4709e: 4e5e unlk %fp <== NOT EXECUTED
000470a2 <_POSIX_Mutex_Get_interrupt_disable>:
POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable (
pthread_mutex_t *mutex,
Objects_Locations *location,
ISR_Level *level
)
{
470a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
470a6: 2f0b movel %a3,%sp@- <== NOT EXECUTED
470a8: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
470ac: 2f0a movel %a2,%sp@- <== NOT EXECUTED
470ae: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
470b2: 4a8a tstl %a2 <== NOT EXECUTED
470b4: 6716 beqs 470cc <_POSIX_Mutex_Get_interrupt_disable+0x2a><== NOT EXECUTED
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
470b6: 70ff moveq #-1,%d0 <== NOT EXECUTED
470b8: b092 cmpl %a2@,%d0 <== NOT EXECUTED
470ba: 6618 bnes 470d4 <_POSIX_Mutex_Get_interrupt_disable+0x32><== NOT EXECUTED
470bc: 42a7 clrl %sp@- <== NOT EXECUTED
470be: 2f0a movel %a2,%sp@- <== NOT EXECUTED
470c0: 4eb9 0004 7140 jsr 47140 <pthread_mutex_init> <== NOT EXECUTED
470c6: 508f addql #8,%sp <== NOT EXECUTED
470c8: 4a80 tstl %d0 <== NOT EXECUTED
470ca: 6708 beqs 470d4 <_POSIX_Mutex_Get_interrupt_disable+0x32><== NOT EXECUTED
470cc: 7201 moveq #1,%d1 <== NOT EXECUTED
470ce: 4280 clrl %d0 <== NOT EXECUTED
470d0: 2681 movel %d1,%a3@ <== NOT EXECUTED
470d2: 6018 bras 470ec <_POSIX_Mutex_Get_interrupt_disable+0x4a><== NOT EXECUTED
return (POSIX_Mutex_Control *) _Objects_Get_isr_disable(
470d4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
470d8: 2f0b movel %a3,%sp@- <== NOT EXECUTED
470da: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
470dc: 4879 0006 2896 pea 62896 <_POSIX_Mutex_Information> <== NOT EXECUTED
470e2: 4eb9 0004 98e8 jsr 498e8 <_Objects_Get_isr_disable> <== NOT EXECUTED
470e8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
&_POSIX_Mutex_Information,
(Objects_Id) *mutex,
location,
level
);
}
470ec: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
470f0: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED
470f4: 4e5e unlk %fp <== NOT EXECUTED
00047270 <_POSIX_Mutex_Lock_support>:
int _POSIX_Mutex_Lock_support(
pthread_mutex_t *mutex,
bool blocking,
Watchdog_Interval timeout
)
{
47270: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
47274: 2f02 movel %d2,%sp@- <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
ISR_Level level;
the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
47276: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
4727a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4727e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
int _POSIX_Mutex_Lock_support(
pthread_mutex_t *mutex,
bool blocking,
Watchdog_Interval timeout
)
{
47282: 142e 000f moveb %fp@(15),%d2 <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
ISR_Level level;
the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
47286: 4eb9 0004 70a2 jsr 470a2 <_POSIX_Mutex_Get_interrupt_disable><== NOT EXECUTED
switch ( location ) {
4728c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47290: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47294: 6636 bnes 472cc <_POSIX_Mutex_Lock_support+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_mutex_Seize(
47296: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED
4729a: 2040 moveal %d0,%a0 <== NOT EXECUTED
4729c: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
472a0: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED
472a6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
472a8: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
472ac: 4868 0014 pea %a0@(20) <== NOT EXECUTED
472b0: 4eb9 0004 8d70 jsr 48d70 <_CORE_mutex_Seize> <== NOT EXECUTED
blocking,
timeout,
level
);
return _POSIX_Mutex_Translate_core_mutex_return_code(
(CORE_mutex_Status) _Thread_Executing->Wait.return_code
472b6: 2079 0006 2a3c moveal 62a3c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
the_mutex->Object.id,
blocking,
timeout,
level
);
return _POSIX_Mutex_Translate_core_mutex_return_code(
472bc: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
472c0: 4eb9 0004 73d0 jsr 473d0 <_POSIX_Mutex_Translate_core_mutex_return_code><== NOT EXECUTED
472c6: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
472ca: 6002 bras 472ce <_POSIX_Mutex_Lock_support+0x5e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
472cc: 7016 moveq #22,%d0 <== NOT EXECUTED
}
472ce: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
472d2: 4e5e unlk %fp <== NOT EXECUTED
...
000473d0 <_POSIX_Mutex_Translate_core_mutex_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_mutex_status > CORE_MUTEX_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Mutex_Return_codes[the_mutex_status];
}
473d0: 41f9 0005 fc40 lea 5fc40 <_POSIX_Mutex_Return_codes>,%a0 <== NOT EXECUTED
int _POSIX_Mutex_Translate_core_mutex_return_code(
CORE_mutex_Status the_mutex_status
)
{
473d6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_mutex_status > CORE_MUTEX_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Mutex_Return_codes[the_mutex_status];
}
473da: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
473de: 4e5e unlk %fp <== NOT EXECUTED
473e0: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004b1dc <_POSIX_Priority_Is_valid>:
#include <rtems/posix/priority.h>
bool _POSIX_Priority_Is_valid(
int priority
)
{
4b1dc: 4e56 0000 linkw %fp,#0
4b1e0: 202e 0008 movel %fp@(8),%d0
return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) &&
4b1e4: 6f12 bles 4b1f8 <_POSIX_Priority_Is_valid+0x1c> <== NEVER TAKEN
(priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY));
4b1e6: 4281 clrl %d1
4b1e8: 1239 0005 d1d6 moveb 5d1d6 <rtems_maximum_priority>,%d1
#endif
#include <rtems/system.h>
#include <rtems/posix/priority.h>
bool _POSIX_Priority_Is_valid(
4b1ee: b081 cmpl %d1,%d0
4b1f0: 5dc0 slt %d0
4b1f2: 49c0 extbl %d0
4b1f4: 4480 negl %d0
4b1f6: 6002 bras 4b1fa <_POSIX_Priority_Is_valid+0x1e>
int priority
)
{
return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) &&
4b1f8: 4280 clrl %d0 <== NOT EXECUTED
(priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY));
}
4b1fa: 4e5e unlk %fp
...
0004659c <_POSIX_RWLock_Translate_core_RWLock_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_rwlock_status > CORE_RWLOCK_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_RWLock_Return_codes[the_rwlock_status];
}
4659c: 41f9 0005 dc04 lea 5dc04 <_POSIX_RWLock_Return_codes>,%a0 <== NOT EXECUTED
int _POSIX_RWLock_Translate_core_RWLock_return_code(
CORE_RWLock_Status the_rwlock_status
)
{
465a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_rwlock_status > CORE_RWLOCK_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_RWLock_Return_codes[the_rwlock_status];
}
465a6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
465aa: 4e5e unlk %fp <== NOT EXECUTED
465ac: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004ddf4 <_POSIX_Semaphore_Create_support>:
const char *name,
int pshared,
unsigned int value,
POSIX_Semaphore_Control **the_sem
)
{
4ddf4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4ddf8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ddfa: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4ddfc: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
POSIX_Semaphore_Control *the_semaphore;
CORE_semaphore_Attributes *the_sem_attr;
char *name_p = (char *)name;
/* Sharing semaphores among processes is not currently supported */
if (pshared != 0)
4de00: 4aae 000c tstl %fp@(12) <== NOT EXECUTED
4de04: 670e beqs 4de14 <_POSIX_Semaphore_Create_support+0x20><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
4de06: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
4de0c: 7458 moveq #88,%d2 <== NOT EXECUTED
4de0e: 2040 moveal %d0,%a0 <== NOT EXECUTED
4de10: 2082 movel %d2,%a0@ <== NOT EXECUTED
4de12: 6026 bras 4de3a <_POSIX_Semaphore_Create_support+0x46><== NOT EXECUTED
if ( name ) {
4de14: 4a82 tstl %d2 <== NOT EXECUTED
4de16: 6728 beqs 4de40 <_POSIX_Semaphore_Create_support+0x4c><== NOT EXECUTED
if ( strnlen( name, NAME_MAX ) >= NAME_MAX )
4de18: 4878 00ff pea ff <DBL_MANT_DIG+0xca> <== NOT EXECUTED
4de1c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4de1e: 4eb9 0005 1d50 jsr 51d50 <strnlen> <== NOT EXECUTED
4de24: 508f addql #8,%sp <== NOT EXECUTED
4de26: 0c80 0000 00fe cmpil #254,%d0 <== NOT EXECUTED
4de2c: 6312 blss 4de40 <_POSIX_Semaphore_Create_support+0x4c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
4de2e: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
4de34: 725b moveq #91,%d1 <== NOT EXECUTED
4de36: 2040 moveal %d0,%a0 <== NOT EXECUTED
4de38: 2081 movel %d1,%a0@ <== NOT EXECUTED
4de3a: 70ff moveq #-1,%d0 <== NOT EXECUTED
4de3c: 6000 009e braw 4dedc <_POSIX_Semaphore_Create_support+0xe8><== NOT EXECUTED
4de40: 2039 0006 29a8 movel 629a8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4de46: 5280 addql #1,%d0 <== NOT EXECUTED
4de48: 23c0 0006 29a8 movel %d0,629a8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Allocate( void )
{
return (POSIX_Semaphore_Control *)
_Objects_Allocate( &_POSIX_Semaphore_Information );
4de4e: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
4de54: 4eb9 0004 9ea0 jsr 49ea0 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch();
the_semaphore = _POSIX_Semaphore_Allocate();
if ( !the_semaphore ) {
4de5a: 588f addql #4,%sp <== NOT EXECUTED
4de5c: 2440 moveal %d0,%a2 <== NOT EXECUTED
4de5e: 4a80 tstl %d0 <== NOT EXECUTED
4de60: 6614 bnes 4de76 <_POSIX_Semaphore_Create_support+0x82><== NOT EXECUTED
_Thread_Enable_dispatch();
4de62: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
4de68: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
4de6e: 2040 moveal %d0,%a0 <== NOT EXECUTED
4de70: 701c moveq #28,%d0 <== NOT EXECUTED
4de72: 2080 movel %d0,%a0@ <== NOT EXECUTED
4de74: 60c4 bras 4de3a <_POSIX_Semaphore_Create_support+0x46><== NOT EXECUTED
}
the_semaphore->process_shared = pshared;
4de76: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED
if ( name ) {
4de7a: 4a82 tstl %d2 <== NOT EXECUTED
4de7c: 670e beqs 4de8c <_POSIX_Semaphore_Create_support+0x98><== NOT EXECUTED
the_semaphore->named = true;
4de7e: 7001 moveq #1,%d0 <== NOT EXECUTED
4de80: 1540 0014 moveb %d0,%a2@(20) <== NOT EXECUTED
the_semaphore->open_count = 1;
4de84: 7001 moveq #1,%d0 <== NOT EXECUTED
4de86: 2540 0016 movel %d0,%a2@(22) <== NOT EXECUTED
4de8a: 600a bras 4de96 <_POSIX_Semaphore_Create_support+0xa2><== NOT EXECUTED
the_semaphore->linked = true;
} else {
the_semaphore->named = false;
the_semaphore->open_count = 0;
4de8c: 42aa 0016 clrl %a2@(22) <== NOT EXECUTED
if ( name ) {
the_semaphore->named = true;
the_semaphore->open_count = 1;
the_semaphore->linked = true;
} else {
the_semaphore->named = false;
4de90: 4200 clrb %d0 <== NOT EXECUTED
4de92: 1540 0014 moveb %d0,%a2@(20) <== NOT EXECUTED
* blocking tasks on this semaphore should be. It could somehow
* be derived from the current scheduling policy. One
* thing is certain, no matter what we decide, it won't be
* the same as all other POSIX implementations. :)
*/
the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
4de96: 42aa 005e clrl %a2@(94) <== NOT EXECUTED
the_semaphore->open_count = 1;
the_semaphore->linked = true;
} else {
the_semaphore->named = false;
the_semaphore->open_count = 0;
the_semaphore->linked = false;
4de9a: 1540 0015 moveb %d0,%a2@(21) <== NOT EXECUTED
the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
* This effectively disables limit checking.
*/
the_sem_attr->maximum_count = 0xFFFFFFFF;
4de9e: 70ff moveq #-1,%d0 <== NOT EXECUTED
4dea0: 2540 005a movel %d0,%a2@(90) <== NOT EXECUTED
_CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
4dea4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4dea8: 486a 005a pea %a2@(90) <== NOT EXECUTED
4deac: 486a 001a pea %a2@(26) <== NOT EXECUTED
4deb0: 4eb9 0004 9924 jsr 49924 <_CORE_semaphore_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4deb6: 2079 0006 2bfc moveal 62bfc <_POSIX_Semaphore_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
4debc: 4280 clrl %d0 <== NOT EXECUTED
4debe: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4dec2: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED
&_POSIX_Semaphore_Information,
&the_semaphore->Object,
name_p
);
*the_sem = the_semaphore;
4dec6: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
4deca: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
4dece: 208a movel %a2,%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4ded0: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
4ded6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4deda: 4280 clrl %d0 <== NOT EXECUTED
}
4dedc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4dee0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4dee4: 4e5e unlk %fp <== NOT EXECUTED
0004dee8 <_POSIX_Semaphore_Delete>:
*/
void _POSIX_Semaphore_Delete(
POSIX_Semaphore_Control *the_semaphore
)
{
4dee8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4deec: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4deee: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
if ( !the_semaphore->linked && !the_semaphore->open_count ) {
4def2: 4a2a 0015 tstb %a2@(21) <== NOT EXECUTED
4def6: 6636 bnes 4df2e <_POSIX_Semaphore_Delete+0x46> <== NOT EXECUTED
4def8: 4aaa 0016 tstl %a2@(22) <== NOT EXECUTED
4defc: 6630 bnes 4df2e <_POSIX_Semaphore_Delete+0x46> <== NOT EXECUTED
_Objects_Close( &_POSIX_Semaphore_Information, &the_semaphore->Object );
4defe: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4df00: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
4df06: 4eb9 0004 9f1c jsr 49f1c <_Objects_Close> <== NOT EXECUTED
_CORE_semaphore_Flush(
4df0c: 4878 ffff pea ffffffff <LESS> <== NOT EXECUTED
4df10: 42a7 clrl %sp@- <== NOT EXECUTED
4df12: 486a 001a pea %a2@(26) <== NOT EXECUTED
4df16: 4eb9 0004 9918 jsr 49918 <_CORE_semaphore_Flush> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free (
POSIX_Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_POSIX_Semaphore_Information, &the_semaphore->Object );
4df1c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4df1e: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
4df24: 4eb9 0004 a194 jsr 4a194 <_Objects_Free> <== NOT EXECUTED
4df2a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
-1
);
_POSIX_Semaphore_Free( the_semaphore );
}
}
4df2e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4df32: 4e5e unlk %fp <== NOT EXECUTED
...
0004df38 <_POSIX_Semaphore_Name_to_id>:
int _POSIX_Semaphore_Name_to_id(
const char *name,
sem_t *id
)
{
4df38: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4df3c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Id the_id;
if ( !name )
4df40: 4a88 tstl %a0 <== NOT EXECUTED
4df42: 6728 beqs 4df6c <_POSIX_Semaphore_Name_to_id+0x34><== NOT EXECUTED
return EINVAL;
if ( !name[0] )
4df44: 4a10 tstb %a0@ <== NOT EXECUTED
4df46: 6724 beqs 4df6c <_POSIX_Semaphore_Name_to_id+0x34><== NOT EXECUTED
return EINVAL;
status = _Objects_Name_to_id_string(
4df48: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4df4c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4df4e: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
4df54: 4eb9 0004 eaa8 jsr 4eaa8 <_Objects_Name_to_id_string> <== NOT EXECUTED
&_POSIX_Semaphore_Information,
name,
&the_id
);
*id = the_id;
4df5a: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
4df5e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
status = _Objects_Name_to_id_string(
&_POSIX_Semaphore_Information,
name,
&the_id
);
*id = the_id;
4df62: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
4df66: 4a80 tstl %d0 <== NOT EXECUTED
4df68: 6606 bnes 4df70 <_POSIX_Semaphore_Name_to_id+0x38><== NOT EXECUTED
4df6a: 6006 bras 4df72 <_POSIX_Semaphore_Name_to_id+0x3a><== NOT EXECUTED
if ( !name )
return EINVAL;
if ( !name[0] )
return EINVAL;
4df6c: 7016 moveq #22,%d0 <== NOT EXECUTED
4df6e: 6002 bras 4df72 <_POSIX_Semaphore_Name_to_id+0x3a><== NOT EXECUTED
*id = the_id;
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
return ENOENT;
4df70: 7002 moveq #2,%d0 <== NOT EXECUTED
}
4df72: 4e5e unlk %fp <== NOT EXECUTED
...
00050260 <_POSIX_Semaphore_Translate_core_semaphore_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_semaphore_status > CORE_SEMAPHORE_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Semaphore_Return_codes[the_semaphore_status];
}
50260: 41f9 0006 04c2 lea 604c2 <_POSIX_Semaphore_Return_codes>,%a0<== NOT EXECUTED
int _POSIX_Semaphore_Translate_core_semaphore_return_code(
CORE_semaphore_Status the_semaphore_status
)
{
50266: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_semaphore_status > CORE_SEMAPHORE_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Semaphore_Return_codes[the_semaphore_status];
}
5026a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
5026e: 4e5e unlk %fp <== NOT EXECUTED
50270: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004dfac <_POSIX_Semaphore_Wait_support>:
int _POSIX_Semaphore_Wait_support(
sem_t *sem,
bool blocking,
Watchdog_Interval timeout
)
{
4dfac: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
sem_t *id,
Objects_Locations *location
)
{
return (POSIX_Semaphore_Control *)
_Objects_Get( &_POSIX_Semaphore_Information, (Objects_Id)*id, location );
4dfb0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4dfb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4dfb6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4dfb8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4dfbc: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
4dfbe: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
4dfc4: 142e 000f moveb %fp@(15),%d2 <== NOT EXECUTED
4dfc8: 4eb9 0004 a2f8 jsr 4a2f8 <_Objects_Get> <== NOT EXECUTED
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
4dfce: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4dfd2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4dfd6: 6650 bnes 4e028 <_POSIX_Semaphore_Wait_support+0x7c><== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_semaphore_Seize(
4dfd8: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4dfdc: 2040 moveal %d0,%a0 <== NOT EXECUTED
4dfde: 0282 0000 00ff andil #255,%d2 <== NOT EXECUTED
4dfe4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4dfe6: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
4dfea: 4868 001a pea %a0@(26) <== NOT EXECUTED
4dfee: 4eb9 0004 e5fc jsr 4e5fc <_CORE_semaphore_Seize> <== NOT EXECUTED
&the_semaphore->Semaphore,
the_semaphore->Object.id,
blocking,
timeout
);
_Thread_Enable_dispatch();
4dff4: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !_Thread_Executing->Wait.return_code )
4dffa: 2079 0006 2e38 moveal 62e38 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4e000: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4e004: 4aa8 0034 tstl %a0@(52) <== NOT EXECUTED
4e008: 672e beqs 4e038 <_POSIX_Semaphore_Wait_support+0x8c><== NOT EXECUTED
return 0;
rtems_set_errno_and_return_minus_one(
4e00a: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
4e010: 2079 0006 2e38 moveal 62e38 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4e016: 2440 moveal %d0,%a2 <== NOT EXECUTED
4e018: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
4e01c: 4eb9 0005 0260 jsr 50260 <_POSIX_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED
4e022: 588f addql #4,%sp <== NOT EXECUTED
4e024: 2480 movel %d0,%a2@ <== NOT EXECUTED
4e026: 600c bras 4e034 <_POSIX_Semaphore_Wait_support+0x88><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
4e028: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
4e02e: 2040 moveal %d0,%a0 <== NOT EXECUTED
4e030: 7016 moveq #22,%d0 <== NOT EXECUTED
4e032: 2080 movel %d0,%a0@ <== NOT EXECUTED
4e034: 70ff moveq #-1,%d0 <== NOT EXECUTED
4e036: 6002 bras 4e03a <_POSIX_Semaphore_Wait_support+0x8e><== NOT EXECUTED
timeout
);
_Thread_Enable_dispatch();
if ( !_Thread_Executing->Wait.return_code )
return 0;
4e038: 4280 clrl %d0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
}
4e03a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4e03e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4e042: 4e5e unlk %fp <== NOT EXECUTED
...
00045844 <_POSIX_Spinlock_Translate_core_spinlock_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_spinlock_status > CORE_SPINLOCK_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Spinlock_Return_codes[the_spinlock_status];
}
45844: 41f9 0005 c1c0 lea 5c1c0 <_POSIX_Spinlock_Return_codes>,%a0<== NOT EXECUTED
int _POSIX_Spinlock_Translate_core_spinlock_return_code(
CORE_spinlock_Status the_spinlock_status
)
{
4584a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( the_spinlock_status > CORE_SPINLOCK_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Spinlock_Return_codes[the_spinlock_status];
}
4584e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
45852: 4e5e unlk %fp <== NOT EXECUTED
45854: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
00049fbc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>:
#include <rtems/posix/pthread.h>
void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(
Thread_Control *the_thread
)
{
49fbc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
49fc0: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
POSIX_API_Control *thread_support;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
49fc4: 2069 010e moveal %a1@(270),%a0 <== NOT EXECUTED
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
49fc8: 4aa8 00d8 tstl %a0@(216) <== NOT EXECUTED
49fcc: 662e bnes 49ffc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x40><== NOT EXECUTED
49fce: 7001 moveq #1,%d0 <== NOT EXECUTED
49fd0: b0a8 00dc cmpl %a0@(220),%d0 <== NOT EXECUTED
49fd4: 6626 bnes 49ffc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x40><== NOT EXECUTED
thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
49fd6: 4aa8 00e0 tstl %a0@(224) <== NOT EXECUTED
49fda: 6720 beqs 49ffc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x40><== NOT EXECUTED
thread_support->cancelation_requested ) {
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
49fdc: 4878 ffff pea ffffffff <LESS> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
49fe0: 2039 0005 e0c0 movel 5e0c0 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
49fe6: 5380 subql #1,%d0 <== NOT EXECUTED
49fe8: 2f09 movel %a1,%sp@- <== NOT EXECUTED
49fea: 23c0 0005 e0c0 movel %d0,5e0c0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
49ff0: 4eb9 0004 a794 jsr 4a794 <_POSIX_Thread_Exit> <== NOT EXECUTED
49ff6: 508f addql #8,%sp <== NOT EXECUTED
} else
_Thread_Enable_dispatch();
}
49ff8: 4e5e unlk %fp <== NOT EXECUTED
49ffa: 4e75 rts <== NOT EXECUTED
49ffc: 4e5e unlk %fp <== NOT EXECUTED
thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
thread_support->cancelation_requested ) {
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
} else
_Thread_Enable_dispatch();
49ffe: 4ef9 0004 7846 jmp 47846 <_Thread_Enable_dispatch> <== NOT EXECUTED
0004c380 <_POSIX_Thread_Exit>:
void _POSIX_Thread_Exit(
Thread_Control *the_thread,
void *value_ptr
)
{
4c380: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4c384: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
4c388: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Objects_Information *the_information;
the_information = _Objects_Get_information_id( the_thread->Object.id );
4c38c: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED
void _POSIX_Thread_Exit(
Thread_Control *the_thread,
void *value_ptr
)
{
4c390: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
Objects_Information *the_information;
the_information = _Objects_Get_information_id( the_thread->Object.id );
4c394: 4eb9 0004 6bdc jsr 46bdc <_Objects_Get_information_id> <== NOT EXECUTED
* are ready to be switched out. Otherwise, an ISR could
* occur and preempt us out while we still hold the
* allocator mutex.
*/
_RTEMS_Lock_allocator();
4c39a: 2f39 0005 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
void *value_ptr
)
{
Objects_Information *the_information;
the_information = _Objects_Get_information_id( the_thread->Object.id );
4c3a0: 2600 movel %d0,%d3 <== NOT EXECUTED
* are ready to be switched out. Otherwise, an ISR could
* occur and preempt us out while we still hold the
* allocator mutex.
*/
_RTEMS_Lock_allocator();
4c3a2: 4eb9 0004 5f14 jsr 45f14 <_API_Mutex_Lock> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4c3a8: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4c3ae: 5280 addql #1,%d0 <== NOT EXECUTED
4c3b0: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
the_thread->Wait.return_argument = value_ptr;
4c3b6: 2542 0028 movel %d2,%a2@(40) <== NOT EXECUTED
_Thread_Close( the_information, the_thread );
4c3ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c3bc: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4c3be: 4eb9 0004 7228 jsr 47228 <_Thread_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
{
_Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
4c3c4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c3c6: 4879 0005 dbf4 pea 5dbf4 <_POSIX_Threads_Information> <== NOT EXECUTED
4c3cc: 4eb9 0004 6b58 jsr 46b58 <_Objects_Free> <== NOT EXECUTED
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
4c3d2: 2f39 0005 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4c3d8: 4eb9 0004 5f74 jsr 45f74 <_API_Mutex_Unlock> <== NOT EXECUTED
_Thread_Enable_dispatch();
4c3de: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
}
4c3e2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
4c3e8: 4e5e unlk %fp <== NOT EXECUTED
_Thread_Close( the_information, the_thread );
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
_Thread_Enable_dispatch();
4c3ea: 4ef9 0004 7522 jmp 47522 <_Thread_Enable_dispatch> <== NOT EXECUTED
0004b200 <_POSIX_Thread_Translate_sched_param>:
int policy,
struct sched_param *param,
Thread_CPU_budget_algorithms *budget_algorithm,
Thread_CPU_budget_algorithm_callout *budget_callout
)
{
4b200: 4e56 ffec linkw %fp,#-20
4b204: 48d7 3c04 moveml %d2/%a2-%a5,%sp@
4b208: 246e 000c moveal %fp@(12),%a2
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
4b20c: 2f12 movel %a2@,%sp@-
int policy,
struct sched_param *param,
Thread_CPU_budget_algorithms *budget_algorithm,
Thread_CPU_budget_algorithm_callout *budget_callout
)
{
4b20e: 242e 0008 movel %fp@(8),%d2
4b212: 266e 0010 moveal %fp@(16),%a3
4b216: 286e 0014 moveal %fp@(20),%a4
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
4b21a: 4eb9 0004 b1dc jsr 4b1dc <_POSIX_Priority_Is_valid>
4b220: 588f addql #4,%sp
4b222: 4a00 tstb %d0
4b224: 6778 beqs 4b29e <_POSIX_Thread_Translate_sched_param+0x9e><== NEVER TAKEN
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
4b226: 4293 clrl %a3@
*budget_callout = NULL;
4b228: 4294 clrl %a4@
if ( policy == SCHED_OTHER ) {
4b22a: 4a82 tstl %d2
4b22c: 6606 bnes 4b234 <_POSIX_Thread_Translate_sched_param+0x34><== ALWAYS TAKEN
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
4b22e: 7201 moveq #1,%d1 <== NOT EXECUTED
4b230: 2681 movel %d1,%a3@ <== NOT EXECUTED
4b232: 6066 bras 4b29a <_POSIX_Thread_Translate_sched_param+0x9a><== NOT EXECUTED
return 0;
}
if ( policy == SCHED_FIFO ) {
4b234: 7001 moveq #1,%d0
4b236: b082 cmpl %d2,%d0
4b238: 6760 beqs 4b29a <_POSIX_Thread_Translate_sched_param+0x9a><== ALWAYS TAKEN
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
return 0;
}
if ( policy == SCHED_RR ) {
4b23a: 103c 0002 moveb #2,%d0 <== NOT EXECUTED
4b23e: b082 cmpl %d2,%d0 <== NOT EXECUTED
4b240: 6606 bnes 4b248 <_POSIX_Thread_Translate_sched_param+0x48><== NOT EXECUTED
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
4b242: 2680 movel %d0,%a3@ <== NOT EXECUTED
return 0;
4b244: 4200 clrb %d0 <== NOT EXECUTED
4b246: 6058 bras 4b2a0 <_POSIX_Thread_Translate_sched_param+0xa0><== NOT EXECUTED
}
if ( policy == SCHED_SPORADIC ) {
4b248: 7004 moveq #4,%d0 <== NOT EXECUTED
4b24a: b082 cmpl %d2,%d0 <== NOT EXECUTED
4b24c: 6650 bnes 4b29e <_POSIX_Thread_Translate_sched_param+0x9e><== NOT EXECUTED
if ( (param->sched_ss_repl_period.tv_sec == 0) &&
4b24e: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED
4b252: 6606 bnes 4b25a <_POSIX_Thread_Translate_sched_param+0x5a><== NOT EXECUTED
4b254: 4aaa 000c tstl %a2@(12) <== NOT EXECUTED
4b258: 6744 beqs 4b29e <_POSIX_Thread_Translate_sched_param+0x9e><== NOT EXECUTED
(param->sched_ss_repl_period.tv_nsec == 0) )
return EINVAL;
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
4b25a: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED
4b25e: 6606 bnes 4b266 <_POSIX_Thread_Translate_sched_param+0x66><== NOT EXECUTED
4b260: 4aaa 0014 tstl %a2@(20) <== NOT EXECUTED
4b264: 6738 beqs 4b29e <_POSIX_Thread_Translate_sched_param+0x9e><== NOT EXECUTED
(param->sched_ss_init_budget.tv_nsec == 0) )
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
4b266: 486a 0008 pea %a2@(8) <== NOT EXECUTED
4b26a: 4bf9 0004 910c lea 4910c <_Timespec_To_ticks>,%a5 <== NOT EXECUTED
4b270: 4e95 jsr %a5@ <== NOT EXECUTED
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
4b272: 486a 0010 pea %a2@(16) <== NOT EXECUTED
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
(param->sched_ss_init_budget.tv_nsec == 0) )
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
4b276: 2400 movel %d0,%d2 <== NOT EXECUTED
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
4b278: 4e95 jsr %a5@ <== NOT EXECUTED
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
(param->sched_ss_init_budget.tv_nsec == 0) )
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
4b27a: 508f addql #8,%sp <== NOT EXECUTED
4b27c: b082 cmpl %d2,%d0 <== NOT EXECUTED
4b27e: 621e bhis 4b29e <_POSIX_Thread_Translate_sched_param+0x9e><== NOT EXECUTED
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
4b280: 2f2a 0004 movel %a2@(4),%sp@- <== NOT EXECUTED
4b284: 4eb9 0004 b1dc jsr 4b1dc <_POSIX_Priority_Is_valid> <== NOT EXECUTED
4b28a: 588f addql #4,%sp <== NOT EXECUTED
4b28c: 4a00 tstb %d0 <== NOT EXECUTED
4b28e: 670e beqs 4b29e <_POSIX_Thread_Translate_sched_param+0x9e><== NOT EXECUTED
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;
4b290: 7003 moveq #3,%d0 <== NOT EXECUTED
4b292: 2680 movel %d0,%a3@ <== NOT EXECUTED
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
4b294: 28bc 0004 5c80 movel #285824,%a4@ <== NOT EXECUTED
return 0;
}
if ( policy == SCHED_FIFO ) {
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
return 0;
4b29a: 4280 clrl %d0
4b29c: 6002 bras 4b2a0 <_POSIX_Thread_Translate_sched_param+0xa0>
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
return EINVAL;
4b29e: 7016 moveq #22,%d0 <== NOT EXECUTED
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
return 0;
}
return EINVAL;
}
4b2a0: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5
4b2a6: 4e5e unlk %fp
...
0004a23e <_POSIX_Threads_Create_extension>:
bool _POSIX_Threads_Create_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *created
)
{
4a23e: 4e56 0000 linkw %fp,#0
4a242: 2f0b movel %a3,%sp@-
4a244: 266e 000c moveal %fp@(12),%a3
4a248: 2f0a movel %a2,%sp@-
POSIX_API_Control *api;
POSIX_API_Control *executing_api;
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
4a24a: 4878 00f0 pea f0 <DBL_MANT_DIG+0xbb>
4a24e: 4eb9 0004 8710 jsr 48710 <_Workspace_Allocate>
if ( !api )
4a254: 588f addql #4,%sp
)
{
POSIX_API_Control *api;
POSIX_API_Control *executing_api;
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
4a256: 2440 moveal %d0,%a2
if ( !api )
4a258: 4a80 tstl %d0
4a25a: 6700 00e2 beqw 4a33e <_POSIX_Threads_Create_extension+0x100>
return false;
created->API_Extensions[ THREAD_API_POSIX ] = api;
4a25e: 2740 010e movel %d0,%a3@(270)
/* XXX check all fields are touched */
api->Attributes = _POSIX_Threads_Default_attributes;
4a262: 4878 0040 pea 40 <DBL_MANT_DIG+0xb>
4a266: 42a7 clrl %sp@-
4a268: 2f00 movel %d0,%sp@-
4a26a: 4eb9 0004 d1a8 jsr 4d1a8 <memset>
4a270: 7001 moveq #1,%d0
4a272: 7202 moveq #2,%d1
4a274: 2480 movel %d0,%a2@
4a276: 7001 moveq #1,%d0
4a278: 2541 0018 movel %d1,%a2@(24)
4a27c: 2540 0010 movel %d0,%a2@(16)
4a280: 2540 0014 movel %d0,%a2@(20)
4a284: 2540 0038 movel %d0,%a2@(56)
4a288: 2540 003c movel %d0,%a2@(60)
api->detachstate = _POSIX_Threads_Default_attributes.detachstate;
4a28c: 2540 0040 movel %d0,%a2@(64)
api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy;
4a290: 2540 0084 movel %d0,%a2@(132)
api->schedparam = _POSIX_Threads_Default_attributes.schedparam;
4a294: 4878 001c pea 1c <OPER2+0x8>
4a298: 4879 0005 b722 pea 5b722 <_POSIX_Threads_Default_attributes+0x18>
4a29e: 486a 0088 pea %a2@(136)
4a2a2: 4eb9 0004 d138 jsr 4d138 <memcpy>
* The check for class == 1 is debug. Should never really happen.
*/
/* XXX use signal constants */
api->signals_pending = 0;
if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API
4a2a8: 4fef 0018 lea %sp@(24),%sp
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
4a2ac: 4280 clrl %d0
4a2ae: 1039 0005 c182 moveb 5c182 <rtems_maximum_priority>,%d0
4a2b4: 90ab 0014 subl %a3@(20),%d0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4a2b8: 41ea 00e8 lea %a2@(232),%a0
4a2bc: 7207 moveq #7,%d1
4a2be: 2540 0088 movel %d0,%a2@(136)
4a2c2: 4280 clrl %d0
4a2c4: 102b 0008 moveb %a3@(8),%d0
4a2c8: 2548 00e4 movel %a0,%a2@(228)
* POSIX 1003.1 1996, 18.2.2.2
*/
api->cancelation_requested = 0;
api->cancelability_state = PTHREAD_CANCEL_ENABLE;
api->cancelability_type = PTHREAD_CANCEL_DEFERRED;
_Chain_Initialize_empty (&api->Cancellation_Handlers);
4a2cc: 41ea 00e4 lea %a2@(228),%a0
4a2d0: c081 andl %d1,%d0
_POSIX_Priority_From_core( created->current_priority );
/*
* POSIX 1003.1 1996, 18.2.2.2
*/
api->cancelation_requested = 0;
4a2d2: 42aa 00e0 clrl %a2@(224)
* The check for class == 1 is debug. Should never really happen.
*/
/* XXX use signal constants */
api->signals_pending = 0;
if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API
4a2d6: 123c 0003 moveb #3,%d1
/*
* POSIX 1003.1 1996, 18.2.2.2
*/
api->cancelation_requested = 0;
api->cancelability_state = PTHREAD_CANCEL_ENABLE;
4a2da: 42aa 00d8 clrl %a2@(216)
api->cancelability_type = PTHREAD_CANCEL_DEFERRED;
4a2de: 42aa 00dc clrl %a2@(220)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
4a2e2: 42aa 00e8 clrl %a2@(232)
_Chain_Initialize_empty (&api->Cancellation_Handlers);
4a2e6: 2548 00ec movel %a0,%a2@(236)
*
* The check for class == 1 is debug. Should never really happen.
*/
/* XXX use signal constants */
api->signals_pending = 0;
4a2ea: 42aa 00d4 clrl %a2@(212)
if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API
4a2ee: b280 cmpl %d0,%d1
4a2f0: 6612 bnes 4a304 <_POSIX_Threads_Create_extension+0xc6>
#if defined(RTEMS_DEBUG)
&& _Objects_Get_class( created->Object.id ) == 1
#endif
) {
executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
4a2f2: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
api->signals_blocked = executing_api->signals_blocked;
4a2f8: 2068 010e moveal %a0@(270),%a0
4a2fc: 2568 00d0 00d0 movel %a0@(208),%a2@(208)
4a302: 6006 bras 4a30a <_POSIX_Threads_Create_extension+0xcc>
} else {
api->signals_blocked = 0xffffffff;
4a304: 70ff moveq #-1,%d0
4a306: 2540 00d0 movel %d0,%a2@(208)
}
_Thread_queue_Initialize(
4a30a: 42a7 clrl %sp@-
4a30c: 4878 1000 pea 1000 <D_MAX_EXP+0x801>
4a310: 42a7 clrl %sp@-
4a312: 486a 0044 pea %a2@(68)
4a316: 4eb9 0004 7be4 jsr 47be4 <_Thread_queue_Initialize>
THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_JOIN_AT_EXIT,
0
);
_Watchdog_Initialize(
4a31c: 202b 0008 movel %a3@(8),%d0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
4a320: 223c 0004 a34c movel #303948,%d1
_POSIX_Threads_Sporadic_budget_TSR,
created->Object.id,
created
);
return true;
4a326: 4fef 0010 lea %sp@(16),%sp
the_watchdog->id = id;
4a32a: 2540 00c8 movel %d0,%a2@(200)
4a32e: 7001 moveq #1,%d0
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4a330: 42aa 00b0 clrl %a2@(176)
the_watchdog->routine = routine;
4a334: 2541 00c4 movel %d1,%a2@(196)
the_watchdog->id = id;
the_watchdog->user_data = user_data;
4a338: 254b 00cc movel %a3,%a2@(204)
4a33c: 6002 bras 4a340 <_POSIX_Threads_Create_extension+0x102>
POSIX_API_Control *executing_api;
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
if ( !api )
return false;
4a33e: 4200 clrb %d0 <== NOT EXECUTED
created->Object.id,
created
);
return true;
}
4a340: 246e fff8 moveal %fp@(-8),%a2
4a344: 266e fffc moveal %fp@(-4),%a3
4a348: 4e5e unlk %fp <== NOT EXECUTED
0004a1ca <_POSIX_Threads_Delete_extension>:
*/
void _POSIX_Threads_Delete_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *deleted
)
{
4a1ca: 4e56 ffec linkw %fp,#-20
4a1ce: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@
4a1d2: 246e 000c moveal %fp@(12),%a2
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
4a1d6: 49f9 0004 7868 lea 47868 <_Thread_queue_Dequeue>,%a4
{
Thread_Control *the_thread;
POSIX_API_Control *api;
void **value_ptr;
api = deleted->API_Extensions[ THREAD_API_POSIX ];
4a1dc: 266a 010e moveal %a2@(270),%a3
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
4a1e0: 240b movel %a3,%d2
4a1e2: 0682 0000 0044 addil #68,%d2
api = deleted->API_Extensions[ THREAD_API_POSIX ];
/*
* Run the POSIX cancellation handlers
*/
_POSIX_Threads_cancel_run( deleted );
4a1e8: 2f0a movel %a2,%sp@-
4a1ea: 4eb9 0004 c0d0 jsr 4c0d0 <_POSIX_Threads_cancel_run>
/*
* Run all the key destructors
*/
_POSIX_Keys_Run_destructors( deleted );
4a1f0: 2f0a movel %a2,%sp@-
4a1f2: 4eb9 0004 c134 jsr 4c134 <_POSIX_Keys_Run_destructors>
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
4a1f8: 262a 0028 movel %a2@(40),%d3
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
4a1fc: 508f addql #8,%sp
4a1fe: 6008 bras 4a208 <_POSIX_Threads_Delete_extension+0x3e>
*(void **)the_thread->Wait.return_argument = value_ptr;
4a200: 2240 moveal %d0,%a1 <== NOT EXECUTED
4a202: 2069 0028 moveal %a1@(40),%a0 <== NOT EXECUTED
4a206: 2083 movel %d3,%a0@ <== NOT EXECUTED
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
4a208: 2f02 movel %d2,%sp@-
4a20a: 4e94 jsr %a4@
4a20c: 588f addql #4,%sp
4a20e: 4a80 tstl %d0
4a210: 66ee bnes 4a200 <_POSIX_Threads_Delete_extension+0x36><== NEVER TAKEN
*(void **)the_thread->Wait.return_argument = value_ptr;
if ( api->schedpolicy == SCHED_SPORADIC )
4a212: 103c 0004 moveb #4,%d0
4a216: b0ab 0084 cmpl %a3@(132),%d0
4a21a: 660c bnes 4a228 <_POSIX_Threads_Delete_extension+0x5e><== ALWAYS TAKEN
(void) _Watchdog_Remove( &api->Sporadic_timer );
4a21c: 486b 00a8 pea %a3@(168) <== NOT EXECUTED
4a220: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
4a226: 588f addql #4,%sp <== NOT EXECUTED
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
4a228: 42aa 010e clrl %a2@(270)
(void) _Workspace_Free( api );
4a22c: 2d4b 0008 movel %a3,%fp@(8)
}
4a230: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4
4a236: 4e5e unlk %fp
if ( api->schedpolicy == SCHED_SPORADIC )
(void) _Watchdog_Remove( &api->Sporadic_timer );
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
(void) _Workspace_Free( api );
4a238: 4ef9 0004 872c jmp 4872c <_Workspace_Free>
0004a19e <_POSIX_Threads_Exitted_extension>:
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
4a19e: 4280 clrl %d0
4a1a0: 7207 moveq #7,%d1
* This method is invoked each time a thread exits.
*/
void _POSIX_Threads_Exitted_extension(
Thread_Control *executing
)
{
4a1a2: 4e56 0000 linkw %fp,#0
4a1a6: 206e 0008 moveal %fp@(8),%a0
4a1aa: 1028 0008 moveb %a0@(8),%d0
4a1ae: c081 andl %d1,%d0
/*
* If the executing thread was not created with the POSIX API, then this
* API do not get to define its exit behavior.
*/
if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
4a1b0: 123c 0003 moveb #3,%d1
4a1b4: b280 cmpl %d0,%d1
4a1b6: 660e bnes 4a1c6 <_POSIX_Threads_Exitted_extension+0x28><== ALWAYS TAKEN
pthread_exit( executing->Wait.return_argument );
4a1b8: 2d68 0028 0008 movel %a0@(40),%fp@(8) <== NOT EXECUTED
}
4a1be: 4e5e unlk %fp <== NOT EXECUTED
/*
* If the executing thread was not created with the POSIX API, then this
* API do not get to define its exit behavior.
*/
if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
pthread_exit( executing->Wait.return_argument );
4a1c0: 4ef9 0004 c3f0 jmp 4c3f0 <pthread_exit> <== NOT EXECUTED
}
4a1c6: 4e5e unlk %fp <== NOT EXECUTED
000459b0 <_POSIX_Threads_Initialize_user_threads_body>:
*
* Output parameters: NONE
*/
void _POSIX_Threads_Initialize_user_threads_body(void)
{
459b0: 4e56 ff98 linkw %fp,#-104
459b4: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@
uint32_t maximum;
posix_initialization_threads_table *user_threads;
pthread_t thread_id;
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
459b8: 2479 0005 d1ce moveal 5d1ce <Configuration_POSIX_API+0x34>,%a2
maximum = Configuration_POSIX_API.number_of_initialization_threads;
459be: 2839 0005 d1ca movel 5d1ca <Configuration_POSIX_API+0x30>,%d4
if ( !user_threads || maximum == 0 )
459c4: 4a8a tstl %a2
459c6: 676a beqs 45a32 <_POSIX_Threads_Initialize_user_threads_body+0x82><== NEVER TAKEN
459c8: 4a84 tstl %d4
459ca: 6766 beqs 45a32 <_POSIX_Threads_Initialize_user_threads_body+0x82><== NEVER TAKEN
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
459cc: 240e movel %fp,%d2
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
status = pthread_create(
459ce: 2a0e movel %fp,%d5
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
maximum = Configuration_POSIX_API.number_of_initialization_threads;
if ( !user_threads || maximum == 0 )
459d0: 4283 clrl %d3
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
459d2: 0682 ffff ffbc addil #-68,%d2
459d8: 2c3c 0004 b2ac movel #307884,%d6
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
459de: 4bf9 0004 b2d8 lea 4b2d8 <pthread_attr_setinheritsched>,%a5
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
459e4: 49f9 0004 b310 lea 4b310 <pthread_attr_setstacksize>,%a4
status = pthread_create(
459ea: 5985 subql #4,%d5
459ec: 47f9 0004 5704 lea 45704 <pthread_create>,%a3
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
459f2: 2f02 movel %d2,%sp@-
459f4: 2046 moveal %d6,%a0
459f6: 4e90 jsr %a0@
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
459f8: 4878 0002 pea 2 <DOUBLE_FLOAT>
459fc: 2f02 movel %d2,%sp@-
459fe: 4e95 jsr %a5@
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
45a00: 2f2a 0004 movel %a2@(4),%sp@-
45a04: 2f02 movel %d2,%sp@-
45a06: 4e94 jsr %a4@
status = pthread_create(
45a08: 42a7 clrl %sp@-
45a0a: 2f12 movel %a2@,%sp@-
45a0c: 2f02 movel %d2,%sp@-
45a0e: 2f05 movel %d5,%sp@-
45a10: 4e93 jsr %a3@
&thread_id,
&attr,
user_threads[ index ].thread_entry,
NULL
);
if ( status )
45a12: 4fef 0024 lea %sp@(36),%sp
45a16: 4a80 tstl %d0
45a18: 6710 beqs 45a2a <_POSIX_Threads_Initialize_user_threads_body+0x7a>
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
45a1a: 2f00 movel %d0,%sp@-
45a1c: 4878 0001 pea 1 <ADD>
45a20: 4878 0002 pea 2 <DOUBLE_FLOAT>
45a24: 4eb9 0004 76c8 jsr 476c8 <_Internal_error_Occurred>
*
* Setting the attributes explicitly is critical, since we don't want
* to inherit the idle tasks attributes.
*/
for ( index=0 ; index < maximum ; index++ ) {
45a2a: 5283 addql #1,%d3
45a2c: 508a addql #8,%a2
45a2e: b883 cmpl %d3,%d4
45a30: 62c0 bhis 459f2 <_POSIX_Threads_Initialize_user_threads_body+0x42><== NEVER TAKEN
NULL
);
if ( status )
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
}
}
45a32: 4cee 3c7c ff98 moveml %fp@(-104),%d2-%d6/%a2-%a5
45a38: 4e5e unlk %fp <== NOT EXECUTED
0004a34c <_POSIX_Threads_Sporadic_budget_TSR>:
*/
void _POSIX_Threads_Sporadic_budget_TSR(
Objects_Id id __attribute__((unused)),
void *argument
)
{
4a34c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a350: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4a352: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a354: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Thread_Control *the_thread;
POSIX_API_Control *api;
the_thread = argument;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
4a358: 266a 010e moveal %a2@(270),%a3 <== NOT EXECUTED
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
4a35c: 486b 0098 pea %a3@(152) <== NOT EXECUTED
4a360: 4eb9 0004 b148 jsr 4b148 <_Timespec_To_ticks> <== NOT EXECUTED
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
4a366: 588f addql #4,%sp <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
the_thread->cpu_time_budget = ticks;
4a368: 2540 0076 movel %d0,%a2@(118) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
4a36c: 4280 clrl %d0 <== NOT EXECUTED
4a36e: 1039 0005 c182 moveb 5c182 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
4a374: 90ab 0088 subl %a3@(136),%d0 <== NOT EXECUTED
new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
the_thread->real_priority = new_priority;
4a378: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
4a37c: 4aaa 001c tstl %a2@(28) <== NOT EXECUTED
4a380: 6618 bnes 4a39a <_POSIX_Threads_Sporadic_budget_TSR+0x4e><== NOT EXECUTED
/*
* If this would make them less important, then do not change it.
*/
if ( the_thread->current_priority > new_priority ) {
4a382: b0aa 0014 cmpl %a2@(20),%d0 <== NOT EXECUTED
4a386: 6412 bccs 4a39a <_POSIX_Threads_Sporadic_budget_TSR+0x4e><== NOT EXECUTED
_Thread_Change_priority( the_thread, new_priority, true );
4a388: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4a38c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a38e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a390: 4eb9 0004 703c jsr 4703c <_Thread_Change_priority> <== NOT EXECUTED
4a396: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
#endif
}
}
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
4a39a: 486b 0090 pea %a3@(144) <== NOT EXECUTED
4a39e: 4eb9 0004 b148 jsr 4b148 <_Timespec_To_ticks> <== NOT EXECUTED
_Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );
}
4a3a4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
4a3a8: 588f addql #4,%sp <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
4a3aa: 2740 00b4 movel %d0,%a3@(180) <== NOT EXECUTED
}
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
_Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );
4a3ae: 47eb 00a8 lea %a3@(168),%a3 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
4a3b2: 203c 0005 daee movel #383726,%d0 <== NOT EXECUTED
4a3b8: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED
}
4a3bc: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED
4a3c0: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
4a3c4: 4e5e unlk %fp <== NOT EXECUTED
4a3c6: 4ef9 0004 849c jmp 4849c <_Watchdog_Insert> <== NOT EXECUTED
0004a3cc <_POSIX_Threads_Sporadic_budget_callout>:
/*
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
4a3cc: 70ff moveq #-1,%d0 <== NOT EXECUTED
* _POSIX_Threads_Sporadic_budget_callout
*/
void _POSIX_Threads_Sporadic_budget_callout(
Thread_Control *the_thread
)
{
4a3ce: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a3d2: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
/*
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
4a3d6: 2140 0076 movel %d0,%a0@(118) <== NOT EXECUTED
4a3da: 4280 clrl %d0 <== NOT EXECUTED
4a3dc: 1039 0005 c182 moveb 5c182 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
)
{
POSIX_API_Control *api;
uint32_t new_priority;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
4a3e2: 2268 010e moveal %a0@(270),%a1 <== NOT EXECUTED
4a3e6: 90a9 008c subl %a1@(140),%d0 <== NOT EXECUTED
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
the_thread->real_priority = new_priority;
4a3ea: 2140 0018 movel %d0,%a0@(24) <== NOT EXECUTED
*/
#if 0
printk( "callout %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
4a3ee: 4aa8 001c tstl %a0@(28) <== NOT EXECUTED
4a3f2: 6618 bnes 4a40c <_POSIX_Threads_Sporadic_budget_callout+0x40><== NOT EXECUTED
/*
* Make sure we are actually lowering it. If they have lowered it
* to logically lower than sched_ss_low_priority, then we do not want to
* change it.
*/
if ( the_thread->current_priority < new_priority ) {
4a3f4: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED
4a3f8: 6312 blss 4a40c <_POSIX_Threads_Sporadic_budget_callout+0x40><== NOT EXECUTED
_Thread_Change_priority( the_thread, new_priority, true );
4a3fa: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4a3fe: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a400: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4a402: 4eb9 0004 703c jsr 4703c <_Thread_Change_priority> <== NOT EXECUTED
4a408: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
#if 0
printk( "lower priority\n" );
#endif
}
}
}
4a40c: 4e5e unlk %fp <== NOT EXECUTED
0004c0d0 <_POSIX_Threads_cancel_run>:
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;
4c0d0: 7001 moveq #1,%d0
#include <rtems/posix/threadsup.h>
void _POSIX_Threads_cancel_run(
Thread_Control *the_thread
)
{
4c0d2: 4e56 ffec linkw %fp,#-20
POSIX_Cancel_Handler_control *handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
4c0d6: 206e 0008 moveal %fp@(8),%a0
#include <rtems/posix/threadsup.h>
void _POSIX_Threads_cancel_run(
Thread_Control *the_thread
)
{
4c0da: 48d7 3c04 moveml %d2/%a2-%a5,%sp@
POSIX_Cancel_Handler_control *handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
4c0de: 2468 010e moveal %a0@(270),%a2
handler_stack = &thread_support->Cancellation_Handlers;
thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;
while ( !_Chain_Is_empty( handler_stack ) ) {
_ISR_Disable( level );
4c0e2: 243c 0000 0700 movel #1792,%d2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4c0e8: 47ea 00e8 lea %a2@(232),%a3
_Chain_Extract_unprotected( &handler->Node );
_ISR_Enable( level );
(*handler->routine)( handler->arg );
_Workspace_Free( handler );
4c0ec: 49f9 0004 872c lea 4872c <_Workspace_Free>,%a4
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;
4c0f2: 2540 00d8 movel %d0,%a2@(216)
while ( !_Chain_Is_empty( handler_stack ) ) {
4c0f6: 602a bras 4c122 <_POSIX_Threads_cancel_run+0x52>
_ISR_Disable( level );
4c0f8: 2002 movel %d2,%d0 <== NOT EXECUTED
4c0fa: 40c1 movew %sr,%d1 <== NOT EXECUTED
4c0fc: 8081 orl %d1,%d0 <== NOT EXECUTED
4c0fe: 46c0 movew %d0,%sr <== NOT EXECUTED
handler = (POSIX_Cancel_Handler_control *)
4c100: 2a6b 0004 moveal %a3@(4),%a5 <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
4c104: 2255 moveal %a5@,%a1 <== NOT EXECUTED
previous = the_node->previous;
4c106: 206d 0004 moveal %a5@(4),%a0 <== NOT EXECUTED
next->previous = previous;
4c10a: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
previous->next = next;
4c10e: 2089 movel %a1,%a0@ <== NOT EXECUTED
_Chain_Tail( handler_stack )->previous;
_Chain_Extract_unprotected( &handler->Node );
_ISR_Enable( level );
4c110: 46c1 movew %d1,%sr <== NOT EXECUTED
(*handler->routine)( handler->arg );
4c112: 2f2d 000c movel %a5@(12),%sp@- <== NOT EXECUTED
4c116: 206d 0008 moveal %a5@(8),%a0 <== NOT EXECUTED
4c11a: 4e90 jsr %a0@ <== NOT EXECUTED
_Workspace_Free( handler );
4c11c: 2f0d movel %a5,%sp@- <== NOT EXECUTED
4c11e: 4e94 jsr %a4@ <== NOT EXECUTED
4c120: 508f addql #8,%sp <== NOT EXECUTED
handler_stack = &thread_support->Cancellation_Handlers;
thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;
while ( !_Chain_Is_empty( handler_stack ) ) {
4c122: b7ea 00e4 cmpal %a2@(228),%a3
4c126: 66d0 bnes 4c0f8 <_POSIX_Threads_cancel_run+0x28> <== NEVER TAKEN
(*handler->routine)( handler->arg );
_Workspace_Free( handler );
}
}
4c128: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5
4c12e: 4e5e unlk %fp
...
0004acc0 <_POSIX_Timer_Insert_helper>:
Watchdog_Interval ticks,
Objects_Id id,
Watchdog_Service_routine_entry TSR,
void *arg
)
{
4acc0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4acc4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4acc6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4acca: 2f02 movel %d2,%sp@- <== NOT EXECUTED
ISR_Level level;
(void) _Watchdog_Remove( timer );
4accc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4acce: 4eb9 0004 8cd8 jsr 48cd8 <_Watchdog_Remove> <== NOT EXECUTED
_ISR_Disable( level );
4acd4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4acda: 40c2 movew %sr,%d2 <== NOT EXECUTED
4acdc: 8082 orl %d2,%d0 <== NOT EXECUTED
4acde: 46c0 movew %d0,%sr <== NOT EXECUTED
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( timer->state != WATCHDOG_INACTIVE ) {
4ace0: 588f addql #4,%sp <== NOT EXECUTED
4ace2: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED
4ace6: 6706 beqs 4acee <_POSIX_Timer_Insert_helper+0x2e><== NOT EXECUTED
_ISR_Enable( level );
4ace8: 46c2 movew %d2,%sr <== NOT EXECUTED
return false;
4acea: 4200 clrb %d0 <== NOT EXECUTED
4acec: 6030 bras 4ad1e <_POSIX_Timer_Insert_helper+0x5e><== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4acee: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED
the_watchdog->routine = routine;
4acf2: 256e 0014 001c movel %fp@(20),%a2@(28) <== NOT EXECUTED
the_watchdog->id = id;
4acf8: 256e 0010 0020 movel %fp@(16),%a2@(32) <== NOT EXECUTED
the_watchdog->user_data = user_data;
4acfe: 256e 0018 0024 movel %fp@(24),%a2@(36) <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
4ad04: 256e 000c 000c movel %fp@(12),%a2@(12) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
4ad0a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ad0c: 4879 0005 e68e pea 5e68e <_Watchdog_Ticks_chain> <== NOT EXECUTED
4ad12: 4eb9 0004 8bbc jsr 48bbc <_Watchdog_Insert> <== NOT EXECUTED
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
_Watchdog_Initialize( timer, TSR, id, arg );
_Watchdog_Insert_ticks( timer, ticks );
_ISR_Enable( level );
4ad18: 46c2 movew %d2,%sr <== NOT EXECUTED
return true;
4ad1a: 508f addql #8,%sp <== NOT EXECUTED
4ad1c: 7001 moveq #1,%d0 <== NOT EXECUTED
}
4ad1e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4ad22: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4ad26: 4e5e unlk %fp <== NOT EXECUTED
...
00045538 <_POSIX_Timer_TSR>:
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
45538: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4553c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4553e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
45542: 52aa 0066 addql #1,%a2@(102) <== NOT EXECUTED
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
45546: 4aaa 0052 tstl %a2@(82) <== NOT EXECUTED
4554a: 6606 bnes 45552 <_POSIX_Timer_TSR+0x1a> <== NOT EXECUTED
4554c: 4aaa 0056 tstl %a2@(86) <== NOT EXECUTED
45550: 6736 beqs 45588 <_POSIX_Timer_TSR+0x50> <== NOT EXECUTED
( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {
activated = _POSIX_Timer_Insert_helper(
45552: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45554: 4879 0004 5538 pea 45538 <_POSIX_Timer_TSR> <== NOT EXECUTED
4555a: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED
4555e: 2f2a 0062 movel %a2@(98),%sp@- <== NOT EXECUTED
45562: 486a 0010 pea %a2@(16) <== NOT EXECUTED
45566: 4eb9 0004 acc0 jsr 4acc0 <_POSIX_Timer_Insert_helper> <== NOT EXECUTED
ptimer->ticks,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated )
4556c: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
45570: 4a00 tstb %d0 <== NOT EXECUTED
45572: 672e beqs 455a2 <_POSIX_Timer_TSR+0x6a> <== NOT EXECUTED
return;
/* Store the time when the timer was started again */
_TOD_Get( &ptimer->time );
45574: 486a 006a pea %a2@(106) <== NOT EXECUTED
45578: 4eb9 0004 6a64 jsr 46a64 <_TOD_Get> <== NOT EXECUTED
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
4557e: 588f addql #4,%sp <== NOT EXECUTED
45580: 7003 moveq #3,%d0 <== NOT EXECUTED
45582: 1540 003c moveb %d0,%a2@(60) <== NOT EXECUTED
45586: 6006 bras 4558e <_POSIX_Timer_TSR+0x56> <== NOT EXECUTED
} else {
/* Indicates that the timer is stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
45588: 7004 moveq #4,%d0 <== NOT EXECUTED
4558a: 1540 003c moveb %d0,%a2@(60) <== NOT EXECUTED
/*
* The sending of the signal to the process running the handling function
* specified for that signal is simulated
*/
if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
4558e: 2f2a 0042 movel %a2@(66),%sp@- <== NOT EXECUTED
45592: 2f2a 0038 movel %a2@(56),%sp@- <== NOT EXECUTED
45596: 4eb9 0004 a8a8 jsr 4a8a8 <pthread_kill> <== NOT EXECUTED
}
/* After the signal handler returns, the count of expirations of the
* timer must be set to 0.
*/
ptimer->overrun = 0;
4559c: 508f addql #8,%sp <== NOT EXECUTED
4559e: 42aa 0066 clrl %a2@(102) <== NOT EXECUTED
}
455a2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
455a6: 4e5e unlk %fp <== NOT EXECUTED
...
00049e28 <_POSIX_signals_Abnormal_termination_handler>:
sigset_t _POSIX_signals_Pending;
void _POSIX_signals_Abnormal_termination_handler(
int signo __attribute__((unused)) )
{
49e28: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
exit( 1 );
49e2c: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
49e30: 4eb9 0004 c89c jsr 4c89c <exit> <== NOT EXECUTED
00046dac <_POSIX_signals_Alarm_TSR>:
void _POSIX_signals_Alarm_TSR(
Objects_Id id __attribute__((unused)),
void *argument __attribute__((unused))
)
{
46dac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
int status;
status = kill( getpid(), SIGALRM );
46db0: 4eb9 0004 4610 jsr 44610 <getpid> <== NOT EXECUTED
46db6: 720e moveq #14,%d1 <== NOT EXECUTED
46db8: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
46dbc: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED
/* XXX can't print from an ISR, should this be fatal? */
}
46dc0: 4e5e unlk %fp <== NOT EXECUTED
void *argument __attribute__((unused))
)
{
int status;
status = kill( getpid(), SIGALRM );
46dc2: 4ef9 0004 6edc jmp 46edc <kill> <== NOT EXECUTED
0004c1b0 <_POSIX_signals_Check_signal>:
{
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
4c1b0: 4280 clrl %d0 <== NOT EXECUTED
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
4c1b2: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
4c1b6: 102e 0013 moveb %fp@(19),%d0 <== NOT EXECUTED
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
4c1ba: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
4c1be: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4c1c2: 2a0e movel %fp,%d5 <== NOT EXECUTED
4c1c4: 0685 ffff fff4 addil #-12,%d5 <== NOT EXECUTED
4c1ca: 2f00 movel %d0,%sp@- <== NOT EXECUTED
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
4c1cc: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
4c1d0: 2f05 movel %d5,%sp@- <== NOT EXECUTED
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
4c1d2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
4c1d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c1d8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c1da: 4eb9 0004 c288 jsr 4c288 <_POSIX_signals_Clear_signals> <== NOT EXECUTED
4c1e0: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
4c1e4: 4a00 tstb %d0 <== NOT EXECUTED
4c1e6: 6700 0092 beqw 4c27a <_POSIX_signals_Check_signal+0xca><== NOT EXECUTED
#endif
/*
* Just to prevent sending a signal which is currently being ignored.
*/
if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )
4c1ea: 2002 movel %d2,%d0 <== NOT EXECUTED
4c1ec: 2602 movel %d2,%d3 <== NOT EXECUTED
4c1ee: e588 lsll #2,%d0 <== NOT EXECUTED
4c1f0: e98b lsll #4,%d3 <== NOT EXECUTED
4c1f2: 9680 subl %d0,%d3 <== NOT EXECUTED
4c1f4: 2043 moveal %d3,%a0 <== NOT EXECUTED
4c1f6: d1fc 0005 deca addal #384714,%a0 <== NOT EXECUTED
4c1fc: 7001 moveq #1,%d0 <== NOT EXECUTED
4c1fe: 2668 0008 moveal %a0@(8),%a3 <== NOT EXECUTED
4c202: b08b cmpl %a3,%d0 <== NOT EXECUTED
4c204: 6774 beqs 4c27a <_POSIX_signals_Check_signal+0xca><== NOT EXECUTED
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
4c206: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED
return false;
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
4c20a: 282a 00d0 movel %a2@(208),%d4 <== NOT EXECUTED
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
4c20e: 8084 orl %d4,%d0 <== NOT EXECUTED
/*
* We have to save the blocking information of the current wait queue
* because the signal handler may subsequently go on and put the thread
* on a wait queue, for its own purposes.
*/
memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,
4c210: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4c216: 41e8 0020 lea %a0@(32),%a0 <== NOT EXECUTED
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
4c21a: 2540 00d0 movel %d0,%a2@(208) <== NOT EXECUTED
/*
* We have to save the blocking information of the current wait queue
* because the signal handler may subsequently go on and put the thread
* on a wait queue, for its own purposes.
*/
memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,
4c21e: 4878 0028 pea 28 <OPER2+0x14> <== NOT EXECUTED
4c222: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4c224: 486e ffcc pea %fp@(-52) <== NOT EXECUTED
4c228: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
sizeof( Thread_Wait_information ));
/*
* Here, the signal handler function executes
*/
switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {
4c22e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4c232: 41f9 0005 deca lea 5deca <_POSIX_signals_Vectors>,%a0 <== NOT EXECUTED
4c238: 7002 moveq #2,%d0 <== NOT EXECUTED
4c23a: b0b0 3800 cmpl %a0@(00000000,%d3:l),%d0 <== NOT EXECUTED
4c23e: 660e bnes 4c24e <_POSIX_signals_Check_signal+0x9e><== NOT EXECUTED
case SA_SIGINFO:
(*_POSIX_signals_Vectors[ signo ].sa_sigaction)(
4c240: 42a7 clrl %sp@- <== NOT EXECUTED
4c242: 2f05 movel %d5,%sp@- <== NOT EXECUTED
4c244: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c246: 4e93 jsr %a3@ <== NOT EXECUTED
signo,
&siginfo_struct,
NULL /* context is undefined per 1003.1b-1993, p. 66 */
);
break;
4c248: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4c24c: 6006 bras 4c254 <_POSIX_signals_Check_signal+0xa4><== NOT EXECUTED
default:
(*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );
4c24e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c250: 4e93 jsr %a3@ <== NOT EXECUTED
break;
4c252: 588f addql #4,%sp <== NOT EXECUTED
}
/*
* Restore the blocking information
*/
memcpy( &_Thread_Executing->Wait, &stored_thread_wait_information,
4c254: 4878 0028 pea 28 <OPER2+0x14> <== NOT EXECUTED
4c258: 486e ffcc pea %fp@(-52) <== NOT EXECUTED
4c25c: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4c262: 41e8 0020 lea %a0@(32),%a0 <== NOT EXECUTED
4c266: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4c268: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
/*
* Restore the previous set of blocked signals
*/
api->signals_blocked = saved_signals_blocked;
return true;
4c26e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
sizeof( Thread_Wait_information ));
/*
* Restore the previous set of blocked signals
*/
api->signals_blocked = saved_signals_blocked;
4c272: 2544 00d0 movel %d4,%a2@(208) <== NOT EXECUTED
return true;
4c276: 7001 moveq #1,%d0 <== NOT EXECUTED
4c278: 6002 bras 4c27c <_POSIX_signals_Check_signal+0xcc><== NOT EXECUTED
/*
* Just to prevent sending a signal which is currently being ignored.
*/
if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )
return false;
4c27a: 4200 clrb %d0 <== NOT EXECUTED
* Restore the previous set of blocked signals
*/
api->signals_blocked = saved_signals_blocked;
return true;
}
4c27c: 4cee 0c3c ffb4 moveml %fp@(-76),%d2-%d5/%a2-%a3 <== NOT EXECUTED
4c282: 4e5e unlk %fp <== NOT EXECUTED
...
0004c800 <_POSIX_signals_Clear_process_signals>:
clear_signal = true;
mask = signo_to_mask( signo );
ISR_Level level;
_ISR_Disable( level );
4c800: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
*/
void _POSIX_signals_Clear_process_signals(
int signo
)
{
4c806: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4c80a: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
4c80e: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4c810: 2f02 movel %d2,%sp@- <== NOT EXECUTED
clear_signal = true;
mask = signo_to_mask( signo );
ISR_Level level;
_ISR_Disable( level );
4c812: 40c2 movew %sr,%d2 <== NOT EXECUTED
4c814: 8082 orl %d2,%d0 <== NOT EXECUTED
4c816: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
4c818: 2601 movel %d1,%d3 <== NOT EXECUTED
4c81a: 2001 movel %d1,%d0 <== NOT EXECUTED
4c81c: 41f9 0005 deca lea 5deca <_POSIX_signals_Vectors>,%a0 <== NOT EXECUTED
4c822: e58b lsll #2,%d3 <== NOT EXECUTED
4c824: e988 lsll #4,%d0 <== NOT EXECUTED
4c826: 9083 subl %d3,%d0 <== NOT EXECUTED
4c828: 7602 moveq #2,%d3 <== NOT EXECUTED
4c82a: b6b0 0800 cmpl %a0@(00000000,%d0:l),%d3 <== NOT EXECUTED
4c82e: 6614 bnes 4c844 <_POSIX_signals_Clear_process_signals+0x44><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4c830: 2040 moveal %d0,%a0 <== NOT EXECUTED
4c832: d1fc 0005 e0c6 addal #385222,%a0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )
4c838: 43f9 0005 e0c2 lea 5e0c2 <_POSIX_signals_Siginfo>,%a1 <== NOT EXECUTED
4c83e: b1f1 0800 cmpal %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED
4c842: 660e bnes 4c852 <_POSIX_signals_Clear_process_signals+0x52><== NOT EXECUTED
4c844: 5381 subql #1,%d1 <== NOT EXECUTED
4c846: 7001 moveq #1,%d0 <== NOT EXECUTED
4c848: e3a8 lsll %d1,%d0 <== NOT EXECUTED
clear_signal = false;
}
if ( clear_signal ) {
_POSIX_signals_Pending &= ~mask;
4c84a: 4680 notl %d0 <== NOT EXECUTED
4c84c: c1b9 0005 e0be andl %d0,5e0be <_POSIX_signals_Pending> <== NOT EXECUTED
}
_ISR_Enable( level );
4c852: 46c2 movew %d2,%sr <== NOT EXECUTED
}
4c854: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c856: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c858: 4e5e unlk %fp <== NOT EXECUTED
0004c288 <_POSIX_signals_Clear_signals>:
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
4c288: 7001 moveq #1,%d0 <== NOT EXECUTED
int signo,
siginfo_t *info,
bool is_global,
bool check_blocked
)
{
4c28a: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4c28e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4c292: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED
4c296: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4c29a: 2202 movel %d2,%d1 <== NOT EXECUTED
4c29c: 5381 subql #1,%d1 <== NOT EXECUTED
4c29e: 1a2e 0017 moveb %fp@(23),%d5 <== NOT EXECUTED
4c2a2: e3a8 lsll %d1,%d0 <== NOT EXECUTED
/* set blocked signals based on if checking for them, SIGNAL_ALL_MASK
* insures that no signals are blocked and all are checked.
*/
if ( check_blocked )
4c2a4: 4a2e 001b tstb %fp@(27) <== NOT EXECUTED
4c2a8: 6708 beqs 4c2b2 <_POSIX_signals_Clear_signals+0x2a><== NOT EXECUTED
signals_blocked = ~api->signals_blocked;
4c2aa: 2828 00d0 movel %a0@(208),%d4 <== NOT EXECUTED
4c2ae: 4684 notl %d4 <== NOT EXECUTED
4c2b0: 6002 bras 4c2b4 <_POSIX_signals_Clear_signals+0x2c><== NOT EXECUTED
else
signals_blocked = SIGNAL_ALL_MASK;
4c2b2: 78ff moveq #-1,%d4 <== NOT EXECUTED
/* XXX is this right for siginfo type signals? */
/* XXX are we sure they can be cleared the same way? */
_ISR_Disable( level );
4c2b4: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
4c2ba: 40c3 movew %sr,%d3 <== NOT EXECUTED
4c2bc: 8283 orl %d3,%d1 <== NOT EXECUTED
4c2be: 46c1 movew %d1,%sr <== NOT EXECUTED
if ( is_global ) {
4c2c0: 4a05 tstb %d5 <== NOT EXECUTED
4c2c2: 6700 0094 beqw 4c358 <_POSIX_signals_Clear_signals+0xd0><== NOT EXECUTED
if ( mask & (_POSIX_signals_Pending & signals_blocked) ) {
4c2c6: c0b9 0005 e0be andl 5e0be <_POSIX_signals_Pending>,%d0 <== NOT EXECUTED
4c2cc: c084 andl %d4,%d0 <== NOT EXECUTED
4c2ce: 6700 00a0 beqw 4c370 <_POSIX_signals_Clear_signals+0xe8><== NOT EXECUTED
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
4c2d2: 2202 movel %d2,%d1 <== NOT EXECUTED
4c2d4: 2002 movel %d2,%d0 <== NOT EXECUTED
4c2d6: 41f9 0005 deca lea 5deca <_POSIX_signals_Vectors>,%a0 <== NOT EXECUTED
4c2dc: e589 lsll #2,%d1 <== NOT EXECUTED
4c2de: e988 lsll #4,%d0 <== NOT EXECUTED
4c2e0: 9081 subl %d1,%d0 <== NOT EXECUTED
4c2e2: 7202 moveq #2,%d1 <== NOT EXECUTED
4c2e4: b2b0 0800 cmpl %a0@(00000000,%d0:l),%d1 <== NOT EXECUTED
4c2e8: 6662 bnes 4c34c <_POSIX_signals_Clear_signals+0xc4><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4c2ea: 43f9 0005 e0c2 lea 5e0c2 <_POSIX_signals_Siginfo>,%a1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4c2f0: 2200 movel %d0,%d1 <== NOT EXECUTED
4c2f2: 0681 0005 e0c6 addil #385222,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4c2f8: 2471 0800 moveal %a1@(00000000,%d0:l),%a2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
4c2fc: b28a cmpl %a2,%d1 <== NOT EXECUTED
4c2fe: 670e beqs 4c30e <_POSIX_signals_Clear_signals+0x86><== NOT EXECUTED
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
4c300: 2052 moveal %a2@,%a0 <== NOT EXECUTED
the_chain->first = new_first;
4c302: 2388 0800 movel %a0,%a1@(00000000,%d0:l) <== NOT EXECUTED
psiginfo = (POSIX_signals_Siginfo_node *)
_Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] );
4c306: d089 addl %a1,%d0 <== NOT EXECUTED
4c308: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
4c30c: 6002 bras 4c310 <_POSIX_signals_Clear_signals+0x88><== NOT EXECUTED
)
{
if ( !_Chain_Is_empty(the_chain))
return _Chain_Get_first_unprotected(the_chain);
else
return NULL;
4c30e: 95ca subal %a2,%a2 <== NOT EXECUTED
_POSIX_signals_Clear_process_signals( signo );
4c310: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c312: 4eb9 0004 c800 jsr 4c800 <_POSIX_signals_Clear_process_signals><== NOT EXECUTED
/*
* It may be impossible to get here with an empty chain
* BUT until that is proven we need to be defensive and
* protect against it.
*/
if ( psiginfo ) {
4c318: 588f addql #4,%sp <== NOT EXECUTED
4c31a: 4a8a tstl %a2 <== NOT EXECUTED
4c31c: 672e beqs 4c34c <_POSIX_signals_Clear_signals+0xc4><== NOT EXECUTED
*info = psiginfo->Info;
4c31e: 4878 000c pea c <OPER1> <== NOT EXECUTED
4c322: 486a 0008 pea %a2@(8) <== NOT EXECUTED
4c326: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4c32a: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
4c330: 2079 0005 e052 moveal 5e052 <_POSIX_signals_Inactive_siginfo+0x8>,%a0<== NOT EXECUTED
the_chain->last = the_node;
old_last_node->next = the_node;
the_node->previous = old_last_node;
4c336: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
4c33a: 24bc 0005 e04e movel #385102,%a2@ <== NOT EXECUTED
old_last_node = the_chain->last;
the_chain->last = the_node;
4c340: 23ca 0005 e052 movel %a2,5e052 <_POSIX_signals_Inactive_siginfo+0x8><== NOT EXECUTED
old_last_node->next = the_node;
4c346: 208a movel %a2,%a0@ <== NOT EXECUTED
the_node->previous = old_last_node;
4c348: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED
&psiginfo->Node
);
} else
do_callout = false;
}
_POSIX_signals_Clear_process_signals( signo );
4c34c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4c34e: 4eb9 0004 c800 jsr 4c800 <_POSIX_signals_Clear_process_signals><== NOT EXECUTED
4c354: 588f addql #4,%sp <== NOT EXECUTED
4c356: 6014 bras 4c36c <_POSIX_signals_Clear_signals+0xe4><== NOT EXECUTED
do_callout = true;
}
} else {
if ( mask & (api->signals_pending & signals_blocked) ) {
4c358: 2428 00d4 movel %a0@(212),%d2 <== NOT EXECUTED
4c35c: 2200 movel %d0,%d1 <== NOT EXECUTED
4c35e: c282 andl %d2,%d1 <== NOT EXECUTED
4c360: c284 andl %d4,%d1 <== NOT EXECUTED
4c362: 670c beqs 4c370 <_POSIX_signals_Clear_signals+0xe8><== NOT EXECUTED
api->signals_pending &= ~mask;
4c364: 4680 notl %d0 <== NOT EXECUTED
4c366: c082 andl %d2,%d0 <== NOT EXECUTED
4c368: 2140 00d4 movel %d0,%a0@(212) <== NOT EXECUTED
do_callout = true;
4c36c: 7001 moveq #1,%d0 <== NOT EXECUTED
4c36e: 6002 bras 4c372 <_POSIX_signals_Clear_signals+0xea><== NOT EXECUTED
bool do_callout;
POSIX_signals_Siginfo_node *psiginfo;
mask = signo_to_mask( signo );
do_callout = false;
4c370: 4200 clrb %d0 <== NOT EXECUTED
if ( mask & (api->signals_pending & signals_blocked) ) {
api->signals_pending &= ~mask;
do_callout = true;
}
}
_ISR_Enable( level );
4c372: 46c3 movew %d3,%sr <== NOT EXECUTED
return do_callout;
}
4c374: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED
4c37a: 4e5e unlk %fp <== NOT EXECUTED
...
00046034 <_POSIX_signals_Get_lowest>:
sigset_t set
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
46034: 701b moveq #27,%d0 <== NOT EXECUTED
#include <rtems/score/isr.h>
int _POSIX_signals_Get_lowest(
sigset_t set
)
{
46036: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4603a: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4603e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46042: 7601 moveq #1,%d3 <== NOT EXECUTED
#include <rtems/posix/psignal.h>
#include <rtems/seterr.h>
#include <rtems/posix/time.h>
#include <rtems/score/isr.h>
int _POSIX_signals_Get_lowest(
46044: 2200 movel %d0,%d1 <== NOT EXECUTED
46046: 5381 subql #1,%d1 <== NOT EXECUTED
46048: 2803 movel %d3,%d4 <== NOT EXECUTED
4604a: e3ac lsll %d1,%d4 <== NOT EXECUTED
4604c: 2204 movel %d4,%d1 <== NOT EXECUTED
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
4604e: c282 andl %d2,%d1 <== NOT EXECUTED
46050: 6626 bnes 46078 <_POSIX_signals_Get_lowest+0x44> <== NOT EXECUTED
sigset_t set
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
46052: 5280 addql #1,%d0 <== NOT EXECUTED
46054: 123c 0020 moveb #32,%d1 <== NOT EXECUTED
46058: b280 cmpl %d0,%d1 <== NOT EXECUTED
4605a: 66e8 bnes 46044 <_POSIX_signals_Get_lowest+0x10> <== NOT EXECUTED
4605c: 7001 moveq #1,%d0 <== NOT EXECUTED
4605e: 7601 moveq #1,%d3 <== NOT EXECUTED
#include <rtems/posix/psignal.h>
#include <rtems/seterr.h>
#include <rtems/posix/time.h>
#include <rtems/score/isr.h>
int _POSIX_signals_Get_lowest(
46060: 2200 movel %d0,%d1 <== NOT EXECUTED
46062: 5381 subql #1,%d1 <== NOT EXECUTED
46064: 2803 movel %d3,%d4 <== NOT EXECUTED
46066: e3ac lsll %d1,%d4 <== NOT EXECUTED
46068: 2204 movel %d4,%d1 <== NOT EXECUTED
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
4606a: c282 andl %d2,%d1 <== NOT EXECUTED
4606c: 660a bnes 46078 <_POSIX_signals_Get_lowest+0x44> <== NOT EXECUTED
*/
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
4606e: 5280 addql #1,%d0 <== NOT EXECUTED
46070: 123c 001b moveb #27,%d1 <== NOT EXECUTED
46074: b280 cmpl %d0,%d1 <== NOT EXECUTED
46076: 66e8 bnes 46060 <_POSIX_signals_Get_lowest+0x2c> <== NOT EXECUTED
* a return 0. This routine will NOT be called unless a signal
* is pending in the set passed in.
*/
found_it:
return signo;
}
46078: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED
4607c: 4e5e unlk %fp <== NOT EXECUTED
00049e36 <_POSIX_signals_Post_switch_extension>:
*/
void _POSIX_signals_Post_switch_extension(
Thread_Control *the_thread
)
{
49e36: 4e56 fff0 linkw %fp,#-16
POSIX_API_Control *api;
int signo;
ISR_Level level;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
49e3a: 206e 0008 moveal %fp@(8),%a0
*/
void _POSIX_signals_Post_switch_extension(
Thread_Control *the_thread
)
{
49e3e: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@
POSIX_API_Control *api;
int signo;
ISR_Level level;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
49e42: 2468 010e moveal %a0@(270),%a2
/*
* api may be NULL in case of a thread close in progress
*/
if ( !api )
49e46: 4a8a tstl %a2
49e48: 6770 beqs 49eba <_POSIX_signals_Post_switch_extension+0x84><== NEVER TAKEN
*
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
49e4a: 263c 0000 0700 movel #1792,%d3
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
49e50: 47f9 0004 c1b0 lea 4c1b0 <_POSIX_signals_Check_signal>,%a3
*
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
49e56: 2003 movel %d3,%d0
49e58: 40c1 movew %sr,%d1
49e5a: 8081 orl %d1,%d0
49e5c: 46c0 movew %d0,%sr
if ( !(~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending)) ) {
49e5e: 2039 0005 e0be movel 5e0be <_POSIX_signals_Pending>,%d0
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
49e64: 242a 00d0 movel %a2@(208),%d2
49e68: 4682 notl %d2
(api->signals_pending | _POSIX_signals_Pending)) ) {
49e6a: 80aa 00d4 orl %a2@(212),%d0
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
49e6e: c082 andl %d2,%d0
49e70: 6604 bnes 49e76 <_POSIX_signals_Post_switch_extension+0x40><== NEVER TAKEN
(api->signals_pending | _POSIX_signals_Pending)) ) {
_ISR_Enable( level );
49e72: 46c1 movew %d1,%sr
49e74: 6044 bras 49eba <_POSIX_signals_Post_switch_extension+0x84>
break;
}
_ISR_Enable( level );
49e76: 46c1 movew %d1,%sr <== NOT EXECUTED
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
49e78: 741b moveq #27,%d2 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
49e7a: 42a7 clrl %sp@- <== NOT EXECUTED
49e7c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49e7e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49e80: 4e93 jsr %a3@ <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, true );
49e82: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
49e86: 2f02 movel %d2,%sp@- <== NOT EXECUTED
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
49e88: 5282 addql #1,%d2 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
49e8a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49e8c: 4e93 jsr %a3@ <== NOT EXECUTED
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
49e8e: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
49e92: 7020 moveq #32,%d0 <== NOT EXECUTED
49e94: b082 cmpl %d2,%d0 <== NOT EXECUTED
49e96: 66e2 bnes 49e7a <_POSIX_signals_Post_switch_extension+0x44><== NOT EXECUTED
49e98: 7401 moveq #1,%d2 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
49e9a: 42a7 clrl %sp@- <== NOT EXECUTED
49e9c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49e9e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49ea0: 4e93 jsr %a3@ <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, true );
49ea2: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
49ea6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
49ea8: 5282 addql #1,%d2 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
49eaa: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49eac: 4e93 jsr %a3@ <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
49eae: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
49eb2: 701b moveq #27,%d0 <== NOT EXECUTED
49eb4: b082 cmpl %d2,%d0 <== NOT EXECUTED
49eb6: 66e2 bnes 49e9a <_POSIX_signals_Post_switch_extension+0x64><== NOT EXECUTED
49eb8: 609c bras 49e56 <_POSIX_signals_Post_switch_extension+0x20><== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
}
}
49eba: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3
49ec0: 4e5e unlk %fp <== NOT EXECUTED
0005a1d8 <_POSIX_signals_Set_process_signals>:
sigset_t mask
)
{
ISR_Level level;
_ISR_Disable( level );
5a1d8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
*/
void _POSIX_signals_Set_process_signals(
sigset_t mask
)
{
5a1de: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
5a1e2: 40c1 movew %sr,%d1 <== NOT EXECUTED
5a1e4: 8081 orl %d1,%d0 <== NOT EXECUTED
5a1e6: 46c0 movew %d0,%sr <== NOT EXECUTED
_POSIX_signals_Pending |= mask;
5a1e8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
5a1ec: 81b9 0005 e0be orl %d0,5e0be <_POSIX_signals_Pending> <== NOT EXECUTED
_ISR_Enable( level );
5a1f2: 46c1 movew %d1,%sr <== NOT EXECUTED
}
5a1f4: 4e5e unlk %fp <== NOT EXECUTED
0004541c <_POSIX_signals_Ualarm_TSR>:
void _POSIX_signals_Ualarm_TSR(
Objects_Id id __attribute__((unused)),
void *argument __attribute__((unused))
)
{
4541c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
/*
* Send a SIGALRM but if there is a problem, ignore it.
* It's OK, there isn't a way this should fail.
*/
(void) kill( getpid(), SIGALRM );
45420: 4eb9 0004 2a1c jsr 42a1c <getpid> <== NOT EXECUTED
45426: 4878 000e pea e <OPER1+0x2> <== NOT EXECUTED
4542a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4542c: 4eb9 0004 5234 jsr 45234 <kill> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Reset(
Watchdog_Control *the_watchdog
)
{
(void) _Watchdog_Remove( the_watchdog );
45432: 4879 0005 fa22 pea 5fa22 <_POSIX_signals_Ualarm_timer> <== NOT EXECUTED
45438: 4eb9 0004 8b6c jsr 48b6c <_Watchdog_Remove> <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
4543e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45442: 203c 0005 fa22 movel #391714,%d0 <== NOT EXECUTED
45448: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
4544c: 203c 0005 f2ce movel #389838,%d0 <== NOT EXECUTED
45452: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
/*
* If the reset interval is non-zero, reschedule ourselves.
*/
_Watchdog_Reset( &_POSIX_signals_Ualarm_timer );
}
45456: 4e5e unlk %fp <== NOT EXECUTED
45458: 4ef9 0004 8a50 jmp 48a50 <_Watchdog_Insert> <== NOT EXECUTED
0005a1f8 <_POSIX_signals_Unblock_thread>:
5a1f8: 7201 moveq #1,%d1 <== NOT EXECUTED
bool _POSIX_signals_Unblock_thread(
Thread_Control *the_thread,
int signo,
siginfo_t *info
)
{
5a1fa: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
5a1fe: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED
5a202: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
5a206: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
5a20a: 2002 movel %d2,%d0 <== NOT EXECUTED
5a20c: 5380 subql #1,%d0 <== NOT EXECUTED
5a20e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
5a212: e1a9 lsll %d0,%d1 <== NOT EXECUTED
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
5a214: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED
5a218: 2600 movel %d0,%d3 <== NOT EXECUTED
5a21a: 0283 1000 8000 andil #268468224,%d3 <== NOT EXECUTED
{
POSIX_API_Control *api;
sigset_t mask;
siginfo_t *the_info = NULL;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
5a220: 206a 010e moveal %a2@(270),%a0 <== NOT EXECUTED
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
5a224: 0c83 1000 8000 cmpil #268468224,%d3 <== NOT EXECUTED
5a22a: 6650 bnes 5a27c <_POSIX_signals_Unblock_thread+0x84><== NOT EXECUTED
if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
5a22c: 2001 movel %d1,%d0 <== NOT EXECUTED
5a22e: c0aa 0030 andl %a2@(48),%d0 <== NOT EXECUTED
5a232: 660c bnes 5a240 <_POSIX_signals_Unblock_thread+0x48><== NOT EXECUTED
5a234: 2028 00d0 movel %a0@(208),%d0 <== NOT EXECUTED
5a238: 4680 notl %d0 <== NOT EXECUTED
5a23a: c280 andl %d0,%d1 <== NOT EXECUTED
5a23c: 6700 00a8 beqw 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
5a240: 7004 moveq #4,%d0 <== NOT EXECUTED
the_info = (siginfo_t *) the_thread->Wait.return_argument;
5a242: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
the_thread->Wait.return_code = EINTR;
5a246: 2540 0034 movel %d0,%a2@(52) <== NOT EXECUTED
the_info = (siginfo_t *) the_thread->Wait.return_argument;
if ( !info ) {
5a24a: 4a89 tstl %a1 <== NOT EXECUTED
5a24c: 660e bnes 5a25c <_POSIX_signals_Unblock_thread+0x64><== NOT EXECUTED
the_info->si_signo = signo;
the_info->si_code = SI_USER;
5a24e: 7201 moveq #1,%d1 <== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
the_info = (siginfo_t *) the_thread->Wait.return_argument;
if ( !info ) {
the_info->si_signo = signo;
5a250: 2082 movel %d2,%a0@ <== NOT EXECUTED
the_info->si_code = SI_USER;
5a252: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
the_info->si_value.sival_int = 0;
5a256: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
5a25a: 6012 bras 5a26e <_POSIX_signals_Unblock_thread+0x76><== NOT EXECUTED
} else {
*the_info = *info;
5a25c: 4878 000c pea c <OPER1> <== NOT EXECUTED
5a260: 2f09 movel %a1,%sp@- <== NOT EXECUTED
5a262: 2f08 movel %a0,%sp@- <== NOT EXECUTED
5a264: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
5a26a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
_Thread_queue_Extract_with_proxy( the_thread );
5a26e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5a270: 4eb9 0004 7b84 jsr 47b84 <_Thread_queue_Extract_with_proxy><== NOT EXECUTED
return true;
5a276: 588f addql #4,%sp <== NOT EXECUTED
5a278: 7001 moveq #1,%d0 <== NOT EXECUTED
5a27a: 606c bras 5a2e8 <_POSIX_signals_Unblock_thread+0xf0><== NOT EXECUTED
}
/*
* Thread is not waiting due to a sigwait.
*/
if ( ~api->signals_blocked & mask ) {
5a27c: 2428 00d0 movel %a0@(208),%d2 <== NOT EXECUTED
5a280: 4682 notl %d2 <== NOT EXECUTED
5a282: c282 andl %d2,%d1 <== NOT EXECUTED
5a284: 6760 beqs 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
* it is not blocked, THEN
* we need to dispatch at the end of this ISR.
* + Any other combination, do nothing.
*/
if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
5a286: 0800 001c btst #28,%d0 <== NOT EXECUTED
5a28a: 673e beqs 5a2ca <_POSIX_signals_Unblock_thread+0xd2><== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
5a28c: 7204 moveq #4,%d1 <== NOT EXECUTED
5a28e: 2541 0034 movel %d1,%a2@(52) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
5a292: 2200 movel %d0,%d1 <== NOT EXECUTED
5a294: 0281 0003 bee0 andil #245472,%d1 <== NOT EXECUTED
/*
* In pthread_cond_wait, a thread will be blocking on a thread
* queue, but is also interruptible by a POSIX signal.
*/
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
5a29a: 670c beqs 5a2a8 <_POSIX_signals_Unblock_thread+0xb0><== NOT EXECUTED
_Thread_queue_Extract_with_proxy( the_thread );
5a29c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5a29e: 4eb9 0004 7b84 jsr 47b84 <_Thread_queue_Extract_with_proxy><== NOT EXECUTED
5a2a4: 588f addql #4,%sp <== NOT EXECUTED
5a2a6: 603e bras 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
else if ( _States_Is_delaying(the_thread->current_state) ) {
5a2a8: 44c0 movew %d0,%ccr <== NOT EXECUTED
5a2aa: 6a3a bpls 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
5a2ac: 486a 0048 pea %a2@(72) <== NOT EXECUTED
5a2b0: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
5a2b6: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
5a2bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5a2be: 4eb9 0004 717c jsr 4717c <_Thread_Clear_state> <== NOT EXECUTED
5a2c4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
5a2c8: 601c bras 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
_Thread_Unblock( the_thread );
}
} else if ( the_thread->current_state == STATES_READY ) {
5a2ca: 4a80 tstl %d0 <== NOT EXECUTED
5a2cc: 6618 bnes 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
5a2ce: 4ab9 0005 deb8 tstl 5deb8 <_Per_CPU_Information+0x8> <== NOT EXECUTED
5a2d4: 6710 beqs 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
5a2d6: b5f9 0005 debc cmpal 5debc <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
5a2dc: 6608 bnes 5a2e6 <_POSIX_signals_Unblock_thread+0xee><== NOT EXECUTED
_Thread_Dispatch_necessary = true;
5a2de: 7001 moveq #1,%d0 <== NOT EXECUTED
5a2e0: 13c0 0005 dec8 moveb %d0,5dec8 <_Per_CPU_Information+0x18> <== NOT EXECUTED
}
}
return false;
5a2e6: 4200 clrb %d0 <== NOT EXECUTED
}
5a2e8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
5a2ee: 4e5e unlk %fp <== NOT EXECUTED
...
00047244 <_Protected_heap_Extend>:
bool _Protected_heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
47244: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
bool extend_ok;
uintptr_t amount_extended;
_RTEMS_Lock_allocator();
47248: 2f39 0005 e11a movel 5e11a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4724e: 4eb9 0004 6228 jsr 46228 <_API_Mutex_Lock> <== NOT EXECUTED
extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended);
47254: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47258: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4725c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
47260: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47264: 4eb9 0004 af60 jsr 4af60 <_Heap_Extend> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
4726a: 2f39 0005 e11a movel 5e11a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
47270: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
47274: 4eb9 0004 6288 jsr 46288 <_API_Mutex_Unlock> <== NOT EXECUTED
return extend_ok;
}
4727a: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
4727e: 4e5e unlk %fp <== NOT EXECUTED
...
0004b32c <_Protected_heap_Get_free_information>:
bool _Protected_heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
4b32c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
/*
* TBD: _Heap_Get_free_information does not error check or return status.
*/
_RTEMS_Lock_allocator();
4b330: 2f39 0006 337a movel 6337a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b336: 4eb9 0004 9a1c jsr 49a1c <_API_Mutex_Lock> <== NOT EXECUTED
_Heap_Get_free_information( the_heap, info );
4b33c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4b340: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4b344: 4eb9 0004 f204 jsr 4f204 <_Heap_Get_free_information> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
4b34a: 2f39 0006 337a movel 6337a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b350: 4eb9 0004 9a7c jsr 49a7c <_API_Mutex_Unlock> <== NOT EXECUTED
return true;
}
4b356: 7001 moveq #1,%d0 <== NOT EXECUTED
4b358: 4e5e unlk %fp <== NOT EXECUTED
00047604 <_Protected_heap_Get_information>:
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
47604: 4e56 0000 linkw %fp,#0
47608: 2f03 movel %d3,%sp@-
4760a: 262e 000c movel %fp@(12),%d3
4760e: 2f02 movel %d2,%sp@-
47610: 242e 0008 movel %fp@(8),%d2
if ( !the_heap )
47614: 672e beqs 47644 <_Protected_heap_Get_information+0x40><== NEVER TAKEN
return false;
if ( !the_info )
47616: 4a83 tstl %d3
47618: 672a beqs 47644 <_Protected_heap_Get_information+0x40><== NEVER TAKEN
return false;
_RTEMS_Lock_allocator();
4761a: 2f39 0005 e3ee movel 5e3ee <_RTEMS_Allocator_Mutex>,%sp@-
47620: 4eb9 0004 65b0 jsr 465b0 <_API_Mutex_Lock>
_Heap_Get_information( the_heap, the_info );
47626: 2f03 movel %d3,%sp@-
47628: 2f02 movel %d2,%sp@-
4762a: 4eb9 0004 b72c jsr 4b72c <_Heap_Get_information>
_RTEMS_Unlock_allocator();
47630: 2f39 0005 e3ee movel 5e3ee <_RTEMS_Allocator_Mutex>,%sp@-
47636: 4eb9 0004 6610 jsr 46610 <_API_Mutex_Unlock>
return true;
4763c: 4fef 0010 lea %sp@(16),%sp
47640: 7001 moveq #1,%d0
47642: 6002 bras 47646 <_Protected_heap_Get_information+0x42>
{
if ( !the_heap )
return false;
if ( !the_info )
return false;
47644: 4200 clrb %d0 <== NOT EXECUTED
_RTEMS_Lock_allocator();
_Heap_Get_information( the_heap, the_info );
_RTEMS_Unlock_allocator();
return true;
}
47646: 242e fff8 movel %fp@(-8),%d2
4764a: 262e fffc movel %fp@(-4),%d3
4764e: 4e5e unlk %fp
...
0005a3fc <_Protected_heap_Resize_block>:
bool _Protected_heap_Resize_block(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
5a3fc: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
5a400: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Heap_Resize_status status;
uintptr_t old_mem_size;
uintptr_t avail_mem_size;
_RTEMS_Lock_allocator();
5a402: 2f39 0005 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5a408: 4eb9 0004 5f14 jsr 45f14 <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Resize_block(
5a40e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
5a412: 486e fffc pea %fp@(-4) <== NOT EXECUTED
5a416: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
5a41a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
5a41e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
5a422: 4eb9 0005 a448 jsr 5a448 <_Heap_Resize_block> <== NOT EXECUTED
the_heap, starting_address, size, &old_mem_size, &avail_mem_size );
_RTEMS_Unlock_allocator();
5a428: 2f39 0005 dace movel 5dace <_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(
5a42e: 2400 movel %d0,%d2 <== NOT EXECUTED
the_heap, starting_address, size, &old_mem_size, &avail_mem_size );
_RTEMS_Unlock_allocator();
5a430: 4eb9 0004 5f74 jsr 45f74 <_API_Mutex_Unlock> <== NOT EXECUTED
return (status == HEAP_RESIZE_SUCCESSFUL);
5a436: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
5a43a: 4a82 tstl %d2 <== NOT EXECUTED
5a43c: 57c0 seq %d0 <== NOT EXECUTED
}
5a43e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
5a442: 4480 negl %d0 <== NOT EXECUTED
5a444: 4e5e unlk %fp <== NOT EXECUTED
0004b408 <_Protected_heap_Walk>:
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
4b408: 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 ) {
4b40c: 2039 0006 32d8 movel 632d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
4b412: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4b416: 4284 clrl %d4 <== NOT EXECUTED
4b418: 182e 0013 moveb %fp@(19),%d4 <== NOT EXECUTED
4b41c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4b420: 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 ) {
4b424: 4a80 tstl %d0 <== NOT EXECUTED
4b426: 663a bnes 4b462 <_Protected_heap_Walk+0x5a> <== NOT EXECUTED
_RTEMS_Lock_allocator();
4b428: 2f39 0006 337a movel 6337a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b42e: 4eb9 0004 9a1c jsr 49a1c <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Walk( the_heap, source, do_dump );
4b434: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4b436: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4b438: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4b43a: 4eb9 0004 a72a jsr 4a72a <_Heap_Walk> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
4b440: 2f39 0006 337a movel 6337a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
4b446: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
4b44a: 4eb9 0004 9a7c jsr 49a7c <_API_Mutex_Unlock> <== NOT EXECUTED
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
4b450: 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();
4b454: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
4b458: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4b45e: 4e5e unlk %fp <== NOT EXECUTED
4b460: 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 );
4b462: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED
4b466: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
4b46a: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return status;
}
4b46e: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4b474: 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 );
4b476: 4ef9 0004 a72a jmp 4a72a <_Heap_Walk> <== NOT EXECUTED
0004a868 <_RTEMS_Tasks_Invoke_task_variable_dtor>:
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
)
{
4a868: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
if (_Thread_Is_executing(the_thread)) {
4a86c: 2039 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
)
{
4a872: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a874: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
4a878: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED
if (_Thread_Is_executing(the_thread)) {
4a87c: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
4a880: 660c bnes 4a88e <_RTEMS_Tasks_Invoke_task_variable_dtor+0x26><== NOT EXECUTED
value = *tvp->ptr;
4a882: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED
4a886: 2011 movel %a1@,%d0 <== NOT EXECUTED
*tvp->ptr = tvp->gval;
4a888: 22aa 0008 movel %a2@(8),%a1@ <== NOT EXECUTED
4a88c: 6004 bras 4a892 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x2a><== NOT EXECUTED
} else {
value = tvp->tval;
4a88e: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED
}
if ( dtor )
4a892: 4a88 tstl %a0 <== NOT EXECUTED
4a894: 6706 beqs 4a89c <_RTEMS_Tasks_Invoke_task_variable_dtor+0x34><== NOT EXECUTED
(*dtor)(value);
4a896: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a898: 4e90 jsr %a0@ <== NOT EXECUTED
4a89a: 588f addql #4,%sp <== NOT EXECUTED
_Workspace_Free(tvp);
4a89c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
4a8a0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4a8a4: 4e5e unlk %fp <== NOT EXECUTED
}
if ( dtor )
(*dtor)(value);
_Workspace_Free(tvp);
4a8a6: 4ef9 0004 872c jmp 4872c <_Workspace_Free> <== NOT EXECUTED
0004a7a8 <_RTEMS_tasks_Create_extension>:
bool _RTEMS_tasks_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
{
4a7a8: 4e56 0000 linkw %fp,#0
4a7ac: 2f0a movel %a2,%sp@-
4a7ae: 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() )
4a7b2: 4a39 0005 c154 tstb 5c154 <Configuration_RTEMS_API+0x4>
4a7b8: 6704 beqs 4a7be <_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 );
4a7ba: 705e moveq #94,%d0
4a7bc: 6002 bras 4a7c0 <_RTEMS_tasks_Create_extension+0x18>
if ( !rtems_configuration_get_notepads_enabled() )
to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t));
4a7be: 701e moveq #30,%d0
api = _Workspace_Allocate( to_allocate );
4a7c0: 2f00 movel %d0,%sp@-
4a7c2: 4eb9 0004 8710 jsr 48710 <_Workspace_Allocate>
if ( !api )
4a7c8: 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 );
4a7ca: 2040 moveal %d0,%a0
if ( !api )
4a7cc: 4a80 tstl %d0
4a7ce: 673e beqs 4a80e <_RTEMS_tasks_Create_extension+0x66><== NEVER TAKEN
return false;
created->API_Extensions[ THREAD_API_RTEMS ] = api;
4a7d0: 2540 010a movel %d0,%a2@(266)
*/
RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = false;
4a7d4: 4200 clrb %d0
api->pending_events = EVENT_SETS_NONE_PENDING;
4a7d6: 4290 clrl %a0@
4a7d8: 1140 0008 moveb %d0,%a0@(8)
api->event_condition = 0;
4a7dc: 42a8 0004 clrl %a0@(4)
information->handler = NULL;
4a7e0: 42a8 000a clrl %a0@(10)
information->mode_set = RTEMS_DEFAULT_MODES;
4a7e4: 42a8 000e clrl %a0@(14)
information->signals_posted = 0;
4a7e8: 42a8 0012 clrl %a0@(18)
information->signals_pending = 0;
4a7ec: 42a8 0016 clrl %a0@(22)
information->nest_level = 0;
4a7f0: 42a8 001a clrl %a0@(26)
_ASR_Initialize( &api->Signal );
created->task_variables = NULL;
4a7f4: 42aa 0116 clrl %a2@(278)
if ( rtems_configuration_get_notepads_enabled() ) {
4a7f8: 4a39 0005 c154 tstb 5c154 <Configuration_RTEMS_API+0x4>
4a7fe: 6712 beqs 4a812 <_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(
4a800: 41e8 001e lea %a0@(30),%a0
4a804: 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;
4a806: 4298 clrl %a0@+
4a808: 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++)
4a80a: 66fa bnes 4a806 <_RTEMS_tasks_Create_extension+0x5e>
4a80c: 6004 bras 4a812 <_RTEMS_tasks_Create_extension+0x6a>
to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t));
api = _Workspace_Allocate( to_allocate );
if ( !api )
return false;
4a80e: 4200 clrb %d0 <== NOT EXECUTED
4a810: 6002 bras 4a814 <_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;
4a812: 7001 moveq #1,%d0
}
4a814: 246e fffc moveal %fp@(-4),%a2
4a818: 4e5e unlk %fp <== NOT EXECUTED
0004a762 <_RTEMS_tasks_Delete_extension>:
void _RTEMS_tasks_Delete_extension(
Thread_Control *executing,
Thread_Control *deleted
)
{
4a762: 4e56 fff4 linkw %fp,#-12
4a766: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
4a76a: 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 );
4a76e: 47f9 0004 a868 lea 4a868 <_RTEMS_Tasks_Invoke_task_variable_dtor>,%a3
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
4a774: 206a 0116 moveal %a2@(278),%a0
deleted->task_variables = NULL;
4a778: 42aa 0116 clrl %a2@(278)
while (tvp) {
4a77c: 600c bras 4a78a <_RTEMS_tasks_Delete_extension+0x28>
next = (rtems_task_variable_t *)tvp->next;
4a77e: 2410 movel %a0@,%d2 <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
4a780: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4a782: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a784: 4e93 jsr %a3@ <== NOT EXECUTED
tvp = next;
4a786: 508f addql #8,%sp <== NOT EXECUTED
4a788: 2042 moveal %d2,%a0 <== NOT EXECUTED
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
4a78a: 4a88 tstl %a0
4a78c: 66f0 bnes 4a77e <_RTEMS_tasks_Delete_extension+0x1c><== NEVER TAKEN
/*
* Free API specific memory
*/
(void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] );
4a78e: 2f2a 010a movel %a2@(266),%sp@-
4a792: 4eb9 0004 872c jsr 4872c <_Workspace_Free>
deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL;
4a798: 588f addql #4,%sp
4a79a: 42aa 010a clrl %a2@(266)
}
4a79e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
4a7a4: 4e5e unlk %fp <== NOT EXECUTED
0004a6f0 <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
4a6f0: 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 ];
4a6f4: 206e 0008 moveal %fp@(8),%a0
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
4a6f8: 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 ];
4a6fc: 2468 010a moveal %a0@(266),%a2
if ( !api )
4a700: 4a8a tstl %a2
4a702: 6754 beqs 4a758 <_RTEMS_tasks_Post_switch_extension+0x68><== NEVER TAKEN
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
4a704: 203c 0000 0700 movel #1792,%d0
4a70a: 40c1 movew %sr,%d1
4a70c: 8081 orl %d1,%d0
4a70e: 46c0 movew %d0,%sr
signal_set = asr->signals_posted;
4a710: 262a 0012 movel %a2@(18),%d3
asr->signals_posted = 0;
4a714: 42aa 0012 clrl %a2@(18)
_ISR_Enable( level );
4a718: 46c1 movew %d1,%sr
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
4a71a: 4a83 tstl %d3
4a71c: 673a beqs 4a758 <_RTEMS_tasks_Post_switch_extension+0x68><== ALWAYS TAKEN
return;
asr->nest_level += 1;
4a71e: 52aa 001a addql #1,%a2@(26) <== NOT EXECUTED
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
4a722: 240e movel %fp,%d2 <== NOT EXECUTED
4a724: 5982 subql #4,%d2 <== NOT EXECUTED
4a726: 47f9 0004 c40c lea 4c40c <rtems_task_mode>,%a3 <== NOT EXECUTED
4a72c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4a72e: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED
4a734: 2f2a 000e movel %a2@(14),%sp@- <== NOT EXECUTED
4a738: 4e93 jsr %a3@ <== NOT EXECUTED
(*asr->handler)( signal_set );
4a73a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4a73c: 206a 000a moveal %a2@(10),%a0 <== NOT EXECUTED
4a740: 4e90 jsr %a0@ <== NOT EXECUTED
asr->nest_level -= 1;
4a742: 53aa 001a subql #1,%a2@(26) <== NOT EXECUTED
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
4a746: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4a748: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED
4a74e: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
4a752: 4e93 jsr %a3@ <== NOT EXECUTED
4a754: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
}
4a758: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3
4a75e: 4e5e unlk %fp <== NOT EXECUTED
0004a69a <_RTEMS_tasks_Switch_extension>:
void _RTEMS_tasks_Switch_extension(
Thread_Control *executing,
Thread_Control *heir
)
{
4a69a: 4e56 0000 linkw %fp,#0
/*
* Per Task Variables
*/
tvp = executing->task_variables;
4a69e: 206e 0008 moveal %fp@(8),%a0
4a6a2: 2068 0116 moveal %a0@(278),%a0
while (tvp) {
4a6a6: 600e bras 4a6b6 <_RTEMS_tasks_Switch_extension+0x1c>
tvp->tval = *tvp->ptr;
4a6a8: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
4a6ac: 2151 000c movel %a1@,%a0@(12) <== NOT EXECUTED
*tvp->ptr = tvp->gval;
4a6b0: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
4a6b4: 2050 moveal %a0@,%a0 <== NOT EXECUTED
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
4a6b6: 4a88 tstl %a0
4a6b8: 66ee bnes 4a6a8 <_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;
4a6ba: 206e 000c moveal %fp@(12),%a0
4a6be: 2068 0116 moveal %a0@(278),%a0
while (tvp) {
4a6c2: 600e bras 4a6d2 <_RTEMS_tasks_Switch_extension+0x38>
tvp->gval = *tvp->ptr;
4a6c4: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
4a6c8: 2151 0008 movel %a1@,%a0@(8) <== NOT EXECUTED
*tvp->ptr = tvp->tval;
4a6cc: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
4a6d0: 2050 moveal %a0@,%a0 <== NOT EXECUTED
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
4a6d2: 4a88 tstl %a0
4a6d4: 66ee bnes 4a6c4 <_RTEMS_tasks_Switch_extension+0x2a><== NEVER TAKEN
tvp->gval = *tvp->ptr;
*tvp->ptr = tvp->tval;
tvp = (rtems_task_variable_t *)tvp->next;
}
}
4a6d6: 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 9908 lea 49908 <_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 78c0 jsr 478c0 <_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 fb48 cmpal 5fb48 <_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 f766 pea 5f766 <_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 97e0 jsr 497e0 <_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 98d8 jsr 498d8 <_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 78c0 jsr 478c0 <_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 fb48 cmpal 5fb48 <_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 f766 pea 5f766 <_Thread_Time_of_last_context_switch><== NOT EXECUTED
46216: 4eb9 0004 9908 jsr 49908 <_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 97e0 jsr 497e0 <_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 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
46700: 4eb9 0004 82ec jsr 482ec <_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 87ac jsr 487ac <_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 f77a pea 5f77a <_Watchdog_Ticks_chain> <== NOT EXECUTED
46754: 4eb9 0004 9bbc jsr 49bbc <_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 f77a pea 5f77a <_Watchdog_Ticks_chain> <== NOT EXECUTED
46788: 4eb9 0004 9bbc jsr 49bbc <_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 f6b8 movel 5f6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
467a0: 5380 subql #1,%d0 <== NOT EXECUTED
467a2: 23c0 0005 f6b8 movel %d0,5f6b8 <_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 97e0 jsr 497e0 <_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 98d8 jsr 498d8 <_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 98a8 jsr 498a8 <_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 97e0 jsr 497e0 <_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 98d8 jsr 498d8 <_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 98a8 jsr 498a8 <_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
00058028 <_Region_Process_queue>:
*/
void _Region_Process_queue(
Region_Control *the_region
)
{
58028: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
5802c: 2039 0007 6520 movel 76520 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
58032: 5280 addql #1,%d0 <== NOT EXECUTED
58034: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED
58038: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
5803c: 23c0 0007 6520 movel %d0,76520 <_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();
58042: 2f39 0007 65c2 movel 765c2 <_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 );
58048: 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 );
5804a: 260b movel %a3,%d3 <== NOT EXECUTED
5804c: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
58052: 0683 0000 0068 addil #104,%d3 <== NOT EXECUTED
58058: 4bf9 0005 347c lea 5347c <_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 );
5805e: 49f9 0005 86b4 lea 586b4 <_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();
58064: 4eb9 0005 2a04 jsr 52a04 <_API_Mutex_Unlock> <== NOT EXECUTED
5806a: 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 );
5806c: 283c 0005 87b4 movel #362420,%d4 <== NOT EXECUTED
58072: 2f02 movel %d2,%sp@- <== NOT EXECUTED
58074: 2044 moveal %d4,%a0 <== NOT EXECUTED
58076: 4e90 jsr %a0@ <== NOT EXECUTED
if ( the_thread == NULL )
58078: 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 );
5807a: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( the_thread == NULL )
5807c: 4a80 tstl %d0 <== NOT EXECUTED
5807e: 672c beqs 580ac <_Region_Process_queue+0x84> <== NOT EXECUTED
58080: 42a7 clrl %sp@- <== NOT EXECUTED
58082: 42a7 clrl %sp@- <== NOT EXECUTED
58084: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED
58088: 2f03 movel %d3,%sp@- <== NOT EXECUTED
5808a: 4e95 jsr %a5@ <== NOT EXECUTED
the_segment = (void **) _Region_Allocate_segment(
the_region,
the_thread->Wait.count
);
if ( the_segment == NULL )
5808c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
58090: 4a80 tstl %d0 <== NOT EXECUTED
58092: 6718 beqs 580ac <_Region_Process_queue+0x84> <== NOT EXECUTED
break;
*(void **)the_thread->Wait.return_argument = the_segment;
58094: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED
58098: 2080 movel %d0,%a0@ <== NOT EXECUTED
the_region->number_of_used_blocks += 1;
5809a: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
5809e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
580a0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
580a2: 4e94 jsr %a4@ <== NOT EXECUTED
the_thread->Wait.return_code = RTEMS_SUCCESSFUL;
}
580a4: 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;
580a6: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED
}
580aa: 60c6 bras 58072 <_Region_Process_queue+0x4a> <== NOT EXECUTED
_Thread_Enable_dispatch();
}
580ac: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED
580b2: 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();
580b4: 4ef9 0005 4c42 jmp 54c42 <_Thread_Enable_dispatch> <== 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 b226 lea 5b226 <_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
00046760 <_TOD_Get_uptime_as_timespec>:
*/
void _TOD_Get_uptime_as_timespec(
struct timespec *uptime
)
{
46760: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
Timestamp_Control uptime_ts;
/* assume time checked for NULL by caller */
_TOD_Get_uptime( &uptime_ts );
46764: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
46768: 4eb9 0004 ae90 jsr 4ae90 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_To_timespec( &uptime_ts, uptime );
4676e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46772: 588f addql #4,%sp <== NOT EXECUTED
46774: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
46778: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
}
4677c: 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 );
4677e: 2080 movel %d0,%a0@ <== NOT EXECUTED
46780: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
}
...
0004768c <_TOD_Set>:
*/
void _TOD_Set(
const struct timespec *time
)
{
4768c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47690: 2039 0006 797c movel 6797c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
47696: 5280 addql #1,%d0 <== NOT EXECUTED
47698: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4769a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
4769e: 23c0 0006 797c movel %d0,6797c <_Thread_Dispatch_disable_level><== NOT EXECUTED
long seconds;
_Thread_Disable_dispatch();
_TOD_Deactivate();
seconds = _TOD_Seconds_since_epoch();
476a4: 2039 0006 7a06 movel 67a06 <_TOD_Now>,%d0 <== NOT EXECUTED
476aa: 41f9 0004 9a08 lea 49a08 <_Watchdog_Adjust>,%a0 <== NOT EXECUTED
if ( time->tv_sec < seconds )
476b0: 2212 movel %a2@,%d1 <== NOT EXECUTED
476b2: b081 cmpl %d1,%d0 <== NOT EXECUTED
476b4: 6f0a bles 476c0 <_TOD_Set+0x34> <== NOT EXECUTED
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
_Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units );
476b6: 9081 subl %d1,%d0 <== NOT EXECUTED
476b8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
476ba: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
476be: 6006 bras 476c6 <_TOD_Set+0x3a> <== NOT EXECUTED
476c0: 9280 subl %d0,%d1 <== NOT EXECUTED
476c2: 2f01 movel %d1,%sp@- <== NOT EXECUTED
476c4: 42a7 clrl %sp@- <== NOT EXECUTED
476c6: 4879 0006 7a32 pea 67a32 <_Watchdog_Seconds_chain> <== NOT EXECUTED
476cc: 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 );
476ce: 23d2 0006 7a06 movel %a2@,67a06 <_TOD_Now> <== NOT EXECUTED
476d4: 588a addql #4,%a2 <== NOT EXECUTED
476d6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
476da: 23d2 0006 7a0a movel %a2@,67a0a <_TOD_Now+0x4> <== NOT EXECUTED
_TOD_Is_set = true;
_TOD_Activate();
_Thread_Enable_dispatch();
}
476e0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
476e4: 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;
476e6: 7001 moveq #1,%d0 <== NOT EXECUTED
476e8: 13c0 0006 798c moveb %d0,6798c <_TOD_Is_set> <== NOT EXECUTED
_TOD_Activate();
_Thread_Enable_dispatch();
476ee: 4ef9 0004 88ca jmp 488ca <_Thread_Enable_dispatch> <== NOT EXECUTED
00046414 <_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() );
46414: 223c 0000 03e8 movel #1000,%d1
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
4641a: 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() );
4641e: 2039 0005 c190 movel 5c190 <Configuration+0xc>,%d0
46424: 4c01 0800 mulsl %d1,%d0
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
46428: 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 );
4642a: 45f9 0004 81b0 lea 481b0 <_Timespec_Add_to>,%a2
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
46430: 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 );
46432: 240e movel %fp,%d2
46434: 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() );
46436: 2d40 fffc movel %d0,%fp@(-4)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
4643a: 2039 0005 db58 movel 5db58 <_Watchdog_Ticks_since_boot>,%d0
46440: 5280 addql #1,%d0
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
46442: 2f02 movel %d2,%sp@-
46444: 4879 0005 daa6 pea 5daa6 <_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() );
4644a: 42ae fff8 clrl %fp@(-8)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
4644e: 23c0 0005 db58 movel %d0,5db58 <_Watchdog_Ticks_since_boot>
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
46454: 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 );
46456: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46458: 4879 0005 dab6 pea 5dab6 <_TOD_Now> <== NOT EXECUTED
4645e: 4e92 jsr %a2@ <== NOT EXECUTED
while ( seconds ) {
46460: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
46464: 45f9 0004 8634 lea 48634 <_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 );
4646a: 2400 movel %d0,%d2 <== NOT EXECUTED
while ( seconds ) {
4646c: 600c bras 4647a <_TOD_Tickle_ticks+0x66> <== NOT EXECUTED
4646e: 4879 0005 dae2 pea 5dae2 <_Watchdog_Seconds_chain> <== NOT EXECUTED
_Watchdog_Tickle_seconds();
seconds--;
46474: 5382 subql #1,%d2 <== NOT EXECUTED
46476: 4e92 jsr %a2@ <== NOT EXECUTED
46478: 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 ) {
4647a: 4a82 tstl %d2 <== NOT EXECUTED
4647c: 66f0 bnes 4646e <_TOD_Tickle_ticks+0x5a> <== NOT EXECUTED
_Watchdog_Tickle_seconds();
seconds--;
}
}
4647e: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED
46482: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
46486: 4e5e unlk %fp <== NOT EXECUTED
...
00045f60 <_TOD_To_seconds>:
*/
uint32_t _TOD_To_seconds(
const rtems_time_of_day *the_tod
)
{
45f60: 43f9 0005 d282 lea 5d282 <_TOD_Days_to_date>,%a1 <== NOT EXECUTED
45f66: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
45f6a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
45f6e: 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;
45f72: 2210 movel %a0@,%d1 <== NOT EXECUTED
45f74: 7403 moveq #3,%d2 <== NOT EXECUTED
)
{
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
45f76: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
45f7a: 5380 subql #1,%d0 <== NOT EXECUTED
year_mod_4 = the_tod->year & 3;
45f7c: c481 andl %d1,%d2 <== NOT EXECUTED
if ( year_mod_4 == 0 )
45f7e: 660c bnes 45f8c <_TOD_To_seconds+0x2c> <== NOT EXECUTED
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
45f80: 2628 0004 movel %a0@(4),%d3 <== NOT EXECUTED
45f84: 0683 0000 000d addil #13,%d3 <== NOT EXECUTED
45f8a: 6004 bras 45f90 <_TOD_To_seconds+0x30> <== NOT EXECUTED
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
45f8c: 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 ];
45f90: 45f9 0005 d2b6 lea 5d2b6 <_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 ) *
45f96: 0681 ffff f83c addil #-1988,%d1 <== NOT EXECUTED
45f9c: 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 ];
45f9e: 3631 3a00 movew %a1@(00000000,%d3:l:2),%d3 <== NOT EXECUTED
45fa2: 0283 0000 ffff andil #65535,%d3 <== NOT EXECUTED
45fa8: 2243 moveal %d3,%a1 <== NOT EXECUTED
45faa: 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 ];
45fac: 4280 clrl %d0 <== NOT EXECUTED
45fae: 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 ) *
45fb2: 243c 0000 05b5 movel #1461,%d2 <== NOT EXECUTED
45fb8: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED
45fbc: d280 addl %d0,%d1 <== NOT EXECUTED
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
45fbe: 2001 movel %d1,%d0 <== NOT EXECUTED
45fc0: d089 addl %a1,%d0 <== NOT EXECUTED
time *= TOD_SECONDS_PER_DAY;
45fc2: 223c 0001 5180 movel #86400,%d1 <== NOT EXECUTED
45fc8: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED
time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute)
45fcc: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED
45fd0: 2401 movel %d1,%d2 <== NOT EXECUTED
45fd2: ed89 lsll #6,%d1 <== NOT EXECUTED
45fd4: e58a lsll #2,%d2 <== NOT EXECUTED
45fd6: 2268 0014 moveal %a0@(20),%a1 <== NOT EXECUTED
45fda: 9282 subl %d2,%d1 <== NOT EXECUTED
45fdc: d2a8 0010 addl %a0@(16),%d1 <== NOT EXECUTED
45fe0: d3fc 21da e500 addal #567993600,%a1 <== NOT EXECUTED
* TOD_SECONDS_PER_MINUTE;
45fe6: 2401 movel %d1,%d2 <== NOT EXECUTED
45fe8: ed89 lsll #6,%d1 <== NOT EXECUTED
45fea: e58a lsll #2,%d2 <== NOT EXECUTED
45fec: 9282 subl %d2,%d1 <== NOT EXECUTED
time += the_tod->second;
45fee: d289 addl %a1,%d1 <== NOT EXECUTED
time += TOD_SECONDS_1970_THROUGH_1988;
return( time );
}
45ff0: d081 addl %d1,%d0 <== NOT EXECUTED
45ff2: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED
45ff6: 4e5e unlk %fp <== NOT EXECUTED
...
00045ffc <_TOD_Validate>:
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
45ffc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46000: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46004: 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();
46006: 2039 0005 e310 movel 5e310 <Configuration+0xc>,%d0 <== NOT EXECUTED
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
4600c: 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) ||
4600e: 4a88 tstl %a0 <== NOT EXECUTED
46010: 6762 beqs 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
)
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
46012: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED
46018: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
4601c: b4a8 0018 cmpl %a0@(24),%d2 <== NOT EXECUTED
46020: 6352 blss 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->ticks >= ticks_per_second) ||
46022: 763b moveq #59,%d3 <== NOT EXECUTED
46024: b6a8 0014 cmpl %a0@(20),%d3 <== NOT EXECUTED
46028: 654a bcss 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
4602a: b6a8 0010 cmpl %a0@(16),%d3 <== NOT EXECUTED
4602e: 6544 bcss 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
46030: 7017 moveq #23,%d0 <== NOT EXECUTED
46032: b0a8 000c cmpl %a0@(12),%d0 <== NOT EXECUTED
46036: 653c bcss 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
46038: 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) ||
4603c: 6736 beqs 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->month == 0) ||
4603e: 720c moveq #12,%d1 <== NOT EXECUTED
46040: b280 cmpl %d0,%d1 <== NOT EXECUTED
46042: 6530 bcss 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
46044: 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) ||
46046: 0c82 0000 07c3 cmpil #1987,%d2 <== NOT EXECUTED
4604c: 6326 blss 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
4604e: 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) ||
46052: 6720 beqs 46074 <_TOD_Validate+0x78> <== NOT EXECUTED
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
46054: 163c 0003 moveb #3,%d3 <== NOT EXECUTED
46058: 41f9 0005 d2be lea 5d2be <_TOD_Days_per_month>,%a0 <== NOT EXECUTED
4605e: c483 andl %d3,%d2 <== NOT EXECUTED
46060: 6606 bnes 46068 <_TOD_Validate+0x6c> <== NOT EXECUTED
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
46062: 2030 0c34 movel %a0@(00000034,%d0:l:4),%d0 <== NOT EXECUTED
46066: 6004 bras 4606c <_TOD_Validate+0x70> <== NOT EXECUTED
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
46068: 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(
4606c: b081 cmpl %d1,%d0 <== NOT EXECUTED
4606e: 54c0 scc %d0 <== NOT EXECUTED
46070: 4480 negl %d0 <== NOT EXECUTED
46072: 6002 bras 46076 <_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;
46074: 4200 clrb %d0 <== NOT EXECUTED
if ( the_tod->day > days_in_month )
return false;
return true;
}
46076: 241f movel %sp@+,%d2 <== NOT EXECUTED
46078: 261f movel %sp@+,%d3 <== NOT EXECUTED
4607a: 4e5e unlk %fp <== NOT EXECUTED
...
0004703c <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
4703c: 4e56 fff0 linkw %fp,#-16
47040: 48d7 041c moveml %d2-%d4/%a2,%sp@
47044: 246e 0008 moveal %fp@(8),%a2
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
47048: 242a 0010 movel %a2@(16),%d2
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
4704c: 262e 000c movel %fp@(12),%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 );
47050: 2f0a movel %a2,%sp@-
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
47052: 182e 0013 moveb %fp@(19),%d4
/*
* 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 );
47056: 4eb9 0004 7e44 jsr 47e44 <_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 )
4705c: 588f addql #4,%sp
4705e: b6aa 0014 cmpl %a2@(20),%d3
47062: 670c beqs 47070 <_Thread_Change_priority+0x34>
_Thread_Set_priority( the_thread, new_priority );
47064: 2f03 movel %d3,%sp@-
47066: 2f0a movel %a2,%sp@-
47068: 4eb9 0004 7cec jsr 47cec <_Thread_Set_priority>
4706e: 508f addql #8,%sp
_ISR_Disable( level );
47070: 223c 0000 0700 movel #1792,%d1
47076: 40c0 movew %sr,%d0
47078: 8280 orl %d0,%d1
4707a: 46c1 movew %d1,%sr
4707c: 7604 moveq #4,%d3
/*
* 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;
4707e: 222a 0010 movel %a2@(16),%d1
47082: c483 andl %d3,%d2
if ( state != STATES_TRANSIENT ) {
47084: b681 cmpl %d1,%d3
47086: 6730 beqs 470b8 <_Thread_Change_priority+0x7c>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
47088: 4a82 tstl %d2
4708a: 6608 bnes 47094 <_Thread_Change_priority+0x58> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
4708c: 74fb moveq #-5,%d2
4708e: c481 andl %d1,%d2
47090: 2542 0010 movel %d2,%a2@(16)
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
47094: 46c0 movew %d0,%sr
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
47096: 0281 0003 bee0 andil #245472,%d1
if ( _States_Is_waiting_on_thread_queue( state ) ) {
4709c: 6700 00d2 beqw 47170 <_Thread_Change_priority+0x134>
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
470a0: 2d4a 000c movel %a2,%fp@(12)
470a4: 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 );
}
470aa: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2
470b0: 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 );
470b2: 4ef9 0004 7c50 jmp 47c50 <_Thread_queue_Requeue>
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
470b8: 4a82 tstl %d2
470ba: 6650 bnes 4710c <_Thread_Change_priority+0xd0> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
470bc: 206a 008e moveal %a2@(142),%a0
470c0: 322a 0094 movew %a2@(148),%d1
470c4: 3410 movew %a0@,%d2
* Interrupts are STILL disabled.
* We now know the thread will be in the READY state when we remove
* the TRANSIENT state. So we have to place it on the appropriate
* Ready Queue with interrupts off.
*/
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
470c6: 42aa 0010 clrl %a2@(16)
470ca: 8282 orl %d2,%d1
470cc: 3081 movew %d1,%a0@
470ce: 206a 008a moveal %a2@(138),%a0
_Priority_Major_bit_map |= the_priority_map->ready_major;
470d2: 3239 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d1
470d8: 342a 0092 movew %a2@(146),%d2
470dc: 8282 orl %d2,%d1
470de: 33c1 0005 dacc movew %d1,5dacc <_Priority_Major_bit_map>
_Priority_bit_map_Add( &the_thread->Priority_map );
if ( prepend_it )
470e4: 4a04 tstb %d4
470e6: 6710 beqs 470f8 <_Thread_Change_priority+0xbc>
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
470e8: 2250 moveal %a0@,%a1
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
470ea: 2548 0004 movel %a0,%a2@(4)
before_node = after_node->next;
after_node->next = the_node;
470ee: 208a movel %a2,%a0@
the_node->next = before_node;
before_node->previous = the_node;
470f0: 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;
470f4: 2489 movel %a1,%a2@
470f6: 6014 bras 4710c <_Thread_Change_priority+0xd0>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
470f8: 2608 movel %a0,%d3
470fa: 5883 addql #4,%d3
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
470fc: 2268 0008 moveal %a0@(8),%a1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
47100: 2483 movel %d3,%a2@
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
47102: 214a 0008 movel %a2,%a0@(8)
old_last_node->next = the_node;
47106: 228a movel %a2,%a1@
the_node->previous = old_last_node;
47108: 2549 0004 movel %a1,%a2@(4)
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
}
_ISR_Flash( level );
4710c: 223c 0000 0700 movel #1792,%d1
47112: 46c0 movew %d0,%sr
47114: 8280 orl %d0,%d1
47116: 46c1 movew %d1,%sr
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 );
47118: 3239 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d1
4711e: 4841 swap %d1
47120: 04c1 ff1 %d1
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
47122: 4282 clrl %d2
47124: 41f9 0005 db34 lea 5db34 <_Priority_Bit_map>,%a0
4712a: 3401 movew %d1,%d2
4712c: 3230 2a00 movew %a0@(00000000,%d2:l:2),%d1
47130: 4841 swap %d1
47132: 04c1 ff1 %d1
return (_Priority_Bits_index( major ) << 4) +
47134: 4283 clrl %d3
47136: e98a lsll #4,%d2
47138: 3601 movew %d1,%d3
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first;
4713a: 2079 0005 d9e0 moveal 5d9e0 <_Thread_Ready_chain>,%a0
47140: 2202 movel %d2,%d1
47142: d283 addl %d3,%d1
47144: 2401 movel %d1,%d2
47146: e58a lsll #2,%d2
47148: e989 lsll #4,%d1
4714a: 91c2 subal %d2,%a0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
4714c: 2230 1800 movel %a0@(00000000,%d1:l),%d1
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
47150: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
47156: 23c1 0005 dec0 movel %d1,5dec0 <_Per_CPU_Information+0x10>
* We altered the set of thread priorities. So let's figure out
* who is the heir and if we need to switch to them.
*/
_Thread_Calculate_heir();
if ( !_Thread_Is_executing_also_the_heir() &&
4715c: b288 cmpl %a0,%d1
4715e: 670e beqs 4716e <_Thread_Change_priority+0x132>
47160: 4a28 0074 tstb %a0@(116)
47164: 6708 beqs 4716e <_Thread_Change_priority+0x132> <== NEVER TAKEN
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
47166: 7201 moveq #1,%d1
47168: 13c1 0005 dec8 moveb %d1,5dec8 <_Per_CPU_Information+0x18>
_ISR_Enable( level );
4716e: 46c0 movew %d0,%sr
}
47170: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2
47176: 4e5e unlk %fp
...
0004717c <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
4717c: 4e56 fff0 linkw %fp,#-16
47180: 206e 0008 moveal %fp@(8),%a0
47184: 48d7 041c moveml %d2-%d4/%a2,%sp@
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
47188: 263c 0000 0700 movel #1792,%d3
4718e: 2203 movel %d3,%d1
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
47190: 202e 000c movel %fp@(12),%d0
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
47194: 40c2 movew %sr,%d2
47196: 8282 orl %d2,%d1
47198: 46c1 movew %d1,%sr
current_state = the_thread->current_state;
4719a: 2228 0010 movel %a0@(16),%d1
if ( current_state & state ) {
4719e: 2800 movel %d0,%d4
471a0: c881 andl %d1,%d4
471a2: 6778 beqs 4721c <_Thread_Clear_state+0xa0> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
471a4: 4680 notl %d0
471a6: c081 andl %d1,%d0
current_state =
the_thread->current_state = _States_Clear( state, current_state );
471a8: 2140 0010 movel %d0,%a0@(16)
if ( _States_Is_ready( current_state ) ) {
471ac: 666e bnes 4721c <_Thread_Clear_state+0xa0> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
471ae: 2268 008e moveal %a0@(142),%a1
471b2: 3028 0094 movew %a0@(148),%d0
471b6: 3211 movew %a1@,%d1
471b8: 8081 orl %d1,%d0
471ba: 3280 movew %d0,%a1@
_Priority_bit_map_Add( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
471bc: 2268 008a moveal %a0@(138),%a1
_Priority_Major_bit_map |= the_priority_map->ready_major;
471c0: 3039 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d0
471c6: 3228 0092 movew %a0@(146),%d1
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
471ca: 2469 0008 moveal %a1@(8),%a2
471ce: 8081 orl %d1,%d0
471d0: 33c0 0005 dacc movew %d0,5dacc <_Priority_Major_bit_map>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
471d6: 2009 movel %a1,%d0
471d8: 5880 addql #4,%d0
471da: 2080 movel %d0,%a0@
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
471dc: 2348 0008 movel %a0,%a1@(8)
old_last_node->next = the_node;
471e0: 2488 movel %a0,%a2@
the_node->previous = old_last_node;
471e2: 214a 0004 movel %a2,%a0@(4)
_ISR_Flash( level );
471e6: 2003 movel %d3,%d0
471e8: 46c2 movew %d2,%sr
471ea: 8082 orl %d2,%d0
471ec: 46c0 movew %d0,%sr
* a context switch.
* Pseudo-ISR case:
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
471ee: 2028 0014 movel %a0@(20),%d0
471f2: 2279 0005 dec0 moveal 5dec0 <_Per_CPU_Information+0x10>,%a1
471f8: b0a9 0014 cmpl %a1@(20),%d0
471fc: 641e bccs 4721c <_Thread_Clear_state+0xa0>
_Thread_Heir = the_thread;
471fe: 23c8 0005 dec0 movel %a0,5dec0 <_Per_CPU_Information+0x10>
if ( _Thread_Executing->is_preemptible ||
47204: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
4720a: 4a28 0074 tstb %a0@(116)
4720e: 6604 bnes 47214 <_Thread_Clear_state+0x98>
47210: 4a80 tstl %d0
47212: 6608 bnes 4721c <_Thread_Clear_state+0xa0> <== ALWAYS TAKEN
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
47214: 7001 moveq #1,%d0
47216: 13c0 0005 dec8 moveb %d0,5dec8 <_Per_CPU_Information+0x18>
}
}
}
_ISR_Enable( level );
4721c: 46c2 movew %d2,%sr
}
4721e: 4cd7 041c moveml %sp@,%d2-%d4/%a2
47222: 4e5e unlk %fp
...
00047228 <_Thread_Close>:
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
47228: 4280 clrl %d0
void _Thread_Close(
Objects_Information *information,
Thread_Control *the_thread
)
{
4722a: 4e56 0000 linkw %fp,#0
4722e: 2f0b movel %a3,%sp@-
47230: 266e 0008 moveal %fp@(8),%a3
47234: 2f0a movel %a2,%sp@-
47236: 246e 000c moveal %fp@(12),%a2
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4723a: 206b 0018 moveal %a3@(24),%a0
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
4723e: 302a 000a movew %a2@(10),%d0
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
47242: 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;
47246: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
4724c: 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 );
4724e: 2f0a movel %a2,%sp@-
47250: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level>
47256: 4eb9 0004 83e4 jsr 483e4 <_User_extensions_Thread_delete>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4725c: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
47262: 5280 addql #1,%d0
47264: 23c0 0005 da2c movel %d0,5da2c <_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 );
4726a: 2f0a movel %a2,%sp@-
4726c: 2f0b movel %a3,%sp@-
4726e: 4eb9 0004 68e0 jsr 468e0 <_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 );
47274: 4878 0001 pea 1 <ADD>
47278: 2f0a movel %a2,%sp@-
4727a: 4eb9 0004 7d5c jsr 47d5c <_Thread_Set_state>
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
47280: 2f0a movel %a2,%sp@-
47282: 4eb9 0004 7b84 jsr 47b84 <_Thread_queue_Extract_with_proxy>
47288: 4fef 0018 lea %sp@(24),%sp
4728c: 4a00 tstb %d0
4728e: 6614 bnes 472a4 <_Thread_Close+0x7c> <== NEVER TAKEN
if ( _Watchdog_Is_active( &the_thread->Timer ) )
47290: 7002 moveq #2,%d0
47292: b0aa 0050 cmpl %a2@(80),%d0
47296: 660c bnes 472a4 <_Thread_Close+0x7c> <== ALWAYS TAKEN
(void) _Watchdog_Remove( &the_thread->Timer );
47298: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4729c: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
472a2: 588f addql #4,%sp <== NOT EXECUTED
/*
* 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 ) )
472a4: b5f9 0005 daae cmpal 5daae <_Thread_Allocated_fp>,%a2
472aa: 6606 bnes 472b2 <_Thread_Close+0x8a> <== ALWAYS TAKEN
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void )
{
_Thread_Allocated_fp = NULL;
472ac: 42b9 0005 daae clrl 5daae <_Thread_Allocated_fp> <== NOT EXECUTED
_Thread_Deallocate_fp();
#endif
the_thread->fp_context = NULL;
if ( the_thread->Start.fp_context )
472b2: 202a 00c6 movel %a2@(198),%d0
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( _Thread_Is_allocated_fp( the_thread ) )
_Thread_Deallocate_fp();
#endif
the_thread->fp_context = NULL;
472b6: 42aa 0102 clrl %a2@(258)
if ( the_thread->Start.fp_context )
472ba: 4a80 tstl %d0
472bc: 670a beqs 472c8 <_Thread_Close+0xa0> <== ALWAYS TAKEN
(void) _Workspace_Free( the_thread->Start.fp_context );
472be: 2f00 movel %d0,%sp@- <== NOT EXECUTED
472c0: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
472c6: 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 );
472c8: 2f0a movel %a2,%sp@-
472ca: 4eb9 0004 7f08 jsr 47f08 <_Thread_Stack_Free>
the_thread->Start.stack = NULL;
if ( the_thread->extensions )
472d0: 202a 0112 movel %a2@(274),%d0
472d4: 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;
472d6: 42aa 00ca clrl %a2@(202)
if ( the_thread->extensions )
472da: 4a80 tstl %d0
472dc: 670a beqs 472e8 <_Thread_Close+0xc0> <== ALWAYS TAKEN
(void) _Workspace_Free( the_thread->extensions );
472de: 2f00 movel %d0,%sp@- <== NOT EXECUTED
472e0: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
472e6: 588f addql #4,%sp <== NOT EXECUTED
the_thread->extensions = NULL;
472e8: 42aa 0112 clrl %a2@(274)
}
472ec: 246e fff8 moveal %fp@(-8),%a2
472f0: 266e fffc moveal %fp@(-4),%a3
472f4: 4e5e unlk %fp <== NOT EXECUTED
000473a8 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
473a8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
473ac: 486e fffc pea %fp@(-4) <== NOT EXECUTED
473b0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
473b4: 4eb9 0004 7548 jsr 47548 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
473ba: 508f addql #8,%sp <== NOT EXECUTED
473bc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
473c0: 661e bnes 473e0 <_Thread_Delay_ended+0x38> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
473c2: 2f3c 1000 0018 movel #268435480,%sp@- <== NOT EXECUTED
473c8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
473ca: 4eb9 0004 717c jsr 4717c <_Thread_Clear_state> <== NOT EXECUTED
473d0: 508f addql #8,%sp <== NOT EXECUTED
473d2: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
473d8: 5380 subql #1,%d0 <== NOT EXECUTED
473da: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level><== NOT EXECUTED
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
473e0: 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 32d8 movel 632d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4056e: 5280 addql #1,%d0 <== NOT EXECUTED
40570: 23c0 0006 32d8 movel %d0,632d8 <_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
000473e4 <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
473e4: 4e56 ffc8 linkw %fp,#-56
473e8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
473ec: 283c 0000 0700 movel #1792,%d4
473f2: 2204 movel %d4,%d1
{
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
473f4: 2479 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a2
_ISR_Disable( level );
473fa: 40c0 movew %sr,%d0
473fc: 8280 orl %d0,%d1
473fe: 46c1 movew %d1,%sr
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
47400: 260e movel %fp,%d3
_Timestamp_Subtract(
47402: 240e movel %fp,%d2
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
47404: 5183 subql #8,%d3
_Timestamp_Subtract(
47406: 0682 ffff fff0 addil #-16,%d2
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
4740c: 2e3c 0004 81b0 movel #295344,%d7
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
47412: 2c3c 0004 8464 movel #296036,%d6
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
47418: 2a3c 0004 8778 movel #296824,%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 );
4741e: 4bf9 0004 88e0 lea 488e0 <_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 );
47424: 49f9 0004 88be lea 488be <_CPU_Context_save_fp>,%a4
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
4742a: 6000 00d4 braw 47500 <_Thread_Dispatch+0x11c>
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
4742e: 7201 moveq #1,%d1
47430: 23c1 0005 da2c movel %d1,5da2c <_Thread_Dispatch_disable_level>
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
47436: 2679 0005 dec0 moveal 5dec0 <_Per_CPU_Information+0x10>,%a3
_Thread_Dispatch_disable_level = 1;
_Thread_Dispatch_necessary = false;
4743c: 4201 clrb %d1
_Thread_Executing = heir;
4743e: 23cb 0005 debc movel %a3,5debc <_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;
47444: 13c1 0005 dec8 moveb %d1,5dec8 <_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 )
4744a: b5cb cmpal %a3,%a2
4744c: 6700 00bc beqw 4750a <_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 )
47450: 7201 moveq #1,%d1
47452: b2ab 007a cmpl %a3@(122),%d1
47456: 660a bnes 47462 <_Thread_Dispatch+0x7e> <== ALWAYS TAKEN
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
47458: 41f9 0005 d9e4 lea 5d9e4 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
4745e: 2750 0076 movel %a0@,%a3@(118) <== NOT EXECUTED
_ISR_Enable( level );
47462: 46c0 movew %d0,%sr
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
47464: 2f03 movel %d3,%sp@-
47466: 4eb9 0004 aa78 jsr 4aa78 <_TOD_Get_uptime>
_Timestamp_Subtract(
4746c: 2f02 movel %d2,%sp@-
4746e: 2f03 movel %d3,%sp@-
47470: 4879 0005 dada pea 5dada <_Thread_Time_of_last_context_switch>
47476: 4eb9 0004 81e8 jsr 481e8 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
4747c: 2047 moveal %d7,%a0
4747e: 2f02 movel %d2,%sp@-
47480: 486a 0082 pea %a2@(130)
47484: 4e90 jsr %a0@
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
47486: 2079 0005 dab2 moveal 5dab2 <_Thread_libc_reent>,%a0
4748c: 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;
47490: 202e fff8 movel %fp@(-8),%d0
47494: 222e fffc movel %fp@(-4),%d1
47498: 23c0 0005 dada movel %d0,5dada <_Thread_Time_of_last_context_switch>
4749e: 23c1 0005 dade movel %d1,5dade <_Thread_Time_of_last_context_switch+0x4>
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
474a4: 4a88 tstl %a0
474a6: 6708 beqs 474b0 <_Thread_Dispatch+0xcc> <== NEVER TAKEN
executing->libc_reent = *_Thread_libc_reent;
474a8: 2550 0106 movel %a0@,%a2@(262)
*_Thread_libc_reent = heir->libc_reent;
474ac: 20ab 0106 movel %a3@(262),%a0@
}
_User_extensions_Thread_switch( executing, heir );
474b0: 2f0b movel %a3,%sp@-
474b2: 2046 moveal %d6,%a0
474b4: 2f0a movel %a2,%sp@-
474b6: 4e90 jsr %a0@
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
474b8: 486b 00ce pea %a3@(206)
474bc: 2045 moveal %d5,%a0
474be: 486a 00ce pea %a2@(206)
474c2: 4e90 jsr %a0@
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
474c4: 4fef 0010 lea %sp@(16),%sp
474c8: 4aaa 0102 tstl %a2@(258)
474cc: 6724 beqs 474f2 <_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 );
474ce: 2079 0005 daae moveal 5daae <_Thread_Allocated_fp>,%a0 <== NOT EXECUTED
474d4: b1ca cmpal %a2,%a0 <== NOT EXECUTED
474d6: 671a beqs 474f2 <_Thread_Dispatch+0x10e> <== NOT EXECUTED
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
474d8: 4a88 tstl %a0 <== NOT EXECUTED
474da: 6708 beqs 474e4 <_Thread_Dispatch+0x100> <== NOT EXECUTED
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
474dc: 4868 0102 pea %a0@(258) <== NOT EXECUTED
474e0: 4e94 jsr %a4@ <== NOT EXECUTED
474e2: 588f addql #4,%sp <== NOT EXECUTED
_Context_Restore_fp( &executing->fp_context );
474e4: 486a 0102 pea %a2@(258) <== NOT EXECUTED
474e8: 4e95 jsr %a5@ <== NOT EXECUTED
_Thread_Allocated_fp = executing;
474ea: 588f addql #4,%sp <== NOT EXECUTED
474ec: 23ca 0005 daae movel %a2,5daae <_Thread_Allocated_fp> <== NOT EXECUTED
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
474f2: 2479 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a2
_ISR_Disable( level );
474f8: 2204 movel %d4,%d1
474fa: 40c0 movew %sr,%d0
474fc: 8280 orl %d0,%d1
474fe: 46c1 movew %d1,%sr
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
47500: 1239 0005 dec8 moveb 5dec8 <_Per_CPU_Information+0x18>,%d1
47506: 6600 ff26 bnew 4742e <_Thread_Dispatch+0x4a>
_ISR_Disable( level );
}
post_switch:
_Thread_Dispatch_disable_level = 0;
4750a: 42b9 0005 da2c clrl 5da2c <_Thread_Dispatch_disable_level>
_ISR_Enable( level );
47510: 46c0 movew %d0,%sr
_API_extensions_Run_postswitch();
47512: 4eb9 0004 5e78 jsr 45e78 <_API_extensions_Run_postswitch>
}
47518: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5
4751e: 4e5e unlk %fp <== NOT EXECUTED
00047548 <_Thread_Get>:
*/
Thread_Control *_Thread_Get (
Objects_Id id,
Objects_Locations *location
)
{
47548: 4e56 0000 linkw %fp,#0
4754c: 202e 0008 movel %fp@(8),%d0
47550: 2f03 movel %d3,%sp@-
47552: 206e 000c moveal %fp@(12),%a0
47556: 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 ) ) {
47558: 4a80 tstl %d0
4755a: 6618 bnes 47574 <_Thread_Get+0x2c>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4755c: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
47562: 5280 addql #1,%d0
47564: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
*location = OBJECTS_LOCAL;
4756a: 4290 clrl %a0@
tp = _Thread_Executing;
4756c: 2039 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%d0
goto done;
47572: 6040 bras 475b4 <_Thread_Get+0x6c>
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
47574: 7418 moveq #24,%d2
47576: 2200 movel %d0,%d1
47578: e4a9 lsrl %d2,%d1
4757a: 7607 moveq #7,%d3
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
4757c: 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);
47580: c283 andl %d3,%d1
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
47582: 2241 moveal %d1,%a1
47584: 5389 subql #1,%a1
47586: b489 cmpl %a1,%d2
47588: 6436 bccs 475c0 <_Thread_Get+0x78> <== ALWAYS TAKEN
4758a: 6010 bras 4759c <_Thread_Get+0x54> <== NOT EXECUTED
if ( the_class != 1 ) { /* threads are always first class :) */
*location = OBJECTS_ERROR;
goto done;
}
api_information = _Objects_Information_table[ the_api ];
4758c: 43f9 0005 d9e8 lea 5d9e8 <_Objects_Information_table>,%a1
*location = OBJECTS_ERROR;
goto done;
}
#endif
information = api_information[ the_class ];
47592: 2271 1c00 moveal %a1@(00000000,%d1:l:4),%a1
47596: 2229 0004 movel %a1@(4),%d1
if ( !information ) {
4759a: 6608 bnes 475a4 <_Thread_Get+0x5c> <== ALWAYS TAKEN
*location = OBJECTS_ERROR;
4759c: 7001 moveq #1,%d0 <== NOT EXECUTED
4759e: 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;
475a0: 4280 clrl %d0 <== NOT EXECUTED
#endif
information = api_information[ the_class ];
if ( !information ) {
*location = OBJECTS_ERROR;
goto done;
475a2: 6010 bras 475b4 <_Thread_Get+0x6c> <== NOT EXECUTED
}
tp = (Thread_Control *) _Objects_Get( information, id, location );
475a4: 2f08 movel %a0,%sp@-
475a6: 2f00 movel %d0,%sp@-
475a8: 2f01 movel %d1,%sp@-
475aa: 4eb9 0004 6cbc jsr 46cbc <_Objects_Get>
475b0: 4fef 000c lea %sp@(12),%sp
done:
return tp;
}
475b4: 242e fff8 movel %fp@(-8),%d2
475b8: 262e fffc movel %fp@(-4),%d3
475bc: 4e5e unlk %fp
475be: 4e75 rts
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
475c0: 761b moveq #27,%d3
475c2: 2400 movel %d0,%d2
475c4: e6aa lsrl %d3,%d2
*location = OBJECTS_ERROR;
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
475c6: 163c 0001 moveb #1,%d3
475ca: b682 cmpl %d2,%d3
475cc: 67be beqs 4758c <_Thread_Get+0x44> <== ALWAYS TAKEN
475ce: 60cc bras 4759c <_Thread_Get+0x54> <== NOT EXECUTED
0004c6a4 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
4c6a4: 4e56 0000 linkw %fp,#0
4c6a8: 2f0a movel %a2,%sp@-
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
4c6aa: 2479 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a2
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
4c6b0: 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;
4c6b2: 222a 00b4 movel %a2@(180),%d1
_ISR_Set_level(level);
4c6b6: 40c0 movew %sr,%d0
4c6b8: e189 lsll #8,%d1
4c6ba: 0280 0000 f8ff andil #63743,%d0
4c6c0: 8081 orl %d1,%d0
4c6c2: 46c0 movew %d0,%sr
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
doneConstructors = 1;
4c6c4: 7001 moveq #1,%d0
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
4c6c6: 1439 0005 d1e8 moveb 5d1e8 <doneConstructors.3283>,%d2
doneConstructors = 1;
4c6cc: 13c0 0005 d1e8 moveb %d0,5d1e8 <doneConstructors.3283>
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
4c6d2: 4aaa 0102 tstl %a2@(258)
4c6d6: 6720 beqs 4c6f8 <_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 );
4c6d8: 2079 0005 daae moveal 5daae <_Thread_Allocated_fp>,%a0
4c6de: b1ca cmpal %a2,%a0
4c6e0: 6716 beqs 4c6f8 <_Thread_Handler+0x54> <== NEVER TAKEN
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
4c6e2: 4a88 tstl %a0
4c6e4: 670c beqs 4c6f2 <_Thread_Handler+0x4e> <== ALWAYS TAKEN
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
4c6e6: 4868 0102 pea %a0@(258) <== NOT EXECUTED
4c6ea: 4eb9 0004 88be jsr 488be <_CPU_Context_save_fp> <== NOT EXECUTED
4c6f0: 588f addql #4,%sp <== NOT EXECUTED
_Thread_Allocated_fp = executing;
4c6f2: 23ca 0005 daae movel %a2,5daae <_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 );
4c6f8: 2f0a movel %a2,%sp@-
4c6fa: 4eb9 0004 82e0 jsr 482e0 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
4c700: 4eb9 0004 7522 jsr 47522 <_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) */ {
4c706: 588f addql #4,%sp
4c708: 4a02 tstb %d2
4c70a: 6606 bnes 4c712 <_Thread_Handler+0x6e>
INIT_NAME ();
4c70c: 4eb9 0005 a62c jsr 5a62c <_init>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
4c712: 202a 009e movel %a2@(158),%d0
4c716: 6606 bnes 4c71e <_Thread_Handler+0x7a>
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
4c718: 2f2a 00a6 movel %a2@(166),%sp@-
4c71c: 600a bras 4c728 <_Thread_Handler+0x84>
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
4c71e: 7201 moveq #1,%d1
4c720: b280 cmpl %d0,%d1
4c722: 6610 bnes 4c734 <_Thread_Handler+0x90> <== NEVER TAKEN
executing->Wait.return_argument =
(*(Thread_Entry_pointer) executing->Start.entry_point)(
4c724: 2f2a 00a2 movel %a2@(162),%sp@-
4c728: 206a 009a moveal %a2@(154),%a0
4c72c: 4e90 jsr %a0@
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
executing->Wait.return_argument =
4c72e: 588f addql #4,%sp
4c730: 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 );
4c734: 2f0a movel %a2,%sp@-
4c736: 4eb9 0004 8318 jsr 48318 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
4c73c: 4878 0005 pea 5 <COMPARE>
4c740: 4878 0001 pea 1 <ADD>
4c744: 42a7 clrl %sp@-
4c746: 4eb9 0004 67b0 jsr 467b0 <_Internal_error_Occurred>
000475d0 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
475d0: 4e56 ffe8 linkw %fp,#-24
475d4: 222e 0010 movel %fp@(16),%d1
475d8: 48d7 047c moveml %d2-%d6/%a2,%sp@
475dc: 246e 000c moveal %fp@(12),%a2
475e0: 242e 0014 movel %fp@(20),%d2
475e4: 282e 001c movel %fp@(28),%d4
475e8: 2a2e 0024 movel %fp@(36),%d5
475ec: 162e 001b moveb %fp@(27),%d3
475f0: 1c2e 0023 moveb %fp@(35),%d6
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
475f4: 42aa 010a clrl %a2@(266)
475f8: 42aa 010e clrl %a2@(270)
extensions_area = NULL;
the_thread->libc_reent = NULL;
475fc: 42aa 0106 clrl %a2@(262)
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
47600: 4a81 tstl %d1
47602: 6624 bnes 47628 <_Thread_Initialize+0x58> <== NEVER TAKEN
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
47604: 2f02 movel %d2,%sp@-
47606: 2f0a movel %a2,%sp@-
47608: 4eb9 0004 7ebc jsr 47ebc <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
4760e: 508f addql #8,%sp
47610: 4a80 tstl %d0
47612: 6700 0162 beqw 47776 <_Thread_Initialize+0x1a6>
47616: b480 cmpl %d0,%d2
47618: 6200 015c bhiw 47776 <_Thread_Initialize+0x1a6>
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
4761c: 222a 00ca movel %a2@(202),%d1
the_thread->Start.core_allocated_stack = true;
47620: 7401 moveq #1,%d2
47622: 1542 00bc moveb %d2,%a2@(188)
47626: 6008 bras 47630 <_Thread_Initialize+0x60>
} else {
stack = stack_area;
actual_stack_size = stack_size;
the_thread->Start.core_allocated_stack = false;
47628: 4200 clrb %d0 <== NOT EXECUTED
4762a: 1540 00bc moveb %d0,%a2@(188) <== NOT EXECUTED
4762e: 2002 movel %d2,%d0 <== NOT EXECUTED
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
47630: 2541 00c2 movel %d1,%a2@(194)
the_stack->size = size;
47634: 2540 00be movel %d0,%a2@(190)
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
47638: 4a03 tstb %d3
4763a: 6714 beqs 47650 <_Thread_Initialize+0x80>
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
4763c: 4878 001c pea 1c <OPER2+0x8>
47640: 4eb9 0004 8710 jsr 48710 <_Workspace_Allocate>
if ( !fp_area )
47646: 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 );
47648: 2600 movel %d0,%d3
if ( !fp_area )
4764a: 6606 bnes 47652 <_Thread_Initialize+0x82> <== ALWAYS TAKEN
4764c: 6000 00d0 braw 4771e <_Thread_Initialize+0x14e> <== NOT EXECUTED
extensions_area = NULL;
the_thread->libc_reent = NULL;
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
fp_area = NULL;
47650: 4283 clrl %d3
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
47652: 2039 0005 dabe movel 5dabe <_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;
47658: 2543 0102 movel %d3,%a2@(258)
the_thread->Start.fp_context = fp_area;
4765c: 2543 00c6 movel %d3,%a2@(198)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
47660: 42aa 0050 clrl %a2@(80)
the_watchdog->routine = routine;
47664: 42aa 0064 clrl %a2@(100)
the_watchdog->id = id;
47668: 42aa 0068 clrl %a2@(104)
the_watchdog->user_data = user_data;
4766c: 42aa 006c clrl %a2@(108)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
47670: 4a80 tstl %d0
47672: 6718 beqs 4768c <_Thread_Initialize+0xbc>
extensions_area = _Workspace_Allocate(
47674: e588 lsll #2,%d0
47676: 2040 moveal %d0,%a0
47678: 4868 0004 pea %a0@(4)
4767c: 4eb9 0004 8710 jsr 48710 <_Workspace_Allocate>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
47682: 588f addql #4,%sp
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
extensions_area = _Workspace_Allocate(
47684: 2400 movel %d0,%d2
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
47686: 6606 bnes 4768e <_Thread_Initialize+0xbe> <== ALWAYS TAKEN
47688: 6000 0096 braw 47720 <_Thread_Initialize+0x150> <== 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;
4768c: 4282 clrl %d2
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
4768e: 2542 0112 movel %d2,%a2@(274)
* 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 ) {
47692: 6714 beqs 476a8 <_Thread_Initialize+0xd8>
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
47694: 2239 0005 dabe movel 5dabe <_Thread_Maximum_extensions>,%d1
4769a: 2042 moveal %d2,%a0
4769c: 4280 clrl %d0
4769e: 6004 bras 476a4 <_Thread_Initialize+0xd4>
the_thread->extensions[i] = NULL;
476a0: 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++ )
476a2: 5280 addql #1,%d0
476a4: b280 cmpl %d0,%d1
476a6: 64f8 bccs 476a0 <_Thread_Initialize+0xd0>
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
476a8: 2545 00ac movel %d5,%a2@(172)
the_thread->Start.budget_callout = budget_callout;
switch ( budget_algorithm ) {
476ac: 7002 moveq #2,%d0
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
476ae: 1546 00aa moveb %d6,%a2@(170)
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
476b2: 256e 0028 00b0 movel %fp@(40),%a2@(176)
switch ( budget_algorithm ) {
476b8: b085 cmpl %d5,%d0
476ba: 660a bnes 476c6 <_Thread_Initialize+0xf6> <== ALWAYS TAKEN
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
476bc: 41f9 0005 d9e4 lea 5d9e4 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
476c2: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
476c6: 7001 moveq #1,%d0
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
476c8: 256e 002c 00b4 movel %fp@(44),%a2@(180)
the_thread->current_state = STATES_DORMANT;
476ce: 2540 0010 movel %d0,%a2@(16)
the_thread->Wait.queue = NULL;
476d2: 42aa 0044 clrl %a2@(68)
the_thread->resource_count = 0;
476d6: 42aa 001c clrl %a2@(28)
the_thread->real_priority = priority;
476da: 2544 0018 movel %d4,%a2@(24)
the_thread->Start.initial_priority = priority;
476de: 2544 00b8 movel %d4,%a2@(184)
_Thread_Set_priority( the_thread, priority );
476e2: 2f04 movel %d4,%sp@-
476e4: 2f0a movel %a2,%sp@-
476e6: 4eb9 0004 7cec jsr 47cec <_Thread_Set_priority>
_Thread_Stack_Free( the_thread );
return false;
}
476ec: 206e 0008 moveal %fp@(8),%a0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
476f0: 4280 clrl %d0
476f2: 2068 0018 moveal %a0@(24),%a0
476f6: 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 );
476fa: 42aa 0082 clrl %a2@(130)
476fe: 42aa 0086 clrl %a2@(134)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
47702: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
47706: 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 );
4770c: 2f0a movel %a2,%sp@-
4770e: 4eb9 0004 839c jsr 4839c <_User_extensions_Thread_create>
if ( extension_status )
47714: 4fef 000c lea %sp@(12),%sp
47718: 4a00 tstb %d0
4771a: 6704 beqs 47720 <_Thread_Initialize+0x150> <== NEVER TAKEN
4771c: 605c bras 4777a <_Thread_Initialize+0x1aa>
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
extensions_area = NULL;
4771e: 4282 clrl %d2 <== NOT EXECUTED
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
return true;
failed:
if ( the_thread->libc_reent )
47720: 202a 0106 movel %a2@(262),%d0 <== NOT EXECUTED
47724: 670a beqs 47730 <_Thread_Initialize+0x160> <== NOT EXECUTED
_Workspace_Free( the_thread->libc_reent );
47726: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47728: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
4772e: 588f addql #4,%sp <== NOT EXECUTED
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
47730: 202a 010a movel %a2@(266),%d0 <== NOT EXECUTED
47734: 670a beqs 47740 <_Thread_Initialize+0x170> <== NOT EXECUTED
_Workspace_Free( the_thread->API_Extensions[i] );
47736: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47738: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
4773e: 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] )
47740: 202a 010e movel %a2@(270),%d0 <== NOT EXECUTED
47744: 670a beqs 47750 <_Thread_Initialize+0x180> <== NOT EXECUTED
_Workspace_Free( the_thread->API_Extensions[i] );
47746: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47748: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
4774e: 588f addql #4,%sp <== NOT EXECUTED
if ( extensions_area )
47750: 4a82 tstl %d2 <== NOT EXECUTED
47752: 670a beqs 4775e <_Thread_Initialize+0x18e> <== NOT EXECUTED
(void) _Workspace_Free( extensions_area );
47754: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47756: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
4775c: 588f addql #4,%sp <== NOT EXECUTED
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
4775e: 4a83 tstl %d3 <== NOT EXECUTED
47760: 670a beqs 4776c <_Thread_Initialize+0x19c> <== NOT EXECUTED
(void) _Workspace_Free( fp_area );
47762: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47764: 4eb9 0004 872c jsr 4872c <_Workspace_Free> <== NOT EXECUTED
4776a: 588f addql #4,%sp <== NOT EXECUTED
#endif
_Thread_Stack_Free( the_thread );
4776c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4776e: 4eb9 0004 7f08 jsr 47f08 <_Thread_Stack_Free> <== NOT EXECUTED
return false;
47774: 588f addql #4,%sp <== NOT EXECUTED
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
47776: 4200 clrb %d0
47778: 6002 bras 4777c <_Thread_Initialize+0x1ac>
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
return true;
4777a: 7001 moveq #1,%d0
_Thread_Stack_Free( the_thread );
return false;
}
4777c: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2
47782: 4e5e unlk %fp
...
0004b088 <_Thread_Ready>:
*/
void _Thread_Ready(
Thread_Control *the_thread
)
{
4b088: 4e56 fff4 linkw %fp,#-12
4b08c: 206e 0008 moveal %fp@(8),%a0
4b090: 48d7 040c moveml %d2-%d3/%a2,%sp@
ISR_Level level;
Thread_Control *heir;
_ISR_Disable( level );
4b094: 243c 0000 0700 movel #1792,%d2
4b09a: 2002 movel %d2,%d0
4b09c: 40c1 movew %sr,%d1
4b09e: 8081 orl %d1,%d0
4b0a0: 46c0 movew %d0,%sr
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
4b0a2: 2268 008e moveal %a0@(142),%a1
4b0a6: 3028 0094 movew %a0@(148),%d0
4b0aa: 3611 movew %a1@,%d3
the_thread->current_state = STATES_READY;
4b0ac: 42a8 0010 clrl %a0@(16)
4b0b0: 8083 orl %d3,%d0
4b0b2: 3280 movew %d0,%a1@
_Priority_bit_map_Add( &the_thread->Priority_map );
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
4b0b4: 2268 008a moveal %a0@(138),%a1
_Priority_Major_bit_map |= the_priority_map->ready_major;
4b0b8: 3039 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d0
4b0be: 3628 0092 movew %a0@(146),%d3
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
4b0c2: 2469 0008 moveal %a1@(8),%a2
4b0c6: 8083 orl %d3,%d0
4b0c8: 33c0 0005 dacc movew %d0,5dacc <_Priority_Major_bit_map>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4b0ce: 2009 movel %a1,%d0
4b0d0: 5880 addql #4,%d0
4b0d2: 2080 movel %d0,%a0@
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
4b0d4: 2348 0008 movel %a0,%a1@(8)
old_last_node->next = the_node;
4b0d8: 2488 movel %a0,%a2@
the_node->previous = old_last_node;
4b0da: 214a 0004 movel %a2,%a0@(4)
_ISR_Flash( level );
4b0de: 2002 movel %d2,%d0
4b0e0: 46c1 movew %d1,%sr
4b0e2: 8081 orl %d1,%d0
4b0e4: 46c0 movew %d0,%sr
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 );
4b0e6: 3039 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d0
4b0ec: 4840 swap %d0
4b0ee: 04c0 ff1 %d0
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
4b0f0: 4282 clrl %d2
4b0f2: 41f9 0005 db34 lea 5db34 <_Priority_Bit_map>,%a0
4b0f8: 3400 movew %d0,%d2
4b0fa: 3030 2a00 movew %a0@(00000000,%d2:l:2),%d0
4b0fe: 4840 swap %d0
4b100: 04c0 ff1 %d0
return (_Priority_Bits_index( major ) << 4) +
4b102: 4283 clrl %d3
4b104: e98a lsll #4,%d2
4b106: 3600 movew %d0,%d3
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first;
4b108: 2079 0005 d9e0 moveal 5d9e0 <_Thread_Ready_chain>,%a0
4b10e: 2002 movel %d2,%d0
4b110: d083 addl %d3,%d0
4b112: 2400 movel %d0,%d2
4b114: e58a lsll #2,%d2
4b116: e988 lsll #4,%d0
4b118: 91c2 subal %d2,%a0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
4b11a: 2030 0800 movel %a0@(00000000,%d0:l),%d0
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
4b11e: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
4b124: 23c0 0005 dec0 movel %d0,5dec0 <_Per_CPU_Information+0x10>
_Thread_Calculate_heir();
heir = _Thread_Heir;
if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible )
4b12a: b1c0 cmpal %d0,%a0
4b12c: 670e beqs 4b13c <_Thread_Ready+0xb4>
4b12e: 4a28 0074 tstb %a0@(116)
4b132: 6708 beqs 4b13c <_Thread_Ready+0xb4> <== NEVER TAKEN
_Thread_Dispatch_necessary = true;
4b134: 7001 moveq #1,%d0
4b136: 13c0 0005 dec8 moveb %d0,5dec8 <_Per_CPU_Information+0x18>
_ISR_Enable( level );
4b13c: 46c1 movew %d1,%sr
}
4b13e: 4cd7 040c moveml %sp@,%d2-%d3/%a2
4b142: 4e5e unlk %fp
...
0004b9c4 <_Thread_Reset>:
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
4b9c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4b9c8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b9ca: 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;
4b9ce: 256a 00ac 007a movel %a2@(172),%a2@(122) <== NOT EXECUTED
the_thread->budget_callout = the_thread->Start.budget_callout;
4b9d4: 256a 00b0 007e movel %a2@(176),%a2@(126) <== NOT EXECUTED
the_thread->Start.pointer_argument = pointer_argument;
4b9da: 256e 000c 00a2 movel %fp@(12),%a2@(162) <== NOT EXECUTED
the_thread->Start.numeric_argument = numeric_argument;
4b9e0: 256e 0010 00a6 movel %fp@(16),%a2@(166) <== 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;
4b9e6: 156a 00aa 0074 moveb %a2@(170),%a2@(116) <== NOT EXECUTED
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
4b9ec: 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 ) ) {
4b9f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b9f2: 4eb9 0004 833c jsr 4833c <_Thread_queue_Extract_with_proxy><== NOT EXECUTED
4b9f8: 588f addql #4,%sp <== NOT EXECUTED
4b9fa: 4a00 tstb %d0 <== NOT EXECUTED
4b9fc: 6614 bnes 4ba12 <_Thread_Reset+0x4e> <== NOT EXECUTED
if ( _Watchdog_Is_active( &the_thread->Timer ) )
4b9fe: 7002 moveq #2,%d0 <== NOT EXECUTED
4ba00: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED
4ba04: 660c bnes 4ba12 <_Thread_Reset+0x4e> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4ba06: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4ba0a: 4eb9 0004 8e34 jsr 48e34 <_Watchdog_Remove> <== NOT EXECUTED
4ba10: 588f addql #4,%sp <== NOT EXECUTED
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
4ba12: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED
4ba16: b0aa 0014 cmpl %a2@(20),%d0 <== NOT EXECUTED
4ba1a: 6718 beqs 4ba34 <_Thread_Reset+0x70> <== NOT EXECUTED
the_thread->real_priority = the_thread->Start.initial_priority;
4ba1c: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
4ba20: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
}
4ba24: 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 );
4ba28: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
}
}
4ba2c: 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 );
4ba2e: 4ef9 0004 8528 jmp 48528 <_Thread_Set_priority> <== NOT EXECUTED
}
}
4ba34: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4ba38: 4e5e unlk %fp <== NOT EXECUTED
000484a4 <_Thread_Restart>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
484a4: 7001 moveq #1,%d0 <== NOT EXECUTED
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
484a6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
484aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED
484ac: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
484b0: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED
if ( !_States_Is_dormant( the_thread->current_state ) ) {
484b4: 6664 bnes 4851a <_Thread_Restart+0x76> <== NOT EXECUTED
_Thread_Set_transient( the_thread );
484b6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
484b8: 4eb9 0004 8680 jsr 48680 <_Thread_Set_transient> <== NOT EXECUTED
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
484be: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
484c2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
484c6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
484c8: 4eb9 0004 b9c4 jsr 4b9c4 <_Thread_Reset> <== NOT EXECUTED
_Thread_Load_environment( the_thread );
484ce: 2f0a movel %a2,%sp@- <== NOT EXECUTED
484d0: 4eb9 0004 b670 jsr 4b670 <_Thread_Load_environment> <== NOT EXECUTED
_Thread_Ready( the_thread );
484d6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
484d8: 4eb9 0004 b904 jsr 4b904 <_Thread_Ready> <== NOT EXECUTED
_User_extensions_Thread_restart( the_thread );
484de: 2f0a movel %a2,%sp@- <== NOT EXECUTED
484e0: 4eb9 0004 8c60 jsr 48c60 <_User_extensions_Thread_restart> <== NOT EXECUTED
if ( _Thread_Is_executing ( the_thread ) )
484e6: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
484ea: b5f9 0005 e9e4 cmpal 5e9e4 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
484f0: 662c bnes 4851e <_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 )
484f2: 4aaa 0102 tstl %a2@(258) <== NOT EXECUTED
484f6: 670c beqs 48504 <_Thread_Restart+0x60> <== NOT EXECUTED
_Context_Restore_fp( &_Thread_Executing->fp_context );
484f8: 486a 0102 pea %a2@(258) <== NOT EXECUTED
484fc: 4eb9 0004 915c jsr 4915c <_CPU_Context_restore_fp> <== NOT EXECUTED
48502: 588f addql #4,%sp <== NOT EXECUTED
#endif
_CPU_Context_Restart_self( &_Thread_Executing->Registers );
48504: 2079 0005 e9e4 moveal 5e9e4 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4850a: 41e8 00ce lea %a0@(206),%a0 <== NOT EXECUTED
4850e: 2f08 movel %a0,%sp@- <== NOT EXECUTED
48510: 4eb9 0004 900a jsr 4900a <_CPU_Context_Restart_self> <== NOT EXECUTED
48516: 588f addql #4,%sp <== NOT EXECUTED
48518: 6004 bras 4851e <_Thread_Restart+0x7a> <== NOT EXECUTED
_Thread_Restart_self();
return true;
}
return false;
4851a: 4200 clrb %d0 <== NOT EXECUTED
4851c: 6002 bras 48520 <_Thread_Restart+0x7c> <== NOT EXECUTED
_User_extensions_Thread_restart( the_thread );
if ( _Thread_Is_executing ( the_thread ) )
_Thread_Restart_self();
return true;
4851e: 7001 moveq #1,%d0 <== NOT EXECUTED
}
return false;
}
48520: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
48524: 4e5e unlk %fp <== NOT EXECUTED
0004ab14 <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
4ab14: 4e56 fff4 linkw %fp,#-12
4ab18: 206e 0008 moveal %fp@(8),%a0
4ab1c: 48d7 040c moveml %d2-%d3/%a2,%sp@
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
4ab20: 243c 0000 0700 movel #1792,%d2
4ab26: 2002 movel %d2,%d0
4ab28: 40c1 movew %sr,%d1
4ab2a: 8081 orl %d1,%d0
4ab2c: 46c0 movew %d0,%sr
current_state = the_thread->current_state;
4ab2e: 2028 0010 movel %a0@(16),%d0
if ( current_state & STATES_SUSPENDED ) {
4ab32: 0800 0001 btst #1,%d0
4ab36: 6778 beqs 4abb0 <_Thread_Resume+0x9c> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
4ab38: 76fd moveq #-3,%d3
4ab3a: c083 andl %d3,%d0
current_state =
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
4ab3c: 2140 0010 movel %d0,%a0@(16)
if ( _States_Is_ready( current_state ) ) {
4ab40: 666e bnes 4abb0 <_Thread_Resume+0x9c> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
4ab42: 2268 008e moveal %a0@(142),%a1
4ab46: 3028 0094 movew %a0@(148),%d0
4ab4a: 3611 movew %a1@,%d3
4ab4c: 8083 orl %d3,%d0
4ab4e: 3280 movew %d0,%a1@
_Priority_bit_map_Add( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
4ab50: 2268 008a moveal %a0@(138),%a1
_Priority_Major_bit_map |= the_priority_map->ready_major;
4ab54: 3039 0006 0f14 movew 60f14 <_Priority_Major_bit_map>,%d0
4ab5a: 3628 0092 movew %a0@(146),%d3
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
4ab5e: 2469 0008 moveal %a1@(8),%a2
4ab62: 8083 orl %d3,%d0
4ab64: 33c0 0006 0f14 movew %d0,60f14 <_Priority_Major_bit_map>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4ab6a: 2009 movel %a1,%d0
4ab6c: 5880 addql #4,%d0
4ab6e: 2080 movel %d0,%a0@
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
4ab70: 2348 0008 movel %a0,%a1@(8)
old_last_node->next = the_node;
4ab74: 2488 movel %a0,%a2@
the_node->previous = old_last_node;
4ab76: 214a 0004 movel %a2,%a0@(4)
_ISR_Flash( level );
4ab7a: 2002 movel %d2,%d0
4ab7c: 46c1 movew %d1,%sr
4ab7e: 8081 orl %d1,%d0
4ab80: 46c0 movew %d0,%sr
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
4ab82: 2028 0014 movel %a0@(20),%d0
4ab86: 2279 0006 1308 moveal 61308 <_Per_CPU_Information+0x10>,%a1
4ab8c: b0a9 0014 cmpl %a1@(20),%d0
4ab90: 641e bccs 4abb0 <_Thread_Resume+0x9c>
_Thread_Heir = the_thread;
4ab92: 23c8 0006 1308 movel %a0,61308 <_Per_CPU_Information+0x10>
if ( _Thread_Executing->is_preemptible ||
4ab98: 2079 0006 1304 moveal 61304 <_Per_CPU_Information+0xc>,%a0
4ab9e: 4a28 0074 tstb %a0@(116)
4aba2: 6604 bnes 4aba8 <_Thread_Resume+0x94> <== ALWAYS TAKEN
4aba4: 4a80 tstl %d0 <== NOT EXECUTED
4aba6: 6608 bnes 4abb0 <_Thread_Resume+0x9c> <== NOT EXECUTED
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
4aba8: 7601 moveq #1,%d3
4abaa: 13c3 0006 1310 moveb %d3,61310 <_Per_CPU_Information+0x18>
}
}
}
_ISR_Enable( level );
4abb0: 46c1 movew %d1,%sr
}
4abb2: 4cd7 040c moveml %sp@,%d2-%d3/%a2
4abb6: 4e5e unlk %fp
...
00047d5c <_Thread_Set_state>:
{
ISR_Level level;
Chain_Control *ready;
ready = the_thread->ready;
_ISR_Disable( level );
47d5c: 223c 0000 0700 movel #1792,%d1
void _Thread_Set_state(
Thread_Control *the_thread,
States_Control state
)
{
47d62: 4e56 fff4 linkw %fp,#-12
47d66: 206e 0008 moveal %fp@(8),%a0
47d6a: 48d7 040c moveml %d2-%d3/%a2,%sp@
47d6e: 242e 000c movel %fp@(12),%d2
ISR_Level level;
Chain_Control *ready;
ready = the_thread->ready;
47d72: 2268 008a moveal %a0@(138),%a1
_ISR_Disable( level );
47d76: 40c0 movew %sr,%d0
47d78: 8280 orl %d0,%d1
47d7a: 46c1 movew %d1,%sr
if ( !_States_Is_ready( the_thread->current_state ) ) {
47d7c: 2228 0010 movel %a0@(16),%d1
47d80: 670c beqs 47d8e <_Thread_Set_state+0x32> <== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Set (
States_Control states_to_set,
States_Control current_state
)
{
return (current_state | states_to_set);
47d82: 8481 orl %d1,%d2 <== NOT EXECUTED
47d84: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED
the_thread->current_state =
_States_Set( state, the_thread->current_state );
_ISR_Enable( level );
47d88: 46c0 movew %d0,%sr <== NOT EXECUTED
return;
47d8a: 6000 00ae braw 47e3a <_Thread_Set_state+0xde> <== NOT EXECUTED
}
the_thread->current_state = state;
if ( _Chain_Has_only_one_node( ready ) ) {
47d8e: 2229 0008 movel %a1@(8),%d1
_States_Set( state, the_thread->current_state );
_ISR_Enable( level );
return;
}
the_thread->current_state = state;
47d92: 2142 0010 movel %d2,%a0@(16)
if ( _Chain_Has_only_one_node( ready ) ) {
47d96: b291 cmpl %a1@,%d1
47d98: 6632 bnes 47dcc <_Thread_Set_state+0x70>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
47d9a: 2209 movel %a1,%d1
47d9c: 5881 addql #4,%d1
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
47d9e: 42a9 0004 clrl %a1@(4)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
47da2: 2281 movel %d1,%a1@
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
47da4: 3228 0098 movew %a0@(152),%d1
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
47da8: 2349 0008 movel %a1,%a1@(8)
47dac: 2268 008e moveal %a0@(142),%a1
47db0: 3411 movew %a1@,%d2
47db2: c282 andl %d2,%d1
47db4: 3281 movew %d1,%a1@
if ( *the_priority_map->minor == 0 )
47db6: 6620 bnes 47dd8 <_Thread_Set_state+0x7c>
_Priority_Major_bit_map &= the_priority_map->block_major;
47db8: 3239 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d1
47dbe: 3428 0096 movew %a0@(150),%d2
47dc2: c282 andl %d2,%d1
47dc4: 33c1 0005 dacc movew %d1,5dacc <_Priority_Major_bit_map>
47dca: 600c bras 47dd8 <_Thread_Set_state+0x7c>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
47dcc: 2450 moveal %a0@,%a2
previous = the_node->previous;
47dce: 2268 0004 moveal %a0@(4),%a1
next->previous = previous;
47dd2: 2549 0004 movel %a1,%a2@(4)
previous->next = next;
47dd6: 228a movel %a2,%a1@
_Priority_bit_map_Remove( &the_thread->Priority_map );
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
_ISR_Flash( level );
47dd8: 223c 0000 0700 movel #1792,%d1
47dde: 46c0 movew %d0,%sr
47de0: 8280 orl %d0,%d1
47de2: 46c1 movew %d1,%sr
if ( _Thread_Is_heir( the_thread ) )
47de4: b1f9 0005 dec0 cmpal 5dec0 <_Per_CPU_Information+0x10>,%a0
47dea: 663c bnes 47e28 <_Thread_Set_state+0xcc>
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 );
47dec: 3239 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d1
47df2: 4841 swap %d1
47df4: 04c1 ff1 %d1
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
47df6: 4282 clrl %d2
47df8: 43f9 0005 db34 lea 5db34 <_Priority_Bit_map>,%a1
47dfe: 3401 movew %d1,%d2
47e00: 3231 2a00 movew %a1@(00000000,%d2:l:2),%d1
47e04: 4841 swap %d1
47e06: 04c1 ff1 %d1
return (_Priority_Bits_index( major ) << 4) +
47e08: 4283 clrl %d3
47e0a: e98a lsll #4,%d2
47e0c: 3601 movew %d1,%d3
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first;
47e0e: 2279 0005 d9e0 moveal 5d9e0 <_Thread_Ready_chain>,%a1
47e14: 2202 movel %d2,%d1
47e16: d283 addl %d3,%d1
47e18: 2401 movel %d1,%d2
47e1a: e58a lsll #2,%d2
47e1c: e989 lsll #4,%d1
47e1e: 93c2 subal %d2,%a1
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
47e20: d3c1 addal %d1,%a1
47e22: 23d1 0005 dec0 movel %a1@,5dec0 <_Per_CPU_Information+0x10>
_Thread_Calculate_heir();
if ( _Thread_Is_executing( the_thread ) )
47e28: b1f9 0005 debc cmpal 5debc <_Per_CPU_Information+0xc>,%a0
47e2e: 6608 bnes 47e38 <_Thread_Set_state+0xdc> <== NEVER TAKEN
_Thread_Dispatch_necessary = true;
47e30: 7201 moveq #1,%d1
47e32: 13c1 0005 dec8 moveb %d1,5dec8 <_Per_CPU_Information+0x18>
_ISR_Enable( level );
47e38: 46c0 movew %d0,%sr
}
47e3a: 4cd7 040c moveml %sp@,%d2-%d3/%a2
47e3e: 4e5e unlk %fp
...
00047e44 <_Thread_Set_transient>:
ISR_Level level;
uint32_t old_state;
Chain_Control *ready;
ready = the_thread->ready;
_ISR_Disable( level );
47e44: 203c 0000 0700 movel #1792,%d0
*/
void _Thread_Set_transient(
Thread_Control *the_thread
)
{
47e4a: 4e56 0000 linkw %fp,#0
47e4e: 206e 0008 moveal %fp@(8),%a0
47e52: 2f02 movel %d2,%sp@-
ISR_Level level;
uint32_t old_state;
Chain_Control *ready;
ready = the_thread->ready;
47e54: 2268 008a moveal %a0@(138),%a1
_ISR_Disable( level );
47e58: 40c1 movew %sr,%d1
47e5a: 8081 orl %d1,%d0
47e5c: 46c0 movew %d0,%sr
old_state = the_thread->current_state;
47e5e: 2028 0010 movel %a0@(16),%d0
47e62: 7404 moveq #4,%d2
47e64: 8480 orl %d0,%d2
47e66: 2142 0010 movel %d2,%a0@(16)
the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state );
if ( _States_Is_ready( old_state ) ) {
47e6a: 4a80 tstl %d0
47e6c: 6646 bnes 47eb4 <_Thread_Set_transient+0x70>
if ( _Chain_Has_only_one_node( ready ) ) {
47e6e: 2029 0008 movel %a1@(8),%d0
47e72: b091 cmpl %a1@,%d0
47e74: 6632 bnes 47ea8 <_Thread_Set_transient+0x64> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
47e76: 2409 movel %a1,%d2
47e78: 5882 addql #4,%d2
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
47e7a: 42a9 0004 clrl %a1@(4)
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
47e7e: 3028 0098 movew %a0@(152),%d0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
47e82: 2282 movel %d2,%a1@
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
47e84: 2349 0008 movel %a1,%a1@(8)
47e88: 2268 008e moveal %a0@(142),%a1
47e8c: 3411 movew %a1@,%d2
47e8e: c082 andl %d2,%d0
47e90: 3280 movew %d0,%a1@
if ( *the_priority_map->minor == 0 )
47e92: 6620 bnes 47eb4 <_Thread_Set_transient+0x70>
_Priority_Major_bit_map &= the_priority_map->block_major;
47e94: 3039 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d0
47e9a: 3428 0096 movew %a0@(150),%d2
47e9e: c082 andl %d2,%d0
47ea0: 33c0 0005 dacc movew %d0,5dacc <_Priority_Major_bit_map>
47ea6: 600c bras 47eb4 <_Thread_Set_transient+0x70>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
47ea8: 2250 moveal %a0@,%a1 <== NOT EXECUTED
previous = the_node->previous;
47eaa: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
next->previous = previous;
47eae: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
previous->next = next;
47eb2: 2089 movel %a1,%a0@ <== NOT EXECUTED
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
}
_ISR_Enable( level );
47eb4: 46c1 movew %d1,%sr
}
47eb6: 241f movel %sp@+,%d2
47eb8: 4e5e unlk %fp <== NOT EXECUTED
00047f08 <_Thread_Stack_Free>:
*/
void _Thread_Stack_Free(
Thread_Control *the_thread
)
{
47f08: 4e56 0000 linkw %fp,#0
47f0c: 206e 0008 moveal %fp@(8),%a0
#if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
/*
* If the API provided the stack space, then don't free it.
*/
if ( !the_thread->Start.core_allocated_stack )
47f10: 4a28 00bc tstb %a0@(188)
47f14: 6722 beqs 47f38 <_Thread_Stack_Free+0x30> <== NEVER TAKEN
* 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 )
47f16: 2279 0005 c1a8 moveal 5c1a8 <Configuration+0x24>,%a1
47f1c: 4a89 tstl %a1
47f1e: 670a beqs 47f2a <_Thread_Stack_Free+0x22> <== ALWAYS TAKEN
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
47f20: 2d68 00c2 0008 movel %a0@(194),%fp@(8) <== NOT EXECUTED
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
}
47f26: 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 );
47f28: 4ed1 jmp %a1@ <== NOT EXECUTED
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
47f2a: 2d68 00c2 0008 movel %a0@(194),%fp@(8)
}
47f30: 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 );
47f32: 4ef9 0004 872c jmp 4872c <_Workspace_Free>
}
47f38: 4e5e unlk %fp <== NOT EXECUTED
00047f8c <_Thread_Start>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
47f8c: 7001 moveq #1,%d0
Thread_Start_types the_prototype,
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
47f8e: 4e56 0000 linkw %fp,#0
47f92: 2f0a movel %a2,%sp@-
47f94: 246e 0008 moveal %fp@(8),%a2
47f98: c0aa 0010 andl %a2@(16),%d0
if ( _States_Is_dormant( the_thread->current_state ) ) {
47f9c: 6738 beqs 47fd6 <_Thread_Start+0x4a> <== NEVER TAKEN
the_thread->Start.entry_point = (Thread_Entry) entry_point;
47f9e: 256e 0010 009a movel %fp@(16),%a2@(154)
the_thread->Start.prototype = the_prototype;
47fa4: 256e 000c 009e movel %fp@(12),%a2@(158)
the_thread->Start.pointer_argument = pointer_argument;
47faa: 256e 0014 00a2 movel %fp@(20),%a2@(162)
the_thread->Start.numeric_argument = numeric_argument;
47fb0: 256e 0018 00a6 movel %fp@(24),%a2@(166)
_Thread_Load_environment( the_thread );
47fb6: 2f0a movel %a2,%sp@-
47fb8: 4eb9 0004 adf4 jsr 4adf4 <_Thread_Load_environment>
_Thread_Ready( the_thread );
47fbe: 2f0a movel %a2,%sp@-
47fc0: 4eb9 0004 b088 jsr 4b088 <_Thread_Ready>
_User_extensions_Thread_start( the_thread );
47fc6: 2f0a movel %a2,%sp@-
47fc8: 4eb9 0004 8424 jsr 48424 <_User_extensions_Thread_start>
return true;
47fce: 4fef 000c lea %sp@(12),%sp
47fd2: 7001 moveq #1,%d0
47fd4: 6002 bras 47fd8 <_Thread_Start+0x4c>
}
return false;
47fd6: 4200 clrb %d0 <== NOT EXECUTED
}
47fd8: 246e fffc moveal %fp@(-4),%a2
47fdc: 4e5e unlk %fp <== NOT EXECUTED
00047fe0 <_Thread_Suspend>:
{
ISR_Level level;
Chain_Control *ready;
ready = the_thread->ready;
_ISR_Disable( level );
47fe0: 223c 0000 0700 movel #1792,%d1
*/
void _Thread_Suspend(
Thread_Control *the_thread
)
{
47fe6: 4e56 fff4 linkw %fp,#-12
47fea: 206e 0008 moveal %fp@(8),%a0
47fee: 48d7 040c moveml %d2-%d3/%a2,%sp@
ISR_Level level;
Chain_Control *ready;
ready = the_thread->ready;
47ff2: 2268 008a moveal %a0@(138),%a1
_ISR_Disable( level );
47ff6: 40c0 movew %sr,%d0
47ff8: 8280 orl %d0,%d1
47ffa: 46c1 movew %d1,%sr
if ( !_States_Is_ready( the_thread->current_state ) ) {
47ffc: 2228 0010 movel %a0@(16),%d1
48000: 670e beqs 48010 <_Thread_Suspend+0x30> <== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Set (
States_Control states_to_set,
States_Control current_state
)
{
return (current_state | states_to_set);
48002: 7402 moveq #2,%d2 <== NOT EXECUTED
48004: 8481 orl %d1,%d2 <== NOT EXECUTED
48006: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED
the_thread->current_state =
_States_Set( STATES_SUSPENDED, the_thread->current_state );
_ISR_Enable( level );
4800a: 46c0 movew %d0,%sr <== NOT EXECUTED
return;
4800c: 6000 00b0 braw 480be <_Thread_Suspend+0xde> <== NOT EXECUTED
}
the_thread->current_state = STATES_SUSPENDED;
48010: 7202 moveq #2,%d1
if ( _Chain_Has_only_one_node( ready ) ) {
48012: 2429 0008 movel %a1@(8),%d2
_States_Set( STATES_SUSPENDED, the_thread->current_state );
_ISR_Enable( level );
return;
}
the_thread->current_state = STATES_SUSPENDED;
48016: 2141 0010 movel %d1,%a0@(16)
if ( _Chain_Has_only_one_node( ready ) ) {
4801a: b491 cmpl %a1@,%d2
4801c: 6632 bnes 48050 <_Thread_Suspend+0x70> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4801e: 2209 movel %a1,%d1
48020: 5881 addql #4,%d1
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
48022: 42a9 0004 clrl %a1@(4)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
48026: 2281 movel %d1,%a1@
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
48028: 3228 0098 movew %a0@(152),%d1
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
4802c: 2349 0008 movel %a1,%a1@(8)
48030: 2268 008e moveal %a0@(142),%a1
48034: 3411 movew %a1@,%d2
48036: c282 andl %d2,%d1
48038: 3281 movew %d1,%a1@
if ( *the_priority_map->minor == 0 )
4803a: 6620 bnes 4805c <_Thread_Suspend+0x7c>
_Priority_Major_bit_map &= the_priority_map->block_major;
4803c: 3239 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d1
48042: 3428 0096 movew %a0@(150),%d2
48046: c282 andl %d2,%d1
48048: 33c1 0005 dacc movew %d1,5dacc <_Priority_Major_bit_map>
4804e: 600c bras 4805c <_Thread_Suspend+0x7c>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
48050: 2450 moveal %a0@,%a2 <== NOT EXECUTED
previous = the_node->previous;
48052: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
next->previous = previous;
48056: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED
previous->next = next;
4805a: 228a movel %a2,%a1@ <== NOT EXECUTED
_Priority_bit_map_Remove( &the_thread->Priority_map );
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
_ISR_Flash( level );
4805c: 223c 0000 0700 movel #1792,%d1
48062: 46c0 movew %d0,%sr
48064: 8280 orl %d0,%d1
48066: 46c1 movew %d1,%sr
if ( _Thread_Is_heir( the_thread ) )
48068: b1f9 0005 dec0 cmpal 5dec0 <_Per_CPU_Information+0x10>,%a0
4806e: 663c bnes 480ac <_Thread_Suspend+0xcc>
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 );
48070: 3239 0005 dacc movew 5dacc <_Priority_Major_bit_map>,%d1
48076: 4841 swap %d1
48078: 04c1 ff1 %d1
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
4807a: 4282 clrl %d2
4807c: 43f9 0005 db34 lea 5db34 <_Priority_Bit_map>,%a1
48082: 3401 movew %d1,%d2
48084: 3231 2a00 movew %a1@(00000000,%d2:l:2),%d1
48088: 4841 swap %d1
4808a: 04c1 ff1 %d1
return (_Priority_Bits_index( major ) << 4) +
4808c: 4283 clrl %d3
4808e: e98a lsll #4,%d2
48090: 3601 movew %d1,%d3
_Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first;
48092: 2279 0005 d9e0 moveal 5d9e0 <_Thread_Ready_chain>,%a1
48098: 2202 movel %d2,%d1
4809a: d283 addl %d3,%d1
4809c: 2401 movel %d1,%d2
4809e: e58a lsll #2,%d2
480a0: e989 lsll #4,%d1
480a2: 93c2 subal %d2,%a1
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
480a4: d3c1 addal %d1,%a1
480a6: 23d1 0005 dec0 movel %a1@,5dec0 <_Per_CPU_Information+0x10>
_Thread_Calculate_heir();
if ( _Thread_Is_executing( the_thread ) )
480ac: b1f9 0005 debc cmpal 5debc <_Per_CPU_Information+0xc>,%a0
480b2: 6608 bnes 480bc <_Thread_Suspend+0xdc>
_Thread_Dispatch_necessary = true;
480b4: 7401 moveq #1,%d2
480b6: 13c2 0005 dec8 moveb %d2,5dec8 <_Per_CPU_Information+0x18>
_ISR_Enable( level );
480bc: 46c0 movew %d0,%sr
}
480be: 4cd7 040c moveml %sp@,%d2-%d3/%a2
480c2: 4e5e unlk %fp
...
000480c8 <_Thread_Tickle_timeslice>:
*
* Output parameters: NONE
*/
void _Thread_Tickle_timeslice( void )
{
480c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
480cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Thread_Control *executing;
executing = _Thread_Executing;
480ce: 2479 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
/*
* If the thread is not preemptible or is not ready, then
* just return.
*/
if ( !executing->is_preemptible )
480d4: 4a2a 0074 tstb %a2@(116) <== NOT EXECUTED
480d8: 6756 beqs 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
return;
if ( !_States_Is_ready( executing->current_state ) )
480da: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED
480de: 6650 bnes 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
/*
* The cpu budget algorithm determines what happens next.
*/
switch ( executing->budget_algorithm ) {
480e0: 202a 007a movel %a2@(122),%d0 <== NOT EXECUTED
480e4: 7201 moveq #1,%d1 <== NOT EXECUTED
480e6: b280 cmpl %d0,%d1 <== NOT EXECUTED
480e8: 6246 bhis 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
480ea: 123c 0002 moveb #2,%d1 <== NOT EXECUTED
480ee: b280 cmpl %d0,%d1 <== NOT EXECUTED
480f0: 640a bccs 480fc <_Thread_Tickle_timeslice+0x34> <== NOT EXECUTED
480f2: 123c 0003 moveb #3,%d1 <== NOT EXECUTED
480f6: b280 cmpl %d0,%d1 <== NOT EXECUTED
480f8: 6636 bnes 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
480fa: 601e bras 4811a <_Thread_Tickle_timeslice+0x52> <== 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 ) {
480fc: 202a 0076 movel %a2@(118),%d0 <== NOT EXECUTED
48100: 5380 subql #1,%d0 <== NOT EXECUTED
48102: 2540 0076 movel %d0,%a2@(118) <== NOT EXECUTED
48106: 6e28 bgts 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
* at the priority of the currently executing thread, then the
* 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.
*/
_Thread_Yield_processor();
48108: 4eb9 0004 8138 jsr 48138 <_Thread_Yield_processor> <== NOT EXECUTED
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
4810e: 41f9 0005 d9e4 lea 5d9e4 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
48114: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED
48118: 6016 bras 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
}
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
if ( --executing->cpu_time_budget == 0 )
4811a: 202a 0076 movel %a2@(118),%d0 <== NOT EXECUTED
4811e: 5380 subql #1,%d0 <== NOT EXECUTED
48120: 2540 0076 movel %d0,%a2@(118) <== NOT EXECUTED
48124: 660a bnes 48130 <_Thread_Tickle_timeslice+0x68> <== NOT EXECUTED
(*executing->budget_callout)( executing );
48126: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48128: 206a 007e moveal %a2@(126),%a0 <== NOT EXECUTED
4812c: 4e90 jsr %a0@ <== NOT EXECUTED
4812e: 588f addql #4,%sp <== NOT EXECUTED
break;
#endif
}
}
48130: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
48134: 4e5e unlk %fp <== NOT EXECUTED
00048138 <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
48138: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
4813c: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
48142: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ready = executing->ready;
_ISR_Disable( level );
48146: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED
4814c: 2002 movel %d2,%d0 <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ready = executing->ready;
4814e: 2268 008a moveal %a0@(138),%a1 <== NOT EXECUTED
_ISR_Disable( level );
48152: 40c1 movew %sr,%d1 <== NOT EXECUTED
48154: 8081 orl %d1,%d0 <== NOT EXECUTED
48156: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node(
const Chain_Control *the_chain
)
{
return (the_chain->first == the_chain->last);
48158: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED
if ( !_Chain_Has_only_one_node( ready ) ) {
4815c: b5d1 cmpal %a1@,%a2 <== NOT EXECUTED
4815e: 6734 beqs 48194 <_Thread_Yield_processor+0x5c> <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
48160: 2850 moveal %a0@,%a4 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
48162: 2009 movel %a1,%d0 <== NOT EXECUTED
48164: 5880 addql #4,%d0 <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
48166: 2668 0004 moveal %a0@(4),%a3 <== NOT EXECUTED
next->previous = previous;
previous->next = next;
4816a: 268c movel %a4,%a3@ <== NOT EXECUTED
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
4816c: 294b 0004 movel %a3,%a4@(4) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
48170: 2080 movel %d0,%a0@ <== NOT EXECUTED
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
48172: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED
old_last_node->next = the_node;
48176: 2488 movel %a0,%a2@ <== NOT EXECUTED
the_node->previous = old_last_node;
48178: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
4817c: 2002 movel %d2,%d0 <== NOT EXECUTED
4817e: 46c1 movew %d1,%sr <== NOT EXECUTED
48180: 8081 orl %d1,%d0 <== NOT EXECUTED
48182: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( _Thread_Is_heir( executing ) )
48184: b1f9 0005 dec0 cmpal 5dec0 <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED
4818a: 6610 bnes 4819c <_Thread_Yield_processor+0x64> <== NOT EXECUTED
_Thread_Heir = (Thread_Control *) ready->first;
4818c: 23d1 0005 dec0 movel %a1@,5dec0 <_Per_CPU_Information+0x10><== NOT EXECUTED
48192: 6008 bras 4819c <_Thread_Yield_processor+0x64> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
48194: b1f9 0005 dec0 cmpal 5dec0 <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED
4819a: 6708 beqs 481a4 <_Thread_Yield_processor+0x6c> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
4819c: 7001 moveq #1,%d0 <== NOT EXECUTED
4819e: 13c0 0005 dec8 moveb %d0,5dec8 <_Per_CPU_Information+0x18> <== NOT EXECUTED
_ISR_Enable( level );
481a4: 46c1 movew %d1,%sr <== NOT EXECUTED
}
481a6: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED
481aa: 4e5e unlk %fp <== NOT EXECUTED
...
00046fec <_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 ) ) {
46fec: 7202 moveq #2,%d1 <== NOT EXECUTED
Thread_blocking_operation_States sync_state __attribute__((unused)),
#endif
Thread_Control *the_thread,
ISR_Level level
)
{
46fee: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46ff2: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED
46ff6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46ff8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
#endif
/*
* The thread is not waiting on anything after this completes.
*/
the_thread->Wait.queue = NULL;
46ffc: 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 ) ) {
47000: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
47004: 6618 bnes 4701e <_Thread_blocking_operation_Cancel+0x32><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
47006: 123c 0003 moveb #3,%d1 <== NOT EXECUTED
4700a: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4700e: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
47010: 486a 0048 pea %a2@(72) <== NOT EXECUTED
47014: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
4701a: 588f addql #4,%sp <== NOT EXECUTED
4701c: 6002 bras 47020 <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED
} else
_ISR_Enable( level );
4701e: 46c0 movew %d0,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
47020: 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
}
47024: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
47028: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED
4702e: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
47032: 4e5e unlk %fp <== NOT EXECUTED
47034: 4ef9 0004 717c jmp 4717c <_Thread_Clear_state> <== NOT EXECUTED
...
00047868 <_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;
47868: 41f9 0004 ae70 lea 4ae70 <_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 )
4786e: 7001 moveq #1,%d0
*/
Thread_Control *_Thread_queue_Dequeue(
Thread_queue_Control *the_thread_queue
)
{
47870: 4e56 fff4 linkw %fp,#-12
47874: 48d7 040c moveml %d2-%d3/%a2,%sp@
47878: 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 )
4787c: b0aa 0034 cmpl %a2@(52),%d0
47880: 6606 bnes 47888 <_Thread_queue_Dequeue+0x20>
dequeue_p = _Thread_queue_Dequeue_priority;
47882: 41f9 0004 78c4 lea 478c4 <_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 );
47888: 2f0a movel %a2,%sp@-
4788a: 4e90 jsr %a0@
_ISR_Disable( level );
4788c: 223c 0000 0700 movel #1792,%d1
47892: 40c2 movew %sr,%d2
47894: 8282 orl %d2,%d1
47896: 46c1 movew %d1,%sr
if ( !the_thread ) {
47898: 588f addql #4,%sp
4789a: 4a80 tstl %d0
4789c: 661a bnes 478b8 <_Thread_queue_Dequeue+0x50>
sync_state = the_thread_queue->sync_state;
if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
4789e: 222a 0030 movel %a2@(48),%d1
478a2: 7601 moveq #1,%d3
478a4: 5381 subql #1,%d1
478a6: b681 cmpl %d1,%d3
478a8: 650e bcss 478b8 <_Thread_queue_Dequeue+0x50> <== ALWAYS TAKEN
(sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) {
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
478aa: 103c 0003 moveb #3,%d0 <== NOT EXECUTED
478ae: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED
the_thread = _Thread_Executing;
478b2: 2039 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
}
}
_ISR_Enable( level );
478b8: 46c2 movew %d2,%sr
return the_thread;
}
478ba: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2
478c0: 4e5e unlk %fp <== NOT EXECUTED
0004ae70 <_Thread_queue_Dequeue_fifo>:
)
{
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
4ae70: 223c 0000 0700 movel #1792,%d1
*/
Thread_Control *_Thread_queue_Dequeue_fifo(
Thread_queue_Control *the_thread_queue
)
{
4ae76: 4e56 fff4 linkw %fp,#-12
4ae7a: 206e 0008 moveal %fp@(8),%a0
4ae7e: 48d7 1c00 moveml %a2-%a4,%sp@
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
4ae82: 40c0 movew %sr,%d0
4ae84: 8280 orl %d0,%d1
4ae86: 46c1 movew %d1,%sr
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4ae88: 2248 moveal %a0,%a1
4ae8a: 2459 moveal %a1@+,%a2
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) {
4ae8c: b3ca cmpal %a2,%a1
4ae8e: 674e beqs 4aede <_Thread_queue_Dequeue_fifo+0x6e><== ALWAYS TAKEN
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
4ae90: 2252 moveal %a2@,%a1 <== NOT EXECUTED
the_thread = (Thread_Control *)
4ae92: 264a moveal %a2,%a3 <== NOT EXECUTED
4ae94: 49f9 0004 717c lea 4717c <_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 ) ) {
4ae9a: 7202 moveq #2,%d1 <== NOT EXECUTED
the_chain->first = new_first;
4ae9c: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first->previous = _Chain_Head(the_chain);
4ae9e: 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;
4aea2: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4aea6: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
4aeaa: 6710 beqs 4aebc <_Thread_queue_Dequeue_fifo+0x4c><== NOT EXECUTED
_ISR_Enable( level );
4aeac: 46c0 movew %d0,%sr <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
4aeae: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
4aeb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4aeb6: 4e94 jsr %a4@ <== NOT EXECUTED
4aeb8: 508f addql #8,%sp <== NOT EXECUTED
4aeba: 6026 bras 4aee2 <_Thread_queue_Dequeue_fifo+0x72><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
4aebc: 7203 moveq #3,%d1 <== NOT EXECUTED
4aebe: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4aec2: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4aec4: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4aec8: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
4aece: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
4aed4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4aed6: 4e94 jsr %a4@ <== NOT EXECUTED
4aed8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4aedc: 6004 bras 4aee2 <_Thread_queue_Dequeue_fifo+0x72><== NOT EXECUTED
#endif
return the_thread;
}
_ISR_Enable( level );
4aede: 46c0 movew %d0,%sr
return NULL;
4aee0: 97cb subal %a3,%a3
}
4aee2: 200b movel %a3,%d0
4aee4: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4
4aeea: 4e5e unlk %fp
...
000478c4 <_Thread_queue_Dequeue_priority>:
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
478c4: 203c 0000 0700 movel #1792,%d0
*/
Thread_Control *_Thread_queue_Dequeue_priority(
Thread_queue_Control *the_thread_queue
)
{
478ca: 4e56 ffe8 linkw %fp,#-24
478ce: 226e 0008 moveal %fp@(8),%a1
478d2: 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 );
478d6: 40c1 movew %sr,%d1
478d8: 8081 orl %d1,%d0
478da: 46c0 movew %d0,%sr
for( index=0 ;
478dc: 4280 clrl %d0
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
478de: 2049 moveal %a1,%a0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
478e0: 2600 movel %d0,%d3
478e2: 2400 movel %d0,%d2
478e4: e58b lsll #2,%d3
478e6: e98a lsll #4,%d2
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
478e8: 2450 moveal %a0@,%a2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
478ea: 9483 subl %d3,%d2
478ec: 47f1 2804 lea %a1@(00000004,%d2:l),%a3
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
478f0: b7ca cmpal %a2,%a3
478f2: 671e beqs 47912 <_Thread_queue_Dequeue_priority+0x4e>
478f4: 200a movel %a2,%d0
the_thread = (Thread_Control *)
478f6: 240a movel %a2,%d2
478f8: 0680 0000 003c addil #60,%d0
_ISR_Enable( level );
return NULL;
dequeue:
the_thread->Wait.queue = NULL;
new_first_node = the_thread->Wait.Block2n.first;
478fe: 206a 0038 moveal %a2@(56),%a0
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
47902: 2252 moveal %a2@,%a1
previous_node = the_thread->Object.Node.previous;
47904: 266a 0004 moveal %a2@(4),%a3
*/
_ISR_Enable( level );
return NULL;
dequeue:
the_thread->Wait.queue = NULL;
47908: 42aa 0044 clrl %a2@(68)
new_first_node = the_thread->Wait.Block2n.first;
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 ) ) {
4790c: b088 cmpl %a0,%d0
4790e: 6614 bnes 47924 <_Thread_queue_Dequeue_priority+0x60><== NEVER TAKEN
47910: 6040 bras 47952 <_Thread_queue_Dequeue_priority+0x8e>
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
47912: 5280 addql #1,%d0
47914: 41e8 000c lea %a0@(12),%a0
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
47918: 7404 moveq #4,%d2
4791a: b480 cmpl %d0,%d2
4791c: 66c2 bnes 478e0 <_Thread_queue_Dequeue_priority+0x1c>
}
/*
* We did not find a thread to unblock.
*/
_ISR_Enable( level );
4791e: 46c1 movew %d1,%sr
return NULL;
47920: 4202 clrb %d2
47922: 6072 bras 47996 <_Thread_queue_Dequeue_priority+0xd2>
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 ) ) {
last_node = the_thread->Wait.Block2n.last;
47924: 286a 0040 moveal %a2@(64),%a4 <== NOT EXECUTED
new_second_node = new_first_node->next;
47928: 2a50 moveal %a0@,%a5 <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
4792a: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
last_node = the_thread->Wait.Block2n.last;
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
4792e: 2688 movel %a0,%a3@ <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
47930: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED
last_node = the_thread->Wait.Block2n.last;
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;
47934: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
47936: b9c8 cmpal %a0,%a4 <== NOT EXECUTED
47938: 671e beqs 47958 <_Thread_queue_Dequeue_priority+0x94><== NOT EXECUTED
/* > two threads on 2-n */
new_second_node->previous =
_Chain_Head( &new_first_thread->Wait.Block2n );
4793a: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED
4793e: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED
new_first_thread->Wait.Block2n.first = new_second_node;
47942: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED
new_first_thread->Wait.Block2n.last = last_node;
47946: 214c 0040 movel %a4,%a0@(64) <== NOT EXECUTED
4794a: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED
4794e: 2888 movel %a0,%a4@ <== NOT EXECUTED
47950: 6006 bras 47958 <_Thread_queue_Dequeue_priority+0x94><== NOT EXECUTED
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
}
} else {
previous_node->next = next_node;
47952: 2689 movel %a1,%a3@
next_node->previous = previous_node;
47954: 234b 0004 movel %a3,%a1@(4)
47958: 47f9 0004 717c lea 4717c <_Thread_Clear_state>,%a3
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4795e: 7002 moveq #2,%d0
47960: b0aa 0050 cmpl %a2@(80),%d0
47964: 6710 beqs 47976 <_Thread_queue_Dequeue_priority+0xb2><== NEVER TAKEN
_ISR_Enable( level );
47966: 46c1 movew %d1,%sr
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
47968: 2f3c 1003 fff8 movel #268697592,%sp@-
4796e: 2f0a movel %a2,%sp@-
47970: 4e93 jsr %a3@
47972: 508f addql #8,%sp
47974: 6020 bras 47996 <_Thread_queue_Dequeue_priority+0xd2>
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
47976: 7003 moveq #3,%d0 <== NOT EXECUTED
47978: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4797c: 46c1 movew %d1,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4797e: 486a 0048 pea %a2@(72) <== NOT EXECUTED
47982: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
47988: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED
4798e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47990: 4e93 jsr %a3@ <== NOT EXECUTED
47992: 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 );
}
47996: 2002 movel %d2,%d0
47998: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5
4799e: 4e5e unlk %fp
...
0004aef0 <_Thread_queue_Enqueue_fifo>:
)
{
Thread_blocking_operation_States sync_state;
ISR_Level level;
_ISR_Disable( level );
4aef0: 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
)
{
4aef6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4aefa: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4aefe: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4af00: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
4af04: 2f02 movel %d2,%sp@- <== NOT EXECUTED
Thread_blocking_operation_States sync_state;
ISR_Level level;
_ISR_Disable( level );
4af06: 40c1 movew %sr,%d1 <== NOT EXECUTED
4af08: 8081 orl %d1,%d0 <== NOT EXECUTED
4af0a: 46c0 movew %d0,%sr <== NOT EXECUTED
sync_state = the_thread_queue->sync_state;
4af0c: 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) {
4af10: 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;
4af12: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
4af16: b480 cmpl %d0,%d2 <== NOT EXECUTED
4af18: 661c bnes 4af36 <_Thread_queue_Enqueue_fifo+0x46><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4af1a: 2408 movel %a0,%d2 <== NOT EXECUTED
4af1c: 5882 addql #4,%d2 <== NOT EXECUTED
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
4af1e: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4af22: 2282 movel %d2,%a1@ <== NOT EXECUTED
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
4af24: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED
old_last_node->next = the_node;
4af28: 2489 movel %a1,%a2@ <== NOT EXECUTED
the_node->previous = old_last_node;
4af2a: 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;
4af2e: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
_ISR_Enable( level );
4af32: 46c1 movew %d1,%sr <== NOT EXECUTED
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
4af34: 6006 bras 4af3c <_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;
4af36: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED
4af3a: 2081 movel %d1,%a0@ <== NOT EXECUTED
return sync_state;
}
4af3c: 241f movel %sp@+,%d2 <== NOT EXECUTED
4af3e: 245f moveal %sp@+,%a2 <== NOT EXECUTED
4af40: 4e5e unlk %fp <== NOT EXECUTED
00047a3c <_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
)
{
47a3c: 4e56 ffe0 linkw %fp,#-32
47a40: 206e 000c moveal %fp@(12),%a0
47a44: 43e8 003c lea %a0@(60),%a1
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
47a48: 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);
47a4c: 2200 movel %d0,%d1
47a4e: ec89 lsrl #6,%d1
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
47a50: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
47a54: 2401 movel %d1,%d2
47a56: e989 lsll #4,%d1
47a58: e58a lsll #2,%d2
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
47a5a: 246e 0008 moveal %fp@(8),%a2
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
47a5e: 9282 subl %d2,%d1
47a60: 47f2 1800 lea %a2@(00000000,%d1:l),%a3
47a64: 2149 0038 movel %a1,%a0@(56)
Chain_Node *previous_node;
Chain_Node *search_node;
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
47a68: 43e8 0038 lea %a0@(56),%a1
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
47a6c: 282a 0038 movel %a2@(56),%d4
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
47a70: 42a8 003c clrl %a0@(60)
Chain_Node *previous_node;
Chain_Node *search_node;
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
47a74: 2149 0040 movel %a1,%a0@(64)
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
47a78: 0800 0005 btst #5,%d0
47a7c: 666a bnes 47ae8 <_Thread_queue_Enqueue_priority+0xac>
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
47a7e: 367c 0700 moveaw #1792,%a3
search_thread = (Thread_Control *) header->first;
47a82: 2a01 movel %d1,%d5
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
47a84: 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 );
47a88: 240b movel %a3,%d2
47a8a: 40c1 movew %sr,%d1
47a8c: 8481 orl %d1,%d2
47a8e: 46c2 movew %d2,%sr
47a90: 2401 movel %d1,%d2
search_thread = (Thread_Control *) header->first;
47a92: 2272 5800 moveal %a2@(00000000,%d5:l),%a1
if ( _Thread_queue_Is_reverse_search( priority ) )
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
47a96: 76ff moveq #-1,%d3
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
47a98: 601e bras 47ab8 <_Thread_queue_Enqueue_priority+0x7c>
search_priority = search_thread->current_priority;
47a9a: 2629 0014 movel %a1@(20),%d3
if ( priority <= search_priority )
47a9e: b680 cmpl %d0,%d3
47aa0: 641a bccs 47abc <_Thread_queue_Enqueue_priority+0x80>
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
47aa2: 2c0b movel %a3,%d6
47aa4: 46c1 movew %d1,%sr
47aa6: 8c81 orl %d1,%d6
47aa8: 46c6 movew %d6,%sr
RTEMS_INLINE_ROUTINE bool _States_Are_set (
States_Control the_states,
States_Control mask
)
{
return ( (the_states & mask) != STATES_READY);
47aaa: 2c04 movel %d4,%d6
47aac: cca9 0010 andl %a1@(16),%d6
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
47ab0: 6604 bnes 47ab6 <_Thread_queue_Enqueue_priority+0x7a><== ALWAYS TAKEN
_ISR_Enable( level );
47ab2: 46c1 movew %d1,%sr <== NOT EXECUTED
goto restart_forward_search;
47ab4: 60d2 bras 47a88 <_Thread_queue_Enqueue_priority+0x4c><== NOT EXECUTED
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
47ab6: 2251 moveal %a1@,%a1
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
47ab8: b9c9 cmpal %a1,%a4
47aba: 66de bnes 47a9a <_Thread_queue_Enqueue_priority+0x5e>
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
47abc: 7801 moveq #1,%d4
47abe: b8aa 0030 cmpl %a2@(48),%d4
47ac2: 6600 00ae bnew 47b72 <_Thread_queue_Enqueue_priority+0x136>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
47ac6: 42aa 0030 clrl %a2@(48)
if ( priority == search_priority )
47aca: b680 cmpl %d0,%d3
47acc: 6700 0088 beqw 47b56 <_Thread_queue_Enqueue_priority+0x11a>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
47ad0: 2669 0004 moveal %a1@(4),%a3
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
47ad4: 2089 movel %a1,%a0@
the_node->previous = previous_node;
47ad6: 214b 0004 movel %a3,%a0@(4)
previous_node->next = the_node;
47ada: 2688 movel %a0,%a3@
search_node->previous = the_node;
47adc: 2348 0004 movel %a0,%a1@(4)
the_thread->Wait.queue = the_thread_queue;
47ae0: 214a 0044 movel %a2,%a0@(68)
_ISR_Enable( level );
47ae4: 46c1 movew %d1,%sr
47ae6: 606a bras 47b52 <_Thread_queue_Enqueue_priority+0x116>
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
47ae8: 2a3c 0000 0700 movel #1792,%d5
search_thread = (Thread_Control *) header->last;
47aee: 49eb 0008 lea %a3@(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;
47af2: 4283 clrl %d3
47af4: 1639 0005 c182 moveb 5c182 <rtems_maximum_priority>,%d3
_ISR_Disable( level );
47afa: 2405 movel %d5,%d2
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
47afc: 5283 addql #1,%d3
_ISR_Disable( level );
47afe: 40c1 movew %sr,%d1
47b00: 8481 orl %d1,%d2
47b02: 46c2 movew %d2,%sr
47b04: 2401 movel %d1,%d2
search_thread = (Thread_Control *) header->last;
47b06: 2254 moveal %a4@,%a1
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
47b08: 6020 bras 47b2a <_Thread_queue_Enqueue_priority+0xee>
search_priority = search_thread->current_priority;
47b0a: 2629 0014 movel %a1@(20),%d3
if ( priority >= search_priority )
47b0e: b680 cmpl %d0,%d3
47b10: 631c blss 47b2e <_Thread_queue_Enqueue_priority+0xf2><== ALWAYS TAKEN
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
47b12: 2c05 movel %d5,%d6 <== NOT EXECUTED
47b14: 46c1 movew %d1,%sr <== NOT EXECUTED
47b16: 8c81 orl %d1,%d6 <== NOT EXECUTED
47b18: 46c6 movew %d6,%sr <== NOT EXECUTED
47b1a: 2c04 movel %d4,%d6 <== NOT EXECUTED
47b1c: cca9 0010 andl %a1@(16),%d6 <== NOT EXECUTED
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
47b20: 6604 bnes 47b26 <_Thread_queue_Enqueue_priority+0xea><== NOT EXECUTED
_ISR_Enable( level );
47b22: 46c1 movew %d1,%sr <== NOT EXECUTED
goto restart_reverse_search;
47b24: 60cc bras 47af2 <_Thread_queue_Enqueue_priority+0xb6><== NOT EXECUTED
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
47b26: 2269 0004 moveal %a1@(4),%a1 <== NOT EXECUTED
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
47b2a: b7c9 cmpal %a1,%a3
47b2c: 66dc bnes 47b0a <_Thread_queue_Enqueue_priority+0xce>
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
47b2e: 7801 moveq #1,%d4
47b30: b8aa 0030 cmpl %a2@(48),%d4
47b34: 663c bnes 47b72 <_Thread_queue_Enqueue_priority+0x136><== NEVER TAKEN
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
47b36: 42aa 0030 clrl %a2@(48)
if ( priority == search_priority )
47b3a: b680 cmpl %d0,%d3
47b3c: 6718 beqs 47b56 <_Thread_queue_Enqueue_priority+0x11a><== NEVER TAKEN
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
47b3e: 2651 moveal %a1@,%a3
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
47b40: 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;
47b44: 208b movel %a3,%a0@
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
47b46: 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;
47b4a: 2288 movel %a0,%a1@
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
47b4c: 214a 0044 movel %a2,%a0@(68)
_ISR_Enable( level );
47b50: 46c1 movew %d1,%sr
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
47b52: 7001 moveq #1,%d0
47b54: 6026 bras 47b7c <_Thread_queue_Enqueue_priority+0x140>
47b56: 43e9 003c lea %a1@(60),%a1 <== NOT EXECUTED
equal_priority: /* add at end of priority group */
search_node = _Chain_Tail( &search_thread->Wait.Block2n );
previous_node = search_node->previous;
47b5a: 2669 0004 moveal %a1@(4),%a3 <== NOT EXECUTED
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
47b5e: 2089 movel %a1,%a0@ <== NOT EXECUTED
the_node->previous = previous_node;
47b60: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED
previous_node->next = the_node;
47b64: 2688 movel %a0,%a3@ <== NOT EXECUTED
search_node->previous = the_node;
47b66: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
47b6a: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED
_ISR_Enable( level );
47b6e: 46c2 movew %d2,%sr <== NOT EXECUTED
47b70: 60e0 bras 47b52 <_Thread_queue_Enqueue_priority+0x116><== 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;
47b72: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED
return the_thread_queue->sync_state;
47b76: 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;
47b7a: 2082 movel %d2,%a0@ <== NOT EXECUTED
return the_thread_queue->sync_state;
}
47b7c: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4
47b80: 4e5e unlk %fp <== NOT EXECUTED
000479a4 <_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
)
{
479a4: 4e56 fff0 linkw %fp,#-16
479a8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
479ac: 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 );
479b0: 2f2b 0038 movel %a3@(56),%sp@-
Thread_queue_Control *,
Thread_Control *,
ISR_Level *
);
the_thread = _Thread_Executing;
479b4: 2479 0005 debc moveal 5debc <_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
)
{
479ba: 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 );
479be: 2f0a movel %a2,%sp@-
479c0: 4eb9 0004 7d5c jsr 47d5c <_Thread_Set_state>
/*
* If the thread wants to timeout, then schedule its timer.
*/
if ( timeout ) {
479c6: 508f addql #8,%sp
479c8: 4a82 tstl %d2
479ca: 672c beqs 479f8 <_Thread_queue_Enqueue_with_handler+0x54><== ALWAYS TAKEN
_Watchdog_Initialize(
479cc: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
479d0: 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;
479d6: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
479da: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED
the_watchdog->user_data = user_data;
479de: 42aa 006c clrl %a2@(108) <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
479e2: 2542 0054 movel %d2,%a2@(84) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
479e6: 486a 0048 pea %a2@(72) <== NOT EXECUTED
479ea: 4879 0005 daee pea 5daee <_Watchdog_Ticks_chain> <== NOT EXECUTED
479f0: 4eb9 0004 849c jsr 4849c <_Watchdog_Insert> <== NOT EXECUTED
479f6: 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;
479f8: 41f9 0004 aef0 lea 4aef0 <_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 )
479fe: 7001 moveq #1,%d0
47a00: b0ab 0034 cmpl %a3@(52),%d0
47a04: 6606 bnes 47a0c <_Thread_queue_Enqueue_with_handler+0x68><== NEVER TAKEN
enqueue_p = _Thread_queue_Enqueue_priority;
47a06: 41f9 0004 7a3c lea 47a3c <_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 );
47a0c: 486e fffc pea %fp@(-4)
47a10: 2f0a movel %a2,%sp@-
47a12: 2f0b movel %a3,%sp@-
47a14: 4e90 jsr %a0@
if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
47a16: 4fef 000c lea %sp@(12),%sp
47a1a: 7201 moveq #1,%d1
47a1c: b280 cmpl %d0,%d1
47a1e: 6712 beqs 47a32 <_Thread_queue_Enqueue_with_handler+0x8e><== ALWAYS TAKEN
_Thread_blocking_operation_Cancel( sync_state, the_thread, level );
47a20: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
47a24: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47a26: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47a28: 4eb9 0004 6fec jsr 46fec <_Thread_blocking_operation_Cancel><== NOT EXECUTED
47a2e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
47a32: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3
47a38: 4e5e unlk %fp <== NOT EXECUTED
0004af44 <_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 )
4af44: 7201 moveq #1,%d1 <== NOT EXECUTED
void _Thread_queue_Extract(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
4af46: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4af4a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4af4e: 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 )
4af52: b2a8 0034 cmpl %a0@(52),%d1 <== NOT EXECUTED
4af56: 6614 bnes 4af6c <_Thread_queue_Extract+0x28> <== NOT EXECUTED
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
4af58: 42a7 clrl %sp@- <== NOT EXECUTED
4af5a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4af5c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4af5e: 4eb9 0004 af7c jsr 4af7c <_Thread_queue_Extract_priority_helper><== NOT EXECUTED
4af64: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
}
4af68: 4e5e unlk %fp <== NOT EXECUTED
4af6a: 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 );
4af6c: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
4af70: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
4af74: 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 );
4af76: 4ef9 0004 c74c jmp 4c74c <_Thread_queue_Extract_fifo> <== NOT EXECUTED
0004c74c <_Thread_queue_Extract_fifo>:
Thread_Control *the_thread
)
{
ISR_Level level;
_ISR_Disable( level );
4c74c: 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
)
{
4c752: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4c756: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4c758: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
4c75c: 40c0 movew %sr,%d0 <== NOT EXECUTED
4c75e: 8280 orl %d0,%d1 <== NOT EXECUTED
4c760: 46c1 movew %d1,%sr <== NOT EXECUTED
4c762: 222a 0010 movel %a2@(16),%d1 <== NOT EXECUTED
4c766: 0281 0003 bee0 andil #245472,%d1 <== NOT EXECUTED
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
4c76c: 660a bnes 4c778 <_Thread_queue_Extract_fifo+0x2c><== NOT EXECUTED
_ISR_Enable( level );
4c76e: 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
}
4c770: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4c774: 4e5e unlk %fp <== NOT EXECUTED
4c776: 4e75 rts <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
4c778: 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 ) ) {
4c77a: 7202 moveq #2,%d1 <== NOT EXECUTED
previous = the_node->previous;
4c77c: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED
next->previous = previous;
4c780: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
previous->next = next;
4c784: 2089 movel %a1,%a0@ <== NOT EXECUTED
return;
}
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
4c786: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4c78a: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
4c78e: 6704 beqs 4c794 <_Thread_queue_Extract_fifo+0x48><== NOT EXECUTED
_ISR_Enable( level );
4c790: 46c0 movew %d0,%sr <== NOT EXECUTED
4c792: 6014 bras 4c7a8 <_Thread_queue_Extract_fifo+0x5c><== NOT EXECUTED
4c794: 7203 moveq #3,%d1 <== NOT EXECUTED
4c796: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4c79a: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4c79c: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4c7a0: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
4c7a6: 588f addql #4,%sp <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
4c7a8: 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
}
4c7ac: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4c7b0: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED
4c7b6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED
4c7ba: 4e5e unlk %fp <== NOT EXECUTED
4c7bc: 4ef9 0004 717c jmp 4717c <_Thread_Clear_state> <== NOT EXECUTED
...
0004af7c <_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 );
4af7c: 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
)
{
4af82: 4e56 ffec linkw %fp,#-20
4af86: 48d7 3c04 moveml %d2/%a2-%a5,%sp@
4af8a: 246e 000c moveal %fp@(12),%a2
4af8e: 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 );
4af92: 40c0 movew %sr,%d0
4af94: 8280 orl %d0,%d1
4af96: 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);
4af98: 222a 0010 movel %a2@(16),%d1
4af9c: 0281 0003 bee0 andil #245472,%d1
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
4afa2: 6606 bnes 4afaa <_Thread_queue_Extract_priority_helper+0x2e><== ALWAYS TAKEN
_ISR_Enable( level );
4afa4: 46c0 movew %d0,%sr <== NOT EXECUTED
return;
4afa6: 6000 0090 braw 4b038 <_Thread_queue_Extract_priority_helper+0xbc><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4afaa: 220a movel %a2,%d1
4afac: 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;
4afb2: 2252 moveal %a2@,%a1
previous_node = the_node->previous;
4afb4: 266a 0004 moveal %a2@(4),%a3
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4afb8: 206a 0038 moveal %a2@(56),%a0
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
4afbc: b288 cmpl %a0,%d1
4afbe: 672e beqs 4afee <_Thread_queue_Extract_priority_helper+0x72><== ALWAYS TAKEN
new_first_node = the_thread->Wait.Block2n.first;
new_first_thread = (Thread_Control *) new_first_node;
last_node = the_thread->Wait.Block2n.last;
4afc0: 286a 0040 moveal %a2@(64),%a4 <== NOT EXECUTED
new_second_node = new_first_node->next;
4afc4: 2a50 moveal %a0@,%a5 <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
4afc6: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED
new_first_node = the_thread->Wait.Block2n.first;
new_first_thread = (Thread_Control *) new_first_node;
last_node = the_thread->Wait.Block2n.last;
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
4afca: 2688 movel %a0,%a3@ <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
4afcc: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED
last_node = the_thread->Wait.Block2n.last;
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;
4afd0: 2089 movel %a1,%a0@ <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
4afd2: b9c8 cmpal %a0,%a4 <== NOT EXECUTED
4afd4: 671e beqs 4aff4 <_Thread_queue_Extract_priority_helper+0x78><== NOT EXECUTED
/* > two threads on 2-n */
new_second_node->previous =
_Chain_Head( &new_first_thread->Wait.Block2n );
4afd6: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED
4afda: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED
new_first_thread->Wait.Block2n.first = new_second_node;
4afde: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED
new_first_thread->Wait.Block2n.last = last_node;
4afe2: 214c 0040 movel %a4,%a0@(64) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4afe6: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED
4afea: 2888 movel %a0,%a4@ <== NOT EXECUTED
4afec: 6006 bras 4aff4 <_Thread_queue_Extract_priority_helper+0x78><== NOT EXECUTED
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
}
} else {
previous_node->next = next_node;
4afee: 2689 movel %a1,%a3@
next_node->previous = previous_node;
4aff0: 234b 0004 movel %a3,%a1@(4)
/*
* If we are not supposed to touch timers or the thread's state, return.
*/
if ( requeuing ) {
4aff4: 4a02 tstb %d2
4aff6: 6704 beqs 4affc <_Thread_queue_Extract_priority_helper+0x80><== NEVER TAKEN
_ISR_Enable( level );
4aff8: 46c0 movew %d0,%sr
4affa: 603c bras 4b038 <_Thread_queue_Extract_priority_helper+0xbc>
return;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
4affc: 7202 moveq #2,%d1 <== NOT EXECUTED
4affe: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED
4b002: 6704 beqs 4b008 <_Thread_queue_Extract_priority_helper+0x8c><== NOT EXECUTED
_ISR_Enable( level );
4b004: 46c0 movew %d0,%sr <== NOT EXECUTED
4b006: 6014 bras 4b01c <_Thread_queue_Extract_priority_helper+0xa0><== NOT EXECUTED
4b008: 7203 moveq #3,%d1 <== NOT EXECUTED
4b00a: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
4b00e: 46c0 movew %d0,%sr <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
4b010: 486a 0048 pea %a2@(72) <== NOT EXECUTED
4b014: 4eb9 0004 85b8 jsr 485b8 <_Watchdog_Remove> <== NOT EXECUTED
4b01a: 588f addql #4,%sp <== NOT EXECUTED
4b01c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
4b020: 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
}
4b026: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED
4b02c: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED
4b030: 4e5e unlk %fp <== NOT EXECUTED
4b032: 4ef9 0004 717c jmp 4717c <_Thread_Clear_state> <== NOT EXECUTED
4b038: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5
4b03e: 4e5e unlk %fp
...
00047b84 <_Thread_queue_Extract_with_proxy>:
*/
bool _Thread_queue_Extract_with_proxy(
Thread_Control *the_thread
)
{
47b84: 4e56 0000 linkw %fp,#0
47b88: 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);
47b8c: 2028 0010 movel %a0@(16),%d0
47b90: 0280 0003 bee0 andil #245472,%d0
States_Control state;
state = the_thread->current_state;
if ( _States_Is_waiting_on_thread_queue( state ) ) {
47b96: 6712 beqs 47baa <_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 );
47b98: 2f08 movel %a0,%sp@- <== NOT EXECUTED
47b9a: 2f28 0044 movel %a0@(68),%sp@- <== NOT EXECUTED
47b9e: 4eb9 0004 af44 jsr 4af44 <_Thread_queue_Extract> <== NOT EXECUTED
return true;
47ba4: 508f addql #8,%sp <== NOT EXECUTED
47ba6: 7001 moveq #1,%d0 <== NOT EXECUTED
47ba8: 6002 bras 47bac <_Thread_queue_Extract_with_proxy+0x28><== NOT EXECUTED
}
return false;
47baa: 4200 clrb %d0
}
47bac: 4e5e unlk %fp <== NOT EXECUTED
000497ec <_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;
497ec: 43f9 0004 cd34 lea 4cd34 <_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 )
497f2: 7001 moveq #1,%d0 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First(
Thread_queue_Control *the_thread_queue
)
{
497f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
497f8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
497fc: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED
49800: 6606 bnes 49808 <_Thread_queue_First+0x1c> <== NOT EXECUTED
first_p = _Thread_queue_First_priority;
49802: 43f9 0004 9810 lea 49810 <_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 );
49808: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED
}
4980c: 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 );
4980e: 4ed1 jmp %a1@ <== NOT EXECUTED
0004cd34 <_Thread_queue_First_fifo>:
*/
Thread_Control *_Thread_queue_First_fifo(
Thread_queue_Control *the_thread_queue
)
{
4cd34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4cd38: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4cd3c: 2018 movel %a0@+,%d0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) )
4cd3e: b1c0 cmpal %d0,%a0 <== NOT EXECUTED
4cd40: 6602 bnes 4cd44 <_Thread_queue_First_fifo+0x10> <== NOT EXECUTED
return (Thread_Control *) the_thread_queue->Queues.Fifo.first;
return NULL;
4cd42: 4280 clrl %d0 <== NOT EXECUTED
}
4cd44: 4e5e unlk %fp <== NOT EXECUTED
00049810 <_Thread_queue_First_priority>:
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
49810: 4281 clrl %d1 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First_priority (
Thread_queue_Control *the_thread_queue
)
{
49812: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
49816: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
return (Thread_Control *)
the_thread_queue->Queues.Priority[ index ].first;
}
return NULL;
4981a: 2049 moveal %a1,%a0 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First_priority (
Thread_queue_Control *the_thread_queue
)
{
4981c: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
49820: 2601 movel %d1,%d3 <== NOT EXECUTED
49822: 2401 movel %d1,%d2 <== NOT EXECUTED
49824: e58b lsll #2,%d3 <== NOT EXECUTED
49826: e98a lsll #4,%d2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
49828: 2010 movel %a0@,%d0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
4982a: 9483 subl %d3,%d2 <== NOT EXECUTED
4982c: 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 ] ) )
49830: b5c0 cmpal %d0,%a2 <== NOT EXECUTED
49832: 660e bnes 49842 <_Thread_queue_First_priority+0x32><== NOT EXECUTED
{
uint32_t index;
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
49834: 5281 addql #1,%d1 <== NOT EXECUTED
49836: 41e8 000c lea %a0@(12),%a0 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
4983a: 7004 moveq #4,%d0 <== NOT EXECUTED
4983c: b081 cmpl %d1,%d0 <== NOT EXECUTED
4983e: 66e0 bnes 49820 <_Thread_queue_First_priority+0x10><== NOT EXECUTED
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
return (Thread_Control *)
the_thread_queue->Queues.Priority[ index ].first;
}
return NULL;
49840: 4200 clrb %d0 <== NOT EXECUTED
}
49842: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED
49846: 4e5e unlk %fp <== NOT EXECUTED
...
0004b044 <_Thread_queue_Process_timeout>:
#include <rtems/score/tqdata.h>
void _Thread_queue_Process_timeout(
Thread_Control *the_thread
)
{
4b044: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4b048: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
4b04c: 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 &&
4b050: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED
4b054: 671c beqs 4b072 <_Thread_queue_Process_timeout+0x2e><== NOT EXECUTED
4b056: b3f9 0005 debc cmpal 5debc <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
4b05c: 6614 bnes 4b072 <_Thread_queue_Process_timeout+0x2e><== NOT EXECUTED
_Thread_Is_executing( the_thread ) ) {
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
4b05e: 7203 moveq #3,%d1 <== NOT EXECUTED
4b060: b280 cmpl %d0,%d1 <== NOT EXECUTED
4b062: 6720 beqs 4b084 <_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;
4b064: 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;
4b066: 2368 003c 0034 movel %a0@(60),%a1@(52) <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
4b06c: 2140 0030 movel %d0,%a0@(48) <== NOT EXECUTED
4b070: 6012 bras 4b084 <_Thread_queue_Process_timeout+0x40><== NOT EXECUTED
}
} else {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
4b072: 2368 003c 0034 movel %a0@(60),%a1@(52) <== NOT EXECUTED
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
4b078: 2f09 movel %a1,%sp@- <== NOT EXECUTED
4b07a: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4b07c: 4eb9 0004 af44 jsr 4af44 <_Thread_queue_Extract> <== NOT EXECUTED
4b082: 508f addql #8,%sp <== NOT EXECUTED
}
}
4b084: 4e5e unlk %fp <== NOT EXECUTED
00047c50 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
47c50: 4e56 fff0 linkw %fp,#-16
47c54: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
47c58: 246e 0008 moveal %fp@(8),%a2
47c5c: 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 )
47c60: 4a8a tstl %a2
47c62: 6746 beqs 47caa <_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 ) {
47c64: 7001 moveq #1,%d0
47c66: b0aa 0034 cmpl %a2@(52),%d0
47c6a: 663e bnes 47caa <_Thread_queue_Requeue+0x5a> <== NEVER TAKEN
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
47c6c: 303c 0700 movew #1792,%d0
47c70: 40c2 movew %sr,%d2
47c72: 8082 orl %d2,%d0
47c74: 46c0 movew %d0,%sr
47c76: 202b 0010 movel %a3@(16),%d0
47c7a: 0280 0003 bee0 andil #245472,%d0
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
47c80: 6726 beqs 47ca8 <_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;
47c82: 7001 moveq #1,%d0
47c84: 2540 0030 movel %d0,%a2@(48)
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
47c88: 4878 0001 pea 1 <ADD>
47c8c: 2f0b movel %a3,%sp@-
47c8e: 2f0a movel %a2,%sp@-
47c90: 4eb9 0004 af7c jsr 4af7c <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
47c96: 486e fffc pea %fp@(-4)
47c9a: 2f0b movel %a3,%sp@-
47c9c: 2f0a movel %a2,%sp@-
47c9e: 4eb9 0004 7a3c jsr 47a3c <_Thread_queue_Enqueue_priority>
47ca4: 4fef 0018 lea %sp@(24),%sp
}
_ISR_Enable( level );
47ca8: 46c2 movew %d2,%sr
}
}
47caa: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3
47cb0: 4e5e unlk %fp <== NOT EXECUTED
00047cb4 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
47cb4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
47cb8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47cbc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47cc0: 4eb9 0004 7548 jsr 47548 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
47cc6: 508f addql #8,%sp <== NOT EXECUTED
47cc8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47ccc: 6618 bnes 47ce6 <_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 );
47cce: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47cd0: 4eb9 0004 b044 jsr 4b044 <_Thread_queue_Process_timeout> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
47cd6: 588f addql #4,%sp <== NOT EXECUTED
47cd8: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
47cde: 5380 subql #1,%d0 <== NOT EXECUTED
47ce0: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Unnest_dispatch();
break;
}
}
47ce6: 4e5e unlk %fp <== NOT EXECUTED
...
00051f9a <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
51f9a: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
51f9e: 200e movel %fp,%d0 <== NOT EXECUTED
51fa0: 0680 ffff fff4 addil #-12,%d0 <== NOT EXECUTED
51fa6: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED
51faa: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
51fae: 41ea 0008 lea %a2@(8),%a0 <== NOT EXECUTED
51fb2: 2e0e movel %fp,%d7 <== NOT EXECUTED
51fb4: 260e movel %fp,%d3 <== NOT EXECUTED
51fb6: 280e movel %fp,%d4 <== NOT EXECUTED
51fb8: 5187 subql #8,%d7 <== NOT EXECUTED
51fba: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED
51fc0: 0684 ffff ffec addil #-20,%d4 <== NOT EXECUTED
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
51fc6: 2c0a movel %a2,%d6 <== 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 );
51fc8: 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 );
51fca: 0686 0000 0030 addil #48,%d6 <== NOT EXECUTED
51fd0: 49f9 0005 5e08 lea 55e08 <_Watchdog_Adjust_to_chain>,%a4 <== 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: 0682 0000 0068 addil #104,%d2 <== NOT EXECUTED
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
51fdc: 4bf9 0005 2a98 lea 52a98 <_Chain_Get>,%a5 <== 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 );
51fe2: 47f9 0005 5e98 lea 55e98 <_Watchdog_Insert>,%a3 <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
51fe8: 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 );
51fec: 41ea 0040 lea %a2@(64),%a0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
51ff0: 2d47 fff4 movel %d7,%fp@(-12) <== NOT EXECUTED
the_chain->permanent_null = NULL;
51ff4: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED
{
Timer_server_Control *ts = (Timer_server_Control *) arg;
Chain_Control insert_chain;
Chain_Control fire_chain;
_Chain_Initialize_empty( &insert_chain );
51ff8: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
51ffc: 2d44 ffe8 movel %d4,%fp@(-24) <== NOT EXECUTED
the_chain->permanent_null = NULL;
52000: 42ae ffec clrl %fp@(-20) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
52004: 2d43 fff0 movel %d3,%fp@(-16) <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
52008: 2d48 ffe0 movel %a0,%fp@(-32) <== 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;
5200c: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED
52010: 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;
52014: 2039 0007 664c movel 7664c <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
5201a: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
5201e: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
52022: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED
52026: 9081 subl %d1,%d0 <== NOT EXECUTED
52028: 2f00 movel %d0,%sp@- <== NOT EXECUTED
5202a: 2f06 movel %d6,%sp@- <== NOT EXECUTED
5202c: 4e94 jsr %a4@ <== 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();
5202e: 2039 0007 65aa movel 765aa <_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 ) {
52034: 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;
52038: 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 ) {
5203c: b280 cmpl %d0,%d1 <== NOT EXECUTED
5203e: 6414 bccs 52054 <_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 );
52040: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED
52044: 2a00 movel %d0,%d5 <== NOT EXECUTED
52046: 9a81 subl %d1,%d5 <== NOT EXECUTED
52048: 2f05 movel %d5,%sp@- <== NOT EXECUTED
5204a: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED
5204e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
52050: 4e94 jsr %a4@ <== NOT EXECUTED
52052: 6018 bras 5206c <_Timer_server_Body+0xd2> <== NOT EXECUTED
} else if ( snapshot < last_snapshot ) {
52054: b280 cmpl %d0,%d1 <== NOT EXECUTED
52056: 631c blss 52074 <_Timer_server_Body+0xda> <== 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 );
52058: 9280 subl %d0,%d1 <== NOT EXECUTED
5205a: 2f01 movel %d1,%sp@- <== NOT EXECUTED
5205c: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
52060: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED
52064: 2f02 movel %d2,%sp@- <== NOT EXECUTED
52066: 4eb9 0005 5d88 jsr 55d88 <_Watchdog_Adjust> <== NOT EXECUTED
5206c: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED
52070: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
watchdogs->last_snapshot = snapshot;
52074: 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 );
52078: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
5207c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
5207e: 4e95 jsr %a5@ <== NOT EXECUTED
if ( timer == NULL ) {
52080: 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 );
52082: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( timer == NULL ) {
52084: 4a80 tstl %d0 <== NOT EXECUTED
52086: 6724 beqs 520ac <_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 ) {
52088: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED
5208c: 7201 moveq #1,%d1 <== NOT EXECUTED
5208e: b280 cmpl %d0,%d1 <== NOT EXECUTED
52090: 6608 bnes 5209a <_Timer_server_Body+0x100> <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
52092: 4868 0010 pea %a0@(16) <== NOT EXECUTED
52096: 2f06 movel %d6,%sp@- <== NOT EXECUTED
52098: 600c bras 520a6 <_Timer_server_Body+0x10c> <== NOT EXECUTED
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
5209a: 7a03 moveq #3,%d5 <== NOT EXECUTED
5209c: ba80 cmpl %d0,%d5 <== NOT EXECUTED
5209e: 66d8 bnes 52078 <_Timer_server_Body+0xde> <== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
520a0: 4868 0010 pea %a0@(16) <== NOT EXECUTED
520a4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
520a6: 4e93 jsr %a3@ <== NOT EXECUTED
520a8: 508f addql #8,%sp <== NOT EXECUTED
520aa: 60cc bras 52078 <_Timer_server_Body+0xde> <== 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 );
520ac: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
520b2: 40c1 movew %sr,%d1 <== NOT EXECUTED
520b4: 8081 orl %d1,%d0 <== NOT EXECUTED
520b6: 46c0 movew %d0,%sr <== NOT EXECUTED
if ( _Chain_Is_empty( insert_chain ) ) {
520b8: beae fff4 cmpl %fp@(-12),%d7 <== NOT EXECUTED
520bc: 6614 bnes 520d2 <_Timer_server_Body+0x138> <== NOT EXECUTED
ts->insert_chain = NULL;
520be: 42aa 0078 clrl %a2@(120) <== NOT EXECUTED
_ISR_Enable( level );
520c2: 46c1 movew %d1,%sr <== 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 );
520c4: 2a3c 0000 0700 movel #1792,%d5 <== 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 ) ) {
520ca: b8ae ffe8 cmpl %fp@(-24),%d4 <== NOT EXECUTED
520ce: 6608 bnes 520d8 <_Timer_server_Body+0x13e> <== NOT EXECUTED
520d0: 6042 bras 52114 <_Timer_server_Body+0x17a> <== NOT EXECUTED
ts->insert_chain = NULL;
_ISR_Enable( level );
break;
} else {
_ISR_Enable( level );
520d2: 46c1 movew %d1,%sr <== NOT EXECUTED
520d4: 6000 ff3e braw 52014 <_Timer_server_Body+0x7a> <== 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 );
520d8: 2205 movel %d5,%d1 <== NOT EXECUTED
520da: 40c0 movew %sr,%d0 <== NOT EXECUTED
520dc: 8280 orl %d0,%d1 <== NOT EXECUTED
520de: 46c1 movew %d1,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
520e0: 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))
520e4: b888 cmpl %a0,%d4 <== NOT EXECUTED
520e6: 6726 beqs 5210e <_Timer_server_Body+0x174> <== NOT EXECUTED
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
520e8: 2250 moveal %a0@,%a1 <== NOT EXECUTED
the_chain->first = new_first;
520ea: 2d49 ffe8 movel %a1,%fp@(-24) <== NOT EXECUTED
new_first->previous = _Chain_Head(the_chain);
520ee: 2343 0004 movel %d3,%a1@(4) <== NOT EXECUTED
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
520f2: 4a88 tstl %a0 <== NOT EXECUTED
520f4: 6718 beqs 5210e <_Timer_server_Body+0x174> <== NOT EXECUTED
watchdog->state = WATCHDOG_INACTIVE;
520f6: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
_ISR_Enable( level );
520fa: 46c0 movew %d0,%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 );
520fc: 2f28 0024 movel %a0@(36),%sp@- <== NOT EXECUTED
52100: 2f28 0020 movel %a0@(32),%sp@- <== NOT EXECUTED
52104: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED
52108: 4e90 jsr %a0@ <== NOT EXECUTED
}
5210a: 508f addql #8,%sp <== NOT EXECUTED
5210c: 60ca bras 520d8 <_Timer_server_Body+0x13e> <== NOT EXECUTED
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
_ISR_Enable( level );
} else {
_ISR_Enable( level );
5210e: 46c0 movew %d0,%sr <== NOT EXECUTED
52110: 6000 fefa braw 5200c <_Timer_server_Body+0x72> <== NOT EXECUTED
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
52114: 4200 clrb %d0 <== NOT EXECUTED
52116: 1540 007c moveb %d0,%a2@(124) <== NOT EXECUTED
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
5211a: 4eba fda4 jsr %pc@(51ec0 <_Thread_Disable_dispatch>) <== NOT EXECUTED
_Thread_Set_state( ts->thread, STATES_DELAYING );
5211e: 4878 0008 pea 8 <DIVIDE_BY_ZERO> <== NOT EXECUTED
52122: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
52124: 4eb9 0005 55a8 jsr 555a8 <_Thread_Set_state> <== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
5212a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5212c: 4eba fda8 jsr %pc@(51ed6 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
52130: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52132: 4eba fe02 jsr %pc@(51f36 <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED
_Thread_Enable_dispatch();
52136: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
ts->active = true;
5213c: 7201 moveq #1,%d1 <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
5213e: 41f9 0005 5fb4 lea 55fb4 <_Watchdog_Remove>,%a0 <== NOT EXECUTED
_Thread_Set_state( ts->thread, STATES_DELAYING );
_Timer_server_Reset_interval_system_watchdog( ts );
_Timer_server_Reset_tod_system_watchdog( ts );
_Thread_Enable_dispatch();
ts->active = true;
52144: 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 );
52148: 2f2e ffe4 movel %fp@(-28),%sp@- <== NOT EXECUTED
5214c: 2d48 ffdc movel %a0,%fp@(-36) <== NOT EXECUTED
52150: 4e90 jsr %a0@ <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
52152: 2f2e ffe0 movel %fp@(-32),%sp@- <== NOT EXECUTED
52156: 206e ffdc moveal %fp@(-36),%a0 <== NOT EXECUTED
5215a: 4e90 jsr %a0@ <== NOT EXECUTED
5215c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
52160: 6000 feaa braw 5200c <_Timer_server_Body+0x72> <== NOT EXECUTED
00051ed6 <_Timer_server_Reset_interval_system_watchdog>:
}
static void _Timer_server_Reset_interval_system_watchdog(
Timer_server_Control *ts
)
{
51ed6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
51eda: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51edc: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
51ee0: 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 );
51ee2: 240a movel %a2,%d2 <== NOT EXECUTED
51ee4: 5082 addql #8,%d2 <== NOT EXECUTED
51ee6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51ee8: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
{
ISR_Level level;
_Timer_server_Stop_interval_system_watchdog( ts );
_ISR_Disable( level );
51eee: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51ef4: 40c1 movew %sr,%d1 <== NOT EXECUTED
51ef6: 8081 orl %d1,%d0 <== NOT EXECUTED
51ef8: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
51efa: 200a movel %a2,%d0 <== NOT EXECUTED
51efc: 0680 0000 0034 addil #52,%d0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
51f02: 588f addql #4,%sp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
51f04: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED
51f08: b088 cmpl %a0,%d0 <== NOT EXECUTED
51f0a: 671c beqs 51f28 <_Timer_server_Reset_interval_system_watchdog+0x52><== NOT EXECUTED
Watchdog_Interval delta_interval =
51f0c: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
_Watchdog_First( &ts->Interval_watchdogs.Chain )->delta_interval;
_ISR_Enable( level );
51f10: 46c1 movew %d1,%sr <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
51f12: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
51f16: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51f18: 4879 0007 65e2 pea 765e2 <_Watchdog_Ticks_chain> <== NOT EXECUTED
51f1e: 4eb9 0005 5e98 jsr 55e98 <_Watchdog_Insert> <== NOT EXECUTED
51f24: 508f addql #8,%sp <== NOT EXECUTED
51f26: 6002 bras 51f2a <_Timer_server_Reset_interval_system_watchdog+0x54><== NOT EXECUTED
_Watchdog_Insert_ticks(
&ts->Interval_watchdogs.System_watchdog,
delta_interval
);
} else {
_ISR_Enable( level );
51f28: 46c1 movew %d1,%sr <== NOT EXECUTED
}
}
51f2a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
51f2e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
51f32: 4e5e unlk %fp <== NOT EXECUTED
00051f36 <_Timer_server_Reset_tod_system_watchdog>:
}
static void _Timer_server_Reset_tod_system_watchdog(
Timer_server_Control *ts
)
{
51f36: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
51f3a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51f3c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
51f40: 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 );
51f42: 240a movel %a2,%d2 <== NOT EXECUTED
51f44: 0682 0000 0040 addil #64,%d2 <== NOT EXECUTED
51f4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51f4c: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
{
ISR_Level level;
_Timer_server_Stop_tod_system_watchdog( ts );
_ISR_Disable( level );
51f52: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51f58: 40c1 movew %sr,%d1 <== NOT EXECUTED
51f5a: 8081 orl %d1,%d0 <== NOT EXECUTED
51f5c: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
51f5e: 200a movel %a2,%d0 <== NOT EXECUTED
51f60: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
51f66: 588f addql #4,%sp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
51f68: 206a 0068 moveal %a2@(104),%a0 <== NOT EXECUTED
51f6c: b088 cmpl %a0,%d0 <== NOT EXECUTED
51f6e: 671c beqs 51f8c <_Timer_server_Reset_tod_system_watchdog+0x56><== NOT EXECUTED
Watchdog_Interval delta_interval =
51f70: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
_Watchdog_First( &ts->TOD_watchdogs.Chain )->delta_interval;
_ISR_Enable( level );
51f74: 46c1 movew %d1,%sr <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
51f76: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
51f7a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51f7c: 4879 0007 65d6 pea 765d6 <_Watchdog_Seconds_chain> <== NOT EXECUTED
51f82: 4eb9 0005 5e98 jsr 55e98 <_Watchdog_Insert> <== NOT EXECUTED
51f88: 508f addql #8,%sp <== NOT EXECUTED
51f8a: 6002 bras 51f8e <_Timer_server_Reset_tod_system_watchdog+0x58><== NOT EXECUTED
_Watchdog_Insert_seconds(
&ts->TOD_watchdogs.System_watchdog,
delta_interval
);
} else {
_ISR_Enable( level );
51f8c: 46c1 movew %d1,%sr <== NOT EXECUTED
}
}
51f8e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
51f92: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
51f96: 4e5e unlk %fp <== NOT EXECUTED
00052164 <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
52164: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
52168: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
5216c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
52170: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
52174: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
52178: 6600 00ea bnew 52264 <_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();
5217c: 4eba fd42 jsr %pc@(51ec0 <_Thread_Disable_dispatch>) <== NOT EXECUTED
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
52180: 202b 0038 movel %a3@(56),%d0 <== NOT EXECUTED
52184: 7201 moveq #1,%d1 <== NOT EXECUTED
52186: b280 cmpl %d0,%d1 <== NOT EXECUTED
52188: 665c bnes 521e6 <_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 );
5218a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
52190: 40c2 movew %sr,%d2 <== NOT EXECUTED
52192: 8082 orl %d2,%d0 <== NOT EXECUTED
52194: 46c0 movew %d0,%sr <== NOT EXECUTED
snapshot = _Watchdog_Ticks_since_boot;
52196: 2039 0007 664c movel 7664c <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
5219c: 43ea 0034 lea %a2@(52),%a1 <== NOT EXECUTED
last_snapshot = ts->Interval_watchdogs.last_snapshot;
521a0: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
521a4: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
521a8: b3c8 cmpal %a0,%a1 <== NOT EXECUTED
521aa: 6716 beqs 521c2 <_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;
521ac: 2240 moveal %d0,%a1 <== NOT EXECUTED
521ae: 93c1 subal %d1,%a1 <== NOT EXECUTED
delta_interval = first_watchdog->delta_interval;
521b0: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED
if (delta_interval > delta) {
521b4: b3c1 cmpal %d1,%a1 <== NOT EXECUTED
521b6: 6404 bccs 521bc <_Timer_server_Schedule_operation_method+0x58><== NOT EXECUTED
delta_interval -= delta;
521b8: 9289 subl %a1,%d1 <== NOT EXECUTED
521ba: 6002 bras 521be <_Timer_server_Schedule_operation_method+0x5a><== NOT EXECUTED
} else {
delta_interval = 0;
521bc: 4281 clrl %d1 <== NOT EXECUTED
}
first_watchdog->delta_interval = delta_interval;
521be: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED
}
ts->Interval_watchdogs.last_snapshot = snapshot;
521c2: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED
_ISR_Enable( level );
521c6: 46c2 movew %d2,%sr <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
521c8: 486b 0010 pea %a3@(16) <== NOT EXECUTED
521cc: 486a 0030 pea %a2@(48) <== NOT EXECUTED
521d0: 4eb9 0005 5e98 jsr 55e98 <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
521d6: 508f addql #8,%sp <== NOT EXECUTED
521d8: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED
521dc: 6678 bnes 52256 <_Timer_server_Schedule_operation_method+0xf2><== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
521de: 2f0a movel %a2,%sp@- <== NOT EXECUTED
521e0: 4eba fcf4 jsr %pc@(51ed6 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED
521e4: 606e bras 52254 <_Timer_server_Schedule_operation_method+0xf0><== NOT EXECUTED
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
521e6: 7203 moveq #3,%d1 <== NOT EXECUTED
521e8: b280 cmpl %d0,%d1 <== NOT EXECUTED
521ea: 666a bnes 52256 <_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 );
521ec: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
521f2: 40c2 movew %sr,%d2 <== NOT EXECUTED
521f4: 8082 orl %d2,%d0 <== NOT EXECUTED
521f6: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
521f8: 200a movel %a2,%d0 <== NOT EXECUTED
521fa: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
52200: 2239 0007 65aa movel 765aa <_TOD_Now>,%d1 <== NOT EXECUTED
last_snapshot = ts->TOD_watchdogs.last_snapshot;
52206: 226a 0074 moveal %a2@(116),%a1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
5220a: 206a 0068 moveal %a2@(104),%a0 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
5220e: b088 cmpl %a0,%d0 <== NOT EXECUTED
52210: 6720 beqs 52232 <_Timer_server_Schedule_operation_method+0xce><== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
52212: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED
if ( snapshot > last_snapshot ) {
52216: b3c1 cmpal %d1,%a1 <== NOT EXECUTED
52218: 640c bccs 52226 <_Timer_server_Schedule_operation_method+0xc2><== NOT EXECUTED
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
5221a: 2841 moveal %d1,%a4 <== NOT EXECUTED
5221c: 99c9 subal %a1,%a4 <== NOT EXECUTED
if (delta_interval > delta) {
5221e: b9c0 cmpal %d0,%a4 <== NOT EXECUTED
52220: 640a bccs 5222c <_Timer_server_Schedule_operation_method+0xc8><== NOT EXECUTED
delta_interval -= delta;
52222: 908c subl %a4,%d0 <== NOT EXECUTED
52224: 6008 bras 5222e <_Timer_server_Schedule_operation_method+0xca><== NOT EXECUTED
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
52226: d089 addl %a1,%d0 <== NOT EXECUTED
delta_interval += delta;
52228: 9081 subl %d1,%d0 <== NOT EXECUTED
5222a: 6002 bras 5222e <_Timer_server_Schedule_operation_method+0xca><== NOT EXECUTED
*/
delta = snapshot - last_snapshot;
if (delta_interval > delta) {
delta_interval -= delta;
} else {
delta_interval = 0;
5222c: 4280 clrl %d0 <== NOT EXECUTED
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
delta_interval += delta;
}
first_watchdog->delta_interval = delta_interval;
5222e: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED
}
ts->TOD_watchdogs.last_snapshot = snapshot;
52232: 2541 0074 movel %d1,%a2@(116) <== NOT EXECUTED
_ISR_Enable( level );
52236: 46c2 movew %d2,%sr <== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
52238: 486b 0010 pea %a3@(16) <== NOT EXECUTED
5223c: 486a 0068 pea %a2@(104) <== NOT EXECUTED
52240: 4eb9 0005 5e98 jsr 55e98 <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
52246: 508f addql #8,%sp <== NOT EXECUTED
52248: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED
5224c: 6608 bnes 52256 <_Timer_server_Schedule_operation_method+0xf2><== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
5224e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
52250: 4eba fce4 jsr %pc@(51f36 <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED
52254: 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 );
}
}
52256: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
5225c: 4e5e unlk %fp <== NOT EXECUTED
if ( !ts->active ) {
_Timer_server_Reset_tod_system_watchdog( ts );
}
}
_Thread_Enable_dispatch();
5225e: 4ef9 0005 4c42 jmp 54c42 <_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 );
52264: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED
52268: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED
}
}
5226c: 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 );
52272: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
}
}
52276: 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 );
52278: 4ef9 0005 2a38 jmp 52a38 <_Chain_Append> <== NOT EXECUTED
000481b0 <_Timespec_Add_to>:
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
481b0: 4e56 0000 linkw %fp,#0
481b4: 226e 000c moveal %fp@(12),%a1
481b8: 206e 0008 moveal %fp@(8),%a0
uint32_t seconds = add->tv_sec;
481bc: 2011 movel %a1@,%d0
/* Add the basics */
time->tv_sec += add->tv_sec;
481be: d190 addl %d0,%a0@
time->tv_nsec += add->tv_nsec;
481c0: 2229 0004 movel %a1@(4),%d1
481c4: d3a8 0004 addl %d1,%a0@(4)
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
481c8: 600e bras 481d8 <_Timespec_Add_to+0x28>
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
time->tv_sec++;
481ca: 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;
481cc: 0681 c465 3600 addil #-1000000000,%d1 <== NOT EXECUTED
time->tv_sec++;
seconds++;
481d2: 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;
481d4: 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 ) {
481d8: 2228 0004 movel %a0@(4),%d1
481dc: 0c81 3b9a c9ff cmpil #999999999,%d1
481e2: 62e6 bhis 481ca <_Timespec_Add_to+0x1a> <== NEVER TAKEN
time->tv_sec++;
seconds++;
}
return seconds;
}
481e4: 4e5e unlk %fp <== NOT EXECUTED
00049638 <_Timespec_Divide>:
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
49638: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
4963c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
49640: 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;
49644: 2a10 movel %a0@,%d5 <== NOT EXECUTED
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
49646: 49f9 0005 a0fc lea 5a0fc <__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;
4964c: 2828 0004 movel %a0@(4),%d4 <== NOT EXECUTED
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
49650: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
49656: 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;
4965a: 42a7 clrl %sp@- <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
4965c: 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;
49660: 2f15 movel %a5@,%sp@- <== NOT EXECUTED
49662: 5bc0 smi %d0 <== NOT EXECUTED
49664: 49c0 extbl %d0 <== NOT EXECUTED
49666: 2f00 movel %d0,%sp@- <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
49668: 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;
4966c: 4e94 jsr %a4@ <== NOT EXECUTED
4966e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49672: 2040 moveal %d0,%a0 <== NOT EXECUTED
49674: 2241 moveal %d1,%a1 <== NOT EXECUTED
right += rhs->tv_nsec;
49676: 262d 0004 movel %a5@(4),%d3 <== NOT EXECUTED
4967a: 5bc2 smi %d2 <== NOT EXECUTED
4967c: 49c2 extbl %d2 <== NOT EXECUTED
4967e: 2208 movel %a0,%d1 <== NOT EXECUTED
49680: d689 addl %a1,%d3 <== NOT EXECUTED
49682: d581 addxl %d1,%d2 <== NOT EXECUTED
if ( right == 0 ) {
49684: 6606 bnes 4968c <_Timespec_Divide+0x54> <== NOT EXECUTED
*ival_percentage = 0;
49686: 4293 clrl %a3@ <== NOT EXECUTED
*fval_percentage = 0;
49688: 4292 clrl %a2@ <== NOT EXECUTED
return;
4968a: 607a bras 49706 <_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;
4968c: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
49692: 42a7 clrl %sp@- <== NOT EXECUTED
49694: 2f05 movel %d5,%sp@- <== NOT EXECUTED
49696: 5bc1 smi %d1 <== NOT EXECUTED
49698: 49c1 extbl %d1 <== NOT EXECUTED
4969a: 2f01 movel %d1,%sp@- <== NOT EXECUTED
left += lhs->tv_nsec;
4969c: 2a04 movel %d4,%d5 <== NOT EXECUTED
4969e: 5bc4 smi %d4 <== NOT EXECUTED
496a0: 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;
496a2: 4e94 jsr %a4@ <== NOT EXECUTED
496a4: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
496a8: 2040 moveal %d0,%a0 <== NOT EXECUTED
496aa: 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;
496ac: 2f3c 0001 86a0 movel #100000,%sp@- <== NOT EXECUTED
496b2: 2008 movel %a0,%d0 <== NOT EXECUTED
496b4: 2209 movel %a1,%d1 <== NOT EXECUTED
496b6: 42a7 clrl %sp@- <== NOT EXECUTED
496b8: d285 addl %d5,%d1 <== NOT EXECUTED
496ba: d184 addxl %d4,%d0 <== NOT EXECUTED
496bc: 2f01 movel %d1,%sp@- <== NOT EXECUTED
496be: 2f00 movel %d0,%sp@- <== NOT EXECUTED
496c0: 4e94 jsr %a4@ <== NOT EXECUTED
496c2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
496c6: 49f9 0005 a948 lea 5a948 <__udivdi3>,%a4 <== NOT EXECUTED
496cc: 2f03 movel %d3,%sp@- <== NOT EXECUTED
496ce: 2f02 movel %d2,%sp@- <== NOT EXECUTED
496d0: 2f01 movel %d1,%sp@- <== NOT EXECUTED
496d2: 2f00 movel %d0,%sp@- <== NOT EXECUTED
496d4: 4e94 jsr %a4@ <== NOT EXECUTED
496d6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
496da: 2400 movel %d0,%d2 <== NOT EXECUTED
*ival_percentage = answer / 1000;
496dc: 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;
496e0: 2601 movel %d1,%d3 <== NOT EXECUTED
*ival_percentage = answer / 1000;
496e2: 42a7 clrl %sp@- <== NOT EXECUTED
496e4: 2f01 movel %d1,%sp@- <== NOT EXECUTED
496e6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
496e8: 4e94 jsr %a4@ <== NOT EXECUTED
496ea: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
496ee: 2681 movel %d1,%a3@ <== NOT EXECUTED
*fval_percentage = answer % 1000;
496f0: 4878 03e8 pea 3e8 <DBL_MANT_DIG+0x3b3> <== NOT EXECUTED
496f4: 42a7 clrl %sp@- <== NOT EXECUTED
496f6: 2f03 movel %d3,%sp@- <== NOT EXECUTED
496f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
496fa: 4eb9 0005 acd4 jsr 5acd4 <__umoddi3> <== NOT EXECUTED
49700: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49704: 2481 movel %d1,%a2@ <== NOT EXECUTED
}
49706: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED
4970c: 4e5e unlk %fp <== NOT EXECUTED
00049818 <_Timespec_Divide_by_integer>:
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
49818: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4981c: 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;
49820: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
49826: 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;
4982a: 42a7 clrl %sp@- <== NOT EXECUTED
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
4982c: 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;
49830: 2f13 movel %a3@,%sp@- <== NOT EXECUTED
49832: 5bc0 smi %d0 <== NOT EXECUTED
49834: 49c0 extbl %d0 <== NOT EXECUTED
49836: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49838: 4eb9 0005 9d74 jsr 59d74 <__muldi3> <== NOT EXECUTED
4983e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49842: 2040 moveal %d0,%a0 <== NOT EXECUTED
49844: 2241 moveal %d1,%a1 <== NOT EXECUTED
t += time->tv_nsec;
49846: 222b 0004 movel %a3@(4),%d1 <== NOT EXECUTED
4984a: 5bc0 smi %d0 <== NOT EXECUTED
4984c: 49c0 extbl %d0 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
4984e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49852: 47f9 0005 a5c0 lea 5a5c0 <__udivdi3>,%a3 <== NOT EXECUTED
49858: 2408 movel %a0,%d2 <== NOT EXECUTED
4985a: 2609 movel %a1,%d3 <== NOT EXECUTED
4985c: 42a7 clrl %sp@- <== NOT EXECUTED
4985e: d681 addl %d1,%d3 <== NOT EXECUTED
49860: d580 addxl %d0,%d2 <== NOT EXECUTED
49862: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49864: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49866: 4e93 jsr %a3@ <== NOT EXECUTED
49868: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4986c: 2400 movel %d0,%d2 <== NOT EXECUTED
4986e: 2601 movel %d1,%d3 <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
49870: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
49876: 42a7 clrl %sp@- <== NOT EXECUTED
49878: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4987a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4987c: 4e93 jsr %a3@ <== NOT EXECUTED
4987e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49882: 2481 movel %d1,%a2@ <== NOT EXECUTED
result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND;
49884: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED
4988a: 42a7 clrl %sp@- <== NOT EXECUTED
4988c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4988e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49890: 4eb9 0005 a94c jsr 5a94c <__umoddi3> <== NOT EXECUTED
49896: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4989a: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED
}
4989e: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED
498a4: 4e5e unlk %fp <== NOT EXECUTED
0005aa94 <_Timespec_From_ticks>:
struct timespec *time
)
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
5aa94: 43f9 0005 cfe0 lea 5cfe0 <Configuration+0xc>,%a1 <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
5aa9a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
5aa9e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
5aaa2: 4c11 0800 mulsl %a1@,%d0 <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
5aaa6: 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;
5aaa8: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
5aaae: 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;
5aab2: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED
5aab6: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
TOD_NANOSECONDS_PER_MICROSECOND;
}
5aaba: 241f movel %sp@+,%d2 <== NOT EXECUTED
5aabc: 4e5e unlk %fp <== NOT EXECUTED
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
5aabe: 2080 movel %d0,%a0@ <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
5aac0: 203c 0000 03e8 movel #1000,%d0 <== NOT EXECUTED
5aac6: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED
5aaca: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
TOD_NANOSECONDS_PER_MICROSECOND;
}
00048860 <_Timespec_Greater_than>:
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
48860: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
48864: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
48868: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( lhs->tv_sec > rhs->tv_sec )
4886c: 2211 movel %a1@,%d1 <== NOT EXECUTED
4886e: 2010 movel %a0@,%d0 <== NOT EXECUTED
48870: b081 cmpl %d1,%d0 <== NOT EXECUTED
48872: 6d10 blts 48884 <_Timespec_Greater_than+0x24> <== NOT EXECUTED
return true;
if ( lhs->tv_sec < rhs->tv_sec )
48874: 6e12 bgts 48888 <_Timespec_Greater_than+0x28> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Greater_than(
48876: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
4887a: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED
4887e: 5dc0 slt %d0 <== NOT EXECUTED
48880: 4480 negl %d0 <== NOT EXECUTED
48882: 6006 bras 4888a <_Timespec_Greater_than+0x2a> <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec > rhs->tv_sec )
return true;
48884: 7001 moveq #1,%d0 <== NOT EXECUTED
48886: 6002 bras 4888a <_Timespec_Greater_than+0x2a> <== NOT EXECUTED
if ( lhs->tv_sec < rhs->tv_sec )
return false;
48888: 4200 clrb %d0 <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec > rhs->tv_nsec )
return true;
return false;
}
4888a: 4e5e unlk %fp <== NOT EXECUTED
...
0005aad0 <_Timespec_Is_valid>:
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
const struct timespec *time
)
{
5aad0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
5aad4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !time )
5aad8: 4a88 tstl %a0 <== NOT EXECUTED
5aada: 6716 beqs 5aaf2 <_Timespec_Is_valid+0x22> <== NOT EXECUTED
return false;
if ( time->tv_sec < 0 )
5aadc: 4a90 tstl %a0@ <== NOT EXECUTED
5aade: 6d12 blts 5aaf2 <_Timespec_Is_valid+0x22> <== NOT EXECUTED
return false;
if ( time->tv_nsec < 0 )
5aae0: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED
5aae4: 6d0c blts 5aaf2 <_Timespec_Is_valid+0x22> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
5aae6: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED
5aaec: 53c0 sls %d0 <== NOT EXECUTED
5aaee: 4480 negl %d0 <== NOT EXECUTED
5aaf0: 6002 bras 5aaf4 <_Timespec_Is_valid+0x24> <== NOT EXECUTED
if ( time->tv_sec < 0 )
return false;
if ( time->tv_nsec < 0 )
return false;
5aaf2: 4200 clrb %d0 <== NOT EXECUTED
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
return false;
return true;
}
5aaf4: 4e5e unlk %fp <== NOT EXECUTED
0004ae20 <_Timespec_Less_than>:
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
4ae20: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4ae24: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED
4ae28: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( lhs->tv_sec < rhs->tv_sec )
4ae2c: 2211 movel %a1@,%d1 <== NOT EXECUTED
4ae2e: 2010 movel %a0@,%d0 <== NOT EXECUTED
4ae30: b081 cmpl %d1,%d0 <== NOT EXECUTED
4ae32: 6e10 bgts 4ae44 <_Timespec_Less_than+0x24> <== NOT EXECUTED
return true;
if ( lhs->tv_sec > rhs->tv_sec )
4ae34: 6d12 blts 4ae48 <_Timespec_Less_than+0x28> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Less_than(
4ae36: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
4ae3a: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED
4ae3e: 5ec0 sgt %d0 <== NOT EXECUTED
4ae40: 4480 negl %d0 <== NOT EXECUTED
4ae42: 6006 bras 4ae4a <_Timespec_Less_than+0x2a> <== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
return true;
4ae44: 7001 moveq #1,%d0 <== NOT EXECUTED
4ae46: 6002 bras 4ae4a <_Timespec_Less_than+0x2a> <== NOT EXECUTED
if ( lhs->tv_sec > rhs->tv_sec )
return false;
4ae48: 4200 clrb %d0 <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec < rhs->tv_nsec )
return true;
return false;
}
4ae4a: 4e5e unlk %fp <== NOT EXECUTED
...
000481e8 <_Timespec_Subtract>:
void _Timespec_Subtract(
const struct timespec *start,
const struct timespec *end,
struct timespec *result
)
{
481e8: 4e56 0000 linkw %fp,#0
481ec: 226e 0008 moveal %fp@(8),%a1
481f0: 2f0a movel %a2,%sp@-
481f2: 246e 000c moveal %fp@(12),%a2
481f6: 206e 0010 moveal %fp@(16),%a0
if (end->tv_nsec < start->tv_nsec) {
481fa: 222a 0004 movel %a2@(4),%d1
481fe: 2029 0004 movel %a1@(4),%d0
void _Timespec_Subtract(
const struct timespec *start,
const struct timespec *end,
struct timespec *result
)
{
48202: 2f02 movel %d2,%sp@-
if (end->tv_nsec < start->tv_nsec) {
48204: b081 cmpl %d1,%d0
48206: 6f10 bles 48218 <_Timespec_Subtract+0x30> <== ALWAYS TAKEN
result->tv_sec = end->tv_sec - start->tv_sec - 1;
48208: 2452 moveal %a2@,%a2 <== NOT EXECUTED
4820a: 538a subql #1,%a2 <== NOT EXECUTED
4820c: 95d1 subal %a1@,%a2 <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
4820e: 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;
48214: 208a movel %a2,%a0@ <== NOT EXECUTED
48216: 6006 bras 4821e <_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;
48218: 2412 movel %a2@,%d2
4821a: 9491 subl %a1@,%d2
4821c: 2082 movel %d2,%a0@
result->tv_nsec = end->tv_nsec - start->tv_nsec;
}
}
4821e: 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;
48220: 9280 subl %d0,%d1
}
}
48222: 245f moveal %sp@+,%a2
48224: 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;
48226: 2141 0004 movel %d1,%a0@(4)
}
}
0004b148 <_Timespec_To_ticks>:
*/
uint32_t _Timespec_To_ticks(
const struct timespec *time
)
{
4b148: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
4b14c: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
4b150: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
4b154: 2412 movel %a2@,%d2 <== NOT EXECUTED
4b156: 6606 bnes 4b15e <_Timespec_To_ticks+0x16> <== NOT EXECUTED
4b158: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED
4b15c: 672c beqs 4b18a <_Timespec_To_ticks+0x42> <== NOT EXECUTED
return 0;
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
4b15e: 4eb9 0004 c68c jsr 4c68c <TOD_TICKS_PER_SECOND_method> <== NOT EXECUTED
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
4b164: 2239 0005 c190 movel 5c190 <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;
4b16a: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
4b16e: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED
4b174: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED
4b178: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED
4b17c: 4c41 3003 remul %d1,%d3,%d3 <== NOT EXECUTED
4b180: d083 addl %d3,%d0 <== NOT EXECUTED
if (ticks)
4b182: 6608 bnes 4b18c <_Timespec_To_ticks+0x44> <== NOT EXECUTED
return ticks;
return 1;
4b184: 103c 0001 moveb #1,%d0 <== NOT EXECUTED
4b188: 6002 bras 4b18c <_Timespec_To_ticks+0x44> <== NOT EXECUTED
)
{
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
return 0;
4b18a: 4280 clrl %d0 <== NOT EXECUTED
if (ticks)
return ticks;
return 1;
}
4b18c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED
4b192: 4e5e unlk %fp <== NOT EXECUTED
...
00048352 <_User_extensions_Fatal>:
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
48352: 4e56 fff0 linkw %fp,#-16
48356: 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 );
4835a: 4282 clrl %d2
4835c: 142e 000f moveb %fp@(15),%d2
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
48360: 282e 0008 movel %fp@(8),%d4
48364: 262e 0010 movel %fp@(16),%d3
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
48368: 2479 0005 dbaa moveal 5dbaa <_User_extensions_List+0x8>,%a2
4836e: 6018 bras 48388 <_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 )
48370: 206a 0030 moveal %a2@(48),%a0
48374: 4a88 tstl %a0
48376: 670c beqs 48384 <_User_extensions_Fatal+0x32>
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
48378: 2f03 movel %d3,%sp@-
4837a: 2f02 movel %d2,%sp@-
4837c: 2f04 movel %d4,%sp@-
4837e: 4e90 jsr %a0@
48380: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
48384: 246a 0004 moveal %a2@(4),%a2
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
48388: b5fc 0005 dba2 cmpal #383906,%a2
4838e: 66e0 bnes 48370 <_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 );
}
}
48390: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED
48396: 4e5e unlk %fp <== NOT EXECUTED
...
0004822c <_User_extensions_Handler_initialization>:
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
4822c: 4e56 ffe8 linkw %fp,#-24
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
48230: 203c 0005 dba6 movel #383910,%d0
48236: 23c0 0005 dba2 movel %d0,5dba2 <_User_extensions_List>
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
4823c: 203c 0005 dba2 movel #383906,%d0
48242: 23c0 0005 dbaa movel %d0,5dbaa <_User_extensions_List+0x8>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
48248: 203c 0005 da34 movel #383540,%d0
4824e: 23c0 0005 da30 movel %d0,5da30 <_User_extensions_Switches_list>
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
48254: 203c 0005 da30 movel #383536,%d0
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
4825a: 42b9 0005 dba6 clrl 5dba6 <_User_extensions_List+0x4>
48260: 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;
48264: 2839 0005 c1ba movel 5c1ba <Configuration+0x36>,%d4
initial_extensions = Configuration.User_extension_table;
4826a: 2639 0005 c1be movel 5c1be <Configuration+0x3a>,%d3
48270: 42b9 0005 da34 clrl 5da34 <_User_extensions_Switches_list+0x4>
the_chain->last = _Chain_Head(the_chain);
48276: 23c0 0005 da38 movel %d0,5da38 <_User_extensions_Switches_list+0x8>
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
4827c: 4a83 tstl %d3
4827e: 6754 beqs 482d4 <_User_extensions_Handler_initialization+0xa8><== NEVER TAKEN
extension = (User_extensions_Control *)
_Workspace_Allocate_or_fatal_error(
48280: 7434 moveq #52,%d2
48282: 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;
48286: 49f9 0004 d138 lea 4d138 <memcpy>,%a4
_User_extensions_Add_set( extension );
4828c: 47f9 0004 b198 lea 4b198 <_User_extensions_Add_set>,%a3
48292: 2f02 movel %d2,%sp@-
48294: 4eb9 0004 8744 jsr 48744 <_Workspace_Allocate_or_fatal_error>
4829a: 2440 moveal %d0,%a2
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
4829c: 2f02 movel %d2,%sp@-
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
4829e: 4282 clrl %d2
extension = (User_extensions_Control *)
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
482a0: 42a7 clrl %sp@-
482a2: 2f00 movel %d0,%sp@-
482a4: 4eb9 0004 d1a8 jsr 4d1a8 <memset>
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
482aa: 4fef 0010 lea %sp@(16),%sp
482ae: 6020 bras 482d0 <_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;
482b0: 4878 0020 pea 20 <OPER2+0xc>
482b4: 5282 addql #1,%d2
482b6: 2f03 movel %d3,%sp@-
482b8: 486a 0014 pea %a2@(20)
482bc: 0683 0000 0020 addil #32,%d3
482c2: 4e94 jsr %a4@
_User_extensions_Add_set( extension );
482c4: 2f0a movel %a2,%sp@-
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
482c6: 45ea 0034 lea %a2@(52),%a2
482ca: 4e93 jsr %a3@
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
482cc: 4fef 0010 lea %sp@(16),%sp
482d0: b882 cmpl %d2,%d4
482d2: 62dc bhis 482b0 <_User_extensions_Handler_initialization+0x84>
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
}
}
}
482d4: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4
482da: 4e5e unlk %fp
...
00049420 <_User_extensions_Remove_set>:
#include <rtems/score/userext.h>
void _User_extensions_Remove_set (
User_extensions_Control *the_extension
)
{
49420: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
49424: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49426: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
_Chain_Extract( &the_extension->Node );
4942a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4942c: 4eb9 0004 7040 jsr 47040 <_Chain_Extract> <== NOT EXECUTED
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
49432: 588f addql #4,%sp <== NOT EXECUTED
49434: 4aaa 0024 tstl %a2@(36) <== NOT EXECUTED
49438: 6712 beqs 4944c <_User_extensions_Remove_set+0x2c><== NOT EXECUTED
_Chain_Extract( &the_extension->Switch.Node );
4943a: 508a addql #8,%a2 <== NOT EXECUTED
4943c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED
}
49440: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
49444: 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 );
49446: 4ef9 0004 7040 jmp 47040 <_Chain_Extract> <== NOT EXECUTED
}
4944c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
49450: 4e5e unlk %fp <== NOT EXECUTED
0004839c <_User_extensions_Thread_create>:
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
4839c: 4e56 0000 linkw %fp,#0
483a0: 2f0a movel %a2,%sp@-
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
483a2: 2479 0005 dba2 moveal 5dba2 <_User_extensions_List>,%a2
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
483a8: 2f02 movel %d2,%sp@-
483aa: 242e 0008 movel %fp@(8),%d2
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
483ae: 601a bras 483ca <_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 ) {
483b0: 206a 0014 moveal %a2@(20),%a0
483b4: 4a88 tstl %a0
483b6: 6710 beqs 483c8 <_User_extensions_Thread_create+0x2c>
status = (*the_extension->Callouts.thread_create)(
483b8: 2f02 movel %d2,%sp@-
483ba: 2f39 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%sp@-
483c0: 4e90 jsr %a0@
_Thread_Executing,
the_thread
);
if ( !status )
483c2: 508f addql #8,%sp
483c4: 4a00 tstb %d0
483c6: 670e beqs 483d6 <_User_extensions_Thread_create+0x3a><== NEVER TAKEN
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
483c8: 2452 moveal %a2@,%a2
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
483ca: b5fc 0005 dba6 cmpal #383910,%a2
483d0: 66de bnes 483b0 <_User_extensions_Thread_create+0x14>
if ( !status )
return false;
}
}
return true;
483d2: 7001 moveq #1,%d0
483d4: 6002 bras 483d8 <_User_extensions_Thread_create+0x3c>
status = (*the_extension->Callouts.thread_create)(
_Thread_Executing,
the_thread
);
if ( !status )
return false;
483d6: 4200 clrb %d0 <== NOT EXECUTED
}
}
return true;
}
483d8: 242e fff8 movel %fp@(-8),%d2
483dc: 246e fffc moveal %fp@(-4),%a2
483e0: 4e5e unlk %fp <== NOT EXECUTED
000483e4 <_User_extensions_Thread_delete>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
483e4: 4e56 0000 linkw %fp,#0
483e8: 2f0a movel %a2,%sp@-
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
483ea: 2479 0005 dbaa moveal 5dbaa <_User_extensions_List+0x8>,%a2
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
483f0: 2f02 movel %d2,%sp@-
483f2: 242e 0008 movel %fp@(8),%d2
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
483f6: 6018 bras 48410 <_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 )
483f8: 206a 0020 moveal %a2@(32),%a0
483fc: 4a88 tstl %a0
483fe: 670c beqs 4840c <_User_extensions_Thread_delete+0x28><== NEVER TAKEN
(*the_extension->Callouts.thread_delete)(
48400: 2f02 movel %d2,%sp@-
48402: 2f39 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%sp@-
48408: 4e90 jsr %a0@
4840a: 508f addql #8,%sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
4840c: 246a 0004 moveal %a2@(4),%a2
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
48410: b5fc 0005 dba2 cmpal #383906,%a2
48416: 66e0 bnes 483f8 <_User_extensions_Thread_delete+0x14>
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
48418: 242e fff8 movel %fp@(-8),%d2
4841c: 246e fffc moveal %fp@(-4),%a2
48420: 4e5e unlk %fp <== NOT EXECUTED
00048c60 <_User_extensions_Thread_restart>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
48c60: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
48c64: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
48c66: 2479 0005 e6ca moveal 5e6ca <_User_extensions_List>,%a2 <== NOT EXECUTED
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
48c6c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
48c6e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
48c72: 6016 bras 48c8a <_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 )
48c74: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED
48c78: 4a88 tstl %a0 <== NOT EXECUTED
48c7a: 670c beqs 48c88 <_User_extensions_Thread_restart+0x28><== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
48c7c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
48c7e: 2f39 0005 e9e4 movel 5e9e4 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
48c84: 4e90 jsr %a0@ <== NOT EXECUTED
48c86: 508f addql #8,%sp <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
48c88: 2452 moveal %a2@,%a2 <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
48c8a: b5fc 0005 e6ce cmpal #386766,%a2 <== NOT EXECUTED
48c90: 66e2 bnes 48c74 <_User_extensions_Thread_restart+0x14><== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
48c92: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
48c96: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
48c9a: 4e5e unlk %fp <== NOT EXECUTED
...
00049a08 <_Watchdog_Adjust>:
Watchdog_Interval units
)
{
ISR_Level level;
_ISR_Disable( level );
49a08: 327c 0700 moveaw #1792,%a1 <== NOT EXECUTED
49a0c: 2209 movel %a1,%d1 <== NOT EXECUTED
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
49a0e: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
49a12: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
49a16: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
49a1a: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
49a1e: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
49a22: 40c0 movew %sr,%d0 <== NOT EXECUTED
49a24: 8280 orl %d0,%d1 <== NOT EXECUTED
49a26: 46c1 movew %d1,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
49a28: 244b moveal %a3,%a2 <== NOT EXECUTED
49a2a: 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 ) ) {
49a2c: b5c8 cmpal %a0,%a2 <== NOT EXECUTED
49a2e: 674c beqs 49a7c <_Watchdog_Adjust+0x74> <== NOT EXECUTED
switch ( direction ) {
49a30: 4a83 tstl %d3 <== NOT EXECUTED
49a32: 673c beqs 49a70 <_Watchdog_Adjust+0x68> <== NOT EXECUTED
49a34: 7201 moveq #1,%d1 <== NOT EXECUTED
49a36: b283 cmpl %d3,%d1 <== NOT EXECUTED
49a38: 6642 bnes 49a7c <_Watchdog_Adjust+0x74> <== NOT EXECUTED
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
49a3a: d5a8 0010 addl %d2,%a0@(16) <== NOT EXECUTED
break;
49a3e: 603c bras 49a7c <_Watchdog_Adjust+0x74> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) header->first );
49a40: 2053 moveal %a3@,%a0 <== NOT EXECUTED
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
49a42: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED
49a46: b682 cmpl %d2,%d3 <== NOT EXECUTED
49a48: 6308 blss 49a52 <_Watchdog_Adjust+0x4a> <== NOT EXECUTED
_Watchdog_First( header )->delta_interval -= units;
49a4a: 9682 subl %d2,%d3 <== NOT EXECUTED
49a4c: 2143 0010 movel %d3,%a0@(16) <== NOT EXECUTED
break;
49a50: 602a bras 49a7c <_Watchdog_Adjust+0x74> <== NOT EXECUTED
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
49a52: 7201 moveq #1,%d1 <== NOT EXECUTED
49a54: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED
_ISR_Enable( level );
49a58: 46c0 movew %d0,%sr <== NOT EXECUTED
_Watchdog_Tickle( header );
49a5a: 2f0b movel %a3,%sp@- <== NOT EXECUTED
49a5c: 4e94 jsr %a4@ <== NOT EXECUTED
_ISR_Disable( level );
49a5e: 2204 movel %d4,%d1 <== NOT EXECUTED
49a60: 40c0 movew %sr,%d0 <== NOT EXECUTED
49a62: 8280 orl %d0,%d1 <== NOT EXECUTED
49a64: 46c1 movew %d1,%sr <== NOT EXECUTED
if ( _Chain_Is_empty( header ) )
49a66: 588f addql #4,%sp <== NOT EXECUTED
49a68: b5d3 cmpal %a3@,%a2 <== NOT EXECUTED
49a6a: 6710 beqs 49a7c <_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;
49a6c: 9483 subl %d3,%d2 <== NOT EXECUTED
49a6e: 6008 bras 49a78 <_Watchdog_Adjust+0x70> <== NOT EXECUTED
_Watchdog_First( header )->delta_interval = 1;
_ISR_Enable( level );
_Watchdog_Tickle( header );
49a70: 49f9 0004 9c20 lea 49c20 <_Watchdog_Tickle>,%a4 <== NOT EXECUTED
_ISR_Disable( level );
49a76: 2809 movel %a1,%d4 <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
49a78: 4a82 tstl %d2 <== NOT EXECUTED
49a7a: 66c4 bnes 49a40 <_Watchdog_Adjust+0x38> <== NOT EXECUTED
}
break;
}
}
_ISR_Enable( level );
49a7c: 46c0 movew %d0,%sr <== NOT EXECUTED
}
49a7e: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED
49a84: 4e5e unlk %fp <== NOT EXECUTED
00055e08 <_Watchdog_Adjust_to_chain>:
Chain_Control *header,
Watchdog_Interval units_arg,
Chain_Control *to_fire
)
{
55e08: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
55e0c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
55e10: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
55e14: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
55e18: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
if ( units <= 0 ) {
55e1c: 4a80 tstl %d0 <== NOT EXECUTED
55e1e: 6770 beqs 55e90 <_Watchdog_Adjust_to_chain+0x88> <== NOT EXECUTED
return;
}
_ISR_Disable( level );
55e20: 307c 0700 moveaw #1792,%a0 <== NOT EXECUTED
55e24: 2208 movel %a0,%d1 <== NOT EXECUTED
55e26: 40c2 movew %sr,%d2 <== NOT EXECUTED
55e28: 8282 orl %d2,%d1 <== NOT EXECUTED
55e2a: 46c1 movew %d1,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
55e2c: 260a movel %a2,%d3 <== NOT EXECUTED
55e2e: 5883 addql #4,%d3 <== NOT EXECUTED
while ( 1 ) {
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
55e30: 2808 movel %a0,%d4 <== NOT EXECUTED
55e32: 6004 bras 55e38 <_Watchdog_Adjust_to_chain+0x30> <== NOT EXECUTED
}
_ISR_Disable( level );
while ( 1 ) {
if ( units <= 0 ) {
55e34: 4a80 tstl %d0 <== NOT EXECUTED
55e36: 6756 beqs 55e8e <_Watchdog_Adjust_to_chain+0x86> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
55e38: 2252 moveal %a2@,%a1 <== NOT EXECUTED
break;
}
if ( _Chain_Is_empty( header ) ) {
55e3a: b689 cmpl %a1,%d3 <== NOT EXECUTED
55e3c: 6750 beqs 55e8e <_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 ) {
55e3e: 2229 0010 movel %a1@(16),%d1 <== NOT EXECUTED
55e42: 2049 moveal %a1,%a0 <== NOT EXECUTED
55e44: b280 cmpl %d0,%d1 <== NOT EXECUTED
55e46: 6308 blss 55e50 <_Watchdog_Adjust_to_chain+0x48> <== NOT EXECUTED
first->delta_interval -= units;
55e48: 9280 subl %d0,%d1 <== NOT EXECUTED
55e4a: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED
break;
55e4e: 603e bras 55e8e <_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;
55e50: 9081 subl %d1,%d0 <== NOT EXECUTED
first->delta_interval = 0;
55e52: 42a9 0010 clrl %a1@(16) <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
55e56: 2850 moveal %a0@,%a4 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
55e58: 220b movel %a3,%d1 <== NOT EXECUTED
55e5a: 5881 addql #4,%d1 <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
55e5c: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
next->previous = previous;
previous->next = next;
55e60: 228c movel %a4,%a1@ <== NOT EXECUTED
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
55e62: 2949 0004 movel %a1,%a4@(4) <== NOT EXECUTED
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
55e66: 226b 0008 moveal %a3@(8),%a1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
55e6a: 2081 movel %d1,%a0@ <== NOT EXECUTED
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
55e6c: 2748 0008 movel %a0,%a3@(8) <== NOT EXECUTED
old_last_node->next = the_node;
55e70: 2288 movel %a0,%a1@ <== NOT EXECUTED
the_node->previous = old_last_node;
55e72: 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 );
55e76: 2204 movel %d4,%d1 <== NOT EXECUTED
55e78: 46c2 movew %d2,%sr <== NOT EXECUTED
55e7a: 8282 orl %d2,%d1 <== NOT EXECUTED
55e7c: 46c1 movew %d1,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
55e7e: 2212 movel %a2@,%d1 <== NOT EXECUTED
if ( _Chain_Is_empty( header ) )
55e80: b681 cmpl %d1,%d3 <== NOT EXECUTED
55e82: 67b0 beqs 55e34 <_Watchdog_Adjust_to_chain+0x2c> <== NOT EXECUTED
55e84: 2041 moveal %d1,%a0 <== NOT EXECUTED
break;
first = _Watchdog_First( header );
if ( first->delta_interval != 0 )
55e86: 4aa8 0010 tstl %a0@(16) <== NOT EXECUTED
55e8a: 67ca beqs 55e56 <_Watchdog_Adjust_to_chain+0x4e> <== NOT EXECUTED
55e8c: 60a6 bras 55e34 <_Watchdog_Adjust_to_chain+0x2c> <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
55e8e: 46c2 movew %d2,%sr <== NOT EXECUTED
}
55e90: 4cd7 1c1c moveml %sp@,%d2-%d4/%a2-%a4 <== NOT EXECUTED
55e94: 4e5e unlk %fp <== NOT EXECUTED
0004849c <_Watchdog_Insert>:
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
_ISR_Disable( level );
4849c: 327c 0700 moveaw #1792,%a1
484a0: 2009 movel %a1,%d0
void _Watchdog_Insert(
Chain_Control *header,
Watchdog_Control *the_watchdog
)
{
484a2: 4e56 ffec linkw %fp,#-20
484a6: 206e 000c moveal %fp@(12),%a0
484aa: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@
484ae: 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;
484b2: 2439 0005 deb8 movel 5deb8 <_Per_CPU_Information+0x8>,%d2
_ISR_Disable( level );
484b8: 40c1 movew %sr,%d1
484ba: 8081 orl %d1,%d0
484bc: 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 ) {
484be: 4aa8 0008 tstl %a0@(8)
484c2: 6706 beqs 484ca <_Watchdog_Insert+0x2e> <== ALWAYS TAKEN
_ISR_Enable( level );
484c4: 46c1 movew %d1,%sr <== NOT EXECUTED
return;
484c6: 6000 009a braw 48562 <_Watchdog_Insert+0xc6> <== NOT EXECUTED
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
484ca: 7001 moveq #1,%d0
* used around this flash point allowed interrupts to execute
* which violated the design assumptions. The critical section
* mechanism used here WAS redesigned to address this.
*/
_ISR_Flash( level );
484cc: 2449 moveal %a1,%a2
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
484ce: 2140 0008 movel %d0,%a0@(8)
_Watchdog_Sync_count++;
484d2: 2039 0005 db54 movel 5db54 <_Watchdog_Sync_count>,%d0
484d8: 5280 addql #1,%d0
484da: 23c0 0005 db54 movel %d0,5db54 <_Watchdog_Sync_count>
restart:
delta_interval = the_watchdog->initial;
484e0: 2028 000c movel %a0@(12),%d0
* cache *header!!
*
* Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc)
*
*/
for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
484e4: 2253 moveal %a3@,%a1
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
484e6: 4a80 tstl %d0
484e8: 673c beqs 48526 <_Watchdog_Insert+0x8a> <== NEVER TAKEN
484ea: 4a91 tstl %a1@
484ec: 6738 beqs 48526 <_Watchdog_Insert+0x8a> <== ALWAYS TAKEN
break;
if ( delta_interval < after->delta_interval ) {
484ee: 2629 0010 movel %a1@(16),%d3 <== NOT EXECUTED
484f2: b680 cmpl %d0,%d3 <== NOT EXECUTED
484f4: 6308 blss 484fe <_Watchdog_Insert+0x62> <== NOT EXECUTED
after->delta_interval -= delta_interval;
484f6: 9680 subl %d0,%d3 <== NOT EXECUTED
484f8: 2343 0010 movel %d3,%a1@(16) <== NOT EXECUTED
break;
484fc: 6028 bras 48526 <_Watchdog_Insert+0x8a> <== NOT EXECUTED
* used around this flash point allowed interrupts to execute
* which violated the design assumptions. The critical section
* mechanism used here WAS redesigned to address this.
*/
_ISR_Flash( level );
484fe: 280a movel %a2,%d4 <== NOT EXECUTED
48500: 46c1 movew %d1,%sr <== NOT EXECUTED
48502: 8881 orl %d1,%d4 <== NOT EXECUTED
48504: 46c4 movew %d4,%sr <== NOT EXECUTED
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
48506: 7801 moveq #1,%d4 <== NOT EXECUTED
48508: b8a8 0008 cmpl %a0@(8),%d4 <== NOT EXECUTED
4850c: 663e bnes 4854c <_Watchdog_Insert+0xb0> <== NOT EXECUTED
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
4850e: 2839 0005 dad2 movel 5dad2 <_Watchdog_Sync_level>,%d4 <== NOT EXECUTED
48514: b484 cmpl %d4,%d2 <== NOT EXECUTED
48516: 6408 bccs 48520 <_Watchdog_Insert+0x84> <== NOT EXECUTED
_Watchdog_Sync_level = insert_isr_nest_level;
48518: 23c2 0005 dad2 movel %d2,5dad2 <_Watchdog_Sync_level> <== NOT EXECUTED
goto restart;
4851e: 60c0 bras 484e0 <_Watchdog_Insert+0x44> <== NOT EXECUTED
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
_Watchdog_Sync_count--;
_ISR_Enable( level );
}
48520: 2251 moveal %a1@,%a1 <== NOT EXECUTED
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
48522: 9083 subl %d3,%d0 <== NOT EXECUTED
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
_Watchdog_Sync_level = insert_isr_nest_level;
goto restart;
}
}
48524: 60c0 bras 484e6 <_Watchdog_Insert+0x4a> <== NOT EXECUTED
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
48526: 2269 0004 moveal %a1@(4),%a1
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_ACTIVE;
4852a: 7602 moveq #2,%d3
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
4852c: 2451 moveal %a1@,%a2
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
4852e: 2140 0010 movel %d0,%a0@(16)
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
48532: 2039 0005 db58 movel 5db58 <_Watchdog_Ticks_since_boot>,%d0
48538: 2143 0008 movel %d3,%a0@(8)
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
4853c: 2149 0004 movel %a1,%a0@(4)
before_node = after_node->next;
after_node->next = the_node;
48540: 2288 movel %a0,%a1@
the_node->next = before_node;
before_node->previous = the_node;
48542: 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;
48546: 208a movel %a2,%a0@
48548: 2140 0014 movel %d0,%a0@(20)
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
4854c: 23c2 0005 dad2 movel %d2,5dad2 <_Watchdog_Sync_level>
_Watchdog_Sync_count--;
48552: 2039 0005 db54 movel 5db54 <_Watchdog_Sync_count>,%d0
48558: 5380 subql #1,%d0
4855a: 23c0 0005 db54 movel %d0,5db54 <_Watchdog_Sync_count>
_ISR_Enable( level );
48560: 46c1 movew %d1,%sr
}
48562: 4cd7 0c1c moveml %sp@,%d2-%d4/%a2-%a3
48566: 4e5e unlk %fp
...
000485b8 <_Watchdog_Remove>:
{
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
485b8: 203c 0000 0700 movel #1792,%d0
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
485be: 4e56 0000 linkw %fp,#0
485c2: 206e 0008 moveal %fp@(8),%a0
485c6: 2f0a movel %a2,%sp@-
485c8: 2f02 movel %d2,%sp@-
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
485ca: 40c1 movew %sr,%d1
485cc: 8081 orl %d1,%d0
485ce: 46c0 movew %d0,%sr
previous_state = the_watchdog->state;
485d0: 2028 0008 movel %a0@(8),%d0
switch ( previous_state ) {
485d4: 7401 moveq #1,%d2
485d6: b480 cmpl %d0,%d2
485d8: 670c beqs 485e6 <_Watchdog_Remove+0x2e> <== NEVER TAKEN
485da: 6242 bhis 4861e <_Watchdog_Remove+0x66> <== NEVER TAKEN
485dc: 143c 0003 moveb #3,%d2
485e0: b480 cmpl %d0,%d2
485e2: 653a bcss 4861e <_Watchdog_Remove+0x66> <== NEVER TAKEN
485e4: 6006 bras 485ec <_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;
485e6: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED
break;
485ea: 6032 bras 4861e <_Watchdog_Remove+0x66> <== NOT EXECUTED
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
_ISR_Enable( level );
return( previous_state );
}
485ec: 2250 moveal %a0@,%a1
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
485ee: 42a8 0008 clrl %a0@(8)
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
485f2: 4a91 tstl %a1@
485f4: 6708 beqs 485fe <_Watchdog_Remove+0x46> <== ALWAYS TAKEN
next_watchdog->delta_interval += the_watchdog->delta_interval;
485f6: 2428 0010 movel %a0@(16),%d2 <== NOT EXECUTED
485fa: d5a9 0010 addl %d2,%a1@(16) <== NOT EXECUTED
if ( _Watchdog_Sync_count )
485fe: 2479 0005 db54 moveal 5db54 <_Watchdog_Sync_count>,%a2
48604: 4a8a tstl %a2
48606: 670c beqs 48614 <_Watchdog_Remove+0x5c> <== ALWAYS TAKEN
_Watchdog_Sync_level = _ISR_Nest_level;
48608: 45f9 0005 deb8 lea 5deb8 <_Per_CPU_Information+0x8>,%a2 <== NOT EXECUTED
4860e: 23d2 0005 dad2 movel %a2@,5dad2 <_Watchdog_Sync_level> <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
48614: 2468 0004 moveal %a0@(4),%a2
next->previous = previous;
48618: 234a 0004 movel %a2,%a1@(4)
previous->next = next;
4861c: 2489 movel %a1,%a2@
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
4861e: 2279 0005 db58 moveal 5db58 <_Watchdog_Ticks_since_boot>,%a1
48624: 2149 0018 movel %a1,%a0@(24)
_ISR_Enable( level );
48628: 46c1 movew %d1,%sr
return( previous_state );
}
4862a: 241f movel %sp@+,%d2
4862c: 245f moveal %sp@+,%a2
4862e: 4e5e unlk %fp
...
00049684 <_Watchdog_Report>:
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
49684: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
printk(
49688: 223c 0005 cd15 movel #380181,%d1 <== NOT EXECUTED
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
4968e: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
49692: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED
49696: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
printk(
4969a: 2a28 0024 movel %a0@(36),%d5 <== NOT EXECUTED
4969e: 2828 0020 movel %a0@(32),%d4 <== NOT EXECUTED
496a2: 2628 001c movel %a0@(28),%d3 <== NOT EXECUTED
496a6: 2428 000c movel %a0@(12),%d2 <== NOT EXECUTED
496aa: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED
496ae: 4a80 tstl %d0 <== NOT EXECUTED
496b0: 6608 bnes 496ba <_Watchdog_Report+0x36> <== NOT EXECUTED
496b2: 223c 0005 cd1a movel #380186,%d1 <== NOT EXECUTED
496b8: 2001 movel %d1,%d0 <== NOT EXECUTED
496ba: 2f05 movel %d5,%sp@- <== NOT EXECUTED
496bc: 2f04 movel %d4,%sp@- <== NOT EXECUTED
496be: 2f03 movel %d3,%sp@- <== NOT EXECUTED
496c0: 2f08 movel %a0,%sp@- <== NOT EXECUTED
496c2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
496c4: 2f09 movel %a1,%sp@- <== NOT EXECUTED
496c6: 2f01 movel %d1,%sp@- <== NOT EXECUTED
496c8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
496ca: 4879 0005 cea4 pea 5cea4 <C.0.4034+0x44> <== NOT EXECUTED
496d0: 4eb9 0004 3dec jsr 43dec <printk> <== NOT EXECUTED
496d6: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
watch,
watch->routine,
watch->id,
watch->user_data
);
}
496da: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED
496e0: 4e5e unlk %fp <== NOT EXECUTED
00049610 <_Watchdog_Report_chain>:
)
{
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
49610: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
49616: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4961a: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED
4961e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
49622: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
49626: 40c3 movew %sr,%d3 <== NOT EXECUTED
49628: 8083 orl %d3,%d0 <== NOT EXECUTED
4962a: 46c0 movew %d0,%sr <== NOT EXECUTED
printk( "Watchdog Chain: %s %p\n", name, header );
4962c: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4962e: 49f9 0004 3dec lea 43dec <printk>,%a4 <== NOT EXECUTED
49634: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49636: 4879 0005 ce6e pea 5ce6e <C.0.4034+0xe> <== NOT EXECUTED
4963c: 4e94 jsr %a4@ <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4963e: 245b moveal %a3@+,%a2 <== NOT EXECUTED
if ( !_Chain_Is_empty( header ) ) {
49640: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49644: b7ca cmpal %a2,%a3 <== NOT EXECUTED
49646: 6726 beqs 4966e <_Watchdog_Report_chain+0x5e> <== NOT EXECUTED
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
49648: 49f9 0004 9684 lea 49684 <_Watchdog_Report>,%a4 <== NOT EXECUTED
4964e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49650: 42a7 clrl %sp@- <== NOT EXECUTED
49652: 4e94 jsr %a4@ <== NOT EXECUTED
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = header->first ;
node != _Chain_Tail(header) ;
node = node->next )
49654: 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 = header->first ;
49656: 508f addql #8,%sp <== NOT EXECUTED
49658: b7ca cmpal %a2,%a3 <== NOT EXECUTED
4965a: 66f2 bnes 4964e <_Watchdog_Report_chain+0x3e> <== NOT EXECUTED
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
4965c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4965e: 4879 0005 ce85 pea 5ce85 <C.0.4034+0x25> <== NOT EXECUTED
49664: 4eb9 0004 3dec jsr 43dec <printk> <== NOT EXECUTED
4966a: 508f addql #8,%sp <== NOT EXECUTED
4966c: 600a bras 49678 <_Watchdog_Report_chain+0x68> <== NOT EXECUTED
} else {
printk( "Chain is empty\n" );
4966e: 4879 0005 ce94 pea 5ce94 <C.0.4034+0x34> <== NOT EXECUTED
49674: 4e94 jsr %a4@ <== NOT EXECUTED
49676: 588f addql #4,%sp <== NOT EXECUTED
}
_ISR_Enable( level );
49678: 46c3 movew %d3,%sr <== NOT EXECUTED
}
4967a: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 <== NOT EXECUTED
49680: 4e5e unlk %fp <== NOT EXECUTED
00048634 <_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 );
48634: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
*/
void _Watchdog_Tickle(
Chain_Control *header
)
{
4863a: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
4863e: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED
48642: 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 );
48646: 40c2 movew %sr,%d2 <== NOT EXECUTED
48648: 8082 orl %d2,%d0 <== NOT EXECUTED
4864a: 46c0 movew %d0,%sr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
4864c: 264c moveal %a4,%a3 <== NOT EXECUTED
4864e: 245b moveal %a3@+,%a2 <== NOT EXECUTED
if ( _Chain_Is_empty( header ) )
48650: b7ca cmpal %a2,%a3 <== NOT EXECUTED
48652: 674c beqs 486a0 <_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) {
48654: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED
48658: 6708 beqs 48662 <_Watchdog_Tickle+0x2e> <== NOT EXECUTED
the_watchdog->delta_interval--;
4865a: 5380 subql #1,%d0 <== NOT EXECUTED
4865c: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
if ( the_watchdog->delta_interval != 0 )
48660: 663e bnes 486a0 <_Watchdog_Tickle+0x6c> <== NOT EXECUTED
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
48662: 4bf9 0004 85b8 lea 485b8 <_Watchdog_Remove>,%a5 <== NOT EXECUTED
case WATCHDOG_REMOVE_IT:
break;
}
_ISR_Disable( level );
48668: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED
if ( the_watchdog->delta_interval != 0 )
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
4866e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48670: 4e95 jsr %a5@ <== NOT EXECUTED
_ISR_Enable( level );
48672: 46c2 movew %d2,%sr <== NOT EXECUTED
switch( watchdog_state ) {
48674: 7202 moveq #2,%d1 <== NOT EXECUTED
48676: 588f addql #4,%sp <== NOT EXECUTED
48678: b280 cmpl %d0,%d1 <== NOT EXECUTED
4867a: 6610 bnes 4868c <_Watchdog_Tickle+0x58> <== NOT EXECUTED
case WATCHDOG_ACTIVE:
(*the_watchdog->routine)(
4867c: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED
48680: 2f2a 0020 movel %a2@(32),%sp@- <== NOT EXECUTED
48684: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED
48688: 4e90 jsr %a0@ <== NOT EXECUTED
the_watchdog->id,
the_watchdog->user_data
);
break;
4868a: 508f addql #8,%sp <== NOT EXECUTED
case WATCHDOG_REMOVE_IT:
break;
}
_ISR_Disable( level );
4868c: 2003 movel %d3,%d0 <== NOT EXECUTED
4868e: 40c2 movew %sr,%d2 <== NOT EXECUTED
48690: 8082 orl %d2,%d0 <== NOT EXECUTED
48692: 46c0 movew %d0,%sr <== NOT EXECUTED
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
48694: 2454 moveal %a4@,%a2 <== NOT EXECUTED
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
48696: b7ca cmpal %a2,%a3 <== NOT EXECUTED
48698: 6706 beqs 486a0 <_Watchdog_Tickle+0x6c> <== NOT EXECUTED
}
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
4869a: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED
4869e: 67ce beqs 4866e <_Watchdog_Tickle+0x3a> <== NOT EXECUTED
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
486a0: 46c2 movew %d2,%sr <== NOT EXECUTED
}
486a2: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED
486a8: 4e5e unlk %fp <== NOT EXECUTED
0005abe0 <_execve>:
int _execve(
const char *path __attribute__((unused)),
char *const argv[] __attribute__((unused)),
char *const envp[] __attribute__((unused))
)
{
5abe0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
5abe4: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
5abea: 4e5e unlk %fp <== NOT EXECUTED
const char *path __attribute__((unused)),
char *const argv[] __attribute__((unused)),
char *const envp[] __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
5abec: 2040 moveal %d0,%a0 <== NOT EXECUTED
5abee: 7058 moveq #88,%d0 <== NOT EXECUTED
5abf0: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
5abf2: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00059e28 <_kill_r>:
int _kill_r(
struct _reent *ptr,
pid_t pid,
int sig
)
{
59e28: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
59e2c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
59e30: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED
return killinfo( pid, sig, NULL );
59e34: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED
59e38: 42ae 0010 clrl %fp@(16) <== NOT EXECUTED
59e3c: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED
}
59e40: 4e5e unlk %fp <== NOT EXECUTED
struct _reent *ptr,
pid_t pid,
int sig
)
{
return killinfo( pid, sig, NULL );
59e42: 4ef9 0005 9fc4 jmp 59fc4 <killinfo> <== NOT EXECUTED
00045600 <adjtime>:
int adjtime(
struct timeval *delta,
struct timeval *olddelta
)
{
45600: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
45604: 2f0b movel %a3,%sp@- <== NOT EXECUTED
45606: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
4560a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4560c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
long adjustment;
/*
* Simple validations
*/
if ( !delta )
45610: 4a8a tstl %a2 <== NOT EXECUTED
45612: 670c beqs 45620 <adjtime+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )
45614: 203c 000f 423f movel #999999,%d0 <== NOT EXECUTED
4561a: b0aa 0004 cmpl %a2@(4),%d0 <== NOT EXECUTED
4561e: 6412 bccs 45632 <adjtime+0x32> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
45620: 4eb9 0004 d2cc jsr 4d2cc <__errno> <== NOT EXECUTED
45626: 2040 moveal %d0,%a0 <== NOT EXECUTED
45628: 7016 moveq #22,%d0 <== NOT EXECUTED
4562a: 2080 movel %d0,%a0@ <== NOT EXECUTED
4562c: 70ff moveq #-1,%d0 <== NOT EXECUTED
4562e: 6000 00ae braw 456de <adjtime+0xde> <== NOT EXECUTED
if ( olddelta ) {
45632: 4a8b tstl %a3 <== NOT EXECUTED
45634: 6706 beqs 4563c <adjtime+0x3c> <== NOT EXECUTED
olddelta->tv_sec = 0;
45636: 4293 clrl %a3@ <== NOT EXECUTED
olddelta->tv_usec = 0;
45638: 42ab 0004 clrl %a3@(4) <== NOT EXECUTED
}
/* convert delta to microseconds */
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
4563c: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED
45642: 4c12 0800 mulsl %a2@,%d0 <== NOT EXECUTED
adjustment += delta->tv_usec;
45646: d0aa 0004 addl %a2@(4),%d0 <== NOT EXECUTED
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
4564a: b0b9 0005 d630 cmpl 5d630 <Configuration+0xc>,%d0 <== NOT EXECUTED
45650: 6500 008a bcsw 456dc <adjtime+0xdc> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45654: 2039 0005 f004 movel 5f004 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4565a: 5280 addql #1,%d0 <== NOT EXECUTED
4565c: 23c0 0005 f004 movel %d0,5f004 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* This prevents context switches while we are adjusting the TOD
*/
_Thread_Disable_dispatch();
_TOD_Get( &ts );
45662: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
45666: 4eb9 0004 6ca0 jsr 46ca0 <_TOD_Get> <== NOT EXECUTED
ts.tv_sec += delta->tv_sec;
4566c: 2012 movel %a2@,%d0 <== NOT EXECUTED
4566e: d1ae fff8 addl %d0,%fp@(-8) <== NOT EXECUTED
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
45672: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
45678: 588f addql #4,%sp <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Get( &ts );
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
4567a: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED
4567e: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Get( &ts );
ts.tv_sec += delta->tv_sec;
45682: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
45686: d0ae fffc addl %fp@(-4),%d0 <== NOT EXECUTED
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
4568a: 6006 bras 45692 <adjtime+0x92> <== NOT EXECUTED
4568c: 0680 c465 3600 addil #-1000000000,%d0 <== NOT EXECUTED
45692: 2208 movel %a0,%d1 <== NOT EXECUTED
45694: 5288 addql #1,%a0 <== NOT EXECUTED
45696: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED
4569c: 62ee bhis 4568c <adjtime+0x8c> <== NOT EXECUTED
4569e: 6006 bras 456a6 <adjtime+0xa6> <== NOT EXECUTED
456a0: 0680 3b9a ca00 addil #1000000000,%d0 <== NOT EXECUTED
456a6: 2041 moveal %d1,%a0 <== NOT EXECUTED
456a8: 5381 subql #1,%d1 <== NOT EXECUTED
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
456aa: 0c80 c465 3600 cmpil #-1000000000,%d0 <== NOT EXECUTED
456b0: 63ee blss 456a0 <adjtime+0xa0> <== NOT EXECUTED
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
456b2: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
456b6: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
456ba: 2d48 fff8 movel %a0,%fp@(-8) <== NOT EXECUTED
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
456be: 4eb9 0004 6d3c jsr 46d3c <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
456c4: 4eb9 0004 7e3e jsr 47e3e <_Thread_Enable_dispatch> <== NOT EXECUTED
/* set the user's output */
if ( olddelta )
456ca: 588f addql #4,%sp <== NOT EXECUTED
456cc: 4a8b tstl %a3 <== NOT EXECUTED
456ce: 670c beqs 456dc <adjtime+0xdc> <== NOT EXECUTED
*olddelta = *delta;
456d0: 2012 movel %a2@,%d0 <== NOT EXECUTED
456d2: 222a 0004 movel %a2@(4),%d1 <== NOT EXECUTED
456d6: 2680 movel %d0,%a3@ <== NOT EXECUTED
456d8: 2741 0004 movel %d1,%a3@(4) <== NOT EXECUTED
return 0;
456dc: 4280 clrl %d0 <== NOT EXECUTED
}
456de: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED
456e2: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED
456e6: 4e5e unlk %fp <== NOT EXECUTED
...
00046dc8 <alarm>:
}
unsigned int alarm(
unsigned int seconds
)
{
46dc8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
46dcc: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
46dd0: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
46dd4: 4ab9 0006 1e2c tstl 61e2c <_POSIX_signals_Alarm_timer+0x1c><== NOT EXECUTED
46dda: 6620 bnes 46dfc <alarm+0x34> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
46ddc: 42b9 0006 1e18 clrl 61e18 <_POSIX_signals_Alarm_timer+0x8> <== NOT EXECUTED
the_watchdog->routine = routine;
46de2: 203c 0004 6dac movel #290220,%d0 <== NOT EXECUTED
the_watchdog->id = id;
46de8: 42b9 0006 1e30 clrl 61e30 <_POSIX_signals_Alarm_timer+0x20><== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
46dee: 23c0 0006 1e2c movel %d0,61e2c <_POSIX_signals_Alarm_timer+0x1c><== NOT EXECUTED
the_watchdog->id = id;
the_watchdog->user_data = user_data;
46df4: 42b9 0006 1e34 clrl 61e34 <_POSIX_signals_Alarm_timer+0x24><== NOT EXECUTED
46dfa: 6036 bras 46e32 <alarm+0x6a> <== NOT EXECUTED
_Watchdog_Initialize( the_timer, _POSIX_signals_Alarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
46dfc: 4879 0006 1e10 pea 61e10 <_POSIX_signals_Alarm_timer> <== NOT EXECUTED
46e02: 4eb9 0004 b4f8 jsr 4b4f8 <_Watchdog_Remove> <== NOT EXECUTED
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
46e08: 588f addql #4,%sp <== NOT EXECUTED
46e0a: 7201 moveq #1,%d1 <== NOT EXECUTED
46e0c: 5580 subql #2,%d0 <== NOT EXECUTED
46e0e: b280 cmpl %d0,%d1 <== NOT EXECUTED
46e10: 6520 bcss 46e32 <alarm+0x6a> <== NOT EXECUTED
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
remaining = the_timer->initial -
((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND);
46e12: 2839 0006 1e28 movel 61e28 <_POSIX_signals_Alarm_timer+0x18>,%d4<== NOT EXECUTED
46e18: 98b9 0006 1e24 subl 61e24 <_POSIX_signals_Alarm_timer+0x14>,%d4<== NOT EXECUTED
* The stop_time and start_time fields are snapshots of ticks since
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
remaining = the_timer->initial -
46e1e: 2439 0006 1e1c movel 61e1c <_POSIX_signals_Alarm_timer+0xc>,%d2<== NOT EXECUTED
((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND);
46e24: 4eb9 0004 92ec jsr 492ec <TOD_TICKS_PER_SECOND_method> <== NOT EXECUTED
46e2a: 4c40 4004 remul %d0,%d4,%d4 <== NOT EXECUTED
* The stop_time and start_time fields are snapshots of ticks since
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
remaining = the_timer->initial -
46e2e: 9484 subl %d4,%d2 <== NOT EXECUTED
46e30: 6002 bras 46e34 <alarm+0x6c> <== NOT EXECUTED
unsigned int alarm(
unsigned int seconds
)
{
unsigned int remaining = 0;
46e32: 4282 clrl %d2 <== NOT EXECUTED
remaining = the_timer->initial -
((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND);
}
}
if ( seconds )
46e34: 4a83 tstl %d3 <== NOT EXECUTED
46e36: 671a beqs 46e52 <alarm+0x8a> <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
46e38: 4879 0006 1e10 pea 61e10 <_POSIX_signals_Alarm_timer> <== NOT EXECUTED
46e3e: 4879 0006 215a pea 6215a <_Watchdog_Seconds_chain> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
46e44: 23c3 0006 1e1c movel %d3,61e1c <_POSIX_signals_Alarm_timer+0xc><== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
46e4a: 4eb9 0004 b3dc jsr 4b3dc <_Watchdog_Insert> <== NOT EXECUTED
46e50: 508f addql #8,%sp <== NOT EXECUTED
_Watchdog_Insert_seconds( the_timer, seconds );
return remaining;
}
46e52: 2002 movel %d2,%d0 <== NOT EXECUTED
46e54: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED
46e5a: 4e5e unlk %fp <== NOT EXECUTED
...
0004540c <clock_getcpuclockid>:
int clock_getcpuclockid(
pid_t pid,
clockid_t *clock_id
)
{
4540c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45410: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
45416: 4e5e unlk %fp <== NOT EXECUTED
int clock_getcpuclockid(
pid_t pid,
clockid_t *clock_id
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45418: 2040 moveal %d0,%a0 <== NOT EXECUTED
4541a: 7058 moveq #88,%d0 <== NOT EXECUTED
4541c: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
4541e: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045424 <clock_getenable_attr>:
int clock_getenable_attr(
clockid_t clock_id,
int *attr
)
{
45424: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45428: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
4542e: 4e5e unlk %fp <== NOT EXECUTED
int clock_getenable_attr(
clockid_t clock_id,
int *attr
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45430: 2040 moveal %d0,%a0 <== NOT EXECUTED
45432: 7058 moveq #88,%d0 <== NOT EXECUTED
45434: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
45436: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045920 <clock_getres>:
int clock_getres(
clockid_t clock_id,
struct timespec *res
)
{
45920: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45924: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
45928: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4592a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
if ( !res )
4592c: 4a88 tstl %a0 <== NOT EXECUTED
4592e: 6732 beqs 45962 <clock_getres+0x42> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
switch ( clock_id ) {
45930: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
45934: 7202 moveq #2,%d1 <== NOT EXECUTED
45936: 5380 subql #1,%d0 <== NOT EXECUTED
45938: b280 cmpl %d0,%d1 <== NOT EXECUTED
4593a: 6526 bcss 45962 <clock_getres+0x42> <== NOT EXECUTED
case CLOCK_REALTIME:
case CLOCK_PROCESS_CPUTIME:
case CLOCK_THREAD_CPUTIME:
if ( res ) {
res->tv_sec = rtems_configuration_get_microseconds_per_tick() /
4593c: 2039 0005 e0e0 movel 5e0e0 <Configuration+0xc>,%d0 <== NOT EXECUTED
45942: 2400 movel %d0,%d2 <== NOT EXECUTED
45944: 263c 000f 4240 movel #1000000,%d3 <== NOT EXECUTED
4594a: 4c43 2002 remul %d3,%d2,%d2 <== NOT EXECUTED
TOD_MICROSECONDS_PER_SECOND;
res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick();
4594e: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED
45954: 4c00 1800 mulsl %d0,%d1 <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
}
return 0;
45958: 4280 clrl %d0 <== NOT EXECUTED
case CLOCK_REALTIME:
case CLOCK_PROCESS_CPUTIME:
case CLOCK_THREAD_CPUTIME:
if ( res ) {
res->tv_sec = rtems_configuration_get_microseconds_per_tick() /
4595a: 2082 movel %d2,%a0@ <== NOT EXECUTED
TOD_MICROSECONDS_PER_SECOND;
res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick();
4595c: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
45960: 600e bras 45970 <clock_getres+0x50> <== NOT EXECUTED
}
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
45962: 4eb9 0004 d588 jsr 4d588 <__errno> <== NOT EXECUTED
45968: 2040 moveal %d0,%a0 <== NOT EXECUTED
4596a: 7016 moveq #22,%d0 <== NOT EXECUTED
4596c: 2080 movel %d0,%a0@ <== NOT EXECUTED
4596e: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
return 0;
}
45970: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45974: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
45978: 4e5e unlk %fp <== NOT EXECUTED
00045470 <clock_gettime>:
int clock_gettime(
clockid_t clock_id,
struct timespec *tp
)
{
45470: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45474: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
45478: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
4547c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
if ( !tp )
4547e: 4a80 tstl %d0 <== NOT EXECUTED
45480: 6608 bnes 4548a <clock_gettime+0x1a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
45482: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
45488: 6042 bras 454cc <clock_gettime+0x5c> <== NOT EXECUTED
if ( clock_id == CLOCK_REALTIME ) {
4548a: 7401 moveq #1,%d2 <== NOT EXECUTED
4548c: b481 cmpl %d1,%d2 <== NOT EXECUTED
4548e: 660a bnes 4549a <clock_gettime+0x2a> <== NOT EXECUTED
_TOD_Get(tp);
45490: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45492: 4eb9 0004 70dc jsr 470dc <_TOD_Get> <== NOT EXECUTED
45498: 6014 bras 454ae <clock_gettime+0x3e> <== NOT EXECUTED
return 0;
}
#ifdef CLOCK_MONOTONIC
if ( clock_id == CLOCK_MONOTONIC ) {
4549a: 7404 moveq #4,%d2 <== NOT EXECUTED
4549c: b481 cmpl %d1,%d2 <== NOT EXECUTED
4549e: 6706 beqs 454a6 <clock_gettime+0x36> <== NOT EXECUTED
return 0;
}
#endif
#ifdef _POSIX_CPUTIME
if ( clock_id == CLOCK_PROCESS_CPUTIME ) {
454a0: 7402 moveq #2,%d2 <== NOT EXECUTED
454a2: b481 cmpl %d1,%d2 <== NOT EXECUTED
454a4: 660e bnes 454b4 <clock_gettime+0x44> <== NOT EXECUTED
_TOD_Get_uptime_as_timespec( tp );
454a6: 2f00 movel %d0,%sp@- <== NOT EXECUTED
454a8: 4eb9 0004 7148 jsr 47148 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED
return 0;
454ae: 588f addql #4,%sp <== NOT EXECUTED
454b0: 4280 clrl %d0 <== NOT EXECUTED
454b2: 6020 bras 454d4 <clock_gettime+0x64> <== NOT EXECUTED
454b4: 41f9 0004 d710 lea 4d710 <__errno>,%a0 <== NOT EXECUTED
}
#endif
#ifdef _POSIX_THREAD_CPUTIME
if ( clock_id == CLOCK_THREAD_CPUTIME )
454ba: 7003 moveq #3,%d0 <== NOT EXECUTED
454bc: b081 cmpl %d1,%d0 <== NOT EXECUTED
454be: 660a bnes 454ca <clock_gettime+0x5a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
454c0: 4e90 jsr %a0@ <== NOT EXECUTED
454c2: 7258 moveq #88,%d1 <== NOT EXECUTED
454c4: 2040 moveal %d0,%a0 <== NOT EXECUTED
454c6: 2081 movel %d1,%a0@ <== NOT EXECUTED
454c8: 6008 bras 454d2 <clock_gettime+0x62> <== NOT EXECUTED
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
454ca: 4e90 jsr %a0@ <== NOT EXECUTED
454cc: 2040 moveal %d0,%a0 <== NOT EXECUTED
454ce: 7016 moveq #22,%d0 <== NOT EXECUTED
454d0: 2080 movel %d0,%a0@ <== NOT EXECUTED
454d2: 70ff moveq #-1,%d0 <== NOT EXECUTED
return 0;
}
454d4: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
454d8: 4e5e unlk %fp <== NOT EXECUTED
0004543c <clock_setenable_attr>:
int clock_setenable_attr(
clockid_t clock_id,
int attr
)
{
4543c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45440: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
45446: 4e5e unlk %fp <== NOT EXECUTED
int clock_setenable_attr(
clockid_t clock_id,
int attr
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45448: 2040 moveal %d0,%a0 <== NOT EXECUTED
4544a: 7058 moveq #88,%d0 <== NOT EXECUTED
4544c: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
4544e: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
000454dc <clock_settime>:
int clock_settime(
clockid_t clock_id,
const struct timespec *tp
)
{
454dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
454e0: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
454e4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
if ( !tp )
454e8: 4a88 tstl %a0 <== NOT EXECUTED
454ea: 6710 beqs 454fc <clock_settime+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( clock_id == CLOCK_REALTIME ) {
454ec: 7001 moveq #1,%d0 <== NOT EXECUTED
454ee: b081 cmpl %d1,%d0 <== NOT EXECUTED
454f0: 6634 bnes 45526 <clock_settime+0x4a> <== NOT EXECUTED
if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )
454f2: 203c 21da e4ff movel #567993599,%d0 <== NOT EXECUTED
454f8: b090 cmpl %a0@,%d0 <== NOT EXECUTED
454fa: 6508 bcss 45504 <clock_settime+0x28> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
454fc: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
45502: 6048 bras 4554c <clock_settime+0x70> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45504: 2039 0005 f6ec movel 5f6ec <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4550a: 5280 addql #1,%d0 <== NOT EXECUTED
4550c: 23c0 0005 f6ec movel %d0,5f6ec <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( tp );
45512: 2f08 movel %a0,%sp@- <== NOT EXECUTED
45514: 4eb9 0004 71a0 jsr 471a0 <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
4551a: 4eb9 0004 82a2 jsr 482a2 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
return 0;
45520: 588f addql #4,%sp <== NOT EXECUTED
45522: 4280 clrl %d0 <== NOT EXECUTED
45524: 602e bras 45554 <clock_settime+0x78> <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( tp );
_Thread_Enable_dispatch();
}
#ifdef _POSIX_CPUTIME
else if ( clock_id == CLOCK_PROCESS_CPUTIME )
45526: 7002 moveq #2,%d0 <== NOT EXECUTED
45528: b081 cmpl %d1,%d0 <== NOT EXECUTED
4552a: 6608 bnes 45534 <clock_settime+0x58> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
4552c: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
45532: 600e bras 45542 <clock_settime+0x66> <== NOT EXECUTED
45534: 41f9 0004 d710 lea 4d710 <__errno>,%a0 <== NOT EXECUTED
#endif
#ifdef _POSIX_THREAD_CPUTIME
else if ( clock_id == CLOCK_THREAD_CPUTIME )
4553a: 7003 moveq #3,%d0 <== NOT EXECUTED
4553c: b081 cmpl %d1,%d0 <== NOT EXECUTED
4553e: 660a bnes 4554a <clock_settime+0x6e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45540: 4e90 jsr %a0@ <== NOT EXECUTED
45542: 2040 moveal %d0,%a0 <== NOT EXECUTED
45544: 7258 moveq #88,%d1 <== NOT EXECUTED
45546: 2081 movel %d1,%a0@ <== NOT EXECUTED
45548: 6008 bras 45552 <clock_settime+0x76> <== NOT EXECUTED
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
4554a: 4e90 jsr %a0@ <== NOT EXECUTED
4554c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4554e: 7016 moveq #22,%d0 <== NOT EXECUTED
45550: 2080 movel %d0,%a0@ <== NOT EXECUTED
45552: 70ff moveq #-1,%d0 <== NOT EXECUTED
return 0;
}
45554: 4e5e unlk %fp <== NOT EXECUTED
00045454 <fork>:
#include <sys/types.h>
#include <errno.h>
#include <rtems/seterr.h>
int fork( void )
{
45454: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45458: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
4545e: 4e5e unlk %fp <== NOT EXECUTED
#include <errno.h>
#include <rtems/seterr.h>
int fork( void )
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45460: 2040 moveal %d0,%a0 <== NOT EXECUTED
45462: 7058 moveq #88,%d0 <== NOT EXECUTED
45464: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
45466: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
0004528c <getitimer>:
int getitimer(
int which,
struct itimerval *value
)
{
4528c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
if ( !value )
45290: 4aae 000c tstl %fp@(12) <== NOT EXECUTED
45294: 660e bnes 452a4 <getitimer+0x18> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
45296: 4eb9 0004 ce90 jsr 4ce90 <__errno> <== NOT EXECUTED
4529c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4529e: 700e moveq #14,%d0 <== NOT EXECUTED
452a0: 2080 movel %d0,%a0@ <== NOT EXECUTED
452a2: 6020 bras 452c4 <getitimer+0x38> <== NOT EXECUTED
452a4: 41f9 0004 ce90 lea 4ce90 <__errno>,%a0 <== NOT EXECUTED
switch ( which ) {
452aa: 7002 moveq #2,%d0 <== NOT EXECUTED
452ac: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
452b0: 650a bcss 452bc <getitimer+0x30> <== NOT EXECUTED
case ITIMER_REAL:
case ITIMER_VIRTUAL:
case ITIMER_PROF:
rtems_set_errno_and_return_minus_one( ENOSYS );
452b2: 4e90 jsr %a0@ <== NOT EXECUTED
452b4: 7258 moveq #88,%d1 <== NOT EXECUTED
452b6: 2040 moveal %d0,%a0 <== NOT EXECUTED
452b8: 2081 movel %d1,%a0@ <== NOT EXECUTED
452ba: 6008 bras 452c4 <getitimer+0x38> <== NOT EXECUTED
default:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
452bc: 4e90 jsr %a0@ <== NOT EXECUTED
452be: 2040 moveal %d0,%a0 <== NOT EXECUTED
452c0: 7016 moveq #22,%d0 <== NOT EXECUTED
452c2: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
452c4: 70ff moveq #-1,%d0 <== NOT EXECUTED
452c6: 4e5e unlk %fp <== NOT EXECUTED
...
0004582c <kill>:
int kill(
pid_t pid,
int sig
)
{
4582c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return killinfo( pid, sig, NULL );
45830: 42a7 clrl %sp@- <== NOT EXECUTED
45832: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
45836: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4583a: 4eb9 0004 b0b0 jsr 4b0b0 <killinfo> <== NOT EXECUTED
}
45840: 4e5e unlk %fp <== NOT EXECUTED
00059fc4 <killinfo>:
int killinfo(
pid_t pid,
int sig,
const union sigval *value
)
{
59fc4: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED
59fc8: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ <== NOT EXECUTED
59fcc: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
59fd0: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
POSIX_signals_Siginfo_node *psiginfo;
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid != getpid() )
59fd4: 4eb9 0005 9be8 jsr 59be8 <getpid> <== NOT EXECUTED
59fda: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
59fde: 6710 beqs 59ff0 <killinfo+0x2c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ESRCH );
59fe0: 4eb9 0004 c88c jsr 4c88c <__errno> <== NOT EXECUTED
59fe6: 7403 moveq #3,%d2 <== NOT EXECUTED
59fe8: 2040 moveal %d0,%a0 <== NOT EXECUTED
59fea: 2082 movel %d2,%a0@ <== NOT EXECUTED
59fec: 6000 01ae braw 5a19c <killinfo+0x1d8> <== NOT EXECUTED
/*
* Validate the signal passed.
*/
if ( !sig )
59ff0: 4a82 tstl %d2 <== NOT EXECUTED
59ff2: 670a beqs 59ffe <killinfo+0x3a> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
59ff4: 2202 movel %d2,%d1 <== NOT EXECUTED
59ff6: 5381 subql #1,%d1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
59ff8: 701f moveq #31,%d0 <== NOT EXECUTED
59ffa: b081 cmpl %d1,%d0 <== NOT EXECUTED
59ffc: 6410 bccs 5a00e <killinfo+0x4a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
59ffe: 4eb9 0004 c88c jsr 4c88c <__errno> <== NOT EXECUTED
5a004: 7216 moveq #22,%d1 <== NOT EXECUTED
5a006: 2040 moveal %d0,%a0 <== NOT EXECUTED
5a008: 2081 movel %d1,%a0@ <== NOT EXECUTED
5a00a: 6000 0190 braw 5a19c <killinfo+0x1d8> <== NOT EXECUTED
/*
* If the signal is being ignored, then we are out of here.
*/
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )
5a00e: 2602 movel %d2,%d3 <== NOT EXECUTED
5a010: 2002 movel %d2,%d0 <== NOT EXECUTED
5a012: e58b lsll #2,%d3 <== NOT EXECUTED
5a014: e988 lsll #4,%d0 <== NOT EXECUTED
5a016: 9083 subl %d3,%d0 <== NOT EXECUTED
5a018: 0680 0005 ded2 addil #384722,%d0 <== NOT EXECUTED
5a01e: 7601 moveq #1,%d3 <== NOT EXECUTED
5a020: 2040 moveal %d0,%a0 <== NOT EXECUTED
5a022: b690 cmpl %a0@,%d3 <== NOT EXECUTED
5a024: 6700 01a6 beqw 5a1cc <killinfo+0x208> <== NOT EXECUTED
/*
* P1003.1c/Draft 10, p. 33 says that certain signals should always
* be directed to the executing thread such as those caused by hardware
* faults.
*/
if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )
5a028: 7008 moveq #8,%d0 <== NOT EXECUTED
5a02a: b082 cmpl %d2,%d0 <== NOT EXECUTED
5a02c: 6710 beqs 5a03e <killinfo+0x7a> <== NOT EXECUTED
5a02e: 163c 0004 moveb #4,%d3 <== NOT EXECUTED
5a032: b682 cmpl %d2,%d3 <== NOT EXECUTED
5a034: 6708 beqs 5a03e <killinfo+0x7a> <== NOT EXECUTED
5a036: 103c 000b moveb #11,%d0 <== NOT EXECUTED
5a03a: b082 cmpl %d2,%d0 <== NOT EXECUTED
5a03c: 6616 bnes 5a054 <killinfo+0x90> <== NOT EXECUTED
return pthread_kill( pthread_self(), sig );
5a03e: 4eb9 0005 a3ac jsr 5a3ac <pthread_self> <== NOT EXECUTED
5a044: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a046: 2f00 movel %d0,%sp@- <== NOT EXECUTED
5a048: 4eb9 0005 a2f4 jsr 5a2f4 <pthread_kill> <== NOT EXECUTED
5a04e: 508f addql #8,%sp <== NOT EXECUTED
5a050: 6000 017c braw 5a1ce <killinfo+0x20a> <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
5a054: 7601 moveq #1,%d3 <== NOT EXECUTED
/*
* Build up a siginfo structure
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
siginfo->si_code = SI_USER;
5a056: 7001 moveq #1,%d0 <== NOT EXECUTED
5a058: e3ab lsll %d1,%d3 <== NOT EXECUTED
/*
* Build up a siginfo structure
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
5a05a: 2d42 fff4 movel %d2,%fp@(-12) <== NOT EXECUTED
siginfo->si_code = SI_USER;
5a05e: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
if ( !value ) {
5a062: 4a8a tstl %a2 <== NOT EXECUTED
5a064: 6606 bnes 5a06c <killinfo+0xa8> <== NOT EXECUTED
siginfo->si_value.sival_int = 0;
5a066: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED
5a06a: 6004 bras 5a070 <killinfo+0xac> <== NOT EXECUTED
} else {
siginfo->si_value = *value;
5a06c: 2d52 fffc movel %a2@,%fp@(-4) <== NOT EXECUTED
5a070: 2039 0005 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
5a076: 5280 addql #1,%d0 <== NOT EXECUTED
5a078: 23c0 0005 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level><== NOT EXECUTED
/*
* Is the currently executing thread interested? If so then it will
* get it an execute it as soon as the dispatcher executes.
*/
the_thread = _Thread_Executing;
5a07e: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( _POSIX_signals_Is_interested( api, mask ) ) {
5a084: 2268 010e moveal %a0@(270),%a1 <== NOT EXECUTED
5a088: 2029 00d0 movel %a1@(208),%d0 <== NOT EXECUTED
5a08c: 4680 notl %d0 <== NOT EXECUTED
5a08e: c083 andl %d3,%d0 <== NOT EXECUTED
5a090: 6600 00ae bnew 5a140 <killinfo+0x17c> <== NOT EXECUTED
/* XXX violation of visibility -- need to define thread queue support */
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
5a094: 2279 0005 e056 moveal 5e056 <_POSIX_signals_Wait_queue>,%a1<== NOT EXECUTED
5a09a: 601e bras 5a0ba <killinfo+0xf6> <== NOT EXECUTED
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
5a09c: 2003 movel %d3,%d0 <== NOT EXECUTED
for ( the_node = the_chain->first ;
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
the_thread = (Thread_Control *)the_node;
5a09e: 2049 moveal %a1,%a0 <== NOT EXECUTED
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
5a0a0: c0a9 0030 andl %a1@(48),%d0 <== NOT EXECUTED
for ( the_node = the_chain->first ;
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
the_thread = (Thread_Control *)the_node;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
5a0a4: 2469 010e moveal %a1@(270),%a2 <== NOT EXECUTED
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
5a0a8: 6600 0096 bnew 5a140 <killinfo+0x17c> <== NOT EXECUTED
/*
* Is this thread is blocked waiting for another signal but has
* not blocked this one?
*/
if (~api->signals_blocked & mask)
5a0ac: 202a 00d0 movel %a2@(208),%d0 <== NOT EXECUTED
5a0b0: 4680 notl %d0 <== NOT EXECUTED
5a0b2: c083 andl %d3,%d0 <== NOT EXECUTED
5a0b4: 6600 008a bnew 5a140 <killinfo+0x17c> <== NOT EXECUTED
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
5a0b8: 2251 moveal %a1@,%a1 <== NOT EXECUTED
/* XXX violation of visibility -- need to define thread queue support */
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
5a0ba: b3fc 0005 e05a cmpal #385114,%a1 <== NOT EXECUTED
5a0c0: 66da bnes 5a09c <killinfo+0xd8> <== NOT EXECUTED
* NOTES:
*
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
5a0c2: 4280 clrl %d0 <== NOT EXECUTED
5a0c4: 1039 0005 c182 moveb 5c182 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
5a0ca: 45f9 0005 d9f0 lea 5d9f0 <_Objects_Information_table+0x8>,%a2<== NOT EXECUTED
5a0d0: 5280 addql #1,%d0 <== NOT EXECUTED
*
* NOTES:
*
* + rtems internal threads do not receive signals.
*/
interested = NULL;
5a0d2: 91c8 subal %a0,%a0 <== NOT EXECUTED
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
/*
* This can occur when no one is interested and an API is not configured.
*/
if ( !_Objects_Information_table[ the_api ] )
5a0d4: 225a moveal %a2@+,%a1 <== NOT EXECUTED
5a0d6: 4a89 tstl %a1 <== NOT EXECUTED
5a0d8: 675a beqs 5a134 <killinfo+0x170> <== NOT EXECUTED
continue;
the_info = _Objects_Information_table[ the_api ][ 1 ];
5a0da: 2269 0004 moveal %a1@(4),%a1 <== NOT EXECUTED
*/
if ( !the_info )
continue;
#endif
maximum = the_info->maximum;
5a0de: 4287 clrl %d7 <== NOT EXECUTED
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
5a0e0: 7801 moveq #1,%d4 <== NOT EXECUTED
*/
#define _POSIX_signals_Is_interested( _api, _mask ) \
( ~(_api)->signals_blocked & (_mask) )
int killinfo(
5a0e2: 2669 0018 moveal %a1@(24),%a3 <== NOT EXECUTED
5a0e6: 588b addql #4,%a3 <== NOT EXECUTED
*/
if ( !the_info )
continue;
#endif
maximum = the_info->maximum;
5a0e8: 3e29 000e movew %a1@(14),%d7 <== NOT EXECUTED
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
5a0ec: 6042 bras 5a130 <killinfo+0x16c> <== NOT EXECUTED
the_thread = (Thread_Control *) object_table[ index ];
5a0ee: 225b moveal %a3@+,%a1 <== NOT EXECUTED
if ( !the_thread )
5a0f0: 4a89 tstl %a1 <== NOT EXECUTED
5a0f2: 673a beqs 5a12e <killinfo+0x16a> <== NOT EXECUTED
/*
* If this thread is of lower priority than the interested thread,
* go on to the next thread.
*/
if ( the_thread->current_priority > interested_priority )
5a0f4: 2229 0014 movel %a1@(20),%d1 <== NOT EXECUTED
5a0f8: b081 cmpl %d1,%d0 <== NOT EXECUTED
5a0fa: 6532 bcss 5a12e <killinfo+0x16a> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( !api )
continue;
#endif
if ( !_POSIX_signals_Is_interested( api, mask ) )
5a0fc: 2869 010e moveal %a1@(270),%a4 <== NOT EXECUTED
5a100: 2a2c 00d0 movel %a4@(208),%d5 <== NOT EXECUTED
5a104: 4685 notl %d5 <== NOT EXECUTED
5a106: ca83 andl %d3,%d5 <== NOT EXECUTED
5a108: 6724 beqs 5a12e <killinfo+0x16a> <== NOT EXECUTED
*
* NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
* so we never have to worry about deferencing a NULL
* interested thread.
*/
if ( the_thread->current_priority < interested_priority ) {
5a10a: b081 cmpl %d1,%d0 <== NOT EXECUTED
5a10c: 621c bhis 5a12a <killinfo+0x166> <== NOT EXECUTED
* and blocking interruptibutable by signal.
*
* If the interested thread is ready, don't think about changing.
*/
if ( interested && !_States_Is_ready( interested->current_state ) ) {
5a10e: 4a88 tstl %a0 <== NOT EXECUTED
5a110: 671c beqs 5a12e <killinfo+0x16a> <== NOT EXECUTED
5a112: 2c28 0010 movel %a0@(16),%d6 <== NOT EXECUTED
5a116: 6716 beqs 5a12e <killinfo+0x16a> <== NOT EXECUTED
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {
5a118: 2a29 0010 movel %a1@(16),%d5 <== NOT EXECUTED
5a11c: 670c beqs 5a12a <killinfo+0x166> <== NOT EXECUTED
continue;
}
DEBUG_STEP("6");
/* prefer blocked/interruptible over blocked/not interruptible */
if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
5a11e: 0806 001c btst #28,%d6 <== NOT EXECUTED
5a122: 660a bnes 5a12e <killinfo+0x16a> <== NOT EXECUTED
DEBUG_STEP("7");
if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
5a124: 0805 001c btst #28,%d5 <== NOT EXECUTED
5a128: 6704 beqs 5a12e <killinfo+0x16a> <== NOT EXECUTED
*/
if ( interested && !_States_Is_ready( interested->current_state ) ) {
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {
5a12a: 2001 movel %d1,%d0 <== NOT EXECUTED
5a12c: 2049 moveal %a1,%a0 <== NOT EXECUTED
#endif
maximum = the_info->maximum;
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
5a12e: 5284 addql #1,%d4 <== NOT EXECUTED
5a130: be84 cmpl %d4,%d7 <== NOT EXECUTED
5a132: 64ba bccs 5a0ee <killinfo+0x12a> <== NOT EXECUTED
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
5a134: b5fc 0005 d9f8 cmpal #383480,%a2 <== NOT EXECUTED
5a13a: 6698 bnes 5a0d4 <killinfo+0x110> <== NOT EXECUTED
}
}
}
}
if ( interested ) {
5a13c: 4a88 tstl %a0 <== NOT EXECUTED
5a13e: 6716 beqs 5a156 <killinfo+0x192> <== NOT EXECUTED
/*
* Returns true if the signal was synchronously given to a thread
* blocked waiting for the signal.
*/
if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {
5a140: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
5a144: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a146: 2f08 movel %a0,%sp@- <== NOT EXECUTED
5a148: 4eb9 0005 a1f8 jsr 5a1f8 <_POSIX_signals_Unblock_thread> <== NOT EXECUTED
5a14e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
5a152: 4a00 tstb %d0 <== NOT EXECUTED
5a154: 6670 bnes 5a1c6 <killinfo+0x202> <== NOT EXECUTED
/*
* We may have woken up a thread but we definitely need to post the
* signal to the process wide information set.
*/
_POSIX_signals_Set_process_signals( mask );
5a156: 2f03 movel %d3,%sp@- <== NOT EXECUTED
if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {
5a158: 7602 moveq #2,%d3 <== NOT EXECUTED
/*
* We may have woken up a thread but we definitely need to post the
* signal to the process wide information set.
*/
_POSIX_signals_Set_process_signals( mask );
5a15a: 4eb9 0005 a1d8 jsr 5a1d8 <_POSIX_signals_Set_process_signals><== NOT EXECUTED
if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {
5a160: 588f addql #4,%sp <== NOT EXECUTED
5a162: 2002 movel %d2,%d0 <== NOT EXECUTED
5a164: 41f9 0005 deca lea 5deca <_POSIX_signals_Vectors>,%a0 <== NOT EXECUTED
5a16a: e588 lsll #2,%d0 <== NOT EXECUTED
5a16c: e98a lsll #4,%d2 <== NOT EXECUTED
5a16e: 9480 subl %d0,%d2 <== NOT EXECUTED
5a170: b6b0 2800 cmpl %a0@(00000000,%d2:l),%d3 <== NOT EXECUTED
5a174: 6650 bnes 5a1c6 <killinfo+0x202> <== NOT EXECUTED
psiginfo = (POSIX_signals_Siginfo_node *)
_Chain_Get( &_POSIX_signals_Inactive_siginfo );
5a176: 4879 0005 e04a pea 5e04a <_POSIX_signals_Inactive_siginfo> <== NOT EXECUTED
5a17c: 4eb9 0004 6008 jsr 46008 <_Chain_Get> <== NOT EXECUTED
if ( !psiginfo ) {
5a182: 588f addql #4,%sp <== NOT EXECUTED
_POSIX_signals_Set_process_signals( mask );
if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {
psiginfo = (POSIX_signals_Siginfo_node *)
_Chain_Get( &_POSIX_signals_Inactive_siginfo );
5a184: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( !psiginfo ) {
5a186: 4a80 tstl %d0 <== NOT EXECUTED
5a188: 6616 bnes 5a1a0 <killinfo+0x1dc> <== NOT EXECUTED
_Thread_Enable_dispatch();
5a18a: 4eb9 0004 7522 jsr 47522 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EAGAIN );
5a190: 4eb9 0004 c88c jsr 4c88c <__errno> <== NOT EXECUTED
5a196: 2040 moveal %d0,%a0 <== NOT EXECUTED
5a198: 700b moveq #11,%d0 <== NOT EXECUTED
5a19a: 2080 movel %d0,%a0@ <== NOT EXECUTED
5a19c: 70ff moveq #-1,%d0 <== NOT EXECUTED
5a19e: 602e bras 5a1ce <killinfo+0x20a> <== NOT EXECUTED
}
psiginfo->Info = *siginfo;
5a1a0: 4878 000c pea c <OPER1> <== NOT EXECUTED
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
5a1a4: 0682 0005 e0c2 addil #385218,%d2 <== NOT EXECUTED
if ( !psiginfo ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EAGAIN );
}
psiginfo->Info = *siginfo;
5a1aa: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
5a1ae: 486a 0008 pea %a2@(8) <== NOT EXECUTED
5a1b2: 4eb9 0004 d138 jsr 4d138 <memcpy> <== NOT EXECUTED
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
5a1b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5a1ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a1bc: 4eb9 0004 5fa8 jsr 45fa8 <_Chain_Append> <== NOT EXECUTED
5a1c2: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
5a1c6: 4eb9 0004 7522 jsr 47522 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* If the signal is being ignored, then we are out of here.
*/
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )
return 0;
5a1cc: 4280 clrl %d0 <== NOT EXECUTED
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
return 0;
}
5a1ce: 4cee 1cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a4 <== NOT EXECUTED
5a1d4: 4e5e unlk %fp <== NOT EXECUTED
0004546c <lio_listio>:
int mode __attribute__((unused)),
struct aiocb * const list[] __attribute__((unused)),
int nent __attribute__((unused)),
struct sigevent *sig __attribute__((unused))
)
{
4546c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45470: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
45476: 4e5e unlk %fp <== NOT EXECUTED
struct aiocb * const list[] __attribute__((unused)),
int nent __attribute__((unused)),
struct sigevent *sig __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45478: 2040 moveal %d0,%a0 <== NOT EXECUTED
4547a: 7058 moveq #88,%d0 <== NOT EXECUTED
4547c: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
4547e: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045484 <mprotect>:
const void *addr __attribute__((unused)),
size_t len __attribute__((unused)),
int prot __attribute__((unused)) )
{
return 0;
}
45484: 4280 clrl %d0 <== NOT EXECUTED
int mprotect(
const void *addr __attribute__((unused)),
size_t len __attribute__((unused)),
int prot __attribute__((unused)) )
{
45486: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return 0;
}
4548a: 4e5e unlk %fp <== NOT EXECUTED
...
000498f0 <mq_close>:
*/
int mq_close(
mqd_t mqdes
)
{
498f0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
498f4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
498f6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
498fa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
498fe: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49904: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
if ( location == OBJECTS_LOCAL ) {
4990a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4990e: 2440 moveal %d0,%a2 <== NOT EXECUTED
49910: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
49914: 663a bnes 49950 <mq_close+0x60> <== NOT EXECUTED
* First update the actual message queue to reflect this descriptor
* being disassociated. This may result in the queue being really
* deleted.
*/
the_mq = the_mq_fd->Queue;
49916: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED
the_mq->open_count -= 1;
4991a: 53a8 0016 subql #1,%a0@(22) <== NOT EXECUTED
_POSIX_Message_queue_Delete( the_mq );
4991e: 2f08 movel %a0,%sp@- <== NOT EXECUTED
49920: 4eb9 0004 9968 jsr 49968 <_POSIX_Message_queue_Delete> <== NOT EXECUTED
/*
* Now close this file descriptor.
*/
_Objects_Close(
49926: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49928: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
4992e: 4eb9 0004 c644 jsr 4c644 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
POSIX_Message_queue_Control_fd *the_mq_fd
)
{
_Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
49934: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49936: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
4993c: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
&_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
49942: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
49948: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
4994c: 4280 clrl %d0 <== NOT EXECUTED
4994e: 600e bras 4995e <mq_close+0x6e> <== NOT EXECUTED
/*
* OBJECTS_REMOTE:
* OBJECTS_ERROR:
*/
rtems_set_errno_and_return_minus_one( EBADF );
49950: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49956: 2040 moveal %d0,%a0 <== NOT EXECUTED
49958: 7009 moveq #9,%d0 <== NOT EXECUTED
4995a: 2080 movel %d0,%a0@ <== NOT EXECUTED
4995c: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
4995e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
49962: 4e5e unlk %fp <== NOT EXECUTED
...
000499b8 <mq_getattr>:
int mq_getattr(
mqd_t mqdes,
struct mq_attr *mqstat
)
{
499b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
499bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
499be: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
CORE_message_queue_Attributes *the_mq_attr;
if ( !mqstat )
499c2: 4a8a tstl %a2 <== NOT EXECUTED
499c4: 660e bnes 499d4 <mq_getattr+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
499c6: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
499cc: 7216 moveq #22,%d1 <== NOT EXECUTED
499ce: 2040 moveal %d0,%a0 <== NOT EXECUTED
499d0: 2081 movel %d1,%a0@ <== NOT EXECUTED
499d2: 6050 bras 49a24 <mq_getattr+0x6c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
499d4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
499d8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
499dc: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
499e2: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
499e8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
499ec: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
499f0: 6626 bnes 49a18 <mq_getattr+0x60> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
499f2: 2240 moveal %d0,%a1 <== NOT EXECUTED
499f4: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED
* Return the old values.
*/
the_mq_attr = &the_mq->Message_queue.Attributes;
mqstat->mq_flags = the_mq_fd->oflag;
499f8: 24a9 0014 movel %a1@(20),%a2@ <== NOT EXECUTED
mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size;
499fc: 2568 0066 0008 movel %a0@(102),%a2@(8) <== NOT EXECUTED
mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages;
49a02: 2568 005e 0004 movel %a0@(94),%a2@(4) <== NOT EXECUTED
mqstat->mq_curmsgs = the_mq->Message_queue.number_of_pending_messages;
49a08: 2568 0062 000c movel %a0@(98),%a2@(12) <== NOT EXECUTED
_Thread_Enable_dispatch();
49a0e: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
49a14: 4280 clrl %d0 <== NOT EXECUTED
49a16: 600e bras 49a26 <mq_getattr+0x6e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
49a18: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49a1e: 2040 moveal %d0,%a0 <== NOT EXECUTED
49a20: 7009 moveq #9,%d0 <== NOT EXECUTED
49a22: 2080 movel %d0,%a0@ <== NOT EXECUTED
49a24: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
49a26: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
49a2a: 4e5e unlk %fp <== NOT EXECUTED
...
00049a66 <mq_notify>:
int mq_notify(
mqd_t mqdes,
const struct sigevent *notification
)
{
49a66: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
49a6a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49a6c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49a6e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49a72: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49a76: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49a7c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
49a80: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
49a86: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49a8a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
49a8e: 665e bnes 49aee <mq_notify+0x88> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
49a90: 2040 moveal %d0,%a0 <== NOT EXECUTED
49a92: 2468 0010 moveal %a0@(16),%a2 <== NOT EXECUTED
if ( notification ) {
49a96: 4a82 tstl %d2 <== NOT EXECUTED
49a98: 6742 beqs 49adc <mq_notify+0x76> <== NOT EXECUTED
if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) {
49a9a: 4aaa 007a tstl %a2@(122) <== NOT EXECUTED
49a9e: 6714 beqs 49ab4 <mq_notify+0x4e> <== NOT EXECUTED
_Thread_Enable_dispatch();
49aa0: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBUSY );
49aa6: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49aac: 7210 moveq #16,%d1 <== NOT EXECUTED
49aae: 2040 moveal %d0,%a0 <== NOT EXECUTED
49ab0: 2081 movel %d1,%a0@ <== NOT EXECUTED
49ab2: 6046 bras 49afa <mq_notify+0x94> <== NOT EXECUTED
49ab4: 42aa 007e clrl %a2@(126) <== NOT EXECUTED
}
_CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL );
the_mq->notification = *notification;
49ab8: 4878 0014 pea 14 <OPER2> <== NOT EXECUTED
49abc: 2f02 movel %d2,%sp@- <== NOT EXECUTED
49abe: 486a 008e pea %a2@(142) <== NOT EXECUTED
49ac2: 4eb9 0005 35d0 jsr 535d0 <memcpy> <== NOT EXECUTED
49ac8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
49acc: 203c 0004 9a30 movel #301616,%d0 <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
49ad2: 254a 007e movel %a2,%a2@(126) <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
49ad6: 2540 007a movel %d0,%a2@(122) <== NOT EXECUTED
49ada: 6008 bras 49ae4 <mq_notify+0x7e> <== NOT EXECUTED
49adc: 42aa 007a clrl %a2@(122) <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
49ae0: 42aa 007e clrl %a2@(126) <== NOT EXECUTED
_CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL );
}
_Thread_Enable_dispatch();
49ae4: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
49aea: 4280 clrl %d0 <== NOT EXECUTED
49aec: 600e bras 49afc <mq_notify+0x96> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
49aee: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49af4: 2040 moveal %d0,%a0 <== NOT EXECUTED
49af6: 7009 moveq #9,%d0 <== NOT EXECUTED
49af8: 2080 movel %d0,%a0@ <== NOT EXECUTED
49afa: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
49afc: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
49b00: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
49b04: 4e5e unlk %fp <== NOT EXECUTED
00049b08 <mq_open>:
int oflag,
...
/* mode_t mode, */
/* struct mq_attr attr */
)
{
49b08: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
49b0c: 2039 0006 5c68 movel 65c68 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
49b12: 5280 addql #1,%d0 <== NOT EXECUTED
49b14: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
49b18: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
49b1c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
49b20: 23c0 0006 5c68 movel %d0,65c68 <_Thread_Dispatch_disable_level><== NOT EXECUTED
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
49b26: 2a02 movel %d2,%d5 <== NOT EXECUTED
49b28: 0285 0000 0200 andil #512,%d5 <== NOT EXECUTED
49b2e: 6706 beqs 49b36 <mq_open+0x2e> <== NOT EXECUTED
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
49b30: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED
49b34: 6002 bras 49b38 <mq_open+0x30> <== NOT EXECUTED
/* struct mq_attr attr */
)
{
va_list arg;
mode_t mode;
struct mq_attr *attr = NULL;
49b36: 4284 clrl %d4 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *
_POSIX_Message_queue_Allocate_fd( void )
{
return (POSIX_Message_queue_Control_fd *)
_Objects_Allocate( &_POSIX_Message_queue_Information_fds );
49b38: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49b3e: 4eb9 0004 c5c8 jsr 4c5c8 <_Objects_Allocate> <== NOT EXECUTED
attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
va_end(arg);
}
the_mq_fd = _POSIX_Message_queue_Allocate_fd();
if ( !the_mq_fd ) {
49b44: 588f addql #4,%sp <== NOT EXECUTED
49b46: 2440 moveal %d0,%a2 <== NOT EXECUTED
49b48: 4a80 tstl %d0 <== NOT EXECUTED
49b4a: 6614 bnes 49b60 <mq_open+0x58> <== NOT EXECUTED
_Thread_Enable_dispatch();
49b4c: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENFILE );
49b52: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49b58: 7217 moveq #23,%d1 <== NOT EXECUTED
49b5a: 2040 moveal %d0,%a0 <== NOT EXECUTED
49b5c: 2081 movel %d1,%a0@ <== NOT EXECUTED
49b5e: 6044 bras 49ba4 <mq_open+0x9c> <== NOT EXECUTED
}
the_mq_fd->oflag = oflag;
49b60: 2542 0014 movel %d2,%a2@(20) <== NOT EXECUTED
status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );
49b64: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49b68: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49b6a: 4eb9 0004 fdb8 jsr 4fdb8 <_POSIX_Message_queue_Name_to_id> <== NOT EXECUTED
* If the name to id translation worked, then the message queue exists
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "message queue does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
49b70: 508f addql #8,%sp <== NOT EXECUTED
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
the_mq_fd->oflag = oflag;
status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );
49b72: 2640 moveal %d0,%a3 <== NOT EXECUTED
* If the name to id translation worked, then the message queue exists
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "message queue does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
49b74: 4a80 tstl %d0 <== NOT EXECUTED
49b76: 6732 beqs 49baa <mq_open+0xa2> <== NOT EXECUTED
/*
* Unless provided a valid name that did not already exist
* and we are willing to create then it is an error.
*/
if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {
49b78: 7002 moveq #2,%d0 <== NOT EXECUTED
49b7a: b08b cmpl %a3,%d0 <== NOT EXECUTED
49b7c: 6606 bnes 49b84 <mq_open+0x7c> <== NOT EXECUTED
49b7e: 4a85 tstl %d5 <== NOT EXECUTED
49b80: 6600 009e bnew 49c20 <mq_open+0x118> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
POSIX_Message_queue_Control_fd *the_mq_fd
)
{
_Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
49b84: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49b86: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49b8c: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
49b92: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( status, mqd_t );
49b98: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49b9e: 2040 moveal %d0,%a0 <== NOT EXECUTED
49ba0: 208b movel %a3,%a0@ <== NOT EXECUTED
49ba2: 508f addql #8,%sp <== NOT EXECUTED
49ba4: 70ff moveq #-1,%d0 <== NOT EXECUTED
49ba6: 6000 00ce braw 49c76 <mq_open+0x16e> <== NOT EXECUTED
49baa: 47f9 0004 d292 lea 4d292 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
} else { /* name -> ID translation succeeded */
/*
* Check for existence with creation.
*/
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
49bb0: 0282 0000 0a00 andil #2560,%d2 <== NOT EXECUTED
49bb6: 0c82 0000 0a00 cmpil #2560,%d2 <== NOT EXECUTED
49bbc: 661e bnes 49bdc <mq_open+0xd4> <== NOT EXECUTED
49bbe: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49bc0: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49bc6: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
49bcc: 4e93 jsr %a3@ <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );
49bce: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49bd4: 2040 moveal %d0,%a0 <== NOT EXECUTED
49bd6: 7011 moveq #17,%d0 <== NOT EXECUTED
49bd8: 2080 movel %d0,%a0@ <== NOT EXECUTED
49bda: 60c6 bras 49ba2 <mq_open+0x9a> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control *)
_Objects_Get( &_POSIX_Message_queue_Information, id, location );
49bdc: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
49be0: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
49be4: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
49bea: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
/*
* In this case we need to do an ID->pointer conversion to
* check the mode.
*/
the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );
the_mq->open_count += 1;
49bf0: 2040 moveal %d0,%a0 <== NOT EXECUTED
49bf2: 52a8 0016 addql #1,%a0@(22) <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
49bf6: 2079 0006 609e moveal 6609e <_POSIX_Message_queue_Information_fds+0x18>,%a0<== NOT EXECUTED
/*
* In this case we need to do an ID->pointer conversion to
* check the mode.
*/
the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );
49bfc: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
the_mq->open_count += 1;
the_mq_fd->Queue = the_mq;
49c00: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
49c04: 4280 clrl %d0 <== NOT EXECUTED
49c06: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
49c0a: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
49c0e: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
_Objects_Open_string(
&_POSIX_Message_queue_Information_fds,
&the_mq_fd->Object,
NULL
);
_Thread_Enable_dispatch();
49c12: 4e93 jsr %a3@ <== NOT EXECUTED
_Thread_Enable_dispatch();
49c14: 4e93 jsr %a3@ <== NOT EXECUTED
return (mqd_t)the_mq_fd->Object.id;
49c16: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
49c1a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49c1e: 6056 bras 49c76 <mq_open+0x16e> <== NOT EXECUTED
/*
* At this point, the message queue does not exist and everything has been
* checked. We should go ahead and create a message queue.
*/
status = _POSIX_Message_queue_Create_support(
49c20: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
49c24: 47f9 0004 d292 lea 4d292 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
49c2a: 2f04 movel %d4,%sp@- <== NOT EXECUTED
49c2c: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
49c30: 2f03 movel %d3,%sp@- <== NOT EXECUTED
49c32: 4eb9 0004 fc68 jsr 4fc68 <_POSIX_Message_queue_Create_support><== NOT EXECUTED
);
/*
* errno was set by Create_support, so don't set it again.
*/
if ( status == -1 ) {
49c38: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
49c3c: 72ff moveq #-1,%d1 <== NOT EXECUTED
49c3e: b280 cmpl %d0,%d1 <== NOT EXECUTED
49c40: 6614 bnes 49c56 <mq_open+0x14e> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
POSIX_Message_queue_Control_fd *the_mq_fd
)
{
_Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
49c42: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49c44: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49c4a: 4eb9 0004 c8bc jsr 4c8bc <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
49c50: 4e93 jsr %a3@ <== NOT EXECUTED
49c52: 6000 ff4e braw 49ba2 <mq_open+0x9a> <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
49c56: 4280 clrl %d0 <== NOT EXECUTED
return (mqd_t) -1;
}
the_mq_fd->Queue = the_mq;
49c58: 256e fff8 0010 movel %fp@(-8),%a2@(16) <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
49c5e: 2079 0006 609e moveal 6609e <_POSIX_Message_queue_Information_fds+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
49c64: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
49c68: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
49c6c: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
&_POSIX_Message_queue_Information_fds,
&the_mq_fd->Object,
NULL
);
_Thread_Enable_dispatch();
49c70: 4e93 jsr %a3@ <== NOT EXECUTED
return (mqd_t) the_mq_fd->Object.id;
49c72: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
}
49c76: 4cee 0c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a3 <== NOT EXECUTED
49c7c: 4e5e unlk %fp <== NOT EXECUTED
00049c80 <mq_receive>:
mqd_t mqdes,
char *msg_ptr,
size_t msg_len,
unsigned int *msg_prio
)
{
49c80: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Message_queue_Receive_support(
49c84: 42a7 clrl %sp@- <== NOT EXECUTED
49c86: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
49c8a: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
49c8e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
49c92: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49c96: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49c9a: 4eb9 0004 9ca4 jsr 49ca4 <_POSIX_Message_queue_Receive_support><== NOT EXECUTED
msg_len,
msg_prio,
true,
THREAD_QUEUE_WAIT_FOREVER
);
}
49ca0: 4e5e unlk %fp <== NOT EXECUTED
00049da8 <mq_send>:
mqd_t mqdes,
const char *msg_ptr,
size_t msg_len,
unsigned int msg_prio
)
{
49da8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Message_queue_Send_support(
49dac: 42a7 clrl %sp@- <== NOT EXECUTED
49dae: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
49db2: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
49db6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
49dba: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49dbe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49dc2: 4eb9 0004 9dcc jsr 49dcc <_POSIX_Message_queue_Send_support><== NOT EXECUTED
msg_len,
msg_prio,
true,
THREAD_QUEUE_WAIT_FOREVER
);
}
49dc8: 4e5e unlk %fp <== NOT EXECUTED
00049eb8 <mq_setattr>:
int mq_setattr(
mqd_t mqdes,
const struct mq_attr *mqstat,
struct mq_attr *omqstat
)
{
49eb8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
49ebc: 2f0b movel %a3,%sp@- <== NOT EXECUTED
49ebe: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
49ec2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
49ec4: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
POSIX_Message_queue_Control_fd *the_mq_fd;
CORE_message_queue_Control *the_core_mq;
Objects_Locations location;
if ( !mqstat )
49ec8: 4a8b tstl %a3 <== NOT EXECUTED
49eca: 660e bnes 49eda <mq_setattr+0x22> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
49ecc: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49ed2: 7216 moveq #22,%d1 <== NOT EXECUTED
49ed4: 2040 moveal %d0,%a0 <== NOT EXECUTED
49ed6: 2081 movel %d1,%a0@ <== NOT EXECUTED
49ed8: 6058 bras 49f32 <mq_setattr+0x7a> <== NOT EXECUTED
49eda: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49ede: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49ee2: 4879 0006 6086 pea 66086 <_POSIX_Message_queue_Information_fds><== NOT EXECUTED
49ee8: 4eb9 0004 ca20 jsr 4ca20 <_Objects_Get> <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
49eee: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
49ef2: 2040 moveal %d0,%a0 <== NOT EXECUTED
49ef4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
49ef8: 662c bnes 49f26 <mq_setattr+0x6e> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_core_mq = &the_mq_fd->Queue->Message_queue;
49efa: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED
/*
* Return the old values.
*/
if ( omqstat ) {
49efe: 4a8a tstl %a2 <== NOT EXECUTED
49f00: 6716 beqs 49f18 <mq_setattr+0x60> <== NOT EXECUTED
omqstat->mq_flags = the_mq_fd->oflag;
49f02: 24a8 0014 movel %a0@(20),%a2@ <== NOT EXECUTED
omqstat->mq_msgsize = the_core_mq->maximum_message_size;
49f06: 2569 0066 0008 movel %a1@(102),%a2@(8) <== NOT EXECUTED
omqstat->mq_maxmsg = the_core_mq->maximum_pending_messages;
49f0c: 2569 005e 0004 movel %a1@(94),%a2@(4) <== NOT EXECUTED
omqstat->mq_curmsgs = the_core_mq->number_of_pending_messages;
49f12: 2569 0062 000c movel %a1@(98),%a2@(12) <== NOT EXECUTED
}
the_mq_fd->oflag = mqstat->mq_flags;
49f18: 2153 0014 movel %a3@,%a0@(20) <== NOT EXECUTED
_Thread_Enable_dispatch();
49f1c: 4eb9 0004 d292 jsr 4d292 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
49f22: 4280 clrl %d0 <== NOT EXECUTED
49f24: 600e bras 49f34 <mq_setattr+0x7c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
49f26: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
49f2c: 2040 moveal %d0,%a0 <== NOT EXECUTED
49f2e: 7009 moveq #9,%d0 <== NOT EXECUTED
49f30: 2080 movel %d0,%a0@ <== NOT EXECUTED
49f32: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
49f34: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
49f38: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
49f3c: 4e5e unlk %fp <== NOT EXECUTED
00049f40 <mq_timedreceive>:
char *msg_ptr,
size_t msg_len,
unsigned int *msg_prio,
const struct timespec *abstime
)
{
49f40: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
49f44: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49f48: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED
49f4c: 4eb9 0004 a050 jsr 4a050 <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
return _POSIX_Message_queue_Receive_support(
49f52: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
49f56: 7203 moveq #3,%d1 <== NOT EXECUTED
49f58: b280 cmpl %d0,%d1 <== NOT EXECUTED
49f5a: 57c0 seq %d0 <== NOT EXECUTED
49f5c: 49c0 extbl %d0 <== NOT EXECUTED
49f5e: 4480 negl %d0 <== NOT EXECUTED
49f60: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49f62: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
49f66: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
49f6a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49f6e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49f72: 4eb9 0004 9ca4 jsr 49ca4 <_POSIX_Message_queue_Receive_support><== NOT EXECUTED
msg_len,
msg_prio,
do_wait,
ticks
);
}
49f78: 4e5e unlk %fp <== NOT EXECUTED
00049f7c <mq_timedsend>:
const char *msg_ptr,
size_t msg_len,
unsigned int msg_prio,
const struct timespec *abstime
)
{
49f7c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
49f80: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49f84: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED
49f88: 4eb9 0004 a050 jsr 4a050 <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
return _POSIX_Message_queue_Send_support(
49f8e: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
49f92: 7203 moveq #3,%d1 <== NOT EXECUTED
49f94: b280 cmpl %d0,%d1 <== NOT EXECUTED
49f96: 57c0 seq %d0 <== NOT EXECUTED
49f98: 49c0 extbl %d0 <== NOT EXECUTED
49f9a: 4480 negl %d0 <== NOT EXECUTED
49f9c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
49f9e: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
49fa2: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
49fa6: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
49faa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49fae: 4eb9 0004 9dcc jsr 49dcc <_POSIX_Message_queue_Send_support><== NOT EXECUTED
msg_len,
msg_prio,
do_wait,
ticks
);
}
49fb4: 4e5e unlk %fp <== NOT EXECUTED
00049fd0 <mq_unlink>:
*/
int mq_unlink(
const char *name
)
{
49fd0: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
49fd4: 2039 0006 5c68 movel 65c68 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
49fda: 5280 addql #1,%d0 <== NOT EXECUTED
49fdc: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
49fe0: 23c0 0006 5c68 movel %d0,65c68 <_Thread_Dispatch_disable_level><== NOT EXECUTED
register POSIX_Message_queue_Control *the_mq;
Objects_Id the_mq_id;
_Thread_Disable_dispatch();
status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );
49fe6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
49fea: 47f9 0004 d292 lea 4d292 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
49ff0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
49ff4: 4eb9 0004 fdb8 jsr 4fdb8 <_POSIX_Message_queue_Name_to_id> <== NOT EXECUTED
if ( status != 0 ) {
49ffa: 508f addql #8,%sp <== NOT EXECUTED
register POSIX_Message_queue_Control *the_mq;
Objects_Id the_mq_id;
_Thread_Disable_dispatch();
status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );
49ffc: 2400 movel %d0,%d2 <== NOT EXECUTED
if ( status != 0 ) {
49ffe: 6710 beqs 4a010 <mq_unlink+0x40> <== NOT EXECUTED
_Thread_Enable_dispatch();
4a000: 4e93 jsr %a3@ <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( status );
4a002: 4eb9 0005 2d0c jsr 52d0c <__errno> <== NOT EXECUTED
4a008: 2040 moveal %d0,%a0 <== NOT EXECUTED
4a00a: 70ff moveq #-1,%d0 <== NOT EXECUTED
4a00c: 2082 movel %d2,%a0@ <== NOT EXECUTED
4a00e: 6034 bras 4a044 <mq_unlink+0x74> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
4a010: 4280 clrl %d0 <== NOT EXECUTED
4a012: 2079 0006 5f30 moveal 65f30 <_POSIX_Message_queue_Information+0x18>,%a0<== NOT EXECUTED
4a018: 302e fffe movew %fp@(-2),%d0 <== NOT EXECUTED
}
the_mq = (POSIX_Message_queue_Control *) _Objects_Get_local_object(
4a01c: 2470 0c00 moveal %a0@(00000000,%d0:l:4),%a2 <== NOT EXECUTED
&_POSIX_Message_queue_Information,
_Objects_Get_index( the_mq_id )
);
the_mq->linked = false;
4a020: 4200 clrb %d0 <== NOT EXECUTED
4a022: 1540 0015 moveb %d0,%a2@(21) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Namespace_remove (
POSIX_Message_queue_Control *the_mq
)
{
_Objects_Namespace_remove(
4a026: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a028: 4879 0006 5f18 pea 65f18 <_POSIX_Message_queue_Information><== NOT EXECUTED
4a02e: 4eb9 0004 cb7c jsr 4cb7c <_Objects_Namespace_remove> <== NOT EXECUTED
_POSIX_Message_queue_Namespace_remove( the_mq );
_POSIX_Message_queue_Delete( the_mq );
4a034: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a036: 4eb9 0004 9968 jsr 49968 <_POSIX_Message_queue_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
4a03c: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
4a03e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a042: 4280 clrl %d0 <== NOT EXECUTED
}
4a044: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED
4a04a: 4e5e unlk %fp <== NOT EXECUTED
...
0005a9a6 <nanosleep>:
int nanosleep(
const struct timespec *rqtp,
struct timespec *rmtp
)
{
5a9a6: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
5a9aa: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
5a9ae: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
5a9b2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
* Return EINVAL if the delay interval is negative.
*
* NOTE: This behavior is beyond the POSIX specification.
* FSU and GNU/Linux pthreads shares this behavior.
*/
if ( !_Timespec_Is_valid( rqtp ) )
5a9b6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a9b8: 4eb9 0005 aad0 jsr 5aad0 <_Timespec_Is_valid> <== NOT EXECUTED
5a9be: 588f addql #4,%sp <== NOT EXECUTED
5a9c0: 4a00 tstb %d0 <== NOT EXECUTED
5a9c2: 6610 bnes 5a9d4 <nanosleep+0x2e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
5a9c4: 4eb9 0004 ccc8 jsr 4ccc8 <__errno> <== NOT EXECUTED
5a9ca: 7216 moveq #22,%d1 <== NOT EXECUTED
5a9cc: 2040 moveal %d0,%a0 <== NOT EXECUTED
5a9ce: 2081 movel %d1,%a0@ <== NOT EXECUTED
5a9d0: 6000 00b2 braw 5aa84 <nanosleep+0xde> <== NOT EXECUTED
ticks = _Timespec_To_ticks( rqtp );
5a9d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a9d6: 47f9 0004 78ba lea 478ba <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
5a9dc: 4eb9 0004 b560 jsr 4b560 <_Timespec_To_ticks> <== NOT EXECUTED
* A nanosleep for zero time is implemented as a yield.
* This behavior is also beyond the POSIX specification but is
* consistent with the RTEMS API and yields desirable behavior.
*/
if ( !ticks ) {
5a9e2: 588f addql #4,%sp <== NOT EXECUTED
5a9e4: 41fa ffaa lea %pc@(5a990 <_Thread_Disable_dispatch>),%a0<== NOT EXECUTED
* FSU and GNU/Linux pthreads shares this behavior.
*/
if ( !_Timespec_Is_valid( rqtp ) )
rtems_set_errno_and_return_minus_one( EINVAL );
ticks = _Timespec_To_ticks( rqtp );
5a9e8: 2400 movel %d0,%d2 <== NOT EXECUTED
* A nanosleep for zero time is implemented as a yield.
* This behavior is also beyond the POSIX specification but is
* consistent with the RTEMS API and yields desirable behavior.
*/
if ( !ticks ) {
5a9ea: 661a bnes 5aa06 <nanosleep+0x60> <== NOT EXECUTED
_Thread_Disable_dispatch();
5a9ec: 4e90 jsr %a0@ <== NOT EXECUTED
_Thread_Yield_processor();
5a9ee: 4eb9 0004 84d0 jsr 484d0 <_Thread_Yield_processor> <== NOT EXECUTED
_Thread_Enable_dispatch();
5a9f4: 4e93 jsr %a3@ <== NOT EXECUTED
if ( rmtp ) {
5a9f6: 4a8a tstl %a2 <== NOT EXECUTED
5a9f8: 6700 008e beqw 5aa88 <nanosleep+0xe2> <== NOT EXECUTED
rmtp->tv_sec = 0;
5a9fc: 4292 clrl %a2@ <== NOT EXECUTED
rmtp->tv_nsec = 0;
5a9fe: 42aa 0004 clrl %a2@(4) <== NOT EXECUTED
5aa02: 6000 0084 braw 5aa88 <nanosleep+0xe2> <== NOT EXECUTED
}
/*
* Block for the desired amount of time
*/
_Thread_Disable_dispatch();
5aa06: 4e90 jsr %a0@ <== NOT EXECUTED
_Thread_Set_state(
5aa08: 2f3c 1000 0008 movel #268435464,%sp@- <== NOT EXECUTED
5aa0e: 2f39 0005 ed84 movel 5ed84 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
5aa14: 4eb9 0004 80f4 jsr 480f4 <_Thread_Set_state> <== NOT EXECUTED
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
5aa1a: 2079 0005 ed84 moveal 5ed84 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
5aa20: 223c 0004 7740 movel #292672,%d1 <== NOT EXECUTED
_Thread_Disable_dispatch();
_Thread_Set_state(
_Thread_Executing,
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
5aa26: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
5aa2a: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED
the_watchdog->routine = routine;
5aa2e: 2141 0064 movel %d1,%a0@(100) <== NOT EXECUTED
the_watchdog->id = id;
5aa32: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED
the_watchdog->user_data = user_data;
5aa36: 42a8 006c clrl %a0@(108) <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
5aa3a: 2142 0054 movel %d2,%a0@(84) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
5aa3e: 4868 0048 pea %a0@(72) <== NOT EXECUTED
5aa42: 4879 0005 e9b6 pea 5e9b6 <_Watchdog_Ticks_chain> <== NOT EXECUTED
5aa48: 4eb9 0004 88b4 jsr 488b4 <_Watchdog_Insert> <== NOT EXECUTED
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
_Thread_Enable_dispatch();
5aa4e: 4e93 jsr %a3@ <== NOT EXECUTED
/* calculate time remaining */
if ( rmtp ) {
5aa50: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
5aa54: 4a8a tstl %a2 <== NOT EXECUTED
5aa56: 6730 beqs 5aa88 <nanosleep+0xe2> <== NOT EXECUTED
ticks -=
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
5aa58: 2079 0005 ed84 moveal 5ed84 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
5aa5e: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED
5aa62: 90a8 0060 subl %a0@(96),%d0 <== NOT EXECUTED
_Thread_Enable_dispatch();
/* calculate time remaining */
if ( rmtp ) {
ticks -=
5aa66: d480 addl %d0,%d2 <== NOT EXECUTED
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
_Timespec_From_ticks( ticks, rmtp );
5aa68: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5aa6a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5aa6c: 4eb9 0005 aa94 jsr 5aa94 <_Timespec_From_ticks> <== NOT EXECUTED
*/
#if defined(RTEMS_POSIX_API)
/*
* If there is time remaining, then we were interrupted by a signal.
*/
if ( ticks )
5aa72: 508f addql #8,%sp <== NOT EXECUTED
5aa74: 4a82 tstl %d2 <== NOT EXECUTED
5aa76: 6710 beqs 5aa88 <nanosleep+0xe2> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINTR );
5aa78: 4eb9 0004 ccc8 jsr 4ccc8 <__errno> <== NOT EXECUTED
5aa7e: 2040 moveal %d0,%a0 <== NOT EXECUTED
5aa80: 7004 moveq #4,%d0 <== NOT EXECUTED
5aa82: 2080 movel %d0,%a0@ <== NOT EXECUTED
5aa84: 70ff moveq #-1,%d0 <== NOT EXECUTED
5aa86: 6002 bras 5aa8a <nanosleep+0xe4> <== NOT EXECUTED
#endif
}
return 0;
5aa88: 4280 clrl %d0 <== NOT EXECUTED
}
5aa8a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED
5aa90: 4e5e unlk %fp <== NOT EXECUTED
00046ef4 <pause>:
/*
* 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81
*/
int pause( void )
{
46ef4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46ef8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
sigset_t all_signals;
int status;
(void) sigfillset( &all_signals );
46efa: 240e movel %fp,%d2 <== NOT EXECUTED
46efc: 5982 subql #4,%d2 <== NOT EXECUTED
46efe: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46f00: 4eb9 0004 7af8 jsr 47af8 <sigfillset> <== NOT EXECUTED
status = sigtimedwait( &all_signals, NULL, NULL );
46f06: 42a7 clrl %sp@- <== NOT EXECUTED
46f08: 42a7 clrl %sp@- <== NOT EXECUTED
46f0a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46f0c: 4eb9 0004 7c68 jsr 47c68 <sigtimedwait> <== NOT EXECUTED
return status;
}
46f12: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46f16: 4e5e unlk %fp <== NOT EXECUTED
...
00045490 <pthread_atfork>:
int pthread_atfork(
void (*prepare)(void) __attribute__((unused)),
void (*parent)(void) __attribute__((unused)),
void (*child)(void) __attribute__((unused))
)
{
45490: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45494: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
4549a: 4e5e unlk %fp <== NOT EXECUTED
void (*prepare)(void) __attribute__((unused)),
void (*parent)(void) __attribute__((unused)),
void (*child)(void) __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
4549c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4549e: 7058 moveq #88,%d0 <== NOT EXECUTED
454a0: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
454a2: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
0004a088 <pthread_attr_destroy>:
#include <rtems/system.h>
int pthread_attr_destroy(
pthread_attr_t *attr
)
{
4a088: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a08c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a090: 4a88 tstl %a0 <== NOT EXECUTED
4a092: 670a beqs 4a09e <pthread_attr_destroy+0x16> <== NOT EXECUTED
4a094: 4a90 tstl %a0@ <== NOT EXECUTED
4a096: 6706 beqs 4a09e <pthread_attr_destroy+0x16> <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
4a098: 4290 clrl %a0@ <== NOT EXECUTED
return 0;
4a09a: 4280 clrl %d0 <== NOT EXECUTED
4a09c: 6002 bras 4a0a0 <pthread_attr_destroy+0x18> <== NOT EXECUTED
int pthread_attr_destroy(
pthread_attr_t *attr
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4a09e: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
4a0a0: 4e5e unlk %fp <== NOT EXECUTED
0004a6ac <pthread_attr_getcputime>:
int pthread_attr_getcputime(
pthread_attr_t *attr,
int *clock_allowed
)
{
4a6ac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a6b0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a6b4: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !clock_allowed )
4a6b8: 4a88 tstl %a0 <== NOT EXECUTED
4a6ba: 6710 beqs 4a6cc <pthread_attr_getcputime+0x20> <== NOT EXECUTED
4a6bc: 4a90 tstl %a0@ <== NOT EXECUTED
4a6be: 670c beqs 4a6cc <pthread_attr_getcputime+0x20> <== NOT EXECUTED
4a6c0: 4a89 tstl %a1 <== NOT EXECUTED
4a6c2: 6708 beqs 4a6cc <pthread_attr_getcputime+0x20> <== NOT EXECUTED
return EINVAL;
*clock_allowed = attr->cputime_clock_allowed;
4a6c4: 22a8 0038 movel %a0@(56),%a1@ <== NOT EXECUTED
return 0;
4a6c8: 4280 clrl %d0 <== NOT EXECUTED
4a6ca: 6002 bras 4a6ce <pthread_attr_getcputime+0x22> <== NOT EXECUTED
pthread_attr_t *attr,
int *clock_allowed
)
{
if ( !attr || !attr->is_initialized || !clock_allowed )
return EINVAL;
4a6cc: 7016 moveq #22,%d0 <== NOT EXECUTED
*clock_allowed = attr->cputime_clock_allowed;
return 0;
}
4a6ce: 4e5e unlk %fp <== NOT EXECUTED
...
0004a0a4 <pthread_attr_getdetachstate>:
int pthread_attr_getdetachstate(
const pthread_attr_t *attr,
int *detachstate
)
{
4a0a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a0a8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a0ac: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !detachstate )
4a0b0: 4a88 tstl %a0 <== NOT EXECUTED
4a0b2: 6710 beqs 4a0c4 <pthread_attr_getdetachstate+0x20><== NOT EXECUTED
4a0b4: 4a90 tstl %a0@ <== NOT EXECUTED
4a0b6: 670c beqs 4a0c4 <pthread_attr_getdetachstate+0x20><== NOT EXECUTED
4a0b8: 4a89 tstl %a1 <== NOT EXECUTED
4a0ba: 6708 beqs 4a0c4 <pthread_attr_getdetachstate+0x20><== NOT EXECUTED
return EINVAL;
*detachstate = attr->detachstate;
4a0bc: 22a8 003c movel %a0@(60),%a1@ <== NOT EXECUTED
return 0;
4a0c0: 4280 clrl %d0 <== NOT EXECUTED
4a0c2: 6002 bras 4a0c6 <pthread_attr_getdetachstate+0x22><== NOT EXECUTED
const pthread_attr_t *attr,
int *detachstate
)
{
if ( !attr || !attr->is_initialized || !detachstate )
return EINVAL;
4a0c4: 7016 moveq #22,%d0 <== NOT EXECUTED
*detachstate = attr->detachstate;
return 0;
}
4a0c6: 4e5e unlk %fp <== NOT EXECUTED
...
0004a0cc <pthread_attr_getguardsize>:
int pthread_attr_getguardsize(
const pthread_attr_t *attr,
size_t *guardsize
)
{
4a0cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a0d0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a0d4: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !guardsize )
4a0d8: 4a88 tstl %a0 <== NOT EXECUTED
4a0da: 6710 beqs 4a0ec <pthread_attr_getguardsize+0x20> <== NOT EXECUTED
4a0dc: 4a90 tstl %a0@ <== NOT EXECUTED
4a0de: 670c beqs 4a0ec <pthread_attr_getguardsize+0x20> <== NOT EXECUTED
4a0e0: 4a89 tstl %a1 <== NOT EXECUTED
4a0e2: 6708 beqs 4a0ec <pthread_attr_getguardsize+0x20> <== NOT EXECUTED
return EINVAL;
*guardsize = attr->guardsize;
4a0e4: 22a8 0034 movel %a0@(52),%a1@ <== NOT EXECUTED
return 0;
4a0e8: 4280 clrl %d0 <== NOT EXECUTED
4a0ea: 6002 bras 4a0ee <pthread_attr_getguardsize+0x22> <== NOT EXECUTED
const pthread_attr_t *attr,
size_t *guardsize
)
{
if ( !attr || !attr->is_initialized || !guardsize )
return EINVAL;
4a0ec: 7016 moveq #22,%d0 <== NOT EXECUTED
*guardsize = attr->guardsize;
return 0;
}
4a0ee: 4e5e unlk %fp <== NOT EXECUTED
...
0004a0f4 <pthread_attr_getinheritsched>:
int pthread_attr_getinheritsched(
const pthread_attr_t *attr,
int *inheritsched
)
{
4a0f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a0f8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a0fc: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !inheritsched )
4a100: 4a88 tstl %a0 <== NOT EXECUTED
4a102: 6710 beqs 4a114 <pthread_attr_getinheritsched+0x20><== NOT EXECUTED
4a104: 4a90 tstl %a0@ <== NOT EXECUTED
4a106: 670c beqs 4a114 <pthread_attr_getinheritsched+0x20><== NOT EXECUTED
4a108: 4a89 tstl %a1 <== NOT EXECUTED
4a10a: 6708 beqs 4a114 <pthread_attr_getinheritsched+0x20><== NOT EXECUTED
return EINVAL;
*inheritsched = attr->inheritsched;
4a10c: 22a8 0010 movel %a0@(16),%a1@ <== NOT EXECUTED
return 0;
4a110: 4280 clrl %d0 <== NOT EXECUTED
4a112: 6002 bras 4a116 <pthread_attr_getinheritsched+0x22><== NOT EXECUTED
const pthread_attr_t *attr,
int *inheritsched
)
{
if ( !attr || !attr->is_initialized || !inheritsched )
return EINVAL;
4a114: 7016 moveq #22,%d0 <== NOT EXECUTED
*inheritsched = attr->inheritsched;
return 0;
}
4a116: 4e5e unlk %fp <== NOT EXECUTED
...
0004a11c <pthread_attr_getschedparam>:
int pthread_attr_getschedparam(
const pthread_attr_t *attr,
struct sched_param *param
)
{
4a11c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a120: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a124: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !param )
4a128: 4a88 tstl %a0 <== NOT EXECUTED
4a12a: 6720 beqs 4a14c <pthread_attr_getschedparam+0x30><== NOT EXECUTED
4a12c: 4a90 tstl %a0@ <== NOT EXECUTED
4a12e: 671c beqs 4a14c <pthread_attr_getschedparam+0x30><== NOT EXECUTED
4a130: 4a80 tstl %d0 <== NOT EXECUTED
4a132: 6718 beqs 4a14c <pthread_attr_getschedparam+0x30><== NOT EXECUTED
return EINVAL;
*param = attr->schedparam;
4a134: 4878 001c pea 1c <OPER2+0x8> <== NOT EXECUTED
4a138: 4868 0018 pea %a0@(24) <== NOT EXECUTED
4a13c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a13e: 4eb9 0005 2b48 jsr 52b48 <memcpy> <== NOT EXECUTED
return 0;
4a144: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a148: 4280 clrl %d0 <== NOT EXECUTED
4a14a: 6002 bras 4a14e <pthread_attr_getschedparam+0x32><== NOT EXECUTED
const pthread_attr_t *attr,
struct sched_param *param
)
{
if ( !attr || !attr->is_initialized || !param )
return EINVAL;
4a14c: 7016 moveq #22,%d0 <== NOT EXECUTED
*param = attr->schedparam;
return 0;
}
4a14e: 4e5e unlk %fp <== NOT EXECUTED
...
0004a154 <pthread_attr_getschedpolicy>:
int pthread_attr_getschedpolicy(
const pthread_attr_t *attr,
int *policy
)
{
4a154: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a158: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a15c: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !policy )
4a160: 4a88 tstl %a0 <== NOT EXECUTED
4a162: 6710 beqs 4a174 <pthread_attr_getschedpolicy+0x20><== NOT EXECUTED
4a164: 4a90 tstl %a0@ <== NOT EXECUTED
4a166: 670c beqs 4a174 <pthread_attr_getschedpolicy+0x20><== NOT EXECUTED
4a168: 4a89 tstl %a1 <== NOT EXECUTED
4a16a: 6708 beqs 4a174 <pthread_attr_getschedpolicy+0x20><== NOT EXECUTED
return EINVAL;
*policy = attr->schedpolicy;
4a16c: 22a8 0014 movel %a0@(20),%a1@ <== NOT EXECUTED
return 0;
4a170: 4280 clrl %d0 <== NOT EXECUTED
4a172: 6002 bras 4a176 <pthread_attr_getschedpolicy+0x22><== NOT EXECUTED
const pthread_attr_t *attr,
int *policy
)
{
if ( !attr || !attr->is_initialized || !policy )
return EINVAL;
4a174: 7016 moveq #22,%d0 <== NOT EXECUTED
*policy = attr->schedpolicy;
return 0;
}
4a176: 4e5e unlk %fp <== NOT EXECUTED
...
0004a17c <pthread_attr_getscope>:
int pthread_attr_getscope(
const pthread_attr_t *attr,
int *contentionscope
)
{
4a17c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a180: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a184: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !contentionscope )
4a188: 4a88 tstl %a0 <== NOT EXECUTED
4a18a: 6710 beqs 4a19c <pthread_attr_getscope+0x20> <== NOT EXECUTED
4a18c: 4a90 tstl %a0@ <== NOT EXECUTED
4a18e: 670c beqs 4a19c <pthread_attr_getscope+0x20> <== NOT EXECUTED
4a190: 4a89 tstl %a1 <== NOT EXECUTED
4a192: 6708 beqs 4a19c <pthread_attr_getscope+0x20> <== NOT EXECUTED
return EINVAL;
*contentionscope = attr->contentionscope;
4a194: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED
return 0;
4a198: 4280 clrl %d0 <== NOT EXECUTED
4a19a: 6002 bras 4a19e <pthread_attr_getscope+0x22> <== NOT EXECUTED
const pthread_attr_t *attr,
int *contentionscope
)
{
if ( !attr || !attr->is_initialized || !contentionscope )
return EINVAL;
4a19c: 7016 moveq #22,%d0 <== NOT EXECUTED
*contentionscope = attr->contentionscope;
return 0;
}
4a19e: 4e5e unlk %fp <== NOT EXECUTED
...
0004a1cc <pthread_attr_getstack>:
int pthread_attr_getstack(
const pthread_attr_t *attr,
void **stackaddr,
size_t *stacksize
)
{
4a1cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a1d0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a1d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a1d6: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
4a1da: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !stackaddr || !stacksize )
4a1de: 4a88 tstl %a0 <== NOT EXECUTED
4a1e0: 6718 beqs 4a1fa <pthread_attr_getstack+0x2e> <== NOT EXECUTED
4a1e2: 4a90 tstl %a0@ <== NOT EXECUTED
4a1e4: 6714 beqs 4a1fa <pthread_attr_getstack+0x2e> <== NOT EXECUTED
4a1e6: 4a8a tstl %a2 <== NOT EXECUTED
4a1e8: 6710 beqs 4a1fa <pthread_attr_getstack+0x2e> <== NOT EXECUTED
4a1ea: 4a89 tstl %a1 <== NOT EXECUTED
4a1ec: 670c beqs 4a1fa <pthread_attr_getstack+0x2e> <== NOT EXECUTED
return EINVAL;
*stackaddr = attr->stackaddr;
4a1ee: 24a8 0004 movel %a0@(4),%a2@ <== NOT EXECUTED
*stacksize = attr->stacksize;
return 0;
4a1f2: 4280 clrl %d0 <== NOT EXECUTED
{
if ( !attr || !attr->is_initialized || !stackaddr || !stacksize )
return EINVAL;
*stackaddr = attr->stackaddr;
*stacksize = attr->stacksize;
4a1f4: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED
return 0;
4a1f8: 6002 bras 4a1fc <pthread_attr_getstack+0x30> <== NOT EXECUTED
void **stackaddr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stackaddr || !stacksize )
return EINVAL;
4a1fa: 7016 moveq #22,%d0 <== NOT EXECUTED
*stackaddr = attr->stackaddr;
*stacksize = attr->stacksize;
return 0;
}
4a1fc: 245f moveal %sp@+,%a2 <== NOT EXECUTED
4a1fe: 4e5e unlk %fp <== NOT EXECUTED
...
0004a1a4 <pthread_attr_getstackaddr>:
int pthread_attr_getstackaddr(
const pthread_attr_t *attr,
void **stackaddr
)
{
4a1a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a1a8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a1ac: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !stackaddr )
4a1b0: 4a88 tstl %a0 <== NOT EXECUTED
4a1b2: 6710 beqs 4a1c4 <pthread_attr_getstackaddr+0x20> <== NOT EXECUTED
4a1b4: 4a90 tstl %a0@ <== NOT EXECUTED
4a1b6: 670c beqs 4a1c4 <pthread_attr_getstackaddr+0x20> <== NOT EXECUTED
4a1b8: 4a89 tstl %a1 <== NOT EXECUTED
4a1ba: 6708 beqs 4a1c4 <pthread_attr_getstackaddr+0x20> <== NOT EXECUTED
return EINVAL;
*stackaddr = attr->stackaddr;
4a1bc: 22a8 0004 movel %a0@(4),%a1@ <== NOT EXECUTED
return 0;
4a1c0: 4280 clrl %d0 <== NOT EXECUTED
4a1c2: 6002 bras 4a1c6 <pthread_attr_getstackaddr+0x22> <== NOT EXECUTED
const pthread_attr_t *attr,
void **stackaddr
)
{
if ( !attr || !attr->is_initialized || !stackaddr )
return EINVAL;
4a1c4: 7016 moveq #22,%d0 <== NOT EXECUTED
*stackaddr = attr->stackaddr;
return 0;
}
4a1c6: 4e5e unlk %fp <== NOT EXECUTED
...
0004a204 <pthread_attr_getstacksize>:
int pthread_attr_getstacksize(
const pthread_attr_t *attr,
size_t *stacksize
)
{
4a204: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a208: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a20c: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !stacksize )
4a210: 4a88 tstl %a0 <== NOT EXECUTED
4a212: 6710 beqs 4a224 <pthread_attr_getstacksize+0x20> <== NOT EXECUTED
4a214: 4a90 tstl %a0@ <== NOT EXECUTED
4a216: 670c beqs 4a224 <pthread_attr_getstacksize+0x20> <== NOT EXECUTED
4a218: 4a89 tstl %a1 <== NOT EXECUTED
4a21a: 6708 beqs 4a224 <pthread_attr_getstacksize+0x20> <== NOT EXECUTED
return EINVAL;
*stacksize = attr->stacksize;
4a21c: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED
return 0;
4a220: 4280 clrl %d0 <== NOT EXECUTED
4a222: 6002 bras 4a226 <pthread_attr_getstacksize+0x22> <== NOT EXECUTED
const pthread_attr_t *attr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stacksize )
return EINVAL;
4a224: 7016 moveq #22,%d0 <== NOT EXECUTED
*stacksize = attr->stacksize;
return 0;
}
4a226: 4e5e unlk %fp <== NOT EXECUTED
...
0004b2ac <pthread_attr_init>:
#include <rtems/posix/pthread.h>
int pthread_attr_init(
pthread_attr_t *attr
)
{
4b2ac: 4e56 0000 linkw %fp,#0
4b2b0: 202e 0008 movel %fp@(8),%d0
if ( !attr )
4b2b4: 671a beqs 4b2d0 <pthread_attr_init+0x24> <== NEVER TAKEN
return EINVAL;
*attr = _POSIX_Threads_Default_attributes;
4b2b6: 4878 0040 pea 40 <DBL_MANT_DIG+0xb>
4b2ba: 4879 0005 c236 pea 5c236 <_POSIX_Threads_Default_attributes>
4b2c0: 2f00 movel %d0,%sp@-
4b2c2: 4eb9 0004 dcf4 jsr 4dcf4 <memcpy>
return 0;
4b2c8: 4fef 000c lea %sp@(12),%sp
4b2cc: 4280 clrl %d0
4b2ce: 6002 bras 4b2d2 <pthread_attr_init+0x26>
int pthread_attr_init(
pthread_attr_t *attr
)
{
if ( !attr )
return EINVAL;
4b2d0: 7016 moveq #22,%d0 <== NOT EXECUTED
*attr = _POSIX_Threads_Default_attributes;
return 0;
}
4b2d2: 4e5e unlk %fp
...
0004ab5c <pthread_attr_setcputime>:
int pthread_attr_setcputime(
pthread_attr_t *attr,
int clock_allowed
)
{
4ab5c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4ab60: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4ab64: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4ab68: 4a88 tstl %a0 <== NOT EXECUTED
4ab6a: 6712 beqs 4ab7e <pthread_attr_setcputime+0x22> <== NOT EXECUTED
4ab6c: 4a90 tstl %a0@ <== NOT EXECUTED
4ab6e: 670e beqs 4ab7e <pthread_attr_setcputime+0x22> <== NOT EXECUTED
return EINVAL;
switch ( clock_allowed ) {
4ab70: 7201 moveq #1,%d1 <== NOT EXECUTED
4ab72: b280 cmpl %d0,%d1 <== NOT EXECUTED
4ab74: 6508 bcss 4ab7e <pthread_attr_setcputime+0x22> <== NOT EXECUTED
case CLOCK_ENABLED:
case CLOCK_DISABLED:
attr->cputime_clock_allowed = clock_allowed;
4ab76: 2140 0038 movel %d0,%a0@(56) <== NOT EXECUTED
return 0;
4ab7a: 4280 clrl %d0 <== NOT EXECUTED
4ab7c: 6002 bras 4ab80 <pthread_attr_setcputime+0x24> <== NOT EXECUTED
default:
return EINVAL;
4ab7e: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
4ab80: 4e5e unlk %fp <== NOT EXECUTED
0004a258 <pthread_attr_setdetachstate>:
int pthread_attr_setdetachstate(
pthread_attr_t *attr,
int detachstate
)
{
4a258: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a25c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a260: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a264: 4a88 tstl %a0 <== NOT EXECUTED
4a266: 6712 beqs 4a27a <pthread_attr_setdetachstate+0x22><== NOT EXECUTED
4a268: 4a90 tstl %a0@ <== NOT EXECUTED
4a26a: 670e beqs 4a27a <pthread_attr_setdetachstate+0x22><== NOT EXECUTED
return EINVAL;
switch ( detachstate ) {
4a26c: 7201 moveq #1,%d1 <== NOT EXECUTED
4a26e: b280 cmpl %d0,%d1 <== NOT EXECUTED
4a270: 6508 bcss 4a27a <pthread_attr_setdetachstate+0x22><== NOT EXECUTED
case PTHREAD_CREATE_DETACHED:
case PTHREAD_CREATE_JOINABLE:
attr->detachstate = detachstate;
4a272: 2140 003c movel %d0,%a0@(60) <== NOT EXECUTED
return 0;
4a276: 4280 clrl %d0 <== NOT EXECUTED
4a278: 6002 bras 4a27c <pthread_attr_setdetachstate+0x24><== NOT EXECUTED
default:
return EINVAL;
4a27a: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
4a27c: 4e5e unlk %fp <== NOT EXECUTED
0004a280 <pthread_attr_setguardsize>:
int pthread_attr_setguardsize(
pthread_attr_t *attr,
size_t guardsize
)
{
4a280: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a284: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a288: 4a88 tstl %a0 <== NOT EXECUTED
4a28a: 670e beqs 4a29a <pthread_attr_setguardsize+0x1a> <== NOT EXECUTED
4a28c: 4a90 tstl %a0@ <== NOT EXECUTED
4a28e: 670a beqs 4a29a <pthread_attr_setguardsize+0x1a> <== NOT EXECUTED
return EINVAL;
attr->guardsize = guardsize;
return 0;
4a290: 4280 clrl %d0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
attr->guardsize = guardsize;
4a292: 216e 000c 0034 movel %fp@(12),%a0@(52) <== NOT EXECUTED
return 0;
4a298: 6002 bras 4a29c <pthread_attr_setguardsize+0x1c> <== NOT EXECUTED
pthread_attr_t *attr,
size_t guardsize
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4a29a: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->guardsize = guardsize;
return 0;
}
4a29c: 4e5e unlk %fp <== NOT EXECUTED
0004b2d8 <pthread_attr_setinheritsched>:
int pthread_attr_setinheritsched(
pthread_attr_t *attr,
int inheritsched
)
{
4b2d8: 4e56 0000 linkw %fp,#0
4b2dc: 206e 0008 moveal %fp@(8),%a0
4b2e0: 222e 000c movel %fp@(12),%d1
4b2e4: 2f02 movel %d2,%sp@-
if ( !attr || !attr->is_initialized )
4b2e6: 4a88 tstl %a0
4b2e8: 671c beqs 4b306 <pthread_attr_setinheritsched+0x2e><== NEVER TAKEN
4b2ea: 4a90 tstl %a0@
4b2ec: 6718 beqs 4b306 <pthread_attr_setinheritsched+0x2e><== NEVER TAKEN
return EINVAL;
switch ( inheritsched ) {
4b2ee: 2241 moveal %d1,%a1
4b2f0: 5389 subql #1,%a1
case PTHREAD_EXPLICIT_SCHED:
attr->inheritsched = inheritsched;
return 0;
default:
return ENOTSUP;
4b2f2: 203c 0000 0086 movel #134,%d0
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( inheritsched ) {
4b2f8: 7401 moveq #1,%d2
4b2fa: b489 cmpl %a1,%d2
4b2fc: 650a bcss 4b308 <pthread_attr_setinheritsched+0x30><== NEVER TAKEN
case PTHREAD_INHERIT_SCHED:
case PTHREAD_EXPLICIT_SCHED:
attr->inheritsched = inheritsched;
4b2fe: 2141 0010 movel %d1,%a0@(16)
return 0;
4b302: 4200 clrb %d0
4b304: 6002 bras 4b308 <pthread_attr_setinheritsched+0x30>
pthread_attr_t *attr,
int inheritsched
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4b306: 7016 moveq #22,%d0 <== NOT EXECUTED
return 0;
default:
return ENOTSUP;
}
}
4b308: 241f movel %sp@+,%d2
4b30a: 4e5e unlk %fp
...
0004a2d8 <pthread_attr_setschedparam>:
int pthread_attr_setschedparam(
pthread_attr_t *attr,
const struct sched_param *param
)
{
4a2d8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a2dc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a2e0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !param )
4a2e4: 4a88 tstl %a0 <== NOT EXECUTED
4a2e6: 6720 beqs 4a308 <pthread_attr_setschedparam+0x30><== NOT EXECUTED
4a2e8: 4a90 tstl %a0@ <== NOT EXECUTED
4a2ea: 671c beqs 4a308 <pthread_attr_setschedparam+0x30><== NOT EXECUTED
4a2ec: 4a80 tstl %d0 <== NOT EXECUTED
4a2ee: 6718 beqs 4a308 <pthread_attr_setschedparam+0x30><== NOT EXECUTED
return EINVAL;
attr->schedparam = *param;
4a2f0: 4878 001c pea 1c <OPER2+0x8> <== NOT EXECUTED
4a2f4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4a2f6: 4868 0018 pea %a0@(24) <== NOT EXECUTED
4a2fa: 4eb9 0005 2b48 jsr 52b48 <memcpy> <== NOT EXECUTED
return 0;
4a300: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a304: 4280 clrl %d0 <== NOT EXECUTED
4a306: 6002 bras 4a30a <pthread_attr_setschedparam+0x32><== NOT EXECUTED
pthread_attr_t *attr,
const struct sched_param *param
)
{
if ( !attr || !attr->is_initialized || !param )
return EINVAL;
4a308: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->schedparam = *param;
return 0;
}
4a30a: 4e5e unlk %fp <== NOT EXECUTED
...
0004a310 <pthread_attr_setschedpolicy>:
int pthread_attr_setschedpolicy(
pthread_attr_t *attr,
int policy
)
{
4a310: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a314: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a318: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED
4a31c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a31e: 4a88 tstl %a0 <== NOT EXECUTED
4a320: 671e beqs 4a340 <pthread_attr_setschedpolicy+0x30><== NOT EXECUTED
4a322: 4a90 tstl %a0@ <== NOT EXECUTED
4a324: 671a beqs 4a340 <pthread_attr_setschedpolicy+0x30><== NOT EXECUTED
return EINVAL;
switch ( policy ) {
4a326: 7004 moveq #4,%d0 <== NOT EXECUTED
4a328: b081 cmpl %d1,%d0 <== NOT EXECUTED
4a32a: 6518 bcss 4a344 <pthread_attr_setschedpolicy+0x34><== NOT EXECUTED
4a32c: 103c 0001 moveb #1,%d0 <== NOT EXECUTED
4a330: 7417 moveq #23,%d2 <== NOT EXECUTED
4a332: e3a8 lsll %d1,%d0 <== NOT EXECUTED
4a334: c082 andl %d2,%d0 <== NOT EXECUTED
4a336: 670c beqs 4a344 <pthread_attr_setschedpolicy+0x34><== NOT EXECUTED
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
case SCHED_SPORADIC:
attr->schedpolicy = policy;
4a338: 2141 0014 movel %d1,%a0@(20) <== NOT EXECUTED
return 0;
4a33c: 4280 clrl %d0 <== NOT EXECUTED
4a33e: 600a bras 4a34a <pthread_attr_setschedpolicy+0x3a><== NOT EXECUTED
pthread_attr_t *attr,
int policy
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4a340: 7016 moveq #22,%d0 <== NOT EXECUTED
4a342: 6006 bras 4a34a <pthread_attr_setschedpolicy+0x3a><== NOT EXECUTED
case SCHED_SPORADIC:
attr->schedpolicy = policy;
return 0;
default:
return ENOTSUP;
4a344: 203c 0000 0086 movel #134,%d0 <== NOT EXECUTED
}
}
4a34a: 241f movel %sp@+,%d2 <== NOT EXECUTED
4a34c: 4e5e unlk %fp <== NOT EXECUTED
0004a350 <pthread_attr_setscope>:
int pthread_attr_setscope(
pthread_attr_t *attr,
int contentionscope
)
{
4a350: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a354: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a358: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED
4a35c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a35e: 4a88 tstl %a0 <== NOT EXECUTED
4a360: 671e beqs 4a380 <pthread_attr_setscope+0x30> <== NOT EXECUTED
4a362: 4a90 tstl %a0@ <== NOT EXECUTED
4a364: 671a beqs 4a380 <pthread_attr_setscope+0x30> <== NOT EXECUTED
return EINVAL;
switch ( contentionscope ) {
4a366: 4a81 tstl %d1 <== NOT EXECUTED
4a368: 670e beqs 4a378 <pthread_attr_setscope+0x28> <== NOT EXECUTED
case PTHREAD_SCOPE_PROCESS:
attr->contentionscope = contentionscope;
return 0;
case PTHREAD_SCOPE_SYSTEM:
return ENOTSUP;
4a36a: 203c 0000 0086 movel #134,%d0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( contentionscope ) {
4a370: 7401 moveq #1,%d2 <== NOT EXECUTED
4a372: b481 cmpl %d1,%d2 <== NOT EXECUTED
4a374: 660a bnes 4a380 <pthread_attr_setscope+0x30> <== NOT EXECUTED
4a376: 600a bras 4a382 <pthread_attr_setscope+0x32> <== NOT EXECUTED
case PTHREAD_SCOPE_PROCESS:
attr->contentionscope = contentionscope;
4a378: 42a8 000c clrl %a0@(12) <== NOT EXECUTED
return 0;
4a37c: 4280 clrl %d0 <== NOT EXECUTED
4a37e: 6002 bras 4a382 <pthread_attr_setscope+0x32> <== NOT EXECUTED
case PTHREAD_SCOPE_SYSTEM:
return ENOTSUP;
default:
return EINVAL;
4a380: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
4a382: 241f movel %sp@+,%d2 <== NOT EXECUTED
4a384: 4e5e unlk %fp <== NOT EXECUTED
0004a3a8 <pthread_attr_setstack>:
int pthread_attr_setstack(
pthread_attr_t *attr,
void *stackaddr,
size_t stacksize
)
{
4a3a8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a3ac: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4a3b0: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a3b4: 4a88 tstl %a0 <== NOT EXECUTED
4a3b6: 6724 beqs 4a3dc <pthread_attr_setstack+0x34> <== NOT EXECUTED
4a3b8: 4a90 tstl %a0@ <== NOT EXECUTED
4a3ba: 6720 beqs 4a3dc <pthread_attr_setstack+0x34> <== NOT EXECUTED
return EINVAL;
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
4a3bc: 2039 0006 4b92 movel 64b92 <rtems_minimum_stack_size>,%d0 <== NOT EXECUTED
4a3c2: d080 addl %d0,%d0 <== NOT EXECUTED
4a3c4: b081 cmpl %d1,%d0 <== NOT EXECUTED
4a3c6: 6306 blss 4a3ce <pthread_attr_setstack+0x26> <== NOT EXECUTED
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
4a3c8: 2140 0008 movel %d0,%a0@(8) <== NOT EXECUTED
4a3cc: 6004 bras 4a3d2 <pthread_attr_setstack+0x2a> <== NOT EXECUTED
else
attr->stacksize = stacksize;
4a3ce: 2141 0008 movel %d1,%a0@(8) <== NOT EXECUTED
attr->stackaddr = stackaddr;
return 0;
4a3d2: 4280 clrl %d0 <== NOT EXECUTED
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
else
attr->stacksize = stacksize;
attr->stackaddr = stackaddr;
4a3d4: 216e 000c 0004 movel %fp@(12),%a0@(4) <== NOT EXECUTED
return 0;
4a3da: 6002 bras 4a3de <pthread_attr_setstack+0x36> <== NOT EXECUTED
void *stackaddr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4a3dc: 7016 moveq #22,%d0 <== NOT EXECUTED
else
attr->stacksize = stacksize;
attr->stackaddr = stackaddr;
return 0;
}
4a3de: 4e5e unlk %fp <== NOT EXECUTED
...
0004a388 <pthread_attr_setstackaddr>:
int pthread_attr_setstackaddr(
pthread_attr_t *attr,
void *stackaddr
)
{
4a388: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4a38c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
4a390: 4a88 tstl %a0 <== NOT EXECUTED
4a392: 670e beqs 4a3a2 <pthread_attr_setstackaddr+0x1a> <== NOT EXECUTED
4a394: 4a90 tstl %a0@ <== NOT EXECUTED
4a396: 670a beqs 4a3a2 <pthread_attr_setstackaddr+0x1a> <== NOT EXECUTED
return EINVAL;
attr->stackaddr = stackaddr;
return 0;
4a398: 4280 clrl %d0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
attr->stackaddr = stackaddr;
4a39a: 216e 000c 0004 movel %fp@(12),%a0@(4) <== NOT EXECUTED
return 0;
4a3a0: 6002 bras 4a3a4 <pthread_attr_setstackaddr+0x1c> <== NOT EXECUTED
pthread_attr_t *attr,
void *stackaddr
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4a3a2: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->stackaddr = stackaddr;
return 0;
}
4a3a4: 4e5e unlk %fp <== NOT EXECUTED
0004b310 <pthread_attr_setstacksize>:
int pthread_attr_setstacksize(
pthread_attr_t *attr,
size_t stacksize
)
{
4b310: 4e56 0000 linkw %fp,#0
4b314: 206e 0008 moveal %fp@(8),%a0
4b318: 222e 000c movel %fp@(12),%d1
if ( !attr || !attr->is_initialized )
4b31c: 4a88 tstl %a0
4b31e: 671e beqs 4b33e <pthread_attr_setstacksize+0x2e> <== NEVER TAKEN
4b320: 4a90 tstl %a0@
4b322: 671a beqs 4b33e <pthread_attr_setstacksize+0x2e> <== NEVER TAKEN
return EINVAL;
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
4b324: 2039 0005 d1d2 movel 5d1d2 <rtems_minimum_stack_size>,%d0
4b32a: d080 addl %d0,%d0
4b32c: b081 cmpl %d1,%d0
4b32e: 6306 blss 4b336 <pthread_attr_setstacksize+0x26>
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
4b330: 2140 0008 movel %d0,%a0@(8)
4b334: 6004 bras 4b33a <pthread_attr_setstacksize+0x2a>
else
attr->stacksize = stacksize;
4b336: 2141 0008 movel %d1,%a0@(8)
return 0;
4b33a: 4280 clrl %d0
4b33c: 6002 bras 4b340 <pthread_attr_setstacksize+0x30>
pthread_attr_t *attr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
4b33e: 7016 moveq #22,%d0 <== NOT EXECUTED
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
else
attr->stacksize = stacksize;
return 0;
}
4b340: 4e5e unlk %fp <== NOT EXECUTED
0004593c <pthread_barrier_destroy>:
*/
int pthread_barrier_destroy(
pthread_barrier_t *barrier
)
{
4593c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45940: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
45944: 2f0b movel %a3,%sp@- <== NOT EXECUTED
45946: 2f0a movel %a2,%sp@- <== NOT EXECUTED
POSIX_Barrier_Control *the_barrier = NULL;
Objects_Locations location;
if ( !barrier )
45948: 4a88 tstl %a0 <== NOT EXECUTED
4594a: 6756 beqs 459a2 <pthread_barrier_destroy+0x66> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get (
pthread_barrier_t *barrier,
Objects_Locations *location
)
{
return (POSIX_Barrier_Control *) _Objects_Get(
4594c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45950: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
45952: 4879 0005 f344 pea 5f344 <_POSIX_Barrier_Information> <== NOT EXECUTED
45958: 4eb9 0004 7d20 jsr 47d20 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_barrier = _POSIX_Barrier_Get( barrier, &location );
switch ( location ) {
4595e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45962: 2440 moveal %d0,%a2 <== NOT EXECUTED
45964: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45968: 6638 bnes 459a2 <pthread_barrier_destroy+0x66> <== NOT EXECUTED
4596a: 47f9 0004 8512 lea 48512 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) {
45970: 4aaa 0058 tstl %a2@(88) <== NOT EXECUTED
45974: 6706 beqs 4597c <pthread_barrier_destroy+0x40> <== NOT EXECUTED
_Thread_Enable_dispatch();
45976: 4e93 jsr %a3@ <== NOT EXECUTED
return EBUSY;
45978: 7010 moveq #16,%d0 <== NOT EXECUTED
4597a: 6028 bras 459a4 <pthread_barrier_destroy+0x68> <== NOT EXECUTED
}
_Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object );
4597c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4597e: 4879 0005 f344 pea 5f344 <_POSIX_Barrier_Information> <== NOT EXECUTED
45984: 4eb9 0004 7944 jsr 47944 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Barrier_Free (
POSIX_Barrier_Control *the_barrier
)
{
_Objects_Free( &_POSIX_Barrier_Information, &the_barrier->Object );
4598a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4598c: 4879 0005 f344 pea 5f344 <_POSIX_Barrier_Information> <== NOT EXECUTED
45992: 4eb9 0004 7bbc jsr 47bbc <_Objects_Free> <== NOT EXECUTED
_POSIX_Barrier_Free( the_barrier );
_Thread_Enable_dispatch();
45998: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
4599a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4599e: 4280 clrl %d0 <== NOT EXECUTED
459a0: 6002 bras 459a4 <pthread_barrier_destroy+0x68> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
459a2: 7016 moveq #22,%d0 <== NOT EXECUTED
}
459a4: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
459a8: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
459ac: 4e5e unlk %fp <== NOT EXECUTED
000459b0 <pthread_barrier_init>:
int pthread_barrier_init(
pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr,
unsigned int count
)
{
459b0: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED
459b4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
459b8: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED
459bc: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
459c0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
const pthread_barrierattr_t *the_attr;
/*
* Error check parameters
*/
if ( !barrier )
459c4: 4a8a tstl %a2 <== NOT EXECUTED
459c6: 6700 008e beqw 45a56 <pthread_barrier_init+0xa6> <== NOT EXECUTED
return EINVAL;
if ( count == 0 )
459ca: 4a82 tstl %d2 <== NOT EXECUTED
459cc: 6700 0088 beqw 45a56 <pthread_barrier_init+0xa6> <== NOT EXECUTED
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
459d0: 4a88 tstl %a0 <== NOT EXECUTED
459d2: 6614 bnes 459e8 <pthread_barrier_init+0x38> <== NOT EXECUTED
the_attr = attr;
} else {
(void) pthread_barrierattr_init( &my_attr );
459d4: 260e movel %fp,%d3 <== NOT EXECUTED
459d6: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED
459dc: 2f03 movel %d3,%sp@- <== NOT EXECUTED
459de: 4eb9 0004 58f4 jsr 458f4 <pthread_barrierattr_init> <== NOT EXECUTED
459e4: 588f addql #4,%sp <== NOT EXECUTED
the_attr = &my_attr;
459e6: 2043 moveal %d3,%a0 <== NOT EXECUTED
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
459e8: 4a90 tstl %a0@ <== NOT EXECUTED
459ea: 676a beqs 45a56 <pthread_barrier_init+0xa6> <== NOT EXECUTED
return EINVAL;
switch ( the_attr->process_shared ) {
459ec: 4aa8 0004 tstl %a0@(4) <== NOT EXECUTED
459f0: 6664 bnes 45a56 <pthread_barrier_init+0xa6> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
459f2: 2039 0005 f020 movel 5f020 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
459f8: 5280 addql #1,%d0 <== NOT EXECUTED
}
/*
* Convert from POSIX attributes to Core Barrier attributes
*/
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
459fa: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED
the_attributes.maximum_count = count;
459fe: 2d42 fffc movel %d2,%fp@(-4) <== NOT EXECUTED
45a02: 23c0 0005 f020 movel %d0,5f020 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{
return (POSIX_Barrier_Control *)
_Objects_Allocate( &_POSIX_Barrier_Information );
45a08: 4879 0005 f344 pea 5f344 <_POSIX_Barrier_Information> <== NOT EXECUTED
45a0e: 49f9 0004 8512 lea 48512 <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
45a14: 4eb9 0004 78c8 jsr 478c8 <_Objects_Allocate> <== NOT EXECUTED
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _POSIX_Barrier_Allocate();
if ( !the_barrier ) {
45a1a: 588f addql #4,%sp <== NOT EXECUTED
45a1c: 2640 moveal %d0,%a3 <== NOT EXECUTED
45a1e: 4a80 tstl %d0 <== NOT EXECUTED
45a20: 6606 bnes 45a28 <pthread_barrier_init+0x78> <== NOT EXECUTED
_Thread_Enable_dispatch();
45a22: 4e94 jsr %a4@ <== NOT EXECUTED
return EAGAIN;
45a24: 700b moveq #11,%d0 <== NOT EXECUTED
45a26: 6030 bras 45a58 <pthread_barrier_init+0xa8> <== NOT EXECUTED
}
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
45a28: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
45a2c: 486b 0010 pea %a3@(16) <== NOT EXECUTED
45a30: 4eb9 0004 6fd0 jsr 46fd0 <_CORE_barrier_Initialize> <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
45a36: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
45a3a: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45a3c: 2079 0005 f35c moveal 5f35c <_POSIX_Barrier_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
45a42: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45a44: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
45a48: 42ab 000c clrl %a3@(12) <== NOT EXECUTED
);
/*
* Exit the critical section and return the user an operational barrier
*/
*barrier = the_barrier->Object.id;
45a4c: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
45a4e: 4e94 jsr %a4@ <== NOT EXECUTED
return 0;
45a50: 508f addql #8,%sp <== NOT EXECUTED
45a52: 4280 clrl %d0 <== NOT EXECUTED
45a54: 6002 bras 45a58 <pthread_barrier_init+0xa8> <== NOT EXECUTED
switch ( the_attr->process_shared ) {
case PTHREAD_PROCESS_PRIVATE: /* only supported values */
break;
case PTHREAD_PROCESS_SHARED:
default:
return EINVAL;
45a56: 7016 moveq #22,%d0 <== NOT EXECUTED
* Exit the critical section and return the user an operational barrier
*/
*barrier = the_barrier->Object.id;
_Thread_Enable_dispatch();
return 0;
}
45a58: 4cee 1c0c ffdc moveml %fp@(-36),%d2-%d3/%a2-%a4 <== NOT EXECUTED
45a5e: 4e5e unlk %fp <== NOT EXECUTED
...
00045a64 <pthread_barrier_wait>:
*/
int pthread_barrier_wait(
pthread_barrier_t *barrier
)
{
45a64: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45a68: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
POSIX_Barrier_Control *the_barrier = NULL;
Objects_Locations location;
if ( !barrier )
45a6c: 4a88 tstl %a0 <== NOT EXECUTED
45a6e: 6750 beqs 45ac0 <pthread_barrier_wait+0x5c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get (
pthread_barrier_t *barrier,
Objects_Locations *location
)
{
return (POSIX_Barrier_Control *) _Objects_Get(
45a70: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45a74: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
45a76: 4879 0005 f344 pea 5f344 <_POSIX_Barrier_Information> <== NOT EXECUTED
45a7c: 4eb9 0004 7d20 jsr 47d20 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_barrier = _POSIX_Barrier_Get( barrier, &location );
switch ( location ) {
45a82: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45a86: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45a8a: 6634 bnes 45ac0 <pthread_barrier_wait+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Wait(
45a8c: 42a7 clrl %sp@- <== NOT EXECUTED
45a8e: 2040 moveal %d0,%a0 <== NOT EXECUTED
45a90: 42a7 clrl %sp@- <== NOT EXECUTED
45a92: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
45a96: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
45a9a: 4868 0010 pea %a0@(16) <== NOT EXECUTED
45a9e: 4eb9 0004 700c jsr 4700c <_CORE_barrier_Wait> <== NOT EXECUTED
the_barrier->Object.id,
true,
0,
NULL
);
_Thread_Enable_dispatch();
45aa4: 4eb9 0004 8512 jsr 48512 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Barrier_Translate_core_barrier_return_code(
_Thread_Executing->Wait.return_code );
45aaa: 2079 0005 f4b0 moveal 5f4b0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
true,
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_Barrier_Translate_core_barrier_return_code(
45ab0: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
45ab4: 4eb9 0004 af58 jsr 4af58 <_POSIX_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED
45aba: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
45abe: 6002 bras 45ac2 <pthread_barrier_wait+0x5e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
45ac0: 7016 moveq #22,%d0 <== NOT EXECUTED
}
45ac2: 4e5e unlk %fp <== NOT EXECUTED
...
000458b4 <pthread_barrierattr_destroy>:
*/
int pthread_barrierattr_destroy(
pthread_barrierattr_t *attr
)
{
458b4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
458b8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || attr->is_initialized == false )
458bc: 4a88 tstl %a0 <== NOT EXECUTED
458be: 670a beqs 458ca <pthread_barrierattr_destroy+0x16><== NOT EXECUTED
458c0: 4a90 tstl %a0@ <== NOT EXECUTED
458c2: 6706 beqs 458ca <pthread_barrierattr_destroy+0x16><== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
458c4: 4290 clrl %a0@ <== NOT EXECUTED
return 0;
458c6: 4280 clrl %d0 <== NOT EXECUTED
458c8: 6002 bras 458cc <pthread_barrierattr_destroy+0x18><== NOT EXECUTED
int pthread_barrierattr_destroy(
pthread_barrierattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
return EINVAL;
458ca: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
458cc: 4e5e unlk %fp <== NOT EXECUTED
000458d0 <pthread_barrierattr_getpshared>:
int pthread_barrierattr_getpshared(
const pthread_barrierattr_t *attr,
int *pshared
)
{
458d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
458d4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr )
458d8: 4a88 tstl %a0 <== NOT EXECUTED
458da: 6710 beqs 458ec <pthread_barrierattr_getpshared+0x1c><== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
458dc: 4a90 tstl %a0@ <== NOT EXECUTED
458de: 670c beqs 458ec <pthread_barrierattr_getpshared+0x1c><== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
458e0: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
return 0;
458e4: 4280 clrl %d0 <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
*pshared = attr->process_shared;
458e6: 22a8 0004 movel %a0@(4),%a1@ <== NOT EXECUTED
return 0;
458ea: 6002 bras 458ee <pthread_barrierattr_getpshared+0x1e><== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
458ec: 7016 moveq #22,%d0 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
}
458ee: 4e5e unlk %fp <== NOT EXECUTED
...
000458f4 <pthread_barrierattr_init>:
*/
int pthread_barrierattr_init(
pthread_barrierattr_t *attr
)
{
458f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
458f8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr )
458fc: 4a88 tstl %a0 <== NOT EXECUTED
458fe: 670c beqs 4590c <pthread_barrierattr_init+0x18> <== NOT EXECUTED
return EINVAL;
attr->is_initialized = true;
45900: 7001 moveq #1,%d0 <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
45902: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
)
{
if ( !attr )
return EINVAL;
attr->is_initialized = true;
45906: 2080 movel %d0,%a0@ <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
return 0;
45908: 4280 clrl %d0 <== NOT EXECUTED
4590a: 6002 bras 4590e <pthread_barrierattr_init+0x1a> <== NOT EXECUTED
int pthread_barrierattr_init(
pthread_barrierattr_t *attr
)
{
if ( !attr )
return EINVAL;
4590c: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = true;
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
4590e: 4e5e unlk %fp <== NOT EXECUTED
...
00045914 <pthread_barrierattr_setpshared>:
int pthread_barrierattr_setpshared(
pthread_barrierattr_t *attr,
int pshared
)
{
45914: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45918: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4591c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr )
45920: 4a88 tstl %a0 <== NOT EXECUTED
45922: 6712 beqs 45936 <pthread_barrierattr_setpshared+0x22><== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
45924: 4a90 tstl %a0@ <== NOT EXECUTED
45926: 670e beqs 45936 <pthread_barrierattr_setpshared+0x22><== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
45928: 7201 moveq #1,%d1 <== NOT EXECUTED
4592a: b280 cmpl %d0,%d1 <== NOT EXECUTED
4592c: 6508 bcss 45936 <pthread_barrierattr_setpshared+0x22><== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
4592e: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
return 0;
45932: 4280 clrl %d0 <== NOT EXECUTED
45934: 6002 bras 45938 <pthread_barrierattr_setpshared+0x24><== NOT EXECUTED
default:
return EINVAL;
45936: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
45938: 4e5e unlk %fp <== NOT EXECUTED
00045148 <pthread_cancel>:
*/
int pthread_cancel(
pthread_t thread
)
{
45148: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
/*
* Don't even think about deleting a resource from an ISR.
*/
if ( _ISR_Is_in_progress() )
4514c: 4ab9 0005 e54c tstl 5e54c <_Per_CPU_Information+0x8> <== NOT EXECUTED
45152: 6638 bnes 4518c <pthread_cancel+0x44> <== NOT EXECUTED
pthread_t id,
Objects_Locations *location
)
{
return (Thread_Control *)
_Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location );
45154: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45158: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4515c: 4879 0005 e288 pea 5e288 <_POSIX_Threads_Information> <== NOT EXECUTED
45162: 4eb9 0004 7054 jsr 47054 <_Objects_Get> <== NOT EXECUTED
return EPROTO;
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
45168: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4516c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45170: 661e bnes 45190 <pthread_cancel+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
thread_support->cancelation_requested = 1;
45172: 2240 moveal %d0,%a1 <== NOT EXECUTED
45174: 7201 moveq #1,%d1 <== NOT EXECUTED
45176: 2069 010e moveal %a1@(270),%a0 <== NOT EXECUTED
4517a: 2141 00e0 movel %d1,%a0@(224) <== NOT EXECUTED
/* This enables dispatch implicitly */
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( the_thread );
4517e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45180: 4eb9 0004 9fbc jsr 49fbc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch><== NOT EXECUTED
return 0;
45186: 588f addql #4,%sp <== NOT EXECUTED
45188: 4280 clrl %d0 <== NOT EXECUTED
4518a: 6006 bras 45192 <pthread_cancel+0x4a> <== NOT EXECUTED
/*
* Don't even think about deleting a resource from an ISR.
*/
if ( _ISR_Is_in_progress() )
return EPROTO;
4518c: 7047 moveq #71,%d0 <== NOT EXECUTED
4518e: 6002 bras 45192 <pthread_cancel+0x4a> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
45190: 7016 moveq #22,%d0 <== NOT EXECUTED
}
45192: 4e5e unlk %fp <== NOT EXECUTED
...
00044fc4 <pthread_cleanup_pop>:
*/
void pthread_cleanup_pop(
int execute
)
{
44fc4: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
44fc8: 2039 0005 dd14 movel 5dd14 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
44fce: 5280 addql #1,%d0 <== NOT EXECUTED
POSIX_Cancel_Handler_control tmp_handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
44fd0: 2079 0005 e1a4 moveal 5e1a4 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
*/
void pthread_cleanup_pop(
int execute
)
{
44fd6: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
44fda: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED
POSIX_Cancel_Handler_control tmp_handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
44fde: 2268 010e moveal %a0@(270),%a1 <== NOT EXECUTED
44fe2: 23c0 0005 dd14 movel %d0,5dd14 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* ensure that we do not get prempted and deleted while we are holding
* memory that needs to be freed.
*/
_Thread_Disable_dispatch();
_ISR_Disable( level );
44fe8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
44fee: 40c2 movew %sr,%d2 <== NOT EXECUTED
44ff0: 8082 orl %d2,%d0 <== NOT EXECUTED
44ff2: 46c0 movew %d0,%sr <== NOT EXECUTED
44ff4: 45f9 0004 756a lea 4756a <_Thread_Enable_dispatch>,%a2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
44ffa: 41e9 00e8 lea %a1@(232),%a0 <== NOT EXECUTED
if ( _Chain_Is_empty( handler_stack ) ) {
44ffe: b1e9 00e4 cmpal %a1@(228),%a0 <== NOT EXECUTED
45002: 6606 bnes 4500a <pthread_cleanup_pop+0x46> <== NOT EXECUTED
_Thread_Enable_dispatch();
45004: 4e92 jsr %a2@ <== NOT EXECUTED
_ISR_Enable( level );
45006: 46c2 movew %d2,%sr <== NOT EXECUTED
return;
45008: 603a bras 45044 <pthread_cleanup_pop+0x80> <== NOT EXECUTED
}
handler = (POSIX_Cancel_Handler_control *)
4500a: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
4500e: 2650 moveal %a0@,%a3 <== NOT EXECUTED
previous = the_node->previous;
45010: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED
next->previous = previous;
45014: 2749 0004 movel %a1,%a3@(4) <== NOT EXECUTED
previous->next = next;
45018: 228b movel %a3,%a1@ <== NOT EXECUTED
_Chain_Tail( handler_stack )->previous;
_Chain_Extract_unprotected( &handler->Node );
_ISR_Enable( level );
4501a: 46c2 movew %d2,%sr <== NOT EXECUTED
4501c: 2428 0008 movel %a0@(8),%d2 <== NOT EXECUTED
45020: 2628 000c movel %a0@(12),%d3 <== NOT EXECUTED
tmp_handler = *handler;
_Workspace_Free( handler );
45024: 2f08 movel %a0,%sp@- <== NOT EXECUTED
45026: 4eb9 0004 8774 jsr 48774 <_Workspace_Free> <== NOT EXECUTED
_Thread_Enable_dispatch();
4502c: 4e92 jsr %a2@ <== NOT EXECUTED
if ( execute )
4502e: 588f addql #4,%sp <== NOT EXECUTED
45030: 4a84 tstl %d4 <== NOT EXECUTED
45032: 6710 beqs 45044 <pthread_cleanup_pop+0x80> <== NOT EXECUTED
(*tmp_handler.routine)( tmp_handler.arg );
45034: 2242 moveal %d2,%a1 <== NOT EXECUTED
45036: 2d43 0008 movel %d3,%fp@(8) <== NOT EXECUTED
}
4503a: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
45040: 4e5e unlk %fp <== NOT EXECUTED
_Workspace_Free( handler );
_Thread_Enable_dispatch();
if ( execute )
(*tmp_handler.routine)( tmp_handler.arg );
45042: 4ed1 jmp %a1@ <== NOT EXECUTED
}
45044: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
4504a: 4e5e unlk %fp <== NOT EXECUTED
...
000453dc <pthread_cleanup_push>:
void pthread_cleanup_push(
void (*routine)( void * ),
void *arg
)
{
453dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
453e0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
453e2: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
453e6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
453e8: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
/*
* The POSIX standard does not address what to do when the routine
* is NULL. It also does not address what happens when we cannot
* allocate memory or anything else bad happens.
*/
if ( !routine )
453ec: 6754 beqs 45442 <pthread_cleanup_push+0x66> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
453ee: 2039 0005 e978 movel 5e978 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
453f4: 5280 addql #1,%d0 <== NOT EXECUTED
453f6: 23c0 0005 e978 movel %d0,5e978 <_Thread_Dispatch_disable_level><== NOT EXECUTED
return;
_Thread_Disable_dispatch();
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
453fc: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
45400: 4eb9 0004 9200 jsr 49200 <_Workspace_Allocate> <== NOT EXECUTED
if ( handler ) {
45406: 588f addql #4,%sp <== NOT EXECUTED
45408: 4a80 tstl %d0 <== NOT EXECUTED
4540a: 6726 beqs 45432 <pthread_cleanup_push+0x56> <== NOT EXECUTED
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
4540c: 2079 0005 ee08 moveal 5ee08 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
handler_stack = &thread_support->Cancellation_Handlers;
45412: 2228 010e movel %a0@(270),%d1 <== NOT EXECUTED
handler->routine = routine;
45416: 2040 moveal %d0,%a0 <== NOT EXECUTED
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
if ( handler ) {
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
45418: 0681 0000 00e4 addil #228,%d1 <== NOT EXECUTED
handler->routine = routine;
4541e: 2142 0008 movel %d2,%a0@(8) <== NOT EXECUTED
handler->arg = arg;
45422: 2143 000c movel %d3,%a0@(12) <== NOT EXECUTED
_Chain_Append( handler_stack, &handler->Node );
45426: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45428: 2f01 movel %d1,%sp@- <== NOT EXECUTED
4542a: 4eb9 0004 6a78 jsr 46a78 <_Chain_Append> <== NOT EXECUTED
45430: 508f addql #8,%sp <== NOT EXECUTED
}
_Thread_Enable_dispatch();
}
45432: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45436: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
4543a: 4e5e unlk %fp <== NOT EXECUTED
handler->routine = routine;
handler->arg = arg;
_Chain_Append( handler_stack, &handler->Node );
}
_Thread_Enable_dispatch();
4543c: 4ef9 0004 7f7e jmp 47f7e <_Thread_Enable_dispatch> <== NOT EXECUTED
}
45442: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45446: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
4544a: 4e5e unlk %fp <== NOT EXECUTED
...
0004601c <pthread_cond_broadcast>:
*/
int pthread_cond_broadcast(
pthread_cond_t *cond
)
{
4601c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Condition_variables_Signal_support( cond, true );
46020: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
46024: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46028: 4eb9 0004 61b0 jsr 461b0 <_POSIX_Condition_variables_Signal_support><== NOT EXECUTED
}
4602e: 4e5e unlk %fp <== NOT EXECUTED
...
00046034 <pthread_cond_destroy>:
*/
int pthread_cond_destroy(
pthread_cond_t *cond
)
{
46034: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46038: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4603a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
4603c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46040: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46044: 4eb9 0004 60a4 jsr 460a4 <_POSIX_Condition_variables_Get> <== NOT EXECUTED
switch ( location ) {
4604a: 508f addql #8,%sp <== NOT EXECUTED
)
{
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
4604c: 2440 moveal %d0,%a2 <== NOT EXECUTED
switch ( location ) {
4604e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46052: 6642 bnes 46096 <pthread_cond_destroy+0x62> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
46054: 486a 0018 pea %a2@(24) <== NOT EXECUTED
46058: 47f9 0004 915e lea 4915e <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
4605e: 4eb9 0004 97ec jsr 497ec <_Thread_queue_First> <== NOT EXECUTED
46064: 588f addql #4,%sp <== NOT EXECUTED
46066: 4a80 tstl %d0 <== NOT EXECUTED
46068: 6706 beqs 46070 <pthread_cond_destroy+0x3c> <== NOT EXECUTED
_Thread_Enable_dispatch();
4606a: 4e93 jsr %a3@ <== NOT EXECUTED
return EBUSY;
4606c: 7010 moveq #16,%d0 <== NOT EXECUTED
4606e: 6028 bras 46098 <pthread_cond_destroy+0x64> <== NOT EXECUTED
}
_Objects_Close(
46070: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46072: 4879 0006 02fc pea 602fc <_POSIX_Condition_variables_Information><== NOT EXECUTED
46078: 4eb9 0004 8590 jsr 48590 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free (
POSIX_Condition_variables_Control *the_condition_variable
)
{
_Objects_Free(
4607e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46080: 4879 0006 02fc pea 602fc <_POSIX_Condition_variables_Information><== NOT EXECUTED
46086: 4eb9 0004 8808 jsr 48808 <_Objects_Free> <== NOT EXECUTED
&_POSIX_Condition_variables_Information,
&the_cond->Object
);
_POSIX_Condition_variables_Free( the_cond );
_Thread_Enable_dispatch();
4608c: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
4608e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
46092: 4280 clrl %d0 <== NOT EXECUTED
46094: 6002 bras 46098 <pthread_cond_destroy+0x64> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
46096: 7016 moveq #22,%d0 <== NOT EXECUTED
}
46098: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
4609c: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
460a0: 4e5e unlk %fp <== NOT EXECUTED
000460f8 <pthread_cond_init>:
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr
)
{
460f8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
460fc: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED
46100: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
POSIX_Condition_variables_Control *the_cond;
const pthread_condattr_t *the_attr;
if ( attr ) the_attr = attr;
46104: 4a8a tstl %a2 <== NOT EXECUTED
46106: 6606 bnes 4610e <pthread_cond_init+0x16> <== NOT EXECUTED
else the_attr = &_POSIX_Condition_variables_Default_attributes;
46108: 45f9 0005 d6f6 lea 5d6f6 <_POSIX_Condition_variables_Default_attributes>,%a2<== NOT EXECUTED
/*
* Be careful about attributes when global!!!
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
4610e: 7001 moveq #1,%d0 <== NOT EXECUTED
46110: b0aa 0004 cmpl %a2@(4),%d0 <== NOT EXECUTED
46114: 6778 beqs 4618e <pthread_cond_init+0x96> <== NOT EXECUTED
return EINVAL;
if ( !the_attr->is_initialized )
46116: 4a92 tstl %a2@ <== NOT EXECUTED
46118: 6774 beqs 4618e <pthread_cond_init+0x96> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4611a: 2039 0005 ff4c movel 5ff4c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46120: 5280 addql #1,%d0 <== NOT EXECUTED
46122: 23c0 0005 ff4c movel %d0,5ff4c <_Thread_Dispatch_disable_level><== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
*_POSIX_Condition_variables_Allocate( void )
{
return (POSIX_Condition_variables_Control *)
_Objects_Allocate( &_POSIX_Condition_variables_Information );
46128: 4879 0006 02fc pea 602fc <_POSIX_Condition_variables_Information><== NOT EXECUTED
4612e: 49f9 0004 915e lea 4915e <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
46134: 4eb9 0004 8514 jsr 48514 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch();
the_cond = _POSIX_Condition_variables_Allocate();
if ( !the_cond ) {
4613a: 588f addql #4,%sp <== NOT EXECUTED
4613c: 2640 moveal %d0,%a3 <== NOT EXECUTED
4613e: 4a80 tstl %d0 <== NOT EXECUTED
46140: 6606 bnes 46148 <pthread_cond_init+0x50> <== NOT EXECUTED
_Thread_Enable_dispatch();
46142: 4e94 jsr %a4@ <== NOT EXECUTED
return ENOMEM;
46144: 700c moveq #12,%d0 <== NOT EXECUTED
46146: 6048 bras 46190 <pthread_cond_init+0x98> <== NOT EXECUTED
}
the_cond->process_shared = the_attr->process_shared;
46148: 276a 0004 0010 movel %a2@(4),%a3@(16) <== NOT EXECUTED
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
4614e: 42ab 0014 clrl %a3@(20) <== NOT EXECUTED
_Thread_queue_Initialize(
46152: 4878 0074 pea 74 <DBL_MANT_DIG+0x3f> <== NOT EXECUTED
46156: 2f3c 1000 0800 movel #268437504,%sp@- <== NOT EXECUTED
4615c: 42a7 clrl %sp@- <== NOT EXECUTED
4615e: 486b 0018 pea %a3@(24) <== NOT EXECUTED
46162: 4eb9 0004 9880 jsr 49880 <_Thread_queue_Initialize> <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
46168: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
4616c: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4616e: 2079 0006 0314 moveal 60314 <_POSIX_Condition_variables_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
46174: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
46176: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
&_POSIX_Condition_variables_Information,
&the_cond->Object,
0
);
*cond = the_cond->Object.id;
4617a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
4617e: 42ab 000c clrl %a3@(12) <== NOT EXECUTED
46182: 2080 movel %d0,%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
46184: 4e94 jsr %a4@ <== NOT EXECUTED
return 0;
46186: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4618a: 4280 clrl %d0 <== NOT EXECUTED
4618c: 6002 bras 46190 <pthread_cond_init+0x98> <== NOT EXECUTED
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
return EINVAL;
if ( !the_attr->is_initialized )
return EINVAL;
4618e: 7016 moveq #22,%d0 <== NOT EXECUTED
*cond = the_cond->Object.id;
_Thread_Enable_dispatch();
return 0;
}
46190: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4 <== NOT EXECUTED
46196: 4e5e unlk %fp <== NOT EXECUTED
...
0004619c <pthread_cond_signal>:
*/
int pthread_cond_signal(
pthread_cond_t *cond
)
{
4619c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Condition_variables_Signal_support( cond, false );
461a0: 42a7 clrl %sp@- <== NOT EXECUTED
461a2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
461a6: 4eb9 0004 61b0 jsr 461b0 <_POSIX_Condition_variables_Signal_support><== NOT EXECUTED
}
461ac: 4e5e unlk %fp <== NOT EXECUTED
00046210 <pthread_cond_timedwait>:
int pthread_cond_timedwait(
pthread_cond_t *cond,
pthread_mutex_t *mutex,
const struct timespec *abstime
)
{
46210: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
* is valid or not. If it isn't correct and in the future,
* then we do a polling operation and convert the UNSATISFIED
* status into the appropriate error.
*/
already_timedout = false;
status = _POSIX_Absolute_timeout_to_ticks(abstime, &ticks);
46214: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46218: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4621c: 4eb9 0004 6674 jsr 46674 <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
46222: 508f addql #8,%sp <== NOT EXECUTED
46224: 4a80 tstl %d0 <== NOT EXECUTED
46226: 6726 beqs 4624e <pthread_cond_timedwait+0x3e> <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
already_timedout = true;
return _POSIX_Condition_variables_Wait_support(
46228: 7201 moveq #1,%d1 <== NOT EXECUTED
already_timedout = false;
status = _POSIX_Absolute_timeout_to_ticks(abstime, &ticks);
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
4622a: 5380 subql #1,%d0 <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
already_timedout = true;
return _POSIX_Condition_variables_Wait_support(
4622c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4622e: 54c0 scc %d0 <== NOT EXECUTED
46230: 49c0 extbl %d0 <== NOT EXECUTED
46232: 4480 negl %d0 <== NOT EXECUTED
46234: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46236: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
4623a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4623e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46242: 4eb9 0004 6270 jsr 46270 <_POSIX_Condition_variables_Wait_support><== NOT EXECUTED
46248: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4624c: 6002 bras 46250 <pthread_cond_timedwait+0x40> <== NOT EXECUTED
* status into the appropriate error.
*/
already_timedout = false;
status = _POSIX_Absolute_timeout_to_ticks(abstime, &ticks);
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
4624e: 7016 moveq #22,%d0 <== NOT EXECUTED
cond,
mutex,
ticks,
already_timedout
);
}
46250: 4e5e unlk %fp <== NOT EXECUTED
00046254 <pthread_cond_wait>:
int pthread_cond_wait(
pthread_cond_t *cond,
pthread_mutex_t *mutex
)
{
46254: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Condition_variables_Wait_support(
46258: 42a7 clrl %sp@- <== NOT EXECUTED
4625a: 42a7 clrl %sp@- <== NOT EXECUTED
4625c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
46260: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46264: 4eb9 0004 6270 jsr 46270 <_POSIX_Condition_variables_Wait_support><== NOT EXECUTED
cond,
mutex,
THREAD_QUEUE_WAIT_FOREVER,
false
);
}
4626a: 4e5e unlk %fp <== NOT EXECUTED
...
00045f94 <pthread_condattr_destroy>:
*/
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
45f94: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45f98: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || attr->is_initialized == false )
45f9c: 4a88 tstl %a0 <== NOT EXECUTED
45f9e: 670a beqs 45faa <pthread_condattr_destroy+0x16> <== NOT EXECUTED
45fa0: 4a90 tstl %a0@ <== NOT EXECUTED
45fa2: 6706 beqs 45faa <pthread_condattr_destroy+0x16> <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
45fa4: 4290 clrl %a0@ <== NOT EXECUTED
return 0;
45fa6: 4280 clrl %d0 <== NOT EXECUTED
45fa8: 6002 bras 45fac <pthread_condattr_destroy+0x18> <== NOT EXECUTED
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
return EINVAL;
45faa: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
45fac: 4e5e unlk %fp <== NOT EXECUTED
00045fb0 <pthread_condattr_getpshared>:
int pthread_condattr_getpshared(
const pthread_condattr_t *attr,
int *pshared
)
{
45fb0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45fb4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr )
45fb8: 4a88 tstl %a0 <== NOT EXECUTED
45fba: 670c beqs 45fc8 <pthread_condattr_getpshared+0x18><== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
45fbc: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
return 0;
45fc0: 4280 clrl %d0 <== NOT EXECUTED
)
{
if ( !attr )
return EINVAL;
*pshared = attr->process_shared;
45fc2: 22a8 0004 movel %a0@(4),%a1@ <== NOT EXECUTED
return 0;
45fc6: 6002 bras 45fca <pthread_condattr_getpshared+0x1a><== NOT EXECUTED
const pthread_condattr_t *attr,
int *pshared
)
{
if ( !attr )
return EINVAL;
45fc8: 7016 moveq #22,%d0 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
}
45fca: 4e5e unlk %fp <== NOT EXECUTED
...
00045fd0 <pthread_condattr_init>:
*/
int pthread_condattr_init(
pthread_condattr_t *attr
)
{
45fd0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45fd4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr )
45fd8: 4a88 tstl %a0 <== NOT EXECUTED
45fda: 6716 beqs 45ff2 <pthread_condattr_init+0x22> <== NOT EXECUTED
return EINVAL;
*attr = _POSIX_Condition_variables_Default_attributes;
45fdc: 2039 0005 d6f6 movel 5d6f6 <_POSIX_Condition_variables_Default_attributes>,%d0<== NOT EXECUTED
45fe2: 2239 0005 d6fa movel 5d6fa <_POSIX_Condition_variables_Default_attributes+0x4>,%d1<== NOT EXECUTED
45fe8: 2080 movel %d0,%a0@ <== NOT EXECUTED
45fea: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED
return 0;
45fee: 4280 clrl %d0 <== NOT EXECUTED
45ff0: 6002 bras 45ff4 <pthread_condattr_init+0x24> <== NOT EXECUTED
int pthread_condattr_init(
pthread_condattr_t *attr
)
{
if ( !attr )
return EINVAL;
45ff2: 7016 moveq #22,%d0 <== NOT EXECUTED
*attr = _POSIX_Condition_variables_Default_attributes;
return 0;
}
45ff4: 4e5e unlk %fp <== NOT EXECUTED
00045ff8 <pthread_condattr_setpshared>:
int pthread_condattr_setpshared(
pthread_condattr_t *attr,
int pshared
)
{
45ff8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45ffc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46000: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr )
46004: 4a88 tstl %a0 <== NOT EXECUTED
46006: 670e beqs 46016 <pthread_condattr_setpshared+0x1e><== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
46008: 7201 moveq #1,%d1 <== NOT EXECUTED
4600a: b280 cmpl %d0,%d1 <== NOT EXECUTED
4600c: 6508 bcss 46016 <pthread_condattr_setpshared+0x1e><== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
4600e: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
return 0;
46012: 4280 clrl %d0 <== NOT EXECUTED
46014: 6002 bras 46018 <pthread_condattr_setpshared+0x20><== NOT EXECUTED
default:
return EINVAL;
46016: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
46018: 4e5e unlk %fp <== NOT EXECUTED
00045704 <pthread_create>:
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
45704: 4e56 ffbc linkw %fp,#-68
45708: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@
4570c: 246e 000c moveal %fp@(12),%a2
45710: 282e 0010 movel %fp@(16),%d4
int schedpolicy = SCHED_RR;
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
45714: 6700 01e4 beqw 458fa <pthread_create+0x1f6>
return EFAULT;
the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
45718: 4a8a tstl %a2
4571a: 6606 bnes 45722 <pthread_create+0x1e> <== ALWAYS TAKEN
4571c: 45f9 0005 c236 lea 5c236 <_POSIX_Threads_Default_attributes>,%a2<== NOT EXECUTED
if ( !the_attr->is_initialized )
45722: 4a92 tstl %a2@
45724: 6700 01d8 beqw 458fe <pthread_create+0x1fa>
* stack space if it is allowed to allocate it itself.
*
* NOTE: If the user provides the stack we will let it drop below
* twice the minimum.
*/
if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
45728: 4aaa 0004 tstl %a2@(4)
4572c: 670e beqs 4573c <pthread_create+0x38> <== ALWAYS TAKEN
4572e: 2039 0005 d1d2 movel 5d1d2 <rtems_minimum_stack_size>,%d0 <== NOT EXECUTED
45734: b0aa 0008 cmpl %a2@(8),%d0 <== NOT EXECUTED
45738: 6200 01c4 bhiw 458fe <pthread_create+0x1fa> <== NOT EXECUTED
* If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
* inherits scheduling attributes from the creating thread. If it is
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
4573c: 202a 0010 movel %a2@(16),%d0
45740: 7201 moveq #1,%d1
45742: b280 cmpl %d0,%d1
45744: 670c beqs 45752 <pthread_create+0x4e> <== NEVER TAKEN
45746: 123c 0002 moveb #2,%d1
4574a: b280 cmpl %d0,%d1
4574c: 6600 01b0 bnew 458fe <pthread_create+0x1fa>
45750: 6018 bras 4576a <pthread_create+0x66>
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
45752: 2079 0005 eeec moveal 5eeec <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
45758: 2068 010e moveal %a0@(270),%a0 <== NOT EXECUTED
schedpolicy = api->schedpolicy;
4575c: 2628 0084 movel %a0@(132),%d3 <== NOT EXECUTED
schedparam = api->schedparam;
45760: 4878 001c pea 1c <OPER2+0x8> <== NOT EXECUTED
45764: 4868 0088 pea %a0@(136) <== NOT EXECUTED
45768: 600c bras 45776 <pthread_create+0x72> <== NOT EXECUTED
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
4576a: 262a 0014 movel %a2@(20),%d3
schedparam = the_attr->schedparam;
4576e: 4878 001c pea 1c <OPER2+0x8>
45772: 486a 0018 pea %a2@(24)
45776: 486e ffdc pea %fp@(-36)
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
return ENOTSUP;
4577a: 243c 0000 0086 movel #134,%d2
schedparam = api->schedparam;
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
schedparam = the_attr->schedparam;
45780: 4eb9 0004 dcf4 jsr 4dcf4 <memcpy>
break;
45786: 4fef 000c lea %sp@(12),%sp
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
4578a: 4aaa 000c tstl %a2@(12)
4578e: 6600 0170 bnew 45900 <pthread_create+0x1fc>
return ENOTSUP;
/*
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
45792: 2f2e ffdc movel %fp@(-36),%sp@-
45796: 4eb9 0004 b1dc jsr 4b1dc <_POSIX_Priority_Is_valid>
4579c: 588f addql #4,%sp
4579e: 4a00 tstb %d0
457a0: 6700 015c beqw 458fe <pthread_create+0x1fa>
core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
/*
* Set the core scheduling policy information.
*/
rc = _POSIX_Thread_Translate_sched_param(
457a4: 486e fff8 pea %fp@(-8)
457a8: 486e fffc pea %fp@(-4)
457ac: 486e ffdc pea %fp@(-36)
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
return EINVAL;
core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
457b0: 266e ffdc moveal %fp@(-36),%a3
/*
* Set the core scheduling policy information.
*/
rc = _POSIX_Thread_Translate_sched_param(
457b4: 2f03 movel %d3,%sp@-
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
457b6: 1a39 0005 d1d6 moveb 5d1d6 <rtems_maximum_priority>,%d5
457bc: 4eb9 0004 b200 jsr 4b200 <_POSIX_Thread_Translate_sched_param>
schedpolicy,
&schedparam,
&budget_algorithm,
&budget_callout
);
if ( rc )
457c2: 4fef 0010 lea %sp@(16),%sp
core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
/*
* Set the core scheduling policy information.
*/
rc = _POSIX_Thread_Translate_sched_param(
457c6: 2400 movel %d0,%d2
schedpolicy,
&schedparam,
&budget_algorithm,
&budget_callout
);
if ( rc )
457c8: 6600 0136 bnew 45900 <pthread_create+0x1fc>
#endif
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
457cc: 2f39 0005 eafe movel 5eafe <_RTEMS_Allocator_Mutex>,%sp@-
457d2: 4eb9 0004 6e2c jsr 46e2c <_API_Mutex_Lock>
* _POSIX_Threads_Allocate
*/
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
457d8: 4879 0005 ec24 pea 5ec24 <_POSIX_Threads_Information>
457de: 4eb9 0004 777c jsr 4777c <_Objects_Allocate>
* Allocate the thread control block.
*
* NOTE: Global threads are not currently supported.
*/
the_thread = _POSIX_Threads_Allocate();
if ( !the_thread ) {
457e4: 508f addql #8,%sp
457e6: 2840 moveal %d0,%a4
457e8: 4a80 tstl %d0
457ea: 6616 bnes 45802 <pthread_create+0xfe> <== ALWAYS TAKEN
_RTEMS_Unlock_allocator();
457ec: 2f39 0005 eafe movel 5eafe <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
return EAGAIN;
457f2: 143c 000b moveb #11,%d2 <== NOT EXECUTED
*
* NOTE: Global threads are not currently supported.
*/
the_thread = _POSIX_Threads_Allocate();
if ( !the_thread ) {
_RTEMS_Unlock_allocator();
457f6: 4eb9 0004 6e8c jsr 46e8c <_API_Mutex_Unlock> <== NOT EXECUTED
return EAGAIN;
457fc: 588f addql #4,%sp <== NOT EXECUTED
457fe: 6000 0100 braw 45900 <pthread_create+0x1fc> <== NOT EXECUTED
static inline size_t _POSIX_Threads_Ensure_minimum_stack (
size_t size
)
{
if ( size >= PTHREAD_MINIMUM_STACK_SIZE )
45802: 2039 0005 d1d2 movel 5d1d2 <rtems_minimum_stack_size>,%d0
45808: d080 addl %d0,%d0
/*
* Initialize the core thread for this task.
*/
name.name_p = NULL; /* posix threads don't have a name by default */
status = _Thread_Initialize(
4580a: 226e fff8 moveal %fp@(-8),%a1
4580e: 206e fffc moveal %fp@(-4),%a0
45812: 222a 0008 movel %a2@(8),%d1
45816: b280 cmpl %d0,%d1
45818: 6302 blss 4581c <pthread_create+0x118>
4581a: 2001 movel %d1,%d0
4581c: 42a7 clrl %sp@-
4581e: 0285 0000 00ff andil #255,%d5
45824: 42a7 clrl %sp@-
45826: 9a8b subl %a3,%d5
45828: 2f09 movel %a1,%sp@-
4582a: 2f08 movel %a0,%sp@-
4582c: 4878 0001 pea 1 <ADD>
45830: 2f05 movel %d5,%sp@-
45832: 4878 0001 pea 1 <ADD>
45836: 2f00 movel %d0,%sp@-
45838: 2f2a 0004 movel %a2@(4),%sp@-
4583c: 2f0c movel %a4,%sp@-
4583e: 4879 0005 ec24 pea 5ec24 <_POSIX_Threads_Information>
45844: 4eb9 0004 8474 jsr 48474 <_Thread_Initialize>
budget_callout,
0, /* isr level */
name /* posix threads don't have a name */
);
if ( !status ) {
4584a: 4fef 002c lea %sp@(44),%sp
4584e: 4a00 tstb %d0
45850: 6624 bnes 45876 <pthread_create+0x172>
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
{
_Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
45852: 2f0c movel %a4,%sp@-
45854: 4879 0005 ec24 pea 5ec24 <_POSIX_Threads_Information>
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
return EAGAIN;
4585a: 740b moveq #11,%d2
4585c: 4eb9 0004 7a70 jsr 47a70 <_Objects_Free>
name /* posix threads don't have a name */
);
if ( !status ) {
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
45862: 2f39 0005 eafe movel 5eafe <_RTEMS_Allocator_Mutex>,%sp@-
45868: 4eb9 0004 6e8c jsr 46e8c <_API_Mutex_Unlock>
return EAGAIN;
4586e: 4fef 000c lea %sp@(12),%sp
45872: 6000 008c braw 45900 <pthread_create+0x1fc>
}
/*
* finish initializing the per API structure
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
45876: 266c 010e moveal %a4@(270),%a3
api->Attributes = *the_attr;
4587a: 4878 0040 pea 40 <DBL_MANT_DIG+0xb>
4587e: 4bf9 0004 dcf4 lea 4dcf4 <memcpy>,%a5
45884: 2f0a movel %a2,%sp@-
45886: 2f0b movel %a3,%sp@-
45888: 4e95 jsr %a5@
api->detachstate = the_attr->detachstate;
4588a: 276a 003c 0040 movel %a2@(60),%a3@(64)
api->schedpolicy = schedpolicy;
45890: 2743 0084 movel %d3,%a3@(132)
api->schedparam = schedparam;
45894: 4878 001c pea 1c <OPER2+0x8>
45898: 486e ffdc pea %fp@(-36)
4589c: 486b 0088 pea %a3@(136)
458a0: 4e95 jsr %a5@
/*
* POSIX threads are allocated and started in one operation.
*/
status = _Thread_Start(
458a2: 42a7 clrl %sp@-
458a4: 2f2e 0014 movel %fp@(20),%sp@-
458a8: 2f04 movel %d4,%sp@-
458aa: 4878 0001 pea 1 <ADD>
458ae: 2f0c movel %a4,%sp@-
458b0: 4eb9 0004 8e30 jsr 48e30 <_Thread_Start>
_RTEMS_Unlock_allocator();
return EINVAL;
}
#endif
if ( schedpolicy == SCHED_SPORADIC ) {
458b6: 4fef 002c lea %sp@(44),%sp
458ba: 7004 moveq #4,%d0
458bc: b083 cmpl %d3,%d0
458be: 6622 bnes 458e2 <pthread_create+0x1de> <== ALWAYS TAKEN
_Watchdog_Insert_ticks(
458c0: 486b 0090 pea %a3@(144) <== NOT EXECUTED
458c4: 4eb9 0004 910c jsr 4910c <_Timespec_To_ticks> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
458ca: 2740 00b4 movel %d0,%a3@(180) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
458ce: 486b 00a8 pea %a3@(168) <== NOT EXECUTED
458d2: 4879 0005 eb1e pea 5eb1e <_Watchdog_Ticks_chain> <== NOT EXECUTED
458d8: 4eb9 0004 9410 jsr 49410 <_Watchdog_Insert> <== NOT EXECUTED
458de: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
/*
* Return the id and indicate we successfully created the thread
*/
*thread = the_thread->Object.id;
458e2: 206e 0008 moveal %fp@(8),%a0
458e6: 20ac 0008 movel %a4@(8),%a0@
_RTEMS_Unlock_allocator();
458ea: 2f39 0005 eafe movel 5eafe <_RTEMS_Allocator_Mutex>,%sp@-
458f0: 4eb9 0004 6e8c jsr 46e8c <_API_Mutex_Unlock>
return 0;
458f6: 588f addql #4,%sp
458f8: 6006 bras 45900 <pthread_create+0x1fc>
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
return EFAULT;
458fa: 740e moveq #14,%d2
458fc: 6002 bras 45900 <pthread_create+0x1fc>
/*
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
return EINVAL;
458fe: 7416 moveq #22,%d2 <== NOT EXECUTED
*/
*thread = the_thread->Object.id;
_RTEMS_Unlock_allocator();
return 0;
}
45900: 2002 movel %d2,%d0
45902: 4cee 3c3c ffbc moveml %fp@(-68),%d2-%d5/%a2-%a5
45908: 4e5e unlk %fp <== NOT EXECUTED
000457a0 <pthread_detach>:
#include <rtems/posix/pthread.h>
int pthread_detach(
pthread_t thread
)
{
457a0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
pthread_t id,
Objects_Locations *location
)
{
return (Thread_Control *)
_Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location );
457a4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
457a8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
457ac: 4879 0005 f844 pea 5f844 <_POSIX_Threads_Information> <== NOT EXECUTED
457b2: 4eb9 0004 7904 jsr 47904 <_Objects_Get> <== NOT EXECUTED
register Thread_Control *the_thread;
POSIX_API_Control *api;
Objects_Locations location;
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
457b8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
457bc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
457c0: 6614 bnes 457d6 <pthread_detach+0x36> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->detachstate = PTHREAD_CREATE_DETACHED;
457c2: 2240 moveal %d0,%a1 <== NOT EXECUTED
457c4: 2069 010e moveal %a1@(270),%a0 <== NOT EXECUTED
457c8: 42a8 0040 clrl %a0@(64) <== NOT EXECUTED
_Thread_Enable_dispatch();
457cc: 4eb9 0004 80f6 jsr 480f6 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
457d2: 4280 clrl %d0 <== NOT EXECUTED
457d4: 6002 bras 457d8 <pthread_detach+0x38> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
457d6: 7003 moveq #3,%d0 <== NOT EXECUTED
}
457d8: 4e5e unlk %fp <== NOT EXECUTED
0004590c <pthread_equal>:
int pthread_equal(
pthread_t t1,
pthread_t t2
)
{
4590c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
* can to insure that both ids are valid. Otherwise, we will do the
* cheapest possible thing to determine if they are equal.
*/
#ifndef RTEMS_DEBUG
return _Objects_Are_ids_equal( t1, t2 );
45910: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
45914: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
45918: 57c0 seq %d0 <== NOT EXECUTED
break;
}
return status;
#endif
}
4591a: 4e5e unlk %fp <== NOT EXECUTED
* can to insure that both ids are valid. Otherwise, we will do the
* cheapest possible thing to determine if they are equal.
*/
#ifndef RTEMS_DEBUG
return _Objects_Are_ids_equal( t1, t2 );
4591c: 49c0 extbl %d0 <== NOT EXECUTED
break;
}
return status;
#endif
}
4591e: 4480 negl %d0 <== NOT EXECUTED
...
0004c3f0 <pthread_exit>:
}
void pthread_exit(
void *value_ptr
)
{
4c3f0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
_POSIX_Thread_Exit( _Thread_Executing, value_ptr );
4c3f4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4c3f8: 2f39 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
4c3fe: 4eb9 0004 c380 jsr 4c380 <_POSIX_Thread_Exit> <== NOT EXECUTED
4c404: 508f addql #8,%sp <== NOT EXECUTED
}
4c406: 4e5e unlk %fp <== NOT EXECUTED
...
000454a8 <pthread_getcpuclockid>:
int pthread_getcpuclockid(
pthread_t pid,
clockid_t *clock_id
)
{
454a8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
454ac: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
454b2: 4e5e unlk %fp <== NOT EXECUTED
int pthread_getcpuclockid(
pthread_t pid,
clockid_t *clock_id
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
454b4: 2040 moveal %d0,%a0 <== NOT EXECUTED
454b6: 7058 moveq #88,%d0 <== NOT EXECUTED
454b8: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
454ba: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00047784 <pthread_getschedparam>:
int pthread_getschedparam(
pthread_t thread,
int *policy,
struct sched_param *param
)
{
47784: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
47788: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED
4778c: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED
47790: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
Objects_Locations location;
POSIX_API_Control *api;
register Thread_Control *the_thread;
if ( !policy || !param )
47794: 4a8c tstl %a4 <== NOT EXECUTED
47796: 6758 beqs 477f0 <pthread_getschedparam+0x6c> <== NOT EXECUTED
47798: 4a8a tstl %a2 <== NOT EXECUTED
4779a: 6754 beqs 477f0 <pthread_getschedparam+0x6c> <== NOT EXECUTED
pthread_t id,
Objects_Locations *location
)
{
return (Thread_Control *)
_Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location );
4779c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
477a0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
477a4: 4879 0006 2774 pea 62774 <_POSIX_Threads_Information> <== NOT EXECUTED
477aa: 4eb9 0004 9940 jsr 49940 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
477b0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
477b4: 2640 moveal %d0,%a3 <== NOT EXECUTED
477b6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
477ba: 6638 bnes 477f4 <pthread_getschedparam+0x70> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
477bc: 206b 010e moveal %a3@(270),%a0 <== NOT EXECUTED
if ( policy )
*policy = api->schedpolicy;
477c0: 28a8 0084 movel %a0@(132),%a4@ <== NOT EXECUTED
if ( param ) {
*param = api->schedparam;
477c4: 4878 001c pea 1c <OPER2+0x8> <== NOT EXECUTED
477c8: 4868 0088 pea %a0@(136) <== NOT EXECUTED
477cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
477ce: 4eb9 0004 fc04 jsr 4fc04 <memcpy> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
477d4: 4280 clrl %d0 <== NOT EXECUTED
477d6: 1039 0006 0cc6 moveb 60cc6 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
477dc: 90ab 0014 subl %a3@(20),%d0 <== NOT EXECUTED
477e0: 2480 movel %d0,%a2@ <== NOT EXECUTED
param->sched_priority =
_POSIX_Priority_From_core( the_thread->current_priority );
}
_Thread_Enable_dispatch();
477e2: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
477e8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
477ec: 4280 clrl %d0 <== NOT EXECUTED
477ee: 6006 bras 477f6 <pthread_getschedparam+0x72> <== NOT EXECUTED
Objects_Locations location;
POSIX_API_Control *api;
register Thread_Control *the_thread;
if ( !policy || !param )
return EINVAL;
477f0: 7016 moveq #22,%d0 <== NOT EXECUTED
477f2: 6002 bras 477f6 <pthread_getschedparam+0x72> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
477f4: 7003 moveq #3,%d0 <== NOT EXECUTED
}
477f6: 4cee 1c00 fff0 moveml %fp@(-16),%a2-%a4 <== NOT EXECUTED
477fc: 4e5e unlk %fp <== NOT EXECUTED
000456f8 <pthread_getspecific>:
*/
void *pthread_getspecific(
pthread_key_t key
)
{
456f8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
456fc: 2f03 movel %d3,%sp@- <== NOT EXECUTED
456fe: 2f02 movel %d2,%sp@- <== NOT EXECUTED
pthread_key_t id,
Objects_Locations *location
)
{
return (POSIX_Keys_Control *)
_Objects_Get( &_POSIX_Keys_Information, (Objects_Id) id, location );
45700: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45704: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
45708: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
4570e: 4eb9 0004 7a5c jsr 47a5c <_Objects_Get> <== NOT EXECUTED
uint32_t index;
Objects_Locations location;
void *key_data;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
45714: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45718: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4571c: 662e bnes 4574c <pthread_getspecific+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
4571e: 2079 0005 fbec moveal 5fbec <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
45724: 7618 moveq #24,%d3 <== NOT EXECUTED
index = _Objects_Get_index( _Thread_Executing->Object.id );
key_data = (void *) the_key->Values[ api ][ index ];
45726: 2240 moveal %d0,%a1 <== NOT EXECUTED
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
45728: 2428 0008 movel %a0@(8),%d2 <== NOT EXECUTED
4572c: 2202 movel %d2,%d1 <== NOT EXECUTED
4572e: e6a9 lsrl %d3,%d1 <== NOT EXECUTED
45730: 163c 0007 moveb #7,%d3 <== NOT EXECUTED
45734: c283 andl %d3,%d1 <== NOT EXECUTED
index = _Objects_Get_index( _Thread_Executing->Object.id );
45736: 0282 0000 ffff andil #65535,%d2 <== NOT EXECUTED
key_data = (void *) the_key->Values[ api ][ index ];
4573c: 2071 1c14 moveal %a1@(00000014,%d1:l:4),%a0 <== NOT EXECUTED
45740: 2430 2c00 movel %a0@(00000000,%d2:l:4),%d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
45744: 4eb9 0004 824e jsr 4824e <_Thread_Enable_dispatch> <== NOT EXECUTED
return key_data;
4574a: 6002 bras 4574e <pthread_getspecific+0x56> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return NULL;
4574c: 4282 clrl %d2 <== NOT EXECUTED
}
4574e: 2002 movel %d2,%d0 <== NOT EXECUTED
45750: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
45754: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
45758: 4e5e unlk %fp <== NOT EXECUTED
0004a7dc <pthread_join>:
int pthread_join(
pthread_t thread,
void **value_ptr
)
{
4a7dc: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
4a7e0: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4a7e2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4a7e4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4a7e8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4a7ec: 4879 0006 6630 pea 66630 <_POSIX_Threads_Information> <== NOT EXECUTED
4a7f2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
4a7f6: 4eb9 0004 c950 jsr 4c950 <_Objects_Get> <== NOT EXECUTED
POSIX_API_Control *api;
Objects_Locations location;
void *return_pointer;
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
4a7fc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a800: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4a804: 665c bnes 4a862 <pthread_join+0x86> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
4a806: 2240 moveal %d0,%a1 <== NOT EXECUTED
4a808: 2069 010e moveal %a1@(270),%a0 <== NOT EXECUTED
if ( api->detachstate == PTHREAD_CREATE_DETACHED ) {
4a80c: 4aa8 0040 tstl %a0@(64) <== NOT EXECUTED
4a810: 660a bnes 4a81c <pthread_join+0x40> <== NOT EXECUTED
_Thread_Enable_dispatch();
4a812: 4eb9 0004 d142 jsr 4d142 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EINVAL;
4a818: 7016 moveq #22,%d0 <== NOT EXECUTED
4a81a: 604c bras 4a868 <pthread_join+0x8c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
4a81c: 2279 0006 68f8 moveal 668f8 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
4a822: 47f9 0004 d142 lea 4d142 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
}
if ( _Thread_Is_executing( the_thread ) ) {
4a828: b3c0 cmpal %d0,%a1 <== NOT EXECUTED
4a82a: 6606 bnes 4a832 <pthread_join+0x56> <== NOT EXECUTED
_Thread_Enable_dispatch();
4a82c: 4e93 jsr %a3@ <== NOT EXECUTED
return EDEADLK;
4a82e: 702d moveq #45,%d0 <== NOT EXECUTED
4a830: 6036 bras 4a868 <pthread_join+0x8c> <== NOT EXECUTED
/*
* Put ourself on the threads join list
*/
_Thread_Executing->Wait.return_argument = &return_pointer;
4a832: 200e movel %fp,%d0 <== NOT EXECUTED
4a834: 5180 subql #8,%d0 <== NOT EXECUTED
4a836: 2340 0028 movel %d0,%a1@(40) <== 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;
4a83a: 7001 moveq #1,%d0 <== NOT EXECUTED
4a83c: 2140 0074 movel %d0,%a0@(116) <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &api->Join_List );
_Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT );
4a840: 4879 0004 d8d4 pea 4d8d4 <_Thread_queue_Timeout> <== NOT EXECUTED
4a846: 42a7 clrl %sp@- <== NOT EXECUTED
4a848: 4868 0044 pea %a0@(68) <== NOT EXECUTED
4a84c: 4eb9 0004 d5c4 jsr 4d5c4 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
4a852: 4e93 jsr %a3@ <== NOT EXECUTED
if ( value_ptr )
4a854: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4a858: 4a8a tstl %a2 <== NOT EXECUTED
4a85a: 670a beqs 4a866 <pthread_join+0x8a> <== NOT EXECUTED
*value_ptr = return_pointer;
4a85c: 24ae fff8 movel %fp@(-8),%a2@ <== NOT EXECUTED
4a860: 6004 bras 4a866 <pthread_join+0x8a> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
4a862: 7003 moveq #3,%d0 <== NOT EXECUTED
4a864: 6002 bras 4a868 <pthread_join+0x8c> <== NOT EXECUTED
_Thread_Enable_dispatch();
if ( value_ptr )
*value_ptr = return_pointer;
return 0;
4a866: 4280 clrl %d0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return ESRCH;
}
4a868: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED
4a86c: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED
4a870: 4e5e unlk %fp <== NOT EXECUTED
0004558c <pthread_key_create>:
int pthread_key_create(
pthread_key_t *key,
void (*destructor)( void * )
)
{
4558c: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
45590: 2039 0005 f75c movel 5f75c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45596: 5280 addql #1,%d0 <== NOT EXECUTED
45598: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED
4559c: 23c0 0005 f75c movel %d0,5f75c <_Thread_Dispatch_disable_level><== NOT EXECUTED
* the inactive chain of free keys control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void )
{
return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information );
455a2: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
455a8: 4eb9 0004 7604 jsr 47604 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch();
the_key = _POSIX_Keys_Allocate();
if ( !the_key ) {
455ae: 588f addql #4,%sp <== NOT EXECUTED
455b0: 2440 moveal %d0,%a2 <== NOT EXECUTED
455b2: 4a80 tstl %d0 <== NOT EXECUTED
455b4: 660c bnes 455c2 <pthread_key_create+0x36> <== NOT EXECUTED
_Thread_Enable_dispatch();
455b6: 4eb9 0004 824e jsr 4824e <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
455bc: 700b moveq #11,%d0 <== NOT EXECUTED
455be: 6000 009a braw 4565a <pthread_key_create+0xce> <== NOT EXECUTED
}
the_key->destructor = destructor;
455c2: 49f9 0005 f71c lea 5f71c <_Objects_Information_table+0x4>,%a4<== NOT EXECUTED
int _EXFUN(pthread_once,
(pthread_once_t *__once_control, void (*__init_routine)(void)));
/* Thread-Specific Data Key Create, P1003.1c/Draft 10, p. 163 */
int _EXFUN(pthread_key_create,
455c8: 47ea 0018 lea %a2@(24),%a3 <== NOT EXECUTED
_Thread_Enable_dispatch();
return ENOMEM;
}
the_key->Values[ the_api ] = table;
memset( table, '\0', bytes_to_allocate );
455cc: 4bf9 0004 dd5c lea 4dd5c <memset>,%a5 <== NOT EXECUTED
if ( !the_key ) {
_Thread_Enable_dispatch();
return EAGAIN;
}
the_key->destructor = destructor;
455d2: 256e 000c 0010 movel %fp@(12),%a2@(16) <== NOT EXECUTED
);
#endif
bytes_to_allocate = sizeof( void * ) *
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
table = _Workspace_Allocate( bytes_to_allocate );
455d8: 263c 0004 9550 movel #300368,%d3 <== NOT EXECUTED
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
);
#endif
bytes_to_allocate = sizeof( void * ) *
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
455de: 205c moveal %a4@+,%a0 <== NOT EXECUTED
455e0: 4282 clrl %d2 <== NOT EXECUTED
455e2: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED
455e6: 3428 000e movew %a0@(14),%d2 <== NOT EXECUTED
* APIs are optional.
*
* NOTE: Currently RTEMS Classic API tasks are always enabled.
*/
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) {
the_key->Values[ the_api ] = NULL;
455ea: 4293 clrl %a3@ <== NOT EXECUTED
);
#endif
bytes_to_allocate = sizeof( void * ) *
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
table = _Workspace_Allocate( bytes_to_allocate );
455ec: 2043 moveal %d3,%a0 <== NOT EXECUTED
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
);
#endif
bytes_to_allocate = sizeof( void * ) *
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
455ee: 5282 addql #1,%d2 <== NOT EXECUTED
true,
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
);
#endif
bytes_to_allocate = sizeof( void * ) *
455f0: e58a lsll #2,%d2 <== NOT EXECUTED
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
table = _Workspace_Allocate( bytes_to_allocate );
455f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
455f4: 4e90 jsr %a0@ <== NOT EXECUTED
if ( !table ) {
455f6: 588f addql #4,%sp <== NOT EXECUTED
455f8: 4a80 tstl %d0 <== NOT EXECUTED
455fa: 6624 bnes 45620 <pthread_key_create+0x94> <== NOT EXECUTED
_POSIX_Keys_Free_memory( the_key );
455fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
455fe: 4eb9 0004 56c8 jsr 456c8 <_POSIX_Keys_Free_memory> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
POSIX_Keys_Control *the_key
)
{
_Objects_Free( &_POSIX_Keys_Information, &the_key->Object );
45604: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45606: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
4560c: 4eb9 0004 78f8 jsr 478f8 <_Objects_Free> <== NOT EXECUTED
_POSIX_Keys_Free( the_key );
_Thread_Enable_dispatch();
45612: 4eb9 0004 824e jsr 4824e <_Thread_Enable_dispatch> <== NOT EXECUTED
return ENOMEM;
45618: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4561c: 700c moveq #12,%d0 <== NOT EXECUTED
4561e: 603a bras 4565a <pthread_key_create+0xce> <== NOT EXECUTED
}
the_key->Values[ the_api ] = table;
45620: 26c0 movel %d0,%a3@+ <== NOT EXECUTED
memset( table, '\0', bytes_to_allocate );
45622: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45624: 42a7 clrl %sp@- <== NOT EXECUTED
45626: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45628: 4e95 jsr %a5@ <== NOT EXECUTED
* This is a bit more complex than one might initially expect because
* APIs are optional.
*
* NOTE: Currently RTEMS Classic API tasks are always enabled.
*/
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) {
4562a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4562e: b9fc 0005 f728 cmpal #390952,%a4 <== NOT EXECUTED
45634: 66a8 bnes 455de <pthread_key_create+0x52> <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
45636: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
4563a: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4563c: 2079 0005 faea moveal 5faea <_POSIX_Keys_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
45642: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45644: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
the_key->Values[ the_api ] = table;
memset( table, '\0', bytes_to_allocate );
}
_Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 );
*key = the_key->Object.id;
45648: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
4564c: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
45650: 2080 movel %d0,%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
45652: 4eb9 0004 824e jsr 4824e <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
45658: 4280 clrl %d0 <== NOT EXECUTED
}
4565a: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED
45660: 4e5e unlk %fp <== NOT EXECUTED
00045664 <pthread_key_delete>:
* 17.1.3 Thread-Specific Data Key Deletion, P1003.1c/Draft 10, p. 167
*/
int pthread_key_delete(
pthread_key_t key
)
{
45664: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45668: 2f02 movel %d2,%sp@- <== NOT EXECUTED
pthread_key_t id,
Objects_Locations *location
)
{
return (POSIX_Keys_Control *)
_Objects_Get( &_POSIX_Keys_Information, (Objects_Id) id, location );
4566a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4566e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
45672: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
45678: 4eb9 0004 7a5c jsr 47a5c <_Objects_Get> <== NOT EXECUTED
POSIX_Keys_Control *the_key;
Objects_Locations location;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
4567e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45682: 2400 movel %d0,%d2 <== NOT EXECUTED
45684: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45688: 6632 bnes 456bc <pthread_key_delete+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
4568a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4568c: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
45692: 4eb9 0004 7680 jsr 47680 <_Objects_Close> <== NOT EXECUTED
_POSIX_Keys_Free_memory( the_key );
45698: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4569a: 4eb9 0004 56c8 jsr 456c8 <_POSIX_Keys_Free_memory> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
POSIX_Keys_Control *the_key
)
{
_Objects_Free( &_POSIX_Keys_Information, &the_key->Object );
456a0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
456a2: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
456a8: 4eb9 0004 78f8 jsr 478f8 <_Objects_Free> <== NOT EXECUTED
/*
* NOTE: The destructor is not called and it is the responsibility
* of the application to free the memory.
*/
_POSIX_Keys_Free( the_key );
_Thread_Enable_dispatch();
456ae: 4eb9 0004 824e jsr 4824e <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
456b4: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
456b8: 4280 clrl %d0 <== NOT EXECUTED
456ba: 6002 bras 456be <pthread_key_delete+0x5a> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
456bc: 7016 moveq #22,%d0 <== NOT EXECUTED
}
456be: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
456c2: 4e5e unlk %fp <== NOT EXECUTED
...
0005a2f4 <pthread_kill>:
int pthread_kill(
pthread_t thread,
int sig
)
{
5a2f4: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
5a2f8: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
5a2fc: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
POSIX_API_Control *api;
Thread_Control *the_thread;
Objects_Locations location;
if ( !sig )
5a300: 670a beqs 5a30c <pthread_kill+0x18> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
5a302: 2602 movel %d2,%d3 <== NOT EXECUTED
5a304: 5383 subql #1,%d3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
5a306: 701f moveq #31,%d0 <== NOT EXECUTED
5a308: b083 cmpl %d3,%d0 <== NOT EXECUTED
5a30a: 6410 bccs 5a31c <pthread_kill+0x28> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
5a30c: 4eb9 0004 c88c jsr 4c88c <__errno> <== NOT EXECUTED
5a312: 7216 moveq #22,%d1 <== NOT EXECUTED
5a314: 2040 moveal %d0,%a0 <== NOT EXECUTED
5a316: 2081 movel %d1,%a0@ <== NOT EXECUTED
5a318: 6000 0084 braw 5a39e <pthread_kill+0xaa> <== NOT EXECUTED
pthread_t id,
Objects_Locations *location
)
{
return (Thread_Control *)
_Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location );
5a31c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
5a320: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
5a324: 4879 0005 dbf4 pea 5dbf4 <_POSIX_Threads_Information> <== NOT EXECUTED
5a32a: 4eb9 0004 6cbc jsr 46cbc <_Objects_Get> <== NOT EXECUTED
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
5a330: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
5a334: 2440 moveal %d0,%a2 <== NOT EXECUTED
5a336: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
5a33a: 6656 bnes 5a392 <pthread_kill+0x9e> <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( sig ) {
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {
5a33c: 2202 movel %d2,%d1 <== NOT EXECUTED
5a33e: 2002 movel %d2,%d0 <== NOT EXECUTED
5a340: e589 lsll #2,%d1 <== NOT EXECUTED
5a342: e988 lsll #4,%d0 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* If sig == 0 then just validate arguments
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
5a344: 206a 010e moveal %a2@(270),%a0 <== NOT EXECUTED
if ( sig ) {
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {
5a348: 9081 subl %d1,%d0 <== NOT EXECUTED
5a34a: 0680 0005 ded2 addil #384722,%d0 <== NOT EXECUTED
5a350: 7201 moveq #1,%d1 <== NOT EXECUTED
5a352: 2240 moveal %d0,%a1 <== NOT EXECUTED
5a354: b291 cmpl %a1@,%d1 <== NOT EXECUTED
5a356: 6730 beqs 5a388 <pthread_kill+0x94> <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
5a358: 7001 moveq #1,%d0 <== NOT EXECUTED
5a35a: e7a8 lsll %d3,%d0 <== NOT EXECUTED
return 0;
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
5a35c: 81a8 00d4 orl %d0,%a0@(212) <== NOT EXECUTED
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
5a360: 42a7 clrl %sp@- <== NOT EXECUTED
5a362: 2f02 movel %d2,%sp@- <== NOT EXECUTED
5a364: 2f0a movel %a2,%sp@- <== NOT EXECUTED
5a366: 4eb9 0005 a1f8 jsr 5a1f8 <_POSIX_signals_Unblock_thread> <== NOT EXECUTED
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
5a36c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
5a370: 4ab9 0005 deb8 tstl 5deb8 <_Per_CPU_Information+0x8> <== NOT EXECUTED
5a376: 6710 beqs 5a388 <pthread_kill+0x94> <== NOT EXECUTED
5a378: b5f9 0005 debc cmpal 5debc <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED
5a37e: 6608 bnes 5a388 <pthread_kill+0x94> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
5a380: 7001 moveq #1,%d0 <== NOT EXECUTED
5a382: 13c0 0005 dec8 moveb %d0,5dec8 <_Per_CPU_Information+0x18> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
5a388: 4eb9 0004 7522 jsr 47522 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
5a38e: 4280 clrl %d0 <== NOT EXECUTED
5a390: 600e bras 5a3a0 <pthread_kill+0xac> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( ESRCH );
5a392: 4eb9 0004 c88c jsr 4c88c <__errno> <== NOT EXECUTED
5a398: 2040 moveal %d0,%a0 <== NOT EXECUTED
5a39a: 7003 moveq #3,%d0 <== NOT EXECUTED
5a39c: 2080 movel %d0,%a0@ <== NOT EXECUTED
5a39e: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
5a3a0: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED
5a3a6: 4e5e unlk %fp <== NOT EXECUTED
...
00046fd8 <pthread_mutex_destroy>:
*/
int pthread_mutex_destroy(
pthread_mutex_t *mutex
)
{
46fd8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46fdc: 2f0b movel %a3,%sp@- <== NOT EXECUTED
46fde: 2f0a movel %a2,%sp@- <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
46fe0: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46fe4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46fe8: 4eb9 0004 7050 jsr 47050 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
46fee: 508f addql #8,%sp <== NOT EXECUTED
)
{
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
46ff0: 2440 moveal %d0,%a2 <== NOT EXECUTED
switch ( location ) {
46ff2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46ff6: 6648 bnes 47040 <pthread_mutex_destroy+0x68> <== NOT EXECUTED
46ff8: 47f9 0004 a132 lea 4a132 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
/*
* XXX: There is an error for the mutex being locked
* or being in use by a condition variable.
*/
if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) {
46ffe: 4aaa 0062 tstl %a2@(98) <== NOT EXECUTED
47002: 6606 bnes 4700a <pthread_mutex_destroy+0x32> <== NOT EXECUTED
_Thread_Enable_dispatch();
47004: 4e93 jsr %a3@ <== NOT EXECUTED
return EBUSY;
47006: 7010 moveq #16,%d0 <== NOT EXECUTED
47008: 6038 bras 47042 <pthread_mutex_destroy+0x6a> <== NOT EXECUTED
}
_Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object );
4700a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4700c: 4879 0006 2896 pea 62896 <_POSIX_Mutex_Information> <== NOT EXECUTED
47012: 4eb9 0004 9564 jsr 49564 <_Objects_Close> <== NOT EXECUTED
_CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL );
47018: 4878 0016 pea 16 <OPER2+0x2> <== NOT EXECUTED
4701c: 42a7 clrl %sp@- <== NOT EXECUTED
4701e: 486a 0014 pea %a2@(20) <== NOT EXECUTED
47022: 4eb9 0004 8c58 jsr 48c58 <_CORE_mutex_Flush> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Free (
POSIX_Mutex_Control *the_mutex
)
{
_Objects_Free( &_POSIX_Mutex_Information, &the_mutex->Object );
47028: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4702a: 4879 0006 2896 pea 62896 <_POSIX_Mutex_Information> <== NOT EXECUTED
47030: 4eb9 0004 97dc jsr 497dc <_Objects_Free> <== NOT EXECUTED
_POSIX_Mutex_Free( the_mutex );
_Thread_Enable_dispatch();
47036: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
47038: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4703c: 4280 clrl %d0 <== NOT EXECUTED
4703e: 6002 bras 47042 <pthread_mutex_destroy+0x6a> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
47040: 7016 moveq #22,%d0 <== NOT EXECUTED
}
47042: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
47046: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
4704a: 4e5e unlk %fp <== NOT EXECUTED
...
000470f8 <pthread_mutex_getprioceiling>:
int pthread_mutex_getprioceiling(
pthread_mutex_t *mutex,
int *prioceiling
)
{
470f8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
470fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
470fe: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
if ( !prioceiling )
47102: 4a8a tstl %a2 <== NOT EXECUTED
47104: 6730 beqs 47136 <pthread_mutex_getprioceiling+0x3e><== NOT EXECUTED
return EINVAL;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
47106: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4710a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4710e: 4eb9 0004 7050 jsr 47050 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
47114: 508f addql #8,%sp <== NOT EXECUTED
47116: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4711a: 661a bnes 47136 <pthread_mutex_getprioceiling+0x3e><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
4711c: 4281 clrl %d1 <== NOT EXECUTED
4711e: 1239 0006 0cc6 moveb 60cc6 <rtems_maximum_priority>,%d1 <== NOT EXECUTED
47124: 2040 moveal %d0,%a0 <== NOT EXECUTED
47126: 92a8 005e subl %a0@(94),%d1 <== NOT EXECUTED
4712a: 2481 movel %d1,%a2@ <== NOT EXECUTED
case OBJECTS_LOCAL:
*prioceiling = _POSIX_Priority_From_core(
the_mutex->Mutex.Attributes.priority_ceiling
);
_Thread_Enable_dispatch();
4712c: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
47132: 4280 clrl %d0 <== NOT EXECUTED
47134: 6002 bras 47138 <pthread_mutex_getprioceiling+0x40><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
47136: 7016 moveq #22,%d0 <== NOT EXECUTED
}
47138: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4713c: 4e5e unlk %fp <== NOT EXECUTED
00047140 <pthread_mutex_init>:
int pthread_mutex_init(
pthread_mutex_t *mutex,
const pthread_mutexattr_t *attr
)
{
47140: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
47144: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
47148: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED
4714c: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
POSIX_Mutex_Control *the_mutex;
CORE_mutex_Attributes *the_mutex_attr;
const pthread_mutexattr_t *the_attr;
CORE_mutex_Disciplines the_discipline;
if ( attr ) the_attr = attr;
47150: 4a8b tstl %a3 <== NOT EXECUTED
47152: 6606 bnes 4715a <pthread_mutex_init+0x1a> <== NOT EXECUTED
else the_attr = &_POSIX_Mutex_Default_attributes;
47154: 47f9 0006 290a lea 6290a <_POSIX_Mutex_Default_attributes>,%a3<== NOT EXECUTED
/* Check for NULL mutex */
if ( !mutex )
4715a: 4a8c tstl %a4 <== NOT EXECUTED
4715c: 6700 00ec beqw 4724a <pthread_mutex_init+0x10a> <== NOT EXECUTED
}
}
}
#endif
if ( !the_attr->is_initialized )
47160: 4a93 tstl %a3@ <== NOT EXECUTED
47162: 6700 00e6 beqw 4724a <pthread_mutex_init+0x10a> <== NOT EXECUTED
return EINVAL;
/*
* We only support process private mutexes.
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
47166: 202b 0004 movel %a3@(4),%d0 <== NOT EXECUTED
4716a: 7201 moveq #1,%d1 <== NOT EXECUTED
4716c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4716e: 6700 00d6 beqw 47246 <pthread_mutex_init+0x106> <== NOT EXECUTED
return ENOSYS;
if ( the_attr->process_shared != PTHREAD_PROCESS_PRIVATE )
47172: 4a80 tstl %d0 <== NOT EXECUTED
47174: 6600 00d4 bnew 4724a <pthread_mutex_init+0x10a> <== NOT EXECUTED
return EINVAL;
/*
* Determine the discipline of the mutex
*/
switch ( the_attr->protocol ) {
47178: 202b 000c movel %a3@(12),%d0 <== NOT EXECUTED
4717c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4717e: 6716 beqs 47196 <pthread_mutex_init+0x56> <== NOT EXECUTED
47180: 123c 0002 moveb #2,%d1 <== NOT EXECUTED
47184: b280 cmpl %d0,%d1 <== NOT EXECUTED
47186: 670a beqs 47192 <pthread_mutex_init+0x52> <== NOT EXECUTED
47188: 4a80 tstl %d0 <== NOT EXECUTED
4718a: 6600 00be bnew 4724a <pthread_mutex_init+0x10a> <== NOT EXECUTED
case PTHREAD_PRIO_NONE:
the_discipline = CORE_MUTEX_DISCIPLINES_FIFO;
4718e: 4282 clrl %d2 <== NOT EXECUTED
47190: 6006 bras 47198 <pthread_mutex_init+0x58> <== NOT EXECUTED
break;
case PTHREAD_PRIO_INHERIT:
the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
break;
case PTHREAD_PRIO_PROTECT:
the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
47192: 7403 moveq #3,%d2 <== NOT EXECUTED
break;
47194: 6002 bras 47198 <pthread_mutex_init+0x58> <== NOT EXECUTED
switch ( the_attr->protocol ) {
case PTHREAD_PRIO_NONE:
the_discipline = CORE_MUTEX_DISCIPLINES_FIFO;
break;
case PTHREAD_PRIO_INHERIT:
the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
47196: 7402 moveq #2,%d2 <== NOT EXECUTED
}
/*
* Validate the priority ceiling field -- should always be valid.
*/
if ( !_POSIX_Priority_Is_valid( the_attr->prio_ceiling ) )
47198: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED
4719c: 4eb9 0004 74cc jsr 474cc <_POSIX_Priority_Is_valid> <== NOT EXECUTED
471a2: 588f addql #4,%sp <== NOT EXECUTED
471a4: 4a00 tstb %d0 <== NOT EXECUTED
471a6: 6700 00a2 beqw 4724a <pthread_mutex_init+0x10a> <== NOT EXECUTED
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
/*
* Validate the mutex type and set appropriate SuperCore mutex
* attributes.
*/
switch ( the_attr->type ) {
471aa: 7003 moveq #3,%d0 <== NOT EXECUTED
471ac: b0ab 0010 cmpl %a3@(16),%d0 <== NOT EXECUTED
471b0: 6500 0098 bcsw 4724a <pthread_mutex_init+0x10a> <== NOT EXECUTED
471b4: 2039 0006 25ac movel 625ac <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
471ba: 5280 addql #1,%d0 <== NOT EXECUTED
471bc: 23c0 0006 25ac movel %d0,625ac <_Thread_Dispatch_disable_level><== NOT EXECUTED
* _POSIX_Mutex_Allocate
*/
RTEMS_INLINE_ROUTINE POSIX_Mutex_Control *_POSIX_Mutex_Allocate( void )
{
return (POSIX_Mutex_Control *) _Objects_Allocate( &_POSIX_Mutex_Information );
471c2: 4879 0006 2896 pea 62896 <_POSIX_Mutex_Information> <== NOT EXECUTED
471c8: 4eb9 0004 94e8 jsr 494e8 <_Objects_Allocate> <== NOT EXECUTED
*/
_Thread_Disable_dispatch();
the_mutex = _POSIX_Mutex_Allocate();
if ( !the_mutex ) {
471ce: 588f addql #4,%sp <== NOT EXECUTED
471d0: 2440 moveal %d0,%a2 <== NOT EXECUTED
471d2: 4a80 tstl %d0 <== NOT EXECUTED
471d4: 660a bnes 471e0 <pthread_mutex_init+0xa0> <== NOT EXECUTED
_Thread_Enable_dispatch();
471d6: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
471dc: 700b moveq #11,%d0 <== NOT EXECUTED
471de: 606c bras 4724c <pthread_mutex_init+0x10c> <== NOT EXECUTED
the_mutex->process_shared = the_attr->process_shared;
the_mutex_attr = &the_mutex->Mutex.Attributes;
if ( the_attr->recursive )
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
471e0: 4aab 0014 tstl %a3@(20) <== NOT EXECUTED
471e4: 57c0 seq %d0 <== NOT EXECUTED
if ( !the_mutex ) {
_Thread_Enable_dispatch();
return EAGAIN;
}
the_mutex->process_shared = the_attr->process_shared;
471e6: 256b 0004 0010 movel %a3@(4),%a2@(16) <== NOT EXECUTED
the_mutex_attr = &the_mutex->Mutex.Attributes;
if ( the_attr->recursive )
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
471ec: 49c0 extbl %d0 <== NOT EXECUTED
471ee: 4480 negl %d0 <== NOT EXECUTED
else
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
the_mutex_attr->only_owner_release = true;
471f0: 7201 moveq #1,%d1 <== NOT EXECUTED
the_mutex->process_shared = the_attr->process_shared;
the_mutex_attr = &the_mutex->Mutex.Attributes;
if ( the_attr->recursive )
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
471f2: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
471f6: 4280 clrl %d0 <== NOT EXECUTED
else
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
the_mutex_attr->only_owner_release = true;
471f8: 1541 0058 moveb %d1,%a2@(88) <== NOT EXECUTED
471fc: 1039 0006 0cc6 moveb 60cc6 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
47202: 90ab 0008 subl %a3@(8),%d0 <== NOT EXECUTED
the_mutex_attr->priority_ceiling =
_POSIX_Priority_To_core( the_attr->prio_ceiling );
the_mutex_attr->discipline = the_discipline;
47206: 2542 005a movel %d2,%a2@(90) <== NOT EXECUTED
4720a: 2540 005e movel %d0,%a2@(94) <== NOT EXECUTED
/*
* Must be initialized to unlocked.
*/
_CORE_mutex_Initialize(
4720e: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47212: 486a 0054 pea %a2@(84) <== NOT EXECUTED
47216: 486a 0014 pea %a2@(20) <== NOT EXECUTED
4721a: 4eb9 0004 8c64 jsr 48c64 <_CORE_mutex_Initialize> <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
47220: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
47224: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
47226: 2079 0006 28ae moveal 628ae <_POSIX_Mutex_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
4722c: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4722e: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
47232: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
CORE_MUTEX_UNLOCKED
);
_Objects_Open_u32( &_POSIX_Mutex_Information, &the_mutex->Object, 0 );
*mutex = the_mutex->Object.id;
47236: 2880 movel %d0,%a4@ <== NOT EXECUTED
_Thread_Enable_dispatch();
47238: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
4723e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47242: 4280 clrl %d0 <== NOT EXECUTED
47244: 6006 bras 4724c <pthread_mutex_init+0x10c> <== NOT EXECUTED
/*
* We only support process private mutexes.
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
return ENOSYS;
47246: 7058 moveq #88,%d0 <== NOT EXECUTED
47248: 6002 bras 4724c <pthread_mutex_init+0x10c> <== NOT EXECUTED
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_DEFAULT:
break;
default:
return EINVAL;
4724a: 7016 moveq #22,%d0 <== NOT EXECUTED
*mutex = the_mutex->Object.id;
_Thread_Enable_dispatch();
return 0;
}
4724c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
47252: 4e5e unlk %fp <== NOT EXECUTED
...
00047258 <pthread_mutex_lock>:
*/
int pthread_mutex_lock(
pthread_mutex_t *mutex
)
{
47258: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER );
4725c: 42a7 clrl %sp@- <== NOT EXECUTED
4725e: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47262: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47266: 4eb9 0004 7270 jsr 47270 <_POSIX_Mutex_Lock_support> <== NOT EXECUTED
}
4726c: 4e5e unlk %fp <== NOT EXECUTED
000472d8 <pthread_mutex_setprioceiling>:
int pthread_mutex_setprioceiling(
pthread_mutex_t *mutex,
int prioceiling,
int *old_ceiling
)
{
472d8: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
472dc: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED
472e0: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
472e4: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
472e8: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
Priority_Control the_priority;
if ( !old_ceiling )
472ec: 4a8a tstl %a2 <== NOT EXECUTED
472ee: 676c beqs 4735c <pthread_mutex_setprioceiling+0x84><== NOT EXECUTED
return EINVAL;
if ( !_POSIX_Priority_Is_valid( prioceiling ) )
472f0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
472f2: 4eb9 0004 74cc jsr 474cc <_POSIX_Priority_Is_valid> <== NOT EXECUTED
472f8: 588f addql #4,%sp <== NOT EXECUTED
472fa: 4a00 tstb %d0 <== NOT EXECUTED
472fc: 675e beqs 4735c <pthread_mutex_setprioceiling+0x84><== NOT EXECUTED
/*
* Must acquire the mutex before we can change it's ceiling.
* POSIX says block until we acquire it.
*/
(void) pthread_mutex_lock( mutex );
472fe: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47300: 1839 0006 0cc6 moveb 60cc6 <rtems_maximum_priority>,%d4 <== NOT EXECUTED
47306: 4eb9 0004 7258 jsr 47258 <pthread_mutex_lock> <== NOT EXECUTED
* operations.
*
* NOTE: This makes it easier to get 100% binary coverage since the
* bad Id case is handled by the switch.
*/
the_mutex = _POSIX_Mutex_Get( mutex, &location );
4730c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47310: 2f03 movel %d3,%sp@- <== NOT EXECUTED
47312: 4eb9 0004 7050 jsr 47050 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
47318: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
* operations.
*
* NOTE: This makes it easier to get 100% binary coverage since the
* bad Id case is handled by the switch.
*/
the_mutex = _POSIX_Mutex_Get( mutex, &location );
4731c: 2040 moveal %d0,%a0 <== NOT EXECUTED
switch ( location ) {
4731e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
47322: 6638 bnes 4735c <pthread_mutex_setprioceiling+0x84><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
47324: 4280 clrl %d0 <== NOT EXECUTED
47326: 1039 0006 0cc6 moveb 60cc6 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
4732c: 90a8 005e subl %a0@(94),%d0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
47330: 0284 0000 00ff andil #255,%d4 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
47336: 2480 movel %d0,%a2@ <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
47338: 9882 subl %d2,%d4 <== NOT EXECUTED
4733a: 2144 005e movel %d4,%a0@(94) <== NOT EXECUTED
);
the_mutex->Mutex.Attributes.priority_ceiling = the_priority;
/*
* We are required to unlock the mutex before we return.
*/
_CORE_mutex_Surrender(
4733e: 42a7 clrl %sp@- <== NOT EXECUTED
47340: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
47344: 4868 0014 pea %a0@(20) <== NOT EXECUTED
47348: 4eb9 0004 8e14 jsr 48e14 <_CORE_mutex_Surrender> <== NOT EXECUTED
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
4734e: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
47354: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47358: 4280 clrl %d0 <== NOT EXECUTED
4735a: 6002 bras 4735e <pthread_mutex_setprioceiling+0x86><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
4735c: 7016 moveq #22,%d0 <== NOT EXECUTED
}
4735e: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED
47364: 4e5e unlk %fp <== NOT EXECUTED
00047368 <pthread_mutex_timedlock>:
int pthread_mutex_timedlock(
pthread_mutex_t *mutex,
const struct timespec *abstime
)
{
47368: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4736c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4736e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
47370: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47374: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
47378: 4eb9 0004 7450 jsr 47450 <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
int _EXFUN(pthread_mutex_trylock, (pthread_mutex_t *__mutex));
int _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex));
#if defined(_POSIX_TIMEOUTS)
int _EXFUN(pthread_mutex_timedlock,
4737e: 508f addql #8,%sp <== NOT EXECUTED
47380: 2400 movel %d0,%d2 <== NOT EXECUTED
47382: 7003 moveq #3,%d0 <== NOT EXECUTED
47384: b082 cmpl %d2,%d0 <== NOT EXECUTED
47386: 57c3 seq %d3 <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );
47388: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
4738c: 4483 negl %d3 <== NOT EXECUTED
4738e: 4280 clrl %d0 <== NOT EXECUTED
47390: 1003 moveb %d3,%d0 <== NOT EXECUTED
47392: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47394: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47398: 4eb9 0004 7270 jsr 47270 <_POSIX_Mutex_Lock_support> <== NOT EXECUTED
* This service only gives us the option to block. We used a polling
* attempt to lock if the abstime was not in the future. If we did
* not obtain the mutex, then not look at the status immediately,
* make sure the right reason is returned.
*/
if ( !do_wait && (lock_status == EBUSY) ) {
4739e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
473a2: 4a03 tstb %d3 <== NOT EXECUTED
473a4: 661c bnes 473c2 <pthread_mutex_timedlock+0x5a> <== NOT EXECUTED
473a6: 7210 moveq #16,%d1 <== NOT EXECUTED
473a8: b280 cmpl %d0,%d1 <== NOT EXECUTED
473aa: 6616 bnes 473c2 <pthread_mutex_timedlock+0x5a> <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
473ac: 4a82 tstl %d2 <== NOT EXECUTED
473ae: 670c beqs 473bc <pthread_mutex_timedlock+0x54> <== NOT EXECUTED
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
473b0: 5382 subql #1,%d2 <== NOT EXECUTED
473b2: 123c 0001 moveb #1,%d1 <== NOT EXECUTED
473b6: b282 cmpl %d2,%d1 <== NOT EXECUTED
473b8: 6508 bcss 473c2 <pthread_mutex_timedlock+0x5a> <== NOT EXECUTED
473ba: 6004 bras 473c0 <pthread_mutex_timedlock+0x58> <== NOT EXECUTED
* not obtain the mutex, then not look at the status immediately,
* make sure the right reason is returned.
*/
if ( !do_wait && (lock_status == EBUSY) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
473bc: 7016 moveq #22,%d0 <== NOT EXECUTED
473be: 6002 bras 473c2 <pthread_mutex_timedlock+0x5a> <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
473c0: 7074 moveq #116,%d0 <== NOT EXECUTED
}
return lock_status;
}
473c2: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
473c6: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
473ca: 4e5e unlk %fp <== NOT EXECUTED
...
000473e8 <pthread_mutex_trylock>:
*/
int pthread_mutex_trylock(
pthread_mutex_t *mutex
)
{
473e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER );
473ec: 42a7 clrl %sp@- <== NOT EXECUTED
473ee: 42a7 clrl %sp@- <== NOT EXECUTED
473f0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
473f4: 4eb9 0004 7270 jsr 47270 <_POSIX_Mutex_Lock_support> <== NOT EXECUTED
}
473fa: 4e5e unlk %fp <== NOT EXECUTED
...
00047400 <pthread_mutex_unlock>:
*/
int pthread_mutex_unlock(
pthread_mutex_t *mutex
)
{
47400: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
47404: 2f02 movel %d2,%sp@- <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
CORE_mutex_Status status;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
47406: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4740a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4740e: 4eb9 0004 7050 jsr 47050 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
47414: 508f addql #8,%sp <== NOT EXECUTED
47416: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4741a: 6628 bnes 47444 <pthread_mutex_unlock+0x44> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_mutex_Surrender(
4741c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4741e: 42a7 clrl %sp@- <== NOT EXECUTED
47420: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
47424: 4868 0014 pea %a0@(20) <== NOT EXECUTED
47428: 4eb9 0004 8e14 jsr 48e14 <_CORE_mutex_Surrender> <== NOT EXECUTED
4742e: 2400 movel %d0,%d2 <== NOT EXECUTED
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
47430: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Mutex_Translate_core_mutex_return_code( status );
47436: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47438: 4eb9 0004 73d0 jsr 473d0 <_POSIX_Mutex_Translate_core_mutex_return_code><== NOT EXECUTED
4743e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
47442: 6002 bras 47446 <pthread_mutex_unlock+0x46> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
47444: 7016 moveq #22,%d0 <== NOT EXECUTED
}
47446: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4744a: 4e5e unlk %fp <== NOT EXECUTED
...
00046e8c <pthread_mutexattr_destroy>:
*/
int pthread_mutexattr_destroy(
pthread_mutexattr_t *attr
)
{
46e8c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46e90: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
46e94: 4a88 tstl %a0 <== NOT EXECUTED
46e96: 670a beqs 46ea2 <pthread_mutexattr_destroy+0x16> <== NOT EXECUTED
46e98: 4a90 tstl %a0@ <== NOT EXECUTED
46e9a: 6706 beqs 46ea2 <pthread_mutexattr_destroy+0x16> <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
46e9c: 4290 clrl %a0@ <== NOT EXECUTED
return 0;
46e9e: 4280 clrl %d0 <== NOT EXECUTED
46ea0: 6002 bras 46ea4 <pthread_mutexattr_destroy+0x18> <== NOT EXECUTED
int pthread_mutexattr_destroy(
pthread_mutexattr_t *attr
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
46ea2: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
46ea4: 4e5e unlk %fp <== NOT EXECUTED
00046ea8 <pthread_mutexattr_getprioceiling>:
int pthread_mutexattr_getprioceiling(
const pthread_mutexattr_t *attr,
int *prioceiling
)
{
46ea8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46eac: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46eb0: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !prioceiling )
46eb4: 4a88 tstl %a0 <== NOT EXECUTED
46eb6: 6710 beqs 46ec8 <pthread_mutexattr_getprioceiling+0x20><== NOT EXECUTED
46eb8: 4a90 tstl %a0@ <== NOT EXECUTED
46eba: 670c beqs 46ec8 <pthread_mutexattr_getprioceiling+0x20><== NOT EXECUTED
46ebc: 4a89 tstl %a1 <== NOT EXECUTED
46ebe: 6708 beqs 46ec8 <pthread_mutexattr_getprioceiling+0x20><== NOT EXECUTED
return EINVAL;
*prioceiling = attr->prio_ceiling;
46ec0: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED
return 0;
46ec4: 4280 clrl %d0 <== NOT EXECUTED
46ec6: 6002 bras 46eca <pthread_mutexattr_getprioceiling+0x22><== NOT EXECUTED
const pthread_mutexattr_t *attr,
int *prioceiling
)
{
if ( !attr || !attr->is_initialized || !prioceiling )
return EINVAL;
46ec8: 7016 moveq #22,%d0 <== NOT EXECUTED
*prioceiling = attr->prio_ceiling;
return 0;
}
46eca: 4e5e unlk %fp <== NOT EXECUTED
...
00046ed0 <pthread_mutexattr_getprotocol>:
int pthread_mutexattr_getprotocol(
const pthread_mutexattr_t *attr,
int *protocol
)
{
46ed0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46ed4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46ed8: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !protocol )
46edc: 4a88 tstl %a0 <== NOT EXECUTED
46ede: 6710 beqs 46ef0 <pthread_mutexattr_getprotocol+0x20><== NOT EXECUTED
46ee0: 4a90 tstl %a0@ <== NOT EXECUTED
46ee2: 670c beqs 46ef0 <pthread_mutexattr_getprotocol+0x20><== NOT EXECUTED
46ee4: 4a89 tstl %a1 <== NOT EXECUTED
46ee6: 6708 beqs 46ef0 <pthread_mutexattr_getprotocol+0x20><== NOT EXECUTED
return EINVAL;
*protocol = attr->protocol;
46ee8: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED
return 0;
46eec: 4280 clrl %d0 <== NOT EXECUTED
46eee: 6002 bras 46ef2 <pthread_mutexattr_getprotocol+0x22><== NOT EXECUTED
const pthread_mutexattr_t *attr,
int *protocol
)
{
if ( !attr || !attr->is_initialized || !protocol )
return EINVAL;
46ef0: 7016 moveq #22,%d0 <== NOT EXECUTED
*protocol = attr->protocol;
return 0;
}
46ef2: 4e5e unlk %fp <== NOT EXECUTED
...
00046ef8 <pthread_mutexattr_getpshared>:
int pthread_mutexattr_getpshared(
const pthread_mutexattr_t *attr,
int *pshared
)
{
46ef8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46efc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46f00: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !pshared )
46f04: 4a88 tstl %a0 <== NOT EXECUTED
46f06: 6710 beqs 46f18 <pthread_mutexattr_getpshared+0x20><== NOT EXECUTED
46f08: 4a90 tstl %a0@ <== NOT EXECUTED
46f0a: 670c beqs 46f18 <pthread_mutexattr_getpshared+0x20><== NOT EXECUTED
46f0c: 4a89 tstl %a1 <== NOT EXECUTED
46f0e: 6708 beqs 46f18 <pthread_mutexattr_getpshared+0x20><== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
46f10: 22a8 0004 movel %a0@(4),%a1@ <== NOT EXECUTED
return 0;
46f14: 4280 clrl %d0 <== NOT EXECUTED
46f16: 6002 bras 46f1a <pthread_mutexattr_getpshared+0x22><== NOT EXECUTED
const pthread_mutexattr_t *attr,
int *pshared
)
{
if ( !attr || !attr->is_initialized || !pshared )
return EINVAL;
46f18: 7016 moveq #22,%d0 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
}
46f1a: 4e5e unlk %fp <== NOT EXECUTED
...
00045220 <pthread_mutexattr_gettype>:
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
int pthread_mutexattr_gettype(
const pthread_mutexattr_t *attr,
int *type
)
{
45220: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45224: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
45228: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
if ( !attr )
4522c: 4a88 tstl %a0 <== NOT EXECUTED
4522e: 6710 beqs 45240 <pthread_mutexattr_gettype+0x20> <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
45230: 4a90 tstl %a0@ <== NOT EXECUTED
45232: 670c beqs 45240 <pthread_mutexattr_gettype+0x20> <== NOT EXECUTED
return EINVAL;
if ( !type )
45234: 4a89 tstl %a1 <== NOT EXECUTED
45236: 6708 beqs 45240 <pthread_mutexattr_gettype+0x20> <== NOT EXECUTED
return EINVAL;
*type = attr->type;
45238: 22a8 0010 movel %a0@(16),%a1@ <== NOT EXECUTED
return 0;
4523c: 4280 clrl %d0 <== NOT EXECUTED
4523e: 6002 bras 45242 <pthread_mutexattr_gettype+0x22> <== NOT EXECUTED
if ( !attr->is_initialized )
return EINVAL;
if ( !type )
return EINVAL;
45240: 7016 moveq #22,%d0 <== NOT EXECUTED
*type = attr->type;
return 0;
}
45242: 4e5e unlk %fp <== NOT EXECUTED
...
00046f20 <pthread_mutexattr_init>:
*/
int pthread_mutexattr_init(
pthread_mutexattr_t *attr
)
{
46f20: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46f24: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
if ( !attr )
46f28: 671a beqs 46f44 <pthread_mutexattr_init+0x24> <== NOT EXECUTED
return EINVAL;
*attr = _POSIX_Mutex_Default_attributes;
46f2a: 4878 0018 pea 18 <OPER2+0x4> <== NOT EXECUTED
46f2e: 4879 0006 290a pea 6290a <_POSIX_Mutex_Default_attributes> <== NOT EXECUTED
46f34: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46f36: 4eb9 0004 fc04 jsr 4fc04 <memcpy> <== NOT EXECUTED
return 0;
46f3c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46f40: 4280 clrl %d0 <== NOT EXECUTED
46f42: 6002 bras 46f46 <pthread_mutexattr_init+0x26> <== NOT EXECUTED
int pthread_mutexattr_init(
pthread_mutexattr_t *attr
)
{
if ( !attr )
return EINVAL;
46f44: 7016 moveq #22,%d0 <== NOT EXECUTED
*attr = _POSIX_Mutex_Default_attributes;
return 0;
}
46f46: 4e5e unlk %fp <== NOT EXECUTED
...
00046f4c <pthread_mutexattr_setprioceiling>:
int pthread_mutexattr_setprioceiling(
pthread_mutexattr_t *attr,
int prioceiling
)
{
46f4c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46f50: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46f52: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
46f56: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46f58: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
46f5c: 4a8a tstl %a2 <== NOT EXECUTED
46f5e: 671a beqs 46f7a <pthread_mutexattr_setprioceiling+0x2e><== NOT EXECUTED
46f60: 4a92 tstl %a2@ <== NOT EXECUTED
46f62: 6716 beqs 46f7a <pthread_mutexattr_setprioceiling+0x2e><== NOT EXECUTED
return EINVAL;
if ( !_POSIX_Priority_Is_valid( prioceiling ) )
46f64: 2f02 movel %d2,%sp@- <== NOT EXECUTED
46f66: 4eb9 0004 74cc jsr 474cc <_POSIX_Priority_Is_valid> <== NOT EXECUTED
46f6c: 588f addql #4,%sp <== NOT EXECUTED
46f6e: 4a00 tstb %d0 <== NOT EXECUTED
46f70: 6708 beqs 46f7a <pthread_mutexattr_setprioceiling+0x2e><== NOT EXECUTED
return EINVAL;
attr->prio_ceiling = prioceiling;
46f72: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED
return 0;
46f76: 4280 clrl %d0 <== NOT EXECUTED
46f78: 6002 bras 46f7c <pthread_mutexattr_setprioceiling+0x30><== NOT EXECUTED
{
if ( !attr || !attr->is_initialized )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( prioceiling ) )
return EINVAL;
46f7a: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->prio_ceiling = prioceiling;
return 0;
}
46f7c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46f80: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46f84: 4e5e unlk %fp <== NOT EXECUTED
00046f88 <pthread_mutexattr_setprotocol>:
int pthread_mutexattr_setprotocol(
pthread_mutexattr_t *attr,
int protocol
)
{
46f88: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46f8c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46f90: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
46f94: 4a88 tstl %a0 <== NOT EXECUTED
46f96: 6712 beqs 46faa <pthread_mutexattr_setprotocol+0x22><== NOT EXECUTED
46f98: 4a90 tstl %a0@ <== NOT EXECUTED
46f9a: 670e beqs 46faa <pthread_mutexattr_setprotocol+0x22><== NOT EXECUTED
return EINVAL;
switch ( protocol ) {
46f9c: 7202 moveq #2,%d1 <== NOT EXECUTED
46f9e: b280 cmpl %d0,%d1 <== NOT EXECUTED
46fa0: 6508 bcss 46faa <pthread_mutexattr_setprotocol+0x22><== NOT EXECUTED
case PTHREAD_PRIO_NONE:
case PTHREAD_PRIO_INHERIT:
case PTHREAD_PRIO_PROTECT:
attr->protocol = protocol;
46fa2: 2140 000c movel %d0,%a0@(12) <== NOT EXECUTED
return 0;
46fa6: 4280 clrl %d0 <== NOT EXECUTED
46fa8: 6002 bras 46fac <pthread_mutexattr_setprotocol+0x24><== NOT EXECUTED
default:
return EINVAL;
46faa: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
46fac: 4e5e unlk %fp <== NOT EXECUTED
00046fb0 <pthread_mutexattr_setpshared>:
int pthread_mutexattr_setpshared(
pthread_mutexattr_t *attr,
int pshared
)
{
46fb0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46fb4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46fb8: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
46fbc: 4a88 tstl %a0 <== NOT EXECUTED
46fbe: 6712 beqs 46fd2 <pthread_mutexattr_setpshared+0x22><== NOT EXECUTED
46fc0: 4a90 tstl %a0@ <== NOT EXECUTED
46fc2: 670e beqs 46fd2 <pthread_mutexattr_setpshared+0x22><== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
46fc4: 7201 moveq #1,%d1 <== NOT EXECUTED
46fc6: b280 cmpl %d0,%d1 <== NOT EXECUTED
46fc8: 6508 bcss 46fd2 <pthread_mutexattr_setpshared+0x22><== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
46fca: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
return 0;
46fce: 4280 clrl %d0 <== NOT EXECUTED
46fd0: 6002 bras 46fd4 <pthread_mutexattr_setpshared+0x24><== NOT EXECUTED
default:
return EINVAL;
46fd2: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
46fd4: 4e5e unlk %fp <== NOT EXECUTED
00045274 <pthread_mutexattr_settype>:
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
int pthread_mutexattr_settype(
pthread_mutexattr_t *attr,
int type
)
{
45274: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45278: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
4527c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
45280: 4a88 tstl %a0 <== NOT EXECUTED
45282: 6712 beqs 45296 <pthread_mutexattr_settype+0x22> <== NOT EXECUTED
45284: 4a90 tstl %a0@ <== NOT EXECUTED
45286: 670e beqs 45296 <pthread_mutexattr_settype+0x22> <== NOT EXECUTED
return EINVAL;
switch ( type ) {
45288: 7203 moveq #3,%d1 <== NOT EXECUTED
4528a: b280 cmpl %d0,%d1 <== NOT EXECUTED
4528c: 6508 bcss 45296 <pthread_mutexattr_settype+0x22> <== NOT EXECUTED
case PTHREAD_MUTEX_NORMAL:
case PTHREAD_MUTEX_RECURSIVE:
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_DEFAULT:
attr->type = type;
4528e: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED
return 0;
45292: 4280 clrl %d0 <== NOT EXECUTED
45294: 6002 bras 45298 <pthread_mutexattr_settype+0x24> <== NOT EXECUTED
default:
return EINVAL;
45296: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
45298: 4e5e unlk %fp <== NOT EXECUTED
00045d10 <pthread_once>:
int pthread_once(
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
45d10: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45d14: 2f0b movel %a3,%sp@- <== NOT EXECUTED
45d16: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
45d1a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45d1c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
if ( !once_control || !init_routine )
45d20: 4a8a tstl %a2 <== NOT EXECUTED
45d22: 674a beqs 45d6e <pthread_once+0x5e> <== NOT EXECUTED
45d24: 4a8b tstl %a3 <== NOT EXECUTED
45d26: 6746 beqs 45d6e <pthread_once+0x5e> <== NOT EXECUTED
return EINVAL;
if ( !once_control->init_executed ) {
45d28: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED
45d2c: 6644 bnes 45d72 <pthread_once+0x62> <== NOT EXECUTED
rtems_mode saveMode;
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
45d2e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45d32: 4878 0100 pea 100 <DBL_MANT_DIG+0xcb> <== NOT EXECUTED
45d36: 4878 0100 pea 100 <DBL_MANT_DIG+0xcb> <== NOT EXECUTED
45d3a: 4eb9 0004 6818 jsr 46818 <rtems_task_mode> <== NOT EXECUTED
if ( !once_control->init_executed ) {
45d40: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45d44: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED
45d48: 660c bnes 45d56 <pthread_once+0x46> <== NOT EXECUTED
once_control->is_initialized = true;
45d4a: 7001 moveq #1,%d0 <== NOT EXECUTED
45d4c: 2480 movel %d0,%a2@ <== NOT EXECUTED
once_control->init_executed = true;
45d4e: 7001 moveq #1,%d0 <== NOT EXECUTED
45d50: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
(*init_routine)();
45d54: 4e93 jsr %a3@ <== NOT EXECUTED
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
45d56: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45d5a: 4878 0100 pea 100 <DBL_MANT_DIG+0xcb> <== NOT EXECUTED
45d5e: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
45d62: 4eb9 0004 6818 jsr 46818 <rtems_task_mode> <== NOT EXECUTED
45d68: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45d6c: 6004 bras 45d72 <pthread_once+0x62> <== NOT EXECUTED
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
if ( !once_control || !init_routine )
return EINVAL;
45d6e: 7016 moveq #22,%d0 <== NOT EXECUTED
45d70: 6002 bras 45d74 <pthread_once+0x64> <== NOT EXECUTED
once_control->init_executed = true;
(*init_routine)();
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
}
return 0;
45d72: 4280 clrl %d0 <== NOT EXECUTED
}
45d74: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
45d78: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
45d7c: 4e5e unlk %fp <== NOT EXECUTED
000462b8 <pthread_rwlock_destroy>:
*/
int pthread_rwlock_destroy(
pthread_rwlock_t *rwlock
)
{
462b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
462bc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
462c0: 2f0b movel %a3,%sp@- <== NOT EXECUTED
462c2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock = NULL;
Objects_Locations location;
if ( !rwlock )
462c4: 4a88 tstl %a0 <== NOT EXECUTED
462c6: 6760 beqs 46328 <pthread_rwlock_destroy+0x70> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get (
pthread_rwlock_t *RWLock,
Objects_Locations *location
)
{
return (POSIX_RWLock_Control *) _Objects_Get(
462c8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
462cc: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
462ce: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
462d4: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
462da: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
462de: 2440 moveal %d0,%a2 <== NOT EXECUTED
462e0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
462e4: 6642 bnes 46328 <pthread_rwlock_destroy+0x70> <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* If there is at least one thread waiting, then do not delete it.
*/
if ( _Thread_queue_First( &the_rwlock->RWLock.Wait_queue ) != NULL ) {
462e6: 486a 0010 pea %a2@(16) <== NOT EXECUTED
462ea: 47f9 0004 93be lea 493be <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
462f0: 4eb9 0004 9b4c jsr 49b4c <_Thread_queue_First> <== NOT EXECUTED
462f6: 588f addql #4,%sp <== NOT EXECUTED
462f8: 4a80 tstl %d0 <== NOT EXECUTED
462fa: 6706 beqs 46302 <pthread_rwlock_destroy+0x4a> <== NOT EXECUTED
_Thread_Enable_dispatch();
462fc: 4e93 jsr %a3@ <== NOT EXECUTED
return EBUSY;
462fe: 7010 moveq #16,%d0 <== NOT EXECUTED
46300: 6028 bras 4632a <pthread_rwlock_destroy+0x72> <== NOT EXECUTED
/*
* POSIX doesn't require behavior when it is locked.
*/
_Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object );
46302: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46304: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
4630a: 4eb9 0004 87f0 jsr 487f0 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_RWLock_Free (
POSIX_RWLock_Control *the_RWLock
)
{
_Objects_Free( &_POSIX_RWLock_Information, &the_RWLock->Object );
46310: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46312: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
46318: 4eb9 0004 8a68 jsr 48a68 <_Objects_Free> <== NOT EXECUTED
_POSIX_RWLock_Free( the_rwlock );
_Thread_Enable_dispatch();
4631e: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
46320: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
46324: 4280 clrl %d0 <== NOT EXECUTED
46326: 6002 bras 4632a <pthread_rwlock_destroy+0x72> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
46328: 7016 moveq #22,%d0 <== NOT EXECUTED
}
4632a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
4632e: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
46332: 4e5e unlk %fp <== NOT EXECUTED
...
00046338 <pthread_rwlock_init>:
int pthread_rwlock_init(
pthread_rwlock_t *rwlock,
const pthread_rwlockattr_t *attr
)
{
46338: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
4633c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
46340: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
46344: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
const pthread_rwlockattr_t *the_attr;
/*
* Error check parameters
*/
if ( !rwlock )
46348: 4a8a tstl %a2 <== NOT EXECUTED
4634a: 6700 0084 beqw 463d0 <pthread_rwlock_init+0x98> <== NOT EXECUTED
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
4634e: 4a88 tstl %a0 <== NOT EXECUTED
46350: 6614 bnes 46366 <pthread_rwlock_init+0x2e> <== NOT EXECUTED
the_attr = attr;
} else {
(void) pthread_rwlockattr_init( &default_attr );
46352: 240e movel %fp,%d2 <== NOT EXECUTED
46354: 0682 ffff fff4 addil #-12,%d2 <== NOT EXECUTED
4635a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4635c: 4eb9 0004 6c54 jsr 46c54 <pthread_rwlockattr_init> <== NOT EXECUTED
46362: 588f addql #4,%sp <== NOT EXECUTED
the_attr = &default_attr;
46364: 2042 moveal %d2,%a0 <== NOT EXECUTED
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
46366: 4a90 tstl %a0@ <== NOT EXECUTED
46368: 6766 beqs 463d0 <pthread_rwlock_init+0x98> <== NOT EXECUTED
return EINVAL;
switch ( the_attr->process_shared ) {
4636a: 4aa8 0004 tstl %a0@(4) <== NOT EXECUTED
4636e: 6660 bnes 463d0 <pthread_rwlock_init+0x98> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
46370: 2039 0006 0440 movel 60440 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46376: 5280 addql #1,%d0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _CORE_RWLock_Initialize_attributes(
CORE_RWLock_Attributes *the_attributes
)
{
the_attributes->XXX = 0;
46378: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED
4637c: 23c0 0006 0440 movel %d0,60440 <_Thread_Dispatch_disable_level><== NOT EXECUTED
* the inactive chain of free RWLock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{
return (POSIX_RWLock_Control *)
_Objects_Allocate( &_POSIX_RWLock_Information );
46382: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
46388: 49f9 0004 93be lea 493be <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
4638e: 4eb9 0004 8774 jsr 48774 <_Objects_Allocate> <== NOT EXECUTED
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_rwlock = _POSIX_RWLock_Allocate();
if ( !the_rwlock ) {
46394: 588f addql #4,%sp <== NOT EXECUTED
46396: 2640 moveal %d0,%a3 <== NOT EXECUTED
46398: 4a80 tstl %d0 <== NOT EXECUTED
4639a: 6606 bnes 463a2 <pthread_rwlock_init+0x6a> <== NOT EXECUTED
_Thread_Enable_dispatch();
4639c: 4e94 jsr %a4@ <== NOT EXECUTED
return EAGAIN;
4639e: 700b moveq #11,%d0 <== NOT EXECUTED
463a0: 6030 bras 463d2 <pthread_rwlock_init+0x9a> <== NOT EXECUTED
}
_CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );
463a2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
463a6: 486b 0010 pea %a3@(16) <== NOT EXECUTED
463aa: 4eb9 0004 7f68 jsr 47f68 <_CORE_RWLock_Initialize> <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
463b0: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
463b4: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
463b6: 2079 0006 05e6 moveal 605e6 <_POSIX_RWLock_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
463bc: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
463be: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
463c2: 42ab 000c clrl %a3@(12) <== NOT EXECUTED
&_POSIX_RWLock_Information,
&the_rwlock->Object,
0
);
*rwlock = the_rwlock->Object.id;
463c6: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
463c8: 4e94 jsr %a4@ <== NOT EXECUTED
return 0;
463ca: 508f addql #8,%sp <== NOT EXECUTED
463cc: 4280 clrl %d0 <== NOT EXECUTED
463ce: 6002 bras 463d2 <pthread_rwlock_init+0x9a> <== NOT EXECUTED
switch ( the_attr->process_shared ) {
case PTHREAD_PROCESS_PRIVATE: /* only supported values */
break;
case PTHREAD_PROCESS_SHARED:
default:
return EINVAL;
463d0: 7016 moveq #22,%d0 <== NOT EXECUTED
*rwlock = the_rwlock->Object.id;
_Thread_Enable_dispatch();
return 0;
}
463d2: 4cee 1c04 ffe4 moveml %fp@(-28),%d2/%a2-%a4 <== NOT EXECUTED
463d8: 4e5e unlk %fp <== NOT EXECUTED
000463dc <pthread_rwlock_rdlock>:
*/
int pthread_rwlock_rdlock(
pthread_rwlock_t *rwlock
)
{
463dc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
463e0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
463e2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
463e6: 4a8a tstl %a2 <== NOT EXECUTED
463e8: 674e beqs 46438 <pthread_rwlock_rdlock+0x5c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get (
pthread_rwlock_t *RWLock,
Objects_Locations *location
)
{
return (POSIX_RWLock_Control *) _Objects_Get(
463ea: 486e fffc pea %fp@(-4) <== NOT EXECUTED
463ee: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
463f0: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
463f6: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
463fc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46400: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46404: 6632 bnes 46438 <pthread_rwlock_rdlock+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
46406: 42a7 clrl %sp@- <== NOT EXECUTED
46408: 2040 moveal %d0,%a0 <== NOT EXECUTED
4640a: 42a7 clrl %sp@- <== NOT EXECUTED
4640c: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
46410: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
46412: 4868 0010 pea %a0@(16) <== NOT EXECUTED
46416: 4eb9 0004 7f9c jsr 47f9c <_CORE_RWLock_Obtain_for_reading> <== NOT EXECUTED
true, /* we are willing to wait forever */
0,
NULL
);
_Thread_Enable_dispatch();
4641c: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
46422: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
46428: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
4642c: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
46432: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
46436: 6002 bras 4643a <pthread_rwlock_rdlock+0x5e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
46438: 7016 moveq #22,%d0 <== NOT EXECUTED
}
4643a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4643e: 4e5e unlk %fp <== NOT EXECUTED
...
00046444 <pthread_rwlock_timedrdlock>:
int pthread_rwlock_timedrdlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
46444: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
46448: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
4644c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
46450: 4a8a tstl %a2 <== NOT EXECUTED
46452: 6700 008c beqw 464e0 <pthread_rwlock_timedrdlock+0x9c><== NOT EXECUTED
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
46456: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
4645a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4645e: 4eb9 0004 bfa8 jsr 4bfa8 <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
46464: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46468: 2400 movel %d0,%d2 <== NOT EXECUTED
4646a: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
4646c: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
46472: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
46478: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
4647c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46480: 665e bnes 464e0 <pthread_rwlock_timedrdlock+0x9c><== NOT EXECUTED
int _EXFUN(pthread_rwlock_init,
(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedrdlock,
46482: 7203 moveq #3,%d1 <== NOT EXECUTED
46484: b282 cmpl %d2,%d1 <== NOT EXECUTED
46486: 57c3 seq %d3 <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
46488: 42a7 clrl %sp@- <== NOT EXECUTED
4648a: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED
4648e: 4483 negl %d3 <== NOT EXECUTED
46490: 4281 clrl %d1 <== NOT EXECUTED
46492: 1203 moveb %d3,%d1 <== NOT EXECUTED
46494: 2040 moveal %d0,%a0 <== NOT EXECUTED
46496: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46498: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
4649a: 4868 0010 pea %a0@(16) <== NOT EXECUTED
4649e: 4eb9 0004 7f9c jsr 47f9c <_CORE_RWLock_Obtain_for_reading> <== NOT EXECUTED
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
464a4: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !do_wait ) {
464aa: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
464ae: 4a03 tstb %d3 <== NOT EXECUTED
464b0: 661a bnes 464cc <pthread_rwlock_timedrdlock+0x88><== NOT EXECUTED
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
464b2: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
464b8: 7002 moveq #2,%d0 <== NOT EXECUTED
464ba: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED
464be: 660c bnes 464cc <pthread_rwlock_timedrdlock+0x88><== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
464c0: 4a82 tstl %d2 <== NOT EXECUTED
464c2: 671c beqs 464e0 <pthread_rwlock_timedrdlock+0x9c><== NOT EXECUTED
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
464c4: 5382 subql #1,%d2 <== NOT EXECUTED
464c6: 7201 moveq #1,%d1 <== NOT EXECUTED
464c8: b282 cmpl %d2,%d1 <== NOT EXECUTED
464ca: 6418 bccs 464e4 <pthread_rwlock_timedrdlock+0xa0><== NOT EXECUTED
return ETIMEDOUT;
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
464cc: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
464d2: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
464d6: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
464dc: 588f addql #4,%sp <== NOT EXECUTED
464de: 6006 bras 464e6 <pthread_rwlock_timedrdlock+0xa2><== NOT EXECUTED
_Thread_Enable_dispatch();
if ( !do_wait ) {
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
464e0: 7016 moveq #22,%d0 <== NOT EXECUTED
464e2: 6002 bras 464e6 <pthread_rwlock_timedrdlock+0xa2><== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
464e4: 7074 moveq #116,%d0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
464e6: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED
464ec: 4e5e unlk %fp <== NOT EXECUTED
000464f0 <pthread_rwlock_timedwrlock>:
int pthread_rwlock_timedwrlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
464f0: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
464f4: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED
464f8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
464fc: 4a8a tstl %a2 <== NOT EXECUTED
464fe: 6700 008c beqw 4658c <pthread_rwlock_timedwrlock+0x9c><== NOT EXECUTED
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
46502: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
46506: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4650a: 4eb9 0004 bfa8 jsr 4bfa8 <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
46510: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46514: 2400 movel %d0,%d2 <== NOT EXECUTED
46516: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
46518: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
4651e: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
46524: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
46528: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4652c: 665e bnes 4658c <pthread_rwlock_timedwrlock+0x9c><== NOT EXECUTED
(pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedwrlock,
4652e: 7203 moveq #3,%d1 <== NOT EXECUTED
46530: b282 cmpl %d2,%d1 <== NOT EXECUTED
46532: 57c3 seq %d3 <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
46534: 42a7 clrl %sp@- <== NOT EXECUTED
46536: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED
4653a: 4483 negl %d3 <== NOT EXECUTED
4653c: 4281 clrl %d1 <== NOT EXECUTED
4653e: 1203 moveb %d3,%d1 <== NOT EXECUTED
46540: 2040 moveal %d0,%a0 <== NOT EXECUTED
46542: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46544: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
46546: 4868 0010 pea %a0@(16) <== NOT EXECUTED
4654a: 4eb9 0004 804c jsr 4804c <_CORE_RWLock_Obtain_for_writing> <== NOT EXECUTED
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
46550: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !do_wait &&
46556: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
4655a: 4a03 tstb %d3 <== NOT EXECUTED
4655c: 661a bnes 46578 <pthread_rwlock_timedwrlock+0x88><== NOT EXECUTED
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
4655e: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
ticks,
NULL
);
_Thread_Enable_dispatch();
if ( !do_wait &&
46564: 7002 moveq #2,%d0 <== NOT EXECUTED
46566: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED
4656a: 660c bnes 46578 <pthread_rwlock_timedwrlock+0x88><== NOT EXECUTED
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
4656c: 4a82 tstl %d2 <== NOT EXECUTED
4656e: 671c beqs 4658c <pthread_rwlock_timedwrlock+0x9c><== NOT EXECUTED
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
46570: 5382 subql #1,%d2 <== NOT EXECUTED
46572: 7201 moveq #1,%d1 <== NOT EXECUTED
46574: b282 cmpl %d2,%d1 <== NOT EXECUTED
46576: 6418 bccs 46590 <pthread_rwlock_timedwrlock+0xa0><== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
46578: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
4657e: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
46582: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
46588: 588f addql #4,%sp <== NOT EXECUTED
4658a: 6006 bras 46592 <pthread_rwlock_timedwrlock+0xa2><== NOT EXECUTED
_Thread_Enable_dispatch();
if ( !do_wait &&
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
4658c: 7016 moveq #22,%d0 <== NOT EXECUTED
4658e: 6002 bras 46592 <pthread_rwlock_timedwrlock+0xa2><== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
46590: 7074 moveq #116,%d0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
46592: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED
46598: 4e5e unlk %fp <== NOT EXECUTED
000465b4 <pthread_rwlock_tryrdlock>:
*/
int pthread_rwlock_tryrdlock(
pthread_rwlock_t *rwlock
)
{
465b4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
465b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
465ba: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
465be: 4a8a tstl %a2 <== NOT EXECUTED
465c0: 674c beqs 4660e <pthread_rwlock_tryrdlock+0x5a> <== NOT EXECUTED
465c2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
465c6: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
465c8: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
465ce: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
465d4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
465d8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
465dc: 6630 bnes 4660e <pthread_rwlock_tryrdlock+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
465de: 42a7 clrl %sp@- <== NOT EXECUTED
465e0: 2040 moveal %d0,%a0 <== NOT EXECUTED
465e2: 42a7 clrl %sp@- <== NOT EXECUTED
465e4: 42a7 clrl %sp@- <== NOT EXECUTED
465e6: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
465e8: 4868 0010 pea %a0@(16) <== NOT EXECUTED
465ec: 4eb9 0004 7f9c jsr 47f9c <_CORE_RWLock_Obtain_for_reading> <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
465f2: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
465f8: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
465fe: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
46602: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
46608: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
4660c: 6002 bras 46610 <pthread_rwlock_tryrdlock+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
4660e: 7016 moveq #22,%d0 <== NOT EXECUTED
}
46610: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
46614: 4e5e unlk %fp <== NOT EXECUTED
00046618 <pthread_rwlock_trywrlock>:
*/
int pthread_rwlock_trywrlock(
pthread_rwlock_t *rwlock
)
{
46618: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4661c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4661e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
46622: 4a8a tstl %a2 <== NOT EXECUTED
46624: 674c beqs 46672 <pthread_rwlock_trywrlock+0x5a> <== NOT EXECUTED
46626: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4662a: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
4662c: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
46632: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
46638: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4663c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46640: 6630 bnes 46672 <pthread_rwlock_trywrlock+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
46642: 42a7 clrl %sp@- <== NOT EXECUTED
46644: 2040 moveal %d0,%a0 <== NOT EXECUTED
46646: 42a7 clrl %sp@- <== NOT EXECUTED
46648: 42a7 clrl %sp@- <== NOT EXECUTED
4664a: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
4664c: 4868 0010 pea %a0@(16) <== NOT EXECUTED
46650: 4eb9 0004 804c jsr 4804c <_CORE_RWLock_Obtain_for_writing> <== NOT EXECUTED
false, /* we are not willing to wait */
0,
NULL
);
_Thread_Enable_dispatch();
46656: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
4665c: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
46662: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
46666: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
4666c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
46670: 6002 bras 46674 <pthread_rwlock_trywrlock+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
46672: 7016 moveq #22,%d0 <== NOT EXECUTED
}
46674: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
46678: 4e5e unlk %fp <== NOT EXECUTED
0004667c <pthread_rwlock_unlock>:
*/
int pthread_rwlock_unlock(
pthread_rwlock_t *rwlock
)
{
4667c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46680: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46684: 2f02 movel %d2,%sp@- <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
CORE_RWLock_Status status;
if ( !rwlock )
46686: 4a88 tstl %a0 <== NOT EXECUTED
46688: 673c beqs 466c6 <pthread_rwlock_unlock+0x4a> <== NOT EXECUTED
4668a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4668e: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
46690: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
46696: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
4669c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
466a0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
466a4: 6620 bnes 466c6 <pthread_rwlock_unlock+0x4a> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_RWLock_Release( &the_rwlock->RWLock );
466a6: 2040 moveal %d0,%a0 <== NOT EXECUTED
466a8: 4868 0010 pea %a0@(16) <== NOT EXECUTED
466ac: 4eb9 0004 80d8 jsr 480d8 <_CORE_RWLock_Release> <== NOT EXECUTED
466b2: 2400 movel %d0,%d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
466b4: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code( status );
466ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED
466bc: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
466c2: 508f addql #8,%sp <== NOT EXECUTED
466c4: 6002 bras 466c8 <pthread_rwlock_unlock+0x4c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
466c6: 7016 moveq #22,%d0 <== NOT EXECUTED
}
466c8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
466cc: 4e5e unlk %fp <== NOT EXECUTED
000466d0 <pthread_rwlock_wrlock>:
*/
int pthread_rwlock_wrlock(
pthread_rwlock_t *rwlock
)
{
466d0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
466d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466d6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
466da: 4a8a tstl %a2 <== NOT EXECUTED
466dc: 674e beqs 4672c <pthread_rwlock_wrlock+0x5c> <== NOT EXECUTED
466de: 486e fffc pea %fp@(-4) <== NOT EXECUTED
466e2: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
466e4: 4879 0006 05ce pea 605ce <_POSIX_RWLock_Information> <== NOT EXECUTED
466ea: 4eb9 0004 8bcc jsr 48bcc <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
466f0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
466f4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
466f8: 6632 bnes 4672c <pthread_rwlock_wrlock+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
466fa: 42a7 clrl %sp@- <== NOT EXECUTED
466fc: 2040 moveal %d0,%a0 <== NOT EXECUTED
466fe: 42a7 clrl %sp@- <== NOT EXECUTED
46700: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
46704: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
46706: 4868 0010 pea %a0@(16) <== NOT EXECUTED
4670a: 4eb9 0004 804c jsr 4804c <_CORE_RWLock_Obtain_for_writing> <== NOT EXECUTED
true, /* do not timeout -- wait forever */
0,
NULL
);
_Thread_Enable_dispatch();
46710: 4eb9 0004 93be jsr 493be <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
46716: 2079 0006 08d0 moveal 608d0 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
4671c: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
46720: 4eb9 0004 659c jsr 4659c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
46726: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
4672a: 6002 bras 4672e <pthread_rwlock_wrlock+0x5e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
4672c: 7016 moveq #22,%d0 <== NOT EXECUTED
}
4672e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
46732: 4e5e unlk %fp <== NOT EXECUTED
...
00046c14 <pthread_rwlockattr_destroy>:
*/
int pthread_rwlockattr_destroy(
pthread_rwlockattr_t *attr
)
{
46c14: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46c18: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr || attr->is_initialized == false )
46c1c: 4a88 tstl %a0 <== NOT EXECUTED
46c1e: 670a beqs 46c2a <pthread_rwlockattr_destroy+0x16><== NOT EXECUTED
46c20: 4a90 tstl %a0@ <== NOT EXECUTED
46c22: 6706 beqs 46c2a <pthread_rwlockattr_destroy+0x16><== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
46c24: 4290 clrl %a0@ <== NOT EXECUTED
return 0;
46c26: 4280 clrl %d0 <== NOT EXECUTED
46c28: 6002 bras 46c2c <pthread_rwlockattr_destroy+0x18><== NOT EXECUTED
int pthread_rwlockattr_destroy(
pthread_rwlockattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
return EINVAL;
46c2a: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
46c2c: 4e5e unlk %fp <== NOT EXECUTED
00046c30 <pthread_rwlockattr_getpshared>:
int pthread_rwlockattr_getpshared(
const pthread_rwlockattr_t *attr,
int *pshared
)
{
46c30: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46c34: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr )
46c38: 4a88 tstl %a0 <== NOT EXECUTED
46c3a: 6710 beqs 46c4c <pthread_rwlockattr_getpshared+0x1c><== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
46c3c: 4a90 tstl %a0@ <== NOT EXECUTED
46c3e: 670c beqs 46c4c <pthread_rwlockattr_getpshared+0x1c><== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
46c40: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
return 0;
46c44: 4280 clrl %d0 <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
*pshared = attr->process_shared;
46c46: 22a8 0004 movel %a0@(4),%a1@ <== NOT EXECUTED
return 0;
46c4a: 6002 bras 46c4e <pthread_rwlockattr_getpshared+0x1e><== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
46c4c: 7016 moveq #22,%d0 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
}
46c4e: 4e5e unlk %fp <== NOT EXECUTED
...
00046c54 <pthread_rwlockattr_init>:
*/
int pthread_rwlockattr_init(
pthread_rwlockattr_t *attr
)
{
46c54: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46c58: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !attr )
46c5c: 4a88 tstl %a0 <== NOT EXECUTED
46c5e: 670c beqs 46c6c <pthread_rwlockattr_init+0x18> <== NOT EXECUTED
return EINVAL;
attr->is_initialized = true;
46c60: 7001 moveq #1,%d0 <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
46c62: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED
)
{
if ( !attr )
return EINVAL;
attr->is_initialized = true;
46c66: 2080 movel %d0,%a0@ <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
return 0;
46c68: 4280 clrl %d0 <== NOT EXECUTED
46c6a: 6002 bras 46c6e <pthread_rwlockattr_init+0x1a> <== NOT EXECUTED
int pthread_rwlockattr_init(
pthread_rwlockattr_t *attr
)
{
if ( !attr )
return EINVAL;
46c6c: 7016 moveq #22,%d0 <== NOT EXECUTED
attr->is_initialized = true;
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
46c6e: 4e5e unlk %fp <== NOT EXECUTED
...
00046c74 <pthread_rwlockattr_setpshared>:
int pthread_rwlockattr_setpshared(
pthread_rwlockattr_t *attr,
int pshared
)
{
46c74: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46c78: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
46c7c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED
if ( !attr )
46c80: 4a88 tstl %a0 <== NOT EXECUTED
46c82: 6712 beqs 46c96 <pthread_rwlockattr_setpshared+0x22><== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
46c84: 4a90 tstl %a0@ <== NOT EXECUTED
46c86: 670e beqs 46c96 <pthread_rwlockattr_setpshared+0x22><== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
46c88: 7201 moveq #1,%d1 <== NOT EXECUTED
46c8a: b280 cmpl %d0,%d1 <== NOT EXECUTED
46c8c: 6508 bcss 46c96 <pthread_rwlockattr_setpshared+0x22><== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
46c8e: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED
return 0;
46c92: 4280 clrl %d0 <== NOT EXECUTED
46c94: 6002 bras 46c98 <pthread_rwlockattr_setpshared+0x24><== NOT EXECUTED
default:
return EINVAL;
46c96: 7016 moveq #22,%d0 <== NOT EXECUTED
}
}
46c98: 4e5e unlk %fp <== NOT EXECUTED
0005a3ac <pthread_self>:
#include <rtems/system.h>
#include <rtems/score/thread.h>
pthread_t pthread_self( void )
{
5a3ac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Thread_Executing->Object.id;
}
5a3b0: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
5a3b6: 4e5e unlk %fp <== NOT EXECUTED
5a3b8: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
...
00045238 <pthread_setcancelstate>:
int pthread_setcancelstate(
int state,
int *oldstate
)
{
45238: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4523c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
45240: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
45244: 4ab9 0005 e54c tstl 5e54c <_Per_CPU_Information+0x8> <== NOT EXECUTED
4524a: 663c bnes 45288 <pthread_setcancelstate+0x50> <== NOT EXECUTED
return EPROTO;
if ( !oldstate )
4524c: 4a89 tstl %a1 <== NOT EXECUTED
4524e: 673c beqs 4528c <pthread_setcancelstate+0x54> <== NOT EXECUTED
return EINVAL;
if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE )
45250: 7201 moveq #1,%d1 <== NOT EXECUTED
45252: b280 cmpl %d0,%d1 <== NOT EXECUTED
45254: 6536 bcss 4528c <pthread_setcancelstate+0x54> <== NOT EXECUTED
return EINVAL;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
45256: 2079 0005 e550 moveal 5e550 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4525c: 2239 0005 e0c0 movel 5e0c0 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED
45262: 5281 addql #1,%d1 <== NOT EXECUTED
45264: 2068 010e moveal %a0@(270),%a0 <== NOT EXECUTED
45268: 23c1 0005 e0c0 movel %d1,5e0c0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
*oldstate = thread_support->cancelability_state;
4526e: 22a8 00d8 movel %a0@(216),%a1@ <== NOT EXECUTED
thread_support->cancelability_state = state;
45272: 2140 00d8 movel %d0,%a0@(216) <== NOT EXECUTED
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing);
45276: 2f39 0005 e550 movel 5e550 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
4527c: 4eb9 0004 9fbc jsr 49fbc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch><== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
45282: 588f addql #4,%sp <== NOT EXECUTED
45284: 4280 clrl %d0 <== NOT EXECUTED
45286: 6006 bras 4528e <pthread_setcancelstate+0x56> <== NOT EXECUTED
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
return EPROTO;
45288: 7047 moveq #71,%d0 <== NOT EXECUTED
4528a: 6002 bras 4528e <pthread_setcancelstate+0x56> <== NOT EXECUTED
if ( !oldstate )
return EINVAL;
if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE )
return EINVAL;
4528c: 7016 moveq #22,%d0 <== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
}
4528e: 4e5e unlk %fp <== NOT EXECUTED
...
00045294 <pthread_setcanceltype>:
int pthread_setcanceltype(
int type,
int *oldtype
)
{
45294: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45298: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4529c: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
452a0: 4ab9 0005 e54c tstl 5e54c <_Per_CPU_Information+0x8> <== NOT EXECUTED
452a6: 663c bnes 452e4 <pthread_setcanceltype+0x50> <== NOT EXECUTED
return EPROTO;
if ( !oldtype )
452a8: 4a89 tstl %a1 <== NOT EXECUTED
452aa: 673c beqs 452e8 <pthread_setcanceltype+0x54> <== NOT EXECUTED
return EINVAL;
if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS )
452ac: 7201 moveq #1,%d1 <== NOT EXECUTED
452ae: b280 cmpl %d0,%d1 <== NOT EXECUTED
452b0: 6536 bcss 452e8 <pthread_setcanceltype+0x54> <== NOT EXECUTED
return EINVAL;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
452b2: 2079 0005 e550 moveal 5e550 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
452b8: 2239 0005 e0c0 movel 5e0c0 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED
452be: 5281 addql #1,%d1 <== NOT EXECUTED
452c0: 2068 010e moveal %a0@(270),%a0 <== NOT EXECUTED
452c4: 23c1 0005 e0c0 movel %d1,5e0c0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
*oldtype = thread_support->cancelability_type;
452ca: 22a8 00dc movel %a0@(220),%a1@ <== NOT EXECUTED
thread_support->cancelability_type = type;
452ce: 2140 00dc movel %d0,%a0@(220) <== NOT EXECUTED
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing);
452d2: 2f39 0005 e550 movel 5e550 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
452d8: 4eb9 0004 9fbc jsr 49fbc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch><== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
452de: 588f addql #4,%sp <== NOT EXECUTED
452e0: 4280 clrl %d0 <== NOT EXECUTED
452e2: 6006 bras 452ea <pthread_setcanceltype+0x56> <== NOT EXECUTED
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
return EPROTO;
452e4: 7047 moveq #71,%d0 <== NOT EXECUTED
452e6: 6002 bras 452ea <pthread_setcanceltype+0x56> <== NOT EXECUTED
if ( !oldtype )
return EINVAL;
if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS )
return EINVAL;
452e8: 7016 moveq #22,%d0 <== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
}
452ea: 4e5e unlk %fp <== NOT EXECUTED
...
00047b74 <pthread_setschedparam>:
int pthread_setschedparam(
pthread_t thread,
int policy,
struct sched_param *param
)
{
47b74: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
47b78: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
47b7c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
47b80: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
int rc;
/*
* Check all the parameters
*/
if ( !param )
47b84: 6700 00e0 beqw 47c66 <pthread_setschedparam+0xf2> <== NOT EXECUTED
return EINVAL;
rc = _POSIX_Thread_Translate_sched_param(
47b88: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
47b8c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
47b90: 2f04 movel %d4,%sp@- <== NOT EXECUTED
47b92: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47b94: 4eb9 0004 cfe4 jsr 4cfe4 <_POSIX_Thread_Translate_sched_param><== NOT EXECUTED
policy,
param,
&budget_algorithm,
&budget_callout
);
if ( rc )
47b9a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
* Check all the parameters
*/
if ( !param )
return EINVAL;
rc = _POSIX_Thread_Translate_sched_param(
47b9e: 2600 movel %d0,%d3 <== NOT EXECUTED
policy,
param,
&budget_algorithm,
&budget_callout
);
if ( rc )
47ba0: 6600 00ca bnew 47c6c <pthread_setschedparam+0xf8> <== NOT EXECUTED
47ba4: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
47ba8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47bac: 4879 0006 2774 pea 62774 <_POSIX_Threads_Information> <== NOT EXECUTED
47bb2: 4eb9 0004 9940 jsr 49940 <_Objects_Get> <== NOT EXECUTED
/*
* Actually change the scheduling policy and parameters
*/
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
47bb8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47bbc: 2640 moveal %d0,%a3 <== NOT EXECUTED
47bbe: 4aae fff4 tstl %fp@(-12) <== NOT EXECUTED
47bc2: 6600 00a6 bnew 47c6a <pthread_setschedparam+0xf6> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
47bc6: 246b 010e moveal %a3@(270),%a2 <== NOT EXECUTED
if ( api->schedpolicy == SCHED_SPORADIC )
47bca: 7004 moveq #4,%d0 <== NOT EXECUTED
47bcc: b0aa 0084 cmpl %a2@(132),%d0 <== NOT EXECUTED
47bd0: 660c bnes 47bde <pthread_setschedparam+0x6a> <== NOT EXECUTED
(void) _Watchdog_Remove( &api->Sporadic_timer );
47bd2: 486a 00a8 pea %a2@(168) <== NOT EXECUTED
47bd6: 4eb9 0004 b334 jsr 4b334 <_Watchdog_Remove> <== NOT EXECUTED
47bdc: 588f addql #4,%sp <== NOT EXECUTED
api->schedpolicy = policy;
47bde: 2542 0084 movel %d2,%a2@(132) <== NOT EXECUTED
api->schedparam = *param;
47be2: 4878 001c pea 1c <OPER2+0x8> <== NOT EXECUTED
47be6: 2f04 movel %d4,%sp@- <== NOT EXECUTED
47be8: 486a 0088 pea %a2@(136) <== NOT EXECUTED
47bec: 4eb9 0004 fc04 jsr 4fc04 <memcpy> <== NOT EXECUTED
the_thread->budget_algorithm = budget_algorithm;
47bf2: 276e fffc 007a movel %fp@(-4),%a3@(122) <== NOT EXECUTED
the_thread->budget_callout = budget_callout;
switch ( api->schedpolicy ) {
47bf8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
(void) _Watchdog_Remove( &api->Sporadic_timer );
api->schedpolicy = policy;
api->schedparam = *param;
the_thread->budget_algorithm = budget_algorithm;
the_thread->budget_callout = budget_callout;
47bfc: 276e fff8 007e movel %fp@(-8),%a3@(126) <== NOT EXECUTED
switch ( api->schedpolicy ) {
47c02: 4a82 tstl %d2 <== NOT EXECUTED
47c04: 6d58 blts 47c5e <pthread_setschedparam+0xea> <== NOT EXECUTED
47c06: 7002 moveq #2,%d0 <== NOT EXECUTED
47c08: b082 cmpl %d2,%d0 <== NOT EXECUTED
47c0a: 6c0a bges 47c16 <pthread_setschedparam+0xa2> <== NOT EXECUTED
47c0c: 103c 0004 moveb #4,%d0 <== NOT EXECUTED
47c10: b082 cmpl %d2,%d0 <== NOT EXECUTED
47c12: 664a bnes 47c5e <pthread_setschedparam+0xea> <== NOT EXECUTED
47c14: 602a bras 47c40 <pthread_setschedparam+0xcc> <== NOT EXECUTED
47c16: 4280 clrl %d0 <== NOT EXECUTED
47c18: 1039 0006 0cc6 moveb 60cc6 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
47c1e: 41f9 0006 2564 lea 62564 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED
47c24: 90aa 0088 subl %a2@(136),%d0 <== NOT EXECUTED
47c28: 2750 0076 movel %a0@,%a3@(118) <== NOT EXECUTED
the_thread->real_priority =
47c2c: 2740 0018 movel %d0,%a3@(24) <== NOT EXECUTED
_POSIX_Priority_To_core( api->schedparam.sched_priority );
_Thread_Change_priority(
47c30: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47c34: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47c36: 2f0b movel %a3,%sp@- <== NOT EXECUTED
47c38: 4eb9 0004 9c4c jsr 49c4c <_Thread_Change_priority> <== NOT EXECUTED
47c3e: 601a bras 47c5a <pthread_setschedparam+0xe6> <== NOT EXECUTED
true
);
break;
case SCHED_SPORADIC:
api->ss_high_priority = api->schedparam.sched_priority;
47c40: 256a 0088 00a4 movel %a2@(136),%a2@(164) <== NOT EXECUTED
_Watchdog_Remove( &api->Sporadic_timer );
47c46: 486a 00a8 pea %a2@(168) <== NOT EXECUTED
47c4a: 4eb9 0004 b334 jsr 4b334 <_Watchdog_Remove> <== NOT EXECUTED
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
47c50: 2f0b movel %a3,%sp@- <== NOT EXECUTED
47c52: 42a7 clrl %sp@- <== NOT EXECUTED
47c54: 4eb9 0004 7a50 jsr 47a50 <_POSIX_Threads_Sporadic_budget_TSR><== NOT EXECUTED
break;
47c5a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
}
_Thread_Enable_dispatch();
47c5e: 4eb9 0004 a132 jsr 4a132 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
47c64: 6006 bras 47c6c <pthread_setschedparam+0xf8> <== NOT EXECUTED
/*
* Check all the parameters
*/
if ( !param )
return EINVAL;
47c66: 7616 moveq #22,%d3 <== NOT EXECUTED
47c68: 6002 bras 47c6c <pthread_setschedparam+0xf8> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
47c6a: 7603 moveq #3,%d3 <== NOT EXECUTED
}
47c6c: 2003 movel %d3,%d0 <== NOT EXECUTED
47c6e: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 <== NOT EXECUTED
47c74: 4e5e unlk %fp <== NOT EXECUTED
0004575c <pthread_setspecific>:
int pthread_setspecific(
pthread_key_t key,
const void *value
)
{
4575c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45760: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45762: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45764: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45768: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4576c: 4879 0005 fad2 pea 5fad2 <_POSIX_Keys_Information> <== NOT EXECUTED
45772: 4eb9 0004 7a5c jsr 47a5c <_Objects_Get> <== NOT EXECUTED
uint32_t api;
uint32_t index;
Objects_Locations location;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
45778: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4577c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45780: 6634 bnes 457b6 <pthread_setspecific+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
45782: 2079 0005 fbec moveal 5fbec <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
45788: 7618 moveq #24,%d3 <== NOT EXECUTED
index = _Objects_Get_index( _Thread_Executing->Object.id );
the_key->Values[ api ][ index ] = (void *) value;
4578a: 2240 moveal %d0,%a1 <== NOT EXECUTED
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
4578c: 2428 0008 movel %a0@(8),%d2 <== NOT EXECUTED
45790: 2202 movel %d2,%d1 <== NOT EXECUTED
45792: e6a9 lsrl %d3,%d1 <== NOT EXECUTED
45794: 163c 0007 moveb #7,%d3 <== NOT EXECUTED
45798: c283 andl %d3,%d1 <== NOT EXECUTED
index = _Objects_Get_index( _Thread_Executing->Object.id );
4579a: 0282 0000 ffff andil #65535,%d2 <== NOT EXECUTED
the_key->Values[ api ][ index ] = (void *) value;
457a0: 2071 1c14 moveal %a1@(00000014,%d1:l:4),%a0 <== NOT EXECUTED
457a4: 43ee 000c lea %fp@(12),%a1 <== NOT EXECUTED
457a8: 2191 2c00 movel %a1@,%a0@(00000000,%d2:l:4) <== NOT EXECUTED
_Thread_Enable_dispatch();
457ac: 4eb9 0004 824e jsr 4824e <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
457b2: 4280 clrl %d0 <== NOT EXECUTED
457b4: 6002 bras 457b8 <pthread_setspecific+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
457b6: 7016 moveq #22,%d0 <== NOT EXECUTED
}
457b8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
457bc: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
457c0: 4e5e unlk %fp <== NOT EXECUTED
0004b4ac <pthread_sigmask>:
int pthread_sigmask(
int how,
const sigset_t *set,
sigset_t *oset
)
{
4b4ac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4b4b0: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4b4b4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4b4b6: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED
4b4ba: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
POSIX_API_Control *api;
if ( !set && !oset )
4b4be: 4a89 tstl %a1 <== NOT EXECUTED
4b4c0: 6604 bnes 4b4c6 <pthread_sigmask+0x1a> <== NOT EXECUTED
4b4c2: 4a8a tstl %a2 <== NOT EXECUTED
4b4c4: 6742 beqs 4b508 <pthread_sigmask+0x5c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
4b4c6: 2079 0005 fb7c moveal 5fb7c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4b4cc: 2068 010e moveal %a0@(270),%a0 <== NOT EXECUTED
if ( oset )
4b4d0: 4a8a tstl %a2 <== NOT EXECUTED
4b4d2: 6704 beqs 4b4d8 <pthread_sigmask+0x2c> <== NOT EXECUTED
*oset = api->signals_blocked;
4b4d4: 24a8 00d0 movel %a0@(208),%a2@ <== NOT EXECUTED
if ( !set )
4b4d8: 4a89 tstl %a1 <== NOT EXECUTED
4b4da: 6756 beqs 4b532 <pthread_sigmask+0x86> <== NOT EXECUTED
return 0;
switch ( how ) {
4b4dc: 7201 moveq #1,%d1 <== NOT EXECUTED
4b4de: b280 cmpl %d0,%d1 <== NOT EXECUTED
4b4e0: 670e beqs 4b4f0 <pthread_sigmask+0x44> <== NOT EXECUTED
4b4e2: 123c 0002 moveb #2,%d1 <== NOT EXECUTED
4b4e6: b280 cmpl %d0,%d1 <== NOT EXECUTED
4b4e8: 670e beqs 4b4f8 <pthread_sigmask+0x4c> <== NOT EXECUTED
4b4ea: 4a80 tstl %d0 <== NOT EXECUTED
4b4ec: 6714 beqs 4b502 <pthread_sigmask+0x56> <== NOT EXECUTED
4b4ee: 6018 bras 4b508 <pthread_sigmask+0x5c> <== NOT EXECUTED
case SIG_BLOCK:
api->signals_blocked |= *set;
4b4f0: 2011 movel %a1@,%d0 <== NOT EXECUTED
4b4f2: 81a8 00d0 orl %d0,%a0@(208) <== NOT EXECUTED
break;
4b4f6: 6020 bras 4b518 <pthread_sigmask+0x6c> <== NOT EXECUTED
case SIG_UNBLOCK:
api->signals_blocked &= ~*set;
4b4f8: 2011 movel %a1@,%d0 <== NOT EXECUTED
4b4fa: 4680 notl %d0 <== NOT EXECUTED
4b4fc: c1a8 00d0 andl %d0,%a0@(208) <== NOT EXECUTED
break;
4b500: 6016 bras 4b518 <pthread_sigmask+0x6c> <== NOT EXECUTED
case SIG_SETMASK:
api->signals_blocked = *set;
4b502: 2151 00d0 movel %a1@,%a0@(208) <== NOT EXECUTED
break;
4b506: 6010 bras 4b518 <pthread_sigmask+0x6c> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
4b508: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
4b50e: 2040 moveal %d0,%a0 <== NOT EXECUTED
4b510: 7016 moveq #22,%d0 <== NOT EXECUTED
4b512: 2080 movel %d0,%a0@ <== NOT EXECUTED
4b514: 70ff moveq #-1,%d0 <== NOT EXECUTED
4b516: 601c bras 4b534 <pthread_sigmask+0x88> <== NOT EXECUTED
/* XXX are there critical section problems here? */
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending) ) {
4b518: 2039 0005 fd7e movel 5fd7e <_POSIX_signals_Pending>,%d0 <== NOT EXECUTED
/* XXX are there critical section problems here? */
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
4b51e: 2228 00d0 movel %a0@(208),%d1 <== NOT EXECUTED
4b522: 4681 notl %d1 <== NOT EXECUTED
(api->signals_pending | _POSIX_signals_Pending) ) {
4b524: 80a8 00d4 orl %a0@(212),%d0 <== NOT EXECUTED
/* XXX are there critical section problems here? */
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
4b528: c081 andl %d1,%d0 <== NOT EXECUTED
4b52a: 6706 beqs 4b532 <pthread_sigmask+0x86> <== NOT EXECUTED
(api->signals_pending | _POSIX_signals_Pending) ) {
_Thread_Dispatch();
4b52c: 4eb9 0004 8164 jsr 48164 <_Thread_Dispatch> <== NOT EXECUTED
}
return 0;
4b532: 4280 clrl %d0 <== NOT EXECUTED
}
4b534: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4b538: 4e5e unlk %fp <== NOT EXECUTED
000456f4 <pthread_spin_destroy>:
*/
int pthread_spin_destroy(
pthread_spinlock_t *spinlock
)
{
456f4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
456f8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
456fc: 2f0b movel %a3,%sp@- <== NOT EXECUTED
456fe: 2f0a movel %a2,%sp@- <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
if ( !spinlock )
45700: 4a88 tstl %a0 <== NOT EXECUTED
45702: 6756 beqs 4575a <pthread_spin_destroy+0x66> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
pthread_spinlock_t *spinlock,
Objects_Locations *location
)
{
return (POSIX_Spinlock_Control *) _Objects_Get(
45704: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45708: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
4570a: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
45710: 4eb9 0004 76d8 jsr 476d8 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
45716: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4571a: 2440 moveal %d0,%a2 <== NOT EXECUTED
4571c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45720: 6638 bnes 4575a <pthread_spin_destroy+0x66> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy(
CORE_spinlock_Control *the_spinlock
)
{
return (the_spinlock->users != 0);
45722: 202a 0018 movel %a2@(24),%d0 <== NOT EXECUTED
45726: 47f9 0004 7eca lea 47eca <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) {
4572c: 6706 beqs 45734 <pthread_spin_destroy+0x40> <== NOT EXECUTED
_Thread_Enable_dispatch();
4572e: 4e93 jsr %a3@ <== NOT EXECUTED
return EBUSY;
45730: 7010 moveq #16,%d0 <== NOT EXECUTED
45732: 6028 bras 4575c <pthread_spin_destroy+0x68> <== NOT EXECUTED
}
_Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object );
45734: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45736: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
4573c: 4eb9 0004 72fc jsr 472fc <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free (
POSIX_Spinlock_Control *the_spinlock
)
{
_Objects_Free( &_POSIX_Spinlock_Information, &the_spinlock->Object );
45742: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45744: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
4574a: 4eb9 0004 7574 jsr 47574 <_Objects_Free> <== NOT EXECUTED
_POSIX_Spinlock_Free( the_spinlock );
_Thread_Enable_dispatch();
45750: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
45752: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
45756: 4280 clrl %d0 <== NOT EXECUTED
45758: 6002 bras 4575c <pthread_spin_destroy+0x68> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
4575a: 7016 moveq #22,%d0 <== NOT EXECUTED
}
4575c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
45760: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
45764: 4e5e unlk %fp <== NOT EXECUTED
00045768 <pthread_spin_init>:
int pthread_spin_init(
pthread_spinlock_t *spinlock,
int pshared
)
{
45768: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4576c: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED
45770: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock;
CORE_spinlock_Attributes attributes;
if ( !spinlock )
45774: 4a8a tstl %a2 <== NOT EXECUTED
45776: 6764 beqs 457dc <pthread_spin_init+0x74> <== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
45778: 4aae 000c tstl %fp@(12) <== NOT EXECUTED
4577c: 665e bnes 457dc <pthread_spin_init+0x74> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4577e: 2039 0005 ea0c movel 5ea0c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45784: 5280 addql #1,%d0 <== NOT EXECUTED
45786: 23c0 0005 ea0c movel %d0,5ea0c <_Thread_Dispatch_disable_level><== NOT EXECUTED
* the inactive chain of free spinlock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Allocate( void )
{
return (POSIX_Spinlock_Control *)
_Objects_Allocate( &_POSIX_Spinlock_Information );
4578c: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
45792: 49f9 0004 7eca lea 47eca <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
45798: 4eb9 0004 7280 jsr 47280 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */
the_spinlock = _POSIX_Spinlock_Allocate();
if ( !the_spinlock ) {
4579e: 588f addql #4,%sp <== NOT EXECUTED
457a0: 2640 moveal %d0,%a3 <== NOT EXECUTED
457a2: 4a80 tstl %d0 <== NOT EXECUTED
457a4: 6606 bnes 457ac <pthread_spin_init+0x44> <== NOT EXECUTED
_Thread_Enable_dispatch();
457a6: 4e94 jsr %a4@ <== NOT EXECUTED
return EAGAIN;
457a8: 700b moveq #11,%d0 <== NOT EXECUTED
457aa: 6032 bras 457de <pthread_spin_init+0x76> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _CORE_spinlock_Initialize_attributes(
CORE_spinlock_Attributes *the_attributes
)
{
the_attributes->XXX = 0;
457ac: 204e moveal %fp,%a0 <== NOT EXECUTED
457ae: 42a0 clrl %a0@- <== NOT EXECUTED
}
_CORE_spinlock_Initialize_attributes( &attributes );
_CORE_spinlock_Initialize( &the_spinlock->Spinlock, &attributes );
457b0: 2f08 movel %a0,%sp@- <== NOT EXECUTED
457b2: 486b 0010 pea %a3@(16) <== NOT EXECUTED
457b6: 4eb9 0004 6c74 jsr 46c74 <_CORE_spinlock_Initialize> <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
457bc: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
457c0: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
457c2: 2079 0005 ec26 moveal 5ec26 <_POSIX_Spinlock_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
457c8: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
457ca: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
457ce: 42ab 000c clrl %a3@(12) <== NOT EXECUTED
_Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 );
*spinlock = the_spinlock->Object.id;
457d2: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
457d4: 4e94 jsr %a4@ <== NOT EXECUTED
return 0;
457d6: 508f addql #8,%sp <== NOT EXECUTED
457d8: 4280 clrl %d0 <== NOT EXECUTED
457da: 6002 bras 457de <pthread_spin_init+0x76> <== NOT EXECUTED
switch ( pshared ) {
case PTHREAD_PROCESS_PRIVATE: /* only supported values */
break;
case PTHREAD_PROCESS_SHARED:
default:
return EINVAL;
457dc: 7016 moveq #22,%d0 <== NOT EXECUTED
*spinlock = the_spinlock->Object.id;
_Thread_Enable_dispatch();
return 0;
}
457de: 4cee 1c00 fff0 moveml %fp@(-16),%a2-%a4 <== NOT EXECUTED
457e4: 4e5e unlk %fp <== NOT EXECUTED
000457e8 <pthread_spin_lock>:
*/
int pthread_spin_lock(
pthread_spinlock_t *spinlock
)
{
457e8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
457ec: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
457f0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
457f2: 4a88 tstl %a0 <== NOT EXECUTED
457f4: 6744 beqs 4583a <pthread_spin_lock+0x52> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
pthread_spinlock_t *spinlock,
Objects_Locations *location
)
{
return (POSIX_Spinlock_Control *) _Objects_Get(
457f6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
457fa: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
457fc: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
45802: 4eb9 0004 76d8 jsr 476d8 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
45808: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4580c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45810: 6628 bnes 4583a <pthread_spin_lock+0x52> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 );
45812: 42a7 clrl %sp@- <== NOT EXECUTED
45814: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
45818: 2040 moveal %d0,%a0 <== NOT EXECUTED
4581a: 4868 0010 pea %a0@(16) <== NOT EXECUTED
4581e: 4eb9 0004 6ce4 jsr 46ce4 <_CORE_spinlock_Wait> <== NOT EXECUTED
45824: 2400 movel %d0,%d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
45826: 4eb9 0004 7eca jsr 47eca <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
4582c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4582e: 4eb9 0004 5844 jsr 45844 <_POSIX_Spinlock_Translate_core_spinlock_return_code><== NOT EXECUTED
45834: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
45838: 6002 bras 4583c <pthread_spin_lock+0x54> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
4583a: 7016 moveq #22,%d0 <== NOT EXECUTED
}
4583c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45840: 4e5e unlk %fp <== NOT EXECUTED
0004585c <pthread_spin_trylock>:
*/
int pthread_spin_trylock(
pthread_spinlock_t *spinlock
)
{
4585c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45860: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
45864: 2f02 movel %d2,%sp@- <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
45866: 4a88 tstl %a0 <== NOT EXECUTED
45868: 6742 beqs 458ac <pthread_spin_trylock+0x50> <== NOT EXECUTED
4586a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4586e: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
45870: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
45876: 4eb9 0004 76d8 jsr 476d8 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
4587c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45880: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45884: 6626 bnes 458ac <pthread_spin_trylock+0x50> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 );
45886: 42a7 clrl %sp@- <== NOT EXECUTED
45888: 2040 moveal %d0,%a0 <== NOT EXECUTED
4588a: 42a7 clrl %sp@- <== NOT EXECUTED
4588c: 4868 0010 pea %a0@(16) <== NOT EXECUTED
45890: 4eb9 0004 6ce4 jsr 46ce4 <_CORE_spinlock_Wait> <== NOT EXECUTED
45896: 2400 movel %d0,%d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
45898: 4eb9 0004 7eca jsr 47eca <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
4589e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
458a0: 4eb9 0004 5844 jsr 45844 <_POSIX_Spinlock_Translate_core_spinlock_return_code><== NOT EXECUTED
458a6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
458aa: 6002 bras 458ae <pthread_spin_trylock+0x52> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
458ac: 7016 moveq #22,%d0 <== NOT EXECUTED
}
458ae: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
458b2: 4e5e unlk %fp <== NOT EXECUTED
...
000458b8 <pthread_spin_unlock>:
*/
int pthread_spin_unlock(
pthread_spinlock_t *spinlock
)
{
458b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
458bc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
458c0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
458c2: 4a88 tstl %a0 <== NOT EXECUTED
458c4: 673c beqs 45902 <pthread_spin_unlock+0x4a> <== NOT EXECUTED
458c6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
458ca: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
458cc: 4879 0005 ec0e pea 5ec0e <_POSIX_Spinlock_Information> <== NOT EXECUTED
458d2: 4eb9 0004 76d8 jsr 476d8 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
458d8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
458dc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
458e0: 6620 bnes 45902 <pthread_spin_unlock+0x4a> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_spinlock_Release( &the_spinlock->Spinlock );
458e2: 2040 moveal %d0,%a0 <== NOT EXECUTED
458e4: 4868 0010 pea %a0@(16) <== NOT EXECUTED
458e8: 4eb9 0004 6c94 jsr 46c94 <_CORE_spinlock_Release> <== NOT EXECUTED
458ee: 2400 movel %d0,%d2 <== NOT EXECUTED
_Thread_Enable_dispatch();
458f0: 4eb9 0004 7eca jsr 47eca <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
458f6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
458f8: 4eb9 0004 5844 jsr 45844 <_POSIX_Spinlock_Translate_core_spinlock_return_code><== NOT EXECUTED
458fe: 508f addql #8,%sp <== NOT EXECUTED
45900: 6002 bras 45904 <pthread_spin_unlock+0x4c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
45902: 7016 moveq #22,%d0 <== NOT EXECUTED
}
45904: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45908: 4e5e unlk %fp <== NOT EXECUTED
00045b08 <pthread_testcancel>:
*
* 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183
*/
void pthread_testcancel( void )
{
45b08: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45b0c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
45b0e: 4ab9 0005 ee04 tstl 5ee04 <_Per_CPU_Information+0x8> <== NOT EXECUTED
45b14: 6646 bnes 45b5c <pthread_testcancel+0x54> <== NOT EXECUTED
return;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
45b16: 2079 0005 ee08 moveal 5ee08 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
45b1c: 2039 0005 e978 movel 5e978 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45b22: 5280 addql #1,%d0 <== NOT EXECUTED
45b24: 2068 010e moveal %a0@(270),%a0 <== NOT EXECUTED
45b28: 23c0 0005 e978 movel %d0,5e978 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
45b2e: 4aa8 00d8 tstl %a0@(216) <== NOT EXECUTED
45b32: 660a bnes 45b3e <pthread_testcancel+0x36> <== NOT EXECUTED
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */
int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));
int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));
void _EXFUN(pthread_testcancel, (void));
45b34: 4aa8 00e0 tstl %a0@(224) <== NOT EXECUTED
45b38: 56c2 sne %d2 <== NOT EXECUTED
45b3a: 4482 negl %d2 <== NOT EXECUTED
45b3c: 6002 bras 45b40 <pthread_testcancel+0x38> <== NOT EXECUTED
*/
void pthread_testcancel( void )
{
POSIX_API_Control *thread_support;
bool cancel = false;
45b3e: 4202 clrb %d2 <== NOT EXECUTED
_Thread_Disable_dispatch();
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
thread_support->cancelation_requested )
cancel = true;
_Thread_Enable_dispatch();
45b40: 4eb9 0004 7f7e jsr 47f7e <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( cancel )
45b46: 4a02 tstb %d2 <== NOT EXECUTED
45b48: 6712 beqs 45b5c <pthread_testcancel+0x54> <== NOT EXECUTED
_POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );
45b4a: 4878 ffff pea ffffffff <LESS> <== NOT EXECUTED
45b4e: 2f39 0005 ee08 movel 5ee08 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
45b54: 4eb9 0004 af08 jsr 4af08 <_POSIX_Thread_Exit> <== NOT EXECUTED
45b5a: 508f addql #8,%sp <== NOT EXECUTED
}
45b5c: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
45b60: 4e5e unlk %fp <== NOT EXECUTED
0004cbdc <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
4cbdc: 4e56 ffe4 linkw %fp,#-28
4cbe0: 202e 0010 movel %fp@(16),%d0
4cbe4: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@
4cbe8: 242e 0008 movel %fp@(8),%d2
4cbec: 262e 000c movel %fp@(12),%d3
4cbf0: 246e 0014 moveal %fp@(20),%a2
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
4cbf4: 4a82 tstl %d2
4cbf6: 677e beqs 4cc76 <rtems_barrier_create+0x9a> <== NEVER TAKEN
return RTEMS_INVALID_NAME;
if ( !id )
4cbf8: 4a8a tstl %a2
4cbfa: 677e beqs 4cc7a <rtems_barrier_create+0x9e> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
4cbfc: 0803 0004 btst #4,%d3
4cc00: 670a beqs 4cc0c <rtems_barrier_create+0x30> <== NEVER TAKEN
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
4cc02: 42ae fff8 clrl %fp@(-8)
if ( maximum_waiters == 0 )
4cc06: 4a80 tstl %d0
4cc08: 6608 bnes 4cc12 <rtems_barrier_create+0x36> <== ALWAYS TAKEN
4cc0a: 6072 bras 4cc7e <rtems_barrier_create+0xa2> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
4cc0c: 7201 moveq #1,%d1 <== NOT EXECUTED
4cc0e: 2d41 fff8 movel %d1,%fp@(-8) <== NOT EXECUTED
the_attributes.maximum_count = maximum_waiters;
4cc12: 2d40 fffc movel %d0,%fp@(-4)
4cc16: 2039 0005 fde0 movel 5fde0 <_Thread_Dispatch_disable_level>,%d0
4cc1c: 5280 addql #1,%d0
4cc1e: 23c0 0005 fde0 movel %d0,5fde0 <_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 );
4cc24: 4879 0006 061e pea 6061e <_Barrier_Information>
4cc2a: 49f9 0004 91d2 lea 491d2 <_Thread_Enable_dispatch>,%a4
4cc30: 4eb9 0004 8558 jsr 48558 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
4cc36: 588f addql #4,%sp
4cc38: 2640 moveal %d0,%a3
4cc3a: 4a80 tstl %d0
4cc3c: 6606 bnes 4cc44 <rtems_barrier_create+0x68> <== ALWAYS TAKEN
_Thread_Enable_dispatch();
4cc3e: 4e94 jsr %a4@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
4cc40: 7005 moveq #5,%d0 <== NOT EXECUTED
4cc42: 603c bras 4cc80 <rtems_barrier_create+0xa4> <== NOT EXECUTED
}
the_barrier->attribute_set = attribute_set;
4cc44: 2743 0010 movel %d3,%a3@(16)
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
4cc48: 486e fff8 pea %fp@(-8)
4cc4c: 486b 0014 pea %a3@(20)
4cc50: 4eb9 0004 d3ac jsr 4d3ac <_CORE_barrier_Initialize>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
4cc56: 202b 0008 movel %a3@(8),%d0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4cc5a: 4281 clrl %d1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4cc5c: 2079 0006 0636 moveal 60636 <_Barrier_Information+0x18>,%a0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4cc62: 3200 movew %d0,%d1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4cc64: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
4cc68: 2742 000c movel %d2,%a3@(12)
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
4cc6c: 2480 movel %d0,%a2@
_Thread_Enable_dispatch();
4cc6e: 4e94 jsr %a4@
return RTEMS_SUCCESSFUL;
4cc70: 508f addql #8,%sp
4cc72: 4280 clrl %d0
4cc74: 600a bras 4cc80 <rtems_barrier_create+0xa4>
{
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
4cc76: 7003 moveq #3,%d0 <== NOT EXECUTED
4cc78: 6006 bras 4cc80 <rtems_barrier_create+0xa4> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
4cc7a: 7009 moveq #9,%d0 <== NOT EXECUTED
4cc7c: 6002 bras 4cc80 <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;
4cc7e: 700a moveq #10,%d0 <== NOT EXECUTED
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4cc80: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4
4cc86: 4e5e unlk %fp
...
0004cc8c <rtems_barrier_delete>:
*/
rtems_status_code rtems_barrier_delete(
rtems_id id
)
{
4cc8c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4cc90: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
4cc92: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4cc96: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4cc9a: 4879 0006 061e pea 6061e <_Barrier_Information> <== NOT EXECUTED
4cca0: 4eb9 0004 89b0 jsr 489b0 <_Objects_Get> <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
4cca6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4ccaa: 2440 moveal %d0,%a2 <== NOT EXECUTED
4ccac: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4ccb0: 663a bnes 4ccec <rtems_barrier_delete+0x60> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Flush(
4ccb2: 4878 0002 pea 2 <DOUBLE_FLOAT> <== NOT EXECUTED
4ccb6: 42a7 clrl %sp@- <== NOT EXECUTED
4ccb8: 486a 0014 pea %a2@(20) <== NOT EXECUTED
4ccbc: 4eb9 0004 9860 jsr 49860 <_Thread_queue_Flush> <== NOT EXECUTED
&the_barrier->Barrier,
NULL,
CORE_BARRIER_WAS_DELETED
);
_Objects_Close( &_Barrier_Information, &the_barrier->Object );
4ccc2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ccc4: 4879 0006 061e pea 6061e <_Barrier_Information> <== NOT EXECUTED
4ccca: 4eb9 0004 85d4 jsr 485d4 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Barrier_Free (
Barrier_Control *the_barrier
)
{
_Objects_Free( &_Barrier_Information, &the_barrier->Object );
4ccd0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ccd2: 4879 0006 061e pea 6061e <_Barrier_Information> <== NOT EXECUTED
4ccd8: 4eb9 0004 884c jsr 4884c <_Objects_Free> <== NOT EXECUTED
_Barrier_Free( the_barrier );
_Thread_Enable_dispatch();
4ccde: 4eb9 0004 91d2 jsr 491d2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4cce4: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4cce8: 4280 clrl %d0 <== NOT EXECUTED
4ccea: 6002 bras 4ccee <rtems_barrier_delete+0x62> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4ccec: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4ccee: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4ccf2: 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 eee8 pea 5eee8 <_Barrier_Information> <== NOT EXECUTED
45dc8: 4eb9 0004 7de0 jsr 47de0 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
45dce: 41f9 0005 c7e6 lea 5c7e6 <_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
0004cd28 <rtems_barrier_release>:
rtems_status_code rtems_barrier_release(
rtems_id id,
uint32_t *released
)
{
4cd28: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4cd2c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4cd2e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
4cd32: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cd34: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
4cd38: 4a8a tstl %a2 <== NOT EXECUTED
4cd3a: 673c beqs 4cd78 <rtems_barrier_release+0x50> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
4cd3c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4cd40: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cd42: 4879 0006 061e pea 6061e <_Barrier_Information> <== NOT EXECUTED
4cd48: 4eb9 0004 89b0 jsr 489b0 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
4cd4e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4cd52: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4cd56: 6624 bnes 4cd7c <rtems_barrier_release+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
*released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL );
4cd58: 42a7 clrl %sp@- <== NOT EXECUTED
4cd5a: 2040 moveal %d0,%a0 <== NOT EXECUTED
4cd5c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cd5e: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4cd62: 4eb9 0004 d3e8 jsr 4d3e8 <_CORE_barrier_Release> <== NOT EXECUTED
4cd68: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4cd6a: 4eb9 0004 91d2 jsr 491d2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4cd70: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4cd74: 4280 clrl %d0 <== NOT EXECUTED
4cd76: 6006 bras 4cd7e <rtems_barrier_release+0x56> <== NOT EXECUTED
{
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
return RTEMS_INVALID_ADDRESS;
4cd78: 7009 moveq #9,%d0 <== NOT EXECUTED
4cd7a: 6002 bras 4cd7e <rtems_barrier_release+0x56> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4cd7c: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4cd7e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4cd82: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4cd86: 4e5e unlk %fp <== NOT EXECUTED
...
0004cd8c <rtems_barrier_wait>:
rtems_status_code rtems_barrier_wait(
rtems_id id,
rtems_interval timeout
)
{
4cd8c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4cd90: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cd92: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4cd96: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4cd9a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cd9c: 4879 0006 061e pea 6061e <_Barrier_Information> <== NOT EXECUTED
4cda2: 4eb9 0004 89b0 jsr 489b0 <_Objects_Get> <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
4cda8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4cdac: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4cdb0: 6634 bnes 4cde6 <rtems_barrier_wait+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Wait(
4cdb2: 42a7 clrl %sp@- <== NOT EXECUTED
4cdb4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4cdb8: 2040 moveal %d0,%a0 <== NOT EXECUTED
4cdba: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4cdbe: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cdc0: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4cdc4: 4eb9 0004 d41c jsr 4d41c <_CORE_barrier_Wait> <== NOT EXECUTED
id,
true,
timeout,
NULL
);
_Thread_Enable_dispatch();
4cdca: 4eb9 0004 91d2 jsr 491d2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _Barrier_Translate_core_barrier_return_code(
_Thread_Executing->Wait.return_code );
4cdd0: 2079 0006 0270 moveal 60270 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
true,
timeout,
NULL
);
_Thread_Enable_dispatch();
return _Barrier_Translate_core_barrier_return_code(
4cdd6: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
4cdda: 4eb9 0004 e4ec jsr 4e4ec <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED
4cde0: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
4cde4: 6002 bras 4cde8 <rtems_barrier_wait+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4cde6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4cde8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4cdec: 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
00045fac <rtems_chain_append_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
45fac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45fb0: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45fb2: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
45fb6: 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 );
45fb8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
45fbc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
45fc0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
45fc4: 4eb9 0004 653c jsr 4653c <_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 ) {
45fca: 508f addql #8,%sp <== NOT EXECUTED
45fcc: 4a00 tstb %d0 <== NOT EXECUTED
45fce: 6718 beqs 45fe8 <rtems_chain_append_with_notification+0x3c><== NOT EXECUTED
sc = rtems_event_send( task, events );
45fd0: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
}
return sc;
}
45fd4: 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 );
45fd8: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return sc;
}
45fdc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45fe0: 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 );
45fe2: 4ef9 0004 563c jmp 4563c <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
45fe8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45fec: 4280 clrl %d0 <== NOT EXECUTED
45fee: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
45ff2: 4e5e unlk %fp <== NOT EXECUTED
...
00045ff8 <rtems_chain_get_with_notification>:
rtems_chain_control *chain,
rtems_id task,
rtems_event_set events,
rtems_chain_node **node
)
{
45ff8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45ffc: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45ffe: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
46002: 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 );
46004: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
46008: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4600c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46010: 4eb9 0004 65dc jsr 465dc <_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 ) {
46016: 508f addql #8,%sp <== NOT EXECUTED
46018: 4a00 tstb %d0 <== NOT EXECUTED
4601a: 6718 beqs 46034 <rtems_chain_get_with_notification+0x3c><== NOT EXECUTED
sc = rtems_event_send( task, events );
4601c: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
}
return sc;
}
46020: 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 );
46024: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return sc;
}
46028: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4602c: 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 );
4602e: 4ef9 0004 563c jmp 4563c <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
46034: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46038: 4280 clrl %d0 <== NOT EXECUTED
4603a: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
4603e: 4e5e unlk %fp <== NOT EXECUTED
...
00046044 <rtems_chain_get_with_wait>:
rtems_chain_control *chain,
rtems_event_set events,
rtems_interval timeout,
rtems_chain_node **node_ptr
)
{
46044: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
46048: 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(
4604c: 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 );
4604e: 47f9 0004 6620 lea 46620 <_Chain_Get>,%a3 <== NOT EXECUTED
46054: 5983 subql #4,%d3 <== NOT EXECUTED
46056: 45f9 0004 54d8 lea 454d8 <rtems_event_receive>,%a2 <== NOT EXECUTED
rtems_chain_control *chain,
rtems_event_set events,
rtems_interval timeout,
rtems_chain_node **node_ptr
)
{
4605c: 2c2e 0008 movel %fp@(8),%d6 <== NOT EXECUTED
46060: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED
46064: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED
46068: 6012 bras 4607c <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(
4606a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4606c: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4606e: 42a7 clrl %sp@- <== NOT EXECUTED
46070: 2f05 movel %d5,%sp@- <== NOT EXECUTED
46072: 4e92 jsr %a2@ <== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
46074: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
46078: 4a80 tstl %d0 <== NOT EXECUTED
4607a: 660c bnes 46088 <rtems_chain_get_with_wait+0x44> <== NOT EXECUTED
4607c: 2f06 movel %d6,%sp@- <== NOT EXECUTED
4607e: 4e93 jsr %a3@ <== NOT EXECUTED
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
46080: 588f addql #4,%sp <== NOT EXECUTED
46082: 2400 movel %d0,%d2 <== NOT EXECUTED
46084: 67e4 beqs 4606a <rtems_chain_get_with_wait+0x26> <== NOT EXECUTED
46086: 4280 clrl %d0 <== NOT EXECUTED
timeout,
&out
);
}
*node_ptr = node;
46088: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED
4608c: 2082 movel %d2,%a0@ <== NOT EXECUTED
return sc;
}
4608e: 4cee 0c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a3 <== NOT EXECUTED
46094: 4e5e unlk %fp <== NOT EXECUTED
00046098 <rtems_chain_prepend_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
46098: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4609c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4609e: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
460a2: 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 );
460a4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
460a8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
460ac: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
460b0: 4eb9 0004 6684 jsr 46684 <_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) {
460b6: 508f addql #8,%sp <== NOT EXECUTED
460b8: 4a00 tstb %d0 <== NOT EXECUTED
460ba: 6718 beqs 460d4 <rtems_chain_prepend_with_notification+0x3c><== NOT EXECUTED
sc = rtems_event_send( task, events );
460bc: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED
}
return sc;
}
460c0: 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 );
460c4: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED
}
return sc;
}
460c8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
460cc: 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 );
460ce: 4ef9 0004 563c jmp 4563c <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
460d4: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
460d8: 4280 clrl %d0 <== NOT EXECUTED
460da: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
460de: 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
00045d8c <rtems_clock_get_seconds_since_epoch>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
45d8c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45d90: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !the_interval )
45d94: 4a88 tstl %a0 <== NOT EXECUTED
45d96: 6712 beqs 45daa <rtems_clock_get_seconds_since_epoch+0x1e><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
45d98: 4a39 0006 798c tstb 6798c <_TOD_Is_set> <== NOT EXECUTED
45d9e: 670e beqs 45dae <rtems_clock_get_seconds_since_epoch+0x22><== NOT EXECUTED
return RTEMS_NOT_DEFINED;
*the_interval = _TOD_Seconds_since_epoch();
45da0: 20b9 0006 7a06 movel 67a06 <_TOD_Now>,%a0@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45da6: 4280 clrl %d0 <== NOT EXECUTED
45da8: 6006 bras 45db0 <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;
45daa: 7009 moveq #9,%d0 <== NOT EXECUTED
45dac: 6002 bras 45db0 <rtems_clock_get_seconds_since_epoch+0x24><== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
45dae: 700b moveq #11,%d0 <== NOT EXECUTED
*the_interval = _TOD_Seconds_since_epoch();
return RTEMS_SUCCESSFUL;
}
45db0: 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 c190 lea 5c190 <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 db58 movel 5db58 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
}
44fe6: 4e5e unlk %fp <== NOT EXECUTED
...
00045ddc <rtems_clock_get_tod>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod(
rtems_time_of_day *time_buffer
)
{
45ddc: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED
45de0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45de2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
45de6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
45de8: 4a8a tstl %a2 <== NOT EXECUTED
45dea: 6700 0090 beqw 45e7c <rtems_clock_get_tod+0xa0> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
45dee: 4a39 0006 798c tstb 6798c <_TOD_Is_set> <== NOT EXECUTED
45df4: 6700 008a beqw 45e80 <rtems_clock_get_tod+0xa4> <== NOT EXECUTED
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
45df8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
45dfe: 40c2 movew %sr,%d2 <== NOT EXECUTED
45e00: 8082 orl %d2,%d0 <== NOT EXECUTED
45e02: 46c0 movew %d0,%sr <== NOT EXECUTED
_TOD_Get( &now );
45e04: 486e fff0 pea %fp@(-16) <== NOT EXECUTED
45e08: 4eb9 0004 7584 jsr 47584 <_TOD_Get> <== NOT EXECUTED
_ISR_Enable(level);
45e0e: 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;
45e10: 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 );
45e16: 486e ffcc pea %fp@(-52) <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
45e1a: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED
45e1e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
45e22: 2d6e fff0 fff8 movel %fp@(-16),%fp@(-8) <== NOT EXECUTED
time->tv_usec = useconds;
45e28: 4c42 0800 remsl %d2,%d0,%d0 <== NOT EXECUTED
45e2c: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED
45e30: 4eb9 0004 e548 jsr 4e548 <gmtime_r> <== NOT EXECUTED
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
45e36: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED
45e3a: 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;
45e3e: 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;
45e42: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED
45e46: 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;
45e48: 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 /
45e4a: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED
45e4e: 41f9 0005 e310 lea 5e310 <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;
45e54: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
tmbuf->day = time.tm_mday;
45e58: 256e ffd8 0008 movel %fp@(-40),%a2@(8) <== NOT EXECUTED
tmbuf->hour = time.tm_hour;
45e5e: 256e ffd4 000c movel %fp@(-44),%a2@(12) <== NOT EXECUTED
tmbuf->minute = time.tm_min;
45e64: 256e ffd0 0010 movel %fp@(-48),%a2@(16) <== NOT EXECUTED
tmbuf->second = time.tm_sec;
45e6a: 256e ffcc 0014 movel %fp@(-52),%a2@(20) <== NOT EXECUTED
tmbuf->ticks = now.tv_usec /
45e70: 4c50 1001 remul %a0@,%d1,%d1 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
45e74: 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 /
45e76: 2541 0018 movel %d1,%a2@(24) <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
45e7a: 6006 bras 45e82 <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;
45e7c: 7009 moveq #9,%d0 <== NOT EXECUTED
45e7e: 6002 bras 45e82 <rtems_clock_get_tod+0xa6> <== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
45e80: 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;
}
45e82: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED
45e86: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED
45e8a: 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 6530 tstb 76530 <_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 326c jsr 5326c <_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
...
000451fc <rtems_clock_get_uptime>:
* error code - if unsuccessful
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
451fc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45200: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
if ( !uptime )
45204: 670e beqs 45214 <rtems_clock_get_uptime+0x18> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_TOD_Get_uptime_as_timespec( uptime );
45206: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45208: 4eb9 0004 6760 jsr 46760 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4520e: 588f addql #4,%sp <== NOT EXECUTED
45210: 4280 clrl %d0 <== NOT EXECUTED
45212: 6002 bras 45216 <rtems_clock_get_uptime+0x1a> <== NOT EXECUTED
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
if ( !uptime )
return RTEMS_INVALID_ADDRESS;
45214: 7009 moveq #9,%d0 <== NOT EXECUTED
_TOD_Get_uptime_as_timespec( uptime );
return RTEMS_SUCCESSFUL;
}
45216: 4e5e unlk %fp <== NOT EXECUTED
...
00045eac <rtems_clock_set>:
*/
rtems_status_code rtems_clock_set(
rtems_time_of_day *time_buffer
)
{
45eac: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED
45eb0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45eb2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
struct timespec newtime;
if ( !time_buffer )
45eb6: 4a8a tstl %a2 <== NOT EXECUTED
45eb8: 675a beqs 45f14 <rtems_clock_set+0x68> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
45eba: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45ebc: 4eb9 0004 5ffc jsr 45ffc <_TOD_Validate> <== NOT EXECUTED
45ec2: 588f addql #4,%sp <== NOT EXECUTED
45ec4: 4a00 tstb %d0 <== NOT EXECUTED
45ec6: 6750 beqs 45f18 <rtems_clock_set+0x6c> <== NOT EXECUTED
newtime.tv_sec = _TOD_To_seconds( time_buffer );
45ec8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45eca: 4eb9 0004 5f60 jsr 45f60 <_TOD_To_seconds> <== NOT EXECUTED
newtime.tv_nsec = time_buffer->ticks *
45ed0: 41f9 0005 e310 lea 5e310 <Configuration+0xc>,%a0 <== NOT EXECUTED
45ed6: 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 );
45edc: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
newtime.tv_nsec = time_buffer->ticks *
45ee0: 202a 0018 movel %a2@(24),%d0 <== NOT EXECUTED
45ee4: 4c10 0800 mulsl %a0@,%d0 <== NOT EXECUTED
45ee8: 4c00 1800 mulsl %d0,%d1 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
45eec: 2039 0006 797c movel 6797c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45ef2: 5280 addql #1,%d0 <== NOT EXECUTED
45ef4: 2d41 fffc movel %d1,%fp@(-4) <== NOT EXECUTED
45ef8: 23c0 0006 797c movel %d0,6797c <_Thread_Dispatch_disable_level><== NOT EXECUTED
rtems_configuration_get_nanoseconds_per_tick();
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
45efe: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
45f02: 4eb9 0004 768c jsr 4768c <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
45f08: 4eb9 0004 88ca jsr 488ca <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45f0e: 508f addql #8,%sp <== NOT EXECUTED
45f10: 4280 clrl %d0 <== NOT EXECUTED
45f12: 6006 bras 45f1a <rtems_clock_set+0x6e> <== NOT EXECUTED
)
{
struct timespec newtime;
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
45f14: 7009 moveq #9,%d0 <== NOT EXECUTED
45f16: 6002 bras 45f1a <rtems_clock_set+0x6e> <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_INVALID_CLOCK;
45f18: 7014 moveq #20,%d0 <== NOT EXECUTED
}
45f1a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
45f1e: 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 db9e movel %d0,5db9e <_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 6414 jsr 46414 <_TOD_Tickle_ticks>
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void )
{
_Watchdog_Tickle( &_Watchdog_Ticks_chain );
45012: 4879 0005 daee pea 5daee <_Watchdog_Ticks_chain> <== NOT EXECUTED
45018: 4eb9 0004 8634 jsr 48634 <_Watchdog_Tickle> <== NOT EXECUTED
_Watchdog_Tickle_ticks();
_Thread_Tickle_timeslice();
4501e: 4eb9 0004 80c8 jsr 480c8 <_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 dec8 moveb 5dec8 <_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 da2c movel 5da2c <_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 73e4 jsr 473e4 <_Thread_Dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
4503c: 4280 clrl %d0 <== NOT EXECUTED
4503e: 4e5e unlk %fp <== NOT EXECUTED
...
0004a8ac <rtems_debug_enable>:
* rtems_debug_enable
*/
void rtems_debug_enable (
rtems_debug_control to_be_enabled
)
{
4a8ac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
_Debug_Level |= to_be_enabled;
4a8b0: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
}
4a8b4: 4e5e unlk %fp <== NOT EXECUTED
*/
void rtems_debug_enable (
rtems_debug_control to_be_enabled
)
{
_Debug_Level |= to_be_enabled;
4a8b6: 81b9 0005 dad6 orl %d0,5dad6 <_Debug_Level> <== NOT EXECUTED
}
0004a8e6 <rtems_debug_is_enabled>:
* rtems_debug_is_enabled
*/
bool rtems_debug_is_enabled(
rtems_debug_control level
)
{
4a8e6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return (_Debug_Level & level) ? true : false;
4a8ea: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
}
4a8ee: 4e5e unlk %fp <== NOT EXECUTED
*/
bool rtems_debug_is_enabled(
rtems_debug_control level
)
{
return (_Debug_Level & level) ? true : false;
4a8f0: c0b9 0005 dad6 andl 5dad6 <_Debug_Level>,%d0 <== NOT EXECUTED
4a8f6: 56c0 sne %d0 <== NOT EXECUTED
}
4a8f8: 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 debc moveal 5debc <_Per_CPU_Information+0xc>,%a1
4505a: 2269 010a moveal %a1@(266),%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 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d1
4506c: 5281 addql #1,%d1
4506e: 23c1 0005 da2c movel %d1,5da2c <_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 7522 jsr 47522 <_Thread_Enable_dispatch>
return( _Thread_Executing->Wait.return_code );
4508c: 2079 0005 debc moveal 5debc <_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 7548 jsr 47548 <_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 010a moveal %a1@(266),%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 7522 jsr 47522 <_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
00046ddc <rtems_extension_create>:
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
46ddc: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
46de0: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
46de4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
46de8: 286e 0010 moveal %fp@(16),%a4 <== NOT EXECUTED
Extension_Control *the_extension;
if ( !id )
46dec: 4a8c tstl %a4 <== NOT EXECUTED
46dee: 6770 beqs 46e60 <rtems_extension_create+0x84> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
46df0: 4a82 tstl %d2 <== NOT EXECUTED
46df2: 6770 beqs 46e64 <rtems_extension_create+0x88> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
46df4: 2039 0006 797c movel 6797c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46dfa: 5280 addql #1,%d0 <== NOT EXECUTED
46dfc: 23c0 0006 797c movel %d0,6797c <_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 );
46e02: 4879 0006 7b0a pea 67b0a <_Extension_Information> <== NOT EXECUTED
46e08: 47f9 0004 88ca lea 488ca <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
46e0e: 4eb9 0004 7b98 jsr 47b98 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
46e14: 588f addql #4,%sp <== NOT EXECUTED
46e16: 2440 moveal %d0,%a2 <== NOT EXECUTED
46e18: 4a80 tstl %d0 <== NOT EXECUTED
46e1a: 6606 bnes 46e22 <rtems_extension_create+0x46> <== NOT EXECUTED
_Thread_Enable_dispatch();
46e1c: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
46e1e: 7005 moveq #5,%d0 <== NOT EXECUTED
46e20: 6044 bras 46e66 <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;
46e22: 4878 0020 pea 20 <OPER2+0xc> <== NOT EXECUTED
46e26: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
46e2a: 486a 0024 pea %a2@(36) <== NOT EXECUTED
46e2e: 4eb9 0004 e564 jsr 4e564 <memcpy> <== NOT EXECUTED
_User_extensions_Add_set( extension );
46e34: 486a 0010 pea %a2@(16) <== NOT EXECUTED
46e38: 4eb9 0004 9754 jsr 49754 <_User_extensions_Add_set> <== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
46e3e: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
46e42: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
46e44: 2079 0006 7b22 moveal 67b22 <_Extension_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
46e4a: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
46e4c: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
46e50: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
&_Extension_Information,
&the_extension->Object,
(Objects_Name) name
);
*id = the_extension->Object.id;
46e54: 2880 movel %d0,%a4@ <== NOT EXECUTED
_Thread_Enable_dispatch();
46e56: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46e58: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
46e5c: 4280 clrl %d0 <== NOT EXECUTED
46e5e: 6006 bras 46e66 <rtems_extension_create+0x8a> <== NOT EXECUTED
)
{
Extension_Control *the_extension;
if ( !id )
return RTEMS_INVALID_ADDRESS;
46e60: 7009 moveq #9,%d0 <== NOT EXECUTED
46e62: 6002 bras 46e66 <rtems_extension_create+0x8a> <== NOT EXECUTED
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
46e64: 7003 moveq #3,%d0 <== NOT EXECUTED
);
*id = the_extension->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
46e66: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
46e6c: 4e5e unlk %fp <== NOT EXECUTED
00046c60 <rtems_extension_delete>:
#include <rtems/extension.h>
rtems_status_code rtems_extension_delete(
rtems_id id
)
{
46c60: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46c64: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Extension_Control *)
_Objects_Get( &_Extension_Information, id, location );
46c66: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46c6a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46c6e: 4879 0006 748a pea 6748a <_Extension_Information> <== NOT EXECUTED
46c74: 4eb9 0004 7d84 jsr 47d84 <_Objects_Get> <== NOT EXECUTED
Extension_Control *the_extension;
Objects_Locations location;
the_extension = _Extension_Get( id, &location );
switch ( location ) {
46c7a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46c7e: 2440 moveal %d0,%a2 <== NOT EXECUTED
46c80: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46c84: 6634 bnes 46cba <rtems_extension_delete+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_User_extensions_Remove_set( &the_extension->Extension );
46c86: 486a 0010 pea %a2@(16) <== NOT EXECUTED
46c8a: 4eb9 0004 9420 jsr 49420 <_User_extensions_Remove_set> <== NOT EXECUTED
_Objects_Close( &_Extension_Information, &the_extension->Object );
46c90: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46c92: 4879 0006 748a pea 6748a <_Extension_Information> <== NOT EXECUTED
46c98: 4eb9 0004 79a8 jsr 479a8 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Extension_Free (
Extension_Control *the_extension
)
{
_Objects_Free( &_Extension_Information, &the_extension->Object );
46c9e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46ca0: 4879 0006 748a pea 6748a <_Extension_Information> <== NOT EXECUTED
46ca6: 4eb9 0004 7c20 jsr 47c20 <_Objects_Free> <== NOT EXECUTED
_Extension_Free( the_extension );
_Thread_Enable_dispatch();
46cac: 4eb9 0004 8576 jsr 48576 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46cb2: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
46cb6: 4280 clrl %d0 <== NOT EXECUTED
46cb8: 6002 bras 46cbc <rtems_extension_delete+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
46cba: 7004 moveq #4,%d0 <== NOT EXECUTED
}
46cbc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
46cc0: 4e5e unlk %fp <== NOT EXECUTED
00047668 <rtems_extension_ident>:
rtems_status_code rtems_extension_ident(
rtems_name name,
rtems_id *id
)
{
47668: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
4766c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
47670: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
47676: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4767a: 4879 0006 05da pea 605da <_Extension_Information> <== NOT EXECUTED
47680: 4eb9 0004 8878 jsr 48878 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
47686: 41f9 0005 da32 lea 5da32 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
4768c: 4e5e unlk %fp <== NOT EXECUTED
4768e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
00047730 <rtems_get_version_string>:
#endif
#include <rtems/system.h>
const char *rtems_get_version_string(void)
{
47730: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _RTEMS_version;
}
47734: 203c 0005 ebb0 movel #388016,%d0 <== NOT EXECUTED
4773a: 4e5e unlk %fp <== NOT EXECUTED
...
00045c16 <rtems_initialize_start_multitasking>:
45c16: 7002 moveq #2,%d0
}
void rtems_initialize_start_multitasking(void)
{
45c18: 4e56 0000 linkw %fp,#0
****** APPLICATION RUNS HERE ******
****** RETURNS WHEN SYSTEM IS SHUT DOWN ******
*******************************************************************
*******************************************************************
*******************************************************************/
}
45c1c: 4e5e unlk %fp
45c1e: 23c0 0005 db9a movel %d0,5db9a <_System_state_Current>
void rtems_initialize_start_multitasking(void)
{
_System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING );
_Thread_Start_multitasking();
45c24: 4ef9 0004 7f3c jmp 47f3c <_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 8866 jsr 48866 <_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 f128 tstl 5f128 <_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
...
0004c538 <rtems_io_close>:
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4c538: 4e56 0000 linkw %fp,#0
4c53c: 202e 0008 movel %fp@(8),%d0
4c540: 2f03 movel %d3,%sp@-
4c542: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4c544: b0b9 0005 e2a8 cmpl 5e2a8 <_IO_Number_of_drivers>,%d0
4c54a: 6420 bccs 4c56c <rtems_io_close+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
4c54c: 2600 movel %d0,%d3
4c54e: 2200 movel %d0,%d1
4c550: e78b lsll #3,%d3
4c552: eb89 lsll #5,%d1
4c554: 2279 0005 e2ac moveal 5e2ac <_IO_Driver_address_table>,%a1
4c55a: 9283 subl %d3,%d1
4c55c: 2271 1808 moveal %a1@(00000008,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c560: 4a89 tstl %a1
4c562: 670c beqs 4c570 <rtems_io_close+0x38> <== NEVER TAKEN
}
4c564: 241f movel %sp@+,%d2
4c566: 261f movel %sp@+,%d3
4c568: 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;
4c56a: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4c56c: 700a moveq #10,%d0 <== NOT EXECUTED
4c56e: 6002 bras 4c572 <rtems_io_close+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c570: 4280 clrl %d0 <== NOT EXECUTED
}
4c572: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c574: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c576: 4e5e unlk %fp <== NOT EXECUTED
...
0004c57c <rtems_io_control>:
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4c57c: 4e56 0000 linkw %fp,#0
4c580: 202e 0008 movel %fp@(8),%d0
4c584: 2f03 movel %d3,%sp@-
4c586: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4c588: b0b9 0005 e2a8 cmpl 5e2a8 <_IO_Number_of_drivers>,%d0
4c58e: 6420 bccs 4c5b0 <rtems_io_control+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
4c590: 2600 movel %d0,%d3
4c592: 2200 movel %d0,%d1
4c594: e78b lsll #3,%d3
4c596: eb89 lsll #5,%d1
4c598: 2279 0005 e2ac moveal 5e2ac <_IO_Driver_address_table>,%a1
4c59e: 9283 subl %d3,%d1
4c5a0: 2271 1814 moveal %a1@(00000014,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c5a4: 4a89 tstl %a1
4c5a6: 670c beqs 4c5b4 <rtems_io_control+0x38> <== NEVER TAKEN
}
4c5a8: 241f movel %sp@+,%d2
4c5aa: 261f movel %sp@+,%d3
4c5ac: 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;
4c5ae: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4c5b0: 700a moveq #10,%d0 <== NOT EXECUTED
4c5b2: 6002 bras 4c5b6 <rtems_io_control+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c5b4: 4280 clrl %d0 <== NOT EXECUTED
}
4c5b6: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c5b8: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c5ba: 4e5e unlk %fp <== NOT EXECUTED
...
0004a8fc <rtems_io_initialize>:
rtems_status_code rtems_io_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4a8fc: 4e56 0000 linkw %fp,#0
4a900: 202e 0008 movel %fp@(8),%d0
4a904: 2f03 movel %d3,%sp@-
4a906: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4a908: b0b9 0005 e2a8 cmpl 5e2a8 <_IO_Number_of_drivers>,%d0
4a90e: 6420 bccs 4a930 <rtems_io_initialize+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
4a910: 2600 movel %d0,%d3
4a912: 2400 movel %d0,%d2
4a914: e78b lsll #3,%d3
4a916: 2279 0005 e2ac moveal 5e2ac <_IO_Driver_address_table>,%a1
4a91c: 93c3 subal %d3,%a1
4a91e: eb8a lsll #5,%d2
4a920: 2271 2800 moveal %a1@(00000000,%d2:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4a924: 4a89 tstl %a1
4a926: 670c beqs 4a934 <rtems_io_initialize+0x38>
}
4a928: 241f movel %sp@+,%d2
4a92a: 261f movel %sp@+,%d3
4a92c: 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;
4a92e: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4a930: 700a moveq #10,%d0 <== NOT EXECUTED
4a932: 6002 bras 4a936 <rtems_io_initialize+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4a934: 4280 clrl %d0
}
4a936: 241f movel %sp@+,%d2
4a938: 261f movel %sp@+,%d3
4a93a: 4e5e unlk %fp
...
0004c5c0 <rtems_io_open>:
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4c5c0: 4e56 0000 linkw %fp,#0
4c5c4: 202e 0008 movel %fp@(8),%d0
4c5c8: 2f03 movel %d3,%sp@-
4c5ca: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4c5cc: b0b9 0005 e2a8 cmpl 5e2a8 <_IO_Number_of_drivers>,%d0
4c5d2: 6420 bccs 4c5f4 <rtems_io_open+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
4c5d4: 2600 movel %d0,%d3
4c5d6: 2200 movel %d0,%d1
4c5d8: e78b lsll #3,%d3
4c5da: eb89 lsll #5,%d1
4c5dc: 2279 0005 e2ac moveal 5e2ac <_IO_Driver_address_table>,%a1
4c5e2: 9283 subl %d3,%d1
4c5e4: 2271 1804 moveal %a1@(00000004,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c5e8: 4a89 tstl %a1
4c5ea: 670c beqs 4c5f8 <rtems_io_open+0x38> <== NEVER TAKEN
}
4c5ec: 241f movel %sp@+,%d2
4c5ee: 261f movel %sp@+,%d3
4c5f0: 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;
4c5f2: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4c5f4: 700a moveq #10,%d0 <== NOT EXECUTED
4c5f6: 6002 bras 4c5fa <rtems_io_open+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c5f8: 4280 clrl %d0 <== NOT EXECUTED
}
4c5fa: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c5fc: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c5fe: 4e5e unlk %fp <== NOT EXECUTED
...
0004c604 <rtems_io_read>:
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4c604: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4c608: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4c60c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4c60e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4c610: b0b9 0005 e2a8 cmpl 5e2a8 <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED
4c616: 6420 bccs 4c638 <rtems_io_read+0x34> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
4c618: 2600 movel %d0,%d3 <== NOT EXECUTED
4c61a: 2200 movel %d0,%d1 <== NOT EXECUTED
4c61c: e78b lsll #3,%d3 <== NOT EXECUTED
4c61e: eb89 lsll #5,%d1 <== NOT EXECUTED
4c620: 2279 0005 e2ac moveal 5e2ac <_IO_Driver_address_table>,%a1 <== NOT EXECUTED
4c626: 9283 subl %d3,%d1 <== NOT EXECUTED
4c628: 2271 180c moveal %a1@(0000000c,%d1:l),%a1 <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c62c: 4a89 tstl %a1 <== NOT EXECUTED
4c62e: 670c beqs 4c63c <rtems_io_read+0x38> <== NOT EXECUTED
}
4c630: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c632: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c634: 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;
4c636: 4ed1 jmp %a1@ <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4c638: 700a moveq #10,%d0 <== NOT EXECUTED
4c63a: 6002 bras 4c63e <rtems_io_read+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c63c: 4280 clrl %d0 <== NOT EXECUTED
}
4c63e: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c640: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c642: 4e5e unlk %fp <== NOT EXECUTED
...
00046bf0 <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
)
{
46bf0: 4e56 0000 linkw %fp,#0
46bf4: 206e 000c moveal %fp@(12),%a0
46bf8: 2f0a movel %a2,%sp@-
46bfa: 226e 0010 moveal %fp@(16),%a1
46bfe: 2f02 movel %d2,%sp@-
46c00: 242e 0008 movel %fp@(8),%d2
rtems_device_major_number major_limit = _IO_Number_of_drivers;
46c04: 2039 0006 1950 movel 61950 <_IO_Number_of_drivers>,%d0
if ( rtems_interrupt_is_in_progress() )
46c0a: 4ab9 0006 1560 tstl 61560 <_Per_CPU_Information+0x8>
46c10: 6600 00d8 bnew 46cea <rtems_io_register_driver+0xfa>
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
46c14: 4a89 tstl %a1
46c16: 6700 00d6 beqw 46cee <rtems_io_register_driver+0xfe>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
46c1a: 2280 movel %d0,%a1@
if ( driver_table == NULL )
46c1c: 4a88 tstl %a0
46c1e: 6700 00ce beqw 46cee <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;
46c22: 4a90 tstl %a0@
46c24: 6600 00da bnew 46d00 <rtems_io_register_driver+0x110>
46c28: 4aa8 0004 tstl %a0@(4)
46c2c: 6600 00d2 bnew 46d00 <rtems_io_register_driver+0x110>
46c30: 6000 00bc braw 46cee <rtems_io_register_driver+0xfe> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
46c34: 2039 0006 10d4 movel 610d4 <_Thread_Dispatch_disable_level>,%d0
46c3a: 5280 addql #1,%d0
46c3c: 23c0 0006 10d4 movel %d0,610d4 <_Thread_Dispatch_disable_level>
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
46c42: 4a82 tstl %d2
46c44: 662c bnes 46c72 <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;
46c46: 2039 0006 1950 movel 61950 <_IO_Number_of_drivers>,%d0
46c4c: 2479 0006 1954 moveal 61954 <_IO_Driver_address_table>,%a2
46c52: 6010 bras 46c64 <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;
46c54: 4a92 tstl %a2@
46c56: 6600 00b0 bnew 46d08 <rtems_io_register_driver+0x118>
46c5a: 4aaa 0004 tstl %a2@(4)
46c5e: 6600 00a8 bnew 46d08 <rtems_io_register_driver+0x118>
46c62: 6004 bras 46c68 <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 ) {
46c64: b082 cmpl %d2,%d0
46c66: 62ec bhis 46c54 <rtems_io_register_driver+0x64> <== ALWAYS TAKEN
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
46c68: 2282 movel %d2,%a1@
if ( m != n )
46c6a: b082 cmpl %d2,%d0
46c6c: 6638 bnes 46ca6 <rtems_io_register_driver+0xb6> <== ALWAYS TAKEN
46c6e: 6000 00a2 braw 46d12 <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;
46c72: 2202 movel %d2,%d1 <== NOT EXECUTED
46c74: 2002 movel %d2,%d0 <== NOT EXECUTED
46c76: e789 lsll #3,%d1 <== NOT EXECUTED
46c78: eb88 lsll #5,%d0 <== NOT EXECUTED
46c7a: 2479 0006 1954 moveal 61954 <_IO_Driver_address_table>,%a2 <== NOT EXECUTED
46c80: 9081 subl %d1,%d0 <== NOT EXECUTED
46c82: 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;
46c84: 4a92 tstl %a2@ <== NOT EXECUTED
46c86: 660c bnes 46c94 <rtems_io_register_driver+0xa4> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
}
rtems_status_code rtems_io_register_driver(
46c88: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED
46c8c: 57c0 seq %d0 <== NOT EXECUTED
46c8e: 49c0 extbl %d0 <== NOT EXECUTED
46c90: 4480 negl %d0 <== NOT EXECUTED
46c92: 6002 bras 46c96 <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;
46c94: 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 ) ) {
46c96: 4a00 tstb %d0 <== NOT EXECUTED
46c98: 660a bnes 46ca4 <rtems_io_register_driver+0xb4> <== NOT EXECUTED
_Thread_Enable_dispatch();
46c9a: 4eb9 0004 853e jsr 4853e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
46ca0: 700c moveq #12,%d0 <== NOT EXECUTED
46ca2: 6050 bras 46cf4 <rtems_io_register_driver+0x104> <== NOT EXECUTED
}
*registered_major = major;
46ca4: 2282 movel %d2,%a1@ <== NOT EXECUTED
}
_IO_Driver_address_table [major] = *driver_table;
46ca6: 2202 movel %d2,%d1
46ca8: 2002 movel %d2,%d0
46caa: 4878 0018 pea 18 <OPER2+0x4>
46cae: e789 lsll #3,%d1
46cb0: eb88 lsll #5,%d0
46cb2: 2f08 movel %a0,%sp@-
46cb4: 9081 subl %d1,%d0
46cb6: d0b9 0006 1954 addl 61954 <_IO_Driver_address_table>,%d0
46cbc: 2f00 movel %d0,%sp@-
46cbe: 4eb9 0005 090c jsr 5090c <memcpy>
_Thread_Enable_dispatch();
46cc4: 4eb9 0004 853e jsr 4853e <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
}
46cca: 246e fffc moveal %fp@(-4),%a2
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
46cce: 4fef 000c lea %sp@(12),%sp
46cd2: 2d42 0008 movel %d2,%fp@(8)
}
46cd6: 242e fff8 movel %fp@(-8),%d2
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
46cda: 42ae 0010 clrl %fp@(16)
46cde: 42ae 000c clrl %fp@(12)
}
46ce2: 4e5e unlk %fp
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
46ce4: 4ef9 0004 e07c jmp 4e07c <rtems_io_initialize>
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
46cea: 7012 moveq #18,%d0 <== NOT EXECUTED
46cec: 6006 bras 46cf4 <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;
46cee: 7009 moveq #9,%d0 <== NOT EXECUTED
46cf0: 6002 bras 46cf4 <rtems_io_register_driver+0x104> <== NOT EXECUTED
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
46cf2: 700a moveq #10,%d0 <== NOT EXECUTED
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
46cf4: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46cf8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46cfc: 4e5e unlk %fp <== NOT EXECUTED
46cfe: 4e75 rts <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
46d00: b082 cmpl %d2,%d0
46d02: 6200 ff30 bhiw 46c34 <rtems_io_register_driver+0x44>
46d06: 60ea bras 46cf2 <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 ) {
46d08: 5282 addql #1,%d2
46d0a: 45ea 0018 lea %a2@(24),%a2
46d0e: 6000 ff54 braw 46c64 <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();
46d12: 4eb9 0004 853e jsr 4853e <_Thread_Enable_dispatch> <== NOT EXECUTED
*major = m;
if ( m != n )
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
46d18: 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;
46d1a: 60d8 bras 46cf4 <rtems_io_register_driver+0x104> <== NOT EXECUTED
00046d1c <rtems_io_unregister_driver>:
*/
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
46d1c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46d20: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
46d24: 4ab9 0006 1560 tstl 61560 <_Per_CPU_Information+0x8> <== NOT EXECUTED
46d2a: 6640 bnes 46d6c <rtems_io_unregister_driver+0x50><== NOT EXECUTED
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
46d2c: b0b9 0006 1950 cmpl 61950 <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED
46d32: 643c bccs 46d70 <rtems_io_unregister_driver+0x54><== NOT EXECUTED
46d34: 2239 0006 10d4 movel 610d4 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED
46d3a: 5281 addql #1,%d1 <== NOT EXECUTED
46d3c: 23c1 0006 10d4 movel %d1,610d4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
memset(
&_IO_Driver_address_table[major],
46d42: 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(
46d44: 4878 0018 pea 18 <OPER2+0x4> <== NOT EXECUTED
&_IO_Driver_address_table[major],
46d48: e789 lsll #3,%d1 <== NOT EXECUTED
46d4a: 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(
46d4c: 42a7 clrl %sp@- <== NOT EXECUTED
&_IO_Driver_address_table[major],
46d4e: 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(
46d50: d0b9 0006 1954 addl 61954 <_IO_Driver_address_table>,%d0 <== NOT EXECUTED
46d56: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46d58: 4eb9 0005 097c jsr 5097c <memset> <== NOT EXECUTED
&_IO_Driver_address_table[major],
0,
sizeof( rtems_driver_address_table )
);
_Thread_Enable_dispatch();
46d5e: 4eb9 0004 853e jsr 4853e <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46d64: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46d68: 4280 clrl %d0 <== NOT EXECUTED
46d6a: 6006 bras 46d72 <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;
46d6c: 7012 moveq #18,%d0 <== NOT EXECUTED
46d6e: 6002 bras 46d72 <rtems_io_unregister_driver+0x56><== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
46d70: 700d moveq #13,%d0 <== NOT EXECUTED
}
46d72: 4e5e unlk %fp <== NOT EXECUTED
...
0004c648 <rtems_io_write>:
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
4c648: 4e56 0000 linkw %fp,#0
4c64c: 202e 0008 movel %fp@(8),%d0
4c650: 2f03 movel %d3,%sp@-
4c652: 2f02 movel %d2,%sp@-
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
4c654: b0b9 0005 e2a8 cmpl 5e2a8 <_IO_Number_of_drivers>,%d0
4c65a: 6420 bccs 4c67c <rtems_io_write+0x34> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
4c65c: 2600 movel %d0,%d3
4c65e: 2200 movel %d0,%d1
4c660: e78b lsll #3,%d3
4c662: eb89 lsll #5,%d1
4c664: 2279 0005 e2ac moveal 5e2ac <_IO_Driver_address_table>,%a1
4c66a: 9283 subl %d3,%d1
4c66c: 2271 1810 moveal %a1@(00000010,%d1:l),%a1
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c670: 4a89 tstl %a1
4c672: 670c beqs 4c680 <rtems_io_write+0x38> <== NEVER TAKEN
}
4c674: 241f movel %sp@+,%d2
4c676: 261f movel %sp@+,%d3
4c678: 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;
4c67a: 4ed1 jmp %a1@
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
4c67c: 700a moveq #10,%d0 <== NOT EXECUTED
4c67e: 6002 bras 4c682 <rtems_io_write+0x3a> <== NOT EXECUTED
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
4c680: 4280 clrl %d0 <== NOT EXECUTED
}
4c682: 241f movel %sp@+,%d2 <== NOT EXECUTED
4c684: 261f movel %sp@+,%d3 <== NOT EXECUTED
4c686: 4e5e unlk %fp <== NOT EXECUTED
...
00047b44 <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)
{
47b44: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
47b48: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED
47b4c: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
47b50: 4a8c tstl %a4 <== NOT EXECUTED
47b52: 6738 beqs 47b8c <rtems_iterate_over_all_threads+0x48><== NOT EXECUTED
47b54: 45f9 0006 793c lea 6793c <_Objects_Information_table+0x4>,%a2<== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
47b5a: 205a moveal %a2@+,%a0 <== NOT EXECUTED
47b5c: 2668 0004 moveal %a0@(4),%a3 <== NOT EXECUTED
if ( !information )
47b60: 4a8b tstl %a3 <== NOT EXECUTED
47b62: 6720 beqs 47b84 <rtems_iterate_over_all_threads+0x40><== NOT EXECUTED
47b64: 7401 moveq #1,%d2 <== NOT EXECUTED
47b66: 6012 bras 47b7a <rtems_iterate_over_all_threads+0x36><== NOT EXECUTED
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
47b68: 206b 0018 moveal %a3@(24),%a0 <== NOT EXECUTED
47b6c: 2030 2c00 movel %a0@(00000000,%d2:l:4),%d0 <== NOT EXECUTED
if ( !the_thread )
47b70: 6706 beqs 47b78 <rtems_iterate_over_all_threads+0x34><== NOT EXECUTED
continue;
(*routine)(the_thread);
47b72: 2f00 movel %d0,%sp@- <== NOT EXECUTED
47b74: 4e94 jsr %a4@ <== NOT EXECUTED
47b76: 588f addql #4,%sp <== NOT EXECUTED
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
47b78: 5282 addql #1,%d2 <== NOT EXECUTED
47b7a: 4280 clrl %d0 <== NOT EXECUTED
47b7c: 302b 000e movew %a3@(14),%d0 <== NOT EXECUTED
47b80: b082 cmpl %d2,%d0 <== NOT EXECUTED
47b82: 64e4 bccs 47b68 <rtems_iterate_over_all_threads+0x24><== NOT EXECUTED
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
47b84: b5fc 0006 7948 cmpal #424264,%a2 <== NOT EXECUTED
47b8a: 66ce bnes 47b5a <rtems_iterate_over_all_threads+0x16><== NOT EXECUTED
(*routine)(the_thread);
}
}
}
47b8c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED
47b92: 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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4f8c8: 4eb9 0005 43dc jsr 543dc <_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 2b0c jsr 52b0c <_CORE_message_queue_Broadcast> <== NOT EXECUTED
4f8f0: 2400 movel %d0,%d2 <== NOT EXECUTED
NULL,
#endif
count
);
_Thread_Enable_dispatch();
4f8f2: 4eb9 0005 4c42 jsr 54c42 <_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
...
0004cc6c <rtems_message_queue_create>:
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
4cc6c: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
4cc70: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
4cc74: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4cc78: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED
4cc7c: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
4cc80: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED
4cc84: 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 ) )
4cc88: 4a82 tstl %d2 <== NOT EXECUTED
4cc8a: 6700 009a beqw 4cd26 <rtems_message_queue_create+0xba><== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
4cc8e: 4a8c tstl %a4 <== NOT EXECUTED
4cc90: 6700 0098 beqw 4cd2a <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 )
4cc94: 4a8b tstl %a3 <== NOT EXECUTED
4cc96: 6700 0096 beqw 4cd2e <rtems_message_queue_create+0xc2><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
4cc9a: 4a83 tstl %d3 <== NOT EXECUTED
4cc9c: 6700 0094 beqw 4cd32 <rtems_message_queue_create+0xc6><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4cca0: 2039 0006 66c4 movel 666c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4cca6: 5280 addql #1,%d0 <== NOT EXECUTED
4cca8: 23c0 0006 66c4 movel %d0,666c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
#endif
#endif
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
4ccae: 4eb9 0005 2708 jsr 52708 <_Message_queue_Allocate> <== NOT EXECUTED
4ccb4: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( !the_message_queue ) {
4ccb6: 4a80 tstl %d0 <== NOT EXECUTED
4ccb8: 660a bnes 4ccc4 <rtems_message_queue_create+0x58><== NOT EXECUTED
_Thread_Enable_dispatch();
4ccba: 4eb9 0004 f6a2 jsr 4f6a2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
4ccc0: 7005 moveq #5,%d0 <== NOT EXECUTED
4ccc2: 6070 bras 4cd34 <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;
4ccc4: 204e moveal %fp,%a0 <== NOT EXECUTED
4ccc6: 44c4 movew %d4,%ccr <== NOT EXECUTED
4ccc8: 56c0 sne %d0 <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_message_queue->attribute_set = attribute_set;
4ccca: 2544 0010 movel %d4,%a2@(16) <== NOT EXECUTED
if (_Attributes_Is_priority( attribute_set ) )
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
4ccce: 49c0 extbl %d0 <== NOT EXECUTED
4ccd0: 5280 addql #1,%d0 <== NOT EXECUTED
4ccd2: 2100 movel %d0,%a0@- <== NOT EXECUTED
else
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
if ( ! _CORE_message_queue_Initialize(
4ccd4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4ccd6: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4ccd8: 47f9 0004 f6a2 lea 4f6a2 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
4ccde: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4cce0: 486a 0014 pea %a2@(20) <== NOT EXECUTED
4cce4: 4eb9 0004 de38 jsr 4de38 <_CORE_message_queue_Initialize> <== NOT EXECUTED
4ccea: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4ccee: 4a00 tstb %d0 <== NOT EXECUTED
4ccf0: 6616 bnes 4cd08 <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 );
4ccf2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4ccf4: 4879 0006 6f06 pea 66f06 <_Message_queue_Information> <== NOT EXECUTED
4ccfa: 4eb9 0004 ec50 jsr 4ec50 <_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();
4cd00: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_UNSATISFIED;
4cd02: 508f addql #8,%sp <== NOT EXECUTED
4cd04: 700d moveq #13,%d0 <== NOT EXECUTED
4cd06: 602c bras 4cd34 <rtems_message_queue_create+0xc8><== NOT EXECUTED
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
4cd08: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4cd0c: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4cd0e: 2079 0006 6f1e moveal 66f1e <_Message_queue_Information+0x18>,%a0<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
4cd14: 3200 movew %d0,%d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4cd16: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
4cd1a: 2542 000c movel %d2,%a2@(12) <== NOT EXECUTED
&_Message_queue_Information,
&the_message_queue->Object,
(Objects_Name) name
);
*id = the_message_queue->Object.id;
4cd1e: 2880 movel %d0,%a4@ <== NOT EXECUTED
name,
0
);
#endif
_Thread_Enable_dispatch();
4cd20: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4cd22: 4280 clrl %d0 <== NOT EXECUTED
4cd24: 600e bras 4cd34 <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;
4cd26: 7003 moveq #3,%d0 <== NOT EXECUTED
4cd28: 600a bras 4cd34 <rtems_message_queue_create+0xc8><== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
4cd2a: 7009 moveq #9,%d0 <== NOT EXECUTED
4cd2c: 6006 bras 4cd34 <rtems_message_queue_create+0xc8><== NOT EXECUTED
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
return RTEMS_INVALID_NUMBER;
4cd2e: 700a moveq #10,%d0 <== NOT EXECUTED
4cd30: 6002 bras 4cd34 <rtems_message_queue_create+0xc8><== NOT EXECUTED
if ( max_message_size == 0 )
return RTEMS_INVALID_SIZE;
4cd32: 7008 moveq #8,%d0 <== NOT EXECUTED
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4cd34: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED
4cd3a: 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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4fa00: 4eb9 0005 43dc jsr 543dc <_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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4fa1a: 4eb9 0005 3fc8 jsr 53fc8 <_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 2b7c jsr 52b7c <_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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4fa38: 4eb9 0005 4240 jsr 54240 <_Objects_Free> <== NOT EXECUTED
0, /* Not used */
0
);
}
#endif
_Thread_Enable_dispatch();
4fa3e: 4eb9 0005 4c42 jsr 54c42 <_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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4fa74: 4eb9 0005 43dc jsr 543dc <_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 2bbc jsr 52bbc <_CORE_message_queue_Flush> <== NOT EXECUTED
4fa90: 2480 movel %d0,%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4fa92: 4eb9 0005 4c42 jsr 54c42 <_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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4fac8: 4eb9 0005 43dc jsr 543dc <_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 4c42 jsr 54c42 <_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
...
0004cd40 <rtems_message_queue_ident>:
rtems_status_code rtems_message_queue_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
4cd40: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
4cd44: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4cd48: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
4cd4c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4cd50: 4879 0006 6f06 pea 66f06 <_Message_queue_Information> <== NOT EXECUTED
4cd56: 4eb9 0004 ef40 jsr 4ef40 <_Objects_Name_to_id_u32> <== NOT EXECUTED
node,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
4cd5c: 41f9 0006 3d92 lea 63d92 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
4cd62: 4e5e unlk %fp <== NOT EXECUTED
4cd64: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
...
0004cd6c <rtems_message_queue_receive>:
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
4cd6c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
4cd70: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
4cd74: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4cd78: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
4cd7c: 4a82 tstl %d2 <== NOT EXECUTED
4cd7e: 6762 beqs 4cde2 <rtems_message_queue_receive+0x76><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !size )
4cd80: 4a83 tstl %d3 <== NOT EXECUTED
4cd82: 675e beqs 4cde2 <rtems_message_queue_receive+0x76><== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
4cd84: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4cd88: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4cd8c: 4879 0006 6f06 pea 66f06 <_Message_queue_Information> <== NOT EXECUTED
4cd92: 4eb9 0004 edb4 jsr 4edb4 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4cd98: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4cd9c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4cda0: 6644 bnes 4cde6 <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;
4cda2: 7201 moveq #1,%d1 <== NOT EXECUTED
if ( _Options_Is_no_wait( option_set ) )
wait = false;
else
wait = true;
_CORE_message_queue_Seize(
4cda4: 7801 moveq #1,%d4 <== NOT EXECUTED
4cda6: 2040 moveal %d0,%a0 <== NOT EXECUTED
4cda8: c2ae 0014 andl %fp@(20),%d1 <== NOT EXECUTED
4cdac: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED
4cdb0: b384 eorl %d1,%d4 <== NOT EXECUTED
4cdb2: 2f04 movel %d4,%sp@- <== NOT EXECUTED
4cdb4: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4cdb6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4cdb8: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
4cdbc: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4cdc0: 4eb9 0004 def4 jsr 4def4 <_CORE_message_queue_Seize> <== NOT EXECUTED
buffer,
size,
wait,
timeout
);
_Thread_Enable_dispatch();
4cdc6: 4eb9 0004 f6a2 jsr 4f6a2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _Message_queue_Translate_core_message_queue_return_code(
_Thread_Executing->Wait.return_code
4cdcc: 2079 0006 6b54 moveal 66b54 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
size,
wait,
timeout
);
_Thread_Enable_dispatch();
return _Message_queue_Translate_core_message_queue_return_code(
4cdd2: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED
4cdd6: 4eb9 0004 ce6c jsr 4ce6c <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
4cddc: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
4cde0: 6006 bras 4cde8 <rtems_message_queue_receive+0x7c><== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
4cde2: 7009 moveq #9,%d0 <== NOT EXECUTED
4cde4: 6002 bras 4cde8 <rtems_message_queue_receive+0x7c><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4cde6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4cde8: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4cdee: 4e5e unlk %fp <== NOT EXECUTED
...
0004cdf4 <rtems_message_queue_send>:
rtems_status_code rtems_message_queue_send(
rtems_id id,
const void *buffer,
size_t size
)
{
4cdf4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4cdf8: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4cdfa: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4cdfe: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4ce00: 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 )
4ce04: 6754 beqs 4ce5a <rtems_message_queue_send+0x66> <== NOT EXECUTED
4ce06: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4ce0a: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4ce0c: 4879 0006 6f06 pea 66f06 <_Message_queue_Information> <== NOT EXECUTED
4ce12: 4eb9 0004 edb4 jsr 4edb4 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
4ce18: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4ce1c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4ce20: 663c bnes 4ce5e <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(
4ce22: 42a7 clrl %sp@- <== NOT EXECUTED
4ce24: 2040 moveal %d0,%a0 <== NOT EXECUTED
4ce26: 42a7 clrl %sp@- <== NOT EXECUTED
4ce28: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
4ce2e: 42a7 clrl %sp@- <== NOT EXECUTED
4ce30: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4ce32: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
4ce36: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4ce38: 4868 0014 pea %a0@(20) <== NOT EXECUTED
4ce3c: 4eb9 0004 e030 jsr 4e030 <_CORE_message_queue_Submit> <== NOT EXECUTED
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
4ce42: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
4ce46: 2400 movel %d0,%d2 <== NOT EXECUTED
4ce48: 4eb9 0004 f6a2 jsr 4f6a2 <_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);
4ce4e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4ce50: 4eb9 0004 ce6c jsr 4ce6c <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
4ce56: 588f addql #4,%sp <== NOT EXECUTED
4ce58: 6006 bras 4ce60 <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;
4ce5a: 7009 moveq #9,%d0 <== NOT EXECUTED
4ce5c: 6002 bras 4ce60 <rtems_message_queue_send+0x6c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4ce5e: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4ce60: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
4ce64: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
4ce68: 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 6d6a pea 76d6a <_Message_queue_Information> <== NOT EXECUTED
4fc5a: 4eb9 0005 43dc jsr 543dc <_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 2e2c jsr 52e2c <_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 4c42 jsr 54c42 <_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
00045644 <rtems_object_api_maximum_class>:
#include <rtems/rtems/types.h>
int rtems_object_api_maximum_class(
int api
)
{
45644: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_API_maximum_class(api);
}
45648: 4e5e unlk %fp <== NOT EXECUTED
int rtems_object_api_maximum_class(
int api
)
{
return _Objects_API_maximum_class(api);
4564a: 4ef9 0004 6bc0 jmp 46bc0 <_Objects_API_maximum_class> <== NOT EXECUTED
00045650 <rtems_object_api_minimum_class>:
uint32_t api
)
{
if ( _Objects_Is_api_valid( api ) )
return 1;
return -1;
45650: 7203 moveq #3,%d1 <== NOT EXECUTED
#include <rtems/rtems/types.h>
uint32_t rtems_object_api_minimum_class(
uint32_t api
)
{
45652: 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 )
45656: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
4565a: 5380 subql #1,%d0 <== NOT EXECUTED
if ( _Objects_Is_api_valid( api ) )
return 1;
return -1;
4565c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4565e: 53c0 sls %d0 <== NOT EXECUTED
45660: 49c0 extbl %d0 <== NOT EXECUTED
}
45662: 123c 0001 moveb #1,%d1 <== NOT EXECUTED
45666: 4e5e unlk %fp <== NOT EXECUTED
45668: 8081 orl %d1,%d0 <== NOT EXECUTED
0004566c <rtems_object_get_api_class_name>:
)
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
4566c: 7001 moveq #1,%d0 <== NOT EXECUTED
const char *rtems_object_get_api_class_name(
int the_api,
int the_class
)
{
4566e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45672: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
45676: 2f02 movel %d2,%sp@- <== NOT EXECUTED
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
45678: b081 cmpl %d1,%d0 <== NOT EXECUTED
4567a: 671c beqs 45698 <rtems_object_get_api_class_name+0x2c><== NOT EXECUTED
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
4567c: 7402 moveq #2,%d2 <== NOT EXECUTED
4567e: b481 cmpl %d1,%d2 <== NOT EXECUTED
45680: 671e beqs 456a0 <rtems_object_get_api_class_name+0x34><== NOT EXECUTED
api_assoc = rtems_object_api_classic_assoc;
#ifdef RTEMS_POSIX_API
else if ( the_api == OBJECTS_POSIX_API )
45682: 143c 0003 moveb #3,%d2 <== NOT EXECUTED
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
45686: 203c 0005 ba9a movel #375450,%d0 <== NOT EXECUTED
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
api_assoc = rtems_object_api_classic_assoc;
#ifdef RTEMS_POSIX_API
else if ( the_api == OBJECTS_POSIX_API )
4568c: b481 cmpl %d1,%d2 <== NOT EXECUTED
4568e: 6632 bnes 456c2 <rtems_object_get_api_class_name+0x56><== NOT EXECUTED
api_assoc = rtems_object_api_posix_assoc;
45690: 203c 0005 ccf4 movel #380148,%d0 <== NOT EXECUTED
45696: 600e bras 456a6 <rtems_object_get_api_class_name+0x3a><== 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;
45698: 203c 0005 cc64 movel #380004,%d0 <== NOT EXECUTED
4569e: 6006 bras 456a6 <rtems_object_get_api_class_name+0x3a><== NOT EXECUTED
else if ( the_api == OBJECTS_CLASSIC_API )
api_assoc = rtems_object_api_classic_assoc;
456a0: 203c 0005 cc7c movel #380028,%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 );
456a6: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
456aa: 2f00 movel %d0,%sp@- <== NOT EXECUTED
456ac: 4eb9 0004 9a2c jsr 49a2c <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( class_assoc )
456b2: 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 );
456b4: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( class_assoc )
return class_assoc->name;
return "BAD CLASS";
456b6: 203c 0005 baa2 movel #375458,%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 )
456bc: 4a88 tstl %a0 <== NOT EXECUTED
456be: 6702 beqs 456c2 <rtems_object_get_api_class_name+0x56><== NOT EXECUTED
return class_assoc->name;
456c0: 2010 movel %a0@,%d0 <== NOT EXECUTED
return "BAD CLASS";
}
456c2: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
456c6: 4e5e unlk %fp <== NOT EXECUTED
...
000456cc <rtems_object_get_api_name>:
};
const char *rtems_object_get_api_name(
int api
)
{
456cc: 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 );
456d0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
456d4: 4879 0005 cd84 pea 5cd84 <rtems_objects_api_assoc> <== NOT EXECUTED
456da: 4eb9 0004 9a2c jsr 49a2c <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( api_assoc )
456e0: 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 );
456e2: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( api_assoc )
return api_assoc->name;
return "BAD CLASS";
456e4: 203c 0005 baa2 movel #375458,%d0 <== NOT EXECUTED
)
{
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
if ( api_assoc )
456ea: 4a88 tstl %a0 <== NOT EXECUTED
456ec: 6702 beqs 456f0 <rtems_object_get_api_name+0x24> <== NOT EXECUTED
return api_assoc->name;
456ee: 2010 movel %a0@,%d0 <== NOT EXECUTED
return "BAD CLASS";
}
456f0: 4e5e unlk %fp <== NOT EXECUTED
00046cb0 <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
)
{
46cb0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46cb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46cb6: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED
46cba: 2f02 movel %d2,%sp@- <== NOT EXECUTED
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
46cbc: 4a8a tstl %a2 <== NOT EXECUTED
46cbe: 6752 beqs 46d12 <rtems_object_get_class_information+0x62><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
46cc0: 3f2e 000e movew %fp@(14),%sp@- <== NOT EXECUTED
46cc4: 4267 clrw %sp@- <== NOT EXECUTED
46cc6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46cca: 4eb9 0004 86c4 jsr 486c4 <_Objects_Get_information> <== NOT EXECUTED
if ( !obj_info )
46cd0: 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 );
46cd2: 2040 moveal %d0,%a0 <== NOT EXECUTED
if ( !obj_info )
46cd4: 4a80 tstl %d0 <== NOT EXECUTED
46cd6: 673e beqs 46d16 <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;
46cd8: 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;
46cdc: 4282 clrl %d2 <== NOT EXECUTED
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
46cde: 7001 moveq #1,%d0 <== NOT EXECUTED
46ce0: 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;
46ce2: 2568 000a 0004 movel %a0@(10),%a2@(4) <== NOT EXECUTED
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
46ce8: 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;
46cec: 1568 0010 000c moveb %a0@(16),%a2@(12) <== NOT EXECUTED
info->maximum = obj_info->maximum;
46cf2: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
46cf6: 600e bras 46d06 <rtems_object_get_class_information+0x56><== NOT EXECUTED
if ( !obj_info->local_table[i] )
46cf8: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED
46cfc: 4ab1 0c00 tstl %a1@(00000000,%d0:l:4) <== NOT EXECUTED
46d00: 6602 bnes 46d04 <rtems_object_get_class_information+0x54><== NOT EXECUTED
unallocated++;
46d02: 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++ )
46d04: 5280 addql #1,%d0 <== NOT EXECUTED
46d06: b480 cmpl %d0,%d2 <== NOT EXECUTED
46d08: 64ee bccs 46cf8 <rtems_object_get_class_information+0x48><== NOT EXECUTED
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
46d0a: 2541 000e movel %d1,%a2@(14) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46d0e: 4280 clrl %d0 <== NOT EXECUTED
46d10: 6006 bras 46d18 <rtems_object_get_class_information+0x68><== NOT EXECUTED
/*
* Validate parameters and look up information structure.
*/
if ( !info )
return RTEMS_INVALID_ADDRESS;
46d12: 7009 moveq #9,%d0 <== NOT EXECUTED
46d14: 6002 bras 46d18 <rtems_object_get_class_information+0x68><== NOT EXECUTED
obj_info = _Objects_Get_information( the_api, the_class );
if ( !obj_info )
return RTEMS_INVALID_NUMBER;
46d16: 700a moveq #10,%d0 <== NOT EXECUTED
unallocated++;
info->unallocated = unallocated;
return RTEMS_SUCCESSFUL;
}
46d18: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
46d1c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
46d20: 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 7be8 jsr 47be8 <_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 c728 lea 5c728 <_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
000463fc <rtems_object_get_name>:
char *rtems_object_get_name(
Objects_Id id,
size_t length,
char *name
)
{
463fc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_name_as_string( id, length, name );
}
46400: 4e5e unlk %fp <== NOT EXECUTED
Objects_Id id,
size_t length,
char *name
)
{
return _Objects_Get_name_as_string( id, length, name );
46402: 4ef9 0004 7ff0 jmp 47ff0 <_Objects_Get_name_as_string> <== NOT EXECUTED
00046d30 <rtems_object_id_api_maximum>:
#undef rtems_object_id_api_maximum
int rtems_object_id_api_maximum(void)
{
return OBJECTS_APIS_LAST;
}
46d30: 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)
{
46d32: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return OBJECTS_APIS_LAST;
}
46d36: 4e5e unlk %fp <== NOT EXECUTED
...
00046d3c <rtems_object_id_api_minimum>:
#undef rtems_object_id_api_minimum
int rtems_object_id_api_minimum(void)
{
return OBJECTS_INTERNAL_API;
}
46d3c: 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)
{
46d3e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return OBJECTS_INTERNAL_API;
}
46d42: 4e5e unlk %fp <== NOT EXECUTED
...
00046d48 <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);
46d48: 4280 clrl %d0 <== NOT EXECUTED
int rtems_object_id_get_api(
rtems_id id
)
{
return _Objects_Get_API( id );
}
46d4a: 7207 moveq #7,%d1 <== NOT EXECUTED
#undef rtems_object_id_get_api
int rtems_object_id_get_api(
rtems_id id
)
{
46d4c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
46d50: 102e 0008 moveb %fp@(8),%d0 <== NOT EXECUTED
return _Objects_Get_API( id );
}
46d54: 4e5e unlk %fp <== NOT EXECUTED
46d56: c081 andl %d1,%d0 <== NOT EXECUTED
...
00046d5c <rtems_object_id_get_class>:
int rtems_object_id_get_class(
rtems_id id
)
{
return _Objects_Get_class( id );
}
46d5c: 721b moveq #27,%d1 <== NOT EXECUTED
#undef rtems_object_id_get_class
int rtems_object_id_get_class(
rtems_id id
)
{
46d5e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_class( id );
}
46d62: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
46d66: 4e5e unlk %fp <== NOT EXECUTED
46d68: e2a8 lsrl %d1,%d0 <== NOT EXECUTED
00046d6c <rtems_object_id_get_index>:
int rtems_object_id_get_index(
rtems_id id
)
{
return _Objects_Get_index( id );
}
46d6c: 4280 clrl %d0 <== NOT EXECUTED
#undef rtems_object_id_get_index
int rtems_object_id_get_index(
rtems_id id
)
{
46d6e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_index( id );
}
46d72: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED
46d76: 4e5e unlk %fp <== NOT EXECUTED
...
00046d7c <rtems_object_id_get_node>:
int rtems_object_id_get_node(
rtems_id id
)
{
return _Objects_Get_node( id );
}
46d7c: 4280 clrl %d0 <== NOT EXECUTED
#undef rtems_object_id_get_node
int rtems_object_id_get_node(
rtems_id id
)
{
46d7e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Objects_Get_node( id );
}
46d82: 102e 0009 moveb %fp@(9),%d0 <== NOT EXECUTED
46d86: 4e5e unlk %fp <== NOT EXECUTED
...
00045700 <rtems_object_set_name>:
*/
rtems_status_code rtems_object_set_name(
rtems_id id,
const char *name
)
{
45700: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
45704: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED
45708: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
4570c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
45710: 674e beqs 45760 <rtems_object_set_name+0x60> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
45712: 4a83 tstl %d3 <== NOT EXECUTED
45714: 660a bnes 45720 <rtems_object_set_name+0x20> <== NOT EXECUTED
45716: 2079 0005 e954 moveal 5e954 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
4571c: 2628 0008 movel %a0@(8),%d3 <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
45720: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45722: 4eb9 0004 6ee0 jsr 46ee0 <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
45728: 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 );
4572a: 2400 movel %d0,%d2 <== NOT EXECUTED
if ( !information )
4572c: 6736 beqs 45764 <rtems_object_set_name+0x64> <== NOT EXECUTED
return RTEMS_INVALID_ID;
the_object = _Objects_Get( information, tmpId, &location );
4572e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45732: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45734: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45736: 4eb9 0004 70a8 jsr 470a8 <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
4573c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45740: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45744: 661e bnes 45764 <rtems_object_set_name+0x64> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
45746: 2f04 movel %d4,%sp@- <== NOT EXECUTED
45748: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4574a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4574c: 4eb9 0004 7234 jsr 47234 <_Objects_Set_name> <== NOT EXECUTED
_Thread_Enable_dispatch();
45752: 4eb9 0004 796a jsr 4796a <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45758: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4575c: 4280 clrl %d0 <== NOT EXECUTED
4575e: 6006 bras 45766 <rtems_object_set_name+0x66> <== NOT EXECUTED
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
return RTEMS_INVALID_ADDRESS;
45760: 7009 moveq #9,%d0 <== NOT EXECUTED
45762: 6002 bras 45766 <rtems_object_set_name+0x66> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
45764: 7004 moveq #4,%d0 <== NOT EXECUTED
}
45766: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED
4576c: 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 6520 movel 76520 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4fd0c: 5280 addql #1,%d0 <== NOT EXECUTED
4fd0e: 23c0 0007 6520 movel %d0,76520 <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4fd1a: 49f9 0005 4c42 lea 54c42 <_Thread_Enable_dispatch>,%a4 <== NOT EXECUTED
4fd20: 4eb9 0005 3f4c jsr 53f4c <_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 2acc jsr 52acc <_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 63ca moveal 763ca <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4fdaa: 4eb9 0005 43dc jsr 543dc <_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 4c42 lea 54c42 <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4fdd0: 4eb9 0005 3fc8 jsr 53fc8 <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4fdde: 4eb9 0005 4240 jsr 54240 <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4fe22: 4eb9 0005 43dc jsr 543dc <_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 2a98 jsr 52a98 <_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 4c42 lea 54c42 <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4fe82: 4eb9 0005 4568 jsr 54568 <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
}
4fe88: 41f9 0006 f908 lea 6f908 <_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 63b2 pea 763b2 <_Partition_Information> <== NOT EXECUTED
4feae: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
4feb2: 4eb9 0005 43dc jsr 543dc <_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 2a38 jsr 52a38 <_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 4c42 jsr 54c42 <_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 4c42 jsr 54c42 <_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 6520 movel 76520 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4f368: 5280 addql #1,%d0 <== NOT EXECUTED
4f36a: 23c0 0007 6520 movel %d0,76520 <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f376: 4eb9 0005 3f4c jsr 53f4c <_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 4c42 lea 54c42 <_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 6390 moveal 76390 <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f3e4: 4eb9 0005 43dc jsr 543dc <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f3fe: 4eb9 0005 3fc8 jsr 53fc8 <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f40c: 4eb9 0005 4240 jsr 54240 <_Objects_Free> <== NOT EXECUTED
_Dual_ported_memory_Free( the_port );
_Thread_Enable_dispatch();
4f412: 4eb9 0005 4c42 jsr 54c42 <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f44e: 4eb9 0005 43dc jsr 543dc <_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 4c42 jsr 54c42 <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f4a8: 4eb9 0005 4568 jsr 54568 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_ALL_NODES,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
4f4ae: 41f9 0006 f908 lea 6f908 <_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 6378 pea 76378 <_Dual_ported_memory_Information> <== NOT EXECUTED
4f4de: 4eb9 0005 43dc jsr 543dc <_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 4c42 jsr 54c42 <_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 63ec pea 763ec <_Rate_monotonic_Information> <== NOT EXECUTED
4ff32: 4eb9 0005 43dc jsr 543dc <_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 69b8 movel 769b8 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED
4ff4a: 47f9 0005 4c42 lea 54c42 <_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 5fb4 jsr 55fb4 <_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 f6b8 movel 5f6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46054: 5280 addql #1,%d0 <== NOT EXECUTED
46056: 23c0 0005 f6b8 movel %d0,5f6b8 <_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 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
46062: 47f9 0004 8b52 lea 48b52 <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
46068: 4eb9 0004 7dac jsr 47dac <_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 fb48 lea 5fb48 <_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 e8ac jsr 4e8ac <memset> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
460aa: 2079 0005 f5d4 moveal 5f5d4 <_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 63ec pea 763ec <_Rate_monotonic_Information> <== NOT EXECUTED
50054: 4eb9 0005 43dc jsr 543dc <_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 63ec pea 763ec <_Rate_monotonic_Information> <== NOT EXECUTED
5006e: 4eb9 0005 3fc8 jsr 53fc8 <_Objects_Close> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_period->Timer );
50074: 486a 0010 pea %a2@(16) <== NOT EXECUTED
50078: 4eb9 0005 5fb4 jsr 55fb4 <_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 63ec pea 763ec <_Rate_monotonic_Information> <== NOT EXECUTED
5008a: 4eb9 0005 4240 jsr 54240 <_Objects_Free> <== NOT EXECUTED
_Rate_monotonic_Free( the_period );
_Thread_Enable_dispatch();
50090: 4eb9 0005 4c42 jsr 54c42 <_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
0004bcf0 <rtems_rate_monotonic_get_statistics>:
rtems_status_code rtems_rate_monotonic_get_statistics(
rtems_id id,
rtems_rate_monotonic_period_statistics *statistics
)
{
4bcf0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
4bcf4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4bcf6: 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 )
4bcfa: 4a8a tstl %a2 <== NOT EXECUTED
4bcfc: 6700 0096 beqw 4bd94 <rtems_rate_monotonic_get_statistics+0xa4><== NOT EXECUTED
4bd00: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4bd04: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4bd08: 4879 0005 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
4bd0e: 4eb9 0004 82ec jsr 482ec <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
4bd14: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4bd18: 2040 moveal %d0,%a0 <== NOT EXECUTED
4bd1a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4bd1e: 6678 bnes 4bd98 <rtems_rate_monotonic_get_statistics+0xa8><== NOT EXECUTED
case OBJECTS_LOCAL:
dst = statistics;
src = &the_period->Statistics;
dst->count = src->count;
4bd20: 24a8 0054 movel %a0@(84),%a2@ <== NOT EXECUTED
dst->missed_count = src->missed_count;
4bd24: 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 );
4bd2a: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED
4bd2e: 2228 0060 movel %a0@(96),%d1 <== NOT EXECUTED
4bd32: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED
4bd36: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED
_Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time );
4bd3a: 2028 0064 movel %a0@(100),%d0 <== NOT EXECUTED
4bd3e: 2228 0068 movel %a0@(104),%d1 <== NOT EXECUTED
4bd42: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
4bd46: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED
_Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time );
4bd4a: 2028 006c movel %a0@(108),%d0 <== NOT EXECUTED
4bd4e: 2228 0070 movel %a0@(112),%d1 <== NOT EXECUTED
4bd52: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED
4bd56: 2541 001c movel %d1,%a2@(28) <== NOT EXECUTED
_Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time );
4bd5a: 2028 0074 movel %a0@(116),%d0 <== NOT EXECUTED
4bd5e: 2228 0078 movel %a0@(120),%d1 <== NOT EXECUTED
4bd62: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED
4bd66: 2541 0024 movel %d1,%a2@(36) <== NOT EXECUTED
_Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time );
4bd6a: 2028 007c movel %a0@(124),%d0 <== NOT EXECUTED
4bd6e: 2228 0080 movel %a0@(128),%d1 <== NOT EXECUTED
4bd72: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED
4bd76: 2541 002c movel %d1,%a2@(44) <== NOT EXECUTED
_Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time );
4bd7a: 2028 0084 movel %a0@(132),%d0 <== NOT EXECUTED
4bd7e: 2228 0088 movel %a0@(136),%d1 <== NOT EXECUTED
4bd82: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED
4bd86: 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();
4bd8a: 4eb9 0004 8b52 jsr 48b52 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4bd90: 4280 clrl %d0 <== NOT EXECUTED
4bd92: 6006 bras 4bd9a <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;
4bd94: 7009 moveq #9,%d0 <== NOT EXECUTED
4bd96: 6002 bras 4bd9a <rtems_rate_monotonic_get_statistics+0xaa><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4bd98: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4bd9a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4bd9e: 4e5e unlk %fp <== NOT EXECUTED
...
0004bda4 <rtems_rate_monotonic_get_status>:
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
4bda4: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
4bda8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4bdaa: 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 )
4bdae: 4a8a tstl %a2 <== NOT EXECUTED
4bdb0: 6700 0092 beqw 4be44 <rtems_rate_monotonic_get_status+0xa0><== NOT EXECUTED
4bdb4: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4bdb8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4bdbc: 4879 0005 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
4bdc2: 4eb9 0004 82ec jsr 482ec <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
4bdc8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4bdcc: 2040 moveal %d0,%a0 <== NOT EXECUTED
4bdce: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4bdd2: 6674 bnes 4be48 <rtems_rate_monotonic_get_status+0xa4><== NOT EXECUTED
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
4bdd4: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED
4bdd8: 24a9 0008 movel %a1@(8),%a2@ <== NOT EXECUTED
status->state = the_period->state;
4bddc: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED
4bde0: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
4bde4: 6612 bnes 4bdf8 <rtems_rate_monotonic_get_status+0x54><== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timespec_Set_to_zero( &status->since_last_period );
4bde6: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED
4bdea: 42aa 000c clrl %a2@(12) <== NOT EXECUTED
_Timespec_Set_to_zero( &status->executed_since_last_period );
4bdee: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED
4bdf2: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED
4bdf6: 6042 bras 4be3a <rtems_rate_monotonic_get_status+0x96><== NOT EXECUTED
} else {
/*
* Grab the current status.
*/
valid_status =
4bdf8: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
4bdfc: 486e ffec pea %fp@(-20) <== NOT EXECUTED
4be00: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4be02: 4eb9 0004 6120 jsr 46120 <_Rate_monotonic_Get_status> <== NOT EXECUTED
_Rate_monotonic_Get_status(
the_period, &since_last_period, &executed
);
if (!valid_status) {
4be08: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4be0c: 4a00 tstb %d0 <== NOT EXECUTED
4be0e: 660a bnes 4be1a <rtems_rate_monotonic_get_status+0x76><== NOT EXECUTED
_Thread_Enable_dispatch();
4be10: 4eb9 0004 8b52 jsr 48b52 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
4be16: 700b moveq #11,%d0 <== NOT EXECUTED
4be18: 6030 bras 4be4a <rtems_rate_monotonic_get_status+0xa6><== NOT EXECUTED
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec(
4be1a: 202e ffec movel %fp@(-20),%d0 <== NOT EXECUTED
4be1e: 222e fff0 movel %fp@(-16),%d1 <== NOT EXECUTED
4be22: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED
4be26: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED
&since_last_period, &status->since_last_period
);
_Timestamp_To_timespec(
4be2a: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED
4be2e: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED
4be32: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED
4be36: 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();
4be3a: 4eb9 0004 8b52 jsr 48b52 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4be40: 4280 clrl %d0 <== NOT EXECUTED
4be42: 6006 bras 4be4a <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;
4be44: 7009 moveq #9,%d0 <== NOT EXECUTED
4be46: 6002 bras 4be4a <rtems_rate_monotonic_get_status+0xa6><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4be48: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4be4a: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED
4be4e: 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 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
4610c: 4eb9 0004 8478 jsr 48478 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
46112: 41f9 0005 ce2e lea 5ce2e <_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 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
46342: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
46346: 4eb9 0004 82ec jsr 482ec <_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 fb48 movel 5fb48 <_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 8b52 jsr 48b52 <_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 cc4e lea 5cc4e <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 8b52 jsr 48b52 <_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 f77a pea 5f77a <_Watchdog_Ticks_chain> <== NOT EXECUTED
463e2: 4eb9 0004 9bbc jsr 49bbc <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
463e8: 4eb9 0004 8b52 jsr 48b52 <_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 fb48 moveal 5fb48 <_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 938c jsr 4938c <_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 fb48 movel 5fb48 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
46452: 4eb9 0004 87ac jsr 487ac <_Thread_Clear_state> <== NOT EXECUTED
46458: 508f addql #8,%sp <== NOT EXECUTED
_Thread_Enable_dispatch();
4645a: 4eb9 0004 8b52 jsr 48b52 <_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 f77a pea 5f77a <_Watchdog_Ticks_chain> <== NOT EXECUTED
4648e: 4eb9 0004 9bbc jsr 49bbc <_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 8b52 jsr 48b52 <_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 b368 pea 4b368 <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 cc62 pea 5cc62 <CSWTCH.2+0x14> <== NOT EXECUTED
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
if ( status != RTEMS_SUCCESSFUL )
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
464cc: 2e0e movel %fp,%d7 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#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
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
if ( status != RTEMS_SUCCESSFUL )
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
464d2: 0687 ffff ffda addil #-38,%d7 <== NOT EXECUTED
464d8: 4bf9 0004 bda4 lea 4bda4 <rtems_rate_monotonic_get_status>,%a5<== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#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 9818 lea 49818 <_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 cc80 pea 5cc80 <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 cca2 pea 5cca2 <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 ccc5 pea 5ccc5 <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 cd10 movel #380176,%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 f5c2 movel 5f5c2 <_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 bcf0 jsr 4bcf0 <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
continue;
/* If the above passed, so should this but check it anyway */
status = 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
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#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 cd5c pea 5cd5c <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 cb86 pea 5cb86 <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 cd73 pea 5cd73 <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 cd92 pea 5cd92 <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 f5c6 cmpl 5f5c6 <_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 f6b8 movel 5f6b8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
4664e: 5280 addql #1,%d0 <== NOT EXECUTED
46650: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46652: 23c0 0005 f6b8 movel %d0,5f6b8 <_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 f5c2 movel 5f5c2 <_Rate_monotonic_Information+0x6>,%d2<== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = 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++ ) {
status = 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
status = 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 f5c6 cmpl 5f5c6 <_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 8b52 jmp 48b52 <_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 f5bc pea 5f5bc <_Rate_monotonic_Information> <== NOT EXECUTED
4669c: 4eb9 0004 82ec jsr 482ec <_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 e8ac jsr 4e8ac <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 8b52 jsr 48b52 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
506c4: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
506d0: 4eb9 0005 3f4c jsr 53f4c <_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 3b58 jsr 53b58 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
_Region_Free( the_region );
return_status = RTEMS_INVALID_SIZE;
50700: 7408 moveq #8,%d2 <== NOT EXECUTED
50702: 4eb9 0005 4240 jsr 54240 <_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 5304 jsr 55304 <_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 643e moveal 7643e <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50764: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5078e: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
507a2: 4eb9 0005 43a4 jsr 543a4 <_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 6426 pea 76426 <_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 3fc8 jsr 53fc8 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
507d2: 4eb9 0005 4240 jsr 54240 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
507ea: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50814: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
50828: 4eb9 0005 43a4 jsr 543a4 <_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 3618 jsr 53618 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50872: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
508a0: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
508b4: 4eb9 0005 43a4 jsr 543a4 <_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 3978 jsr 53978 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
508ee: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5091a: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
5092e: 4eb9 0005 43a4 jsr 543a4 <_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 39bc jsr 539bc <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
5095a: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50998: 4eb9 0005 29a4 jsr 529a4 <_API_Mutex_Lock> <== NOT EXECUTED
5099e: 486e fffc pea %fp@(-4) <== NOT EXECUTED
509a2: 2f03 movel %d3,%sp@- <== NOT EXECUTED
509a4: 4879 0007 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
executing = _Thread_Executing;
509aa: 2679 0007 69b8 moveal 769b8 <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED
509b0: 4eb9 0005 43a4 jsr 543a4 <_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 347c jsr 5347c <_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 6520 movel 76520 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
509fe: 5280 addql #1,%d0 <== NOT EXECUTED
50a00: 23c0 0007 6520 movel %d0,76520 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50a0c: 4eb9 0005 2a04 jsr 52a04 <_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 53d4 pea 553d4 <_Thread_queue_Timeout> <== NOT EXECUTED
50a36: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED
50a3a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
50a3c: 4eb9 0005 50c4 jsr 550c4 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
50a42: 4eb9 0005 4c42 jsr 54c42 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50a62: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50a9c: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
50ab0: 4eb9 0005 43a4 jsr 543a4 <_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 3e20 jsr 53e20 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50af0: 4eb9 0005 2a04 jsr 52a04 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
50b24: 4eb9 0005 4568 jsr 54568 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
50b2a: 41f9 0006 f908 lea 6f908 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50b50: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
50b64: 4eb9 0005 43a4 jsr 543a4 <_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 3d48 jsr 53d48 <_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 8028 jsr 58028 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50bb0: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50bca: 4eb9 0005 2a04 jsr 52a04 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50bf0: 4eb9 0005 29a4 jsr 529a4 <_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 6426 pea 76426 <_Region_Information> <== NOT EXECUTED
50c04: 4eb9 0005 43a4 jsr 543a4 <_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 380c jsr 5380c <_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 8028 jsr 58028 <_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 65c2 movel 765c2 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
50c4c: 4eb9 0005 2a04 jsr 52a04 <_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 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0
4541e: 5280 addql #1,%d0
45420: 23c0 0005 da2c movel %d0,5da2c <_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 d96c pea 5d96c <_Semaphore_Information>
4542c: 4eb9 0004 6864 jsr 46864 <_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 7522 jsr 47522 <_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 62e8 jsr 462e8 <_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 6048 jsr 46048 <_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 d96c pea 5d96c <_Semaphore_Information> <== NOT EXECUTED
4550e: 4eb9 0004 6b58 jsr 46b58 <_Objects_Free> <== NOT EXECUTED
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
45514: 4eb9 0004 7522 jsr 47522 <_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 d984 moveal 5d984 <_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 7522 jsr 47522 <_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 d96c pea 5d96c <_Semaphore_Information>
45570: 4eb9 0004 6cbc jsr 46cbc <_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 7522 jsr 47522 <_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 603c jsr 4603c <_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 62dc jsr 462dc <_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 d96c pea 5d96c <_Semaphore_Information>
455cc: 4eb9 0004 68e0 jsr 468e0 <_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 d96c pea 5d96c <_Semaphore_Information>
455da: 4eb9 0004 6b58 jsr 46b58 <_Objects_Free>
0, /* Not used */
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
455e0: 4eb9 0004 7522 jsr 47522 <_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
0004dc2c <rtems_semaphore_flush>:
#endif
rtems_status_code rtems_semaphore_flush(
rtems_id id
)
{
4dc2c: 4e56 fffc linkw %fp,#-4
4dc30: 486e fffc pea %fp@(-4)
4dc34: 2f2e 0008 movel %fp@(8),%sp@-
4dc38: 4879 0006 1014 pea 61014 <_Semaphore_Information>
4dc3e: 4eb9 0004 7cc4 jsr 47cc4 <_Objects_Get>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
4dc44: 4fef 000c lea %sp@(12),%sp
4dc48: 4aae fffc tstl %fp@(-4)
4dc4c: 663c bnes 4dc8a <rtems_semaphore_flush+0x5e> <== NEVER TAKEN
4dc4e: 2040 moveal %d0,%a0
4dc50: 7230 moveq #48,%d1
4dc52: 0680 0000 0014 addil #20,%d0
4dc58: c2a8 0010 andl %a0@(16),%d1
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
4dc5c: 6710 beqs 4dc6e <rtems_semaphore_flush+0x42> <== NEVER TAKEN
_CORE_mutex_Flush(
4dc5e: 4878 0001 pea 1 <ADD>
4dc62: 42a7 clrl %sp@-
4dc64: 2f00 movel %d0,%sp@-
4dc66: 4eb9 0004 7044 jsr 47044 <_CORE_mutex_Flush>
4dc6c: 600e bras 4dc7c <rtems_semaphore_flush+0x50>
&the_semaphore->Core_control.mutex,
SEND_OBJECT_WAS_DELETED,
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT
);
} else {
_CORE_semaphore_Flush(
4dc6e: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4dc72: 42a7 clrl %sp@- <== NOT EXECUTED
4dc74: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4dc76: 4eb9 0004 72e4 jsr 472e4 <_CORE_semaphore_Flush> <== NOT EXECUTED
4dc7c: 4fef 000c lea %sp@(12),%sp
&the_semaphore->Core_control.semaphore,
SEND_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT
);
}
_Thread_Enable_dispatch();
4dc80: 4eb9 0004 853e jsr 4853e <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
4dc86: 4280 clrl %d0
4dc88: 6002 bras 4dc8c <rtems_semaphore_flush+0x60>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4dc8a: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4dc8c: 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 6460 pea 76460 <_Semaphore_Information> <== NOT EXECUTED
50f12: 4eb9 0005 4568 jsr 54568 <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
}
50f18: 41f9 0006 f908 lea 6f908 <_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 d96c pea 5d96c <_Semaphore_Information>
45614: 282e 000c movel %fp@(12),%d4
45618: 262e 0010 movel %fp@(16),%d3
4561c: 4eb9 0004 6c64 jsr 46c64 <_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 6154 jsr 46154 <_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 debc moveal 5debc <_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 debc moveal 5debc <_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 da2c movel 5da2c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
456a4: 5280 addql #1,%d0 <== NOT EXECUTED
456a6: 23c0 0005 da2c movel %d0,5da2c <_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 7cb4 pea 47cb4 <_Thread_queue_Timeout> <== NOT EXECUTED
456ca: 2f03 movel %d3,%sp@- <== NOT EXECUTED
456cc: 2f08 movel %a0,%sp@- <== NOT EXECUTED
456ce: 4eb9 0004 79a4 jsr 479a4 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
456d4: 4eb9 0004 7522 jsr 47522 <_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 debc moveal 5debc <_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 d96c pea 5d96c <_Semaphore_Information>
45718: 4eb9 0004 6cbc jsr 46cbc <_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 7522 lea 47522 <_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 61f8 jsr 461f8 <_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 6330 jsr 46330 <_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 <== NOT EXECUTED
}
45778: 242e fff4 movel %fp@(-12),%d2
4577c: 246e fff8 moveal %fp@(-8),%a2
45780: 4e5e unlk %fp <== NOT EXECUTED
00045c2c <rtems_shutdown_executive>:
void rtems_shutdown_executive(
uint32_t result
)
{
if ( _System_state_Is_up( _System_state_Get() ) ) {
45c2c: 7003 moveq #3,%d0
*/
void rtems_shutdown_executive(
uint32_t result
)
{
45c2e: 4e56 0000 linkw %fp,#0
if ( _System_state_Is_up( _System_state_Get() ) ) {
45c32: b0b9 0005 db9a cmpl 5db9a <_System_state_Current>,%d0
45c38: 6618 bnes 45c52 <rtems_shutdown_executive+0x26>
45c3a: 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 );
45c3e: 4879 0005 d9f8 pea 5d9f8 <_Thread_BSP_context>
45c44: 23c0 0005 db9a movel %d0,5db9a <_System_state_Current>
45c4a: 4eb9 0004 878e jsr 4878e <_CPU_Context_Restart_self>
45c50: 588f addql #4,%sp <== NOT EXECUTED
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking();
}
_Internal_error_Occurred(
45c52: 4878 0014 pea 14 <OPER2>
45c56: 4878 0001 pea 1 <ADD>
45c5a: 42a7 clrl %sp@-
45c5c: 4eb9 0004 67b0 jsr 467b0 <_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 ee54 movel 5ee54 <_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 f2e4 moveal 5f2e4 <_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 010a moveal %a0@(266),%a0 <== NOT EXECUTED
46582: 23c1 0005 ee54 movel %d1,5ee54 <_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 8576 jsr 48576 <_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 4c68 jsr 54c68 <_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 010a moveal %a1@(266),%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 69b4 tstl 769b4 <_Per_CPU_Information+0x8> <== NOT EXECUTED
5112e: 6724 beqs 51154 <rtems_signal_send+0x74> <== NOT EXECUTED
51130: b0b9 0007 69b8 cmpl 769b8 <_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 69c4 moveb %d0,769c4 <_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 4c42 jsr 54c42 <_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 4c42 jsr 54c42 <_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 c182 moveb 5c182 <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 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@-
45800: 4eb9 0004 5f14 jsr 45f14 <_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 d9a6 pea 5d9a6 <_RTEMS_tasks_Information>
4580c: 4eb9 0004 6864 jsr 46864 <_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 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED
45820: 4eb9 0004 5f74 jsr 45f74 <_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 5f74 lea 45f74 <_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 d9a6 pea 5d9a6 <_RTEMS_tasks_Information>
4586c: 4eb9 0004 75d0 jsr 475d0 <_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 6bdc jsr 46bdc <_Objects_Get_information_id>
45884: 2f0a movel %a2,%sp@-
45886: 2f00 movel %d0,%sp@-
45888: 4eb9 0004 6b58 jsr 46b58 <_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 dace movel 5dace <_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 010a moveal %a2@(266),%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 dace movel 5dace <_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 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@-
458e2: 47f9 0004 5f74 lea 45f74 <_API_Mutex_Unlock>,%a3
458e8: 4eb9 0004 5f14 jsr 45f14 <_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 7548 jsr 47548 <_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 6bdc lea 46bdc <_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 7228 jsr 47228 <_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 6b58 jsr 46b58 <_Objects_Free>
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
4592e: 2f39 0005 dace movel 5dace <_RTEMS_Allocator_Mutex>,%sp@-
45934: 4e93 jsr %a3@
_Thread_Enable_dispatch();
45936: 4eb9 0004 7522 jsr 47522 <_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 dace movel 5dace <_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 e904 tstb 5e904 <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 0006 0916 moveal 60916 <_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 0006 0916 moveal 60916 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
*note = api->Notepads[ notepad ];
47108: 2068 010a moveal %a0@(266),%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 8f78 jsr 48f78 <_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 010a moveal %a1@(266),%a0 <== NOT EXECUTED
4712c: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
47130: 4eb9 0004 8f52 jsr 48f52 <_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 debc moveal 5debc <_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 d9a6 pea 5d9a6 <_RTEMS_tasks_Information> <== NOT EXECUTED
4598a: 4eb9 0004 6e48 jsr 46e48 <_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 b286 lea 5b286 <_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 4c68 jsr 54c68 <_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 4c42 lea 54c42 <_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
0004c40c <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
4c40c: 4e56 ffe4 linkw %fp,#-28
4c410: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@
4c414: 262e 0008 movel %fp@(8),%d3
4c418: 282e 000c movel %fp@(12),%d4
4c41c: 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 )
4c420: 4a8c tstl %a4
4c422: 6700 0104 beqw 4c528 <rtems_task_mode+0x11c>
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
4c426: 2679 0005 debc moveal 5debc <_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;
4c42c: 4a2b 0074 tstb %a3@(116)
4c430: 57c2 seq %d2
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
4c432: 246b 010a moveal %a3@(266),%a2
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4c436: 49c2 extbl %d2
4c438: 0282 0000 0100 andil #256,%d2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
4c43e: 4aab 007a tstl %a3@(122)
4c442: 6704 beqs 4c448 <rtems_task_mode+0x3c> <== ALWAYS TAKEN
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
4c444: 08c2 0009 bset #9,%d2 <== NOT EXECUTED
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
4c448: 4a2a 0008 tstb %a2@(8)
4c44c: 57c5 seq %d5
old_mode |= _ISR_Get_level();
4c44e: 4eb9 0004 8834 jsr 48834 <_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;
4c454: 49c5 extbl %d5
4c456: 0285 0000 0400 andil #1024,%d5
4c45c: 8085 orl %d5,%d0
old_mode |= _ISR_Get_level();
4c45e: 8082 orl %d2,%d0
4c460: 2880 movel %d0,%a4@
*previous_mode_set = old_mode;
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
4c462: 0804 0008 btst #8,%d4
4c466: 670c beqs 4c474 <rtems_task_mode+0x68> <== NEVER TAKEN
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
4c468: 0803 0008 btst #8,%d3
4c46c: 57c0 seq %d0
4c46e: 4480 negl %d0
4c470: 1740 0074 moveb %d0,%a3@(116)
if ( mask & RTEMS_TIMESLICE_MASK ) {
4c474: 0804 0009 btst #9,%d4
4c478: 671c beqs 4c496 <rtems_task_mode+0x8a>
if ( _Modes_Is_timeslice(mode_set) ) {
4c47a: 0803 0009 btst #9,%d3
4c47e: 6712 beqs 4c492 <rtems_task_mode+0x86> <== ALWAYS TAKEN
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
4c480: 41f9 0005 d9e4 lea 5d9e4 <_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;
4c486: 7001 moveq #1,%d0 <== NOT EXECUTED
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
4c488: 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;
4c48c: 2740 007a movel %d0,%a3@(122) <== NOT EXECUTED
4c490: 6004 bras 4c496 <rtems_task_mode+0x8a> <== NOT EXECUTED
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
} else
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
4c492: 42ab 007a clrl %a3@(122)
}
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
4c496: 7007 moveq #7,%d0
4c498: c084 andl %d4,%d0
4c49a: 6712 beqs 4c4ae <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 ) );
4c49c: 40c0 movew %sr,%d0
*/
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (
Modes_Control mode_set
)
{
return ( mode_set & RTEMS_INTERRUPT_MASK );
4c49e: 7207 moveq #7,%d1
4c4a0: 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 ) );
4c4a2: 0280 0000 f8ff andil #63743,%d0
4c4a8: e189 lsll #8,%d1
4c4aa: 8081 orl %d1,%d0
4c4ac: 46c0 movew %d0,%sr
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
4c4ae: 0804 000a btst #10,%d4
4c4b2: 6740 beqs 4c4f4 <rtems_task_mode+0xe8>
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
4c4b4: 4281 clrl %d1
4c4b6: 122a 0008 moveb %a2@(8),%d1
4c4ba: 4282 clrl %d2
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
4c4bc: 0803 000a btst #10,%d3
4c4c0: 57c0 seq %d0
4c4c2: 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 ) {
4c4c4: 1400 moveb %d0,%d2
4c4c6: b282 cmpl %d2,%d1
4c4c8: 672a beqs 4c4f4 <rtems_task_mode+0xe8> <== ALWAYS TAKEN
asr->is_enabled = is_asr_enabled;
4c4ca: 1540 0008 moveb %d0,%a2@(8) <== NOT EXECUTED
)
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
4c4ce: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
4c4d4: 40c1 movew %sr,%d1 <== NOT EXECUTED
4c4d6: 8081 orl %d1,%d0 <== NOT EXECUTED
4c4d8: 46c0 movew %d0,%sr <== NOT EXECUTED
_signals = information->signals_pending;
4c4da: 202a 0016 movel %a2@(22),%d0 <== NOT EXECUTED
information->signals_pending = information->signals_posted;
4c4de: 256a 0012 0016 movel %a2@(18),%a2@(22) <== NOT EXECUTED
information->signals_posted = _signals;
4c4e4: 2540 0012 movel %d0,%a2@(18) <== NOT EXECUTED
_ISR_Enable( _level );
4c4e8: 46c1 movew %d1,%sr <== NOT EXECUTED
/*
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
4c4ea: 4aaa 0012 tstl %a2@(18) <== NOT EXECUTED
4c4ee: 56c0 sne %d0 <== NOT EXECUTED
4c4f0: 4480 negl %d0 <== NOT EXECUTED
4c4f2: 6002 bras 4c4f6 <rtems_task_mode+0xea> <== NOT EXECUTED
4c4f4: 4200 clrb %d0
needs_asr_dispatching = true;
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
4c4f6: 7203 moveq #3,%d1
4c4f8: b2b9 0005 db9a cmpl 5db9a <_System_state_Current>,%d1
4c4fe: 662c bnes 4c52c <rtems_task_mode+0x120> <== NEVER TAKEN
bool are_signals_pending
)
{
Thread_Control *executing;
executing = _Thread_Executing;
4c500: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
if ( are_signals_pending ||
4c506: 4a00 tstb %d0
4c508: 660e bnes 4c518 <rtems_task_mode+0x10c> <== NEVER TAKEN
4c50a: b1f9 0005 dec0 cmpal 5dec0 <_Per_CPU_Information+0x10>,%a0
4c510: 671a beqs 4c52c <rtems_task_mode+0x120> <== ALWAYS TAKEN
(!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
4c512: 4a28 0074 tstb %a0@(116) <== NOT EXECUTED
4c516: 6714 beqs 4c52c <rtems_task_mode+0x120> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
4c518: 7001 moveq #1,%d0 <== NOT EXECUTED
4c51a: 13c0 0005 dec8 moveb %d0,5dec8 <_Per_CPU_Information+0x18> <== NOT EXECUTED
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
4c520: 4eb9 0004 73e4 jsr 473e4 <_Thread_Dispatch> <== NOT EXECUTED
4c526: 6004 bras 4c52c <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;
4c528: 7009 moveq #9,%d0 <== NOT EXECUTED
4c52a: 6002 bras 4c52e <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;
4c52c: 4280 clrl %d0
}
4c52e: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4
4c534: 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 7d00 jsr 47d00 <_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 84a4 jsr 484a4 <_Thread_Restart> <== NOT EXECUTED
461b4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
461b8: 41f9 0004 7cda lea 47cda <_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
000487ac <rtems_task_resume>:
*/
rtems_status_code rtems_task_resume(
rtems_id id
)
{
487ac: 4e56 fffc linkw %fp,#-4
487b0: 2f0a movel %a2,%sp@-
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
487b2: 486e fffc pea %fp@(-4)
487b6: 2f2e 0008 movel %fp@(8),%sp@-
487ba: 4eb9 0004 a370 jsr 4a370 <_Thread_Get>
switch ( location ) {
487c0: 508f addql #8,%sp
487c2: 4aae fffc tstl %fp@(-4)
487c6: 662a bnes 487f2 <rtems_task_resume+0x46> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
487c8: 7202 moveq #2,%d1
487ca: 2040 moveal %d0,%a0
487cc: 45f9 0004 a34a lea 4a34a <_Thread_Enable_dispatch>,%a2
487d2: c2a8 0010 andl %a0@(16),%d1
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
487d6: 6714 beqs 487ec <rtems_task_resume+0x40> <== NEVER TAKEN
_Thread_Resume( the_thread, true );
487d8: 4878 0001 pea 1 <ADD>
487dc: 2f00 movel %d0,%sp@-
487de: 4eb9 0004 ab14 jsr 4ab14 <_Thread_Resume>
_Thread_Enable_dispatch();
487e4: 4e92 jsr %a2@
return RTEMS_SUCCESSFUL;
487e6: 508f addql #8,%sp
487e8: 4280 clrl %d0
487ea: 6008 bras 487f4 <rtems_task_resume+0x48>
}
_Thread_Enable_dispatch();
487ec: 4e92 jsr %a2@ <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
487ee: 700e moveq #14,%d0 <== NOT EXECUTED
487f0: 6002 bras 487f4 <rtems_task_resume+0x48> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
487f2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
487f4: 246e fff8 moveal %fp@(-8),%a2
487f8: 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 e904 tstb 5e904 <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 0006 0916 moveal 60916 <_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 0006 0916 moveal 60916 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
api->Notepads[ notepad ] = note;
4726c: 2068 010a moveal %a0@(266),%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 8f78 jsr 48f78 <_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 010a moveal %a1@(266),%a0 <== NOT EXECUTED
47290: 2183 2c1e movel %d3,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED
_Thread_Enable_dispatch();
47294: 4eb9 0004 8f52 jsr 48f52 <_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
000492e8 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
492e8: 4e56 fffc linkw %fp,#-4
492ec: 2f0a movel %a2,%sp@-
492ee: 246e 0010 moveal %fp@(16),%a2
492f2: 2f02 movel %d2,%sp@-
492f4: 242e 000c movel %fp@(12),%d2
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
492f8: 670c beqs 49306 <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 ) );
492fa: 4280 clrl %d0
492fc: 1039 0005 fb32 moveb 5fb32 <rtems_maximum_priority>,%d0
49302: b082 cmpl %d2,%d0
49304: 654e bcss 49354 <rtems_task_set_priority+0x6c> <== NEVER TAKEN
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
49306: 4a8a tstl %a2
49308: 674e beqs 49358 <rtems_task_set_priority+0x70> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
4930a: 486e fffc pea %fp@(-4)
4930e: 2f2e 0008 movel %fp@(8),%sp@-
49312: 4eb9 0004 aff8 jsr 4aff8 <_Thread_Get>
switch ( location ) {
49318: 508f addql #8,%sp
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
4931a: 2040 moveal %d0,%a0
switch ( location ) {
4931c: 4aae fffc tstl %fp@(-4)
49320: 663a bnes 4935c <rtems_task_set_priority+0x74> <== NEVER TAKEN
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
49322: 24a8 0014 movel %a0@(20),%a2@
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
49326: 4a82 tstl %d2
49328: 6720 beqs 4934a <rtems_task_set_priority+0x62> <== NEVER TAKEN
the_thread->real_priority = new_priority;
4932a: 2142 0018 movel %d2,%a0@(24)
if ( the_thread->resource_count == 0 ||
4932e: 4aa8 001c tstl %a0@(28)
49332: 6706 beqs 4933a <rtems_task_set_priority+0x52> <== ALWAYS TAKEN
49334: b4a8 0014 cmpl %a0@(20),%d2 <== NOT EXECUTED
49338: 6410 bccs 4934a <rtems_task_set_priority+0x62> <== NOT EXECUTED
the_thread->current_priority > new_priority )
_Thread_Change_priority( the_thread, new_priority, false );
4933a: 42a7 clrl %sp@-
4933c: 2f02 movel %d2,%sp@-
4933e: 2f08 movel %a0,%sp@-
49340: 4eb9 0004 aaec jsr 4aaec <_Thread_Change_priority>
49346: 4fef 000c lea %sp@(12),%sp
}
_Thread_Enable_dispatch();
4934a: 4eb9 0004 afd2 jsr 4afd2 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
49350: 4280 clrl %d0
49352: 600a bras 4935e <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;
49354: 7013 moveq #19,%d0 <== NOT EXECUTED
49356: 6006 bras 4935e <rtems_task_set_priority+0x76> <== NOT EXECUTED
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
49358: 7009 moveq #9,%d0 <== NOT EXECUTED
4935a: 6002 bras 4935e <rtems_task_set_priority+0x76> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
4935c: 7004 moveq #4,%d0 <== NOT EXECUTED
}
4935e: 242e fff4 movel %fp@(-12),%d2
49362: 246e fff8 moveal %fp@(-8),%a2
49366: 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 7548 jsr 47548 <_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 7f8c jsr 47f8c <_Thread_Start>
45a60: 4fef 0014 lea %sp@(20),%sp
45a64: 41f9 0004 7522 lea 47522 <_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 7548 jsr 47548 <_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 7522 lea 47522 <_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 7fe0 jsr 47fe0 <_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
00046558 <rtems_task_variable_add>:
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
46558: 4e56 fff0 linkw %fp,#-16
4655c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
46560: 246e 000c moveal %fp@(12),%a2
46564: 242e 0010 movel %fp@(16),%d2
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
46568: 4a8a tstl %a2
4656a: 676e beqs 465da <rtems_task_variable_add+0x82> <== ALWAYS TAKEN
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
4656c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
46570: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46574: 4eb9 0004 810c jsr 4810c <_Thread_Get> <== NOT EXECUTED
switch (location) {
4657a: 508f addql #8,%sp <== NOT EXECUTED
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
4657c: 2640 moveal %d0,%a3 <== NOT EXECUTED
switch (location) {
4657e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46582: 665a bnes 465de <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;
46584: 206b 0116 moveal %a3@(278),%a0 <== NOT EXECUTED
while (tvp) {
46588: 6014 bras 4659e <rtems_task_variable_add+0x46> <== NOT EXECUTED
if (tvp->ptr == ptr) {
4658a: b5e8 0004 cmpal %a0@(4),%a2 <== NOT EXECUTED
4658e: 660c bnes 4659c <rtems_task_variable_add+0x44> <== NOT EXECUTED
tvp->dtor = dtor;
46590: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED
_Thread_Enable_dispatch();
46594: 4eb9 0004 80e6 jsr 480e6 <_Thread_Enable_dispatch> <== NOT EXECUTED
4659a: 603a bras 465d6 <rtems_task_variable_add+0x7e> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
4659c: 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) {
4659e: 4a88 tstl %a0 <== NOT EXECUTED
465a0: 66e8 bnes 4658a <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));
465a2: 4878 0014 pea 14 <OPER2> <== NOT EXECUTED
465a6: 4eb9 0004 92d4 jsr 492d4 <_Workspace_Allocate> <== NOT EXECUTED
if (new == NULL) {
465ac: 588f addql #4,%sp <== NOT EXECUTED
465ae: 43f9 0004 80e6 lea 480e6 <_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));
465b4: 2040 moveal %d0,%a0 <== NOT EXECUTED
if (new == NULL) {
465b6: 4a80 tstl %d0 <== NOT EXECUTED
465b8: 6606 bnes 465c0 <rtems_task_variable_add+0x68> <== NOT EXECUTED
_Thread_Enable_dispatch();
465ba: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_NO_MEMORY;
465bc: 701a moveq #26,%d0 <== NOT EXECUTED
465be: 6020 bras 465e0 <rtems_task_variable_add+0x88> <== NOT EXECUTED
}
new->gval = *ptr;
465c0: 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;
465c4: 20ab 0116 movel %a3@(278),%a0@ <== NOT EXECUTED
if (new == NULL) {
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
}
new->gval = *ptr;
new->ptr = ptr;
465c8: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED
new->dtor = dtor;
465cc: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
the_thread->task_variables = new;
465d0: 2740 0116 movel %d0,%a3@(278) <== NOT EXECUTED
_Thread_Enable_dispatch();
465d4: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
465d6: 4280 clrl %d0 <== NOT EXECUTED
465d8: 6006 bras 465e0 <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;
465da: 7009 moveq #9,%d0
465dc: 6002 bras 465e0 <rtems_task_variable_add+0x88>
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
465de: 7004 moveq #4,%d0 <== NOT EXECUTED
}
465e0: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3
465e6: 4e5e unlk %fp
...
000465ec <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
465ec: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
465f0: 2f02 movel %d2,%sp@- <== NOT EXECUTED
465f2: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
465f6: 6758 beqs 46650 <rtems_task_variable_delete+0x64><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
465f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
465fc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46600: 4eb9 0004 810c jsr 4810c <_Thread_Get> <== NOT EXECUTED
switch (location) {
46606: 508f addql #8,%sp <== NOT EXECUTED
46608: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4660c: 6646 bnes 46654 <rtems_task_variable_delete+0x68><== NOT EXECUTED
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
4660e: 2240 moveal %d0,%a1 <== NOT EXECUTED
46610: 2069 0116 moveal %a1@(278),%a0 <== NOT EXECUTED
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
prev = NULL;
46614: 93c9 subal %a1,%a1 <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
46616: 602e bras 46646 <rtems_task_variable_delete+0x5a><== NOT EXECUTED
if (tvp->ptr == ptr) {
46618: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED
4661c: 6624 bnes 46642 <rtems_task_variable_delete+0x56><== NOT EXECUTED
if (prev)
4661e: 4a89 tstl %a1 <== NOT EXECUTED
46620: 6704 beqs 46626 <rtems_task_variable_delete+0x3a><== NOT EXECUTED
prev->next = tvp->next;
46622: 2290 movel %a0@,%a1@ <== NOT EXECUTED
46624: 6006 bras 4662c <rtems_task_variable_delete+0x40><== NOT EXECUTED
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
46626: 2240 moveal %d0,%a1 <== NOT EXECUTED
46628: 2350 0116 movel %a0@,%a1@(278) <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
4662c: 2f08 movel %a0,%sp@- <== NOT EXECUTED
4662e: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46630: 4eb9 0004 66c8 jsr 466c8 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED
_Thread_Enable_dispatch();
46636: 4eb9 0004 80e6 jsr 480e6 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
4663c: 508f addql #8,%sp <== NOT EXECUTED
4663e: 4280 clrl %d0 <== NOT EXECUTED
46640: 6014 bras 46656 <rtems_task_variable_delete+0x6a><== NOT EXECUTED
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
46642: 2248 moveal %a0,%a1 <== NOT EXECUTED
46644: 2050 moveal %a0@,%a0 <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
46646: 4a88 tstl %a0 <== NOT EXECUTED
46648: 66ce bnes 46618 <rtems_task_variable_delete+0x2c><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
4664a: 4eb9 0004 80e6 jsr 480e6 <_Thread_Enable_dispatch> <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
46650: 7009 moveq #9,%d0 <== NOT EXECUTED
46652: 6002 bras 46656 <rtems_task_variable_delete+0x6a><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
46654: 7004 moveq #4,%d0 <== NOT EXECUTED
}
46656: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
4665a: 4e5e unlk %fp <== NOT EXECUTED
...
00046660 <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
46660: 4e56 fffc linkw %fp,#-4
46664: 2f0a movel %a2,%sp@-
46666: 246e 0010 moveal %fp@(16),%a2
4666a: 2f02 movel %d2,%sp@-
4666c: 242e 000c movel %fp@(12),%d2
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
46670: 6742 beqs 466b4 <rtems_task_variable_get+0x54> <== ALWAYS TAKEN
return RTEMS_INVALID_ADDRESS;
if ( !result )
46672: 4a8a tstl %a2 <== NOT EXECUTED
46674: 673e beqs 466b4 <rtems_task_variable_get+0x54> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
46676: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4667a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4667e: 4eb9 0004 810c jsr 4810c <_Thread_Get> <== NOT EXECUTED
switch (location) {
46684: 508f addql #8,%sp <== NOT EXECUTED
46686: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4668a: 662c bnes 466b8 <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;
4668c: 2240 moveal %d0,%a1 <== NOT EXECUTED
4668e: 2069 0116 moveal %a1@(278),%a0 <== NOT EXECUTED
while (tvp) {
46692: 6016 bras 466aa <rtems_task_variable_get+0x4a> <== NOT EXECUTED
if (tvp->ptr == ptr) {
46694: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED
46698: 660e bnes 466a8 <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;
4669a: 24a8 000c movel %a0@(12),%a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
4669e: 4eb9 0004 80e6 jsr 480e6 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
466a4: 4280 clrl %d0 <== NOT EXECUTED
466a6: 6012 bras 466ba <rtems_task_variable_get+0x5a> <== NOT EXECUTED
}
tvp = (rtems_task_variable_t *)tvp->next;
466a8: 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) {
466aa: 4a88 tstl %a0 <== NOT EXECUTED
466ac: 66e6 bnes 46694 <rtems_task_variable_get+0x34> <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
466ae: 4eb9 0004 80e6 jsr 480e6 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
if ( !result )
return RTEMS_INVALID_ADDRESS;
466b4: 7009 moveq #9,%d0
466b6: 6002 bras 466ba <rtems_task_variable_get+0x5a>
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
466b8: 7004 moveq #4,%d0 <== NOT EXECUTED
}
466ba: 242e fff4 movel %fp@(-12),%d2
466be: 246e fff8 moveal %fp@(-8),%a2
466c2: 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 da2c movel 5da2c <_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 da2c movel %d0,5da2c <_Thread_Dispatch_disable_level>
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
45aec: 4a82 tstl %d2
45aee: 6608 bnes 45af8 <rtems_task_wake_after+0x24> <== ALWAYS TAKEN
_Thread_Yield_processor();
45af0: 4eb9 0004 8138 jsr 48138 <_Thread_Yield_processor> <== NOT EXECUTED
45af6: 6048 bras 45b40 <rtems_task_wake_after+0x6c> <== NOT EXECUTED
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
45af8: 4878 0008 pea 8 <DIVIDE_BY_ZERO>
45afc: 2f39 0005 debc movel 5debc <_Per_CPU_Information+0xc>,%sp@-
45b02: 4eb9 0004 7d5c jsr 47d5c <_Thread_Set_state>
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
45b08: 2079 0005 debc moveal 5debc <_Per_CPU_Information+0xc>,%a0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
45b0e: 223c 0004 73a8 movel #291752,%d1
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
_Thread_Yield_processor();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
_Watchdog_Initialize(
45b14: 2028 0008 movel %a0@(8),%d0
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
45b18: 42a8 0050 clrl %a0@(80)
the_watchdog->routine = routine;
45b1c: 2141 0064 movel %d1,%a0@(100)
the_watchdog->id = id;
45b20: 2140 0068 movel %d0,%a0@(104)
the_watchdog->user_data = user_data;
45b24: 42a8 006c clrl %a0@(108)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
45b28: 2142 0054 movel %d2,%a0@(84)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45b2c: 4868 0048 pea %a0@(72)
45b30: 4879 0005 daee pea 5daee <_Watchdog_Ticks_chain>
45b36: 4eb9 0004 849c jsr 4849c <_Watchdog_Insert>
45b3c: 4fef 0010 lea %sp@(16),%sp
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
}
_Thread_Enable_dispatch();
45b40: 4eb9 0004 7522 jsr 47522 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
}
45b46: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
45b4a: 4280 clrl %d0 <== NOT EXECUTED
45b4c: 4e5e unlk %fp <== NOT EXECUTED
000466c8 <rtems_task_wake_when>:
*/
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
466c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
466cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466ce: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
466d2: 4a39 0005 eff4 tstb 5eff4 <_TOD_Is_set> <== NOT EXECUTED
466d8: 6700 0096 beqw 46770 <rtems_task_wake_when+0xa8> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
466dc: 4a8a tstl %a2 <== NOT EXECUTED
466de: 6700 0094 beqw 46774 <rtems_task_wake_when+0xac> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
time_buffer->ticks = 0;
466e2: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
if ( !_TOD_Validate( time_buffer ) )
466e6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466e8: 4eb9 0004 5b84 jsr 45b84 <_TOD_Validate> <== NOT EXECUTED
466ee: 588f addql #4,%sp <== NOT EXECUTED
466f0: 4a00 tstb %d0 <== NOT EXECUTED
466f2: 6700 0084 beqw 46778 <rtems_task_wake_when+0xb0> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
466f6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466f8: 4eb9 0004 5ae8 jsr 45ae8 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
466fe: 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 );
46700: 2440 moveal %d0,%a2 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
46702: b0b9 0005 f06e cmpl 5f06e <_TOD_Now>,%d0 <== NOT EXECUTED
46708: 636e blss 46778 <rtems_task_wake_when+0xb0> <== NOT EXECUTED
4670a: 2039 0005 efe4 movel 5efe4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
46710: 5280 addql #1,%d0 <== NOT EXECUTED
46712: 23c0 0005 efe4 movel %d0,5efe4 <_Thread_Dispatch_disable_level><== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
46718: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
4671c: 2f39 0005 f474 movel 5f474 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED
46722: 4eb9 0004 8984 jsr 48984 <_Thread_Set_state> <== NOT EXECUTED
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
46728: 2079 0005 f474 moveal 5f474 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
NULL
);
_Watchdog_Insert_seconds(
4672e: 95f9 0005 f06e subal 5f06e <_TOD_Now>,%a2 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
46734: 223c 0004 7fd0 movel #294864,%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(
4673a: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4673e: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
46742: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
46746: 2141 0064 movel %d1,%a0@(100) <== NOT EXECUTED
the_watchdog->id = id;
the_watchdog->user_data = user_data;
4674a: 42a8 006c clrl %a0@(108) <== NOT EXECUTED
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_seconds(
4674e: 214a 0054 movel %a2,%a0@(84) <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
46752: 4868 0048 pea %a0@(72) <== NOT EXECUTED
46756: 4879 0005 f09a pea 5f09a <_Watchdog_Seconds_chain> <== NOT EXECUTED
4675c: 4eb9 0004 9144 jsr 49144 <_Watchdog_Insert> <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
46762: 4eb9 0004 814a jsr 4814a <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
46768: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4676c: 4280 clrl %d0 <== NOT EXECUTED
4676e: 600a bras 4677a <rtems_task_wake_when+0xb2> <== NOT EXECUTED
)
{
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
46770: 700b moveq #11,%d0 <== NOT EXECUTED
46772: 6006 bras 4677a <rtems_task_wake_when+0xb2> <== NOT EXECUTED
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
46774: 7009 moveq #9,%d0 <== NOT EXECUTED
46776: 6002 bras 4677a <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;
46778: 7014 moveq #20,%d0 <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
4677a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
4677e: 4e5e unlk %fp <== NOT EXECUTED
...
00051964 <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
51964: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
51968: 486e fffc pea %fp@(-4) <== NOT EXECUTED
5196c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51970: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51976: 4eb9 0005 43dc jsr 543dc <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
5197c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51980: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51984: 6620 bnes 519a6 <rtems_timer_cancel+0x42> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
51986: 7204 moveq #4,%d1 <== NOT EXECUTED
51988: 2040 moveal %d0,%a0 <== NOT EXECUTED
5198a: b2a8 0038 cmpl %a0@(56),%d1 <== NOT EXECUTED
5198e: 670c beqs 5199c <rtems_timer_cancel+0x38> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_timer->Ticker );
51990: 4868 0010 pea %a0@(16) <== NOT EXECUTED
51994: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
5199a: 588f addql #4,%sp <== NOT EXECUTED
_Thread_Enable_dispatch();
5199c: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
519a2: 4280 clrl %d0 <== NOT EXECUTED
519a4: 6002 bras 519a8 <rtems_timer_cancel+0x44> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
519a6: 7004 moveq #4,%d0 <== NOT EXECUTED
}
519a8: 4e5e unlk %fp <== NOT EXECUTED
00045ca4 <rtems_timer_create>:
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
45ca4: 4e56 fff4 linkw %fp,#-12
45ca8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@
45cac: 242e 0008 movel %fp@(8),%d2
45cb0: 246e 000c moveal %fp@(12),%a2
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
45cb4: 6766 beqs 45d1c <rtems_timer_create+0x78> <== NEVER TAKEN
return RTEMS_INVALID_NAME;
if ( !id )
45cb6: 4a8a tstl %a2
45cb8: 6766 beqs 45d20 <rtems_timer_create+0x7c> <== NEVER TAKEN
45cba: 2039 0005 dcb0 movel 5dcb0 <_Thread_Dispatch_disable_level>,%d0
45cc0: 5280 addql #1,%d0
45cc2: 23c0 0005 dcb0 movel %d0,5dcb0 <_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 );
45cc8: 4879 0005 e4f2 pea 5e4f2 <_Timer_Information>
45cce: 4eb9 0004 6af4 jsr 46af4 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
45cd4: 588f addql #4,%sp
45cd6: 43f9 0004 773e lea 4773e <_Thread_Enable_dispatch>,%a1
45cdc: 2040 moveal %d0,%a0
45cde: 4a80 tstl %d0
45ce0: 6606 bnes 45ce8 <rtems_timer_create+0x44> <== ALWAYS TAKEN
_Thread_Enable_dispatch();
45ce2: 4e91 jsr %a1@ <== NOT EXECUTED
return RTEMS_TOO_MANY;
45ce4: 7005 moveq #5,%d0 <== NOT EXECUTED
45ce6: 603a bras 45d22 <rtems_timer_create+0x7e> <== NOT EXECUTED
}
the_timer->the_class = TIMER_DORMANT;
45ce8: 7004 moveq #4,%d0
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
45cea: 4281 clrl %d1
45cec: 2140 0038 movel %d0,%a0@(56)
information,
_Objects_Get_index( the_object->id ),
45cf0: 2028 0008 movel %a0@(8),%d0
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45cf4: 2679 0005 e50a moveal 5e50a <_Timer_Information+0x18>,%a3
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
45cfa: 3200 movew %d0,%d1
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
45cfc: 42a8 0018 clrl %a0@(24)
the_watchdog->routine = routine;
45d00: 42a8 002c clrl %a0@(44)
the_watchdog->id = id;
45d04: 42a8 0030 clrl %a0@(48)
the_watchdog->user_data = user_data;
45d08: 42a8 0034 clrl %a0@(52)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45d0c: 2788 1c00 movel %a0,%a3@(00000000,%d1:l:4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
45d10: 2142 000c movel %d2,%a0@(12)
&_Timer_Information,
&the_timer->Object,
(Objects_Name) name
);
*id = the_timer->Object.id;
45d14: 2480 movel %d0,%a2@
_Thread_Enable_dispatch();
45d16: 4e91 jsr %a1@
return RTEMS_SUCCESSFUL;
45d18: 4280 clrl %d0
45d1a: 6006 bras 45d22 <rtems_timer_create+0x7e>
)
{
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
45d1c: 7003 moveq #3,%d0 <== NOT EXECUTED
45d1e: 6002 bras 45d22 <rtems_timer_create+0x7e> <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
45d20: 7009 moveq #9,%d0 <== NOT EXECUTED
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
45d22: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3
45d28: 4e5e unlk %fp <== NOT EXECUTED
00051a34 <rtems_timer_delete>:
*/
rtems_status_code rtems_timer_delete(
rtems_id id
)
{
51a34: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
51a38: 2f0a movel %a2,%sp@- <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
51a3a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51a3e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51a42: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51a48: 4eb9 0005 43dc jsr 543dc <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51a4e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51a52: 2440 moveal %d0,%a2 <== NOT EXECUTED
51a54: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51a58: 6634 bnes 51a8e <rtems_timer_delete+0x5a> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Timer_Information, &the_timer->Object );
51a5a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
51a5c: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51a62: 4eb9 0005 3fc8 jsr 53fc8 <_Objects_Close> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_timer->Ticker );
51a68: 486a 0010 pea %a2@(16) <== NOT EXECUTED
51a6c: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Timer_Free (
Timer_Control *the_timer
)
{
_Objects_Free( &_Timer_Information, &the_timer->Object );
51a72: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51a74: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51a7a: 4eb9 0005 4240 jsr 54240 <_Objects_Free> <== NOT EXECUTED
_Timer_Free( the_timer );
_Thread_Enable_dispatch();
51a80: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51a86: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
51a8a: 4280 clrl %d0 <== NOT EXECUTED
51a8c: 6002 bras 51a90 <rtems_timer_delete+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51a8e: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51a90: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
51a94: 4e5e unlk %fp <== NOT EXECUTED
00045d2c <rtems_timer_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
45d2c: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
45d30: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED
45d34: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED
45d38: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
45d3c: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
45d40: 4a83 tstl %d3 <== NOT EXECUTED
45d42: 6700 0088 beqw 45dcc <rtems_timer_fire_after+0xa0> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
if ( !routine )
45d46: 4a85 tstl %d5 <== NOT EXECUTED
45d48: 6700 0086 beqw 45dd0 <rtems_timer_fire_after+0xa4> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
45d4c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45d50: 2f04 movel %d4,%sp@- <== NOT EXECUTED
45d52: 4879 0005 e4f2 pea 5e4f2 <_Timer_Information> <== NOT EXECUTED
45d58: 4eb9 0004 6f4c jsr 46f4c <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
45d5e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45d62: 2440 moveal %d0,%a2 <== NOT EXECUTED
45d64: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45d68: 666a bnes 45dd4 <rtems_timer_fire_after+0xa8> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
45d6a: 2400 movel %d0,%d2 <== NOT EXECUTED
45d6c: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
45d72: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45d74: 4eb9 0004 87d4 jsr 487d4 <_Watchdog_Remove> <== NOT EXECUTED
_ISR_Disable( level );
45d7a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
45d80: 40c1 movew %sr,%d1 <== NOT EXECUTED
45d82: 8081 orl %d1,%d0 <== NOT EXECUTED
45d84: 46c0 movew %d0,%sr <== NOT EXECUTED
45d86: 47f9 0004 773e lea 4773e <_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 ) {
45d8c: 588f addql #4,%sp <== NOT EXECUTED
45d8e: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED
45d92: 6706 beqs 45d9a <rtems_timer_fire_after+0x6e> <== NOT EXECUTED
_ISR_Enable( level );
45d94: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_Enable_dispatch();
45d96: 4e93 jsr %a3@ <== NOT EXECUTED
45d98: 602e bras 45dc8 <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;
45d9a: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED
45d9e: 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;
45da4: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
45da8: 2545 002c movel %d5,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
45dac: 2544 0030 movel %d4,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_ISR_Enable( level );
45db0: 46c1 movew %d1,%sr <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
45db2: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45db6: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45db8: 4879 0005 dd72 pea 5dd72 <_Watchdog_Ticks_chain> <== NOT EXECUTED
45dbe: 4eb9 0004 86b8 jsr 486b8 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_timer->Ticker, ticks );
_Thread_Enable_dispatch();
45dc4: 4e93 jsr %a3@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
45dc6: 508f addql #8,%sp <== NOT EXECUTED
45dc8: 4280 clrl %d0 <== NOT EXECUTED
45dca: 600a bras 45dd6 <rtems_timer_fire_after+0xaa> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
45dcc: 700a moveq #10,%d0 <== NOT EXECUTED
45dce: 6006 bras 45dd6 <rtems_timer_fire_after+0xaa> <== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
45dd0: 7009 moveq #9,%d0 <== NOT EXECUTED
45dd2: 6002 bras 45dd6 <rtems_timer_fire_after+0xaa> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
45dd4: 7004 moveq #4,%d0 <== NOT EXECUTED
}
45dd6: 4cee 0c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a3 <== NOT EXECUTED
45ddc: 4e5e unlk %fp <== NOT EXECUTED
00051b4c <rtems_timer_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
51b4c: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
51b50: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED
51b54: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED
51b58: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
51b5c: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
51b60: 4a39 0007 6530 tstb 76530 <_TOD_Is_set> <== NOT EXECUTED
51b66: 6700 0098 beqw 51c00 <rtems_timer_fire_when+0xb4> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
51b6a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51b6c: 4eb9 0004 f2b4 jsr 4f2b4 <_TOD_Validate> <== NOT EXECUTED
51b72: 588f addql #4,%sp <== NOT EXECUTED
51b74: 4a00 tstb %d0 <== NOT EXECUTED
51b76: 6700 0090 beqw 51c08 <rtems_timer_fire_when+0xbc> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
if ( !routine )
51b7a: 4a85 tstl %d5 <== NOT EXECUTED
51b7c: 6700 0086 beqw 51c04 <rtems_timer_fire_when+0xb8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
51b80: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51b82: 4eb9 0004 f218 jsr 4f218 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51b88: 588f addql #4,%sp <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
51b8a: 2600 movel %d0,%d3 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51b8c: b0b9 0007 65aa cmpl 765aa <_TOD_Now>,%d0 <== NOT EXECUTED
51b92: 6374 blss 51c08 <rtems_timer_fire_when+0xbc> <== NOT EXECUTED
51b94: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51b98: 2f04 movel %d4,%sp@- <== NOT EXECUTED
51b9a: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51ba0: 4eb9 0005 43dc jsr 543dc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51ba6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51baa: 2440 moveal %d0,%a2 <== NOT EXECUTED
51bac: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51bb0: 665a bnes 51c0c <rtems_timer_fire_when+0xc0> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
51bb2: 2400 movel %d0,%d2 <== NOT EXECUTED
51bb4: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED
51bba: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51bbc: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
51bc2: 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(
51bc8: 96b9 0007 65aa subl 765aa <_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;
51bce: 7002 moveq #2,%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
51bd0: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
51bd4: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
the_watchdog->routine = routine;
51bd8: 2545 002c movel %d5,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
51bdc: 2544 0030 movel %d4,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_Watchdog_Insert_seconds(
51be0: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
51be4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51be6: 4879 0007 65d6 pea 765d6 <_Watchdog_Seconds_chain> <== NOT EXECUTED
51bec: 4eb9 0005 5e98 jsr 55e98 <_Watchdog_Insert> <== NOT EXECUTED
&the_timer->Ticker,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
51bf2: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51bf8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51bfc: 4280 clrl %d0 <== NOT EXECUTED
51bfe: 600e bras 51c0e <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;
51c00: 700b moveq #11,%d0 <== NOT EXECUTED
51c02: 600a bras 51c0e <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
51c04: 7009 moveq #9,%d0 <== NOT EXECUTED
51c06: 6006 bras 51c0e <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
51c08: 7014 moveq #20,%d0 <== NOT EXECUTED
51c0a: 6002 bras 51c0e <rtems_timer_fire_when+0xc2> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51c0c: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51c0e: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED
51c14: 4e5e unlk %fp <== NOT EXECUTED
00051c18 <rtems_timer_get_information>:
rtems_status_code rtems_timer_get_information(
rtems_id id,
rtems_timer_information *the_info
)
{
51c18: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
51c1c: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51c1e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
51c22: 4a8a tstl %a2 <== NOT EXECUTED
51c24: 6740 beqs 51c66 <rtems_timer_get_information+0x4e><== NOT EXECUTED
51c26: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51c2a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51c2e: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51c34: 4eb9 0005 43dc jsr 543dc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51c3a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51c3e: 2040 moveal %d0,%a0 <== NOT EXECUTED
51c40: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51c44: 6624 bnes 51c6a <rtems_timer_get_information+0x52><== NOT EXECUTED
case OBJECTS_LOCAL:
the_info->the_class = the_timer->the_class;
51c46: 24a8 0038 movel %a0@(56),%a2@ <== NOT EXECUTED
the_info->initial = the_timer->Ticker.initial;
51c4a: 2568 001c 0004 movel %a0@(28),%a2@(4) <== NOT EXECUTED
the_info->start_time = the_timer->Ticker.start_time;
51c50: 2568 0024 0008 movel %a0@(36),%a2@(8) <== NOT EXECUTED
the_info->stop_time = the_timer->Ticker.stop_time;
51c56: 2568 0028 000c movel %a0@(40),%a2@(12) <== NOT EXECUTED
_Thread_Enable_dispatch();
51c5c: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51c62: 4280 clrl %d0 <== NOT EXECUTED
51c64: 6006 bras 51c6c <rtems_timer_get_information+0x54><== NOT EXECUTED
{
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
51c66: 7009 moveq #9,%d0 <== NOT EXECUTED
51c68: 6002 bras 51c6c <rtems_timer_get_information+0x54><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51c6a: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51c6c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
51c70: 4e5e unlk %fp <== NOT EXECUTED
00051c74 <rtems_timer_ident>:
rtems_status_code rtems_timer_ident(
rtems_name name,
rtems_id *id
)
{
51c74: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
51c78: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
51c7c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED
51c82: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51c86: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51c8c: 4eb9 0005 4568 jsr 54568 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
51c92: 41f9 0006 f908 lea 6f908 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED
51c98: 4e5e unlk %fp <== NOT EXECUTED
51c9a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED
0005227e <rtems_timer_initiate_server>:
rtems_status_code rtems_timer_initiate_server(
uint32_t priority,
uint32_t stack_size,
rtems_attribute attribute_set
)
{
5227e: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
52282: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED
52286: 2f03 movel %d3,%sp@- <== NOT EXECUTED
52288: 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 ) &&
5228a: 4a80 tstl %d0 <== NOT EXECUTED
5228c: 6712 beqs 522a0 <rtems_timer_initiate_server+0x22><== NOT EXECUTED
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
5228e: 4281 clrl %d1 <== NOT EXECUTED
52290: 1239 0007 08c2 moveb 708c2 <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 ) &&
52296: b280 cmpl %d0,%d1 <== NOT EXECUTED
52298: 54c1 scc %d1 <== NOT EXECUTED
5229a: 49c1 extbl %d1 <== NOT EXECUTED
5229c: 4481 negl %d1 <== NOT EXECUTED
5229e: 6002 bras 522a2 <rtems_timer_initiate_server+0x24><== NOT EXECUTED
522a0: 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 ) ) {
522a2: 4a01 tstb %d1 <== NOT EXECUTED
522a4: 660c bnes 522b2 <rtems_timer_initiate_server+0x34><== NOT EXECUTED
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
522a6: 72ff moveq #-1,%d1 <== NOT EXECUTED
522a8: b280 cmpl %d0,%d1 <== NOT EXECUTED
522aa: 6600 013a bnew 523e6 <rtems_timer_initiate_server+0x168><== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
_priority = 0;
522ae: 4282 clrl %d2 <== NOT EXECUTED
522b0: 6002 bras 522b4 <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 ) ) {
522b2: 2400 movel %d0,%d2 <== NOT EXECUTED
}
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
522b4: 4eba fc0a jsr %pc@(51ec0 <_Thread_Disable_dispatch>) <== NOT EXECUTED
tmpInitialized = initialized;
initialized = true;
522b8: 7001 moveq #1,%d0 <== NOT EXECUTED
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
tmpInitialized = initialized;
522ba: 1639 0007 19fa moveb 719fa <initialized.3589>,%d3 <== NOT EXECUTED
initialized = true;
522c0: 13c0 0007 19fa moveb %d0,719fa <initialized.3589> <== NOT EXECUTED
_Thread_Enable_dispatch();
522c6: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( tmpInitialized )
522cc: 4a03 tstb %d3 <== NOT EXECUTED
522ce: 6600 011a bnew 523ea <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(
522d2: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED
522d6: 486e fffc pea %fp@(-4) <== NOT EXECUTED
522da: 08c1 000f bset #15,%d1 <== NOT EXECUTED
522de: 2f01 movel %d1,%sp@- <== NOT EXECUTED
522e0: 4878 0100 pea 100 <DBL_MANT_DIG+0xcb> <== NOT EXECUTED
522e4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
522e8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
522ea: 2f3c 5449 4d45 movel #1414090053,%sp@- <== NOT EXECUTED
522f0: 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) {
522f6: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED
522fa: 4a80 tstl %d0 <== NOT EXECUTED
522fc: 670c beqs 5230a <rtems_timer_initiate_server+0x8c><== NOT EXECUTED
initialized = false;
522fe: 4201 clrb %d1 <== NOT EXECUTED
52300: 13c1 0007 19fa moveb %d1,719fa <initialized.3589> <== NOT EXECUTED
return status;
52306: 6000 00e4 braw 523ec <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)
5230a: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
5230e: 4281 clrl %d1 <== NOT EXECUTED
52310: 2079 0007 64b2 moveal 764b2 <_RTEMS_tasks_Information+0x18>,%a0<== NOT EXECUTED
52316: 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(
52318: 41f0 1c00 lea %a0@(00000000,%d1:l:4),%a0 <== NOT EXECUTED
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
5231c: 223c 0007 19ac movel #465324,%d1 <== NOT EXECUTED
52322: 23d0 0007 197c movel %a0@,7197c <_Timer_server_Default> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
52328: 41f9 0007 19b0 lea 719b0 <_Timer_server_Default+0x34>,%a0 <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
5232e: 23c1 0007 19b4 movel %d1,719b4 <_Timer_server_Default+0x38><== NOT EXECUTED
52334: 223c 0007 19e4 movel #465380,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
5233a: 23c8 0007 19ac movel %a0,719ac <_Timer_server_Default+0x30><== NOT EXECUTED
52340: 41f9 0007 19e8 lea 719e8 <_Timer_server_Default+0x6c>,%a0 <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
52346: 23c1 0007 19ec movel %d1,719ec <_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;
5234c: 223c 0005 2164 movel #336228,%d1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
52352: 23c8 0007 19e4 movel %a0,719e4 <_Timer_server_Default+0x68><== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
52358: 41f9 0005 4ac8 lea 54ac8 <_Thread_Delay_ended>,%a0 <== NOT EXECUTED
5235e: 23c1 0007 1980 movel %d1,71980 <_Timer_server_Default+0x4> <== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
52364: 2239 0007 664c movel 7664c <_Watchdog_Ticks_since_boot>,%d1<== NOT EXECUTED
5236a: 23c8 0007 19a0 movel %a0,719a0 <_Timer_server_Default+0x24><== NOT EXECUTED
52370: 23c8 0007 19d8 movel %a0,719d8 <_Timer_server_Default+0x5c><== NOT EXECUTED
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
52376: 41f9 0007 65aa lea 765aa <_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;
5237c: 23c1 0007 19b8 movel %d1,719b8 <_Timer_server_Default+0x3c><== NOT EXECUTED
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
52382: 23d0 0007 19f0 movel %a0@,719f0 <_Timer_server_Default+0x74><== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
52388: 41f9 0007 197c lea 7197c <_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;
5238e: 4201 clrb %d1 <== NOT EXECUTED
_Timer_server = ts;
/*
* Start the timer server
*/
status = rtems_task_start(
52390: 2f08 movel %a0,%sp@- <== NOT EXECUTED
52392: 487a fc06 pea %pc@(51f9a <_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;
52396: 42b9 0007 19f4 clrl 719f4 <_Timer_server_Default+0x78> <== NOT EXECUTED
ts->active = false;
5239c: 13c1 0007 19f8 moveb %d1,719f8 <_Timer_server_Default+0x7c><== NOT EXECUTED
_Timer_server = ts;
/*
* Start the timer server
*/
status = rtems_task_start(
523a2: 2f00 movel %d0,%sp@- <== NOT EXECUTED
the_chain->permanent_null = NULL;
523a4: 42b9 0007 19b0 clrl 719b0 <_Timer_server_Default+0x34> <== NOT EXECUTED
523aa: 42b9 0007 19e8 clrl 719e8 <_Timer_server_Default+0x6c> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
523b0: 42b9 0007 198c clrl 7198c <_Timer_server_Default+0x10> <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
523b6: 23c0 0007 19a4 movel %d0,719a4 <_Timer_server_Default+0x28><== NOT EXECUTED
the_watchdog->user_data = user_data;
523bc: 42b9 0007 19a8 clrl 719a8 <_Timer_server_Default+0x2c> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
523c2: 42b9 0007 19c4 clrl 719c4 <_Timer_server_Default+0x48> <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
523c8: 23c0 0007 19dc movel %d0,719dc <_Timer_server_Default+0x60><== NOT EXECUTED
the_watchdog->user_data = user_data;
523ce: 42b9 0007 19e0 clrl 719e0 <_Timer_server_Default+0x64> <== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
523d4: 23c8 0007 6dde movel %a0,76dde <_Timer_server> <== NOT EXECUTED
/*
* Start the timer server
*/
status = rtems_task_start(
523da: 4eb9 0005 1784 jsr 51784 <rtems_task_start> <== NOT EXECUTED
if (status) {
initialized = false;
}
#endif
return status;
523e0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
523e4: 6006 bras 523ec <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;
523e6: 7013 moveq #19,%d0 <== NOT EXECUTED
523e8: 6002 bras 523ec <rtems_timer_initiate_server+0x16e><== NOT EXECUTED
tmpInitialized = initialized;
initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
return RTEMS_INCORRECT_STATE;
523ea: 700e moveq #14,%d0 <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
523ec: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED
523f0: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED
523f4: 4e5e unlk %fp <== NOT EXECUTED
00051ca0 <rtems_timer_reset>:
*/
rtems_status_code rtems_timer_reset(
rtems_id id
)
{
51ca0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
51ca4: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51ca6: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51ca8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51cac: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
51cb0: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51cb6: 4eb9 0005 43dc jsr 543dc <_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 ) {
51cbc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51cc0: 2440 moveal %d0,%a2 <== NOT EXECUTED
51cc2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51cc6: 6656 bnes 51d1e <rtems_timer_reset+0x7e> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
51cc8: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED
51ccc: 661c bnes 51cea <rtems_timer_reset+0x4a> <== NOT EXECUTED
_Watchdog_Remove( &the_timer->Ticker );
51cce: 45ea 0010 lea %a2@(16),%a2 <== NOT EXECUTED
51cd2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51cd4: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
51cda: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51cdc: 4879 0007 65e2 pea 765e2 <_Watchdog_Ticks_chain> <== NOT EXECUTED
51ce2: 4eb9 0005 5e98 jsr 55e98 <_Watchdog_Insert> <== NOT EXECUTED
51ce8: 6020 bras 51d0a <rtems_timer_reset+0x6a> <== NOT EXECUTED
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
51cea: 7201 moveq #1,%d1 <== NOT EXECUTED
51cec: b280 cmpl %d0,%d1 <== NOT EXECUTED
51cee: 6622 bnes 51d12 <rtems_timer_reset+0x72> <== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
51cf0: 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;
51cf4: 2679 0007 6dde moveal 76dde <_Timer_server>,%a3 <== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
51cfa: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
51d00: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51d02: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51d04: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED
51d08: 4e90 jsr %a0@ <== NOT EXECUTED
51d0a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
rtems_id id
)
{
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
51d0e: 95ca subal %a2,%a2 <== NOT EXECUTED
51d10: 6004 bras 51d16 <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;
51d12: 347c 000b moveaw #11,%a2 <== NOT EXECUTED
}
_Thread_Enable_dispatch();
51d16: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
return status;
51d1c: 6004 bras 51d22 <rtems_timer_reset+0x82> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51d1e: 347c 0004 moveaw #4,%a2 <== NOT EXECUTED
}
51d22: 200a movel %a2,%d0 <== NOT EXECUTED
51d24: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED
51d28: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED
51d2c: 4e5e unlk %fp <== NOT EXECUTED
00051d30 <rtems_timer_server_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
51d30: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED
51d34: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED
51d38: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
51d3c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
51d40: 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;
51d44: 2679 0007 6dde moveal 76dde <_Timer_server>,%a3 <== NOT EXECUTED
if ( !timer_server )
51d4a: 4a8b tstl %a3 <== NOT EXECUTED
51d4c: 6700 0086 beqw 51dd4 <rtems_timer_server_fire_after+0xa4><== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !routine )
51d50: 4a84 tstl %d4 <== NOT EXECUTED
51d52: 6700 0084 beqw 51dd8 <rtems_timer_server_fire_after+0xa8><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
51d56: 4a82 tstl %d2 <== NOT EXECUTED
51d58: 6700 0082 beqw 51ddc <rtems_timer_server_fire_after+0xac><== NOT EXECUTED
51d5c: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51d60: 2f03 movel %d3,%sp@- <== NOT EXECUTED
51d62: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51d68: 4eb9 0005 43dc jsr 543dc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51d6e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51d72: 2440 moveal %d0,%a2 <== NOT EXECUTED
51d74: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51d78: 6666 bnes 51de0 <rtems_timer_server_fire_after+0xb0><== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
51d7a: 486a 0010 pea %a2@(16) <== NOT EXECUTED
51d7e: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
_ISR_Disable( level );
51d84: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
51d8a: 40c1 movew %sr,%d1 <== NOT EXECUTED
51d8c: 8081 orl %d1,%d0 <== NOT EXECUTED
51d8e: 46c0 movew %d0,%sr <== NOT EXECUTED
51d90: 49f9 0005 4c42 lea 54c42 <_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 ) {
51d96: 588f addql #4,%sp <== NOT EXECUTED
51d98: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED
51d9c: 6706 beqs 51da4 <rtems_timer_server_fire_after+0x74><== NOT EXECUTED
_ISR_Enable( level );
51d9e: 46c1 movew %d1,%sr <== NOT EXECUTED
_Thread_Enable_dispatch();
51da0: 4e94 jsr %a4@ <== NOT EXECUTED
51da2: 602c bras 51dd0 <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;
51da4: 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;
51da6: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED
51dac: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
51db0: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
51db4: 2544 002c movel %d4,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
51db8: 2543 0030 movel %d3,%a2@(48) <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = ticks;
51dbc: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
_ISR_Enable( level );
51dc0: 46c1 movew %d1,%sr <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
51dc2: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51dc4: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51dc6: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED
51dca: 4e90 jsr %a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
51dcc: 4e94 jsr %a4@ <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51dce: 508f addql #8,%sp <== NOT EXECUTED
51dd0: 4280 clrl %d0 <== NOT EXECUTED
51dd2: 600e bras 51de2 <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;
51dd4: 700e moveq #14,%d0 <== NOT EXECUTED
51dd6: 600a bras 51de2 <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
51dd8: 7009 moveq #9,%d0 <== NOT EXECUTED
51dda: 6006 bras 51de2 <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
51ddc: 700a moveq #10,%d0 <== NOT EXECUTED
51dde: 6002 bras 51de2 <rtems_timer_server_fire_after+0xb2><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51de0: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51de2: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED
51de8: 4e5e unlk %fp <== NOT EXECUTED
00051dec <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
51dec: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
51df0: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
51df4: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
51df8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
51dfc: 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;
51e00: 2679 0007 6dde moveal 76dde <_Timer_server>,%a3 <== NOT EXECUTED
if ( !timer_server )
51e06: 4a8b tstl %a3 <== NOT EXECUTED
51e08: 6700 0098 beqw 51ea2 <rtems_timer_server_fire_when+0xb6><== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
51e0c: 4a39 0007 6530 tstb 76530 <_TOD_Is_set> <== NOT EXECUTED
51e12: 6700 0092 beqw 51ea6 <rtems_timer_server_fire_when+0xba><== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !routine )
51e16: 4a84 tstl %d4 <== NOT EXECUTED
51e18: 6700 0090 beqw 51eaa <rtems_timer_server_fire_when+0xbe><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
51e1c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51e1e: 4eb9 0004 f2b4 jsr 4f2b4 <_TOD_Validate> <== NOT EXECUTED
51e24: 588f addql #4,%sp <== NOT EXECUTED
51e26: 4a00 tstb %d0 <== NOT EXECUTED
51e28: 6700 0084 beqw 51eae <rtems_timer_server_fire_when+0xc2><== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
51e2c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
51e2e: 4eb9 0004 f218 jsr 4f218 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51e34: 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 );
51e36: 2400 movel %d0,%d2 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
51e38: b0b9 0007 65aa cmpl 765aa <_TOD_Now>,%d0 <== NOT EXECUTED
51e3e: 636e blss 51eae <rtems_timer_server_fire_when+0xc2><== NOT EXECUTED
51e40: 486e fffc pea %fp@(-4) <== NOT EXECUTED
51e44: 2f03 movel %d3,%sp@- <== NOT EXECUTED
51e46: 4879 0007 6da4 pea 76da4 <_Timer_Information> <== NOT EXECUTED
51e4c: 4eb9 0005 43dc jsr 543dc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
51e52: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51e56: 2440 moveal %d0,%a2 <== NOT EXECUTED
51e58: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
51e5c: 6654 bnes 51eb2 <rtems_timer_server_fire_when+0xc6><== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
51e5e: 486a 0010 pea %a2@(16) <== NOT EXECUTED
51e62: 4eb9 0005 5fb4 jsr 55fb4 <_Watchdog_Remove> <== NOT EXECUTED
the_watchdog->user_data = user_data;
51e68: 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();
51e6e: 94b9 0007 65aa subl 765aa <_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;
51e74: 7003 moveq #3,%d0 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
51e76: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED
51e7a: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED
the_watchdog->routine = routine;
51e7e: 2544 002c movel %d4,%a2@(44) <== NOT EXECUTED
the_watchdog->id = id;
51e82: 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();
51e86: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
51e8a: 2f0a movel %a2,%sp@- <== NOT EXECUTED
51e8c: 2f0b movel %a3,%sp@- <== NOT EXECUTED
51e8e: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED
51e92: 4e90 jsr %a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
51e94: 4eb9 0005 4c42 jsr 54c42 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
51e9a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
51e9e: 4280 clrl %d0 <== NOT EXECUTED
51ea0: 6012 bras 51eb4 <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;
51ea2: 700e moveq #14,%d0 <== NOT EXECUTED
51ea4: 600e bras 51eb4 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
51ea6: 700b moveq #11,%d0 <== NOT EXECUTED
51ea8: 600a bras 51eb4 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
51eaa: 7009 moveq #9,%d0 <== NOT EXECUTED
51eac: 6006 bras 51eb4 <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;
51eae: 7014 moveq #20,%d0 <== NOT EXECUTED
51eb0: 6002 bras 51eb4 <rtems_timer_server_fire_when+0xc8><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
51eb2: 7004 moveq #4,%d0 <== NOT EXECUTED
}
51eb4: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED
51eba: 4e5e unlk %fp <== NOT EXECUTED
...
00046082 <rtems_workspace_allocate>:
*/
bool rtems_workspace_allocate(
uintptr_t bytes,
void **pointer
)
{
46082: 4e56 0000 linkw %fp,#0
46086: 202e 0008 movel %fp@(8),%d0
4608a: 2f0a movel %a2,%sp@-
4608c: 246e 000c moveal %fp@(12),%a2
void *ptr;
/*
* check the arguments
*/
if ( !pointer )
46090: 4a8a tstl %a2
46092: 6724 beqs 460b8 <rtems_workspace_allocate+0x36> <== NEVER TAKEN
return false;
if ( !bytes )
46094: 4a80 tstl %d0
46096: 6720 beqs 460b8 <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 );
46098: 42a7 clrl %sp@-
4609a: 42a7 clrl %sp@-
4609c: 2f00 movel %d0,%sp@-
4609e: 4879 0005 e36a pea 5e36a <_Workspace_Area>
460a4: 4eb9 0004 758c jsr 4758c <_Protected_heap_Allocate_aligned_with_boundary>
/*
* Allocate the memory
*/
ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes );
if (!ptr)
460aa: 4fef 0010 lea %sp@(16),%sp
460ae: 4a80 tstl %d0
460b0: 6706 beqs 460b8 <rtems_workspace_allocate+0x36> <== NEVER TAKEN
return false;
*pointer = ptr;
460b2: 2480 movel %d0,%a2@
return true;
460b4: 7001 moveq #1,%d0
460b6: 6002 bras 460ba <rtems_workspace_allocate+0x38>
/*
* Allocate the memory
*/
ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes );
if (!ptr)
return false;
460b8: 4200 clrb %d0 <== NOT EXECUTED
*pointer = ptr;
return true;
}
460ba: 246e fffc moveal %fp@(-4),%a2
460be: 4e5e unlk %fp <== NOT EXECUTED
000460c2 <rtems_workspace_free>:
* _Workspace_Allocate
*/
bool rtems_workspace_free(
void *pointer
)
{
460c2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _Protected_heap_Free( &_Workspace_Area, pointer );
460c6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
460ca: 4879 0005 e36a pea 5e36a <_Workspace_Area> <== NOT EXECUTED
460d0: 4eb9 0004 75cc jsr 475cc <_Protected_heap_Free> <== NOT EXECUTED
}
460d6: 4e5e unlk %fp <== NOT EXECUTED
...
00046060 <rtems_workspace_get_information>:
#include <string.h> /* for memset */
bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
46060: 4e56 0000 linkw %fp,#0
46064: 202e 0008 movel %fp@(8),%d0
if ( !the_info )
46068: 6712 beqs 4607c <rtems_workspace_get_information+0x1c><== NEVER TAKEN
return false;
return _Protected_heap_Get_information( &_Workspace_Area, the_info );
4606a: 2f00 movel %d0,%sp@-
4606c: 4879 0005 e36a pea 5e36a <_Workspace_Area>
46072: 4eb9 0004 7604 jsr 47604 <_Protected_heap_Get_information>
46078: 508f addql #8,%sp
4607a: 6002 bras 4607e <rtems_workspace_get_information+0x1e>
bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
if ( !the_info )
return false;
4607c: 4200 clrb %d0 <== NOT EXECUTED
return _Protected_heap_Get_information( &_Workspace_Area, the_info );
}
4607e: 4e5e unlk %fp <== NOT EXECUTED
00045d94 <sched_get_priority_max>:
int sched_get_priority_max(
int policy
)
{
switch ( policy ) {
45d94: 7004 moveq #4,%d0 <== NOT EXECUTED
#include <rtems/posix/priority.h>
int sched_get_priority_max(
int policy
)
{
45d96: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45d9a: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
switch ( policy ) {
45d9e: b081 cmpl %d1,%d0 <== NOT EXECUTED
45da0: 650c bcss 45dae <sched_get_priority_max+0x1a> <== NOT EXECUTED
45da2: 103c 0001 moveb #1,%d0 <== NOT EXECUTED
45da6: e3a8 lsll %d1,%d0 <== NOT EXECUTED
45da8: 7217 moveq #23,%d1 <== NOT EXECUTED
45daa: c081 andl %d1,%d0 <== NOT EXECUTED
45dac: 6610 bnes 45dbe <sched_get_priority_max+0x2a> <== NOT EXECUTED
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
45dae: 4eb9 0004 d448 jsr 4d448 <__errno> <== NOT EXECUTED
45db4: 2040 moveal %d0,%a0 <== NOT EXECUTED
45db6: 7016 moveq #22,%d0 <== NOT EXECUTED
45db8: 2080 movel %d0,%a0@ <== NOT EXECUTED
45dba: 70ff moveq #-1,%d0 <== NOT EXECUTED
45dbc: 600a bras 45dc8 <sched_get_priority_max+0x34> <== NOT EXECUTED
}
return POSIX_SCHEDULER_MAXIMUM_PRIORITY;
45dbe: 4280 clrl %d0 <== NOT EXECUTED
45dc0: 1039 0005 d1d6 moveb 5d1d6 <rtems_maximum_priority>,%d0 <== NOT EXECUTED
45dc6: 5380 subql #1,%d0 <== NOT EXECUTED
}
45dc8: 4e5e unlk %fp <== NOT EXECUTED
00045dcc <sched_get_priority_min>:
int sched_get_priority_min(
int policy
)
{
switch ( policy ) {
45dcc: 7004 moveq #4,%d0 <== NOT EXECUTED
#include <rtems/posix/priority.h>
int sched_get_priority_min(
int policy
)
{
45dce: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45dd2: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
switch ( policy ) {
45dd6: b081 cmpl %d1,%d0 <== NOT EXECUTED
45dd8: 650c bcss 45de6 <sched_get_priority_min+0x1a> <== NOT EXECUTED
45dda: 103c 0001 moveb #1,%d0 <== NOT EXECUTED
45dde: e3a8 lsll %d1,%d0 <== NOT EXECUTED
45de0: 7217 moveq #23,%d1 <== NOT EXECUTED
45de2: c081 andl %d1,%d0 <== NOT EXECUTED
45de4: 6610 bnes 45df6 <sched_get_priority_min+0x2a> <== NOT EXECUTED
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
45de6: 4eb9 0004 d448 jsr 4d448 <__errno> <== NOT EXECUTED
45dec: 2040 moveal %d0,%a0 <== NOT EXECUTED
45dee: 7016 moveq #22,%d0 <== NOT EXECUTED
45df0: 2080 movel %d0,%a0@ <== NOT EXECUTED
45df2: 70ff moveq #-1,%d0 <== NOT EXECUTED
45df4: 6002 bras 45df8 <sched_get_priority_min+0x2c> <== NOT EXECUTED
}
return POSIX_SCHEDULER_MINIMUM_PRIORITY;
45df6: 7001 moveq #1,%d0 <== NOT EXECUTED
}
45df8: 4e5e unlk %fp <== NOT EXECUTED
0004554c <sched_getparam>:
int sched_getparam(
pid_t pid __attribute__((unused)),
struct sched_param *param __attribute__((unused))
)
{
4554c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45550: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
45556: 4e5e unlk %fp <== NOT EXECUTED
int sched_getparam(
pid_t pid __attribute__((unused)),
struct sched_param *param __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45558: 2040 moveal %d0,%a0 <== NOT EXECUTED
4555a: 7058 moveq #88,%d0 <== NOT EXECUTED
4555c: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
4555e: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045564 <sched_getscheduler>:
#include <rtems/posix/time.h>
int sched_getscheduler(
pid_t pid __attribute__((unused))
)
{
45564: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45568: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
4556e: 4e5e unlk %fp <== NOT EXECUTED
int sched_getscheduler(
pid_t pid __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45570: 2040 moveal %d0,%a0 <== NOT EXECUTED
45572: 7058 moveq #88,%d0 <== NOT EXECUTED
45574: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
45576: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045dfc <sched_rr_get_interval>:
int sched_rr_get_interval(
pid_t pid,
struct timespec *interval
)
{
45dfc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45e00: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45e02: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
45e06: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45e08: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid && pid != getpid() )
45e0c: 4a83 tstl %d3 <== NOT EXECUTED
45e0e: 6718 beqs 45e28 <sched_rr_get_interval+0x2c> <== NOT EXECUTED
45e10: 4eb9 0004 2ec8 jsr 42ec8 <getpid> <== NOT EXECUTED
45e16: b083 cmpl %d3,%d0 <== NOT EXECUTED
45e18: 670e beqs 45e28 <sched_rr_get_interval+0x2c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ESRCH );
45e1a: 4eb9 0004 d448 jsr 4d448 <__errno> <== NOT EXECUTED
45e20: 7203 moveq #3,%d1 <== NOT EXECUTED
45e22: 2040 moveal %d0,%a0 <== NOT EXECUTED
45e24: 2081 movel %d1,%a0@ <== NOT EXECUTED
45e26: 6010 bras 45e38 <sched_rr_get_interval+0x3c> <== NOT EXECUTED
if ( !interval )
45e28: 4a82 tstl %d2 <== NOT EXECUTED
45e2a: 6610 bnes 45e3c <sched_rr_get_interval+0x40> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
45e2c: 4eb9 0004 d448 jsr 4d448 <__errno> <== NOT EXECUTED
45e32: 2040 moveal %d0,%a0 <== NOT EXECUTED
45e34: 7016 moveq #22,%d0 <== NOT EXECUTED
45e36: 2080 movel %d0,%a0@ <== NOT EXECUTED
45e38: 70ff moveq #-1,%d0 <== NOT EXECUTED
45e3a: 6012 bras 45e4e <sched_rr_get_interval+0x52> <== NOT EXECUTED
_Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );
45e3c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
45e3e: 2f39 0005 ea14 movel 5ea14 <_Thread_Ticks_per_timeslice>,%sp@-<== NOT EXECUTED
45e44: 4eb9 0004 908c jsr 4908c <_Timespec_From_ticks> <== NOT EXECUTED
return 0;
45e4a: 508f addql #8,%sp <== NOT EXECUTED
45e4c: 4280 clrl %d0 <== NOT EXECUTED
}
45e4e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
45e52: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED
45e56: 4e5e unlk %fp <== NOT EXECUTED
...
0004557c <sched_setparam>:
int sched_setparam(
pid_t pid __attribute__((unused)),
const struct sched_param *param __attribute__((unused))
)
{
4557c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45580: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
45586: 4e5e unlk %fp <== NOT EXECUTED
int sched_setparam(
pid_t pid __attribute__((unused)),
const struct sched_param *param __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
45588: 2040 moveal %d0,%a0 <== NOT EXECUTED
4558a: 7058 moveq #88,%d0 <== NOT EXECUTED
4558c: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
4558e: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045594 <sched_setscheduler>:
int sched_setscheduler(
pid_t pid __attribute__((unused)),
int policy __attribute__((unused)),
const struct sched_param *param __attribute__((unused))
)
{
45594: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
45598: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
4559e: 4e5e unlk %fp <== NOT EXECUTED
pid_t pid __attribute__((unused)),
int policy __attribute__((unused)),
const struct sched_param *param __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
455a0: 2040 moveal %d0,%a0 <== NOT EXECUTED
455a2: 7058 moveq #88,%d0 <== NOT EXECUTED
455a4: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
455a6: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00045e5c <sched_yield>:
#include <rtems/seterr.h>
#include <rtems/posix/priority.h>
#include <rtems/posix/time.h>
int sched_yield( void )
{
45e5c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45e60: 2039 0005 ea5c movel 5ea5c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
45e66: 5280 addql #1,%d0 <== NOT EXECUTED
45e68: 23c0 0005 ea5c movel %d0,5ea5c <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
_Thread_Yield_processor();
45e6e: 4eb9 0004 8fdc jsr 48fdc <_Thread_Yield_processor> <== NOT EXECUTED
_Thread_Enable_dispatch();
45e74: 4eb9 0004 83c6 jsr 483c6 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
}
45e7a: 4280 clrl %d0 <== NOT EXECUTED
45e7c: 4e5e unlk %fp <== NOT EXECUTED
000482f0 <sem_close>:
*/
int sem_close(
sem_t *sem
)
{
482f0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
sem_t *id,
Objects_Locations *location
)
{
return (POSIX_Semaphore_Control *)
_Objects_Get( &_POSIX_Semaphore_Information, (Objects_Id)*id, location );
482f4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
482f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
482fc: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
482fe: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
48304: 4eb9 0004 a2f8 jsr 4a2f8 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
4830a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4830e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
48312: 661a bnes 4832e <sem_close+0x3e> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_semaphore->open_count -= 1;
48314: 2040 moveal %d0,%a0 <== NOT EXECUTED
48316: 53a8 0016 subql #1,%a0@(22) <== NOT EXECUTED
_POSIX_Semaphore_Delete( the_semaphore );
4831a: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4831c: 4eb9 0004 dee8 jsr 4dee8 <_POSIX_Semaphore_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
48322: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
48328: 588f addql #4,%sp <== NOT EXECUTED
4832a: 4280 clrl %d0 <== NOT EXECUTED
4832c: 600e bras 4833c <sem_close+0x4c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
4832e: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
48334: 2040 moveal %d0,%a0 <== NOT EXECUTED
48336: 7016 moveq #22,%d0 <== NOT EXECUTED
48338: 2080 movel %d0,%a0@ <== NOT EXECUTED
4833a: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
4833c: 4e5e unlk %fp <== NOT EXECUTED
00048340 <sem_destroy>:
*/
int sem_destroy(
sem_t *sem
)
{
48340: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
48344: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
48348: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4834a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4834e: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
48350: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
48356: 4eb9 0004 a2f8 jsr 4a2f8 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
4835c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
48360: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
48364: 6622 bnes 48388 <sem_destroy+0x48> <== NOT EXECUTED
48366: 45f9 0004 ab6a lea 4ab6a <_Thread_Enable_dispatch>,%a2 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Undefined operation on a named semaphore.
*/
if ( the_semaphore->named == true ) {
4836c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4836e: 4a28 0014 tstb %a0@(20) <== NOT EXECUTED
48372: 6704 beqs 48378 <sem_destroy+0x38> <== NOT EXECUTED
_Thread_Enable_dispatch();
48374: 4e92 jsr %a2@ <== NOT EXECUTED
48376: 6010 bras 48388 <sem_destroy+0x48> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
_POSIX_Semaphore_Delete( the_semaphore );
48378: 2f00 movel %d0,%sp@- <== NOT EXECUTED
4837a: 4eb9 0004 dee8 jsr 4dee8 <_POSIX_Semaphore_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
48380: 4e92 jsr %a2@ <== NOT EXECUTED
return 0;
48382: 588f addql #4,%sp <== NOT EXECUTED
48384: 4280 clrl %d0 <== NOT EXECUTED
48386: 600e bras 48396 <sem_destroy+0x56> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
48388: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
4838e: 2040 moveal %d0,%a0 <== NOT EXECUTED
48390: 7016 moveq #22,%d0 <== NOT EXECUTED
48392: 2080 movel %d0,%a0@ <== NOT EXECUTED
48394: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
48396: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
4839a: 4e5e unlk %fp <== NOT EXECUTED
...
000483a0 <sem_getvalue>:
int sem_getvalue(
sem_t *sem,
int *sval
)
{
483a0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
483a4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
483a8: 486e fffc pea %fp@(-4) <== NOT EXECUTED
483ac: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
483ae: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
483b4: 4eb9 0004 a2f8 jsr 4a2f8 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
483ba: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
483be: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
483c2: 6614 bnes 483d8 <sem_getvalue+0x38> <== NOT EXECUTED
case OBJECTS_LOCAL:
*sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore );
483c4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED
483c8: 2240 moveal %d0,%a1 <== NOT EXECUTED
483ca: 20a9 0062 movel %a1@(98),%a0@ <== NOT EXECUTED
_Thread_Enable_dispatch();
483ce: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
483d4: 4280 clrl %d0 <== NOT EXECUTED
483d6: 600e bras 483e6 <sem_getvalue+0x46> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
483d8: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
483de: 2040 moveal %d0,%a0 <== NOT EXECUTED
483e0: 7016 moveq #22,%d0 <== NOT EXECUTED
483e2: 2080 movel %d0,%a0@ <== NOT EXECUTED
483e4: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
483e6: 4e5e unlk %fp <== NOT EXECUTED
...
000483ec <sem_init>:
int sem_init(
sem_t *sem,
int pshared,
unsigned int value
)
{
483ec: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
483f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
483f2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED
int status;
POSIX_Semaphore_Control *the_semaphore;
if ( !sem )
483f6: 4a8a tstl %a2 <== NOT EXECUTED
483f8: 6610 bnes 4840a <sem_init+0x1e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
483fa: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
48400: 2040 moveal %d0,%a0 <== NOT EXECUTED
48402: 7016 moveq #22,%d0 <== NOT EXECUTED
48404: 2080 movel %d0,%a0@ <== NOT EXECUTED
48406: 70ff moveq #-1,%d0 <== NOT EXECUTED
48408: 6026 bras 48430 <sem_init+0x44> <== NOT EXECUTED
status = _POSIX_Semaphore_Create_support(
4840a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4840e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED
48412: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
48416: 42a7 clrl %sp@- <== NOT EXECUTED
48418: 4eb9 0004 ddf4 jsr 4ddf4 <_POSIX_Semaphore_Create_support> <== NOT EXECUTED
pshared,
value,
&the_semaphore
);
if ( status != -1 )
4841e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
48422: 72ff moveq #-1,%d1 <== NOT EXECUTED
48424: b280 cmpl %d0,%d1 <== NOT EXECUTED
48426: 6708 beqs 48430 <sem_init+0x44> <== NOT EXECUTED
*sem = the_semaphore->Object.id;
48428: 206e fffc moveal %fp@(-4),%a0 <== NOT EXECUTED
4842c: 24a8 0008 movel %a0@(8),%a2@ <== NOT EXECUTED
return status;
}
48430: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
48434: 4e5e unlk %fp <== NOT EXECUTED
00048438 <sem_open>:
int oflag,
...
/* mode_t mode, */
/* unsigned int value */
)
{
48438: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
4843c: 2039 0006 29a8 movel 629a8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
48442: 5280 addql #1,%d0 <== NOT EXECUTED
48444: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED
48448: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
4844c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED
48450: 23c0 0006 29a8 movel %d0,629a8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
48456: 2a04 movel %d4,%d5 <== NOT EXECUTED
48458: 0285 0000 0200 andil #512,%d5 <== NOT EXECUTED
4845e: 6706 beqs 48466 <sem_open+0x2e> <== NOT EXECUTED
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
48460: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED
48464: 6002 bras 48468 <sem_open+0x30> <== NOT EXECUTED
/* unsigned int value */
)
{
va_list arg;
mode_t mode;
unsigned int value = 0;
48466: 4283 clrl %d3 <== NOT EXECUTED
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
va_end(arg);
}
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
48468: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4846c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4846e: 4eb9 0004 df38 jsr 4df38 <_POSIX_Semaphore_Name_to_id> <== NOT EXECUTED
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "semaphore does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
48474: 508f addql #8,%sp <== NOT EXECUTED
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
va_end(arg);
}
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
48476: 2440 moveal %d0,%a2 <== NOT EXECUTED
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "semaphore does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
48478: 4a80 tstl %d0 <== NOT EXECUTED
4847a: 671c beqs 48498 <sem_open+0x60> <== NOT EXECUTED
/*
* Unless provided a valid name that did not already exist
* and we are willing to create then it is an error.
*/
if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {
4847c: 7002 moveq #2,%d0 <== NOT EXECUTED
4847e: b08a cmpl %a2,%d0 <== NOT EXECUTED
48480: 6604 bnes 48486 <sem_open+0x4e> <== NOT EXECUTED
48482: 4a85 tstl %d5 <== NOT EXECUTED
48484: 665e bnes 484e4 <sem_open+0xac> <== NOT EXECUTED
_Thread_Enable_dispatch();
48486: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( status, sem_t * );
4848c: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
48492: 2040 moveal %d0,%a0 <== NOT EXECUTED
48494: 208a movel %a2,%a0@ <== NOT EXECUTED
48496: 6076 bras 4850e <sem_open+0xd6> <== NOT EXECUTED
48498: 45f9 0004 ab6a lea 4ab6a <_Thread_Enable_dispatch>,%a2 <== NOT EXECUTED
/*
* Check for existence with creation.
*/
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
4849e: 0284 0000 0a00 andil #2560,%d4 <== NOT EXECUTED
484a4: 0c84 0000 0a00 cmpil #2560,%d4 <== NOT EXECUTED
484aa: 6610 bnes 484bc <sem_open+0x84> <== NOT EXECUTED
_Thread_Enable_dispatch();
484ac: 4e92 jsr %a2@ <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
484ae: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
484b4: 2040 moveal %d0,%a0 <== NOT EXECUTED
484b6: 7011 moveq #17,%d0 <== NOT EXECUTED
484b8: 2080 movel %d0,%a0@ <== NOT EXECUTED
484ba: 6052 bras 4850e <sem_open+0xd6> <== NOT EXECUTED
484bc: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
484c0: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
484c4: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
484ca: 4eb9 0004 a2f8 jsr 4a2f8 <_Objects_Get> <== NOT EXECUTED
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
the_semaphore->open_count += 1;
484d0: 2040 moveal %d0,%a0 <== NOT EXECUTED
484d2: 52a8 0016 addql #1,%a0@(22) <== NOT EXECUTED
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
484d6: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
the_semaphore->open_count += 1;
_Thread_Enable_dispatch();
484da: 4e92 jsr %a2@ <== NOT EXECUTED
_Thread_Enable_dispatch();
484dc: 4e92 jsr %a2@ <== NOT EXECUTED
goto return_id;
484de: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
484e2: 6022 bras 48506 <sem_open+0xce> <== NOT EXECUTED
/*
* At this point, the semaphore does not exist and everything has been
* checked. We should go ahead and create a semaphore.
*/
status =_POSIX_Semaphore_Create_support(
484e4: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
484e8: 2f03 movel %d3,%sp@- <== NOT EXECUTED
484ea: 42a7 clrl %sp@- <== NOT EXECUTED
484ec: 2f02 movel %d2,%sp@- <== NOT EXECUTED
484ee: 4eb9 0004 ddf4 jsr 4ddf4 <_POSIX_Semaphore_Create_support> <== NOT EXECUTED
484f4: 2400 movel %d0,%d2 <== NOT EXECUTED
/*
* errno was set by Create_support, so don't set it again.
*/
_Thread_Enable_dispatch();
484f6: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( status == -1 )
484fc: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
48500: 70ff moveq #-1,%d0 <== NOT EXECUTED
48502: b082 cmpl %d2,%d0 <== NOT EXECUTED
48504: 6708 beqs 4850e <sem_open+0xd6> <== NOT EXECUTED
return_id:
#if defined(RTEMS_USE_16_BIT_OBJECT)
the_semaphore->Semaphore_id = the_semaphore->Object.id;
id = &the_semaphore->Semaphore_id;
#else
id = (sem_t *)&the_semaphore->Object.id;
48506: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
4850a: 5080 addql #8,%d0 <== NOT EXECUTED
#endif
return id;
4850c: 6002 bras 48510 <sem_open+0xd8> <== NOT EXECUTED
*/
_Thread_Enable_dispatch();
if ( status == -1 )
return SEM_FAILED;
4850e: 70ff moveq #-1,%d0 <== NOT EXECUTED
id = &the_semaphore->Semaphore_id;
#else
id = (sem_t *)&the_semaphore->Object.id;
#endif
return id;
}
48510: 4cee 043c ffe0 moveml %fp@(-32),%d2-%d5/%a2 <== NOT EXECUTED
48516: 4e5e unlk %fp <== NOT EXECUTED
...
0004851c <sem_post>:
*/
int sem_post(
sem_t *sem
)
{
4851c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
48520: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
48524: 486e fffc pea %fp@(-4) <== NOT EXECUTED
48528: 2f10 movel %a0@,%sp@- <== NOT EXECUTED
4852a: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
48530: 4eb9 0004 a2f8 jsr 4a2f8 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
48536: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4853a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
4853e: 6620 bnes 48560 <sem_post+0x44> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_semaphore_Surrender(
48540: 2040 moveal %d0,%a0 <== NOT EXECUTED
48542: 42a7 clrl %sp@- <== NOT EXECUTED
48544: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED
48548: 4868 001a pea %a0@(26) <== NOT EXECUTED
4854c: 4eb9 0004 996c jsr 4996c <_CORE_semaphore_Surrender> <== NOT EXECUTED
NULL /* XXX need to define a routine to handle this case */
#else
NULL
#endif
);
_Thread_Enable_dispatch();
48552: 4eb9 0004 ab6a jsr 4ab6a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
48558: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4855c: 4280 clrl %d0 <== NOT EXECUTED
4855e: 600e bras 4856e <sem_post+0x52> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
48560: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
48566: 2040 moveal %d0,%a0 <== NOT EXECUTED
48568: 7016 moveq #22,%d0 <== NOT EXECUTED
4856a: 2080 movel %d0,%a0@ <== NOT EXECUTED
4856c: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
4856e: 4e5e unlk %fp <== NOT EXECUTED
...
00048574 <sem_timedwait>:
int sem_timedwait(
sem_t *sem,
const struct timespec *abstime
)
{
48574: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
48578: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4857c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
48580: 4eb9 0004 d43c jsr 4d43c <_POSIX_Absolute_timeout_to_ticks><== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks );
48586: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED
4858a: 7203 moveq #3,%d1 <== NOT EXECUTED
4858c: b280 cmpl %d0,%d1 <== NOT EXECUTED
4858e: 57c0 seq %d0 <== NOT EXECUTED
48590: 49c0 extbl %d0 <== NOT EXECUTED
48592: 4480 negl %d0 <== NOT EXECUTED
48594: 2f00 movel %d0,%sp@- <== NOT EXECUTED
48596: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4859a: 4eb9 0004 dfac jsr 4dfac <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED
lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
rtems_set_errno_and_return_minus_one( ETIMEDOUT );
}
return lock_status;
}
485a0: 4e5e unlk %fp <== NOT EXECUTED
000485a4 <sem_trywait>:
*/
int sem_trywait(
sem_t *sem
)
{
485a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER);
485a8: 42a7 clrl %sp@- <== NOT EXECUTED
485aa: 42a7 clrl %sp@- <== NOT EXECUTED
485ac: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
485b0: 4eb9 0004 dfac jsr 4dfac <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED
}
485b6: 4e5e unlk %fp <== NOT EXECUTED
...
000485bc <sem_unlink>:
*/
int sem_unlink(
const char *name
)
{
485bc: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED
485c0: 2039 0006 29a8 movel 629a8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
485c6: 5280 addql #1,%d0 <== NOT EXECUTED
485c8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
485cc: 23c0 0006 29a8 movel %d0,629a8 <_Thread_Dispatch_disable_level><== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
sem_t the_semaphore_id;
_Thread_Disable_dispatch();
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
485d2: 486e fffc pea %fp@(-4) <== NOT EXECUTED
485d6: 47f9 0004 ab6a lea 4ab6a <_Thread_Enable_dispatch>,%a3 <== NOT EXECUTED
485dc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
485e0: 4eb9 0004 df38 jsr 4df38 <_POSIX_Semaphore_Name_to_id> <== NOT EXECUTED
if ( status != 0 ) {
485e6: 508f addql #8,%sp <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
sem_t the_semaphore_id;
_Thread_Disable_dispatch();
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
485e8: 2400 movel %d0,%d2 <== NOT EXECUTED
if ( status != 0 ) {
485ea: 6710 beqs 485fc <sem_unlink+0x40> <== NOT EXECUTED
_Thread_Enable_dispatch();
485ec: 4e93 jsr %a3@ <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( status );
485ee: 4eb9 0005 06f8 jsr 506f8 <__errno> <== NOT EXECUTED
485f4: 2040 moveal %d0,%a0 <== NOT EXECUTED
485f6: 70ff moveq #-1,%d0 <== NOT EXECUTED
485f8: 2082 movel %d2,%a0@ <== NOT EXECUTED
485fa: 6034 bras 48630 <sem_unlink+0x74> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
485fc: 4280 clrl %d0 <== NOT EXECUTED
485fe: 2079 0006 2bfc moveal 62bfc <_POSIX_Semaphore_Information+0x18>,%a0<== NOT EXECUTED
48604: 302e fffe movew %fp@(-2),%d0 <== NOT EXECUTED
}
the_semaphore = (POSIX_Semaphore_Control *) _Objects_Get_local_object(
48608: 2470 0c00 moveal %a0@(00000000,%d0:l:4),%a2 <== NOT EXECUTED
&_POSIX_Semaphore_Information,
_Objects_Get_index( the_semaphore_id )
);
the_semaphore->linked = false;
4860c: 4200 clrb %d0 <== NOT EXECUTED
4860e: 1540 0015 moveb %d0,%a2@(21) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove (
POSIX_Semaphore_Control *the_semaphore
)
{
_Objects_Namespace_remove(
48612: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48614: 4879 0006 2be4 pea 62be4 <_POSIX_Semaphore_Information> <== NOT EXECUTED
4861a: 4eb9 0004 a454 jsr 4a454 <_Objects_Namespace_remove> <== NOT EXECUTED
_POSIX_Semaphore_Namespace_remove( the_semaphore );
_POSIX_Semaphore_Delete( the_semaphore );
48620: 2f0a movel %a2,%sp@- <== NOT EXECUTED
48622: 4eb9 0004 dee8 jsr 4dee8 <_POSIX_Semaphore_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
48628: 4e93 jsr %a3@ <== NOT EXECUTED
return 0;
4862a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4862e: 4280 clrl %d0 <== NOT EXECUTED
}
48630: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED
48636: 4e5e unlk %fp <== NOT EXECUTED
...
0004863c <sem_wait>:
*/
int sem_wait(
sem_t *sem
)
{
4863c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER );
48640: 42a7 clrl %sp@- <== NOT EXECUTED
48642: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
48646: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4864a: 4eb9 0004 dfac jsr 4dfac <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED
}
48650: 4e5e unlk %fp <== NOT EXECUTED
00045358 <setitimer>:
int setitimer(
int which,
const struct itimerval *value,
struct itimerval *ovalue
)
{
45358: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
if ( !value )
4535c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED
45360: 6706 beqs 45368 <setitimer+0x10> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !ovalue )
45362: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED
45366: 660e bnes 45376 <setitimer+0x1e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
45368: 4eb9 0004 ce90 jsr 4ce90 <__errno> <== NOT EXECUTED
4536e: 2040 moveal %d0,%a0 <== NOT EXECUTED
45370: 700e moveq #14,%d0 <== NOT EXECUTED
45372: 2080 movel %d0,%a0@ <== NOT EXECUTED
45374: 6020 bras 45396 <setitimer+0x3e> <== NOT EXECUTED
45376: 41f9 0004 ce90 lea 4ce90 <__errno>,%a0 <== NOT EXECUTED
switch ( which ) {
4537c: 7002 moveq #2,%d0 <== NOT EXECUTED
4537e: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
45382: 650a bcss 4538e <setitimer+0x36> <== NOT EXECUTED
case ITIMER_REAL:
case ITIMER_VIRTUAL:
case ITIMER_PROF:
rtems_set_errno_and_return_minus_one( ENOSYS );
45384: 4e90 jsr %a0@ <== NOT EXECUTED
45386: 7258 moveq #88,%d1 <== NOT EXECUTED
45388: 2040 moveal %d0,%a0 <== NOT EXECUTED
4538a: 2081 movel %d1,%a0@ <== NOT EXECUTED
4538c: 6008 bras 45396 <setitimer+0x3e> <== NOT EXECUTED
default:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
4538e: 4e90 jsr %a0@ <== NOT EXECUTED
45390: 2040 moveal %d0,%a0 <== NOT EXECUTED
45392: 7016 moveq #22,%d0 <== NOT EXECUTED
45394: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
45396: 70ff moveq #-1,%d0 <== NOT EXECUTED
45398: 4e5e unlk %fp <== NOT EXECUTED
00045c90 <sigaction>:
int sigaction(
int sig,
const struct sigaction *act,
struct sigaction *oact
)
{
45c90: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
45c94: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED
45c98: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED
45c9c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED
45ca0: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
ISR_Level level;
if ( oact )
45ca4: 4a81 tstl %d1 <== NOT EXECUTED
45ca6: 6722 beqs 45cca <sigaction+0x3a> <== NOT EXECUTED
*oact = _POSIX_signals_Vectors[ sig ];
45ca8: 2602 movel %d2,%d3 <== NOT EXECUTED
45caa: 2002 movel %d2,%d0 <== NOT EXECUTED
45cac: 4878 000c pea c <OPER1> <== NOT EXECUTED
45cb0: e58b lsll #2,%d3 <== NOT EXECUTED
45cb2: e988 lsll #4,%d0 <== NOT EXECUTED
45cb4: 9083 subl %d3,%d0 <== NOT EXECUTED
45cb6: 0680 0005 fb8a addil #392074,%d0 <== NOT EXECUTED
45cbc: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45cbe: 2f01 movel %d1,%sp@- <== NOT EXECUTED
45cc0: 4eb9 0004 dfd4 jsr 4dfd4 <memcpy> <== NOT EXECUTED
45cc6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
if ( !sig )
45cca: 4a82 tstl %d2 <== NOT EXECUTED
45ccc: 6710 beqs 45cde <sigaction+0x4e> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
45cce: 2002 movel %d2,%d0 <== NOT EXECUTED
45cd0: 5380 subql #1,%d0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
45cd2: 721f moveq #31,%d1 <== NOT EXECUTED
45cd4: b280 cmpl %d0,%d1 <== NOT EXECUTED
45cd6: 6506 bcss 45cde <sigaction+0x4e> <== NOT EXECUTED
*
* NOTE: Solaris documentation claims to "silently enforce" this which
* contradicts the POSIX specification.
*/
if ( sig == SIGKILL )
45cd8: 7009 moveq #9,%d0 <== NOT EXECUTED
45cda: b082 cmpl %d2,%d0 <== NOT EXECUTED
45cdc: 6610 bnes 45cee <sigaction+0x5e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
45cde: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
45ce4: 2040 moveal %d0,%a0 <== NOT EXECUTED
45ce6: 7016 moveq #22,%d0 <== NOT EXECUTED
45ce8: 2080 movel %d0,%a0@ <== NOT EXECUTED
45cea: 70ff moveq #-1,%d0 <== NOT EXECUTED
45cec: 6060 bras 45d4e <sigaction+0xbe> <== NOT EXECUTED
/*
* Evaluate the new action structure and set the global signal vector
* appropriately.
*/
if ( act ) {
45cee: 4a8a tstl %a2 <== NOT EXECUTED
45cf0: 675a beqs 45d4c <sigaction+0xbc> <== NOT EXECUTED
/*
* Unless the user is installing the default signal actions, then
* we can just copy the provided sigaction structure into the vectors.
*/
_ISR_Disable( level );
45cf2: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED
45cf8: 40c3 movew %sr,%d3 <== NOT EXECUTED
45cfa: 8083 orl %d3,%d0 <== NOT EXECUTED
45cfc: 46c0 movew %d0,%sr <== NOT EXECUTED
45cfe: 780c moveq #12,%d4 <== NOT EXECUTED
45d00: 4c02 4800 mulsl %d2,%d4 <== NOT EXECUTED
45d04: 47f9 0004 dfd4 lea 4dfd4 <memcpy>,%a3 <== NOT EXECUTED
if ( act->sa_handler == SIG_DFL ) {
45d0a: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED
45d0e: 661e bnes 45d2e <sigaction+0x9e> <== NOT EXECUTED
_POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
45d10: 4878 000c pea c <OPER1> <== NOT EXECUTED
45d14: 2004 movel %d4,%d0 <== NOT EXECUTED
45d16: 0680 0005 d118 addil #381208,%d0 <== NOT EXECUTED
45d1c: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45d1e: 0684 0005 fb8a addil #392074,%d4 <== NOT EXECUTED
45d24: 2f04 movel %d4,%sp@- <== NOT EXECUTED
45d26: 4e93 jsr %a3@ <== NOT EXECUTED
45d28: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45d2c: 601c bras 45d4a <sigaction+0xba> <== NOT EXECUTED
} else {
_POSIX_signals_Clear_process_signals( sig );
45d2e: 2f02 movel %d2,%sp@- <== NOT EXECUTED
_POSIX_signals_Vectors[ sig ] = *act;
45d30: 0684 0005 fb8a addil #392074,%d4 <== NOT EXECUTED
_ISR_Disable( level );
if ( act->sa_handler == SIG_DFL ) {
_POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
} else {
_POSIX_signals_Clear_process_signals( sig );
45d36: 4eb9 0004 ae00 jsr 4ae00 <_POSIX_signals_Clear_process_signals><== NOT EXECUTED
_POSIX_signals_Vectors[ sig ] = *act;
45d3c: 4878 000c pea c <OPER1> <== NOT EXECUTED
45d40: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45d42: 2f04 movel %d4,%sp@- <== NOT EXECUTED
45d44: 4e93 jsr %a3@ <== NOT EXECUTED
45d46: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
}
_ISR_Enable( level );
45d4a: 46c3 movew %d3,%sr <== NOT EXECUTED
* now (signals not posted when SIG_IGN).
* + If we are now ignoring a signal that was previously pending,
* we clear the pending signal indicator.
*/
return 0;
45d4c: 4280 clrl %d0 <== NOT EXECUTED
}
45d4e: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED
45d54: 4e5e unlk %fp <== NOT EXECUTED
00045d58 <sigaddset>:
int sigaddset(
sigset_t *set,
int signo
)
{
45d58: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45d5c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
45d60: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED
if ( !set )
45d64: 4a88 tstl %a0 <== NOT EXECUTED
45d66: 670c beqs 45d74 <sigaddset+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
45d68: 4a81 tstl %d1 <== NOT EXECUTED
45d6a: 6708 beqs 45d74 <sigaddset+0x1c> <== NOT EXECUTED
45d6c: 5381 subql #1,%d1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(signo) )
45d6e: 701f moveq #31,%d0 <== NOT EXECUTED
45d70: b081 cmpl %d1,%d0 <== NOT EXECUTED
45d72: 6410 bccs 45d84 <sigaddset+0x2c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
45d74: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
45d7a: 2040 moveal %d0,%a0 <== NOT EXECUTED
45d7c: 7016 moveq #22,%d0 <== NOT EXECUTED
45d7e: 2080 movel %d0,%a0@ <== NOT EXECUTED
45d80: 70ff moveq #-1,%d0 <== NOT EXECUTED
45d82: 6008 bras 45d8c <sigaddset+0x34> <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
45d84: 7001 moveq #1,%d0 <== NOT EXECUTED
45d86: e3a8 lsll %d1,%d0 <== NOT EXECUTED
*set |= signo_to_mask(signo);
45d88: 8190 orl %d0,%a0@ <== NOT EXECUTED
return 0;
45d8a: 4280 clrl %d0 <== NOT EXECUTED
}
45d8c: 4e5e unlk %fp <== NOT EXECUTED
00047a98 <sigdelset>:
int sigdelset(
sigset_t *set,
int signo
)
{
47a98: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47a9c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
47aa0: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED
if ( !set )
47aa4: 4a88 tstl %a0 <== NOT EXECUTED
47aa6: 670c beqs 47ab4 <sigdelset+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
47aa8: 4a81 tstl %d1 <== NOT EXECUTED
47aaa: 6720 beqs 47acc <sigdelset+0x34> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
47aac: 5381 subql #1,%d1 <== NOT EXECUTED
return 0;
if ( !is_valid_signo(signo) )
47aae: 701f moveq #31,%d0 <== NOT EXECUTED
47ab0: b081 cmpl %d1,%d0 <== NOT EXECUTED
47ab2: 6410 bccs 47ac4 <sigdelset+0x2c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
47ab4: 4eb9 0004 f4c8 jsr 4f4c8 <__errno> <== NOT EXECUTED
47aba: 2040 moveal %d0,%a0 <== NOT EXECUTED
47abc: 7016 moveq #22,%d0 <== NOT EXECUTED
47abe: 2080 movel %d0,%a0@ <== NOT EXECUTED
47ac0: 70ff moveq #-1,%d0 <== NOT EXECUTED
47ac2: 600a bras 47ace <sigdelset+0x36> <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
47ac4: 7001 moveq #1,%d0 <== NOT EXECUTED
47ac6: e3a8 lsll %d1,%d0 <== NOT EXECUTED
*set &= ~signo_to_mask(signo);
47ac8: 4680 notl %d0 <== NOT EXECUTED
47aca: c190 andl %d0,%a0@ <== NOT EXECUTED
{
if ( !set )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
return 0;
47acc: 4280 clrl %d0 <== NOT EXECUTED
if ( !is_valid_signo(signo) )
rtems_set_errno_and_return_minus_one( EINVAL );
*set &= ~signo_to_mask(signo);
return 0;
}
47ace: 4e5e unlk %fp <== NOT EXECUTED
...
0004a4c4 <sigemptyset>:
#include <rtems/seterr.h>
int sigemptyset(
sigset_t *set
)
{
4a4c4: 4e56 0000 linkw %fp,#0
4a4c8: 206e 0008 moveal %fp@(8),%a0
if ( !set )
4a4cc: 4a88 tstl %a0
4a4ce: 6610 bnes 4a4e0 <sigemptyset+0x1c> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
4a4d0: 4eb9 0004 c88c jsr 4c88c <__errno> <== NOT EXECUTED
4a4d6: 2040 moveal %d0,%a0 <== NOT EXECUTED
4a4d8: 7016 moveq #22,%d0 <== NOT EXECUTED
4a4da: 2080 movel %d0,%a0@ <== NOT EXECUTED
4a4dc: 70ff moveq #-1,%d0 <== NOT EXECUTED
4a4de: 6004 bras 4a4e4 <sigemptyset+0x20> <== NOT EXECUTED
*set = 0;
4a4e0: 4290 clrl %a0@
return 0;
4a4e2: 4280 clrl %d0
}
4a4e4: 4e5e unlk %fp <== NOT EXECUTED
00047af8 <sigfillset>:
#include <rtems/seterr.h>
int sigfillset(
sigset_t *set
)
{
47af8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47afc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
if ( !set )
47b00: 4a88 tstl %a0 <== NOT EXECUTED
47b02: 6610 bnes 47b14 <sigfillset+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
47b04: 4eb9 0004 f4c8 jsr 4f4c8 <__errno> <== NOT EXECUTED
47b0a: 7216 moveq #22,%d1 <== NOT EXECUTED
47b0c: 2040 moveal %d0,%a0 <== NOT EXECUTED
47b0e: 70ff moveq #-1,%d0 <== NOT EXECUTED
47b10: 2081 movel %d1,%a0@ <== NOT EXECUTED
47b12: 6006 bras 47b1a <sigfillset+0x22> <== NOT EXECUTED
*set = SIGNAL_ALL_MASK;
47b14: 70ff moveq #-1,%d0 <== NOT EXECUTED
47b16: 2080 movel %d0,%a0@ <== NOT EXECUTED
return 0;
47b18: 4280 clrl %d0 <== NOT EXECUTED
}
47b1a: 4e5e unlk %fp <== NOT EXECUTED
...
00047b20 <sigismember>:
int sigismember(
const sigset_t *set,
int signo
)
{
47b20: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47b24: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
47b28: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED
if ( !set )
47b2c: 4a88 tstl %a0 <== NOT EXECUTED
47b2e: 670c beqs 47b3c <sigismember+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
47b30: 4a81 tstl %d1 <== NOT EXECUTED
47b32: 6726 beqs 47b5a <sigismember+0x3a> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
47b34: 5381 subql #1,%d1 <== NOT EXECUTED
return 0;
if ( !is_valid_signo(signo) )
47b36: 701f moveq #31,%d0 <== NOT EXECUTED
47b38: b081 cmpl %d1,%d0 <== NOT EXECUTED
47b3a: 6410 bccs 47b4c <sigismember+0x2c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
47b3c: 4eb9 0004 f4c8 jsr 4f4c8 <__errno> <== NOT EXECUTED
47b42: 2040 moveal %d0,%a0 <== NOT EXECUTED
47b44: 7016 moveq #22,%d0 <== NOT EXECUTED
47b46: 2080 movel %d0,%a0@ <== NOT EXECUTED
47b48: 70ff moveq #-1,%d0 <== NOT EXECUTED
47b4a: 6010 bras 47b5c <sigismember+0x3c> <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
47b4c: 7001 moveq #1,%d0 <== NOT EXECUTED
47b4e: e3a8 lsll %d1,%d0 <== NOT EXECUTED
if ( *set & signo_to_mask(signo) )
47b50: c090 andl %a0@,%d0 <== NOT EXECUTED
const sigset_t *set,
int signo
)
{
if ( !set )
rtems_set_errno_and_return_minus_one( EINVAL );
47b52: 56c0 sne %d0 <== NOT EXECUTED
47b54: 49c0 extbl %d0 <== NOT EXECUTED
47b56: 4480 negl %d0 <== NOT EXECUTED
47b58: 6002 bras 47b5c <sigismember+0x3c> <== NOT EXECUTED
if ( !signo )
return 0;
47b5a: 4280 clrl %d0 <== NOT EXECUTED
if ( *set & signo_to_mask(signo) )
return 1;
return 0;
}
47b5c: 4e5e unlk %fp <== NOT EXECUTED
00045ce0 <signal>:
sighandler_t signal(
int signum,
sighandler_t handler
)
{
45ce0: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
struct sigaction s;
struct sigaction old;
s.sa_handler = handler ;
45ce4: 2d6e 000c fffc movel %fp@(12),%fp@(-4) <== NOT EXECUTED
sigemptyset(&s.sa_mask);
45cea: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
45cee: 4eb9 0004 5cbc jsr 45cbc <sigemptyset> <== NOT EXECUTED
s.sa_flags = SA_RESTART;
#else
s.sa_flags = 0;
#endif
sigaction( signum, &s, &old );
45cf4: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED
45cf8: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
45cfc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
s.sa_flags = SA_RESTART | SA_INTERRUPT | SA_NOMASK;
s.sa_restorer= NULL ;
#elif defined(signal_like_SVR4)
s.sa_flags = SA_RESTART;
#else
s.sa_flags = 0;
45d00: 42ae fff4 clrl %fp@(-12) <== NOT EXECUTED
#endif
sigaction( signum, &s, &old );
45d04: 4eb9 0004 5bbc jsr 45bbc <sigaction> <== NOT EXECUTED
return (sighandler_t) old.sa_handler;
}
45d0a: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED
45d0e: 4e5e unlk %fp <== NOT EXECUTED
...
00045db4 <sigpending>:
#include <rtems/seterr.h>
int sigpending(
sigset_t *set
)
{
45db4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
45db8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED
POSIX_API_Control *api;
if ( !set )
45dbc: 4a88 tstl %a0 <== NOT EXECUTED
45dbe: 6610 bnes 45dd0 <sigpending+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
45dc0: 4eb9 0004 d710 jsr 4d710 <__errno> <== NOT EXECUTED
45dc6: 2040 moveal %d0,%a0 <== NOT EXECUTED
45dc8: 7016 moveq #22,%d0 <== NOT EXECUTED
45dca: 2080 movel %d0,%a0@ <== NOT EXECUTED
45dcc: 70ff moveq #-1,%d0 <== NOT EXECUTED
45dce: 6018 bras 45de8 <sigpending+0x34> <== NOT EXECUTED
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
45dd0: 2279 0005 fb7c moveal 5fb7c <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
*set = api->signals_pending | _POSIX_signals_Pending;
45dd6: 2039 0005 fd7e movel 5fd7e <_POSIX_signals_Pending>,%d0 <== NOT EXECUTED
45ddc: 2269 010e moveal %a1@(270),%a1 <== NOT EXECUTED
45de0: 80a9 00d4 orl %a1@(212),%d0 <== NOT EXECUTED
45de4: 2080 movel %d0,%a0@ <== NOT EXECUTED
return 0;
45de6: 4280 clrl %d0 <== NOT EXECUTED
}
45de8: 4e5e unlk %fp <== NOT EXECUTED
00045dec <sigprocmask>:
int sigprocmask(
int how,
const sigset_t *set,
sigset_t *oset
)
{
45dec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
#if defined(RTEMS_POSIX_API)
return pthread_sigmask( how, set, oset );
#else
return -1;
#endif
}
45df0: 4e5e unlk %fp <== NOT EXECUTED
/*
* P1003.1c/Draft 10, p. 38 maps sigprocmask to pthread_sigmask.
*/
#if defined(RTEMS_POSIX_API)
return pthread_sigmask( how, set, oset );
45df2: 4ef9 0004 b4ac jmp 4b4ac <pthread_sigmask> <== NOT EXECUTED
00047ba4 <sigqueue>:
int sigqueue(
pid_t pid,
int signo,
const union sigval value
)
{
47ba4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return killinfo( pid, signo, &value );
47ba8: 486e 0010 pea %fp@(16) <== NOT EXECUTED
47bac: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
47bb0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47bb4: 4eb9 0004 cd20 jsr 4cd20 <killinfo> <== NOT EXECUTED
}
47bba: 4e5e unlk %fp <== NOT EXECUTED
...
00047bc0 <sigsuspend>:
#include <rtems/seterr.h>
int sigsuspend(
const sigset_t *sigmask
)
{
47bc0: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED
47bc4: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED
/*
* We use SIG_BLOCK and not SIG_SETMASK because there may be
* signals which might be pending, which might get caught here.
* We want the signals to be caught inside sigtimedwait.
*/
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
47bc8: 240e movel %fp,%d2 <== NOT EXECUTED
47bca: 5982 subql #4,%d2 <== NOT EXECUTED
47bcc: 45f9 0004 7b98 lea 47b98 <sigprocmask>,%a2 <== NOT EXECUTED
47bd2: 2f02 movel %d2,%sp@- <== NOT EXECUTED
#include <rtems/seterr.h>
int sigsuspend(
const sigset_t *sigmask
)
{
47bd4: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
/*
* We use SIG_BLOCK and not SIG_SETMASK because there may be
* signals which might be pending, which might get caught here.
* We want the signals to be caught inside sigtimedwait.
*/
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
47bd8: 2f0b movel %a3,%sp@- <== NOT EXECUTED
47bda: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
47bde: 4e92 jsr %a2@ <== NOT EXECUTED
current_unblocked_signals = ~(*sigmask);
47be0: 2013 movel %a3@,%d0 <== NOT EXECUTED
47be2: 4680 notl %d0 <== NOT EXECUTED
status = sigtimedwait( ¤t_unblocked_signals, NULL, NULL );
47be4: 42a7 clrl %sp@- <== NOT EXECUTED
47be6: 42a7 clrl %sp@- <== NOT EXECUTED
47be8: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
* signals which might be pending, which might get caught here.
* We want the signals to be caught inside sigtimedwait.
*/
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
current_unblocked_signals = ~(*sigmask);
47bec: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED
status = sigtimedwait( ¤t_unblocked_signals, NULL, NULL );
47bf0: 4eb9 0004 7c68 jsr 47c68 <sigtimedwait> <== NOT EXECUTED
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
47bf6: 42a7 clrl %sp@- <== NOT EXECUTED
47bf8: 2f02 movel %d2,%sp@- <== NOT EXECUTED
47bfa: 42a7 clrl %sp@- <== NOT EXECUTED
47bfc: 4e92 jsr %a2@ <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
assert( status != -1 );
#endif
rtems_set_errno_and_return_minus_one( EINTR );
47bfe: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED
47c02: 4eb9 0004 f4c8 jsr 4f4c8 <__errno> <== NOT EXECUTED
}
47c08: 4cee 0c04 ffec moveml %fp@(-20),%d2/%a2-%a3 <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
assert( status != -1 );
#endif
rtems_set_errno_and_return_minus_one( EINTR );
47c0e: 2040 moveal %d0,%a0 <== NOT EXECUTED
47c10: 7004 moveq #4,%d0 <== NOT EXECUTED
}
47c12: 4e5e unlk %fp <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
assert( status != -1 );
#endif
rtems_set_errno_and_return_minus_one( EINTR );
47c14: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
47c16: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
00046080 <sigtimedwait>:
int sigtimedwait(
const sigset_t *set,
siginfo_t *info,
const struct timespec *timeout
)
{
46080: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED
46084: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED
46088: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED
4608c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
46090: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED
ISR_Level level;
/*
* Error check parameters before disabling interrupts.
*/
if ( !set )
46094: 4a8b tstl %a3 <== NOT EXECUTED
46096: 6730 beqs 460c8 <sigtimedwait+0x48> <== NOT EXECUTED
/* NOTE: This is very specifically a RELATIVE not ABSOLUTE time
* in the Open Group specification.
*/
interval = 0;
if ( timeout ) {
46098: 4a82 tstl %d2 <== NOT EXECUTED
4609a: 673c beqs 460d8 <sigtimedwait+0x58> <== NOT EXECUTED
if ( !_Timespec_Is_valid( timeout ) )
4609c: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4609e: 4eb9 0004 937c jsr 4937c <_Timespec_Is_valid> <== NOT EXECUTED
460a4: 588f addql #4,%sp <== NOT EXECUTED
460a6: 4a00 tstb %d0 <== NOT EXECUTED
460a8: 6610 bnes 460ba <sigtimedwait+0x3a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
460aa: 4eb9 0004 dc90 jsr 4dc90 <__errno> <== NOT EXECUTED
460b0: 7616 moveq #22,%d3 <== NOT EXECUTED
460b2: 2240 moveal %d0,%a1 <== NOT EXECUTED
460b4: 2283 movel %d3,%a1@ <== NOT EXECUTED
460b6: 6000 0144 braw 461fc <sigtimedwait+0x17c> <== NOT EXECUTED
interval = _Timespec_To_ticks( timeout );
460ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED
460bc: 4eb9 0004 93e8 jsr 493e8 <_Timespec_To_ticks> <== NOT EXECUTED
if ( !interval )
460c2: 588f addql #4,%sp <== NOT EXECUTED
460c4: 4a80 tstl %d0 <== NOT EXECUTED
460c6: 6612 bnes 460da <sigtimedwait+0x5a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
460c8: 4eb9 0004 dc90 jsr 4dc90 <__errno> <== NOT EXECUTED
460ce: 7416 moveq #22,%d2 <== NOT EXECUTED
460d0: 2040 moveal %d0,%a0 <== NOT EXECUTED
460d2: 2082 movel %d2,%a0@ <== NOT EXECUTED
460d4: 6000 0126 braw 461fc <sigtimedwait+0x17c> <== NOT EXECUTED
/* NOTE: This is very specifically a RELATIVE not ABSOLUTE time
* in the Open Group specification.
*/
interval = 0;
460d8: 4280 clrl %d0 <== NOT EXECUTED
/*
* Initialize local variables.
*/
the_info = ( info ) ? info : &signal_information;
460da: 4a8a tstl %a2 <== NOT EXECUTED
460dc: 6604 bnes 460e2 <sigtimedwait+0x62> <== NOT EXECUTED
460de: 45ee fff4 lea %fp@(-12),%a2 <== NOT EXECUTED
the_thread = _Thread_Executing;
460e2: 2079 0005 ff4c moveal 5ff4c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
* What if they are already pending?
*/
/* API signals pending? */
_ISR_Disable( level );
460e8: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED
the_info = ( info ) ? info : &signal_information;
the_thread = _Thread_Executing;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
460ee: 2868 010e moveal %a0@(270),%a4 <== NOT EXECUTED
* What if they are already pending?
*/
/* API signals pending? */
_ISR_Disable( level );
460f2: 40c3 movew %sr,%d3 <== NOT EXECUTED
460f4: 8283 orl %d3,%d1 <== NOT EXECUTED
460f6: 46c1 movew %d1,%sr <== NOT EXECUTED
if ( *set & api->signals_pending ) {
460f8: 2413 movel %a3@,%d2 <== NOT EXECUTED
460fa: 2802 movel %d2,%d4 <== NOT EXECUTED
460fc: 222c 00d4 movel %a4@(212),%d1 <== NOT EXECUTED
46100: c881 andl %d1,%d4 <== NOT EXECUTED
46102: 672a beqs 4612e <sigtimedwait+0xae> <== NOT EXECUTED
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
46104: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46106: 4eb9 0004 6034 jsr 46034 <_POSIX_signals_Get_lowest> <== NOT EXECUTED
4610c: 2480 movel %d0,%a2@ <== NOT EXECUTED
_POSIX_signals_Clear_signals(
4610e: 4297 clrl %sp@ <== NOT EXECUTED
46110: 42a7 clrl %sp@- <== NOT EXECUTED
46112: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46114: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46116: 2f0c movel %a4,%sp@- <== NOT EXECUTED
46118: 4eb9 0004 b448 jsr 4b448 <_POSIX_signals_Clear_signals> <== NOT EXECUTED
the_info->si_signo,
the_info,
false,
false
);
_ISR_Enable( level );
4611e: 46c3 movew %d3,%sr <== NOT EXECUTED
the_info->si_code = SI_USER;
46120: 7001 moveq #1,%d0 <== NOT EXECUTED
the_info->si_value.sival_int = 0;
46122: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED
return the_info->si_signo;
46126: 2412 movel %a2@,%d2 <== NOT EXECUTED
false,
false
);
_ISR_Enable( level );
the_info->si_code = SI_USER;
46128: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED
4612c: 6036 bras 46164 <sigtimedwait+0xe4> <== NOT EXECUTED
return the_info->si_signo;
}
/* Process pending signals? */
if ( *set & _POSIX_signals_Pending ) {
4612e: 2239 0006 014e movel 6014e <_POSIX_signals_Pending>,%d1 <== NOT EXECUTED
46134: 4bf9 0004 b448 lea 4b448 <_POSIX_signals_Clear_signals>,%a5<== NOT EXECUTED
4613a: c481 andl %d1,%d2 <== NOT EXECUTED
4613c: 672e beqs 4616c <sigtimedwait+0xec> <== NOT EXECUTED
signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );
4613e: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46140: 4eb9 0004 6034 jsr 46034 <_POSIX_signals_Get_lowest> <== NOT EXECUTED
46146: 2400 movel %d0,%d2 <== NOT EXECUTED
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
46148: 4297 clrl %sp@ <== NOT EXECUTED
4614a: 4878 0001 pea 1 <ADD> <== NOT EXECUTED
4614e: 2f0a movel %a2,%sp@- <== NOT EXECUTED
46150: 2f00 movel %d0,%sp@- <== NOT EXECUTED
46152: 2f0c movel %a4,%sp@- <== NOT EXECUTED
46154: 4e95 jsr %a5@ <== NOT EXECUTED
_ISR_Enable( level );
46156: 46c3 movew %d3,%sr <== NOT EXECUTED
the_info->si_signo = signo;
the_info->si_code = SI_USER;
46158: 7201 moveq #1,%d1 <== NOT EXECUTED
if ( *set & _POSIX_signals_Pending ) {
signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
_ISR_Enable( level );
the_info->si_signo = signo;
4615a: 2482 movel %d2,%a2@ <== NOT EXECUTED
the_info->si_code = SI_USER;
4615c: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED
the_info->si_value.sival_int = 0;
46160: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED
return signo;
46164: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
46168: 6000 0094 braw 461fe <sigtimedwait+0x17e> <== NOT EXECUTED
}
the_info->si_signo = -1;
4616c: 72ff moveq #-1,%d1 <== NOT EXECUTED
4616e: 2481 movel %d1,%a2@ <== NOT EXECUTED
46170: 2239 0005 fabc movel 5fabc <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED
46176: 5281 addql #1,%d1 <== NOT EXECUTED
46178: 23c1 0005 fabc movel %d1,5fabc <_Thread_Dispatch_disable_level><== NOT EXECUTED
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
the_thread->Wait.return_code = EINTR;
4617e: 7204 moveq #4,%d1 <== NOT EXECUTED
}
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
46180: 43f9 0006 00e6 lea 600e6 <_POSIX_signals_Wait_queue>,%a1 <== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
46186: 2141 0034 movel %d1,%a0@(52) <== NOT EXECUTED
the_thread->Wait.option = *set;
4618a: 2153 0030 movel %a3@,%a0@(48) <== 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;
4618e: 123c 0001 moveb #1,%d1 <== NOT EXECUTED
the_thread->Wait.return_argument = the_info;
46192: 214a 0028 movel %a2,%a0@(40) <== NOT EXECUTED
}
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
46196: 2149 0044 movel %a1,%a0@(68) <== NOT EXECUTED
4619a: 23c1 0006 0116 movel %d1,60116 <_POSIX_signals_Wait_queue+0x30><== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
the_thread->Wait.return_argument = the_info;
_Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
_ISR_Enable( level );
461a0: 46c3 movew %d3,%sr <== NOT EXECUTED
_Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );
461a2: 4879 0004 8e48 pea 48e48 <_Thread_queue_Timeout> <== NOT EXECUTED
461a8: 2f00 movel %d0,%sp@- <== NOT EXECUTED
461aa: 4879 0006 00e6 pea 600e6 <_POSIX_signals_Wait_queue> <== NOT EXECUTED
461b0: 4eb9 0004 8b38 jsr 48b38 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED
_Thread_Enable_dispatch();
461b6: 4eb9 0004 86b6 jsr 486b6 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* When the thread is set free by a signal, it is need to eliminate
* the signal.
*/
_POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
461bc: 42a7 clrl %sp@- <== NOT EXECUTED
461be: 42a7 clrl %sp@- <== NOT EXECUTED
461c0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
461c2: 2f12 movel %a2@,%sp@- <== NOT EXECUTED
461c4: 2f0c movel %a4,%sp@- <== NOT EXECUTED
461c6: 4e95 jsr %a5@ <== NOT EXECUTED
/* Set errno only if return code is not EINTR or
* if EINTR was caused by a signal being caught, which
* was not in our set.
*/
if ( (_Thread_Executing->Wait.return_code != EINTR)
461c8: 2079 0005 ff4c moveal 5ff4c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
461ce: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED
461d2: 7004 moveq #4,%d0 <== NOT EXECUTED
461d4: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED
461d8: 6610 bnes 461ea <sigtimedwait+0x16a> <== NOT EXECUTED
|| !(*set & signo_to_mask( the_info->si_signo )) ) {
461da: 2412 movel %a2@,%d2 <== NOT EXECUTED
461dc: 2202 movel %d2,%d1 <== NOT EXECUTED
461de: 5381 subql #1,%d1 <== NOT EXECUTED
461e0: 103c 0001 moveb #1,%d0 <== NOT EXECUTED
461e4: e3a8 lsll %d1,%d0 <== NOT EXECUTED
461e6: c093 andl %a3@,%d0 <== NOT EXECUTED
461e8: 6614 bnes 461fe <sigtimedwait+0x17e> <== NOT EXECUTED
errno = _Thread_Executing->Wait.return_code;
461ea: 4eb9 0004 dc90 jsr 4dc90 <__errno> <== NOT EXECUTED
461f0: 2079 0005 ff4c moveal 5ff4c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED
461f6: 2240 moveal %d0,%a1 <== NOT EXECUTED
461f8: 22a8 0034 movel %a0@(52),%a1@ <== NOT EXECUTED
return -1;
461fc: 74ff moveq #-1,%d2 <== NOT EXECUTED
}
return the_info->si_signo;
}
461fe: 2002 movel %d2,%d0 <== NOT EXECUTED
46200: 4cee 3c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a5 <== NOT EXECUTED
46206: 4e5e unlk %fp <== NOT EXECUTED
...
00047e0c <sigwait>:
int sigwait(
const sigset_t *set,
int *sig
)
{
47e0c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
47e10: 2f0a movel %a2,%sp@- <== NOT EXECUTED
47e12: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
int status;
status = sigtimedwait( set, NULL, NULL );
47e16: 42a7 clrl %sp@- <== NOT EXECUTED
47e18: 42a7 clrl %sp@- <== NOT EXECUTED
47e1a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47e1e: 4eb9 0004 7c68 jsr 47c68 <sigtimedwait> <== NOT EXECUTED
if ( status != -1 ) {
47e24: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
47e28: 72ff moveq #-1,%d1 <== NOT EXECUTED
47e2a: b280 cmpl %d0,%d1 <== NOT EXECUTED
47e2c: 6708 beqs 47e36 <sigwait+0x2a> <== NOT EXECUTED
if ( sig )
47e2e: 4a8a tstl %a2 <== NOT EXECUTED
47e30: 6710 beqs 47e42 <sigwait+0x36> <== NOT EXECUTED
*sig = status;
47e32: 2480 movel %d0,%a2@ <== NOT EXECUTED
47e34: 600c bras 47e42 <sigwait+0x36> <== NOT EXECUTED
return 0;
}
return errno;
47e36: 4eb9 0004 f4c8 jsr 4f4c8 <__errno> <== NOT EXECUTED
47e3c: 2040 moveal %d0,%a0 <== NOT EXECUTED
47e3e: 2010 movel %a0@,%d0 <== NOT EXECUTED
47e40: 6002 bras 47e44 <sigwait+0x38> <== NOT EXECUTED
status = sigtimedwait( set, NULL, NULL );
if ( status != -1 ) {
if ( sig )
*sig = status;
return 0;
47e42: 4280 clrl %d0 <== NOT EXECUTED
}
return errno;
}
47e44: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED
47e48: 4e5e unlk %fp <== NOT EXECUTED
00047df4 <sigwaitinfo>:
int sigwaitinfo(
const sigset_t *set,
siginfo_t *info
)
{
47df4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return sigtimedwait( set, info, NULL );
47df8: 42a7 clrl %sp@- <== NOT EXECUTED
47dfa: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED
47dfe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
47e02: 4eb9 0004 7c68 jsr 47c68 <sigtimedwait> <== NOT EXECUTED
}
47e08: 4e5e unlk %fp <== NOT EXECUTED
000451f4 <sysconf>:
long sysconf(
int name
)
{
if ( name == _SC_CLK_TCK )
451f4: 7002 moveq #2,%d0 <== NOT EXECUTED
*/
long sysconf(
int name
)
{
451f6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
451fa: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED
451fe: 2f02 movel %d2,%sp@- <== NOT EXECUTED
if ( name == _SC_CLK_TCK )
45200: b081 cmpl %d1,%d0 <== NOT EXECUTED
45202: 6612 bnes 45216 <sysconf+0x22> <== NOT EXECUTED
return (TOD_MICROSECONDS_PER_SECOND /
45204: 41f9 0005 c6e4 lea 5c6e4 <Configuration+0xc>,%a0 <== NOT EXECUTED
4520a: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED
45210: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED
45214: 6034 bras 4524a <sysconf+0x56> <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick());
if ( name == _SC_OPEN_MAX )
45216: 7004 moveq #4,%d0 <== NOT EXECUTED
45218: b081 cmpl %d1,%d0 <== NOT EXECUTED
4521a: 6608 bnes 45224 <sysconf+0x30> <== NOT EXECUTED
return rtems_libio_number_iops;
4521c: 2039 0005 c604 movel 5c604 <rtems_libio_number_iops>,%d0 <== NOT EXECUTED
45222: 6026 bras 4524a <sysconf+0x56> <== NOT EXECUTED
if ( name == _SC_GETPW_R_SIZE_MAX )
return 1024;
45224: 203c 0000 0400 movel #1024,%d0 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick());
if ( name == _SC_OPEN_MAX )
return rtems_libio_number_iops;
if ( name == _SC_GETPW_R_SIZE_MAX )
4522a: 7433 moveq #51,%d2 <== NOT EXECUTED
4522c: b481 cmpl %d1,%d2 <== NOT EXECUTED
4522e: 671a beqs 4524a <sysconf+0x56> <== NOT EXECUTED
return 1024;
if ( name == _SC_PAGESIZE )
45230: 143c 0008 moveb #8,%d2 <== NOT EXECUTED
return PAGE_SIZE;
45234: 303c 1000 movew #4096,%d0 <== NOT EXECUTED
return rtems_libio_number_iops;
if ( name == _SC_GETPW_R_SIZE_MAX )
return 1024;
if ( name == _SC_PAGESIZE )
45238: b481 cmpl %d1,%d2 <== NOT EXECUTED
4523a: 670e beqs 4524a <sysconf+0x56> <== NOT EXECUTED
#if defined(__sparc__)
if ( name == 515 ) /* Solaris _SC_STACK_PROT */
return 0;
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
4523c: 4eb9 0004 cd48 jsr 4cd48 <__errno> <== NOT EXECUTED
45242: 2040 moveal %d0,%a0 <== NOT EXECUTED
45244: 7016 moveq #22,%d0 <== NOT EXECUTED
45246: 2080 movel %d0,%a0@ <== NOT EXECUTED
45248: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
4524a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
4524e: 4e5e unlk %fp <== NOT EXECUTED
...
00045298 <timer_create>:
timer_t *timerid
)
{
POSIX_Timer_Control *ptimer;
if ( clock_id != CLOCK_REALTIME )
45298: 7001 moveq #1,%d0 <== NOT EXECUTED
int timer_create(
clockid_t clock_id,
struct sigevent *evp,
timer_t *timerid
)
{
4529a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
4529e: 2f0b movel %a3,%sp@- <== NOT EXECUTED
452a0: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED
452a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED
452a6: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
POSIX_Timer_Control *ptimer;
if ( clock_id != CLOCK_REALTIME )
452aa: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED
452ae: 6620 bnes 452d0 <timer_create+0x38> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !timerid )
452b0: 4a8b tstl %a3 <== NOT EXECUTED
452b2: 671c beqs 452d0 <timer_create+0x38> <== NOT EXECUTED
/*
* The data of the structure evp are checked in order to verify if they
* are coherent.
*/
if (evp != NULL) {
452b4: 4a8a tstl %a2 <== NOT EXECUTED
452b6: 6726 beqs 452de <timer_create+0x46> <== NOT EXECUTED
/* The structure has data */
if ( ( evp->sigev_notify != SIGEV_NONE ) &&
452b8: 2012 movel %a2@,%d0 <== NOT EXECUTED
452ba: 7201 moveq #1,%d1 <== NOT EXECUTED
452bc: 5380 subql #1,%d0 <== NOT EXECUTED
452be: b280 cmpl %d0,%d1 <== NOT EXECUTED
452c0: 650e bcss 452d0 <timer_create+0x38> <== NOT EXECUTED
( evp->sigev_notify != SIGEV_SIGNAL ) ) {
/* The value of the field sigev_notify is not valid */
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !evp->sigev_signo )
452c2: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED
452c6: 6708 beqs 452d0 <timer_create+0x38> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
452c8: 5380 subql #1,%d0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(evp->sigev_signo) )
452ca: 721f moveq #31,%d1 <== NOT EXECUTED
452cc: b280 cmpl %d0,%d1 <== NOT EXECUTED
452ce: 640e bccs 452de <timer_create+0x46> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
452d0: 4eb9 0004 d17c jsr 4d17c <__errno> <== NOT EXECUTED
452d6: 7216 moveq #22,%d1 <== NOT EXECUTED
452d8: 2040 moveal %d0,%a0 <== NOT EXECUTED
452da: 2081 movel %d1,%a0@ <== NOT EXECUTED
452dc: 6034 bras 45312 <timer_create+0x7a> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
452de: 2039 0005 e5cc movel 5e5cc <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED
452e4: 5280 addql #1,%d0 <== NOT EXECUTED
452e6: 23c0 0005 e5cc movel %d0,5e5cc <_Thread_Dispatch_disable_level><== NOT EXECUTED
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{
return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
452ec: 4879 0005 e842 pea 5e842 <_POSIX_Timer_Information> <== NOT EXECUTED
452f2: 4eb9 0004 6f50 jsr 46f50 <_Objects_Allocate> <== NOT EXECUTED
/*
* Allocate a timer
*/
ptimer = _POSIX_Timer_Allocate();
if ( !ptimer ) {
452f8: 588f addql #4,%sp <== NOT EXECUTED
452fa: 2040 moveal %d0,%a0 <== NOT EXECUTED
452fc: 4a80 tstl %d0 <== NOT EXECUTED
452fe: 6616 bnes 45316 <timer_create+0x7e> <== NOT EXECUTED
_Thread_Enable_dispatch();
45300: 4eb9 0004 7b9a jsr 47b9a <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EAGAIN );
45306: 4eb9 0004 d17c jsr 4d17c <__errno> <== NOT EXECUTED
4530c: 2040 moveal %d0,%a0 <== NOT EXECUTED
4530e: 700b moveq #11,%d0 <== NOT EXECUTED
45310: 2080 movel %d0,%a0@ <== NOT EXECUTED
45312: 70ff moveq #-1,%d0 <== NOT EXECUTED
45314: 606a bras 45380 <timer_create+0xe8> <== NOT EXECUTED
}
/* The data of the created timer are stored to use them later */
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
45316: 7002 moveq #2,%d0 <== NOT EXECUTED
45318: 1140 003c moveb %d0,%a0@(60) <== NOT EXECUTED
ptimer->thread_id = _Thread_Executing->Object.id;
4531c: 2279 0005 ea5c moveal 5ea5c <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED
45322: 2169 0008 0038 movel %a1@(8),%a0@(56) <== NOT EXECUTED
if ( evp != NULL ) {
45328: 4a8a tstl %a2 <== NOT EXECUTED
4532a: 6710 beqs 4533c <timer_create+0xa4> <== NOT EXECUTED
ptimer->inf.sigev_notify = evp->sigev_notify;
4532c: 2152 003e movel %a2@,%a0@(62) <== NOT EXECUTED
ptimer->inf.sigev_signo = evp->sigev_signo;
45330: 216a 0004 0042 movel %a2@(4),%a0@(66) <== NOT EXECUTED
ptimer->inf.sigev_value = evp->sigev_value;
45336: 216a 0008 0046 movel %a2@(8),%a0@(70) <== NOT EXECUTED
uint32_t name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
4533c: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
45340: 4281 clrl %d1 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
45342: 2279 0005 e85a moveal 5e85a <_POSIX_Timer_Information+0x18>,%a1<== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
45348: 3200 movew %d0,%d1 <== NOT EXECUTED
}
ptimer->overrun = 0;
4534a: 42a8 0066 clrl %a0@(102) <== NOT EXECUTED
ptimer->timer_data.it_value.tv_sec = 0;
4534e: 42a8 005a clrl %a0@(90) <== NOT EXECUTED
ptimer->timer_data.it_value.tv_nsec = 0;
45352: 42a8 005e clrl %a0@(94) <== NOT EXECUTED
ptimer->timer_data.it_interval.tv_sec = 0;
45356: 42a8 0052 clrl %a0@(82) <== NOT EXECUTED
ptimer->timer_data.it_interval.tv_nsec = 0;
4535a: 42a8 0056 clrl %a0@(86) <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
4535e: 42a8 0018 clrl %a0@(24) <== NOT EXECUTED
the_watchdog->routine = routine;
45362: 42a8 002c clrl %a0@(44) <== NOT EXECUTED
the_watchdog->id = id;
45366: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED
the_watchdog->user_data = user_data;
4536a: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
4536e: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
45372: 42a8 000c clrl %a0@(12) <== NOT EXECUTED
_Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );
_Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);
*timerid = ptimer->Object.id;
45376: 2680 movel %d0,%a3@ <== NOT EXECUTED
_Thread_Enable_dispatch();
45378: 4eb9 0004 7b9a jsr 47b9a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
4537e: 4280 clrl %d0 <== NOT EXECUTED
}
45380: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
45384: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED
45388: 4e5e unlk %fp <== NOT EXECUTED
00045bc4 <timer_delete>:
int timer_delete(
timer_t timerid
)
{
45bc4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
45bc8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
_Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
45bca: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45bce: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
45bd2: 4879 0005 f22a pea 5f22a <_POSIX_Timer_Information> <== NOT EXECUTED
45bd8: 4eb9 0004 7b88 jsr 47b88 <_Objects_Get> <== NOT EXECUTED
*/
POSIX_Timer_Control *ptimer;
Objects_Locations location;
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
45bde: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45be2: 2440 moveal %d0,%a2 <== NOT EXECUTED
45be4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45be8: 663a bnes 45c24 <timer_delete+0x60> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_POSIX_Timer_Information, &ptimer->Object );
45bea: 2f00 movel %d0,%sp@- <== NOT EXECUTED
45bec: 4879 0005 f22a pea 5f22a <_POSIX_Timer_Information> <== NOT EXECUTED
45bf2: 4eb9 0004 77ac jsr 477ac <_Objects_Close> <== NOT EXECUTED
ptimer->state = POSIX_TIMER_STATE_FREE;
45bf8: 7001 moveq #1,%d0 <== NOT EXECUTED
45bfa: 1540 003c moveb %d0,%a2@(60) <== NOT EXECUTED
(void) _Watchdog_Remove( &ptimer->Timer );
45bfe: 486a 0010 pea %a2@(16) <== NOT EXECUTED
45c02: 4eb9 0004 94f4 jsr 494f4 <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Timer_Free (
POSIX_Timer_Control *the_timer
)
{
_Objects_Free( &_POSIX_Timer_Information, &the_timer->Object );
45c08: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45c0a: 4879 0005 f22a pea 5f22a <_POSIX_Timer_Information> <== NOT EXECUTED
45c10: 4eb9 0004 7a24 jsr 47a24 <_Objects_Free> <== NOT EXECUTED
_POSIX_Timer_Free( ptimer );
_Thread_Enable_dispatch();
45c16: 4eb9 0004 837a jsr 4837a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
45c1c: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED
45c20: 4280 clrl %d0 <== NOT EXECUTED
45c22: 600e bras 45c32 <timer_delete+0x6e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
45c24: 4eb9 0004 dd08 jsr 4dd08 <__errno> <== NOT EXECUTED
45c2a: 2040 moveal %d0,%a0 <== NOT EXECUTED
45c2c: 7016 moveq #22,%d0 <== NOT EXECUTED
45c2e: 2080 movel %d0,%a0@ <== NOT EXECUTED
45c30: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
45c32: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED
45c36: 4e5e unlk %fp <== NOT EXECUTED
...
00046664 <timer_getoverrun>:
* its execution, _POSIX_Timer_TSR will have to set this counter to 0.
*/
int timer_getoverrun(
timer_t timerid
)
{
46664: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED
46668: 2f02 movel %d2,%sp@- <== NOT EXECUTED
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
_Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
4666a: 486e fffc pea %fp@(-4) <== NOT EXECUTED
4666e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
46672: 4879 0006 0646 pea 60646 <_POSIX_Timer_Information> <== NOT EXECUTED
46678: 4eb9 0004 85b0 jsr 485b0 <_Objects_Get> <== NOT EXECUTED
int overrun;
POSIX_Timer_Control *ptimer;
Objects_Locations location;
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
4667e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
46682: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
46686: 6612 bnes 4669a <timer_getoverrun+0x36> <== NOT EXECUTED
case OBJECTS_LOCAL:
overrun = ptimer->overrun;
46688: 2040 moveal %d0,%a0 <== NOT EXECUTED
4668a: 2428 0066 movel %a0@(102),%d2 <== NOT EXECUTED
ptimer->overrun = 0;
4668e: 42a8 0066 clrl %a0@(102) <== NOT EXECUTED
_Thread_Enable_dispatch();
46692: 4eb9 0004 8da2 jsr 48da2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return overrun;
46698: 600e bras 466a8 <timer_getoverrun+0x44> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
4669a: 4eb9 0004 e3f0 jsr 4e3f0 <__errno> <== NOT EXECUTED
466a0: 74ff moveq #-1,%d2 <== NOT EXECUTED
466a2: 2040 moveal %d0,%a0 <== NOT EXECUTED
466a4: 7016 moveq #22,%d0 <== NOT EXECUTED
466a6: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
466a8: 2002 movel %d2,%d0 <== NOT EXECUTED
466aa: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED
466ae: 4e5e unlk %fp <== NOT EXECUTED
...
000466b4 <timer_gettime>:
int timer_gettime(
timer_t timerid,
struct itimerspec *value
)
{
466b4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED
466b8: 2f0b movel %a3,%sp@- <== NOT EXECUTED
466ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED
466bc: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED
POSIX_Timer_Control *ptimer;
Objects_Locations location;
struct timespec current_time;
Watchdog_Interval left;
if ( !value )
466c0: 4a8a tstl %a2 <== NOT EXECUTED
466c2: 6760 beqs 46724 <timer_gettime+0x70> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
/* Reads the current time */
_TOD_Get( ¤t_time );
466c4: 486e fff4 pea %fp@(-12) <== NOT EXECUTED
466c8: 4eb9 0004 7c44 jsr 47c44 <_TOD_Get> <== NOT EXECUTED
466ce: 486e fffc pea %fp@(-4) <== NOT EXECUTED
466d2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
466d6: 4879 0006 0646 pea 60646 <_POSIX_Timer_Information> <== NOT EXECUTED
466dc: 4eb9 0004 85b0 jsr 485b0 <_Objects_Get> <== NOT EXECUTED
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
466e2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
466e6: 2640 moveal %d0,%a3 <== NOT EXECUTED
466e8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
466ec: 6636 bnes 46724 <timer_gettime+0x70> <== NOT EXECUTED
left =
(ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */
_Watchdog_Ticks_since_boot; /* now */
_Timespec_From_ticks( left, &value->it_value );
466ee: 486a 0008 pea %a2@(8) <== NOT EXECUTED
case OBJECTS_LOCAL:
/* Calculates the time left before the timer finishes */
left =
(ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */
466f2: 222b 001c movel %a3@(28),%d1 <== NOT EXECUTED
466f6: d2ab 0024 addl %a3@(36),%d1 <== NOT EXECUTED
466fa: 2039 0006 04fc movel 604fc <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED
_Watchdog_Ticks_since_boot; /* now */
_Timespec_From_ticks( left, &value->it_value );
46700: 9280 subl %d0,%d1 <== NOT EXECUTED
46702: 2f01 movel %d1,%sp@- <== NOT EXECUTED
46704: 4eb9 0004 9a68 jsr 49a68 <_Timespec_From_ticks> <== NOT EXECUTED
value->it_interval = ptimer->timer_data.it_interval;
4670a: 202b 0052 movel %a3@(82),%d0 <== NOT EXECUTED
4670e: 222b 0056 movel %a3@(86),%d1 <== NOT EXECUTED
46712: 2480 movel %d0,%a2@ <== NOT EXECUTED
46714: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED
_Thread_Enable_dispatch();
46718: 4eb9 0004 8da2 jsr 48da2 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
4671e: 508f addql #8,%sp <== NOT EXECUTED
46720: 4280 clrl %d0 <== NOT EXECUTED
46722: 600e bras 46732 <timer_gettime+0x7e> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
46724: 4eb9 0004 e3f0 jsr 4e3f0 <__errno> <== NOT EXECUTED
4672a: 2040 moveal %d0,%a0 <== NOT EXECUTED
4672c: 7016 moveq #22,%d0 <== NOT EXECUTED
4672e: 2080 movel %d0,%a0@ <== NOT EXECUTED
46730: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
46732: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED
46736: 266e fff0 moveal %fp@(-16),%a3 <== NOT EXECUTED
4673a: 4e5e unlk %fp <== NOT EXECUTED
...
0004538c <timer_settime>:
timer_t timerid,
int flags,
const struct itimerspec *value,
struct itimerspec *ovalue
)
{
4538c: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED
45390: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED
45394: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED
45398: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED
4539c: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED
Objects_Locations location;
bool activated;
uint32_t initial_period;
struct itimerspec normalize;
if ( !value )
453a0: 4a8b tstl %a3 <== NOT EXECUTED
453a2: 6700 017c beqw 45520 <timer_settime+0x194> <== NOT EXECUTED
/*
* First, it verifies if the structure "value" is correct
* if the number of nanoseconds is not correct return EINVAL
*/
if ( !_Timespec_Is_valid( &(value->it_value) ) ) {
453a6: 486b 0008 pea %a3@(8) <== NOT EXECUTED
453aa: 45f9 0004 8890 lea 48890 <_Timespec_Is_valid>,%a2 <== NOT EXECUTED
453b0: 4e92 jsr %a2@ <== NOT EXECUTED
453b2: 588f addql #4,%sp <== NOT EXECUTED
453b4: 4a00 tstb %d0 <== NOT EXECUTED
453b6: 6700 0168 beqw 45520 <timer_settime+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {
453ba: 2f0b movel %a3,%sp@- <== NOT EXECUTED
453bc: 4e92 jsr %a2@ <== NOT EXECUTED
453be: 588f addql #4,%sp <== NOT EXECUTED
453c0: 4a00 tstb %d0 <== NOT EXECUTED
453c2: 6700 015c beqw 45520 <timer_settime+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {
453c6: 7004 moveq #4,%d0 <== NOT EXECUTED
453c8: b083 cmpl %d3,%d0 <== NOT EXECUTED
453ca: 6706 beqs 453d2 <timer_settime+0x46> <== NOT EXECUTED
453cc: 4a83 tstl %d3 <== NOT EXECUTED
453ce: 6600 0150 bnew 45520 <timer_settime+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
normalize = *value;
453d2: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
453d6: 2f0b movel %a3,%sp@- <== NOT EXECUTED
453d8: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED
453dc: 4eb9 0004 da28 jsr 4da28 <memcpy> <== NOT EXECUTED
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
453e2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
453e6: 7004 moveq #4,%d0 <== NOT EXECUTED
453e8: b083 cmpl %d3,%d0 <== NOT EXECUTED
453ea: 6638 bnes 45424 <timer_settime+0x98> <== NOT EXECUTED
struct timespec now;
_TOD_Get( &now );
453ec: 45ee fff4 lea %fp@(-12),%a2 <== NOT EXECUTED
/* Check for seconds in the past */
if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
453f0: 260e movel %fp,%d3 <== NOT EXECUTED
453f2: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED
normalize = *value;
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
struct timespec now;
_TOD_Get( &now );
453f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED
453fa: 4eb9 0004 6a64 jsr 46a64 <_TOD_Get> <== NOT EXECUTED
/* Check for seconds in the past */
if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
45400: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45402: 2f0a movel %a2,%sp@- <== NOT EXECUTED
45404: 4eb9 0004 8860 jsr 48860 <_Timespec_Greater_than> <== NOT EXECUTED
4540a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4540e: 4a00 tstb %d0 <== NOT EXECUTED
45410: 6600 010e bnew 45520 <timer_settime+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
_Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
45414: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45416: 2f03 movel %d3,%sp@- <== NOT EXECUTED
45418: 2f0a movel %a2,%sp@- <== NOT EXECUTED
4541a: 4eb9 0004 88b8 jsr 488b8 <_Timespec_Subtract> <== NOT EXECUTED
45420: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
_Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
45424: 486e fffc pea %fp@(-4) <== NOT EXECUTED
45428: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED
4542c: 4879 0005 e842 pea 5e842 <_POSIX_Timer_Information> <== NOT EXECUTED
45432: 4eb9 0004 73a8 jsr 473a8 <_Objects_Get> <== NOT EXECUTED
* something with the structure of times of the timer: to stop, start
* or start it again
*/
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
45438: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
4543c: 2440 moveal %d0,%a2 <== NOT EXECUTED
4543e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED
45442: 6600 00dc bnew 45520 <timer_settime+0x194> <== NOT EXECUTED
case OBJECTS_LOCAL:
/* First, it verifies if the timer must be stopped */
if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
45446: 4aae ffec tstl %fp@(-20) <== NOT EXECUTED
4544a: 6650 bnes 4549c <timer_settime+0x110> <== NOT EXECUTED
4544c: 4aae fff0 tstl %fp@(-16) <== NOT EXECUTED
45450: 664a bnes 4549c <timer_settime+0x110> <== NOT EXECUTED
/* Stop the timer */
(void) _Watchdog_Remove( &ptimer->Timer );
45452: 486a 0010 pea %a2@(16) <== NOT EXECUTED
45456: 4eb9 0004 8cd8 jsr 48cd8 <_Watchdog_Remove> <== NOT EXECUTED
/* The old data of the timer are returned */
if ( ovalue )
4545c: 588f addql #4,%sp <== NOT EXECUTED
4545e: 4a82 tstl %d2 <== NOT EXECUTED
45460: 6714 beqs 45476 <timer_settime+0xea> <== NOT EXECUTED
*ovalue = ptimer->timer_data;
45462: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
45466: 486a 0052 pea %a2@(82) <== NOT EXECUTED
4546a: 2f02 movel %d2,%sp@- <== NOT EXECUTED
4546c: 4eb9 0004 da28 jsr 4da28 <memcpy> <== NOT EXECUTED
45472: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
/* The new data are set */
ptimer->timer_data = normalize;
45476: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
4547a: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED
4547e: 486a 0052 pea %a2@(82) <== NOT EXECUTED
45482: 4eb9 0004 da28 jsr 4da28 <memcpy> <== NOT EXECUTED
/* Indicates that the timer is created and stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
45488: 7004 moveq #4,%d0 <== NOT EXECUTED
4548a: 1540 003c moveb %d0,%a2@(60) <== NOT EXECUTED
/* Returns with success */
_Thread_Enable_dispatch();
4548e: 4eb9 0004 7b9a jsr 47b9a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
45494: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
45498: 6000 0082 braw 4551c <timer_settime+0x190> <== NOT EXECUTED
}
/* Convert from seconds and nanoseconds to ticks */
ptimer->ticks = _Timespec_To_ticks( &value->it_interval );
4549c: 2f0b movel %a3,%sp@- <== NOT EXECUTED
4549e: 47f9 0004 88fc lea 488fc <_Timespec_To_ticks>,%a3 <== NOT EXECUTED
454a4: 4e93 jsr %a3@ <== NOT EXECUTED
454a6: 2540 0062 movel %d0,%a2@(98) <== NOT EXECUTED
initial_period = _Timespec_To_ticks( &normalize.it_value );
454aa: 486e ffec pea %fp@(-20) <== NOT EXECUTED
454ae: 4e93 jsr %a3@ <== NOT EXECUTED
activated = _POSIX_Timer_Insert_helper(
454b0: 2f0a movel %a2,%sp@- <== NOT EXECUTED
454b2: 4879 0004 5538 pea 45538 <_POSIX_Timer_TSR> <== NOT EXECUTED
454b8: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED
454bc: 2f00 movel %d0,%sp@- <== NOT EXECUTED
454be: 486a 0010 pea %a2@(16) <== NOT EXECUTED
454c2: 4eb9 0004 acc0 jsr 4acc0 <_POSIX_Timer_Insert_helper> <== NOT EXECUTED
initial_period,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated ) {
454c8: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED
454cc: 4a00 tstb %d0 <== NOT EXECUTED
454ce: 6608 bnes 454d8 <timer_settime+0x14c> <== NOT EXECUTED
_Thread_Enable_dispatch();
454d0: 4eb9 0004 7b9a jsr 47b9a <_Thread_Enable_dispatch> <== NOT EXECUTED
454d6: 6044 bras 4551c <timer_settime+0x190> <== NOT EXECUTED
/*
* The timer has been started and is running. So we return the
* old ones in "ovalue"
*/
if ( ovalue )
454d8: 4a82 tstl %d2 <== NOT EXECUTED
454da: 6714 beqs 454f0 <timer_settime+0x164> <== NOT EXECUTED
*ovalue = ptimer->timer_data;
454dc: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
454e0: 486a 0052 pea %a2@(82) <== NOT EXECUTED
454e4: 2f02 movel %d2,%sp@- <== NOT EXECUTED
454e6: 4eb9 0004 da28 jsr 4da28 <memcpy> <== NOT EXECUTED
454ec: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED
ptimer->timer_data = normalize;
454f0: 4878 0010 pea 10 <INVALID_OPERATION> <== NOT EXECUTED
454f4: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED
454f8: 486a 0052 pea %a2@(82) <== NOT EXECUTED
454fc: 4eb9 0004 da28 jsr 4da28 <memcpy> <== NOT EXECUTED
/* Indicate that the time is running */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
45502: 7003 moveq #3,%d0 <== NOT EXECUTED
45504: 1540 003c moveb %d0,%a2@(60) <== NOT EXECUTED
_TOD_Get( &ptimer->time );
45508: 486a 006a pea %a2@(106) <== NOT EXECUTED
4550c: 4eb9 0004 6a64 jsr 46a64 <_TOD_Get> <== NOT EXECUTED
_Thread_Enable_dispatch();
45512: 4eb9 0004 7b9a jsr 47b9a <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
45518: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
4551c: 4280 clrl %d0 <== NOT EXECUTED
4551e: 600e bras 4552e <timer_settime+0x1a2> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
45520: 4eb9 0004 d17c jsr 4d17c <__errno> <== NOT EXECUTED
45526: 2040 moveal %d0,%a0 <== NOT EXECUTED
45528: 7016 moveq #22,%d0 <== NOT EXECUTED
4552a: 2080 movel %d0,%a0@ <== NOT EXECUTED
4552c: 70ff moveq #-1,%d0 <== NOT EXECUTED
}
4552e: 4cee 0c0c ffd4 moveml %fp@(-44),%d2-%d3/%a2-%a3 <== NOT EXECUTED
45534: 4e5e unlk %fp <== NOT EXECUTED
0004545e <ualarm>:
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
4545e: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED
45462: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED
45466: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
4546a: 4ab9 0005 fa3e tstl 5fa3e <_POSIX_signals_Ualarm_timer+0x1c><== NOT EXECUTED
45470: 6620 bnes 45492 <ualarm+0x34> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
45472: 42b9 0005 fa2a clrl 5fa2a <_POSIX_signals_Ualarm_timer+0x8><== NOT EXECUTED
the_watchdog->routine = routine;
45478: 203c 0004 541c movel #283676,%d0 <== NOT EXECUTED
the_watchdog->id = id;
4547e: 42b9 0005 fa42 clrl 5fa42 <_POSIX_signals_Ualarm_timer+0x20><== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
45484: 23c0 0005 fa3e movel %d0,5fa3e <_POSIX_signals_Ualarm_timer+0x1c><== NOT EXECUTED
the_watchdog->id = id;
the_watchdog->user_data = user_data;
4548a: 42b9 0005 fa46 clrl 5fa46 <_POSIX_signals_Ualarm_timer+0x24><== NOT EXECUTED
45490: 6056 bras 454e8 <ualarm+0x8a> <== NOT EXECUTED
_Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
45492: 4879 0005 fa22 pea 5fa22 <_POSIX_signals_Ualarm_timer> <== NOT EXECUTED
45498: 4eb9 0004 8b6c jsr 48b6c <_Watchdog_Remove> <== NOT EXECUTED
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
4549e: 588f addql #4,%sp <== NOT EXECUTED
454a0: 7201 moveq #1,%d1 <== NOT EXECUTED
454a2: 5580 subql #2,%d0 <== NOT EXECUTED
454a4: b280 cmpl %d0,%d1 <== NOT EXECUTED
454a6: 6540 bcss 454e8 <ualarm+0x8a> <== NOT EXECUTED
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
454a8: 2039 0005 fa36 movel 5fa36 <_POSIX_signals_Ualarm_timer+0x14>,%d0<== NOT EXECUTED
454ae: d0b9 0005 fa2e addl 5fa2e <_POSIX_signals_Ualarm_timer+0xc>,%d0<== NOT EXECUTED
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
454b4: 486e fff8 pea %fp@(-8) <== NOT EXECUTED
454b8: 90b9 0005 fa3a subl 5fa3a <_POSIX_signals_Ualarm_timer+0x18>,%d0<== NOT EXECUTED
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
454be: 283c 000f 4240 movel #1000000,%d4 <== NOT EXECUTED
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
454c4: 2f00 movel %d0,%sp@- <== NOT EXECUTED
454c6: 4eb9 0004 8690 jsr 48690 <_Timespec_From_ticks> <== NOT EXECUTED
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
454cc: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED
454d0: 4c04 0800 mulsl %d4,%d0 <== NOT EXECUTED
remaining += tp.tv_nsec / 1000;
454d4: 283c 0000 03e8 movel #1000,%d4 <== NOT EXECUTED
454da: 508f addql #8,%sp <== NOT EXECUTED
454dc: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED
454e0: 4c44 2802 remsl %d4,%d2,%d2 <== NOT EXECUTED
454e4: d480 addl %d0,%d2 <== NOT EXECUTED
454e6: 6002 bras 454ea <ualarm+0x8c> <== NOT EXECUTED
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
useconds_t remaining = 0;
454e8: 4282 clrl %d2 <== NOT EXECUTED
/*
* If useconds is non-zero, then the caller wants to schedule
* the alarm repeatedly at that interval. If the interval is
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
454ea: 4a83 tstl %d3 <== NOT EXECUTED
454ec: 674e beqs 4553c <ualarm+0xde> <== NOT EXECUTED
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
454ee: 283c 0000 03e8 movel #1000,%d4 <== NOT EXECUTED
ticks = _Timespec_To_ticks( &tp );
454f4: 45f9 0004 8710 lea 48710 <_Timespec_To_ticks>,%a2 <== NOT EXECUTED
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
454fa: 223c 000f 4240 movel #1000000,%d1 <== NOT EXECUTED
45500: 4c41 3000 remul %d1,%d0,%d3 <== NOT EXECUTED
45504: 4c41 3003 remul %d1,%d3,%d3 <== NOT EXECUTED
45508: 2d43 fff8 movel %d3,%fp@(-8) <== NOT EXECUTED
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
4550c: 4c00 4800 mulsl %d0,%d4 <== NOT EXECUTED
ticks = _Timespec_To_ticks( &tp );
45510: 260e movel %fp,%d3 <== NOT EXECUTED
45512: 5183 subql #8,%d3 <== NOT EXECUTED
*/
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
45514: 2d44 fffc movel %d4,%fp@(-4) <== NOT EXECUTED
ticks = _Timespec_To_ticks( &tp );
45518: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4551a: 4e92 jsr %a2@ <== NOT EXECUTED
if ( ticks == 0 )
ticks = 1;
_Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );
4551c: 2f03 movel %d3,%sp@- <== NOT EXECUTED
4551e: 4e92 jsr %a2@ <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45520: 4879 0005 fa22 pea 5fa22 <_POSIX_signals_Ualarm_timer> <== NOT EXECUTED
45526: 4879 0005 f2ce pea 5f2ce <_Watchdog_Ticks_chain> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
4552c: 23c0 0005 fa2e movel %d0,5fa2e <_POSIX_signals_Ualarm_timer+0xc><== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
45532: 4eb9 0004 8a50 jsr 48a50 <_Watchdog_Insert> <== NOT EXECUTED
45538: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED
}
return remaining;
}
4553c: 2002 movel %d2,%d0 <== NOT EXECUTED
4553e: 4cee 041c ffe8 moveml %fp@(-24),%d2-%d4/%a2 <== NOT EXECUTED
45544: 4e5e unlk %fp <== NOT EXECUTED
000455ac <vfork>:
#include <unistd.h>
pid_t vfork(void)
{
return -1;
}
455ac: 70ff moveq #-1,%d0 <== NOT EXECUTED
#include <sys/types.h>
#include <unistd.h>
pid_t vfork(void)
{
455ae: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
return -1;
}
455b2: 4e5e unlk %fp <== NOT EXECUTED
...
000455b8 <wait>:
#include <rtems/seterr.h>
int wait(
int *stat_loc
)
{
455b8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
455bc: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
455c2: 4e5e unlk %fp <== NOT EXECUTED
int wait(
int *stat_loc
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
455c4: 2040 moveal %d0,%a0 <== NOT EXECUTED
455c6: 7058 moveq #88,%d0 <== NOT EXECUTED
455c8: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
455ca: 70ff moveq #-1,%d0 <== NOT EXECUTED
...
000455d0 <waitpid>:
int waitpid(
pid_t pid,
int *stat_loc,
int options
)
{
455d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
455d4: 4eb9 0004 d0dc jsr 4d0dc <__errno> <== NOT EXECUTED
}
455da: 4e5e unlk %fp <== NOT EXECUTED
pid_t pid,
int *stat_loc,
int options
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
455dc: 2040 moveal %d0,%a0 <== NOT EXECUTED
455de: 7058 moveq #88,%d0 <== NOT EXECUTED
455e0: 2080 movel %d0,%a0@ <== NOT EXECUTED
}
455e2: 70ff moveq #-1,%d0 <== NOT EXECUTED
...