diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-05 20:35:37 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-05 20:35:37 -0800 |
commit | aab023570b7cc8f884715fc6a8af9c296d24ea8e (patch) | |
tree | 3c1983ba5c36bd43b5f23aeb20bd8ea48c94ee10 /src/target/arm920t.h | |
parent | 36b4ac90e45dda4df505981bd8d090971e478867 (diff) |
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 <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm920t.h')
-rw-r--r-- | src/target/arm920t.h | 14 |
1 files changed, 9 insertions, 5 deletions
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 */ |