From aab023570b7cc8f884715fc6a8af9c296d24ea8e Mon Sep 17 00:00:00 2001 From: David Brownell Date: Thu, 5 Nov 2009 20:35:37 -0800 Subject: ARM920: remove exports and forward decls Unneeded exports cause confusion about the module interfaces. Make most functions static. Add a short header comment. The forward decls are just code clutter; remove them, by moving their references after definitions. This is another file which never needed even one internal forward declaration. This saved almost 900 bytes of code on x86_32; it seems the compiler can leverage its knowledge that these functions are not called from the outside world... Signed-off-by: David Brownell --- src/target/arm920t.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/target/arm920t.h') diff --git a/src/target/arm920t.h b/src/target/arm920t.h index 6e4c2371..ed851a93 100644 --- a/src/target/arm920t.h +++ b/src/target/arm920t.h @@ -53,13 +53,17 @@ typedef struct arm920t_tlb_entry_s int arm920t_arch_state(struct target_s *target); int arm920t_soft_reset_halt(struct target_s *target); -int arm920t_read_memory(struct target_s *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); -int arm920t_write_memory(struct target_s *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); +int arm920t_read_memory(struct target_s *target, + uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); +int arm920t_write_memory(struct target_s *target, + uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); void arm920t_post_debug_entry(target_t *target); void arm920t_pre_restore_context(target_t *target); -uint32_t arm920t_get_ttb(target_t *target); -void arm920t_disable_mmu_caches(target_t *target, int mmu, int d_u_cache, int i_cache); -void arm920t_enable_mmu_caches(target_t *target, int mmu, int d_u_cache, int i_cache); + uint32_t arm920t_get_ttb(target_t *target); +void arm920t_disable_mmu_caches(target_t *target, + int mmu, int d_u_cache, int i_cache); +void arm920t_enable_mmu_caches(target_t *target, + int mmu, int d_u_cache, int i_cache); int arm920t_register_commands(struct command_context_s *cmd_ctx); #endif /* ARM920T_H */ -- cgit v1.2.3