score: Move global variables definition

Define _System_state_Current and _Internal_errors_What_happened in
interr.c to make _Internal_error_Occurred() more independent.
This commit is contained in:
Sebastian Huber
2012-11-13 09:20:57 +01:00
parent 466cf31d81
commit ecf9858504
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ typedef struct {
/**
* When a fatal error occurs, the error information is stored here.
*/
SCORE_EXTERN Internal_errors_Information _Internal_errors_What_happened;
extern Internal_errors_Information _Internal_errors_What_happened;
/**
* @brief Internal error Occurred
+1 -1
View File
@@ -78,7 +78,7 @@ typedef enum {
SCORE_EXTERN bool _System_state_Is_multiprocessing;
#endif
SCORE_EXTERN System_state_Codes _System_state_Current;
extern System_state_Codes _System_state_Current;
/*
* Make it possible for the application to get the system state information.
+4
View File
@@ -18,6 +18,10 @@
#include <rtems/score/sysstate.h>
#include <rtems/score/userext.h>
System_state_Codes _System_state_Current;
Internal_errors_Information _Internal_errors_What_happened;
/*
* _Internal_error_Occurred
*