Changeset ce87a8aa in mainline for kernel/arch/sparc64/src/drivers/sgcn.c
- Timestamp:
- 2009-04-01T15:41:51Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4c4666
- Parents:
- e1813cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/sgcn.c
re1813cf rce87a8aa 131 131 132 132 /* functions referenced from definitions of I/O operations structures */ 133 static void sgcn_putchar(outdev_t *, const char, bool);133 static void sgcn_putchar(outdev_t *, const wchar_t, bool); 134 134 135 135 /** SGCN output device operations */ … … 269 269 * written straight away. 270 270 */ 271 static void sgcn_putchar(outdev_t *od, const char c, bool silent)271 static void sgcn_putchar(outdev_t *od, const wchar_t ch, bool silent) 272 272 { 273 273 if (!silent) { 274 274 spinlock_lock(&sgcn_output_lock); 275 275 276 sgcn_do_putchar(c); 277 if (c == '\n') 278 sgcn_do_putchar('\r'); 276 if (ascii_check(ch)) { 277 sgcn_do_putchar(ch); 278 if (ch == '\n') 279 sgcn_do_putchar('\r'); 280 } else 281 sgcn_do_putchar(invalch); 279 282 280 283 spinlock_unlock(&sgcn_output_lock);
Note:
See TracChangeset
for help on using the changeset viewer.