author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@4 | 1 |
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 2 |
// All rights reserved. |
williamr@4 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 4 |
// under the terms of the License "Eclipse Public License v1.0" |
williamr@4 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@4 | 7 |
// |
williamr@4 | 8 |
// Initial Contributors: |
williamr@4 | 9 |
// Nokia Corporation - initial contribution. |
williamr@4 | 10 |
// |
williamr@4 | 11 |
// Contributors: |
williamr@4 | 12 |
// |
williamr@4 | 13 |
// Description: |
williamr@4 | 14 |
// omap3530/omap3530_assp/assp.mmh |
williamr@4 | 15 |
// TO DO: (mandatory) |
williamr@4 | 16 |
// Add here a definition for your CPU (list in CONFIG.INC) |
williamr@4 | 17 |
// macro __CPU_CORTEX_A8__ |
williamr@4 | 18 |
// |
williamr@4 | 19 |
|
williamr@4 | 20 |
macro __CPU_CORTEX_A8N__ |
williamr@4 | 21 |
|
williamr@4 | 22 |
// TO DO: (mandatory) |
williamr@4 | 23 |
// |
williamr@4 | 24 |
// Add here a definition for your Memory Model |
williamr@4 | 25 |
// |
williamr@4 | 26 |
#define MM_MULTIPLE |
williamr@4 | 27 |
|
williamr@4 | 28 |
// TO DO: (mandatory) |
williamr@4 | 29 |
// |
williamr@4 | 30 |
// Macro which generates the names for the binaries for this platform |
williamr@4 | 31 |
// |
williamr@4 | 32 |
#define AsspTarget(name,ext) _omap3530_##name##.##ext |
williamr@4 | 33 |
|
williamr@4 | 34 |
//Include debug support. Some e32 tests require debug support |
williamr@4 | 35 |
macro __DEBUGGER_SUPPORT__ |
williamr@4 | 36 |
|
williamr@4 | 37 |
// |
williamr@4 | 38 |
// TO DO: |
williamr@4 | 39 |
// |
williamr@4 | 40 |
// If euser is built from the variant, uncomment the following line to build it |
williamr@4 | 41 |
// as ARM rather than Thumb |
williamr@4 | 42 |
// |
williamr@4 | 43 |
// #define __BUILD_VARIANT_EUSER_AS_ARM__ |
williamr@4 | 44 |
|
williamr@4 | 45 |
// TO DO: (optional) |
williamr@4 | 46 |
// |
williamr@4 | 47 |
// To replace some of the generic utility functions with variant specific |
williamr@4 | 48 |
// versions (eg to replace memcpy with a version optimised for the hardware), |
williamr@4 | 49 |
// uncomment the two lines below and edit the files in the replacementUtils |
williamr@4 | 50 |
// directory. |
williamr@4 | 51 |
// |
williamr@4 | 52 |
// #define REPLACE_GENERIC_UTILS |
williamr@4 | 53 |
// #define VariantReplacementUtilsPath beagle/beagle_variant/replacement_utils |
williamr@4 | 54 |
|
williamr@4 | 55 |
// TO DO: (optional) |
williamr@4 | 56 |
// |
williamr@4 | 57 |
// Enable BTrace support in release versions of the kernel by adding |
williamr@4 | 58 |
// the following BTRACE macro declarations |
williamr@4 | 59 |
// |
williamr@4 | 60 |
// macro BTRACE_KERNEL_ALL |
williamr@4 | 61 |
|
williamr@4 | 62 |
// TO DO: |
williamr@4 | 63 |
// |
williamr@4 | 64 |
// Uncomment the following line if using the r1p0 release or later of the ARM1136 processor. |
williamr@4 | 65 |
// |
williamr@4 | 66 |
// macro __CPU_ARM1136_IS_R1__ |
williamr@4 | 67 |
|
williamr@4 | 68 |
// TO DO: |
williamr@4 | 69 |
// |
williamr@4 | 70 |
// Include the following line if default memory mapping should use shared memory. |
williamr@4 | 71 |
// Should be on for multicore (SMP) devices. |
williamr@4 | 72 |
// |
williamr@4 | 73 |
// macro __CPU_USE_SHARED_MEMORY |
williamr@4 | 74 |
// |
williamr@4 | 75 |
|
williamr@4 | 76 |
// TO DO: |
williamr@4 | 77 |
// |
williamr@4 | 78 |
// Uncomment the next line if using the ARM1136 processor and ARM1136 Erratum 406973 |
williamr@4 | 79 |
// "CLREX instruction might be ignored during data cache line fill" |
williamr@4 | 80 |
// is fixed on this hardware. |
williamr@4 | 81 |
// |
williamr@4 | 82 |
// macro __CPU_ARM1136_ERRATUM_406973_FIXED |
williamr@4 | 83 |
|
williamr@4 | 84 |
// Uncomment next line if: |
williamr@4 | 85 |
// 1) using the ARM1136 processor and ARM1136 Erratum 408022 "Cancelled write to CONTEXTID register might update ASID" |
williamr@4 | 86 |
// is fixed on this hardware, or |
williamr@4 | 87 |
// 2) using the ARM1176 processor and ARM1176 Erratum 415047 "Cancelled write to CONTEXTID register might update ASID" |
williamr@4 | 88 |
// is fixed on this hardware. |
williamr@4 | 89 |
// |
williamr@4 | 90 |
// macro __CPU_ARM1136_ERRATUM_408022_FIXED |
williamr@4 | 91 |
|
williamr@4 | 92 |
// Uncomment if: |
williamr@4 | 93 |
// 1) using ARM1136 processor and ARM1136 Erratum 411920: "Invalidate Entire Instruction Cache |
williamr@4 | 94 |
// operation might fail to invalidate some lines if coincident with linefill" |
williamr@4 | 95 |
// is fixed on this hardware, or |
williamr@4 | 96 |
// 2) using ARM1176 processor and ARM1176 Erratum 415045: "Invalidate Entire Instruction Cache |
williamr@4 | 97 |
// operation might fail to invalidate some lines if coincident with linefill |
williamr@4 | 98 |
// is fixed on this hardware. |
williamr@4 | 99 |
// Workaround: |
williamr@4 | 100 |
// 1) Disables the use of of prefetch range cache operations by setting RV bit in Auxiliary Ctrl Reg. |
williamr@4 | 101 |
// 2) Replaces Invalidate ICache operation with the sequence defined in the errata document. |
williamr@4 | 102 |
// If this macro is enabled, it should be accompanied by: |
williamr@4 | 103 |
// "GBLL CFG_CPU_ARM1136_ERRATUM_411920_FIXED" in variant.mmh |
williamr@4 | 104 |
// |
williamr@4 | 105 |
// macro __CPU_ARM1136_ERRATUM_411920_FIXED |
williamr@4 | 106 |
|
williamr@4 | 107 |
// Uncomment the following line if Page Tables/Dirs have to be updated in main memory. |
williamr@4 | 108 |
// Standard platforms shouldn't have this feature switched on. |
williamr@4 | 109 |
// This must be accompanied by __ARM_L210_CACHE__ or __ARM_L220_CACHE__ macro. |
williamr@4 | 110 |
// Omission:: The solution doesn't update temporary mappings |
williamr@4 | 111 |
// of inter-process communication (IPC) - aka aliasing. |
williamr@4 | 112 |
// |
williamr@4 | 113 |
// macro __FLUSH_PT_INTO_RAM__ |
williamr@4 | 114 |
|
williamr@4 | 115 |
// Uncomment the following line if Symbian OS is running in TrustZone non-secure state and the |
williamr@4 | 116 |
// secure state has prevented code executing in non-secure state from being able to mask FIQs by |
williamr@4 | 117 |
// setting the SCR.FW bit in the secure configuration register. |
williamr@4 | 118 |
// |
williamr@4 | 119 |
// macro __FIQ_RESERVED_FOR_SECURE_STATE__ |
williamr@4 | 120 |
|
williamr@4 | 121 |
// Various PlatSec configuration options cannot be disabled even by clearing the appropriate |
williamr@4 | 122 |
// bits in the kernel configuration flags - they are enforced at compile time. Uncomment the |
williamr@4 | 123 |
// following to allow the clearing of bits in the kernel config flags to disable the relevant |
williamr@4 | 124 |
// options at run time. |
williamr@4 | 125 |
// |
williamr@4 | 126 |
//macro __PLATSEC_UNLOCKED__ |
williamr@4 | 127 |
|
williamr@4 | 128 |
// If this macro is enabled then EMapAttrBufferedNC memory will be remapped as EMapAttrFullyBlocking |
williamr@4 | 129 |
//macro FAULTY_NONSHARED_DEVICE_MEMORY |
williamr@4 | 130 |
|
williamr@4 | 131 |
// Uncomment the following line if L210/20 cache is running in forced-WT mode. |
williamr@4 | 132 |
// (Forced_WT bit set in Debug Control Register of L210/20 cache controller.) |
williamr@4 | 133 |
// macro __ARM_L2_CACHE_WT_MODE |
williamr@4 | 134 |
|
williamr@4 | 135 |
// For the status of errata of L210 & L220 cache, see the header of source file: |
williamr@4 | 136 |
// e32\kernel\arm\cachel2.cpp |
williamr@4 | 137 |
|
williamr@4 | 138 |
#if defined(__USING_USING_ASSP_REGISTER_API__) || defined(__USING_INTERRUPT_API__) || defined(__USING_ASSP_REGISTER_API__) |
williamr@4 | 139 |
library AsspTarget(kaomap3530,lib) |
williamr@4 | 140 |
#endif |
williamr@4 | 141 |