qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).
@ 2008-06-02  1:01 Andrzej Zaborowski
  2008-06-02  1:49 ` M. Warner Losh
  0 siblings, 1 reply; 2+ messages in thread
From: Andrzej Zaborowski @ 2008-06-02  1:01 UTC (permalink / raw)
  To: qemu-devel

Revision: 4641
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4641
Author:   balrog
Date:     2008-06-02 01:01:18 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).

Modified Paths:
--------------
    trunk/cpu-exec.c

Modified: trunk/cpu-exec.c
===================================================================
--- trunk/cpu-exec.c	2008-06-02 00:55:08 UTC (rev 4640)
+++ trunk/cpu-exec.c	2008-06-02 01:01:18 UTC (rev 4641)
@@ -1320,7 +1320,11 @@
     unsigned long pc;
     int is_write;
 
+#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ =< 3))
+    pc = uc->uc_mcontext.gregs[R15];
+#else
     pc = uc->uc_mcontext.arm_pc;
+#endif
     /* XXX: compute is_write */
     is_write = 0;
     return handle_cpu_signal(pc, (unsigned long)info->si_addr,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).
  2008-06-02  1:01 [Qemu-devel] [4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl) Andrzej Zaborowski
@ 2008-06-02  1:49 ` M. Warner Losh
  0 siblings, 0 replies; 2+ messages in thread
From: M. Warner Losh @ 2008-06-02  1:49 UTC (permalink / raw)
  To: qemu-devel, balrogg

In message: <E1K2yQJ-0004e7-23@cvs.savannah.gnu.org>
            Andrzej Zaborowski <balrogg@gmail.com> writes:
: Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).
: +#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ =< 3))

These aren't saying the same thing.  Fix the comment or fix the code :-)

Warner

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-02  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02  1:01 [Qemu-devel] [4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl) Andrzej Zaborowski
2008-06-02  1:49 ` M. Warner Losh

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).