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/sparc64/src/drivers/sgcn.c

    r96a2e45 r516ff92  
    296296 * written straight away.
    297297 */
    298 static void sgcn_putchar(struct chardev * cd, const char c)
    299 {
    300         spinlock_lock(&sgcn_output_lock);
    301        
    302         sgcn_do_putchar(c);
    303         if (c == '\n') {
    304                 sgcn_do_putchar('\r');
     298static void sgcn_putchar(struct chardev * cd, const char c, bool silent)
     299{
     300        if (!silent) {
     301                spinlock_lock(&sgcn_output_lock);
     302               
     303                sgcn_do_putchar(c);
     304                if (c == '\n')
     305                        sgcn_do_putchar('\r');
     306               
     307                spinlock_unlock(&sgcn_output_lock);
    305308        }
    306        
    307         spinlock_unlock(&sgcn_output_lock);
    308309}
    309310
Note: See TracChangeset for help on using the changeset viewer.