Changeset c4cfe4c in mainline for kernel/genarch/src/drivers/pl011/pl011.c
- Timestamp:
- 2025-04-17T16:01:16Z (5 days ago)
- Branches:
- master
- Children:
- 888c06e
- Parents:
- 1db4e2ae (diff), 250a435 (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:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-17 15:51:11)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-17 16:01:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/pl011/pl011.c
r1db4e2ae rc4cfe4c 56 56 } 57 57 58 static void pl011_uart_ putuchar(outdev_t *dev, char32_t ch)58 static void pl011_uart_write(outdev_t *dev, const char *s, size_t n) 59 59 { 60 60 pl011_uart_t *uart = dev->data; … … 64 64 return; 65 65 66 if (!ascii_check(ch)) 67 pl011_uart_sendb(uart, U_SPECIAL); 68 else { 69 if (ch == '\n') 70 pl011_uart_sendb(uart, (uint8_t) '\r'); 71 pl011_uart_sendb(uart, (uint8_t) ch); 66 const char *top = s + n; 67 assert(top >= s); 68 69 for (; s < top; s++) { 70 if (*s == '\n') 71 pl011_uart_sendb(uart, '\r'); 72 73 pl011_uart_sendb(uart, (uint8_t) *s); 72 74 } 73 75 } 74 76 75 77 static outdev_operations_t pl011_uart_ops = { 76 .write = pl011_uart_ putuchar,78 .write = pl011_uart_write, 77 79 .redraw = NULL, 78 80 .scroll_up = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.