Changeset 8d62052 in mainline


Ignore:
Timestamp:
2008-06-07T13:20:41Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
51b966b
Parents:
c05a50f
Message:

wait until console is initiated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/klog/klog.c

    rc05a50f r8d62052  
    5151static char *klog;
    5252
     53static void console_wait(void)
     54{
     55        while (get_cons_phone() < 0)
     56                usleep(50000);  // FIXME
     57}
     58
    5359static void interrupt_received(ipc_callid_t callid, ipc_call_t *call)
    5460{
     
    6773int main(int argc, char *argv[])
    6874{
     75        console_wait();
     76       
    6977        klog = (char *) as_get_mappable_page(KLOG_SIZE);
    7078        if (klog == NULL) {
Note: See TracChangeset for help on using the changeset viewer.