svn commit: r322772 - head/sys/mips/mips

John Baldwin jhb at FreeBSD.org
Mon Aug 21 21:48:25 UTC 2017


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


More information about the svn-src-all mailing list