Changes in boot/arch/mips32/src/putchar.c [a4f959b:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/src/putchar.c
ra4f959b r9d58539 32 32 #include <str.h> 33 33 34 #ifdef PUTCHAR_ADDRESS35 #undef PUTCHAR_ADDRESS36 #endif37 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 #endif45 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 #endif59 60 34 void putchar(const wchar_t ch) 61 35 { 62 36 if (ascii_check(ch)) 63 _putchar(ch);37 *((char *) MSIM_VIDEORAM_ADDRESS) = ch; 64 38 else 65 _putchar(U_SPECIAL);39 *((char *) MSIM_VIDEORAM_ADDRESS) = U_SPECIAL; 66 40 } 67
Note:
See TracChangeset
for help on using the changeset viewer.