2 * Copyright 2012, Alex Smith, alex@alex-smith.me.uk.
3 * Distributed under the terms of the MIT License.
12 find_thread(const char* name
)
16 static_assert(sizeof(thread_id
) <= sizeof(uint32_t),
17 "thread_id is larger than uint32_t");
18 __asm__
__volatile__ ("movl %%fs:8, %0" : "=r" (thread
));
22 return _kern_find_thread(name
);