os/kernelhwsrv/kernel/eka/include/e32def_private.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// e32\include\e32def_private.h
sl@0
    15
// 
sl@0
    16
// WARNING: This file contains some APIs which are internal and are subject
sl@0
    17
//          to change without notice. Such APIs should therefore not be used
sl@0
    18
//          outside the Kernel and Hardware Services package.
sl@0
    19
//
sl@0
    20
sl@0
    21
#ifndef __E32DEF_PRIVATE_H__
sl@0
    22
#define __E32DEF_PRIVATE_H__
sl@0
    23
sl@0
    24
#ifdef __PROFILING__
sl@0
    25
sl@0
    26
/**
sl@0
    27
@publishedPartner
sl@0
    28
@removed
sl@0
    29
*/
sl@0
    30
#define __PROFILE_START(aBin) RDebug::ProfileStart(aBin)
sl@0
    31
sl@0
    32
/**
sl@0
    33
@publishedPartner
sl@0
    34
@removed
sl@0
    35
*/
sl@0
    36
#define __PROFILE_END(aBin)   RDebug::ProfileEnd(aBin)
sl@0
    37
sl@0
    38
/**
sl@0
    39
@publishedPartner
sl@0
    40
@removed
sl@0
    41
*/
sl@0
    42
#define __PROFILE_RESET(aNumberOfBins) RDebug::ProfileReset(0,aNumberOfBins)
sl@0
    43
sl@0
    44
/**
sl@0
    45
@publishedPartner
sl@0
    46
@removed
sl@0
    47
*/
sl@0
    48
#define __PROFILE_DISPLAY(aNumberOfBins) \
sl@0
    49
			{	TFixedArray<TProfile, aNumberOfBins> result; \
sl@0
    50
				RDebug::ProfileResult(result.Begin(), 0, aNumberOfBins); \
sl@0
    51
				for (TInt i=0; i<aNumberOfBins; i++)   \
sl@0
    52
				RDebug::Print(_L("Profile bin %d:  Calls: %d, Clock ticks: %d\n" ),i,res[i].iCount,result[i].iTime);  \
sl@0
    53
			}
sl@0
    54
#else /* __PROFILING__ */
sl@0
    55
#define __PROFILE_START(aBin) 
sl@0
    56
#define __PROFILE_END(aBin)   
sl@0
    57
#define __PROFILE_RESET(aNumberOfBins) 
sl@0
    58
#define __PROFILE_DISPLAY(aNumberOfBins)
sl@0
    59
#endif
sl@0
    60
sl@0
    61
#if defined(_DEBUG)
sl@0
    62
sl@0
    63
/**
sl@0
    64
@publishedPartner
sl@0
    65
@released
sl@0
    66
sl@0
    67
Marks the start of Kernel heap checking. 
sl@0
    68
sl@0
    69
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
    70
as device drivers and media drivers.
sl@0
    71
sl@0
    72
This macro is defined only for debug builds.
sl@0
    73
sl@0
    74
This macro must be matched by a corresponding call to __KHEAP_MARKEND or __KHEAP_MARKENDC. 
sl@0
    75
Calls to this macro can be nested but each call must be matched by corresponding 
sl@0
    76
call to __KHEAP_MARKEND or __KHEAP_MARKENDC.
sl@0
    77
sl@0
    78
@see User::__DbgMarkStart()
sl@0
    79
@see __KHEAP_MARKEND
sl@0
    80
@see __KHEAP_MARKENDC
sl@0
    81
*/
sl@0
    82
#define __KHEAP_MARK User::__DbgMarkStart(TRUE)
sl@0
    83
sl@0
    84
sl@0
    85
sl@0
    86
sl@0
    87
/**
sl@0
    88
@publishedPartner
sl@0
    89
@released
sl@0
    90
sl@0
    91
Checks that the number of allocated cells at the current nested level of the 
sl@0
    92
Kernel heap is the same as the specified value. This macro is defined only 
sl@0
    93
for debug builds. Checking the Kernel heap is only useful when developing 
sl@0
    94
Kernel side code such as device drivers and media drivers.
sl@0
    95
sl@0
    96
The macro also takes the name of the file containing this source code statement 
sl@0
    97
and the line number of this source code statement; they are displayed as part 
sl@0
    98
of the panic category, if the checks fail.
sl@0
    99
sl@0
   100
@param aCount The number of heap cells expected to be allocated at
sl@0
   101
              the current nest level.
sl@0
   102
sl@0
   103
@see User::__DbgMarkCheck()
sl@0
   104
@see __UHEAP_CHECK
sl@0
   105
*/
sl@0
   106
