summaryrefslogtreecommitdiff
path: root/bsp/rockchip/common/drivers/drv_cache_gcc.S
blob: 32b07f3d25e56201c2dad40de767859cdd360019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
  * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
  *
  * SPDX-License-Identifier: Apache-2.0
  ******************************************************************************
  * @file    drv_cache_gcc.S
  * @version V0.1
  * @brief   cpu cache interface
  *
  * Change Logs:
  * Date           Author          Notes
  * 2019-04-01     Cliff.Chen      first implementation
  *
  ******************************************************************************
  */

.cpu cortex-m4
.syntax unified
.thumb
.text

.global CACHE_IRQHandler
.type CACHE_IRQHandler, %function
CACHE_IRQHandler:
    MRS r2, PRIMASK
    CPSID   I
    MOV     r0, lr                  /* get lr */
    MOV     r1, sp                  /* get stack pointer (current is MSP) */
    BL      cache_dump_ahb_error

Fault_Loop:
    BL      Fault_Loop              /* while(1) */