diff options
Diffstat (limited to 'device')
-rw-r--r-- | device/cons.c | 9 | ||||
-rw-r--r-- | device/ds_routines.c | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/device/cons.c b/device/cons.c index fb96d69..e3e95ff 100644 --- a/device/cons.c +++ b/device/cons.c @@ -260,6 +260,15 @@ cnputc(c) kmsg_putchar (c); #endif +#if defined(MACH_HYP) && 0 + { + /* Also output on hypervisor's emergency console, for + * debugging */ + unsigned char d = c; + hyp_console_write(&d, 1); + } +#endif /* MACH_HYP */ + if (cn_tab) { (*cn_tab->cn_putc)(cn_tab->cn_dev, c); if (c == '\n') diff --git a/device/ds_routines.c b/device/ds_routines.c index 5b8fb3e..5b57338 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -104,6 +104,10 @@ extern struct device_emulation_ops linux_pcmcia_emulation_ops; #endif #endif #endif +#ifdef MACH_HYP +extern struct device_emulation_ops hyp_block_emulation_ops; +extern struct device_emulation_ops hyp_net_emulation_ops; +#endif extern struct device_emulation_ops mach_device_emulation_ops; /* List of emulations. */ @@ -118,6 +122,10 @@ static struct device_emulation_ops *emulation_list[] = #endif #endif #endif +#ifdef MACH_HYP + &hyp_block_emulation_ops, + &hyp_net_emulation_ops, +#endif &mach_device_emulation_ops, }; |