#define __KHEAP_CHECK(aCount) User::__DbgMarkCheck(TRUE,FALSE,aCount,(TText8*)__FILE__,__LINE__)
sl@0
   107
sl@0
   108
sl@0
   109
sl@0
   110
sl@0
   111
/**
sl@0
   112
@publishedPartner
sl@0
   113
@released
sl@0
   114
sl@0
   115
Checks that the total number of allocated cells on the Kernel heap is the same 
sl@0
   116
as the specified value.
sl@0
   117
sl@0
   118
It is only useful when developing Kernel side code such as device drivers 
sl@0
   119
and media drivers. 
sl@0
   120
sl@0
   121
The macro also takes the name of the file containing this source code statement 
sl@0
   122
and the line number of this source code statement; they are displayed as part 
sl@0
   123
of the panic category, if the checks fail.
sl@0
   124
sl@0
   125
This macro is defined only for debug builds.
sl@0
   126
sl@0
   127
@param aCount The total number of heap cells expected to be allocated
sl@0
   128
sl@0
   129
@see User::__DbgMarkCheck()
sl@0
   130
@see __UHEAP_CHECKALL
sl@0
   131
*/
sl@0
   132
#define __KHEAP_CHECKALL(aCount) User::__DbgMarkCheck(TRUE,TRUE,aCount,(TText8*)__FILE__,__LINE__)
sl@0
   133
sl@0
   134
sl@0
   135
sl@0
   136
sl@0
   137
/**
sl@0
   138
@publishedPartner
sl@0
   139
@released
sl@0
   140
sl@0
   141
Marks the end of Kernel heap checking. The macro expects zero heap cells to 
sl@0
   142
remain allocated at the current nest level.
sl@0
   143
sl@0
   144
This macro is defined only for debug builds. Checking the Kernel heap is only 
sl@0
   145
useful when developing Kernel side code such as device drivers and media drivers.
sl@0
   146
sl@0
   147
This macro must match an earlier call to __KHEAP_MARK.
sl@0
   148
sl@0
   149
@see User::__DbgMarkEnd()
sl@0
   150
@see __KHEAP_MARK
sl@0
   151
*/
sl@0
   152
#define __KHEAP_MARKEND User::__DbgMarkEnd(TRUE,0)
sl@0
   153
sl@0
   154
sl@0
   155
sl@0
   156
sl@0
   157
/**
sl@0
   158
@publishedPartner
sl@0
   159
@released
sl@0
   160
sl@0
   161
Marks the end of Kernel heap checking. The macro expects aCount heap cells 
sl@0
   162
to remain allocated at the current nest level.
sl@0
   163
sl@0
   164
This macro is defined only for debug builds.
sl@0
   165
sl@0
   166
This macro must match an earlier call to __KHEAP_MARK.
sl@0
   167
sl@0
   168
@param aCount The number of heap cells expected to remain allocated at
sl@0
   169
              the current nest level.
sl@0
   170
sl@0
   171
@see User::__DbgMarkEnd()
sl@0
   172
@see __KHEAP_MARK
sl@0
   173
*/
sl@0
   174
#define __KHEAP_MARKENDC(aCount) User::__DbgMarkEnd(TRUE,aCount)
sl@0
   175
sl@0
   176
sl@0
   177
sl@0
   178
sl@0
   179
/**
sl@0
   180
@publishedPartner
sl@0
   181
@released
sl@0
   182
sl@0
   183
Simulates Kernel heap allocation failure. The failure occurs on the next call 
sl@0
   184
to new or any of the functions which allocate memory from the heap. This macro 
sl@0
   185
is defined only for debug builds.
sl@0
   186
sl@0
   187
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   188
as device drivers and media drivers.
sl@0
   189
sl@0
   190
@param aCount The rate of failure - heap allocation fails every aCount attempt.
sl@0
   191
sl@0
   192
@see User::__DbgSetAllocFail()
sl@0
   193
*/
sl@0
   194
#define __KHEAP_FAILNEXT(aCount) User::__DbgSetAllocFail(TRUE,RAllocator::EFailNext,aCount)
sl@0
   195
