Ignore:
Timestamp:
2006-12-11T14:14:46Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
134877d
Parents:
b82a13c
Message:

update for Xen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32xen/src/drivers/xconsole.c

    rb82a13c r8cd140f2  
    4343#define MASK_INDEX(index, ring) ((index) & (sizeof(ring) - 1))
    4444
    45 static bool asynchronous = false;
    4645static void xen_putchar(chardev_t *d, const char ch);
    4746
     
    5554        chardev_initialize("xen_out", &xen_console, &xen_ops);
    5655        stdout = &xen_console;
    57         if (!(start_info.flags & SIF_INITDOMAIN))
    58                 asynchronous = true;
    5956}
    6057
    6158void xen_putchar(chardev_t *d, const char ch)
    6259{
    63         if (asynchronous) {
     60        if (start_info.console.domU.evtchn != 0) {
    6461                uint32_t cons = console_page.out_cons;
    6562                uint32_t prod = console_page.out_prod;
     
    7875                console_page.out_prod = prod;
    7976               
    80                 xen_notify_remote(start_info.console_evtchn);
     77                xen_notify_remote(start_info.console.domU.evtchn);
    8178        } else
    8279                xen_console_io(CONSOLE_IO_WRITE, 1, &ch);
Note: See TracChangeset for help on using the changeset viewer.