summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2011-11-06 16:48:36 +0000
committerGedare Bloom <gedare@rtems.org>2011-11-06 16:48:36 +0000
commit05e75a4b050c613201556be9569c0539d6abc203 (patch)
treede96f000215fc5c6117c8e5a1ab5a4819ceea1fa /c
parent2011-11-06 gedare@rtems.org (diff)
downloadrtems-05e75a4b050c613201556be9569c0539d6abc203.tar.bz2
2011-11-06 gedare@rtems.org
* shared/score/interrupt.S: Pass ISR correct pointer to interrupt frame
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libcpu/sparc64/ChangeLog4
-rw-r--r--c/src/lib/libcpu/sparc64/shared/score/interrupt.S1
2 files changed, 5 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/sparc64/ChangeLog b/c/src/lib/libcpu/sparc64/ChangeLog
index 3dc7e4ed4e..734d65ae26 100644
--- a/c/src/lib/libcpu/sparc64/ChangeLog
+++ b/c/src/lib/libcpu/sparc64/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-06 gedare@rtems.org
+
+ * shared/score/interrupt.S: Pass ISR correct pointer to interrupt frame
+
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/cache/cache.c:
diff --git a/c/src/lib/libcpu/sparc64/shared/score/interrupt.S b/c/src/lib/libcpu/sparc64/shared/score/interrupt.S
index a8169025ea..1f666116bb 100644
--- a/c/src/lib/libcpu/sparc64/shared/score/interrupt.S
+++ b/c/src/lib/libcpu/sparc64/shared/score/interrupt.S
@@ -161,6 +161,7 @@ PUBLIC(_ISR_Handler)
mov %o1, %g2 ! get the trap #
mov %o5, %g7 ! store the interrupted %sp (preserve)
mov %sp, %o1 ! 2nd arg to ISR Handler = address of ISF
+ add %o1, STACK_BIAS, %o1 ! need to adjust for stack bias, 2nd arg = ISF
/*
* Increment ISR nest level and Thread dispatch disable level.