Changes in kernel/arch/ia64/src/drivers/ski.c [28a5ebd:e9bc927] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/drivers/ski.c
r28a5ebd re9bc927 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 } … … 258 260 259 261 instance->srlnin = srlnin; 260 thread_ ready(instance->thread);262 thread_start(instance->thread); 261 263 262 264 sysinfo_set_item_val("kbd", NULL, true);
Note:
See TracChangeset
for help on using the changeset viewer.