* src/threads/critical.c: Removed.
[cacao.git] / src / vm / jit / powerpc64 / linux / md-os.c
index 8b292f1adb037876f59c8f3757c23618a66f88c6..d978a70e4d45224e01d61056321422e89e31749c 100644 (file)
@@ -179,32 +179,6 @@ void md_signal_handler_sigusr2(int sig, siginfo_t *siginfo, void *_p)
 #endif
 
 
-/* md_critical_section_restart *************************************************
-
-   Search the critical sections tree for a matching section and set
-   the PC to the restart point, if necessary.
-
-*******************************************************************************/
-
-#if defined(ENABLE_THREADS)
-void md_critical_section_restart(ucontext_t *_uc)
-{
-       mcontext_t *_mc;
-       u1         *pc;
-       u1         *npc;
-
-       _mc = &(_uc->uc_mcontext);
-
-       pc = (u1 *) _mc->gp_regs[PT_NIP];
-
-       npc = critical_find_restart_point(pc);
-
-       if (npc != NULL)
-               _mc->gp_regs[PT_NIP] = (ptrint) npc;
-}
-#endif
-
-
 /*
  * These are local overrides for various environment variables in Emacs.
  * Please do not remove this and leave it at the end of the file, where