0
|
1 |
// Copyright (c) 1995-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\kernel\sglobals.cpp
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#include <kernel/kern_priv.h>
|
|
19 |
#include <kernel/sshbuf.h>
|
|
20 |
|
|
21 |
extern "C" {
|
|
22 |
TLinAddr SuperPageAddress;
|
|
23 |
}
|
|
24 |
|
|
25 |
TMachineConfig* K::MachineConfig;
|
|
26 |
RAllocator* K::Allocator;
|
|
27 |
K::SHeapInfo K::HeapInfo;
|
|
28 |
K::SMsgInfo K::MsgInfo;
|
|
29 |
DThread* K::TheKernelThread;
|
|
30 |
DProcess* K::TheKernelProcess;
|
|
31 |
DThread* K::TheNullThread;
|
|
32 |
DThread* K::SvThread;
|
|
33 |
TDfcQue* K::SvMsgQ;
|
|
34 |
TMessageQue K::SvBarrierQ(&K::DoSvBarrier, &K::SvBarrierQ, NULL, 0);
|
|
35 |
NFastMutex K::EventQueueMutex;
|
|
36 |
TRawEvent *K::EventHeadPtr;
|
|
37 |
TRawEvent *K::EventTailPtr;
|
|
38 |
TRawEvent *K::EventBufferStart;
|
|
39 |
TRawEvent *K::EventBufferEnd;
|
|
40 |
TClientDataRequest<TRawEvent>* K::EventRequest;
|
|
41 |
DThread *K::EventThread;
|
|
42 |
TDfcQue* K::DfcQ0;
|
|
43 |
TDfcQue* K::DfcQ1;
|
|
44 |
TDfcQue* K::TimerDfcQ;
|
|
45 |
TInt K::DfcQId=0;
|
|
46 |
volatile TUint K::DynamicDfcQId=0xdfc00001;
|
|
47 |
SHalEntry2* K::HalEntryArray;
|
|
48 |
DPowerModel* K::PowerModel=NULL;
|
|
49 |
TBool K::PowerGood=ETrue;
|
|
50 |
TInt K::MaxMemCopyInOneGo;
|
|
51 |
TTickQ* K::TickQ;
|
|
52 |
TSecondQ* K::SecondQ;
|
|
53 |
TInactivityQ* K::InactivityQ;
|
|
54 |
TInt K::HomeTimeOffsetSeconds;
|
|
55 |
TInt K::NonSecureOffsetSeconds;
|
|
56 |
TInt K::SecureClockStatus;
|
|
57 |
TInt64 K::Year2000InSeconds;
|
|
58 |
DMutex* K::MachineConfigMutex;
|
|
59 |
DObjectCon* K::Containers[ENumObjectTypes];
|
|
60 |
DMutex* DCodeSeg::CodeSegLock;
|
|
61 |
TInt DCodeSeg::DeleteLock;
|
|
62 |
TInt DCodeSeg::KernelCleanupLock;
|
|
63 |
SDblQue DCodeSeg::GlobalList;
|
|
64 |
SDblQue DCodeSeg::GarbageList;
|
|
65 |
SDblQue DCodeSeg::KernelGarbageList;
|
|
66 |
SDblQue DCodeSeg::DeferredKernelGarbageList;
|
|
67 |
TDfc DCodeSeg::KernelCleanupDfc(DCodeSeg::DoKernelCleanup, NULL, 1);
|
|
68 |
RPointerArray<DCodeSeg> DCodeSeg::CodeSegsByName(8, 2*256);
|
|
69 |
DCodeSeg::RCodeSegsByAddress DCodeSeg::CodeSegsByAddress(8, 2*256);
|
|
70 |
TClientRequest* DCodeSeg::DestructNotifyRequest=NULL;
|
|
71 |
DThread* DCodeSeg::DestructNotifyThread=NULL;
|
|
72 |
TCodeSegLoaderCookieList* DCodeSeg::DestructNotifyList=NULL;
|
|
73 |
TDfc TClientRequest::DeadClientCleanupDfc(TClientRequest::DoDeadClientCleanup, NULL, 2);
|
|
74 |
|
|
75 |
TInt K::MaxFreeRam;
|
|
76 |
//
|
|
77 |
TInt K::NextId=0;
|
|
78 |
//
|
|
79 |
NFastMutex TMessageQue::MsgLock;
|
|
80 |
NFastMutex DObject::Lock;
|
|
81 |
TUint64 DObject::NextObjectId = 1u<<18;
|
|
82 |
DMutex* RObjectIx::HandleMutex;
|
|
83 |
NFastMutex TLogon::LogonLock;
|
|
84 |
//
|
|
85 |
TAny* volatile K::AsyncFreeHead=NULL;
|
|
86 |
DBase* volatile K::AsyncDeleteHead=NULL;
|
|
87 |
TDfc K::AsyncFreeDfc(K::DoAsyncFree, NULL, 2);
|
|
88 |
TInt K::MemoryLowThreshold=0;
|
|
89 |
TInt K::MemoryGoodThreshold=KMaxTInt;
|
|
90 |
TUint K::AsyncChanges=0;
|
|
91 |
TDfc K::AsyncChangeNotifierDfc(K::DoAsyncNotify, NULL, 2);
|
|
92 |
|
|
93 |
//
|
|
94 |
TBool K::Initialising=ETrue;
|
|
95 |
TBool K::ColdStart;
|
|
96 |
TInt K::ExtensionCount = 0;
|
|
97 |
RArray<SExtInit1EntryPoint>* K::ExtensionArray=0;
|
|
98 |
DProcess* K::TheFileServerProcess;
|
|
99 |
DProcess* K::TheWindowServerProcess;
|
|
100 |
TInt K::PINestLevel=0;
|
|
101 |
SDblQue DKernelEventHandler::HandlersQ;
|
|
102 |
TInt K::SupervisorThreadStackSize;
|
|
103 |
TUint32 K::MemModelAttributes;
|
|
104 |
|
|
105 |
DMutex* TInternalRamDrive::Mutex=NULL;
|
|
106 |
|
|
107 |
TKernelHookFn K::KernelHooks[ENumKernelHooks] =
|
|
108 |
{
|
|
109 |
NULL, // EHookTrace
|
|
110 |
(TKernelHookFn)K::DoNanoWait, // EHookNanoWait
|
|
111 |
(TKernelHookFn)P::DefaultInitialTime // EHookInitialTime
|
|
112 |
};
|
|
113 |
|
|
114 |
TUint K::TextTraceMode=0;
|
|
115 |
|
|
116 |
TMiscNotifierMgr K::TheMiscNotifierMgr;
|
|
117 |
TAny* K::VariantData[31];
|
|
118 |
|
|
119 |
TDfcQue DShPool::iSharedDfcQue; // DFCQ thread for shareable data buffers growing/shrinking/notifications
|