drv_cache_gcc.S 858 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. ******************************************************************************
  6. * @file drv_cache_gcc.S
  7. * @version V0.1
  8. * @brief cpu cache interface
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2019-04-01 Cliff.Chen first implementation
  13. *
  14. ******************************************************************************
  15. */
  16. .cpu cortex-m4
  17. .syntax unified
  18. .thumb
  19. .text
  20. .global CACHE_IRQHandler
  21. .type CACHE_IRQHandler, %function
  22. CACHE_IRQHandler:
  23. MRS r2, PRIMASK
  24. CPSID I
  25. MOV r0, lr /* get lr */
  26. MOV r1, sp /* get stack pointer (current is MSP) */
  27. BL cache_dump_ahb_error
  28. Fault_Loop:
  29. BL Fault_Loop /* while(1) */