summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-04 22:19:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-04 22:19:11 +0000
commit145fc8c08b50a4582c46d601afd8fa89c71dabaf (patch)
treeb4c403e8cc1fc35743be6168b20efd26041c4fe8
parent1740467b245465f69167e1d02aa6b071296a7111 (diff)
downloadrtems-145fc8c08b50a4582c46d601afd8fa89c71dabaf.tar.bz2
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.
-rw-r--r--c/src/librdbg/ChangeLog6
-rw-r--r--c/src/librdbg/src/_servtgt.c39
-rw-r--r--c/src/librdbg/src/m68k/rdbg_f.c9
3 files changed, 27 insertions, 27 deletions
diff --git a/c/src/librdbg/ChangeLog b/c/src/librdbg/ChangeLog
index 77eda7a649..7eaf86c905 100644
--- a/c/src/librdbg/ChangeLog
+++ b/c/src/librdbg/ChangeLog
@@ -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.
diff --git a/c/src/librdbg/src/_servtgt.c b/c/src/librdbg/src/_servtgt.c
index 0ec9f3c1bf..07e380674c 100644
--- a/c/src/librdbg/src/_servtgt.c
+++ b/c/src/librdbg/src/_servtgt.c
@@ -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;
-
- 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++;
+ 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 < 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;
}
diff --git a/c/src/librdbg/src/m68k/rdbg_f.c b/c/src/librdbg/src/m68k/rdbg_f.c
index bd591b3375..a7b58a26c1 100644
--- a/c/src/librdbg/src/m68k/rdbg_f.c
+++ b/c/src/librdbg/src/m68k/rdbg_f.c
@@ -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;