Changes in kernel/genarch/src/drivers/dsrln/dsrlnout.c [e9bc927:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/dsrln/dsrlnout.c
re9bc927 r28a5ebd 49 49 } dsrlnout_instance_t; 50 50 51 static void dsrlnout_ write(outdev_t *dev, const char *s, size_t n)51 static void dsrlnout_putuchar(outdev_t *dev, const char32_t ch) 52 52 { 53 53 dsrlnout_instance_t *instance = (dsrlnout_instance_t *) dev->data; 54 54 55 if (instance->parea.mapped && !console_override) 56 return; 57 58 const char *top = s + n; 59 assert(top >= s); 60 61 for (; s < top; s++) { 62 if (*s == '\n') 63 pio_write_8(instance->base, '\r'); 64 65 pio_write_8(instance->base, (uint8_t) *s); 55 if ((!instance->parea.mapped) || (console_override)) { 56 if (ascii_check(ch)) 57 pio_write_8(instance->base, ch); 58 else 59 pio_write_8(instance->base, U_SPECIAL); 66 60 } 67 61 } 68 62 69 63 static outdev_operations_t dsrlndev_ops = { 70 .write = dsrlnout_ write,64 .write = dsrlnout_putuchar, 71 65 .redraw = NULL, 72 66 .scroll_up = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.