amd64-tls: a wild idea to test
    Divacky Roman 
    xdivac02 at stud.fit.vutbr.cz
       
    Sun Jan 21 22:20:59 UTC 2007
    
    
  
hi..
can you try this patch? its very wild idea but miracles happen :)
--- /tmp/tmp.5878.0     Sun Jan 21 23:20:12 2007
+++ /root/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c  Sun Jan 21 23:20:04 2007
@@ -1298,8 +1298,8 @@
        critical_enter();
        /* set %gs */
+       wrmsr(MSR_KGSBASE, (register_t) info.base_addr);
        td->td_pcb->pcb_gsbase = (register_t)info.base_addr;
-       wrmsr(MSR_KGSBASE, td->td_pcb->pcb_gsbase);
        critical_exit();
(test with tls_test please)
roman
    
    
More information about the freebsd-emulation
mailing list