Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jun 2016 06:21:51 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301878 - head/sys/mips/mips
Message-ID:  <201606140621.u5E6Lptr091267@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Jun 14 06:21:51 2016
New Revision: 301878
URL: https://svnweb.freebsd.org/changeset/base/301878

Log:
  [mips] Tidy up setting/clearing the hardfloat flag.
  
  Submitted by:	kan
  Approved by:	re (delphij)

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

Modified: head/sys/mips/mips/swtch.S
==============================================================================
--- head/sys/mips/mips/swtch.S	Tue Jun 14 03:57:00 2016	(r301877)
+++ head/sys/mips/mips/swtch.S	Tue Jun 14 06:21:51 2016	(r301878)
@@ -400,8 +400,9 @@ END(cpu_switch)
  *
  *----------------------------------------------------------------------------
  */
-.set hardfloat
 LEAF(MipsSwitchFPState)
+	.set push
+	.set hardfloat
 	mfc0	t1, MIPS_COP_0_STATUS	# Save old SR
 	li	t0, MIPS_SR_COP_1_BIT	# enable the coprocessor
 	mtc0	t0, MIPS_COP_0_STATUS
@@ -503,6 +504,7 @@ LEAF(MipsSwitchFPState)
 	ITLBNOPFIX
 	j	ra
 	nop
+	.set pop
 END(MipsSwitchFPState)
 
 /*----------------------------------------------------------------------------
@@ -523,6 +525,8 @@ END(MipsSwitchFPState)
  *----------------------------------------------------------------------------
  */
 LEAF(MipsSaveCurFPState)
+	.set push
+	.set hardfloat
 	PTR_L	a0, TD_PCB(a0)			# get pointer to pcb for thread
 	mfc0	t1, MIPS_COP_0_STATUS		# Disable interrupts and
 	li	t0, MIPS_SR_COP_1_BIT		#  enable the coprocessor
@@ -581,6 +585,7 @@ LEAF(MipsSaveCurFPState)
 	ITLBNOPFIX
 	j	ra
 	nop
+	.set pop
 END(MipsSaveCurFPState)
 
 /*



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