X-Git-Url: https://robinkrens.nl/gitweb/?a=blobdiff_plain;f=ivt.c;h=a2714871d175f47ad78cf7ae36888a1491d88a14;hb=a45e9d29077fac0f124a02ad75f6a7dd60218b06;hp=02c45ec339a59f7cb7239a2a71eef139dccdf23e;hpb=8b8d6edcd57f69b40f430bc172e1c290a629a6a9;p=cortex-from-scratch diff --git a/ivt.c b/ivt.c index 02c45ec..a271487 100644 --- a/ivt.c +++ b/ivt.c @@ -113,7 +113,6 @@ __attribute__ ((interrupt)) void * dummy_isr( struct interrupt_frame * frame ) { uint8_t nr = *SCB_VTOR_ST & 0xFF; - //printf("PC:%p\n",frame->lr); printf("EXCEPTION: %s\n", exception_message(nr)); printf("STACK TRACE:\n"); printf("R0:%p\n",frame->r0); @@ -125,7 +124,7 @@ void * dummy_isr( struct interrupt_frame * frame ) { printf("PC:%p\n",frame->pc); printf("PSR:%p\n",frame->psr); - //for(;;); + for(;;); } /* Initialize interrupt vector */ @@ -149,6 +148,6 @@ void ivt_init() { * relocated to other memory locations. We can do this by setting * a register in the NVIC called the vector table offset register */ - regw_u32(SCB_VTOR, (uint32_t) &ivt, 0, OWRITE); + rwrite(SCB_VTOR, (uint32_t) &ivt); }