summaryrefslogtreecommitdiff
path: root/nuttx/arch/avr/src/atmega/atmega_exceptions.S
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/avr/src/atmega/atmega_exceptions.S')
-rwxr-xr-xnuttx/arch/avr/src/atmega/atmega_exceptions.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/avr/src/atmega/atmega_exceptions.S b/nuttx/arch/avr/src/atmega/atmega_exceptions.S
index 0bba35cc3..766a81881 100755
--- a/nuttx/arch/avr/src/atmega/atmega_exceptions.S
+++ b/nuttx/arch/avr/src/atmega/atmega_exceptions.S
@@ -122,8 +122,8 @@ excpt_common:
* the push operation post-decrements -- need to REVISIT this).
*/
- in r16, __SP_L__ /* Get the save structure pointer in a Call-saved register pair */
- in r17, __SP_H__ /* (Careful, push post-decrements) */
+ in r16, _SFR_IO_ADDR(SPL) /* Get the save structure pointer in a Call-saved register pair */
+ in r17, _SFR_IO_ADDR(SPH) /* (Careful, push post-decrements) */
movw r22, r16 /* Pass register save structure as the parameter 2 */
USE_INTSTACK rx, ry, rz /* Switch to the interrupt stack */
call up_doirq /* Dispatch the interrupt */