36 lines
878 B
ArmAsm
36 lines
878 B
ArmAsm
|
/**
|
||
|
* Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
******************************************************************************
|
||
|
* @file drv_cache_iar.s
|
||
|
* @version V0.1
|
||
|
* @brief cpu cache interface
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
* 2019-04-01 Cliff.Chen first implementation
|
||
|
*
|
||
|
******************************************************************************
|
||
|
*/
|
||
|
|
||
|
SECTION .text:CODE(2)
|
||
|
THUMB
|
||
|
REQUIRE8
|
||
|
PRESERVE8
|
||
|
|
||
|
IMPORT cache_dump_ahb_error
|
||
|
EXPORT CACHE_IRQHandler
|
||
|
|
||
|
CACHE_IRQHandler:
|
||
|
MRS r2, PRIMASK
|
||
|
CPSID I
|
||
|
MOV r0, lr ; get lr
|
||
|
MOV r1, sp ; get stack pointer (current is MSP)
|
||
|
BL cm_backtrace_fault
|
||
|
|
||
|
Fault_Loop
|
||
|
BL Fault_Loop ;while(1)
|
||
|
|
||
|
END
|