diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-30 08:02:56 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-30 08:02:56 +0000 |
commit | 2d5458434bba5c2d702323de8e871f712ce8c79d (patch) | |
tree | 2756db288c9294b3827c29db2a9dfdf77b7212b5 /cpukit/score/cpu/nios2 | |
parent | 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-2d5458434bba5c2d702323de8e871f712ce8c79d.tar.bz2 |
2011-09-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* nios2-context-switch.S: Use small-data area access for
_Per_CPU_Information fields.
Diffstat (limited to 'cpukit/score/cpu/nios2')
-rw-r--r-- | cpukit/score/cpu/nios2/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/nios2-context-switch.S | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index 2838afb670..c321c5ab2e 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,8 @@ +2011-09-30 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * nios2-context-switch.S: Use small-data area access for + _Per_CPU_Information fields. + 2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de> PR 1914/cpukit diff --git a/cpukit/score/cpu/nios2/nios2-context-switch.S b/cpukit/score/cpu/nios2/nios2-context-switch.S index 71704ae62c..1cfc0fd246 100644 --- a/cpukit/score/cpu/nios2/nios2-context-switch.S +++ b/cpukit/score/cpu/nios2/nios2-context-switch.S @@ -27,9 +27,7 @@ _CPU_Context_switch: - movhi r12, %hiadj(_Nios2_Thread_dispatch_disabled) - addi r12, r12, %lo(_Nios2_Thread_dispatch_disabled) - ldw r9, 0(r12) + ldw r9, %gprel(_Nios2_Thread_dispatch_disabled)(gp) rdctl r8, status stw r16, NIOS2_CONTEXT_OFFSET_R16(r4) stw r17, NIOS2_CONTEXT_OFFSET_R17(r4) @@ -57,7 +55,7 @@ restore: ldw r22, NIOS2_CONTEXT_OFFSET_R22(r5) ldw r23, NIOS2_CONTEXT_OFFSET_R23(r5) ldw fp, NIOS2_CONTEXT_OFFSET_FP(r5) - stw r10, 0(r12) + stw r10, %gprel(_Nios2_Thread_dispatch_disabled)(gp) ldw r11, NIOS2_CONTEXT_OFFSET_STATUS(r5) ldw sp, NIOS2_CONTEXT_OFFSET_SP(r5) ldw ra, NIOS2_CONTEXT_OFFSET_RA(r5) |