arch/arm/src/samv7: fix missing sam_pendsv

The commit d1a3f5e47f invalidly removed
`sam_pendsv` instead of `sam_busfault`.
This commit is contained in:
Karel Kočí 2022-11-21 13:50:24 +01:00 committed by Xiang Xiao
parent 01ec02380d
commit f0321d6bae

View File

@ -161,11 +161,10 @@ static int sam_nmi(int irq, void *context, void *arg)
return 0;
}
static int sam_busfault(int irq, void *context, void *arg)
static int sam_pendsv(int irq, void *context, void *arg)
{
up_irq_save();
_err("PANIC!!! Bus fault received: %08" PRIx32 "\n",
getreg32(NVIC_CFAULTS));
_err("PANIC!!! PendSV received\n");
PANIC();
return 0;
}