0
|
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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32\memmodel\epoc\moving\arm\xsched.cpp
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#include "arm_mem.h"
|
|
19 |
|
|
20 |
#define iMState iWaitLink.iSpare1
|
|
21 |
|
|
22 |
//#define __DEBUG_BAD_ADDR
|
|
23 |
|
|
24 |
#define iCurrentVMProcess iExtras[0]
|
|
25 |
#define iCurrentDataSectionProcess iExtras[1]
|
|
26 |
#define iCompleteDataSectionProcess iExtras[2]
|
|
27 |
|
|
28 |
#ifdef __SCHEDULER_MACHINE_CODED__
|
|
29 |
|
|
30 |
#if defined(_DEBUG)
|
|
31 |
extern "C" void __DebugMsgFixedAddress()
|
|
32 |
{
|
|
33 |
__KTRACE_OPT(KSCHED2,Kern::Printf("Fixed Address process"));
|
|
34 |
}
|
|
35 |
|
|
36 |
extern "C" void __DebugMsgMoving()
|
|
37 |
{
|
|
38 |
__KTRACE_OPT(KSCHED2,Kern::Printf("Moving Chunk process"));
|
|
39 |
}
|
|
40 |
|
|
41 |
extern "C" void __DebugMsgProtectChunks(int aProc)
|
|
42 |
{
|
|
43 |
DProcess *pP=(DProcess*)aProc;
|
|
44 |
__KTRACE_OPT(KSCHED2,Kern::Printf("%O->Protect Chunks",pP));
|
|
45 |
}
|
|
46 |
|
|
47 |
extern "C" void __DebugMsgUnprotectChunks(int aProc)
|
|
48 |
{
|
|
49 |
DProcess *pP=(DProcess*)aProc;
|
|
50 |
__KTRACE_OPT(KSCHED2,Kern::Printf("%O->Unprotect Chunks",pP));
|
|
51 |
}
|
|
52 |
|
|
53 |
extern "C" void __DebugMsgMoveChunksToHome(int aProc)
|
|
54 |
{
|
|
55 |
DProcess *pP=(DProcess*)aProc;
|
|
56 |
__KTRACE_OPT(KSCHED2,Kern::Printf("%O->MoveChunksToHomeSection",pP));
|
|
57 |
}
|
|
58 |
|
|
59 |
extern "C" void __DebugMsgMoveChunksToData(int aProc)
|
|
60 |
{
|
|
61 |
DProcess *pP=(DProcess*)aProc;
|
|
62 |
__KTRACE_OPT(KSCHED2,Kern::Printf("%O->MoveChunksToDataSection",pP));
|
|
63 |
}
|
|
64 |
|
|
65 |
extern "C" void __DebugMsgMoveChunkToHomeAddress(int aChunk)
|
|
66 |
{
|
|
67 |
DMemModelChunk* pC=(DMemModelChunk*)aChunk;
|
|
68 |
__KTRACE_OPT(KSCHED2,Kern::Printf("MoveToHomeSection, initaddr %08X size %08X final addr %08X",pC->Base(),pC->Size(),pC->iHomeRegionBase));
|
|
69 |
}
|
|
70 |
|
|
71 |
extern "C" void __DebugMsgProtectChunk(int aChunk)
|
|
72 |
{
|
|
73 |
DMemModelChunk* pC=(DMemModelChunk*)aChunk;
|
|
74 |
__KTRACE_OPT(KSCHED2,Kern::Printf("ProtectChunk, base %08X size %08X",pC->Base(),pC->Size()));
|
|
75 |
}
|
|
76 |
|
|
77 |
extern "C" void __DebugMsgMoveChunkToRunAddress(int aChunk, int aRunAddr)
|
|
78 |
{
|
|
79 |
DMemModelChunk* pC=(DMemModelChunk*)aChunk;
|
|
80 |
__KTRACE_OPT(KSCHED2,Kern::Printf("MoveToRunAddress, base %08X size %08X run address %08X",pC->Base(),pC->Size(),aRunAddr));
|
|
81 |
}
|
|
82 |
|
|
83 |
extern "C" void __DebugMsgUnprotectChunk(int aChunk)
|
|
84 |
{
|
|
85 |
DMemModelChunk* pC=(DMemModelChunk*)aChunk;
|
|
86 |
__KTRACE_OPT(KSCHED2,Kern::Printf("UnprotectChunk, base %08X size %08X",pC->Base(),pC->Size()));
|
|
87 |
}
|
|
88 |
|
|
89 |
/*************************/
|
|
90 |
|
|
91 |
extern "C" void __DebugMsgDThreadRequestComplete(TInt a0, TInt a1)
|
|
92 |
{
|
|
93 |
DThread* pT=(DThread*)a0;
|
|
94 |
__KTRACE_OPT(KDATAPAGEWARN,Kern::Printf("Data paging: Use of deprecated DThread::RequestComplete API by %O at %08x", pT, a1));
|
|
95 |
}
|
|
96 |
|
|
97 |
extern "C" void __DebugMsgRequestComplete(TInt a0, TInt a1, TInt a2)
|
|
98 |
{
|
|
99 |
DThread* pT=(DThread*)a0;
|
|
100 |
__KTRACE_OPT(KTHREAD,Kern::Printf("Thread %O RequestComplete %08x %d",pT,a1,a2));
|
|
101 |
__KTRACE_OPT(KDATAPAGEWARN,Kern::Printf("Data paging: Use of deprecated Kern::RequestComplete API by %O", TheCurrentThread));
|
|
102 |
}
|
|
103 |
|
|
104 |
extern "C" void __DebugMsgReqCompleteWrite(TInt a0, TInt a1, TInt a2)
|
|
105 |
{
|
|
106 |
__KTRACE_OPT(KTHREAD,Kern::Printf("Writing %d to %08x",a2,a0+a1));
|
|
107 |
}
|
|
108 |
#endif
|
|
109 |
#endif
|
|
110 |
|