From d5e213f8cba8dd6641f4d2d19855ed2f9e4e4218 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 18 Nov 2015 10:39:48 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8509 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/e200/compilers/GCC/ivor.s | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/os/rt/ports/e200/compilers/GCC/ivor.s b/os/rt/ports/e200/compilers/GCC/ivor.s index ff43a21df..4b1c95dd6 100644 --- a/os/rt/ports/e200/compilers/GCC/ivor.s +++ b/os/rt/ports/e200/compilers/GCC/ivor.s @@ -41,11 +41,6 @@ #include "chcore.h" #if !defined(__DOXYGEN__) - /* - * INTC registers address. - */ - .equ INTC_IACKR, 0xfff48010 - .equ INTC_EOIR, 0xfff48018 .section .handlers, "ax" @@ -171,8 +166,8 @@ _IVOR4: mtspr 272, %r0 /* Software vector address from the INTC register.*/ - lis %r3, INTC_IACKR@h - ori %r3, %r3, INTC_IACKR@l /* IACKR register address. */ + lis %r3, INTC_IACKR_ADDR@h + ori %r3, %r3, INTC_IACKR_ADDR@l /* IACKR register address. */ lwz %r3, 0(%r3) /* IACKR register value. */ lwz %r3, 0(%r3) mtCTR %r3 /* Software handler address. */ @@ -195,8 +190,8 @@ _IVOR4: /* Informs the INTC that the interrupt has been served.*/ mbar 0 - lis %r3, INTC_EOIR@h - ori %r3, %r3, INTC_EOIR@l + lis %r3, INTC_EOIR_ADDR@h + ori %r3, %r3, INTC_EOIR_ADDR@l stw %r3, 0(%r3) /* Writing any value should do. */ /* Common IVOR epilogue code, context restore.*/ -- cgit v1.2.3