summaryrefslogtreecommitdiffstats
path: root/c/src/libmisc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-05 16:44:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-05 16:44:02 +0000
commit458bd343e24cda7169c75f079705979891c9abc1 (patch)
treea9e584c28211674b28d1e37aec005e0e3a25afa1 /c/src/libmisc
parentEliminated references to stack checker related #defines. (diff)
downloadrtems-458bd343e24cda7169c75f079705979891c9abc1.tar.bz2
This is another pass at making sure that nothing outside the BSP
unnecessarily uses any variables defined by the BSP. On this sweep, use of BSP_Configuration and Cpu_table was eliminated. A significant part of this modification was the addition of macros to access fields in the RTEMS configuration structures. This is necessary to strengthen the division between the BSP independent parts of RTEMS and the BSPs themselves. This started after comments and analysis by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'c/src/libmisc')
-rw-r--r--c/src/libmisc/cpuuse/cpuuse.c2
-rw-r--r--c/src/libmisc/monitor/mon-command.c3
-rw-r--r--c/src/libmisc/stackchk/check.c7
3 files changed, 3 insertions, 9 deletions
diff --git a/c/src/libmisc/cpuuse/cpuuse.c b/c/src/libmisc/cpuuse/cpuuse.c
index be2bc1be87..e451318575 100644
--- a/c/src/libmisc/cpuuse/cpuuse.c
+++ b/c/src/libmisc/cpuuse/cpuuse.c
@@ -15,8 +15,6 @@
#include <rtems.h>
-extern rtems_configuration_table BSP_Configuration;
-
#include <assert.h>
#include <stdio.h>
#include <string.h>
diff --git a/c/src/libmisc/monitor/mon-command.c b/c/src/libmisc/monitor/mon-command.c
index 1fe495e0ae..5c733b60d9 100644
--- a/c/src/libmisc/monitor/mon-command.c
+++ b/c/src/libmisc/monitor/mon-command.c
@@ -50,14 +50,13 @@ rtems_monitor_command_read(char *command,
int *argc,
char **argv)
{
- extern rtems_configuration_table BSP_Configuration;
static char monitor_prompt[32];
/*
* put node number in the prompt if we are multiprocessing
*/
- if (BSP_Configuration.User_multiprocessing_table == 0)
+ if (!rtems_configuration_get_user_multiprocessing_table())
sprintf(monitor_prompt, "%s", MONITOR_PROMPT);
else if (rtems_monitor_default_node != rtems_monitor_node)
sprintf(monitor_prompt, "%d-%s-%d", rtems_monitor_node, MONITOR_PROMPT, rtems_monitor_default_node);
diff --git a/c/src/libmisc/stackchk/check.c b/c/src/libmisc/stackchk/check.c
index ac688c2a2e..b8688d3579 100644
--- a/c/src/libmisc/stackchk/check.c
+++ b/c/src/libmisc/stackchk/check.c
@@ -32,9 +32,6 @@
*/
#define DONT_USE_FATAL_EXTENSION
-
-extern rtems_configuration_table BSP_Configuration;
-
#include <assert.h>
#include <stdio.h>
#include <string.h>
@@ -318,11 +315,11 @@ void Stack_check_report_blown_task(void)
);
fflush(stderr);
- if (BSP_Configuration.User_multiprocessing_table)
+ if (rtems_configuration_get_user_multiprocessing_table())
fprintf(
stderr,
"; node=%d\n",
- BSP_Configuration.User_multiprocessing_table->node
+ rtems_configuration_get_user_multiprocessing_table()->node
);
else
fprintf(stderr, "\n");