- 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_kernel_impl.c
r321 r429 6 6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 7 7 * Toyohashi Univ. of Technology, JAPAN 8 * Copyright (C) 2006-201 6by Embedded and Real-Time Systems Laboratory8 * Copyright (C) 2006-2019 by Embedded and Real-Time Systems Laboratory 9 9 * Graduate School of Information Science, Nagoya Univ., JAPAN 10 10 * … … 73 73 */ 74 74 Inline void 75 config_section_entry( ARM_MMU_CONFIG *p_ammuc)75 config_section_entry(const ARM_MMU_CONFIG *p_ammuc) 76 76 { 77 77 uint32_t vaddr = p_ammuc->vaddr; … … 80 80 uint_t i; 81 81 82 assert(vaddr % ARM_SECTION_SIZE == 0); 83 assert(paddr % ARM_SECTION_SIZE == 0); 84 assert(size % ARM_SECTION_SIZE == 0); 82 85 while (size > 0) { 83 86 #ifdef USE_ARM_SSECTION … … 170 173 171 174 /* 175 * FPUの初期化 176 */ 177 #ifdef USE_ARM_FPU 178 179 void 180 arm_fpu_initialize(void) 181 { 182 uint32_t reg; 183 184 /* 185 * CP10とCP11をアクセス可能に設定する. 186 */ 187 CP15_READ_CPACR(reg); 188 reg |= (CP15_CPACR_CP10_FULLACCESS | CP15_CPACR_CP11_FULLACCESS); 189 CP15_WRITE_CPACR(reg); 190 191 /* 192 * FPUをディスエーブルする. 193 */ 194 set_fpexc(current_fpexc() & ~FPEXC_ENABLE); 195 } 196 197 #endif /* USE_ARM_FPU */ 198 199 /* 172 200 * コア依存の初期化 173 201 */ … … 187 215 arm_mmu_initialize(); 188 216 #endif /* USE_ARM_MMU */ 217 218 /* 219 * FPUの初期化 220 */ 221 #ifdef USE_ARM_FPU 222 arm_fpu_initialize(); 223 #endif /* USE_ARM_FPU */ 189 224 190 225 /* … … 306 341 syslog_0(LOG_EMERG, "FIQ exception occurs."); 307 342 break; 343 case EXCNO_FATAL: 344 syslog_0(LOG_EMERG, "Fatal Data Abort exception occurs."); 345 break; 308 346 } 309 347 xlog_sys(p_excinf); 310 348 311 if (excno == EXCNO_PABORT || excno == EXCNO_DABORT) { 349 if (excno == EXCNO_PABORT || excno == EXCNO_DABORT 350 || excno == EXCNO_FATAL) { 312 351 uint32_t fsr, far; 313 352
Note:
See TracChangeset
for help on using the changeset viewer.