Changes in kernel/arch/ia64/src/drivers/ski.c [e9bc927:0f4f1b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/drivers/ski.c
re9bc927 r0f4f1b2 60 60 }; 61 61 62 static void ski_ write(outdev_t *, const char *, size_t);62 static void ski_putuchar(outdev_t *, const char32_t); 63 63 64 64 static outdev_operations_t skidev_ops = { 65 .write = ski_ write,65 .write = ski_putuchar, 66 66 .redraw = NULL, 67 67 .scroll_up = NULL, … … 182 182 } 183 183 184 static void ski_do_putchar( uint8_tch)184 static void ski_do_putchar(char ch) 185 185 { 186 186 asm volatile ( … … 203 203 * 204 204 */ 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. */ 205 static void ski_putuchar(outdev_t *dev, char32_t ch) 206 { 208 207 if (ski_parea.mapped && !console_override) 209 208 return; 210 209 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') 216 212 ski_do_putchar('\r'); 217 213 218 ski_do_putchar((uint8_t) *s); 214 ski_do_putchar(ch); 215 } else { 216 ski_do_putchar('?'); 219 217 } 220 218 }
Note:
See TracChangeset
for help on using the changeset viewer.