From b9f06dc5e31d0bc78637142f576b9339bb86ee31 Mon Sep 17 00:00:00 2001 From: Dimitry Kloper Date: Mon, 4 Jan 2016 21:39:48 +0200 Subject: [PATCH] ATMEGA2560: Fix compilation when CONFIG_DISABLE_SIGNALS is undefined --- arch/avr/include/avr/irq.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/avr/include/avr/irq.h b/arch/avr/include/avr/irq.h index 9e95edbec5f..9c8ec670afc 100644 --- a/arch/avr/include/avr/irq.h +++ b/arch/avr/include/avr/irq.h @@ -117,6 +117,9 @@ struct xcptcontext uint8_t saved_pc1; uint8_t saved_pc0; +# if defined(REG_PC2) + uint8_t saved_pc2; +# endif uint8_t saved_sreg; #endif