Skip to content

Commit

Permalink
Update pthread_self to stay in sync with upstream architectures:
Browse files Browse the repository at this point in the history
Change references this commit:
commit 7284830
Author: Rich Felker <dalias@aerifal.cx>
Date:   Mon Aug 24 22:23:08 2020 -0400

    deduplicate __pthread_self thread pointer adjustment out of each arch
  • Loading branch information
SidManning committed Sep 14, 2020
1 parent e33474c commit e7bde48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/hexagon/pthread_arch.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

// Hexagon supports variant 2 TLS.
static inline struct pthread *__pthread_self()
static inline uintptr_t __get_tp()
{
struct pthread *tp;
uintptr_t tp;
__asm__ ( "%0 = ugp" : "=r"(tp));
return tp;
}
Expand Down

0 comments on commit e7bde48

Please sign in to comment.