Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2009 03:59:47 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r197015 - projects/mips/sys/conf
Message-ID:  <200909090359.n893xlXg071871@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Sep  9 03:59:46 2009
New Revision: 197015
URL: http://svn.freebsd.org/changeset/base/197015

Log:
  Prefer PTR_LA over a naked la to work with 64-bits..

Modified:
  projects/mips/sys/conf/Makefile.mips

Modified: projects/mips/sys/conf/Makefile.mips
==============================================================================
--- projects/mips/sys/conf/Makefile.mips	Wed Sep  9 03:57:10 2009	(r197014)
+++ projects/mips/sys/conf/Makefile.mips	Wed Sep  9 03:59:46 2009	(r197015)
@@ -90,11 +90,11 @@ ${KERNEL_KO}.tramp.bin: ${KERNEL_KO} $S/
 	# Generate .S file that setups stack and jumps to trampoline
 	echo "#include <machine/asm.h>" >tmphack.S
 	echo "ENTRY(_start)" >>tmphack.S
-	echo "la t0, kernel_end" >>tmphack.S
+	echo "PTR_LA t0, kernel_end" >>tmphack.S
 	echo "move sp, t0" >>tmphack.S
 	echo "add sp, 0x2000" >>tmphack.S
 	echo "and sp, ~0x7" >>tmphack.S
-	echo "la t0, _startC" >>tmphack.S
+	echo "PTR_LA t0, _startC" >>tmphack.S
 	echo "j t0" >>tmphack.S
 	echo "END(_start)" >>tmphack.S
 	echo "#define KERNNAME \"${KERNEL_KO}.tmp\""  >opt_kernname.h 



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