sl@0
   196
/**
sl@0
   197
@publishedPartner
sl@0
   198
@released
sl@0
   199
sl@0
   200
Simulates Kernel heap allocation failures. aBurst failures will occur on the next call 
sl@0
   201
to new or any of the functions which allocate memory from the heap. This macro 
sl@0
   202
is defined only for debug builds.
sl@0
   203
sl@0
   204
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   205
as device drivers and media drivers.
sl@0
   206
sl@0
   207
@param aCount The heap allocation will fail after aCount-1 allocation attempts. 
sl@0
   208
              Note when used with RHeap the maximum value aCount can be set 
sl@0
   209
              to is KMaxTUint16.
sl@0
   210
@param aBurst The number of allocations that will fail after aCount-1 allocation 
sl@0
   211
              attempts.  Note when used with RHeap the maximum value aBurst can be 
sl@0
   212
              set to is KMaxTUint16.
sl@0
   213
sl@0
   214
sl@0
   215
@see User::__DbgSetBurstAllocFail()
sl@0
   216
*/
sl@0
   217
#define __KHEAP_BURSTFAILNEXT(aCount,aBurst) User::__DbgSetBurstAllocFail(TRUE,RAllocator::EBurstFailNext,aCount,aBurst)
sl@0
   218
sl@0
   219
sl@0
   220
/**
sl@0
   221
@publishedPartner
sl@0
   222
@released
sl@0
   223
sl@0
   224
Simulates Kernel heap allocation failure. 
sl@0
   225
sl@0
   226
The failure occurs on subsequent calls to new or any of the functions which 
sl@0
   227
allocate memory from this heap.
sl@0
   228
sl@0
   229
This macro is defined only for debug builds.
sl@0
   230
sl@0
   231
@param aType  The type of failure to be simulated.
sl@0
   232
@param aRate The failure rate.
sl@0
   233
sl@0
   234
@see RAllocator::TAllocFail
sl@0
   235
@see User::__DbgSetAllocFail()
sl@0
   236
*/
sl@0
   237
#define __KHEAP_SETFAIL(aType,aRate) User::__DbgSetAllocFail(TRUE,aType,aRate)
sl@0
   238
sl@0
   239
/**
sl@0
   240
@publishedPartner
sl@0
   241
@released
sl@0
   242
sl@0
   243
Simulates Kernel heap allocation failure. 
sl@0
   244
sl@0
   245
The failure occurs on subsequent calls to new or any of the functions which 
sl@0
   246
allocate memory from this heap.
sl@0
   247
sl@0
   248
This macro is defined only for debug builds.
sl@0
   249
sl@0
   250
@param aType  The type of failure to be simulated.
sl@0
   251
@param aRate  The failure rate.  Note when used with RHeap the maximum value 
sl@0
   252
              aRate can be set to is KMaxTUint16.
sl@0
   253
@param aBurst The number of consecutive allocations that will fail.  Note 
sl@0
   254
              when used with RHeap the maximum value aBurst can be set to 
sl@0
   255
              is KMaxTUint16.
sl@0
   256
sl@0
   257
@see RAllocator::TAllocFail
sl@0
   258
@see User::__DbgSetBurstAllocFail()
sl@0
   259
*/
sl@0
   260
#define __KHEAP_SETBURSTFAIL(aType,aRate,aBurst) User::__DbgSetBurstAllocFail(TRUE,aType,aRate,aBurst)
sl@0
   261
sl@0
   262
sl@0
   263
sl@0
   264
/**
sl@0
   265
@publishedPartner
sl@0
   266
@released
sl@0
   267
sl@0
   268
Cancels simulated Kernel heap allocation failure. 
sl@0
   269
sl@0
   270
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   271
as device drivers and media drivers.
sl@0
   272
sl@0
   273
This macro is defined only for debug builds.
sl@0
   274
sl@0
   275
@see User::__DbgSetAllocFail()
sl@0
   276
*/
sl@0
   277
#define __KHEAP_RESET User::__DbgSetAllocFail(TRUE,RAllocator::ENone,1)
sl@0
   278
sl@0
   279
sl@0
   280
sl@0
   281
sl@0
   282
