Changes in kernel/generic/src/console/console.c [da52547:9c70ed6] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/console/console.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
rda52547 r9c70ed6 39 39 #include <synch/waitq.h> 40 40 #include <synch/spinlock.h> 41 #include < typedefs.h>41 #include <arch/types.h> 42 42 #include <ddi/irq.h> 43 43 #include <ddi/ddi.h> … … 45 45 #include <ipc/irq.h> 46 46 #include <arch.h> 47 #include <panic.h>48 47 #include <print.h> 49 48 #include <putchar.h> … … 51 50 #include <syscall/copy.h> 52 51 #include <errno.h> 53 #include <str .h>52 #include <string.h> 54 53 55 54 #define KLOG_PAGES 4 … … 62 61 /** Kernel log initialized */ 63 62 static bool klog_inited = false; 64 65 63 /** First kernel log characters */ 66 64 static size_t klog_start = 0; 67 68 65 /** Number of valid kernel log characters */ 69 66 static size_t klog_len = 0; 70 71 67 /** Number of stored (not printed) kernel log characters */ 72 68 static size_t klog_stored = 0; 73 74 69 /** Number of stored kernel log characters for uspace */ 75 70 static size_t klog_uspace = 0; … … 88 83 }; 89 84 90 static void stdout_write(outdev_t * , wchar_t, bool);91 static void stdout_redraw(outdev_t * );85 static void stdout_write(outdev_t *dev, wchar_t ch, bool silent); 86 static void stdout_redraw(outdev_t *dev); 92 87 93 88 static outdev_operations_t stdout_ops = { … … 178 173 stdout->op->redraw(stdout); 179 174 180 if ((stdin) && (prev)) { 181 /* 182 * Force the console to print the prompt. 183 */ 175 /* Force the console to print the prompt */ 176 if ((stdin) && (prev)) 184 177 indev_push_character(stdin, '\n'); 185 }186 178 } 187 179 … … 294 286 stdout->op->write(stdout, ch, silent); 295 287 else { 296 /* 297 * No standard output routine defined yet. 298 * The character is still stored in the kernel log 299 * for possible future output. 300 * 301 * The early_putchar() function is used to output 302 * the character for low-level debugging purposes. 303 * Note that the early_putc() function might be 304 * a no-op on certain hardware configurations. 305 * 306 */ 307 early_putchar(ch); 308 288 /* The character is just in the kernel log */ 309 289 if (klog_stored < klog_len) 310 290 klog_stored++;
Note:
See TracChangeset
for help on using the changeset viewer.
