Changeset 5e6e50b in mainline for kernel/generic/src/console/console.c


Ignore:
Timestamp:
2011-05-17T09:20:34Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2aaf804
Parents:
a29529b (diff), 3375bd4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Development branch changes

File:
1 edited

Legend:

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

    ra29529b r5e6e50b  
    5353#include <str.h>
    5454
    55 /*
    56  * devman produces a lot of output and by giving so many pages
    57  * we to allow /app/klog to catch-up.
    58  */
    59 #ifdef CONFIG_DEVMAN_EARLY_LAUNCH
    60 #define KLOG_PAGES    64
    61 #else
    62 #define KLOG_PAGES    4
    63 #endif
    64 
     55#define KLOG_PAGES    8
    6556#define KLOG_LENGTH   (KLOG_PAGES * PAGE_SIZE / sizeof(wchar_t))
    6657#define KLOG_LATENCY  8
     
    174165        sysinfo_set_item_val("klog.faddr", NULL, (sysarg_t) faddr);
    175166        sysinfo_set_item_val("klog.pages", NULL, KLOG_PAGES);
     167
     168        event_set_unmask_callback(EVENT_KLOG, klog_update);
    176169       
    177170        spinlock_lock(&klog_lock);
     
    274267        spinlock_lock(&klog_lock);
    275268       
    276         if ((klog_inited) && (event_is_subscribed(EVENT_KLOG)) && (klog_uspace > 0)) {
    277                 event_notify_3(EVENT_KLOG, klog_start, klog_len, klog_uspace);
    278                 klog_uspace = 0;
     269        if ((klog_inited) && (klog_uspace > 0)) {
     270                if (event_notify_3(EVENT_KLOG, true, klog_start, klog_len,
     271                    klog_uspace) == EOK)
     272                        klog_uspace = 0;
    279273        }
    280274       
Note: See TracChangeset for help on using the changeset viewer.