1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10
void _MD_EarlyInit(void)
13
* Ignore FPE because coercion of a NaN to an int causes SIGFPE
18
act.sa_handler = SIG_IGN;
19
sigemptyset(&act.sa_mask);
20
act.sa_flags = SA_RESTART;
21
sigaction(SIGFPE, &act, 0);
24
PRWord *_MD_HomeGCRegisters(PRThread *t, int isCurrent, int *np)
28
(void) setjmp(CONTEXT(t));
30
*np = sizeof(CONTEXT(t)) / sizeof(PRWord);
31
return (PRWord *) CONTEXT(t);
40
_MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri)
46
_MD_InitializeThread(PRThread *thread)
52
_MD_WAIT(PRThread *thread, PRIntervalTime ticks)
54
PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
55
_PR_MD_SWITCH_CONTEXT(thread);
60
_MD_WAKEUP_WAITER(PRThread *thread)
63
PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
68
/* These functions should not be called for BSDI */
72
PR_NOT_REACHED("_MD_YIELD should not be called for BSDI.");
78
void (*start) (void *),
79
PRThreadPriority priority,
84
PR_NOT_REACHED("_MD_CREATE_THREAD should not be called for BSDI.");
87
#endif /* ! _PR_PTHREADS */