Changeset a4f959b in mainline for boot/arch/mips32/src/putchar.c
- Timestamp:
- 2012-12-14T00:02:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7633928c
- Parents:
- 14febed9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/src/putchar.c
r14febed9 ra4f959b 37 37 38 38 #if defined(MACHINE_msim) 39 #define PUTCHAR_ADDRESS MSIM_VIDEORAM_ADDRESS 39 #define _putchar(ch) msim_putchar((ch)) 40 static void msim_putchar(const wchar_t ch) 41 { 42 *((char *) MSIM_VIDEORAM_ADDRESS) = ch; 43 } 40 44 #endif 41 45 42 46 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 43 #define PUTCHAR_ADDRESS MALTA_SERIAL 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 } 44 58 #endif 45 59 … … 47 61 { 48 62 if (ascii_check(ch)) 49 *((char *) PUTCHAR_ADDRESS) = ch;63 _putchar(ch); 50 64 else 51 *((char *) PUTCHAR_ADDRESS) = U_SPECIAL;65 _putchar(U_SPECIAL); 52 66 } 53 67
Note:
See TracChangeset
for help on using the changeset viewer.