Lines Matching refs:gs_base
27 uintptr_t gs_base = (uintptr_t)thread_arg;
30 _writegsbase_u64(gs_base);
41 assert(_readgsbase_u64() == gs_base);
48 // This tests whether the gs_base register on x86 is preserved across
51 // We do this by launching multiple threads that set gs_base to different
52 // values. After all the threads have set gs_base, the threads wake up and
53 // check that gs_base was preserved.
64 // it, so saving and restoring gs_base between those threads should get
72 // Give each thread a different test value for gs_base.
73 void* gs_base = (void*)(uintptr_t)(i * 0x10004);
75 gs_base), 0);