/**
sl@0
   283
@publishedPartner
sl@0
   284
@released
sl@0
   285
sl@0
   286
Cancels simulated kernel heap allocation failure. 
sl@0
   287
It walks the the heap and sets the nesting level for all allocated
sl@0
   288
cells to zero.
sl@0
   289
sl@0
   290
Checking the kernel heap is only useful when developing kernel side code such 
sl@0
   291
as device drivers and media drivers.
sl@0
   292
sl@0
   293
This macro is defined only for debug builds.
sl@0
   294
*/
sl@0
   295
#define __KHEAP_TOTAL_RESET User::__DbgSetAllocFail(TRUE,RAllocator::EReset,1)
sl@0
   296
sl@0
   297
#else
sl@0
   298
sl@0
   299
/**
sl@0
   300
@publishedPartner
sl@0
   301
@released
sl@0
   302
sl@0
   303
Marks the start of Kernel heap checking. 
sl@0
   304
sl@0
   305
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   306
as device drivers and media drivers.
sl@0
   307
sl@0
   308
This macro is defined only for debug builds.
sl@0
   309
sl@0
   310
This macro must be matched by a corresponding call to __KHEAP_MARKEND or __KHEAP_MARKENDC. 
sl@0
   311
Calls to this macro can be nested but each call must be matched by corresponding 
sl@0
   312
call to __KHEAP_MARKEND or __KHEAP_MARKENDC.
sl@0
   313
sl@0
   314
@see User::__DbgMarkStart()
sl@0
   315
@see __KHEAP_MARKEND
sl@0
   316
@see __KHEAP_MARKENDC
sl@0
   317
*/
sl@0
   318
#define __KHEAP_MARK
sl@0
   319
sl@0
   320
sl@0
   321
sl@0
   322
sl@0
   323
/**
sl@0
   324
@publishedPartner
sl@0
   325
@released
sl@0
   326
sl@0
   327
Checks that the number of allocated cells at the current nested level of the 
sl@0
   328
Kernel heap is the same as the specified value. This macro is defined only 
sl@0
   329
for debug builds. Checking the Kernel heap is only useful when developing 
sl@0
   330
Kernel side code such as device drivers and media drivers.
sl@0
   331
sl@0
   332
The macro also takes the name of the file containing this source code statement 
sl@0
   333
and the line number of this source code statement; they are displayed as part 
sl@0
   334
of the panic category, if the checks fail.
sl@0
   335
sl@0
   336
@param aCount The number of heap cells expected to be allocated at
sl@0
   337
              the current nest level.
sl@0
   338
sl@0
   339
@see User::__DbgMarkCheck()
sl@0
   340
@see __UHEAP_CHECK
sl@0
   341
*/
sl@0
   342
#define __KHEAP_CHECK(aCount)
sl@0
   343
sl@0
   344
sl@0
   345
sl@0
   346
sl@0
   347
/**
sl@0
   348
@publishedPartner
sl@0
   349
@released
sl@0
   350
sl@0
   351
Checks that the total number of allocated cells on the Kernel heap is the same 
sl@0
   352
as the specified value.
sl@0
   353
sl@0
   354
It is only useful when developing Kernel side code such as device drivers 
sl@0
   355
and media drivers. 
sl@0
   356
sl@0
   357
The macro also takes the name of the file containing this source code statement 
sl@0
   358
and the line number of this source code statement; they are displayed as part 
sl@0
   359
of the panic category, if the checks fail.
sl@0
   360
sl@0
   361
This macro is defined only for debug builds.
sl@0
   362
sl@0
   363
@param aCount The total number of heap cells expected to be allocated
sl@0
   364
sl@0
   365
@see User::__DbgMarkCheck()
sl@0
   366
@see __UHEAP_CHECKALL
sl@0
   367
*/
sl@0
   368
#define __KHEAP_CHECKALL(aCount)
sl@0
   369
sl@0
   370
sl@0
   371
sl@0
   372
sl@0
   373
/**
sl@0
   374
@publishedPartner
sl@0
   375
@released
sl@0
   376
sl@0
   377
Marks the end of Kernel heap checking. The macro expects zero heap cells to 
sl@0
   378
remain allocated at the current nest level.
sl@0
   379
sl@0
   380
This macro is defined only for debug builds. Checking the Kernel heap is only 
sl@0
   381
useful when developing Kernel side code such as device drivers and media drivers.
sl@0
   382
sl@0
   383
This macro must match an earlier call to __KHEAP_MARK.
sl@0
   384
sl@0
   385
@see User::__DbgMarkEnd()
sl@0
   386
@see __KHEAP_MARK
sl@0
   387
*/
sl@0
   388
