summaryrefslogtreecommitdiff
path: root/src/target/armv4_5_mmu.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-07-19 08:45:45 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-07-19 22:13:48 +0200
commit70fee9207b5fd1c6f499b790591446adc4d4467c (patch)
tree441eee8f9af2ed37eaf072d22465246037f99d15 /src/target/armv4_5_mmu.h
parent612184176fee6333e5372c4637e3cf54628ee416 (diff)
downloadopenocd+libswd-70fee9207b5fd1c6f499b790591446adc4d4467c.tar.gz
openocd+libswd-70fee9207b5fd1c6f499b790591446adc4d4467c.tar.bz2
openocd+libswd-70fee9207b5fd1c6f499b790591446adc4d4467c.tar.xz
openocd+libswd-70fee9207b5fd1c6f499b790591446adc4d4467c.zip
arm: add error propagation to generic get_ttb fn
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/armv4_5_mmu.h')
-rw-r--r--src/target/armv4_5_mmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/armv4_5_mmu.h b/src/target/armv4_5_mmu.h
index 24f39934..d2716fb0 100644
--- a/src/target/armv4_5_mmu.h
+++ b/src/target/armv4_5_mmu.h
@@ -26,7 +26,7 @@ struct target;
struct armv4_5_mmu_common
{
- uint32_t (*get_ttb)(struct target *target);
+ int (*get_ttb)(struct target *target, uint32_t *result);
int (*read_memory)(struct target *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
int (*write_memory)(struct target *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
void (*disable_mmu_caches)(struct target *target, int mmu, int d_u_cache, int i_cache);