Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

using sse registers in kernel mode x64

MakMak Member Posts: 50

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

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 12,769
    via Email
    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.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • MakMak Member Posts: 50

    Thank you.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 4 Feb 2019 OSR Seminar Space
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Kernel Debugging and Crash Analysis 25 Mar 2019 OSR Seminar Space