diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-03 09:32:50 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-03 09:32:50 +0100 |
commit | e49b738ccfb422db6bbf5abb39aa6975bef8d32a (patch) | |
tree | ccba8bfd259c7a2d2677013df0dc6e077d90508e /extras/mini-os/console/console.c | |
parent | 9efd150651fe690e2bc4e5675209c75adedd823c (diff) | |
download | xen-e49b738ccfb422db6bbf5abb39aa6975bef8d32a.tar.gz xen-e49b738ccfb422db6bbf5abb39aa6975bef8d32a.tar.bz2 xen-e49b738ccfb422db6bbf5abb39aa6975bef8d32a.zip |
stubdom: Add console reading support
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/console/console.c')
-rw-r--r-- | extras/mini-os/console/console.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/extras/mini-os/console/console.c b/extras/mini-os/console/console.c index 29fdd99f3b..94379ddb33 100644 --- a/extras/mini-os/console/console.c +++ b/extras/mini-os/console/console.c @@ -49,17 +49,13 @@ of standard dom0 handled console */ #define USE_XEN_CONSOLE -/* Low level functions defined in xencons_ring.c */ -extern int xencons_ring_init(void); -extern int xencons_ring_send(const char *data, unsigned len); -extern int xencons_ring_send_no_notify(const char *data, unsigned len); - /* If console not initialised the printk will be sent to xen serial line NOTE: you need to enable verbose in xen/Rules.mk for it to work. */ static int console_initialised = 0; +#ifndef HAVE_LIBC void xencons_rx(char *buf, unsigned len, struct pt_regs *regs) { if(len > 0) @@ -77,6 +73,7 @@ void xencons_tx(void) { /* Do nothing, handled by _rx */ } +#endif void console_print(char *data, int length) |