From af70ed5b1912d18745a4b02444013957201e2cac Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 19 Sep 2008 16:15:21 +0000 Subject: 2008-09-19 Joel Sherrill * libmisc/shell/main_mallocinfo.c, libmisc/shell/main_wkspaceinfo.c: Include information on whether C Program Heap and RTEMS Workspace are separate. --- cpukit/libmisc/shell/main_wkspaceinfo.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cpukit/libmisc/shell/main_wkspaceinfo.c') diff --git a/cpukit/libmisc/shell/main_wkspaceinfo.c b/cpukit/libmisc/shell/main_wkspaceinfo.c index 7c1f8a0c37..9eb26900d5 100644 --- a/cpukit/libmisc/shell/main_wkspaceinfo.c +++ b/cpukit/libmisc/shell/main_wkspaceinfo.c @@ -24,6 +24,15 @@ #include #include "internal.h" +extern bool rtems_unified_work_area; + +void rtems_shell_print_unified_work_area_message(void) +{ + printf( "\nC Program Heap and RTEMS Workspace are %s.\n", + ((rtems_unified_work_area) ? "the same" : "separate") + ); +} + int rtems_shell_main_wkspace_info( int argc, char *argv[] @@ -31,6 +40,8 @@ int rtems_shell_main_wkspace_info( { Heap_Information_block info; + rtems_shell_print_unified_work_area_message(); + _Protected_heap_Get_information( &_Workspace_Area, &info ); rtems_shell_print_heap_info( "free", &info.Free ); rtems_shell_print_heap_info( "used", &info.Used ); -- cgit v1.2.3