change log for rtems (2011-09-30)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri Sep 30 08:10:13 UTC 2011


 *sh*:
2011-09-30	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* nios2-context-switch.S: Use small-data area access for
	_Per_CPU_Information fields.

M   1.44  cpukit/score/cpu/nios2/ChangeLog
M    1.3  cpukit/score/cpu/nios2/nios2-context-switch.S

diff -u rtems/cpukit/score/cpu/nios2/ChangeLog:1.43 rtems/cpukit/score/cpu/nios2/ChangeLog:1.44
--- rtems/cpukit/score/cpu/nios2/ChangeLog:1.43	Tue Sep 27 04:18:25 2011
+++ rtems/cpukit/score/cpu/nios2/ChangeLog	Fri Sep 30 03:02:56 2011
@@ -1,3 +1,8 @@
+2011-09-30	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* nios2-context-switch.S: Use small-data area access for
+	_Per_CPU_Information fields.
+
 2011-09-27	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	PR 1914/cpukit

diff -u rtems/cpukit/score/cpu/nios2/nios2-context-switch.S:1.2 rtems/cpukit/score/cpu/nios2/nios2-context-switch.S:1.3
--- rtems/cpukit/score/cpu/nios2/nios2-context-switch.S:1.2	Fri Sep 16 05:25:22 2011
+++ rtems/cpukit/score/cpu/nios2/nios2-context-switch.S	Fri Sep 30 03:02:56 2011
@@ -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 @@
 	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)



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110930/56d79146/attachment.html>


More information about the vc mailing list