Changeset 5fcd537 in mainline for kernel/arch/arm32/include
- Timestamp:
- 2013-01-19T02:25:08Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bad1f53
- Parents:
- ae86f89 (diff), 660e8fa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/arm32/include
- Files:
-
- 2 added
- 2 edited
-
barrier.h (modified) (2 diffs)
-
cp15.h (added)
-
regutils.h (modified) (1 diff)
-
security_ext.h (added)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/barrier.h
rae86f89 r5fcd537 39 39 /* 40 40 * TODO: implement true ARM memory barriers for macros below. 41 * ARMv6 introduced user access of the following commands: 42 * • Prefetch flush 43 * • Data synchronization barrier 44 * • Data memory barrier 45 * • Clean and prefetch range operations. 46 * ARM Architecture Reference Manual version I ch. B.3.2.1 p. B3-4 41 47 */ 42 48 #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") … … 88 94 */ 89 95 90 /* Available on both all supported arms, 96 #ifdef PROCESSOR_ARCH_armv7_a 97 #define smc_coherence(a) asm volatile ( "isb" ::: "memory") 98 #define smc_coherence_block(a, l) smc_coherence(a) 99 #else 100 /* Available on all supported arms, 91 101 * invalidates entire ICache so the written value does not matter. */ 102 //TODO might be PL1 only on armv5 - 92 103 #define smc_coherence(a) asm volatile ( "mcr p15, 0, r0, c7, c5, 0") 93 104 #define smc_coherence_block(a, l) smc_coherence(a) 105 #endif 94 106 95 107 -
kernel/arch/arm32/include/regutils.h
rae86f89 r5fcd537 66 66 67 67 /* ARM Processor Operation Modes */ 68 #define USER_MODE 0x10 69 #define FIQ_MODE 0x11 70 #define IRQ_MODE 0x12 71 #define SUPERVISOR_MODE 0x13 72 #define ABORT_MODE 0x17 73 #define UNDEFINED_MODE 0x1b 74 #define SYSTEM_MODE 0x1f 75 68 enum { 69 USER_MODE = 0x10, 70 FIQ_MODE = 0x11, 71 IRQ_MODE = 0x12, 72 SUPERVISOR_MODE = 0x13, 73 MONITOR_MODE = 0x16, 74 ABORT_MODE = 0x17, 75 HYPERVISOR_MODE = 0x1a, 76 UNDEFINED_MODE = 0x1b, 77 SYSTEM_MODE = 0x1f, 78 MODE_MASK = 0x1f, 79 }; 76 80 /* [CS]PRS manipulation macros */ 77 81 #define GEN_STATUS_READ(nm, reg) \
Note:
See TracChangeset
for help on using the changeset viewer.
