kerneltest/e32test/mmu/d_shadow.cpp
changeset 291 206a6eaaeb71
parent 90 947f0dc9f7a8
equal deleted inserted replaced
289:55a0a1279a7e 291:206a6eaaeb71
    33 const TUint KPsudoX86TTBCR = 512;
    33 const TUint KPsudoX86TTBCR = 512;
    34 #else 
    34 #else 
    35 const TUint KPageDirectorySize = 4096;  // Full size (ttbr0+ttbr1)
    35 const TUint KPageDirectorySize = 4096;  // Full size (ttbr0+ttbr1)
    36 const TUint KMaxNumberOfPageDirectories = 256;
    36 const TUint KMaxNumberOfPageDirectories = 256;
    37 #endif
    37 #endif
       
    38 
       
    39 // A buffer used to test shadowing of unpaged ROM.  It is two pages in size so that it will always
       
    40 // contain at least one memory page.
       
    41 const TUint8 UnpagedMemory[8192] = { 1 };
    38 
    42 
    39 class DShadow;
    43 class DShadow;
    40 
    44 
    41 class DShadowFactory : public DLogicalDevice
    45 class DShadowFactory : public DLogicalDevice
    42 //
    46 //
   393 				kumemput(a2, &pdBase, sizeof(TUint));
   397 				kumemput(a2, &pdBase, sizeof(TUint));
   394 				}
   398 				}
   395 			
   399 			
   396 			break;	
   400 			break;	
   397 			}
   401 			}
   398 			
   402 
       
   403 		case RShadow::EControlGetUnpagedPage:
       
   404 			return _ALIGN_UP((TLinAddr)UnpagedMemory, pageSize);
       
   405 
   399 		default:
   406 		default:
   400 			r=KErrNotSupported;
   407 			r=KErrNotSupported;
   401 			break;
   408 			break;
   402 		}
   409 		}
   403 	return r;
   410 	return r;