X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..0c530ab8987f0ae6a1a3d9284f40182b88852816:/osfmk/ppc/_setjmp.s diff --git a/osfmk/ppc/_setjmp.s b/osfmk/ppc/_setjmp.s index c8a40b93d..cfe3d05cf 100644 --- a/osfmk/ppc/_setjmp.s +++ b/osfmk/ppc/_setjmp.s @@ -81,8 +81,8 @@ ENTRY(_setjmp,TAG_NO_FRAME_USED) stw r0, 88(ARG0) /* Fixed point exception register */ #if FLOATING_POINT_SUPPORT /* TODO NMGS probably not needed for kern */ - mffs r0 - stw r0, 92(ARG0) /* Floating point status register */ + mffs f0 /* get FPSCR in low 32 bits of f0 */ + stfiwx f0, 92(ARG0) /* Floating point status register */ stfd f14, 96(ARG0) /* Floating point context - 8 byte aligned */ stfd f15, 104(ARG0) @@ -153,8 +153,8 @@ ENTRY(_longjmp, TAG_NO_FRAME_USED) /* TODO NMGS - need correct tag */ mtxer r0 #ifdef FLOATING_POINT_SUPPORT - lwz r0, 92(ARG0) /* Floating point status register */ - mtfs r0 + lfd f0, 92-4(ARG0) /* get Floating point status register in low 32 bits of f0 */ + mtfsf 0xFF,f0 /* restore FPSCR */ lfd f14, 96(ARG0) /* Floating point context - 8 byte aligned */ lfd f15, 104(ARG0)