summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-10-23 12:28:03 -0700
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-10-23 12:28:03 -0700
commit75cdc8a260e081752698f374d4cd6e97e84eb6cb (patch)
tree0243254891f694470d6b9147431746837dcc4394 /src
parentbfefe85645a51d8e5f94879dcd0321abafdcbf7c (diff)
downloadopenocd+libswd-75cdc8a260e081752698f374d4cd6e97e84eb6cb.tar.gz
openocd+libswd-75cdc8a260e081752698f374d4cd6e97e84eb6cb.tar.bz2
openocd+libswd-75cdc8a260e081752698f374d4cd6e97e84eb6cb.tar.xz
openocd+libswd-75cdc8a260e081752698f374d4cd6e97e84eb6cb.zip
arm9tdmi vector_catch: reserved means "don't use"
Bit 5 shouldn't be used. Remove all support for modifying it. Matches the exception vector table, of course ... more than one bootloader uses that non-vector to help distinguish valid boot images from random garbage in flash.
Diffstat (limited to 'src')
-rw-r--r--src/target/arm9tdmi.c3
-rw-r--r--src/target/arm9tdmi.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c
index f941922a..12b68ae5 100644
--- a/src/target/arm9tdmi.c
+++ b/src/target/arm9tdmi.c
@@ -95,7 +95,6 @@ static arm9tdmi_vector_t arm9tdmi_vectors[] =
{"swi", ARM9TDMI_SWI_VECTOR},
{"pabt", ARM9TDMI_PABT_VECTOR},
{"dabt", ARM9TDMI_DABT_VECTOR},
- {"reserved", ARM9TDMI_RESERVED_VECTOR},
{"irq", ARM9TDMI_IRQ_VECTOR},
{"fiq", ARM9TDMI_FIQ_VECTOR},
{0, 0},
@@ -1067,7 +1066,7 @@ int arm9tdmi_register_commands(struct command_context_s *cmd_ctx)
"arm9tdmi specific commands");
register_command(cmd_ctx, arm9tdmi_cmd, "vector_catch",
handle_arm9tdmi_catch_vectors_command, COMMAND_EXEC,
- "arm9 vector_catch [all|none|reset|undef|swi|pabt|dabt|reserved|irq|fiq] - separate vectors to catch by space");
+ "arm9 vector_catch [all|none|reset|undef|swi|pabt|dabt|irq|fiq] - separate vectors to catch by space");
diff --git a/src/target/arm9tdmi.h b/src/target/arm9tdmi.h
index 28be9b6c..9dfa8863 100644
--- a/src/target/arm9tdmi.h
+++ b/src/target/arm9tdmi.h
@@ -47,7 +47,7 @@ enum arm9tdmi_vector
ARM9TDMI_SWI_VECTOR = 0x04,
ARM9TDMI_PABT_VECTOR = 0x08,
ARM9TDMI_DABT_VECTOR = 0x10,
- ARM9TDMI_RESERVED_VECTOR = 0x20,
+ /* BIT(5) reserved -- must be zero */
ARM9TDMI_IRQ_VECTOR = 0x40,
ARM9TDMI_FIQ_VECTOR = 0x80,
};