Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2012 20:58:10 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232892 - head/libexec/rtld-elf/mips
Message-ID:  <201203122058.q2CKwAEM086595@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Mon Mar 12 20:58:09 2012
New Revision: 232892
URL: http://svn.freebsd.org/changeset/base/232892

Log:
  Use PTR_(ADD|SUB)U macrosses instead of hardcoded addu/subu
  
  Spotted by: juli

Modified:
  head/libexec/rtld-elf/mips/rtld_start.S

Modified: head/libexec/rtld-elf/mips/rtld_start.S
==============================================================================
--- head/libexec/rtld-elf/mips/rtld_start.S	Mon Mar 12 20:46:18 2012	(r232891)
+++ head/libexec/rtld-elf/mips/rtld_start.S	Mon Mar 12 20:58:09 2012	(r232892)
@@ -68,11 +68,11 @@ LEAF(rtld_start)
 	move	a0, s0			/* sp */
 	PTR_ADDU a1, sp, 2*PTR_SIZE	/* &our atexit function */
 	PTR_ADDU a2, sp, 3*PTR_SIZE	/* obj_main entry */
-	subu	sp, 4*SZREG		/* ABI requires to reserve memory for 4 regs */
+	PTR_SUBU sp, 4*SZREG		/* ABI requires to reserve memory for 4 regs */
 	PTR_LA	t9, _C_LABEL(_rtld)
 	jalr	t9			/* v0 = _rtld(sp, cleanup, objp) */
 	nop
-	addu	sp, 4*SZREG
+	PTR_ADDU sp, 4*SZREG
 
 	PTR_L	a1, 2*PTR_SIZE(sp)	/* our atexit function */
 	PTR_L	a2, 3*PTR_SIZE(sp)	/* obj_main entry */



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