WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [xenppc-unstable] [POWERPC] fix get the "sign" for the ft_* int

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [POWERPC] fix get the "sign" for the ft_* interfaces
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Aug 2006 22:03:01 +0000
Delivery-date: Thu, 17 Aug 2006 15:17:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID da9637bef06ae6b7d72dc7a1cbcff11276395df3
# Parent  697bd866535ba6d73de5fc6c988e96bc034bbdd0
[POWERPC] fix get the "sign" for the ft_* interfaces
---
 tools/libxc/powerpc64/ft_build.c |    9 +++++----
 tools/libxc/powerpc64/ft_build.h |   12 +++++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)

diff -r 697bd866535b -r da9637bef06a tools/libxc/powerpc64/ft_build.c
--- a/tools/libxc/powerpc64/ft_build.c  Thu Aug 17 16:21:34 2006 -0400
+++ b/tools/libxc/powerpc64/ft_build.c  Thu Aug 17 17:58:07 2006 -0400
@@ -90,7 +90,8 @@ static int lookup_string(struct ft_cxt *
        return -1;
 }
 
-void ft_prop(struct ft_cxt *cxt, const char *name, const void *data, int sz)
+void ft_prop(struct ft_cxt *cxt, const char *name,
+             const void *data, unsigned int sz)
 {
        int len, off;
 
@@ -125,7 +126,7 @@ void ft_prop_str(struct ft_cxt *cxt, con
        ft_prop(cxt, name, str, strlen(str) + 1);
 }
 
-void ft_prop_int(struct ft_cxt *cxt, const char *name, int val)
+void ft_prop_int(struct ft_cxt *cxt, const char *name, unsigned int val)
 {
        u32 v = cpu_to_be32((u32) val);
 
@@ -133,7 +134,7 @@ void ft_prop_int(struct ft_cxt *cxt, con
 }
 
 /* start construction of the flat OF tree */
-void ft_begin(struct ft_cxt *cxt, void *blob, int max_size)
+void ft_begin(struct ft_cxt *cxt, void *blob, unsigned int max_size)
 {
        struct boot_param_header *bph = blob;
        u32 off;
@@ -464,7 +465,7 @@ void ft_merge_blob(struct ft_cxt *cxt, v
        }
 }
 
-void *ft_get_prop(void *bphp, const char *propname, int *szp)
+void *ft_get_prop(void *bphp, const char *propname, unsigned int *szp)
 {
        struct boot_param_header *bph = bphp;
        u32 *p_struct =
diff -r 697bd866535b -r da9637bef06a tools/libxc/powerpc64/ft_build.h
--- a/tools/libxc/powerpc64/ft_build.h  Thu Aug 17 16:21:34 2006 -0400
+++ b/tools/libxc/powerpc64/ft_build.h  Thu Aug 17 17:58:07 2006 -0400
@@ -106,15 +106,17 @@ int ft_end_tree(struct ft_cxt *cxt);
 int ft_end_tree(struct ft_cxt *cxt);
 
 void ft_nop(struct ft_cxt *cxt);
-void ft_prop(struct ft_cxt *cxt, const char *name, const void *data, int sz);
+void ft_prop(struct ft_cxt *cxt, const char *name,
+             const void *data, unsigned int sz);
 void ft_prop_str(struct ft_cxt *cxt, const char *name, const char *str);
-void ft_prop_int(struct ft_cxt *cxt, const char *name, int val);
-void ft_begin(struct ft_cxt *cxt, void *blob, int max_size);
+void ft_prop_int(struct ft_cxt *cxt, const char *name, unsigned int val);
+void ft_begin(struct ft_cxt *cxt, void *blob, unsigned int max_size);
 void ft_add_rsvmap(struct ft_cxt *cxt, u64 physaddr, u64 size);
 
 void ft_dump_blob(const void *bphp);
 void ft_merge_blob(struct ft_cxt *cxt, void *blob);
-void *ft_get_prop(void *bphp, const char *propname, int *szp);
-void ft_set_prop(void *bphp, const char *propname, void *val, int len);
+void *ft_get_prop(void *bphp, const char *propname, unsigned int *szp);
+void ft_set_prop(void *bphp, const char *propname,
+                 void *val, unsigned int len);
 
 #endif

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [POWERPC] fix get the "sign" for the ft_* interfaces, Xen patchbot-xenppc-unstable <=