forked from Imagelibrary/rtems
2002-11-04 Joel Sherrill <joel@OARcorp.com>
* src/_servtgt.c: Removed warning by adding support for ITRON tasks and rolling multiple loops into 1. * src/m68k/rdbg_f.c: Removed warning.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2002-11-04 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* src/_servtgt.c: Removed warning by adding support for ITRON
|
||||
tasks and rolling multiple loops into 1.
|
||||
* src/m68k/rdbg_f.c: Removed warning.
|
||||
|
||||
2002-10-31 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* src/i386/any/remdeb_xdr.c: Removed warnings.
|
||||
|
||||
@@ -285,35 +285,24 @@ TgtThreadList (PID_LIST * plst, /* Process entry */
|
||||
unsigned size)
|
||||
{ /* Output buffer size */
|
||||
int curr = 0;
|
||||
Objects_Id id;
|
||||
int api;
|
||||
Objects_Id id, min_id, max_id;
|
||||
unsigned index;
|
||||
|
||||
id = _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id;
|
||||
for ( api=OBJECTS_CLASSIC_API ; api <= OBJECTS_ITRON_API ; api++ ) {
|
||||
min_id = _Objects_Information_table[api][1]->minimum_id;
|
||||
max_id = _Objects_Information_table[api][1]->maximum_id;
|
||||
id = min_id;
|
||||
|
||||
while (id < _Objects_Information_table[OBJECTS_CLASSIC_API][1]->maximum_id) {
|
||||
index = id - _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id;
|
||||
if (_Objects_Information_table[OBJECTS_CLASSIC_API][1]->
|
||||
local_table[1 + index] != NULL) {
|
||||
threads[curr] = (unsigned) id;
|
||||
curr++;
|
||||
while (id < max_id) {
|
||||
index = id - min_id;
|
||||
if (_Objects_Information_table[api][1]->local_table[1 + index] != NULL) {
|
||||
threads[curr] = (unsigned) id;
|
||||
curr++;
|
||||
}
|
||||
id++;
|
||||
}
|
||||
id++;
|
||||
}
|
||||
|
||||
id = _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id;
|
||||
|
||||
while (id < _Objects_Information_table[OBJECTS_POSIX_API][1]->maximum_id) {
|
||||
index =
|
||||
id - _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id;
|
||||
if (_Objects_Information_table[OBJECTS_POSIX_API][1]->
|
||||
local_table[1 + index] != NULL) {
|
||||
threads[curr] = (unsigned) id;
|
||||
curr++;
|
||||
}
|
||||
id++;
|
||||
}
|
||||
|
||||
#warning "ignores ITRON tasks and could be a single loop"
|
||||
|
||||
return curr;
|
||||
}
|
||||
|
||||
@@ -18,8 +18,13 @@
|
||||
#include <rtems/score/cpu.h>
|
||||
#include <rtems/score/thread.h>
|
||||
|
||||
void
|
||||
CtxToRegs (const CPU_Exception_frame * ctx, xdr_regs * regs)
|
||||
m68k_isr_entry set_vector(
|
||||
rtems_isr_entry handler,
|
||||
rtems_vector_number vector,
|
||||
int type
|
||||
);
|
||||
|
||||
void CtxToRegs (const CPU_Exception_frame * ctx, xdr_regs * regs)
|
||||
{
|
||||
regs->r_dreg[0] = ctx->d0;
|
||||
regs->r_dreg[1] = ctx->d1;
|
||||
|
||||
Reference in New Issue
Block a user