Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142199187
D18807.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D18807.diff
View Options
Index: head/lib/libthr/arch/powerpc/include/pthread_md.h
===================================================================
--- head/lib/libthr/arch/powerpc/include/pthread_md.h
+++ head/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
Sun, Jan 18, 3:26 AM (13 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27703839
Default Alt Text
D18807.diff (722 B)
Attached To
Mode
D18807: silence cast-align warnings from clang on powerpc64
Attached
Detach File
Event Timeline
Log In to Comment