From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <93653898c4ceb27355b5fa1e548176aa@brasstown.quanstro.net> References: <93653898c4ceb27355b5fa1e548176aa@brasstown.quanstro.net> Date: Mon, 21 Nov 2011 07:33:26 -0800 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] sysrfork fp bug? Topicbox-Message-UUID: 422aa43c-ead7-11e9-9d60-3106f5b1d025 registers are dead on entry to a function, so there's no point in saving particular values, because they won't be used. on an amd64, however, the kernel should reset the FP-used flag, to cause the preset values to be set in the high FP registers if the fork'd process does touch the FP. On 21 November 2011 07:08, erik quanstrom wrote: > sysrfork() does *not* do a procsave before forking. =C2=A0thus the > floating point registers in the new process are just going to > be a copy of whatever was last saved, and perhaps nothing.