PERFORCE change 30926 for review

Marcel Moolenaar marcel at FreeBSD.org
Sat May 10 17:20:45 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=30926

Change 30926 by marcel at marcel_nfs on 2003/05/10 17:19:44

	Access to the high FP registers are disabled while in kernel
	mode. We need to enable them prior to saving/restoring and
	disable them again when we're done.

Affected files ...

.. //depot/projects/ia64_epc/sys/ia64/ia64/context.s#16 edit

Differences ...

==== //depot/projects/ia64_epc/sys/ia64/ia64/context.s#16 (text+ko) ====

@@ -499,6 +499,9 @@
  * save_high_fp(struct _high_fp *)
  */
 ENTRY(save_high_fp, 1)
+	rsm		psr.dfh
+	;;
+	srlz.d
 	add		r31=16,r32
 	stf.spill	[r32]=f32,32
 	;;
@@ -644,6 +647,9 @@
 	stf.spill	[r32]=f126
 	;;
 	stf.spill	[r31]=f127
+	ssm		psr.dfh
+	;;
+	srlz.d
 	br.ret.sptk	rp
 	;;
 END(save_high_fp)
@@ -652,6 +658,9 @@
  * restore_high_fp(struct _high_fp *)
  */
 ENTRY(restore_high_fp, 1)
+	rsm		psr.dfh
+	;;
+	srlz.d
 	add		r31=16,r32
 	ldf.fill	f32=[r32],32
 	;;
@@ -797,6 +806,9 @@
 	ldf.fill	f126=[r32]
 	;;
 	ldf.fill	f127=[r31]
+	ssm		psr.dfh
+	;;
+	srlz.d
 	br.ret.sptk	rp
 	;;
 END(restore_high_fp)


More information about the p4-projects mailing list