sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\include\memmodel\epoc\multiple\arm\mmboot.h sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without notice. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef __MMBOOT_H__ sl@0: #define __MMBOOT_H__ sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: // sl@0: // Linear address map (1Gb configuration) : sl@0: // 00000000-001FFFFF Unmapped sl@0: // 00200000-002FFFFF IPC Alias region sl@0: // 00300000-003FFFFF Unmapped sl@0: // 00400000-1FFFFFFF Local data sl@0: // 20000000-3BFFFFFF Shared data sl@0: // 3C000000-3DFFFFFF RAM loaded code (=phys ram size up to 256M) sl@0: // 3E000000-3FFFFFFF DLL static data (=phys ram size/2 up to 128M) sl@0: // 40000000-7FFFFFFF Unused sl@0: // 80000000-8FFFFFFF ROM sl@0: // 90000000-9FFFFFFF User Global Area sl@0: // A0000000-BFFFFFFF RAM drive sl@0: // C0000000-C0001FFF Super page/CPU page sl@0: // C0030000-C0030FFF KPageInfoMap sl@0: // C0038000-C003FFFF IRQ, FIQ, UND, ABT stacks (4*4K for stacks + 4*4K for guard pages) sl@0: // C0040000-C00403FF ASID info (256 ASIDs) sl@0: // C0080000-C00FFFFF Page table info sl@0: // C1000000-C13FFFFF Page directories (up to 256 * 16KB) sl@0: // C2000000-C5FFFFFF Page tables sl@0: // C6000000-C6FFFFFF Primary I/O mappings sl@0: // C7000000-C7FFFFFF sl@0: // C8000000-C8FFFFFF Kernel .data/.bss, initial stack, kernel heap sl@0: // C9000000-C91FFFFF Kernel stacks sl@0: // C9200000-FBFFFFFF Extra kernel mappings (I/O, RAM loaded device drivers) sl@0: // FC000000-FDFFFFFF Page Info array sl@0: // FFF00000-FFFFFFFF Exception vectors sl@0: // sl@0: // sl@0: // Linear address map (2Gb configuration) : sl@0: // 00000000-001FFFFF Unmapped sl@0: // 00200000-002FFFFF IPC Alias region sl@0: // 00300000-003FFFFF Unmapped sl@0: // 00400000-37FFFFFF Local data sl@0: // 38000000-3FFFFFFF DLL static data (=phys ram size/2 up to 128M) sl@0: // 40000000-6FFFFFFF Shared data sl@0: // 70000000-7FFFFFFF RAM loaded code (=phys ram size up to 256M) sl@0: // 80000000-8FFFFFFF ROM sl@0: // 90000000-9FFFFFFF User Global Area sl@0: // A0000000-BFFFFFFF RAM drive sl@0: // C0000000-C0001FFF Super page/CPU page sl@0: // C0030000-C0030FFF KPageInfoMap sl@0: // C0038000-C003FFFF IRQ, FIQ, UND, ABT stacks (4*4K for stacks + 4*4K for guard pages) sl@0: // C0040000-C00403FF ASID info (256 ASIDs) sl@0: // C0080000-C00FFFFF Page table info sl@0: // C1000000-C13FFFFF Page directories (up to 256 * 16KB) sl@0: // C2000000-C5FFFFFF Page tables sl@0: // C6000000-C6FFFFFF Primary I/O mappings sl@0: // C7000000-C7FFFFFF sl@0: // C8000000-C8FFFFFF Kernel .data/.bss, initial stack, kernel heap sl@0: // C9000000-C91FFFFF Kernel stacks sl@0: // C9200000-FBFFFFFF Extra kernel mappings (I/O, RAM loaded device drivers) sl@0: // FC000000-FDFFFFFF Page Info array sl@0: // FFF00000-FFFFFFFF Exception vectors sl@0: // sl@0: sl@0: // Linear addresses sl@0: const TLinAddr KIPCAlias =0x00200000u; sl@0: const TLinAddr KUserLocalDataBase =0x00400000u; sl@0: const TLinAddr KUserSharedDataBase1GB =0x20000000u; sl@0: const TLinAddr KUserSharedDataEnd1GB =0x40000000u; sl@0: const TLinAddr KUserSharedDataBase2GB =0x40000000u; sl@0: const TLinAddr KUserSharedDataEnd2GB =0x80000000u; sl@0: sl@0: const TLinAddr KRomLinearBase =0x80000000u; sl@0: const TLinAddr KRomLinearEnd =0x90000000u; sl@0: const TLinAddr KUserGlobalDataBase =0x90000000u; sl@0: const TLinAddr KUserGlobalDataEnd =0xA0000000u; sl@0: const TLinAddr KRamDriveStartAddress =0xA0000000u; sl@0: const TInt KRamDriveMaxSize=0x20000000; sl@0: const TLinAddr KRamDriveEndAddress =0xC0000000u; sl@0: const TLinAddr KSuperPageLinAddr =0xC0000000u; sl@0: const TLinAddr KExcptStacksLinearBase =0xC0038000u; sl@0: const TLinAddr KAsidInfoBase =0xC0040000u; sl@0: const TLinAddr KPageTableInfoBase =0xC0080000u; sl@0: const TLinAddr KPageDirectoryBase =0xC1000000u; sl@0: const TLinAddr KPageTableBase =0xC2000000u; sl@0: const TLinAddr KPrimaryIOBase =0xC6000000u; sl@0: const TLinAddr KKernelDataBase =0xC8000000u; sl@0: const TLinAddr KKernelDataEnd =0xC9200000u; sl@0: const TLinAddr KKernelSectionEnd =0xFC000000u; sl@0: sl@0: const TLinAddr KPageInfoLinearBase =0xFC000000u; sl@0: sl@0: const TLinAddr KMachineConfigLinAddr =0xC0000800u; sl@0: const TLinAddr KDummyUncachedAddr =0xC000F000u; sl@0: const TLinAddr KTempAddr =0xC0010000u; sl@0: const TLinAddr KSecondTempAddr =0xC0014000u; sl@0: const TLinAddr KDefragAltStackAddr =0xC001F000u; sl@0: const TLinAddr KDemandPagingTempAddr =0xC0020000u; // used by demand paging (size of region is 0x10000) sl@0: const TLinAddr KPageInfoMap =0xC0030000u; sl@0: sl@0: sl@0: // Domain usage sl@0: // sl@0: // 0 All, except... sl@0: // 1 RAM Drive sl@0: // 2 IPC Alias chunk sl@0: // 15 User memory when __USER_MEMORY_GUARDS_ENABLED__ defined sl@0: const TInt KIPCAliasDomain = 2; sl@0: const TInt KNumArmDomains = 16; /**< @internalTechnology */ sl@0: sl@0: // default domain access is client of domain 0, no access to rest sl@0: const TUint32 KDefaultDomainAccess = 0x00000001u; /**< @internalTechnology */ sl@0: const TUint32 KSupervisorInitialDomainAccess = 0x00000001u; /**< @internalTechnology */ sl@0: sl@0: #define PDE_IN_DOMAIN(aPde, aDomain) (((aPde) & ~(15 << 5)) | ((aDomain) << 5)) sl@0: sl@0: // Constants for ARM V6 MMU sl@0: const TInt KPageShift=12; sl@0: const TInt KPageSize=1<