ia64/xen-unstable

changeset 887:77eeb794412d

bitkeeper revision 1.558 (3fa8bde6eQgIO9tzKu1KolYWJYKnxg)

xen_log.c, hypervisor.h:
Bug fixes. Minios shoudl work again now.
author kaf24@scramble.cl.cam.ac.uk
date Wed Nov 05 09:07:50 2003 +0000 (2003-11-05)
parents 2a289f47eb41
children 4b4252761715 9aaf434f9b76
files extras/mini-os/h/hypervisor.h tools/misc/xen_log.c
line diff
     1.1 --- a/extras/mini-os/h/hypervisor.h	Tue Nov 04 15:01:40 2003 +0000
     1.2 +++ b/extras/mini-os/h/hypervisor.h	Wed Nov 05 09:07:50 2003 +0000
     1.3 @@ -129,7 +129,8 @@ static inline int HYPERVISOR_yield(void)
     1.4      int ret;
     1.5      __asm__ __volatile__ (
     1.6          TRAP_INSTR
     1.7 -        : "=a" (ret) : "0" (__HYPERVISOR_yield) );
     1.8 +        : "=a" (ret) : "0" (__HYPERVISOR_sched_op),
     1.9 +        "b" (SCHEDOP_yield) );
    1.10  
    1.11      return ret;
    1.12  }
    1.13 @@ -139,7 +140,19 @@ static inline int HYPERVISOR_exit(void)
    1.14      int ret;
    1.15      __asm__ __volatile__ (
    1.16          TRAP_INSTR
    1.17 -        : "=a" (ret) : "0" (__HYPERVISOR_exit) );
    1.18 +        : "=a" (ret) : "0" (__HYPERVISOR_sched_op),
    1.19 +        "b" (SCHEDOP_exit) );
    1.20 +
    1.21 +    return ret;
    1.22 +}
    1.23 +
    1.24 +static inline int HYPERVISOR_stop(void)
    1.25 +{
    1.26 +    int ret;
    1.27 +    __asm__ __volatile__ (
    1.28 +        TRAP_INSTR
    1.29 +        : "=a" (ret) : "0" (__HYPERVISOR_sched_op),
    1.30 +        "b" (SCHEDOP_stop) );
    1.31  
    1.32      return ret;
    1.33  }
     2.1 --- a/tools/misc/xen_log.c	Tue Nov 04 15:01:40 2003 +0000
     2.2 +++ b/tools/misc/xen_log.c	Wed Nov 05 09:07:50 2003 +0000
     2.3 @@ -1,7 +1,6 @@
     2.4  
     2.5  #include <netinet/in.h>
     2.6  #include <sys/types.h>
     2.7 -#include <tcpd.h>
     2.8  #include <sys/socket.h>
     2.9  #include <stdio.h>
    2.10  #include <stdlib.h>