using sse registers in kernel mode x64

We want to integrate our own hash algorithm. This algorithm use SSE registers. What must we do to use them in kernel mode?

Mak wrote:

We want to integrate our own hash algorithm. This algorithm use SSE registers. What must we do to use them in kernel mode?

The 64-bit systems save and restore the SSE registers on a user/kernel
switch.  If your driver will need to run on 32-bit systems, you need to
bracket your use with KeSaveExtendedProcessorState and
KeRestoreExtendedProcessorState. Those calls are zero-overhead on 64-bit
systems, so the best plan is to include them either way.

Thank you.