X-Git-Url: https://robinkrens.nl/gitweb/?p=cortex-from-scratch;a=blobdiff_plain;f=start.asm;h=e6d08c6f0cf15d452de86a6ab262c66ecbf36ed0;hp=f2c16bc6a4fb5f88630cac2c8482f5251dff1e5e;hb=47f52d56fac1acc9410a351dbf603c462bf3994c;hpb=9063da27d8547aaaee12a67fb5f582441330a640 diff --git a/start.asm b/start.asm index f2c16bc..e6d08c6 100644 --- a/start.asm +++ b/start.asm @@ -13,6 +13,7 @@ .text .global _start .global reset, nmi, hardfault + .global _svc_handler .code 16 .syntax unified _start: @@ -28,14 +29,17 @@ reset: /* These are consequently the nmi and hardfault vector handlers before booting and entering main, these can actually be called (machine somehow has a failure). That's why they are included here. - Later the interrupt vector - will be relocated to SRAM and the will be copied / modified. */ + Later the interrupt vector will be relocated to SRAM and modified. */ nmi: b nmi -hardfault: - b hardfault - +hardfault: + mov r5, 9 + b hardfault2 + +hardfault2: + b hardfault2 + .end