Changeset adb2ebf8 in mainline for arch/sparc64/src/console.c
- Timestamp:
- 2005-12-10T16:07:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7f6f25
- Parents:
- 91c78c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/src/console.c
r91c78c9 radb2ebf8 27 27 */ 28 28 29 #include < putchar.h>29 #include <arch/console.h> 30 30 #include <genarch/ofw/ofw.h> 31 #include <console/chardev.h> 32 #include <console/console.h> 33 34 static void ofw_sparc64_putchar(chardev_t *d, const char ch); 35 36 static chardev_t ofw_sparc64_console; 37 static chardev_operations_t ofw_sparc64_console_ops = { 38 .write = ofw_sparc64_putchar 39 }; 40 41 void ofw_sparc64_console_init(void) 42 { 43 chardev_initialize("ofw_sparc64_console", &ofw_sparc64_console, &ofw_sparc64_console_ops); 44 stdout = &ofw_sparc64_console; 45 } 31 46 32 47 /** Print one character. … … 34 49 * @param ch Character to be printed. 35 50 */ 36 void putchar(const char ch)51 void ofw_sparc64_putchar(chardev_t *d, const char ch) 37 52 { 38 53 if (ch == '\n')
Note:
See TracChangeset
for help on using the changeset viewer.