Changeset b5e17b1 in mainline
- Timestamp:
- 2013-02-04T10:43:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7be6379
- Parents:
- 260f678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mach/malta/malta.c
r260f678 rb5e17b1 35 35 36 36 #include <arch/mach/malta/malta.h> 37 #include <console/console.h> 38 #include <console/chardev.h> 39 #include <arch/mm/page.h> 37 40 38 41 static void malta_init(void); … … 70 73 } 71 74 75 #define YAMON_SUBR_BASE PA2KA(0x1fc00500) 76 #define YAMON_SUBR_PRINT_COUNT (YAMON_SUBR_BASE + 0x4) 77 78 typedef void (**yamon_print_count_ptr_t)(uint32_t, const char *, uint32_t); 79 80 yamon_print_count_ptr_t yamon_print_count = 81 (yamon_print_count_ptr_t) YAMON_SUBR_PRINT_COUNT; 82 83 static void yamon_putchar(outdev_t *dev, const wchar_t wch) 84 { 85 86 const char ch = (char) wch; 87 88 (*yamon_print_count)(0, &ch, 1); 89 } 90 91 static outdev_t yamon_outdev; 92 static outdev_operations_t yamon_outdev_ops = { 93 .write = yamon_putchar, 94 .redraw = NULL 95 }; 96 72 97 void malta_output_init(void) 73 98 { 99 outdev_initialize("yamon", &yamon_outdev, &yamon_outdev_ops); 100 stdout_wire(&yamon_outdev); 74 101 } 75 102
Note:
See TracChangeset
for help on using the changeset viewer.