#define __KHEAP_MARKEND
sl@0
   389
sl@0
   390
sl@0
   391
sl@0
   392
sl@0
   393
/**
sl@0
   394
@publishedPartner
sl@0
   395
@released
sl@0
   396
sl@0
   397
Marks the end of Kernel heap checking. The macro expects aCount heap cells 
sl@0
   398
to remain allocated at the current nest level.
sl@0
   399
sl@0
   400
This macro is defined only for debug builds.
sl@0
   401
sl@0
   402
This macro must match an earlier call to __KHEAP_MARK.
sl@0
   403
sl@0
   404
@param aCount The number of heap cells expected to remain allocated at
sl@0
   405
              the current nest level.
sl@0
   406
sl@0
   407
@see User::__DbgMarkEnd()
sl@0
   408
@see __KHEAP_MARK
sl@0
   409
*/
sl@0
   410
#define __KHEAP_MARKENDC(aCount)
sl@0
   411
sl@0
   412
sl@0
   413
sl@0
   414
sl@0
   415
/**
sl@0
   416
@publishedPartner
sl@0
   417
@released
sl@0
   418
sl@0
   419
Simulates Kernel heap allocation failure. The failure occurs on the next call 
sl@0
   420
to new or any of the functions which allocate memory from the heap. This macro 
sl@0
   421
is defined only for debug builds.
sl@0
   422
sl@0
   423
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   424
as device drivers and media drivers.
sl@0
   425
sl@0
   426
@param aCount The rate of failure - heap allocation fails every aCount attempt.
sl@0
   427
sl@0
   428
@see User::__DbgSetAllocFail()
sl@0
   429
*/
sl@0
   430
#define __KHEAP_FAILNEXT(aCount)
sl@0
   431
sl@0
   432
/**
sl@0
   433
@publishedPartner
sl@0
   434
@released
sl@0
   435
sl@0
   436
Simulates Kernel heap allocation failures. aBurst failures will occur on the next call 
sl@0
   437
to new or any of the functions which allocate memory from the heap. This macro 
sl@0
   438
is defined only for debug builds.
sl@0
   439
sl@0
   440
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   441
as device drivers and media drivers.
sl@0
   442
sl@0
   443
@param aCount The heap allocation will fail after aCount-1 allocation attempts.  
sl@0
   444
              Note when used with RHeap the maximum value aCount can be set 
sl@0
   445
              to is KMaxTUint16.
sl@0
   446
@param aBurst The number of allocations that will fail after aCount-1 allocation
sl@0
   447
              attempts.  Note when used with RHeap the maximum value aBurst can 
sl@0
   448
              be set to is KMaxTUint16.
sl@0
   449
sl@0
   450
@see User::__DbgSetBurstAllocFail()
sl@0
   451
*/
sl@0
   452
#define __KHEAP_BURSTFAILNEXT(aCount,aBurst)
sl@0
   453
sl@0
   454
sl@0
   455
sl@0
   456
/**
sl@0
   457
@publishedPartner
sl@0
   458
@released
sl@0
   459
sl@0
   460
Simulates Kernel heap allocation failure. 
sl@0
   461
sl@0
   462
The failure occurs on subsequent calls to new or any of the functions which 
sl@0
   463
allocate memory from this heap.
sl@0
   464
sl@0
   465
This macro is defined only for debug builds.
sl@0
   466
sl@0
   467
@param aType  The type of failure to be simulated.
sl@0
   468
@param aRate The failure rate.
sl@0
   469
sl@0
   470
@see User::__DbgSetAllocFail()
sl@0
   471
*/
sl@0
   472
#define __KHEAP_SETFAIL(aType,aRate)
sl@0
   473
sl@0
   474
/**
sl@0
   475
@publishedPartner
sl@0
   476
@released
sl@0
   477
sl@0
   478
Simulates Kernel heap allocation failure. 
sl@0
   479
sl@0
   480
The failure occurs on subsequent calls to new or any of the functions which 
sl@0
   481
allocate memory from this heap.
sl@0
   482
sl@0
   483
This macro is defined only for debug builds.
sl@0
   484
sl@0
   485
@param aType  The type of failure to be simulated.
sl@0
   486
@param aRate  The failure rate.  Note when used with RHeap the maximum value 
sl@0
   487
              aRate can be set to is KMaxTUint16.
sl@0
   488
@param aBurst The number of consecutive allocations that will fail.  Note 
sl@0
   489
              when used with RHeap the maximum value aBurst can be set 
sl@0
   490
              to is KMaxTUint16.
sl@0
   491
sl@0
   492
@see User::__DbgSetBurstAllocFail()
sl@0
   493
*/
sl@0
   494
