Ignore:
File:
1 edited

Legend:

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

    ra4f959b r9d58539  
    3232#include <str.h>
    3333
    34 #ifdef PUTCHAR_ADDRESS
    35 #undef PUTCHAR_ADDRESS
    36 #endif
    37 
    38 #if defined(MACHINE_msim)
    39 #define _putchar(ch)    msim_putchar((ch))
    40 static void msim_putchar(const wchar_t ch)
    41 {
    42         *((char *) MSIM_VIDEORAM_ADDRESS) = ch;
    43 }
    44 #endif
    45 
    46 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
    47 #define _putchar(ch)    yamon_putchar((ch))
    48 typedef void (**yamon_print_count_ptr_t)(uint32_t, const char *, uint32_t);
    49 yamon_print_count_ptr_t yamon_print_count =
    50     (yamon_print_count_ptr_t) YAMON_SUBR_PRINT_COUNT;
    51 
    52 static void yamon_putchar(const wchar_t wch)
    53 {
    54         const char ch = (char) wch;
    55 
    56         (*yamon_print_count)(0, &ch, 1);
    57 }
    58 #endif
    59 
    6034void putchar(const wchar_t ch)
    6135{
    6236        if (ascii_check(ch))
    63                 _putchar(ch);
     37                *((char *) MSIM_VIDEORAM_ADDRESS) = ch;
    6438        else
    65                 _putchar(U_SPECIAL);
     39                *((char *) MSIM_VIDEORAM_ADDRESS) = U_SPECIAL;
    6640}
    67 
Note: See TracChangeset for help on using the changeset viewer.