Ignore:
Timestamp:
2009-01-31T21:27:18Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4863e50b
Parents:
96a2e45
Message:

silent kernel console output when user space console is active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/drivers/msim.c

    r96a2e45 r516ff92  
    2727 */
    2828
    29 /** @addtogroup mips32 
     29/** @addtogroup mips32
    3030 * @{
    3131 */
     
    5959
    6060/** Putchar that works with MSIM & gxemul */
    61 void msim_write(chardev_t *dev, const char ch)
     61void msim_write(chardev_t *dev, const char ch, bool silent)
    6262{
    63         *((char *) MSIM_VIDEORAM) = ch;
     63        if (!silent)
     64                *((char *) MSIM_VIDEORAM) = ch;
    6465}
    6566
     
    8182{
    8283        char ch;
    83 
     84       
    8485        while (1) {
    8586                ch = *((volatile char *) MSIM_KBD_ADDRESS);
     
    102103                char ch = 0;
    103104               
    104                         ch = *((char *) MSIM_KBD_ADDRESS);
    105                         if (ch =='\r')
    106                                 ch = '\n';
    107                         if (ch == 0x7f)
    108                                 ch = '\b';
    109                         chardev_push_character(&console, ch);
     105                ch = *((char *) MSIM_KBD_ADDRESS);
     106                if (ch =='\r')
     107                        ch = '\n';
     108                if (ch == 0x7f)
     109                        ch = '\b';
     110                chardev_push_character(&console, ch);
    110111        }
    111112}
Note: See TracChangeset for help on using the changeset viewer.