#define __KHEAP_SETBURSTFAIL(aType,aRate,aBurst)
sl@0
   495
sl@0
   496
sl@0
   497
sl@0
   498
/**
sl@0
   499
@publishedPartner
sl@0
   500
@released
sl@0
   501
sl@0
   502
Cancels simulated Kernel heap allocation failure. 
sl@0
   503
sl@0
   504
Checking the Kernel heap is only useful when developing Kernel side code such 
sl@0
   505
as device drivers and media drivers.
sl@0
   506
sl@0
   507
This macro is defined only for debug builds.
sl@0
   508
sl@0
   509
@see User::__DbgSetAllocFail()
sl@0
   510
*/
sl@0
   511
#define __KHEAP_RESET
sl@0
   512
sl@0
   513
sl@0
   514
sl@0
   515
/**
sl@0
   516
@publishedPartner
sl@0
   517
@released
sl@0
   518
sl@0
   519
Cancels simulated kernel heap allocation failure. 
sl@0
   520
It walks the the heap and sets the nesting level for all allocated
sl@0
   521
cells to zero.
sl@0
   522
sl@0
   523
Checking the kernel heap is only useful when developing kernel side code such 
sl@0
   524
as device drivers and media drivers.
sl@0
   525
sl@0
   526
This macro is defined only for debug builds.
sl@0
   527
*/
sl@0
   528
#define __KHEAP_TOTAL_RESET
sl@0
   529
#endif
sl@0
   530
sl@0
   531
#ifndef __VALUE_IN_REGS__ 
sl@0
   532
/**
sl@0
   533
@publishedPartner
sl@0
   534
@released
sl@0
   535
*/
sl@0
   536
#define __VALUE_IN_REGS__ 
sl@0
   537
#endif
sl@0
   538
sl@0
   539
sl@0
   540
/** @internalTechnology */
sl@0
   541
#define __NO_MUTABLE_KEYWORD
sl@0
   542
sl@0
   543
sl@0
   544
/**
sl@0
   545
@internalTechnology
sl@0
   546
sl@0
   547
A sorted list of all the code segments in ROM that contain an Exception Descriptor.
sl@0
   548
sl@0
   549
*/
sl@0
   550
typedef struct TRomExceptionSearchTable
sl@0
   551
	{
sl@0
   552
	/**
sl@0
   553
	The number of entries in the following table.
sl@0
   554
	*/
sl@0
   555
	TInt32 iNumEntries;
sl@0
   556
	
sl@0
   557
	/**
sl@0
   558
	Address of the code segment of each TRomImageHeader that has an Exception Descriptor.
sl@0
   559
	*/
sl@0
   560
	TLinAddr iEntries[1];
sl@0
   561
	} TRomExceptionSearchTable;
sl@0
   562
	
sl@0
   563
/**
sl@0
   564
@internalComponent
sl@0
   565
*/
sl@0
   566
typedef struct TExceptionDescriptor 
sl@0
   567
	{
sl@0
   568
	TLinAddr iExIdxBase;
sl@0
   569
	TLinAddr iExIdxLimit;
sl@0
   570
	TLinAddr iROSegmentBase;
sl@0
   571
	TLinAddr iROSegmentLimit;
sl@0
   572
	} TExceptionDescriptor;
sl@0
   573
	
sl@0
   574
#ifdef __KERNEL_MODE__
sl@0
   575
sl@0
   576
/** @internalComponent */
sl@0
   577
#define	KIMPORT_C	IMPORT_C
sl@0
   578
sl@0
   579
/** @internalComponent */
sl@0
   580
#define	KEXPORT_C	EXPORT_C
sl@0
   581
sl@0
   582
#else
sl@0
   583
#define	KIMPORT_C
sl@0
   584
#define	KEXPORT_C
sl@0
   585
#endif
sl@0
   586
sl@0
   587
#endif //__E32DEF_PRIVATE_H__