Changeset 8a640bf in rtems


Ignore:
Timestamp:
02/25/22 09:42:04 (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3cf618b3
Parents:
4bc3470
git-author:
Sebastian Huber <sebastian.huber@…> (02/25/22 09:42:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/22 14:34:06)
Message:

bsps/powerpc: Do no use Newlib internals

The struct _reent::sdidinit member was renamed in a recent Newlib.

Location:
bsps/powerpc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/shared/mmu/e500-mmu.c

    r4bc3470 r8a640bf  
    7272#include <rtems.h>
    7373#include <rtems/bspIo.h>
     74#include <rtems/score/sysstate.h>
    7475#include <inttypes.h>
    7576#include <stdio.h>
     
    126127  va_start(ap, fmt);
    127128
    128   if (!f || !_impure_ptr->__sdidinit) {
     129  if (!f || !_System_state_Is_up(_System_state_Get())) {
    129130      /*
    130131       * Might be called at an early stage when
  • bsps/powerpc/shared/vme/vmeTsi148.c

    r4bc3470 r8a640bf  
    5555#include <rtems/error.h>        /* printk */
    5656#include <rtems/pci.h>
     57#include <rtems/score/sysstate.h>
    5758#include <bsp.h>
    5859#include <libcpu/byteorder.h>
     
    417418va_list ap;
    418419        va_start(ap, fmt);
    419         if (!f || !_impure_ptr->__sdidinit) {
     420        if (!f || !_System_state_Is_up(_System_state_Get())) {
    420421                /* Might be called at an early stage when
    421422                 * to a buffer.
  • bsps/powerpc/shared/vme/vmeUniverse.c

    r4bc3470 r8a640bf  
    104104#include <rtems/error.h>
    105105#include <rtems/pci.h>
     106#include <rtems/score/sysstate.h>
    106107#include <bsp.h>
    107108#include <libcpu/byteorder.h>
     
    298299        va_start(ap, fmt);
    299300#ifdef __rtems__
    300         if (!f || !_impure_ptr->__sdidinit) {
     301        if (!f || !_System_state_Is_up(_System_state_Get())) {
    301302                /* Might be called at an early stage when
    302303                 * stdio is not yet initialized.
  • bsps/powerpc/virtex4/start/mmu.c

    r4bc3470 r8a640bf  
    6767#include <rtems/bspIo.h>
    6868#include <rtems/powerpc/powerpc.h>
     69#include <rtems/score/sysstate.h>
    6970#include <inttypes.h>
    7071#include <stdio.h>
     
    9394  va_start(ap, fmt);
    9495
    95   if (!f || !_impure_ptr->__sdidinit) {
     96  if (!f || !_System_state_Is_up(_System_state_Get())) {
    9697    /* Might be called at an early stage when stdio is not yet initialized. */
    9798    vprintk(fmt,ap);
  • bsps/powerpc/virtex5/start/mmu.c

    r4bc3470 r8a640bf  
    6767#include <rtems/bspIo.h>
    6868#include <rtems/powerpc/powerpc.h>
     69#include <rtems/score/sysstate.h>
    6970#include <inttypes.h>
    7071#include <stdio.h>
     
    9394  va_start(ap, fmt);
    9495
    95   if (!f || !_impure_ptr->__sdidinit) {
     96  if (!f || !_System_state_Is_up(_System_state_Get())) {
    9697    /* Might be called at an early stage when stdio is not yet initialized. */
    9798    vprintk(fmt,ap);
Note: See TracChangeset for help on using the changeset viewer.