[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [POWERPC][XEN] Implement arch_get_xen_caps().



# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Date 1174514579 18000
# Node ID 09a3bd14a4fa1fb01b344c0a5f690ac209c9b48e
# Parent  e7f49a00bc469faa575254f85483982ef525cf1c
[POWERPC][XEN] Implement arch_get_xen_caps().
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/setup.c |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -r e7f49a00bc46 -r 09a3bd14a4fa xen/arch/powerpc/setup.c
--- a/xen/arch/powerpc/setup.c  Wed Mar 21 17:02:59 2007 -0500
+++ b/xen/arch/powerpc/setup.c  Wed Mar 21 17:02:59 2007 -0500
@@ -37,6 +37,7 @@
 #include <xen/keyhandler.h>
 #include <xen/numa.h>
 #include <xen/rcupdate.h>
+#include <xen/version.h>
 #include <acm/acm_hooks.h>
 #include <public/version.h>
 #include <asm/mpic.h>
@@ -453,6 +454,14 @@ extern void arch_get_xen_caps(xen_capabi
 extern void arch_get_xen_caps(xen_capabilities_info_t *info);
 void arch_get_xen_caps(xen_capabilities_info_t *info)
 {
+    int major = xen_major_version();
+    int minor = xen_minor_version();
+    char s[32];
+
+    (*info)[0] = '\0';
+
+    snprintf(s, sizeof(s), "xen-%d.%d-powerpc64 ", major, minor);
+    safe_strcat(*info, s);
 }
 
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.