aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-18 10:39:48 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-18 10:39:48 +0000
commitd5e213f8cba8dd6641f4d2d19855ed2f9e4e4218 (patch)
tree24ed3fb66c7590dec75ad6a644d0a64f3c7b5508
parent88928325f6e694fff77bbb7ad78ea6c09dfecde6 (diff)
downloadChibiOS-d5e213f8cba8dd6641f4d2d19855ed2f9e4e4218.tar.gz
ChibiOS-d5e213f8cba8dd6641f4d2d19855ed2f9e4e4218.tar.bz2
ChibiOS-d5e213f8cba8dd6641f4d2d19855ed2f9e4e4218.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8509 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/rt/ports/e200/compilers/GCC/ivor.s13
1 files 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.*/