aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/console
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-07-05 11:27:58 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-07-05 11:27:58 +0100
commit79700a5ce7f1aec65cf219fd53c9532fdd1d2188 (patch)
treeb78a2a29817aa65269f822a8deea407c9a7bb475 /extras/mini-os/console
parentc5f5756de82e6b64d956a85d7b5a8e629b623083 (diff)
downloadxen-79700a5ce7f1aec65cf219fd53c9532fdd1d2188.tar.gz
xen-79700a5ce7f1aec65cf219fd53c9532fdd1d2188.tar.bz2
xen-79700a5ce7f1aec65cf219fd53c9532fdd1d2188.zip
[MINIOS]Events handling cleaned up. The interface extended to provide
void* pointer to handlers. Signed-off-by: Steven Smith <sos22@cam.ac.uk> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Diffstat (limited to 'extras/mini-os/console')
-rw-r--r--extras/mini-os/console/xencons_ring.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/extras/mini-os/console/xencons_ring.c b/extras/mini-os/console/xencons_ring.c
index ff1bf519df..7693235ff0 100644
--- a/extras/mini-os/console/xencons_ring.c
+++ b/extras/mini-os/console/xencons_ring.c
@@ -53,7 +53,7 @@ int xencons_ring_send(const char *data, unsigned len)
-static void handle_input(int port, struct pt_regs *regs)
+static void handle_input(int port, struct pt_regs *regs, void *ign)
{
struct xencons_interface *intf = xencons_interface();
XENCONS_RING_IDX cons, prod;
@@ -83,7 +83,8 @@ int xencons_ring_init(void)
if (!start_info.console_evtchn)
return 0;
- err = bind_evtchn(start_info.console_evtchn, handle_input);
+ err = bind_evtchn(start_info.console_evtchn, handle_input,
+ NULL);
if (err <= 0) {
printk("XEN console request chn bind failed %i\n", err);
return err;