Ignore:
Timestamp:
Jun 26, 2017, 6:45:41 PM (7 years ago)
Author:
ertl-honda
Message:

3.0.0のリリース版に追従

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_wo_tecs/trunk/arch/arm_gcc/common/arm.h

    r302 r305  
    55 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    66 *                              Toyohashi Univ. of Technology, JAPAN
    7  *  Copyright (C) 2006-2015 by Embedded and Real-Time Systems Laboratory
     7 *  Copyright (C) 2006-2016 by Embedded and Real-Time Systems Laboratory
    88 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    99 *
     
    5252 *  の責任を負わない.
    5353 *
    54  *  $Id: arm.h 430 2015-08-08 11:38:46Z ertl-hiro $
     54 *  $Id: arm.h 523 2016-01-14 11:01:04Z ertl-hiro $
    5555 */
    5656
     
    282282
    283283/*
    284  *  High exception vectorを使うかの設定
    285  */
    286 Inline void
    287 arm_set_high_vector(bool_t enable)
     284 *  High exception vectorsを使うように設定
     285 */
     286Inline void
     287arm_set_high_vectors(void)
    288288{
    289289        uint32_t        reg;
    290290
    291291        CP15_READ_SCTLR(reg);
    292         if (enable) {
    293                 reg |= CP15_SCTLR_VECTOR;
    294         }
    295         else {
    296                 reg &= ~CP15_SCTLR_VECTOR;
    297         }
     292        reg |= CP15_SCTLR_VECTOR;
     293        CP15_WRITE_SCTLR(reg);
     294}
     295
     296/*
     297 *  Low exception vectorsを使うように設定
     298 */
     299Inline void
     300arm_set_low_vectors(void)
     301{
     302        uint32_t        reg;
     303
     304        CP15_READ_SCTLR(reg);
     305        reg &= ~CP15_SCTLR_VECTOR;
    298306        CP15_WRITE_SCTLR(reg);
    299307}
Note: See TracChangeset for help on using the changeset viewer.