Changeset 6b03a3c in mainline for kernel/arch/ia64/src/drivers/ski.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/arch/ia64/src/drivers/ski.c
r94abc30c r6b03a3c 60 60 }; 61 61 62 static void ski_ putuchar(outdev_t *, const char32_t);62 static void ski_write(outdev_t *, const char *, size_t); 63 63 64 64 static outdev_operations_t skidev_ops = { 65 .write = ski_ putuchar,65 .write = ski_write, 66 66 .redraw = NULL, 67 67 .scroll_up = NULL, … … 182 182 } 183 183 184 static void ski_do_putchar( charch)184 static void ski_do_putchar(uint8_t ch) 185 185 { 186 186 asm volatile ( … … 203 203 * 204 204 */ 205 static void ski_putuchar(outdev_t *dev, char32_t ch) 206 { 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. */ 207 208 if (ski_parea.mapped && !console_override) 208 209 return; 209 210 210 if (ascii_check(ch)) { 211 if (ch == '\n') 211 const char *top = s + n; 212 assert(top >= s); 213 214 for (; s < top; s++) { 215 if (*s == '\n') 212 216 ski_do_putchar('\r'); 213 217 214 ski_do_putchar(ch); 215 } else { 216 ski_do_putchar('?'); 218 ski_do_putchar((uint8_t) *s); 217 219 } 218 220 }
Note:
See TracChangeset
for help on using the changeset viewer.