News for hackers. Stuff that matters.
Re:What Happens When a CPU Starts by cesarb on Wednesday January 11, 2023 @08:33AM (#34338200)
> windows will push the registers one at a time

Wouldn't Windows (and Linux) use the FXSAVE instruction instead?

Re:What Happens When a CPU Starts by toast0 on Wednesday January 11, 2023 @10:43AM (#34339696)
Probably FXSAVE or XSAVE for the mathy registers, yes. But that doesn't cover the general purpose registers, and (F)XSAVE can be skipped if the process in question doesn't use fancy math (easy to detect, disable it, when the process uses it, the kernel will catch the fault, then enable it and set a flag on the process so it saves and restores that state as well)