CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2020/07/14 10:48:14

Modified files:
        include        : tib.h 
        lib/libc/arch/powerpc64: SYS.h 
        sys/arch/powerpc64/include: tcb.h 

Log message:
Fix TIB/TCB on powerpc64.  Some bright sould decided that the TCB should
be 8 bytes in the 64-bit ABI just like in the 32-bit ABI.  But that means
there is no "spare" word in the TCB that we can use to store a pointer
to our struct pthread.  So we have to treat powerpc64 special.

Also recognize that the thread pointer points 0x7000 bytes after the TCB.
Since the TCB is 8 bytes this means that TCB_OFFSET should be 0x7008.

Pointed out by guenther@; ok deraadt@

Reply via email to