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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] minios: do not export {test, set, clear}_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] minios: do not export {test, set, clear}_bit etc to applications
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 09 Feb 2011 06:50:39 -0800
Delivery-date: Wed, 09 Feb 2011 06:52:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1297080804 0
# Node ID e44f3ab80d1428020b51abd9be4fa5d71b6c32bc
# Parent  77d05af7dc78c76d393b4bff8d93c0e42ee72ad4
minios: do not export {test,set,clear}_bit etc to applications

Fixes ioemu stubdom build:
CC    i386-stubdom/piix4acpi.o
[...]/stubdom/ioemu/hw/piix4acpi.c:272: error: expected ')' before '?' token
[...]/stubdom/ioemu/hw/piix4acpi.c:277: error: conflicting types for 'set_bit'
[...]/stubdom/../extras/mini-os/include/x86/mini-os/os.h:396: error: previous 
definition of 'set_bit' was here
[...]/stubdom/ioemu/hw/piix4acpi.c:282: error: conflicting types for 'clear_bit'
[...]/stubdom/../extras/mini-os/include/x86/mini-os/os.h:414: error: previous 
definition of 'clear_bit' was here
[...]/stubdom/ioemu/hw/piix4acpi.c: In function 'gpe_sts_write':

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 extras/mini-os/include/x86/os.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 77d05af7dc78 -r e44f3ab80d14 extras/mini-os/include/x86/os.h
--- a/extras/mini-os/include/x86/os.h   Mon Feb 07 09:58:11 2011 +0000
+++ b/extras/mini-os/include/x86/os.h   Mon Feb 07 12:13:24 2011 +0000
@@ -164,6 +164,7 @@ typedef struct { volatile int counter; }
 /************************** i386 *******************************/
+#ifdef __INSIDE_MINIOS__
 #if defined (__i386__)
 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned 
@@ -451,7 +452,7 @@ static __inline__ unsigned long __ffs(un
 #else /* ifdef __x86_64__ */
 #error "Unsupported architecture"
+#endif /* ifdef __INSIDE_MINIOS */
 /********************* common i386 and x86_64  ****************************/
 struct __synch_xchg_dummy { unsigned long a[100]; };

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] minios: do not export {test, set, clear}_bit etc to applications, Xen patchbot-unstable <=