Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    rd99c1d2 rda52547  
    6262/** Kernel log initialized */
    6363static bool klog_inited = false;
     64
    6465/** First kernel log characters */
    6566static size_t klog_start = 0;
     67
    6668/** Number of valid kernel log characters */
    6769static size_t klog_len = 0;
     70
    6871/** Number of stored (not printed) kernel log characters */
    6972static size_t klog_stored = 0;
     73
    7074/** Number of stored kernel log characters for uspace */
    7175static size_t klog_uspace = 0;
     
    8488};
    8589
    86 static void stdout_write(outdev_t *dev, wchar_t ch, bool silent);
    87 static void stdout_redraw(outdev_t *dev);
     90static void stdout_write(outdev_t *, wchar_t, bool);
     91static void stdout_redraw(outdev_t *);
    8892
    8993static outdev_operations_t stdout_ops = {
     
    174178                stdout->op->redraw(stdout);
    175179       
    176         /* Force the console to print the prompt */
    177         if ((stdin) && (prev))
     180        if ((stdin) && (prev)) {
     181                /*
     182                 * Force the console to print the prompt.
     183                 */
    178184                indev_push_character(stdin, '\n');
     185        }
    179186}
    180187
     
    287294                stdout->op->write(stdout, ch, silent);
    288295        else {
    289                 /* 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               
    290309                if (klog_stored < klog_len)
    291310                        klog_stored++;
Note: See TracChangeset for help on using the changeset viewer.