mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 12:35:06 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user