Starcraft, Cedega and TLS
I have tried to play starcraft in Linux using Wine. But the speed was unacceptable. I've heard from others that wine works for them. However, it doesn't work here. So I tried cedega days ago. The result is quite satisfactory! I don't need to return to Windows to play starcraft any more. Yesterday I looked into the details of accessing thread local storage. I wrote a small kernel module to get the base address of insmod process's tls segment, and then print the value of AT_SYSINFO #include <linux/init.h> #include <linux/module.h> #include <asm/desc.h> static int __init mod_init(void) { int i=0, a=0, b=0, h, l; int *ptr=(int *)get_cpu_gdt_table(0); for(; i<28; i++){ l = *ptr++; ...