From 46d8d011afb9669404c0295ae0846261b8355859 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 22 Jul 2014 09:01:53 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7055 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/nil/ports/e200/compilers/GCC/ivor.s | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'os/nil/ports/e200') diff --git a/os/nil/ports/e200/compilers/GCC/ivor.s b/os/nil/ports/e200/compilers/GCC/ivor.s index 6b2fc3bba..3afc6522d 100644 --- a/os/nil/ports/e200/compilers/GCC/ivor.s +++ b/os/nil/ports/e200/compilers/GCC/ivor.s @@ -42,11 +42,6 @@ #include "nilcore.h" #if !defined(__DOXYGEN__) - /* - * INTC registers address. - */ - .equ INTC_IACKR, 0xfff48010 - .equ INTC_EOIR, 0xfff48018 .section .handlers, "ax" @@ -161,8 +156,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 lwz %r3, 0(%r3) /* IACKR register value. */ lwz %r3, 0(%r3) mtCTR %r3 /* Software handler address. */ @@ -182,8 +177,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