aboutsummaryrefslogtreecommitdiff
path: root/test6.c
diff options
context:
space:
mode:
authorMichael Davidsaver <mdavidsaver@gmail.com>2015-11-26 18:24:15 -0500
committerMichael Davidsaver <mdavidsaver@gmail.com>2015-11-26 18:24:15 -0500
commit0a19edd08522371416fed0a3aa36614eea2e43d9 (patch)
tree0d2f2e42b4f138451906c6e2f7e3156c73ca770b /test6.c
parentdd5d998268938b8442e398a95def42510a07b35b (diff)
fix test6
Diffstat (limited to 'test6.c')
-rw-r--r--test6.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/test6.c b/test6.c
index b73d521..c07bcc6 100644
--- a/test6.c
+++ b/test6.c
@@ -5,17 +5,18 @@
static
void hard(void)
{
- puts("In HardFault\noops...\n");
- abort();
+ puts("In HardFault\noops...\n");
+ abort();
}
void main(void)
{
- run_table.hard = &hard;
- puts("Faulting...\n");
- /* Trigger a UsageFault, which will escalate to unrecoverable
- * since FAULTMASK is set on start
- */
- __asm__ volatile (".word 0xffff");
- puts("Oops, I shouldn't be here...\n");
+ run_table.hard = &hard;
+ CPSID(if);
+ puts("Faulting...\n");
+ /* Trigger a UsageFault, which will escalate to unrecoverable
+ * since FAULTMASK is set
+ */
+ __asm__ volatile (".word 0xffff");
+ puts("Oops, I shouldn't be here...\n");
}