Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153417247
D18807.id52889.amp;downloadtrue.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
707 B
Referenced Files
None
Subscribers
None
D18807.id52889.amp;downloadtrue.diff
View Options
Index: lib/libthr/arch/powerpc/include/pthread_md.h
===================================================================
--- lib/libthr/arch/powerpc/include/pthread_md.h
+++ lib/libthr/arch/powerpc/include/pthread_md.h
@@ -72,14 +72,15 @@
static __inline struct tcb *
_tcb_get(void)
{
- register uint8_t *_tp;
+ register struct tcb *tcb;
+
#ifdef __powerpc64__
- __asm __volatile("mr %0,13" : "=r"(_tp));
+ __asm __volatile("addi %0,13,%1" : "=r"(tcb) : "i"(-TP_OFFSET));
#else
- __asm __volatile("mr %0,2" : "=r"(_tp));
+ __asm __volatile("addi %0,2,%1" : "=r"(tcb) : "i"(-TP_OFFSET));
#endif
- return ((struct tcb *)(_tp - TP_OFFSET));
+ return (tcb);
}
static __inline struct pthread *
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 1:28 AM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31944533
Default Alt Text
D18807.id52889.amp;downloadtrue.diff (707 B)
Attached To
Mode
D18807: silence cast-align warnings from clang on powerpc64
Attached
Detach File
Event Timeline
Log In to Comment