- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/arch/arm_gcc/common/core_sil.h
r321 r429 5 5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 6 6 * Toyohashi Univ. of Technology, JAPAN 7 * Copyright (C) 2004-201 6by Embedded and Real-Time Systems Laboratory7 * Copyright (C) 2004-2018 by Embedded and Real-Time Systems Laboratory 8 8 * Graduate School of Information Science, Nagoya Univ., JAPAN 9 9 * … … 86 86 * ステータスレジスタ(CPSR)の現在値の読出し 87 87 */ 88 extern uint32_t current_cpsr(void);89 #define TOPPERS_current_cpsr() current_cpsr()88 extern uint32_t _kernel_current_cpsr(void); 89 #define TOPPERS_current_cpsr() _kernel_current_cpsr() 90 90 91 91 /* 92 92 * ステータスレジスタ(CPSR)の現在値の変更 93 93 */ 94 extern void set_cpsr(uint32_t cpsr);95 #define TOPPERS_set_cpsr(cpsr) current_cpsr(cpsr)94 extern void _kernel_set_cpsr(uint32_t cpsr); 95 #define TOPPERS_set_cpsr(cpsr) _kernel_set_cpsr(cpsr) 96 96 97 97 #endif /* __thumb__ */ … … 138 138 #define SIL_UNL_INT() (TOPPERS_set_fiq_irq(TOPPERS_fiq_irq_mask)) 139 139 140 /* 141 * メモリ同期バリア 142 */ 143 #ifdef DATA_SYNC_BARRIER 144 #define TOPPERS_SIL_WRITE_SYNC() DATA_SYNC_BARRIER() 145 #elif __TARGET_ARCH_ARM <= 6 146 #define TOPPERS_SIL_WRITE_SYNC() \ 147 Asm("mcr p15, 0, %0, c7, c10, 4"::"r"(0):"memory") 148 #else /* __TARGET_ARCH_ARM <= 6 */ 149 #define TOPPERS_SIL_WRITE_SYNC() Asm("dsb":::"memory") 150 #endif 151 140 152 #endif /* TOPPERS_MACRO_ONLY */ 141 153 #endif /* TOPPERS_CORE_SIL_H */
Note:
See TracChangeset
for help on using the changeset viewer.