Changeset 6b03a3c in mainline for kernel/genarch/src/drivers/dsrln/dsrlnout.c
- Timestamp:
- 2025-04-18T13:45:46Z (4 days ago)
- Children:
- 9fc15f9
- Parents:
- 94abc30c (diff), 25fdb2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Wayne Thornton <wmthornton-dev@…> (2025-04-18 13:45:46)
- git-committer:
- GitHub <noreply@…> (2025-04-18 13:45:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/dsrln/dsrlnout.c
r94abc30c r6b03a3c 49 49 } dsrlnout_instance_t; 50 50 51 static void dsrlnout_ putuchar(outdev_t *dev, const char32_t ch)51 static void dsrlnout_write(outdev_t *dev, const char *s, size_t n) 52 52 { 53 53 dsrlnout_instance_t *instance = (dsrlnout_instance_t *) dev->data; 54 54 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); 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); 60 66 } 61 67 } 62 68 63 69 static outdev_operations_t dsrlndev_ops = { 64 .write = dsrlnout_ putuchar,70 .write = dsrlnout_write, 65 71 .redraw = NULL, 66 72 .scroll_up = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.