Date: Sat, 10 May 2003 17:20:43 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 30926 for review Message-ID: <200305110020.h4B0Khhv022074@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=30926 Change 30926 by marcel@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305110020.h4B0Khhv022074>