Changeset 8cd140f2 in mainline for kernel/arch/ia32xen/src/drivers/xconsole.c
- Timestamp:
- 2006-12-11T14:14:46Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 134877d
- Parents:
- b82a13c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32xen/src/drivers/xconsole.c
rb82a13c r8cd140f2 43 43 #define MASK_INDEX(index, ring) ((index) & (sizeof(ring) - 1)) 44 44 45 static bool asynchronous = false;46 45 static void xen_putchar(chardev_t *d, const char ch); 47 46 … … 55 54 chardev_initialize("xen_out", &xen_console, &xen_ops); 56 55 stdout = &xen_console; 57 if (!(start_info.flags & SIF_INITDOMAIN))58 asynchronous = true;59 56 } 60 57 61 58 void xen_putchar(chardev_t *d, const char ch) 62 59 { 63 if ( asynchronous) {60 if (start_info.console.domU.evtchn != 0) { 64 61 uint32_t cons = console_page.out_cons; 65 62 uint32_t prod = console_page.out_prod; … … 78 75 console_page.out_prod = prod; 79 76 80 xen_notify_remote(start_info.console _evtchn);77 xen_notify_remote(start_info.console.domU.evtchn); 81 78 } else 82 79 xen_console_io(CONSOLE_IO_WRITE, 1, &ch);
Note:
See TracChangeset
for help on using the changeset viewer.