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/kernel/kern_int.mmh
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#if defined(WINS)
|
|
19 |
#define MM_WIN32
|
|
20 |
#elif defined(MM_DIRECT)
|
|
21 |
#elif defined(MM_MULTIPLE)
|
|
22 |
#elif defined(MM_FLEXIBLE)
|
|
23 |
#else
|
|
24 |
#define MM_MOVING
|
|
25 |
#endif
|
|
26 |
|
|
27 |
#ifdef SMP
|
|
28 |
|
|
29 |
// Don't build export libraries for SMP since, with the exception of the kernel,
|
|
30 |
// they would be identical to the non-SMP ones.
|
|
31 |
noexportlibrary
|
|
32 |
#endif
|
|
33 |
|
|
34 |
#ifdef SMP
|
|
35 |
#include "../nkernsmp/nkern_int.mmh"
|
|
36 |
#else
|
|
37 |
#include "../nkern/nkern_int.mmh"
|
|
38 |
#endif
|
|
39 |
|
|
40 |
#if defined(MM_WIN32)
|
|
41 |
macro __MEMMODEL_EMUL_SINGLE_HOST_PROCESS__
|
|
42 |
#elif defined(MM_DIRECT)
|
|
43 |
macro __MEMMODEL_DIRECT__
|
|
44 |
#elif defined(MM_MULTIPLE)
|
|
45 |
macro __MEMMODEL_MULTIPLE__
|
|
46 |
#elif defined(MM_FLEXIBLE)
|
|
47 |
macro __MEMMODEL_FLEXIBLE__
|
|
48 |
#elif defined(MM_MOVING)
|
|
49 |
macro __MEMMODEL_MOVING__
|
|
50 |
#endif
|
|
51 |
|
|
52 |
#if defined(MM_FLEXIBLE)
|
|
53 |
#define DEMAND_PAGING
|
|
54 |
#elif defined(MM_MULTIPLE) && defined(MARM)
|
|
55 |
#define DEMAND_PAGING
|
|
56 |
#elif defined(MM_MOVING) && defined(MARM)
|
|
57 |
#define DEMAND_PAGING
|
|
58 |
#endif
|
|
59 |
|
|
60 |
#if defined(DEMAND_PAGING) && defined(DEMAND_PAGING_EMULATION)
|
|
61 |
macro __SUPPORT_DEMAND_PAGING_EMULATION__
|
|
62 |
#endif
|
|
63 |
|
|
64 |
#if defined(DEMAND_PAGING) && defined(DEMAND_PAGING_BENCHMARKS)
|
|
65 |
macro __DEMAND_PAGING_BENCHMARKS__
|
|
66 |
#endif
|
|
67 |
|
|
68 |
#ifdef SYMBIAN_OLD_EXPORT_LOCATION
|
|
69 |
systeminclude ../include/kernel
|
|
70 |
#endif
|
|
71 |
USERINCLUDE ../include/kernel
|
|
72 |
|
|
73 |
#if defined(MARM)
|
|
74 |
#ifdef SYMBIAN_OLD_EXPORT_LOCATION
|
|
75 |
systeminclude ../include/kernel/arm
|
|
76 |
#endif
|
|
77 |
SYMBIAN_BASE_SYSTEMINCLUDE(kernel/arm)
|
|
78 |
#elif defined(X86)
|
|
79 |
#ifdef SYMBIAN_OLD_EXPORT_LOCATION
|
|
80 |
systeminclude ../include/kernel/x86
|
|
81 |
#endif
|
|
82 |
SYMBIAN_BASE_SYSTEMINCLUDE(kernel/x86)
|
|
83 |
#elif defined(WINS)
|
|
84 |
#ifdef SYMBIAN_OLD_EXPORT_LOCATION
|
|
85 |
systeminclude ../include/kernel/win32
|
|
86 |
#endif
|
|
87 |
SYMBIAN_BASE_SYSTEMINCLUDE(kernel/win32)
|
|
88 |
userinclude ../include/kernel/win32
|
|
89 |
#endif
|
|
90 |
|
|
91 |
|
|
92 |
#if defined(MM_MOVING)
|
|
93 |
SYSTEMINCLUDE ../include/memmodel/epoc
|
|
94 |
SYSTEMINCLUDE ../include/memmodel/epoc/mmubase
|
|
95 |
SYSTEMINCLUDE ../include/memmodel/epoc/moving
|
|
96 |
|
|
97 |
#ifdef MARM
|
|
98 |
SYSTEMINCLUDE ../include/memmodel/epoc/moving/arm
|
|
99 |
#endif
|
|
100 |
|
|
101 |
#elif defined(MM_DIRECT)
|
|
102 |
SYSTEMINCLUDE ../include/memmodel/epoc
|
|
103 |
SYSTEMINCLUDE ../include/memmodel/epoc/direct
|
|
104 |
|
|
105 |
#ifdef MARM
|
|
106 |
SYSTEMINCLUDE ../include/memmodel/epoc/direct/arm
|
|
107 |
#endif
|
|
108 |
#ifdef X86
|
|
109 |
SYSTEMINCLUDE ../include/memmodel/epoc/direct/x86
|
|
110 |
#endif
|
|
111 |
|
|
112 |
#elif defined(MM_MULTIPLE)
|
|
113 |
SYMBIAN_BASE_SYSTEMINCLUDE(memmodel/epoc/multiple)
|
|
114 |
SYSTEMINCLUDE ../include/memmodel/epoc
|
|
115 |
SYSTEMINCLUDE ../include/memmodel/epoc/mmubase
|
|
116 |
SYSTEMINCLUDE ../include/memmodel/epoc/multiple
|
|
117 |
|
|
118 |
#ifdef MARM
|
|
119 |
SYMBIAN_BASE_SYSTEMINCLUDE(memmodel/epoc/multiple/arm)
|
|
120 |
SYSTEMINCLUDE ../include/memmodel/epoc/multiple/arm
|
|
121 |
#endif
|
|
122 |
#ifdef X86
|
|
123 |
SYMBIAN_BASE_SYSTEMINCLUDE(memmodel/epoc/multiple/x86)
|
|
124 |
SYSTEMINCLUDE ../include/memmodel/epoc/multiple/x86
|
|
125 |
#endif
|
|
126 |
|
|
127 |
#elif defined(MM_FLEXIBLE)
|
|
128 |
macro __KERNEL_APIS_CONTEXT_CHECKS_FAULT__
|
|
129 |
|
|
130 |
SYSTEMINCLUDE ../include/memmodel/epoc
|
|
131 |
SYSTEMINCLUDE ../include/memmodel/epoc/mmubase
|
|
132 |
SYSTEMINCLUDE ../include/memmodel/epoc/flexible
|
|
133 |
|
|
134 |
#ifdef MARM
|
|
135 |
SYSTEMINCLUDE ../include/memmodel/epoc/flexible/arm
|
|
136 |
#endif
|
|
137 |
#ifdef X86
|
|
138 |
SYSTEMINCLUDE ../include/memmodel/epoc/flexible/x86
|
|
139 |
#endif
|
|
140 |
|
|
141 |
#elif defined(MM_WIN32)
|
|
142 |
SYMBIAN_BASE_SYSTEMINCLUDE(memmodel/emul)
|
|
143 |
SYSTEMINCLUDE ../include/memmodel/emul
|
|
144 |
SYSTEMINCLUDE ../include/memmodel/emul/win32
|
|
145 |
#endif
|
|
146 |
|
|
147 |
#ifdef INCLUDE_EKERN_LIB
|
|
148 |
#ifdef SMP
|
|
149 |
library ekernsmp.lib
|
|
150 |
#else
|
|
151 |
library ekern.lib
|
|
152 |
#endif
|
|
153 |
#endif
|
|
154 |
|
|
155 |
OS_LAYER_SYSTEMINCLUDE_SYMBIAN
|
|
156 |
|
|
157 |
macro __KERNEL_APIS_CONTEXT_CHECKS_WARNING__
|
|
158 |
//macro __KERNEL_APIS_CONTEXT_CHECKS_FAULT__
|