diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 21:00:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 21:00:37 +0000 |
commit | 2cc1b43b57815e8ebfb0545acb164e7fdf31eae5 (patch) | |
tree | 96f64e2d80e339e2f0e5545877b3d7fe53019d18 /cpukit | |
parent | 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2cc1b43b57815e8ebfb0545acb164e7fdf31eae5.tar.bz2 |
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c, rtems/include/rtems/rtems/types.h: Do
not have fp context type when no hardware or software floating point
is available.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libmisc/monitor/mon-monitor.c | 4 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/types.h | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 72c41c57b5..80931fb0f0 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,11 @@ 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> + * libmisc/monitor/mon-monitor.c, rtems/include/rtems/rtems/types.h: Do + not have fp context type when no hardware or software floating point + is available. + +2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/malloc_statistics_helpers.c, libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/support.h, diff --git a/cpukit/libmisc/monitor/mon-monitor.c b/cpukit/libmisc/monitor/mon-monitor.c index dc6f3824c7..c1365b340c 100644 --- a/cpukit/libmisc/monitor/mon-monitor.c +++ b/cpukit/libmisc/monitor/mon-monitor.c @@ -508,7 +508,9 @@ rtems_monitor_task( { rtems_tcb *debugee = 0; rtems_context *rp; +#if (CPU_HARDWARE_FP == TRUE) || (CPU_SOFTWARE_FP == TRUE) rtems_context_fp *fp; +#endif char command_buffer[513]; int argc; char *argv[64]; @@ -561,8 +563,6 @@ rtems_monitor_task( rp = &debugee->Registers; #if (CPU_HARDWARE_FP == TRUE) || (CPU_SOFTWARE_FP == TRUE) fp = debugee->fp_context; /* possibly 0 */ -#else - fp = 0; #endif if (0 == rtems_monitor_command_read(command_buffer, &argc, argv)) diff --git a/cpukit/rtems/include/rtems/rtems/types.h b/cpukit/rtems/include/rtems/rtems/types.h index d3907d20e4..a0633e16a9 100644 --- a/cpukit/rtems/include/rtems/rtems/types.h +++ b/cpukit/rtems/include/rtems/rtems/types.h @@ -75,10 +75,12 @@ typedef Objects_Id rtems_id; */ typedef Context_Control rtems_context; +#if (CPU_HARDWARE_FP == TRUE) || (CPU_SOFTWARE_FP == TRUE) /** * This type is the public name for task floating point context area. */ typedef Context_Control_fp rtems_context_fp; +#endif /** * This type is the public name for the architecture specific |