Changeset ed88c8e in mainline for boot


Ignore:
Timestamp:
2018-05-29T13:25:07Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

fputc, putchar vs. fputwc, putwchar.

Location:
boot
Files:
12 edited

Legend:

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

    ra57fa32 red88c8e  
    195195 * @param ch    Character to display
    196196 */
    197 void putchar(const wchar_t ch)
     197void putwchar(const wchar_t ch)
    198198{
    199199        if (ch == '\n')
     
    203203                scons_sendb((uint8_t) ch);
    204204        else
    205                 scons_sendb(U_SPECIAL);
     205                scons_sendb('?');
    206206}
    207207
  • boot/arch/ia64/include/arch/ski.h

    ra57fa32 red88c8e  
    3030#define BOOT_ia64_SKI_H_
    3131
    32 #include <stddef.h>
    33 #include <str.h>
    34 
    35 extern void ski_putchar(const wchar_t);
     32extern void ski_putchar(char);
    3633
    3734#endif
  • boot/arch/ia64/src/putchar.c

    ra57fa32 red88c8e  
    3333#include <arch/ski.h>
    3434
    35 void putchar(const wchar_t ch)
     35void putwchar(const wchar_t ch)
    3636{
    3737#ifdef MACHINE_ski
     
    3939                ski_putchar(ch);
    4040        else
    41                 ski_putchar(U_SPECIAL);
     41                ski_putchar('?');
    4242#endif
    4343}
  • boot/arch/ia64/src/ski.c

    ra57fa32 red88c8e  
    5252}
    5353
    54 void ski_putchar(const wchar_t ch)
     54void ski_putchar(char ch)
    5555{
    5656        ski_console_init();
  • boot/arch/mips32/src/putchar.c

    ra57fa32 red88c8e  
    3939#if defined(MACHINE_msim)
    4040#define _putchar(ch)    msim_putchar((ch))
    41 static void msim_putchar(const wchar_t ch)
     41static void msim_putchar(char ch)
    4242{
    4343        *((char *) MSIM_VIDEORAM_ADDRESS) = ch;
     
    5151    (yamon_print_count_ptr_t) YAMON_SUBR_PRINT_COUNT;
    5252
    53 static void yamon_putchar(const wchar_t wch)
     53static void yamon_putchar(char ch)
    5454{
    55         const char ch = (char) wch;
    56 
    5755        (*yamon_print_count)(0, &ch, 1);
    5856}
    5957#endif
    6058
    61 void putchar(const wchar_t ch)
     59void putwchar(const wchar_t ch)
    6260{
    6361        if (ascii_check(ch))
    6462                _putchar(ch);
    6563        else
    66                 _putchar(U_SPECIAL);
     64                _putchar('?');
    6765}
    6866
  • boot/arch/ppc32/src/ofw.c

    ra57fa32 red88c8e  
    3939}
    4040
    41 void putchar(const wchar_t ch)
     41void putwchar(wchar_t ch)
    4242{
    4343        if (ch == '\n')
     
    4747                ofw_putchar(ch);
    4848        else
    49                 ofw_putchar(U_SPECIAL);
     49                ofw_putchar('?');
    5050}
  • boot/arch/riscv64/src/putchar.c

    ra57fa32 red88c8e  
    3333#include <arch/ucb.h>
    3434
    35 void putchar(const wchar_t ch)
     35void putwchar(wchar_t ch)
    3636{
    3737        if (ascii_check(ch))
    3838                htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, ch);
    3939        else
    40                 htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, U_SPECIAL);
     40                htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, '?');
    4141}
  • boot/arch/sparc64/src/ofw.c

    ra57fa32 red88c8e  
    4343#include <str.h>
    4444
    45 void putchar(const wchar_t ch)
     45void putwchar(wchar_t ch)
    4646{
    4747        if (ch == '\n')
     
    5151                ofw_putchar(ch);
    5252        else
    53                 ofw_putchar(U_SPECIAL);
     53                ofw_putchar('?');
    5454}
    5555
  • boot/genarch/include/genarch/ofw.h

    ra57fa32 red88c8e  
    8989extern void ofw_init(void);
    9090
    91 extern void ofw_putchar(const char);
     91extern void ofw_putchar(char);
    9292
    9393extern ofw_arg_t ofw_get_property(const phandle, const char *, void *,
  • boot/genarch/src/ofw.c

    ra57fa32 red88c8e  
    194194}
    195195
    196 void ofw_putchar(const char ch)
     196void ofw_putchar(char ch)
    197197{
    198198        if (ofw_stdout == 0)
  • boot/generic/include/putchar.h

    ra57fa32 red88c8e  
    3838#include <stddef.h>
    3939
    40 extern void putchar(const wchar_t);
     40extern void putwchar(wchar_t);
    4141
    4242#endif
  • boot/generic/src/vprintf.c

    ra57fa32 red88c8e  
    4242
    4343        while (offset < size) {
    44                 putchar(str_decode(str, &offset, size));
     44                putwchar(str_decode(str, &offset, size));
    4545                chars++;
    4646        }
     
    5656
    5757        while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) {
    58                 putchar(uc);
     58                putwchar(uc);
    5959                chars++;
    6060        }
    6161
    62         putchar('\n');
     62        putwchar('\n');
    6363        return chars;
    6464}
Note: See TracChangeset for help on using the changeset viewer.