From: Juergen Gross <jgross@suse.com>
To: minios-devel@lists.xenproject.org, xen-devel@lists.xenproject.org
Cc: Juergen Gross <jgross@suse.com>,
samuel.thibault@ens-lyon.org, wei.liu2@citrix.com
Subject: [PATCH 1/3] mini-os: fix builds with uncommon config settings
Date: Fri, 2 Sep 2016 10:56:45 +0200 [thread overview]
Message-ID: <1472806607-4970-2-git-send-email-jgross@suse.com> (raw)
In-Reply-To: <1472806607-4970-1-git-send-email-jgross@suse.com>
Some config settings won't build standalone. Fix the following cases:
- all CONFIG_* set to "n"
- standard config with latest Xen interface version
Signed-off-by: Juergen Gross <jgross@suse.com>
---
include/x86/os.h | 5 +++++
include/xenbus.h | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/include/x86/os.h b/include/x86/os.h
index 90ab6e6..0f5dd6c 100644
--- a/include/x86/os.h
+++ b/include/x86/os.h
@@ -514,6 +514,11 @@ static __inline__ unsigned long __ffs(unsigned long word)
#endif /* ifdef __INSIDE_MINIOS */
/********************* common i386 and x86_64 ****************************/
+#define xen_mb() mb()
+#define xen_rmb() rmb()
+#define xen_wmb() wmb()
+#define xen_barrier() asm volatile ( "" : : : "memory")
+
#define wrmsr(msr,val1,val2) \
__asm__ __volatile__("wrmsr" \
: /* no outputs */ \
diff --git a/include/xenbus.h b/include/xenbus.h
index c254652..12391b9 100644
--- a/include/xenbus.h
+++ b/include/xenbus.h
@@ -7,10 +7,14 @@ typedef unsigned long xenbus_transaction_t;
#define XBT_NIL ((xenbus_transaction_t)0)
#ifdef CONFIG_XENBUS
+extern uint32_t xenbus_evtchn;
+
/* Initialize the XenBus system. */
void init_xenbus(void);
void get_xenbus(void *p);
#else
+#define xenbus_evtchn ~0
+
static inline void init_xenbus(void)
{
}
@@ -33,8 +37,6 @@ struct xenbus_event {
};
typedef struct xenbus_event *xenbus_event_queue;
-extern uint32_t xenbus_evtchn;
-
char *xenbus_watch_path_token(xenbus_transaction_t xbt, const char *path, const char *token, xenbus_event_queue *events);
char *xenbus_unwatch_path_token(xenbus_transaction_t xbt, const char *path, const char *token);
extern struct wait_queue_head xenbus_watch_queue;
--
2.6.6
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-09-02 8:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-02 8:56 [PATCH 0/3] mini-os: test and document config variations Juergen Gross
2016-09-02 8:56 ` Juergen Gross [this message]
2016-09-03 0:38 ` [PATCH 1/3] mini-os: fix builds with uncommon config settings Samuel Thibault
2016-09-02 8:56 ` [PATCH 2/3] mini-os: add testbuild target to Makefile Juergen Gross
2016-09-03 0:41 ` Samuel Thibault
2016-09-05 6:12 ` Juergen Gross
2016-09-02 8:56 ` [PATCH 3/3] mini-os: update README to reflect recent changes Juergen Gross
2016-09-03 0:43 ` Samuel Thibault
2016-09-05 11:17 ` [PATCH 0/3] mini-os: test and document config variations Wei Liu
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=1472806607-4970-2-git-send-email-jgross@suse.com \
--to=jgross@suse.com \
--cc=minios-devel@lists.xenproject.org \
--cc=samuel.thibault@ens-lyon.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).