Kim
Regarding the assembly wouldn't it be simpler to do this?
1 2 3 4 5 6 inline u32 GetThreadID(void) { u32 ThreadID; asm("mov %%gs:0x0,%0" : "=r"(ThreadID)); return ThreadID; }
Indeed and it seems to work just fine. :D Sometimes I overcomplicate without any reason to.
Does it also work in Linux ?
Thanks a lot :)