Changeset 295732b in mainline for boot/arch/mips32/src/putchar.c


Ignore:
Timestamp:
2012-12-06T00:06:29Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bcad855
Parents:
232cd4f
Message:

Make the mips32 loader machine-neutral, not preferring msim.

  • Allow load address it be in both KSEG0 and KSEG1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/src/putchar.c

    r232cd4f r295732b  
    3232#include <str.h>
    3333
     34#ifdef PUTCHAR_ADDRESS
     35#undef PUTCHAR_ADDRESS
     36#endif
     37
     38#if defined(MACHINE_msim)
     39#define PUTCHAR_ADDRESS MSIM_VIDEORAM_ADDRESS
     40#endif
     41
     42#if defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
     43#define PUTCHAR_ADDRESS MALTA_SERIAL
     44#endif
     45
    3446void putchar(const wchar_t ch)
    3547{
    3648        if (ascii_check(ch))
    37                 *((char *) MSIM_VIDEORAM_ADDRESS) = ch;
     49                *((char *) PUTCHAR_ADDRESS) = ch;
    3850        else
    39                 *((char *) MSIM_VIDEORAM_ADDRESS) = U_SPECIAL;
     51                *((char *) PUTCHAR_ADDRESS) = U_SPECIAL;
    4052}
     53
Note: See TracChangeset for help on using the changeset viewer.