Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2009 08:13:44 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r200892 - projects/mips/lib/csu/mips
Message-ID:  <200912230813.nBN8DiAx090451@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Dec 23 08:13:44 2009
New Revision: 200892
URL: http://svn.freebsd.org/changeset/base/200892

Log:
  Load gp for N32 and N64 operations.
  
  Obtained from:	Cavium's Octeon port

Modified:
  projects/mips/lib/csu/mips/crtn.S

Modified: projects/mips/lib/csu/mips/crtn.S
==============================================================================
--- projects/mips/lib/csu/mips/crtn.S	Wed Dec 23 06:52:12 2009	(r200891)
+++ projects/mips/lib/csu/mips/crtn.S	Wed Dec 23 08:13:44 2009	(r200892)
@@ -9,6 +9,9 @@ __FBSDID("$FreeBSD$");
 
 	.section .fini,"ax",%progbits
 	lw	ra, 28(sp)
+#if defined(__mips_n64) || defined(__mips_n32)
+	lw	gp, 16(sp)
+#endif
 	.set	noreorder
 	j	ra
 	addu	sp, sp, 32



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