ia64/xen-unstable

diff xen/arch/ia64/xen/xensetup.c @ 10890:b786bfb058eb

[XEN] Hide compile-time information values behind a
functional interface, so that the values are contained
within a single object file.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Aug 01 15:28:09 2006 +0100 (2006-08-01)
parents c4af6e854010
children c3e20511c745 e8bdf6a8b74a
line diff
     1.1 --- a/xen/arch/ia64/xen/xensetup.c	Tue Aug 01 14:34:18 2006 +0100
     1.2 +++ b/xen/arch/ia64/xen/xensetup.c	Tue Aug 01 15:28:09 2006 +0100
     1.3 @@ -13,7 +13,7 @@
     1.4  #include <xen/mm.h>
     1.5  #include <public/version.h>
     1.6  #include <xen/gdbstub.h>
     1.7 -#include <xen/compile.h>
     1.8 +#include <xen/version.h>
     1.9  #include <xen/console.h>
    1.10  #include <xen/domain.h>
    1.11  #include <xen/serial.h>
    1.12 @@ -547,11 +547,13 @@ printk("num_online_cpus=%d, max_cpus=%d\
    1.13  void arch_get_xen_caps(xen_capabilities_info_t info)
    1.14  {
    1.15      char *p=info;
    1.16 +    int major = xen_major_version();
    1.17 +    int minor = xen_minor_version();
    1.18  
    1.19 -    p += sprintf(p,"xen-%d.%d-ia64 ", XEN_VERSION, XEN_SUBVERSION);
    1.20 +    p += sprintf(p,"xen-%d.%d-ia64 ", major, minor);
    1.21  
    1.22      if (vmx_enabled)
    1.23 -        p += sprintf(p,"hvm-%d.%d-ia64 ", XEN_VERSION, XEN_SUBVERSION);
    1.24 +        p += sprintf(p,"hvm-%d.%d-ia64 ", major, minor);
    1.25  
    1.26      *(p-1) = 0;
    1.27