From 9cec82de715b3ffc625a6c67d107a3fcb26af566 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 11 Nov 2020 10:35:10 +0000 Subject: htl: Initialize later Since htl does not actually need a stack switch, we can initialize it like nptl is, avoiding all sorts of startup issues with ifunc. More precisely, htl defines __pthread_initialize_minimal instead of the elder _cthread_init_routine. We can then drop the stack switching dances. --- sysdeps/mach/sysdep.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sysdeps/mach/sysdep.h') diff --git a/sysdeps/mach/sysdep.h b/sysdeps/mach/sysdep.h index ba65015253..13ea04d980 100644 --- a/sysdeps/mach/sysdep.h +++ b/sysdeps/mach/sysdep.h @@ -62,14 +62,6 @@ #error SNARF_ARGS not defined by sysdeps/mach/MACHINE/sysdep.h #endif -/* Call the C function FN with no arguments, - on a stack starting at SP (as returned by *_cthread_init_routine). - You don't need to deal with FN returning; it shouldn't. */ -#ifndef CALL_WITH_SP -#define CALL_WITH_SP(fn, sp) -#error CALL_WITH_SP not defined by sysdeps/mach/MACHINE/sysdep.h -#endif - /* LOSE can be defined as the `halt' instruction or something similar which will cause the process to die in a characteristic way suggesting a bug. */ -- cgit v1.2.3