Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/drivers/ski.c

    re9bc927 r0f4f1b2  
    6060};
    6161
    62 static void ski_write(outdev_t *, const char *, size_t);
     62static void ski_putuchar(outdev_t *, const char32_t);
    6363
    6464static outdev_operations_t skidev_ops = {
    65         .write = ski_write,
     65        .write = ski_putuchar,
    6666        .redraw = NULL,
    6767        .scroll_up = NULL,
     
    182182}
    183183
    184 static void ski_do_putchar(uint8_t ch)
     184static void ski_do_putchar(char ch)
    185185{
    186186        asm volatile (
     
    203203 *
    204204 */
    205 static void ski_write(outdev_t *dev, const char *s, size_t n)
    206 {
    207         /* If the userspace owns the console, do not output anything. */
     205static void ski_putuchar(outdev_t *dev, char32_t ch)
     206{
    208207        if (ski_parea.mapped && !console_override)
    209208                return;
    210209
    211         const char *top = s + n;
    212         assert(top >= s);
    213 
    214         for (; s < top; s++) {
    215                 if (*s == '\n')
     210        if (ascii_check(ch)) {
     211                if (ch == '\n')
    216212                        ski_do_putchar('\r');
    217213
    218                 ski_do_putchar((uint8_t) *s);
     214                ski_do_putchar(ch);
     215        } else {
     216                ski_do_putchar('?');
    219217        }
    220218}
Note: See TracChangeset for help on using the changeset viewer.