summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/shared/mmu/e500-mmu.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bsps/powerpc/shared/mmu/e500-mmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bsps/powerpc/shared/mmu/e500-mmu.c b/bsps/powerpc/shared/mmu/e500-mmu.c
index ee69172e46..3f62a293e6 100644
--- a/bsps/powerpc/shared/mmu/e500-mmu.c
+++ b/bsps/powerpc/shared/mmu/e500-mmu.c
@@ -71,6 +71,7 @@
*/
#include <rtems.h>
#include <rtems/bspIo.h>
+#include <rtems/score/sysstate.h>
#include <inttypes.h>
#include <stdio.h>
@@ -125,7 +126,7 @@ myprintf(FILE *f, char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- if (!f || !_impure_ptr->__sdidinit) {
+ if (!f || !_System_state_Is_up(_System_state_Get())) {
/*
* Might be called at an early stage when
* stdio is not yet initialized.