Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 21:48:24 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322772 - head/sys/mips/mips
Message-ID:  <201708212148.v7LLmOTh027894@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Aug 21 21:48:24 2017
New Revision: 322772
URL: https://svnweb.freebsd.org/changeset/base/322772

Log:
  Enable hardfloat CPU instructions in the FP exception handler.
  
  This permits compiling with clang's integrated assembler.
  
  Sponsored by:	DARPA / AFRL

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

Modified: head/sys/mips/mips/exception.S
==============================================================================
--- head/sys/mips/mips/exception.S	Mon Aug 21 20:27:45 2017	(r322771)
+++ head/sys/mips/mips/exception.S	Mon Aug 21 21:48:24 2017	(r322772)
@@ -1102,6 +1102,8 @@ END(MipsTLBMissException)
  *----------------------------------------------------------------------------
  */
 NESTED(MipsFPTrap, CALLFRAME_SIZ, ra)
+	.set push
+	.set hardfloat
 	PTR_SUBU	sp, sp, CALLFRAME_SIZ
 	mfc0	t0, MIPS_COP_0_STATUS
 	HAZARD_DELAY
@@ -1201,6 +1203,7 @@ FPReturn:
 	ITLBNOPFIX
 	j	ra
 	PTR_ADDU sp, sp, CALLFRAME_SIZ
+	.set pop
 END(MipsFPTrap)
 
 #ifndef INTRNG



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