Ignore:
Timestamp:
Jul 3, 2020, 7:19:17 PM (4 years ago)
Author:
coas-nagasima
Message:

ASP3, TINET, mbed を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/arch/arm_gcc/common/core_kernel_impl.c

    r321 r429  
    66 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    77 *                              Toyohashi Univ. of Technology, JAPAN
    8  *  Copyright (C) 2006-2016 by Embedded and Real-Time Systems Laboratory
     8 *  Copyright (C) 2006-2019 by Embedded and Real-Time Systems Laboratory
    99 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    1010 *
     
    7373 */
    7474Inline void
    75 config_section_entry(ARM_MMU_CONFIG *p_ammuc)
     75config_section_entry(const ARM_MMU_CONFIG *p_ammuc)
    7676{
    7777        uint32_t        vaddr = p_ammuc->vaddr;
     
    8080        uint_t          i;
    8181
     82        assert(vaddr % ARM_SECTION_SIZE == 0);
     83        assert(paddr % ARM_SECTION_SIZE == 0);
     84        assert(size % ARM_SECTION_SIZE == 0);
    8285        while (size > 0) {
    8386#ifdef USE_ARM_SSECTION
     
    170173
    171174/*
     175 *  FPUの初期化
     176 */
     177#ifdef USE_ARM_FPU
     178
     179void
     180arm_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/*
    172200 *  コア依存の初期化
    173201 */
     
    187215        arm_mmu_initialize();
    188216#endif /* USE_ARM_MMU */
     217
     218        /*
     219         *  FPUの初期化
     220         */
     221#ifdef USE_ARM_FPU
     222        arm_fpu_initialize();
     223#endif /* USE_ARM_FPU */
    189224
    190225        /*
     
    306341                syslog_0(LOG_EMERG, "FIQ exception occurs.");
    307342                break;
     343        case EXCNO_FATAL:
     344                syslog_0(LOG_EMERG, "Fatal Data Abort exception occurs.");
     345                break;
    308346        }
    309347        xlog_sys(p_excinf);
    310348
    311         if (excno == EXCNO_PABORT || excno == EXCNO_DABORT) {
     349        if (excno == EXCNO_PABORT || excno == EXCNO_DABORT
     350                                                                                || excno == EXCNO_FATAL) {
    312351                uint32_t        fsr, far;
    313352
Note: See TracChangeset for help on using the changeset viewer.