Results 1 to 25 of 133

Thread: Howto disable the tlb-fix with CrystalCPU

Threaded View

  1. #11
    Registered User
    Join Date
    Feb 2008
    Posts
    47
    Good catch. Here is the my code that does not involve CrystalCPUID.

    h_thread=GetCurrentThread();
    printf("Reading Original MSR Register Status:\n");
    core_mask=1;//0001 for core 1
    SetThreadAffinityMask(h_thread, core_mask);

    Set core_mask at 2, 4, 8 for core 2 ,3, and 4, respectively to Read/Write MSR values to each core.

    Quote Originally Posted by justapost View Post
    Nevermind, the missing link was how to write to all the msr's in a simple way here. Just found the openlibsys project developed under the modified bsd license. That will do the job and is a project of the CrystalCPU author.

    EDIT: Looking at the source "DeviceIoControl" is the windows function used to modify msr registers. "SetThreadAffinityMask" is used to choose the right core. Can be so easy.
    Last edited by sam2008; 03-04-2008 at 04:22 PM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •