Update contrib.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\nkern\x86\ncsched.cpp
18 // NThreadBase member data
19 #define __INCLUDE_NTHREADBASE_DEFINES__
23 //#define __DEBUG_BAD_ADDR
26 extern "C" void __DebugMsgWaitForAnyRequest()
28 __KTRACE_OPT(KEXEC,DEBUGPRINT("WfAR"));
31 extern "C" void __DebugMsgResched(int a)
33 __KTRACE_OPT(KSCHED,DEBUGPRINT("Reschedule->%T",a));
36 extern "C" void __DebugMsgInitSelection(int a)
38 NThread* pT=(NThread*)a;
39 if (pT->iHeldFastMutex)
41 __KTRACE_OPT(KSCHED2,DEBUGPRINT("Resched init->%T, Holding %M",pT,pT->iHeldFastMutex));
45 __KTRACE_OPT(KSCHED2,DEBUGPRINT("Resched init->%T",pT));
49 extern "C" void __DebugMsgRR(int a)
51 NThread* pT=(NThread*)a;
52 __KTRACE_OPT(KSCHED2,DEBUGPRINT("RoundRobin->%T",pT));
55 extern "C" void __DebugMsgBlockedFM(int a)
57 NFastMutex* pM=(NFastMutex*)a;
58 __KTRACE_OPT(KSCHED2,DEBUGPRINT("Resched inter->%T, Blocked on %M",pM->iHoldingThread,pM));
61 extern "C" void __DebugMsgImpSysHeld(int a)
63 NThread* pT=(NThread*)a;
64 __KTRACE_OPT(KSCHED2,DEBUGPRINT("Resched inter->%T (IMP SYS)",pT));
67 extern "C" void DebugMsgFMSignal(int a)
69 __NK_ASSERT_DEBUG(TheScheduler.iCurrentThread->iHeldFastMutex==(NFastMutex*)a);
70 __KTRACE_OPT(KNKERN,DEBUGPRINT("FMSignal %M",a));
73 extern "C" void DebugMsgFMWait(int a)
75 __NK_ASSERT_DEBUG(!TheScheduler.iCurrentThread->iHeldFastMutex);
76 __KTRACE_OPT(KNKERN,DEBUGPRINT("FMWait %M",a));
79 extern "C" void DebugMsgFMWaitYield(int a)
81 __KTRACE_OPT(KNKERN,DEBUGPRINT("FMWait: YieldTo %T",a));
84 extern "C" void DebugMsgNKFMSignal(int a)
86 __NK_ASSERT_DEBUG(TheScheduler.iCurrentThread->iHeldFastMutex==(NFastMutex*)a);
87 __KTRACE_OPT(KNKERN,DEBUGPRINT("NKFMSignal %M",a));
90 extern "C" void DebugMsgNKFMWait(int a)
92 __NK_ASSERT_DEBUG(!TheScheduler.iCurrentThread->iHeldFastMutex);
93 __KTRACE_OPT(KNKERN,DEBUGPRINT("NKFMWait %M",a));
96 extern "C" void DebugMsgNKFMWaitYield(int a)
98 __KTRACE_OPT(KNKERN,DEBUGPRINT("NKFMWait: YieldTo %T",a));