- Timestamp:
- 2018-05-29T13:25:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc0b2a8
- Parents:
- a57fa32
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-28 17:24:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-29 13:25:07)
- Location:
- boot
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/putchar.c
ra57fa32 red88c8e 195 195 * @param ch Character to display 196 196 */ 197 void put char(const wchar_t ch)197 void putwchar(const wchar_t ch) 198 198 { 199 199 if (ch == '\n') … … 203 203 scons_sendb((uint8_t) ch); 204 204 else 205 scons_sendb( U_SPECIAL);205 scons_sendb('?'); 206 206 } 207 207 -
boot/arch/ia64/include/arch/ski.h
ra57fa32 red88c8e 30 30 #define BOOT_ia64_SKI_H_ 31 31 32 #include <stddef.h> 33 #include <str.h> 34 35 extern void ski_putchar(const wchar_t); 32 extern void ski_putchar(char); 36 33 37 34 #endif -
boot/arch/ia64/src/putchar.c
ra57fa32 red88c8e 33 33 #include <arch/ski.h> 34 34 35 void put char(const wchar_t ch)35 void putwchar(const wchar_t ch) 36 36 { 37 37 #ifdef MACHINE_ski … … 39 39 ski_putchar(ch); 40 40 else 41 ski_putchar( U_SPECIAL);41 ski_putchar('?'); 42 42 #endif 43 43 } -
boot/arch/ia64/src/ski.c
ra57fa32 red88c8e 52 52 } 53 53 54 void ski_putchar(c onst wchar_tch)54 void ski_putchar(char ch) 55 55 { 56 56 ski_console_init(); -
boot/arch/mips32/src/putchar.c
ra57fa32 red88c8e 39 39 #if defined(MACHINE_msim) 40 40 #define _putchar(ch) msim_putchar((ch)) 41 static void msim_putchar(c onst wchar_tch)41 static void msim_putchar(char ch) 42 42 { 43 43 *((char *) MSIM_VIDEORAM_ADDRESS) = ch; … … 51 51 (yamon_print_count_ptr_t) YAMON_SUBR_PRINT_COUNT; 52 52 53 static void yamon_putchar(c onst wchar_t wch)53 static void yamon_putchar(char ch) 54 54 { 55 const char ch = (char) wch;56 57 55 (*yamon_print_count)(0, &ch, 1); 58 56 } 59 57 #endif 60 58 61 void put char(const wchar_t ch)59 void putwchar(const wchar_t ch) 62 60 { 63 61 if (ascii_check(ch)) 64 62 _putchar(ch); 65 63 else 66 _putchar( U_SPECIAL);64 _putchar('?'); 67 65 } 68 66 -
boot/arch/ppc32/src/ofw.c
ra57fa32 red88c8e 39 39 } 40 40 41 void put char(constwchar_t ch)41 void putwchar(wchar_t ch) 42 42 { 43 43 if (ch == '\n') … … 47 47 ofw_putchar(ch); 48 48 else 49 ofw_putchar( U_SPECIAL);49 ofw_putchar('?'); 50 50 } -
boot/arch/riscv64/src/putchar.c
ra57fa32 red88c8e 33 33 #include <arch/ucb.h> 34 34 35 void put char(constwchar_t ch)35 void putwchar(wchar_t ch) 36 36 { 37 37 if (ascii_check(ch)) 38 38 htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, ch); 39 39 else 40 htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, U_SPECIAL);40 htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, '?'); 41 41 } -
boot/arch/sparc64/src/ofw.c
ra57fa32 red88c8e 43 43 #include <str.h> 44 44 45 void put char(constwchar_t ch)45 void putwchar(wchar_t ch) 46 46 { 47 47 if (ch == '\n') … … 51 51 ofw_putchar(ch); 52 52 else 53 ofw_putchar( U_SPECIAL);53 ofw_putchar('?'); 54 54 } 55 55 -
boot/genarch/include/genarch/ofw.h
ra57fa32 red88c8e 89 89 extern void ofw_init(void); 90 90 91 extern void ofw_putchar(c onst char);91 extern void ofw_putchar(char); 92 92 93 93 extern ofw_arg_t ofw_get_property(const phandle, const char *, void *, -
boot/genarch/src/ofw.c
ra57fa32 red88c8e 194 194 } 195 195 196 void ofw_putchar(c onst char ch)196 void ofw_putchar(char ch) 197 197 { 198 198 if (ofw_stdout == 0) -
boot/generic/include/putchar.h
ra57fa32 red88c8e 38 38 #include <stddef.h> 39 39 40 extern void put char(constwchar_t);40 extern void putwchar(wchar_t); 41 41 42 42 #endif -
boot/generic/src/vprintf.c
ra57fa32 red88c8e 42 42 43 43 while (offset < size) { 44 put char(str_decode(str, &offset, size));44 putwchar(str_decode(str, &offset, size)); 45 45 chars++; 46 46 } … … 56 56 57 57 while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) { 58 put char(uc);58 putwchar(uc); 59 59 chars++; 60 60 } 61 61 62 put char('\n');62 putwchar('\n'); 63 63 return chars; 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.