This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Sparc libjava support update


   From: Andrew Haley <aph@redhat.com>
   Date: Sun, 21 Apr 2002 12:01:33 +0100 (BST)

   What is the magic insn?  Why does it cause regp to be off by one?

Is this what you want?

2002-04-21  David S. Miller  <davem@redhat.com>

	* include/dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document
	magic instruction reading sequence.

--- include/dwarf2-signal.h.~1~	Fri Apr 19 13:48:37 2002
+++ include/dwarf2-signal.h	Sun Apr 21 04:01:38 2002
@@ -77,9 +77,11 @@
   } *regp;								\
   unsigned int insn;							\
   __asm__ __volatile__("ld [%%i7 + 8], %0" : "=r" (insn));		\
+  /* mov __NR_sigaction, %g1; Old signal stack layout */		\
   if (insn == 0x821020d8)						\
     regp = (struct sig_regs *) _sip;					\
   else									\
+    /* mov __NR_rt_sigaction, %g1; New signal stack layout */		\
     regp = (struct sig_regs *) (_sip + 1);				\
   regp->pc = regp->npc;							\
   regp->npc += 4;							\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]