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

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
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: 13,104
    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
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE