]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
Fix to exec-all.h for stubdom
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 11 Sep 2008 16:30:36 +0000 (17:30 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 11 Sep 2008 16:30:36 +0000 (17:30 +0100)
I (iwj) mistakenly dropped this patch which is in fact necessary for
stubdom.

(This these changes was originally written by Samuel for an older
 version of qemu-remote.)

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
exec-all.h

index 8d4e6f608031e4d58abcdccc76e89549c30f50b1..f9475df95a5df24a564dbd1024480117d95b865b 100644 (file)
@@ -307,7 +307,9 @@ extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
 
 #include <spinlock.h>
 
-#elif defined(__hppa__)
+#else
+
+#if defined(__hppa__)
 
 typedef int spinlock_t[4];
 
@@ -519,6 +521,8 @@ static inline int spin_trylock(spinlock_t *lock)
 }
 #endif
 
+#endif
+
 extern spinlock_t tb_lock;
 
 extern int tb_invalidated_flag;