Changeset da1bafb in mainline for kernel/generic/src/console/console.c


Ignore:
Timestamp:
2010-05-24T18:57:31Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0095368
Parents:
666f492
Message:

major code revision

  • replace spinlocks taken with interrupts disabled with irq_spinlocks
  • change spacing (not indendation) to be tab-size independent
  • use unsigned integer types where appropriate (especially bit flags)
  • visual separation
  • remove argument names in function prototypes
  • string changes
  • correct some formating directives
  • replace various cryptic single-character variables (t, a, m, c, b, etc.) with proper identifiers (thread, task, timeout, as, itm, itc, etc.)
  • unify some assembler constructs
  • unused page table levels are now optimized out in compile time
  • replace several ints (with boolean semantics) with bools
  • use specifically sized types instead of generic types where appropriate (size_t, uint32_t, btree_key_t)
  • improve comments
  • split asserts with conjuction into multiple independent asserts
File:
1 edited

Legend:

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

    r666f492 rda1bafb  
    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
Note: See TracChangeset for help on using the changeset viewer.