Changeset a71c158 in mainline for kernel/generic/src/console/console.c
- Timestamp:
- 2009-08-21T14:12:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e6dce8, b50b5af2, e5792d1
- Parents:
- 90c8b8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
r90c8b8d ra71c158 71 71 72 72 /** Kernel log spinlock */ 73 SPINLOCK_ INITIALIZE(klog_lock);73 SPINLOCK_STATIC_INITIALIZE_NAME(klog_lock, "*klog_lock"); 74 74 75 75 /** Physical memory area used for klog buffer */ … … 84 84 85 85 static void stdout_write(outdev_t *dev, wchar_t ch, bool silent); 86 static void stdout_redraw(outdev_t *dev); 86 87 87 88 static outdev_operations_t stdout_ops = { 88 .write = stdout_write 89 .write = stdout_write, 90 .redraw = stdout_redraw 89 91 }; 90 92 … … 122 124 for (cur = dev->list.next; cur != &dev->list; cur = cur->next) { 123 125 outdev_t *sink = list_get_instance(cur, outdev_t, link); 124 sink->op->write(sink, ch, silent); 126 if ((sink) && (sink->op->write)) 127 sink->op->write(sink, ch, silent); 128 } 129 } 130 131 static void stdout_redraw(outdev_t *dev) 132 { 133 link_t *cur; 134 135 for (cur = dev->list.next; cur != &dev->list; cur = cur->next) { 136 outdev_t *sink = list_get_instance(cur, outdev_t, link); 137 if ((sink) && (sink->op->redraw)) 138 sink->op->redraw(sink); 125 139 } 126 140 } … … 156 170 157 171 silent = false; 158 arch_grab_console(); 172 if ((stdout) && (stdout->op->redraw)) 173 stdout->op->redraw(stdout); 159 174 160 175 /* Force the console to print the prompt */ … … 165 180 void release_console(void) 166 181 { 182 // FIXME arch_release_console 167 183 silent = true; 168 arch_release_console();169 184 } 170 185
Note:
See TracChangeset
for help on using the changeset viewer.