ia64/xen-unstable

changeset 14504:09a3bd14a4fa

[POWERPC][XEN] Implement arch_get_xen_caps().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Wed Mar 21 17:02:59 2007 -0500 (2007-03-21)
parents e7f49a00bc46
children 58e796d053ca
files xen/arch/powerpc/setup.c
line diff
     1.1 --- a/xen/arch/powerpc/setup.c	Wed Mar 21 17:02:59 2007 -0500
     1.2 +++ b/xen/arch/powerpc/setup.c	Wed Mar 21 17:02:59 2007 -0500
     1.3 @@ -37,6 +37,7 @@
     1.4  #include <xen/keyhandler.h>
     1.5  #include <xen/numa.h>
     1.6  #include <xen/rcupdate.h>
     1.7 +#include <xen/version.h>
     1.8  #include <acm/acm_hooks.h>
     1.9  #include <public/version.h>
    1.10  #include <asm/mpic.h>
    1.11 @@ -453,6 +454,14 @@ void __init __start_xen_ppc(
    1.12  extern void arch_get_xen_caps(xen_capabilities_info_t *info);
    1.13  void arch_get_xen_caps(xen_capabilities_info_t *info)
    1.14  {
    1.15 +    int major = xen_major_version();
    1.16 +    int minor = xen_minor_version();
    1.17 +    char s[32];
    1.18 +
    1.19 +    (*info)[0] = '\0';
    1.20 +
    1.21 +    snprintf(s, sizeof(s), "xen-%d.%d-powerpc64 ", major, minor);
    1.22 +    safe_strcat(*info, s);
    1.23  }
    1.24  
    1.25