equal
deleted
inserted
replaced
35 { |
35 { |
36 ECpuUnknown, |
36 ECpuUnknown, |
37 ECpuArm, |
37 ECpuArm, |
38 ECpuX86 |
38 ECpuX86 |
39 }; |
39 }; |
40 |
|
41 |
|
42 #ifdef __KERNEL_MODE__ |
|
43 |
|
44 // Memory Model Architecture |
|
45 |
|
46 #ifdef __CPU_X86 |
|
47 const TUint KPageDirectorySize = 1024; |
|
48 const TUint KMaxNumberOfPageDirectories = 1024; |
|
49 const TUint KPsudoX86TTBCR = 512; |
|
50 |
|
51 #else |
|
52 const TUint KPageDirectorySize = 4096; // Full size (ttbr0+ttbr1) |
|
53 const TUint KMaxNumberOfPageDirectories = 256; |
|
54 #endif |
|
55 |
|
56 #if defined(__MEMMODEL_MOVING__) |
|
57 const TUint KPageDirectoryBase = 0x61000000; |
|
58 const TUint KPageTableBase = 0x62000000; |
|
59 const TMemModel KMemoryModel = EMemModelMoving; |
|
60 |
|
61 #elif defined(__MEMMODEL_MULTIPLE__) |
|
62 const TUint KPageDirectoryBase = 0xC1000000; |
|
63 const TUint KPageTableBase = 0xC2000000; |
|
64 const TMemModel KMemoryModel = EMemModelMultiple; |
|
65 |
|
66 #elif defined(__MEMMODEL_FLEXIBLE__) |
|
67 const TUint KPageDirectoryBase = 0xF4000000u; |
|
68 const TUint KPageTableBase = 0xF8000000u; |
|
69 const TMemModel KMemoryModel = EMemModelFlexible; |
|
70 |
|
71 #else // other memory model |
|
72 const TUint KPageDirectoryBase = 0x00000000; |
|
73 const TUint KPageTableBase = 0x00000000; |
|
74 const TMemModel KMemoryModel = EMemModelOther; |
|
75 #endif |
|
76 |
|
77 #endif |
|
78 |
|
79 |
40 |
80 |
41 |
81 class TCapsShadowV01 |
42 class TCapsShadowV01 |
82 { |
43 { |
83 public: |
44 public: |