Re: Saving the Floating Point State
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... At 13:40 -0700 23/4/10, Duane Murphy wrote: Does OS X/Darwin have a function for saving and restoring the state of the floating pointer registers? No. The Darwin model is that you should use the floating point unit at will; the kernel will notice, trap, save the user's FP state, clear the FP state, and continue running your code. At that point the kernel knows that the FP unit contains kernel stuff, and preserve it across kernel preemptions, and restores the user FP state when the thread returns to user space. This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn