Changes in kernel/generic/src/console/console.c [9c70ed6:da52547] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/console/console.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
r9c70ed6 rda52547 39 39 #include <synch/waitq.h> 40 40 #include <synch/spinlock.h> 41 #include < arch/types.h>41 #include <typedefs.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> 47 48 #include <print.h> 48 49 #include <putchar.h> … … 50 51 #include <syscall/copy.h> 51 52 #include <errno.h> 52 #include <str ing.h>53 #include <str.h> 53 54 54 55 #define KLOG_PAGES 4 … … 61 62 /** Kernel log initialized */ 62 63 static bool klog_inited = false; 64 63 65 /** First kernel log characters */ 64 66 static size_t klog_start = 0; 67 65 68 /** Number of valid kernel log characters */ 66 69 static size_t klog_len = 0; 70 67 71 /** Number of stored (not printed) kernel log characters */ 68 72 static size_t klog_stored = 0; 73 69 74 /** Number of stored kernel log characters for uspace */ 70 75 static size_t klog_uspace = 0; … … 83 88 }; 84 89 85 static void stdout_write(outdev_t * dev, wchar_t ch, bool silent);86 static void stdout_redraw(outdev_t * dev);90 static void stdout_write(outdev_t *, wchar_t, bool); 91 static void stdout_redraw(outdev_t *); 87 92 88 93 static outdev_operations_t stdout_ops = { … … 173 178 stdout->op->redraw(stdout); 174 179 175 /* Force the console to print the prompt */ 176 if ((stdin) && (prev)) 180 if ((stdin) && (prev)) { 181 /* 182 * Force the console to print the prompt. 183 */ 177 184 indev_push_character(stdin, '\n'); 185 } 178 186 } 179 187 … … 286 294 stdout->op->write(stdout, ch, silent); 287 295 else { 288 /* The character is just in the kernel log */ 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 289 309 if (klog_stored < klog_len) 290 310 klog_stored++;
Note:
See TracChangeset
for help on using the changeset viewer.
