kernel/eka/include/memmodel/epoc/multiple/memmodel.h
branchRCL_3
changeset 43 c1f20ce4abcf
parent 0 a41df078684a
child 44 3e88ff8f41d5
equal deleted inserted replaced
42:a179b74831c9 43:c1f20ce4abcf
    22 #define __MEMMODEL_H__
    22 #define __MEMMODEL_H__
    23 #include <memmodel/epoc/mmubase/mmubase.h>
    23 #include <memmodel/epoc/mmubase/mmubase.h>
    24 
    24 
    25 #ifdef __SMP__
    25 #ifdef __SMP__
    26 // SubScheduler fields for each processor
    26 // SubScheduler fields for each processor
    27 #define	i_AliasLinAddr			iExtras[0]
    27 #define	i_AliasLinAddr			iSubSchedScratch[0]
    28 #define	i_AliasPdePtr			iExtras[1]
    28 #define	i_AliasPdePtr			iSubSchedScratch[1]
    29 #endif
    29 #endif
    30 
    30 
    31 /********************************************
    31 /********************************************
    32  * Dynamic Branch Predictor Support
    32  * Dynamic Branch Predictor Support
    33  ********************************************/
    33  ********************************************/
    43 
    43 
    44 /********************************************
    44 /********************************************
    45  * RAM Defrag Page Table Moving Support
    45  * RAM Defrag Page Table Moving Support
    46  ********************************************/
    46  ********************************************/
    47 
    47 
       
    48 #ifdef __SMP__
       
    49 /**
       
    50 @internalComponent
       
    51 */
       
    52 #define AliasRemapOld					((TPhysAddr&)TheScheduler.iSchedScratch[1])
       
    53 
       
    54 /**
       
    55 @internalComponent
       
    56 */
       
    57 #define AliasRemapNew					((TPhysAddr&)TheScheduler.iSchedScratch[2])
       
    58 
       
    59 #else
       
    60 
    48 /**
    61 /**
    49 @internalComponent
    62 @internalComponent
    50 */
    63 */
    51 #define AliasRemapOld					((TPhysAddr&)TheScheduler.iExtras[1])
    64 #define AliasRemapOld					((TPhysAddr&)TheScheduler.iExtras[1])
    52 
    65 
    53 /**
    66 /**
    54 @internalComponent
    67 @internalComponent
    55 */
    68 */
    56 #define AliasRemapNew					((TPhysAddr&)TheScheduler.iExtras[2])
    69 #define AliasRemapNew					((TPhysAddr&)TheScheduler.iExtras[2])
       
    70 #endif
    57 
    71 
    58 /********************************************
    72 /********************************************
    59  * Thread Control Block
    73  * Thread Control Block
    60  ********************************************/
    74  ********************************************/
    61 
    75