From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] minios: fix x86_32 compilation
Date: Tue, 22 Jan 2008 11:11:41 +0000 [thread overview]
Message-ID: <20080122111141.GA5592@implementation.uk.xensource.com> (raw)
Fix x86_32 compilation
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
---
(That is not needed in 3.2)
diff -r b4e8d0bb7901 extras/mini-os/include/fs.h
--- a/extras/mini-os/include/fs.h Tue Jan 22 10:53:14 2008 +0000
+++ b/extras/mini-os/include/fs.h Tue Jan 22 11:08:43 2008 +0000
@@ -3,6 +3,7 @@
#include <xen/io/fsif.h>
#include <semaphore.h>
+#include <types.h>
struct fs_import
{
diff -r b4e8d0bb7901 extras/mini-os/include/types.h
--- a/extras/mini-os/include/types.h Tue Jan 22 10:53:14 2008 +0000
+++ b/extras/mini-os/include/types.h Tue Jan 22 11:08:43 2008 +0000
@@ -19,6 +19,7 @@
#ifndef _TYPES_H_
#define _TYPES_H_
+#include <stddef.h>
typedef signed char s8;
typedef unsigned char u8;
@@ -78,5 +79,4 @@ typedef s64 int64_t;
#define UINT_MAX (~0U)
typedef long ssize_t;
-typedef unsigned long size_t;
#endif /* _TYPES_H_ */
diff -r b4e8d0bb7901 extras/mini-os/include/x86/arch_sched.h
--- a/extras/mini-os/include/x86/arch_sched.h Tue Jan 22 10:53:14 2008 +0000
+++ b/extras/mini-os/include/x86/arch_sched.h Tue Jan 22 11:08:43 2008 +0000
@@ -12,7 +12,7 @@ static inline struct thread* get_current
#else
register unsigned long sp asm("rsp");
#endif
- current = (void *)(sp & ~(STACK_SIZE-1));
+ current = (void *)(unsigned long)(sp & ~(STACK_SIZE-1));
return *current;
}
diff -r b4e8d0bb7901 extras/mini-os/kernel.c
--- a/extras/mini-os/kernel.c Tue Jan 22 10:53:14 2008 +0000
+++ b/extras/mini-os/kernel.c Tue Jan 22 11:08:43 2008 +0000
@@ -89,7 +89,7 @@ static void netfront_thread(void *p)
init_netfront(NULL, NULL, NULL);
}
-#define RAND_MIX 2654435769
+#define RAND_MIX 2654435769U
/* Should be random enough for this use */
static int rand(void)
reply other threads:[~2008-01-22 11:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080122111141.GA5592@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.