diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-01-11 15:28:18 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-01-13 12:00:02 +0100 |
commit | dc793455e9a04be556b0b25eb1513ecbb7be3f51 (patch) | |
tree | a09806f64def6c9b5cbe5f7ea6f244c0d3fd5932 /src/target/target_type.h | |
parent | 3e33393078105f25ebd591b5b76c7c1501ff41d5 (diff) |
target: add check_reset hook
Allow targets to run checks post reset. Used to check
that e.g. DCC downloads have been enabled.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/target_type.h')
-rw-r--r-- | src/target/target_type.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/target_type.h b/src/target/target_type.h index 67041b31..70eb9625 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -213,6 +213,13 @@ struct target_type int (*mmu)(struct target *target, int *enabled); + /* after reset is complete, the target can check if things are properly set up. + * + * This can be used to check if e.g. DCC memory writes have been enabled for + * arm7/9 targets, which they really should except in the most contrived + * circumstances. + */ + int (*check_reset)(struct target *target); }; #endif // TARGET_TYPE_H |