Fix magic pthread exit that was getting relocated somehow

This commit is contained in:
Kevin Lange 2016-12-05 22:41:47 +09:00
parent 82492bf0d2
commit 16d10e1800

View File

@ -36,5 +36,7 @@ void pthread_exit(void * value) {
free(stack);
/* XXX: Return value!? */
#endif
__asm__ ("jmp 0xFFFFB00F"); /* Force thread exit */
uintptr_t magic_exit_target = 0xFFFFB00F;
void (*magic_exit_func)(void) = (void *)magic_exit_target;
magic_exit_func();
}