From 0e0c5d89b8671373298d88a383b490814384346f Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 14 Sep 2015 17:43:29 +1000 Subject: [PATCH] NMI exception handler: Fix reserving too much RAM for registers --- core/exception_vectors.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/exception_vectors.S b/core/exception_vectors.S index 1ba2eee..5d5b74e 100644 --- a/core/exception_vectors.S +++ b/core/exception_vectors.S @@ -78,7 +78,7 @@ NMIHandlerStack: /* stack space for NMI handler */ .skip 4*0x100 .LNMIHandlerStackTop: NMIRegisterSaved: /* register space for saving NMI registers */ - .skip 4*(0x16 + 6) + .skip 4*(16 + 6) /* Save register relative to a0 */ .macro SAVE_REG register, regnum