aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv7a.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2011-10-25 00:36:24 +0200
committerØyvind Harboe <oyvindharboe@gmail.com>2011-10-25 05:16:04 +0000
commitf80ec2aa3723c59528198b275a348b6b8804929a (patch)
tree55417f4674d9aa5fee3e4f6f51cb9d26979fa883 /src/target/armv7a.c
parent8c6b95ed162ada54b1165ca0c9b46aa92f92975c (diff)
downloadriscv-openocd-f80ec2aa3723c59528198b275a348b6b8804929a.zip
riscv-openocd-f80ec2aa3723c59528198b275a348b6b8804929a.tar.gz
riscv-openocd-f80ec2aa3723c59528198b275a348b6b8804929a.tar.bz2
armv7a: make local functions static
Also fix a spelling error and remove the declaration for a non-existent function from the header. Change-Id: I13177e2d81aa167c05c1cc766f06924211e6d735 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/118 Tested-by: jenkins Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Diffstat (limited to 'src/target/armv7a.c')
-rw-r--r--src/target/armv7a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/armv7a.c b/src/target/armv7a.c
index 0bac27f..d74b99b 100644
--- a/src/target/armv7a.c
+++ b/src/target/armv7a.c
@@ -87,7 +87,7 @@ done:
/* (void) */ dpm->finish(dpm);
}
-int armv7a_read_ttbcr(struct target *target)
+static int armv7a_read_ttbcr(struct target *target)
{
struct armv7a_common *armv7a = target_to_armv7a(target);
struct arm_dpm *dpm = armv7a->armv4_5_common.dpm;
@@ -454,7 +454,7 @@ static int armv7a_handle_l2x_cache_info_command(struct command_context *cmd_ctx,
}
-int armv7a_l2x_cache_init(struct target *target, uint32_t base, uint32_t way)
+static int armv7a_l2x_cache_init(struct target *target, uint32_t base, uint32_t way)
{
struct armv7a_l2x_cache *l2x_cache;
struct target_list *head = target->head;
@@ -542,7 +542,7 @@ int armv7a_handle_cache_info_command(struct command_context *cmd_ctx,
/* retrieve core id cluster id */
-int arnv7a_read_mpidr(struct target *target)
+static int armv7a_read_mpidr(struct target *target)
{
int retval = ERROR_FAIL;
struct armv7a_common *armv7a = target_to_armv7a(target);
@@ -711,7 +711,7 @@ int armv7a_identify_cache(struct target *target)
done:
dpm->finish(dpm);
- arnv7a_read_mpidr(target);
+ armv7a_read_mpidr(target);
return retval;
}