[rtems commit] bsp/qoriq: Invalidate TLS anchor

Sebastian Huber sebh at rtems.org
Fri Mar 18 09:59:44 UTC 2016


Module:    rtems
Branch:    master
Commit:    e12f4e1724ed910967e130fe1dadf0893b4c4a4a
Changeset: http://git.rtems.org/rtems/commit/?id=e12f4e1724ed910967e130fe1dadf0893b4c4a4a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Mar 18 10:58:41 2016 +0100

bsp/qoriq: Invalidate TLS anchor

---

 c/src/lib/libbsp/powerpc/qoriq/start/start.S | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/qoriq/start/start.S b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
index 5d2a09d..045c9c8 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/start/start.S
+++ b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
@@ -197,8 +197,10 @@ _start:
 	isync
 #endif
 
-	/* Set small-data anchors */
-	LA	r2, _SDA2_BASE_
+	/* Invalidate TLS anchor */
+	li	r2, 0
+
+	/* Set small-data anchor */
 	LA	r13, _SDA_BASE_
 
 	blr



More information about the vc mailing list