Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2013 11:23:38 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254847 - head/sys/arm/arm
Message-ID:  <201308251123.r7PBNdnj034380@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Sun Aug 25 11:23:38 2013
New Revision: 254847
URL: http://svnweb.freebsd.org/changeset/base/254847

Log:
  Add the frame information to cpu_switch to allow us to unwind out of it,
  for example when dumping threads in the kernel debugger.

Modified:
  head/sys/arm/arm/swtch.S

Modified: head/sys/arm/arm/swtch.S
==============================================================================
--- head/sys/arm/arm/swtch.S	Sun Aug 25 11:21:10 2013	(r254846)
+++ head/sys/arm/arm/swtch.S	Sun Aug 25 11:23:38 2013	(r254847)
@@ -218,6 +218,11 @@ END(cpu_throw)
 ENTRY(cpu_switch)
 	stmfd	sp!, {r4-r7, lr}
 	sub	sp, sp, #4;
+#ifdef __ARM_EABI__
+	.save	{r4-r7, lr}
+	.pad	#4
+#endif
+
 	mov	r6, r2 /* Save the mutex */
 
 .Lswitch_resume:



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