Ignore:
File:
1 edited

Legend:

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

    r9c70ed6 rda52547  
    3939#include <synch/waitq.h>
    4040#include <synch/spinlock.h>
    41 #include <arch/types.h>
     41#include <typedefs.h>
    4242#include <ddi/irq.h>
    4343#include <ddi/ddi.h>
     
    4545#include <ipc/irq.h>
    4646#include <arch.h>
     47#include <panic.h>
    4748#include <print.h>
    4849#include <putchar.h>
     
    5051#include <syscall/copy.h>
    5152#include <errno.h>
    52 #include <string.h>
     53#include <str.h>
    5354
    5455#define KLOG_PAGES    4
     
    6162/** Kernel log initialized */
    6263static bool klog_inited = false;
     64
    6365/** First kernel log characters */
    6466static size_t klog_start = 0;
     67
    6568/** Number of valid kernel log characters */
    6669static size_t klog_len = 0;
     70
    6771/** Number of stored (not printed) kernel log characters */
    6872static size_t klog_stored = 0;
     73
    6974/** Number of stored kernel log characters for uspace */
    7075static size_t klog_uspace = 0;
     
    8388};
    8489
    85 static void stdout_write(outdev_t *dev, wchar_t ch, bool silent);
    86 static void stdout_redraw(outdev_t *dev);
     90static void stdout_write(outdev_t *, wchar_t, bool);
     91static void stdout_redraw(outdev_t *);
    8792
    8893static outdev_operations_t stdout_ops = {
     
    173178                stdout->op->redraw(stdout);
    174179       
    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                 */
    177184                indev_push_character(stdin, '\n');
     185        }
    178186}
    179187
     
    286294                stdout->op->write(stdout, ch, silent);
    287295        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               
    289309                if (klog_stored < klog_len)
    290310                        klog_stored++;
Note: See TracChangeset for help on using the changeset viewer.