Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299877
b: refs/heads/master
c: 6a1c531
h: refs/heads/master
i:
  299875: 727b344
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Apr 28, 2012
1 parent afc2c2b commit 34390fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14904927fcef6bb881fd995b478a0d2e700c1818
refs/heads/master: 6a1c53124aa161eb624ce7b1e40ade728186d34c
4 changes: 4 additions & 0 deletions trunk/arch/arm/include/asm/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

.macro set_tls_v6k, tp, tmp1, tmp2
mcr p15, 0, \tp, c13, c0, 3 @ set TLS register
mov \tmp1, #0
mcr p15, 0, \tmp1, c13, c0, 2 @ clear user r/w TLS register
.endm

.macro set_tls_v6, tp, tmp1, tmp2
Expand All @@ -15,6 +17,8 @@
mov \tmp2, #0xffff0fff
tst \tmp1, #HWCAP_TLS @ hardware TLS available?
mcrne p15, 0, \tp, c13, c0, 3 @ yes, set TLS register
movne \tmp1, #0
mcrne p15, 0, \tmp1, c13, c0, 2 @ clear user r/w TLS register
streq \tp, [\tmp2, #-15] @ set TLS value at 0xffff0ff0
.endm

Expand Down

0 comments on commit 34390fa

Please sign in to comment.