diff options
author | Achin Gupta <achin.gupta@arm.com> | 2012-04-19 15:24:46 +0100 |
---|---|---|
committer | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2012-05-23 12:44:35 +0100 |
commit | 8c3b1ad77b3a0e47416e9eb9bd91cb27b642a5ff (patch) | |
tree | b26c3bf61f4207df286a1d79f8bcffca1195e159 | |
parent | fb00a4a56fdefd7056e19f9fd80c762c17ee102c (diff) |
Debug S&R cp14: Added helper functions and their prototypes
Moved cp14 helper functions & prototypes to debug_helpers.s &
debug_helpers.h respectively.
-rw-r--r-- | acsr/helpers.h | 2 | ||||
-rw-r--r-- | acsr/helpers.s | 18 |
2 files changed, 0 insertions, 20 deletions
diff --git a/acsr/helpers.h b/acsr/helpers.h index a4d461e..14c8472 100644 --- a/acsr/helpers.h +++ b/acsr/helpers.h @@ -56,8 +56,6 @@ extern unsigned read_nmrr(void); extern unsigned read_l2ctlr(void); extern unsigned read_mvbar(void); extern unsigned read_cbar(void); -extern unsigned read_drar(void); -extern unsigned read_dsar(void); extern unsigned read_teehbr(void); extern unsigned read_l2ectlr(void); extern unsigned read_pmuserenr(void); diff --git a/acsr/helpers.s b/acsr/helpers.s index a40eb1c..0c92511 100644 --- a/acsr/helpers.s +++ b/acsr/helpers.s @@ -33,8 +33,6 @@ EXPORT get_cpu_type EXPORT va_to_pa - EXPORT read_drar - EXPORT read_dsar EXPORT read_cbar EXPORT read_sctlr EXPORT read_actlr @@ -158,7 +156,6 @@ EXPORT write_hstr EXPORT write_sctlr EXPORT write_actlr - EXPORT write_osdlr EXPORT write_ttbcr EXPORT write_cntfrq EXPORT write_cnthctl @@ -1025,21 +1022,6 @@ read_cbar FUNCTION bx lr ENDFUNC -read_drar FUNCTION - mrc p14, 0, r0, c1, c0, 0 ; Read Debug ROM Address Register - bx lr - ENDFUNC - -read_dsar FUNCTION - mrc p14, 0, r0, c2, c0, 0 ; Read Debug Self Address Offset Register - bx lr - ENDFUNC - -write_osdlr FUNCTION - mcr p14, 0, r0, c1, c3, 4 ; Write OS Double Lock Register - bx lr - ENDFUNC - get_cpu_type FUNCTION mrc p15, 0, r0, c0, c0, 0; read MIDR ldr r1, =MIDR_CPU_MASK |