michael@0: /* -*- Mode: C++; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "primpl.h" michael@0: #include michael@0: michael@0: // void _PR_InitCPUs(void) {PT_LOG("_PR_InitCPUs")} michael@0: // void _MD_StartInterrupts(void) {PT_LOG("_MD_StartInterrupts")} michael@0: michael@0: /* this is a total hack.. */ michael@0: michael@0: struct protoent* getprotobyname(const char* name) michael@0: { michael@0: return 0; michael@0: } michael@0: michael@0: struct protoent* getprotobynumber(int number) michael@0: { michael@0: return 0; michael@0: } michael@0: michael@0: /* this is needed by prinit for some reason */ michael@0: void michael@0: _PR_InitStacks (void) michael@0: { michael@0: } michael@0: michael@0: /* this is needed by prinit for some reason */ michael@0: void michael@0: _PR_InitTPD (void) michael@0: { michael@0: } michael@0: michael@0: /* michael@0: ** Create extra virtual processor threads. Generally used with MP systems. michael@0: */ michael@0: PR_IMPLEMENT(void) michael@0: PR_SetConcurrency (PRUintn numCPUs) michael@0: { michael@0: } michael@0: michael@0: /* michael@0: ** Set thread recycle mode to on (1) or off (0) michael@0: */ michael@0: PR_IMPLEMENT(void) michael@0: PR_SetThreadRecycleMode (PRUint32 flag) michael@0: { michael@0: } michael@0: michael@0: /* michael@0: ** Get context registers, return with error for now. michael@0: */ michael@0: michael@0: PR_IMPLEMENT(PRWord *) michael@0: _MD_HomeGCRegisters( PRThread *t, int isCurrent, int *np ) michael@0: { michael@0: return 0; michael@0: } michael@0: michael@0: PR_IMPLEMENT(void *) michael@0: PR_GetSP( PRThread *t ) michael@0: { michael@0: return 0; michael@0: } michael@0: michael@0: PR_IMPLEMENT(PRStatus) michael@0: PR_EnumerateThreads( PREnumerator func, void *arg ) michael@0: { michael@0: return PR_FAILURE; michael@0: }