Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2013 00:17:12 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257081 - head/sys/cddl/dev/dtrace/powerpc
Message-ID:  <201310250017.r9P0HCl2001531@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Fri Oct 25 00:17:12 2013
New Revision: 257081
URL: http://svnweb.freebsd.org/changeset/base/257081

Log:
  ELF PowerPC64 ABI puts the LR save word at 16 byte offset, not 8.

Modified:
  head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c

Modified: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c
==============================================================================
--- head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c	Thu Oct 24 23:47:31 2013	(r257080)
+++ head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c	Fri Oct 25 00:17:12 2013	(r257081)
@@ -49,7 +49,8 @@
 
 /* Offset to the LR Save word (ppc32) */
 #define RETURN_OFFSET	4
-#define RETURN_OFFSET64	8
+/* Offset to LR Save word (ppc64).  CR Save area sits between back chain and LR */
+#define RETURN_OFFSET64	16
 
 #define INKERNEL(x)	((x) <= VM_MAX_KERNEL_ADDRESS && \
 		(x) >= VM_MIN_KERNEL_ADDRESS)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310250017.r9P0HCl2001531>