This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/3] PowerPC: Add the low level infrastructure for pthreads


On Mon, 2014-11-10 at 19:20 -0200, Adhemerval Zanella wrote:

> diff --git a/sysdeps/unix/sysv/linux/powerpc/htm.h b/sysdeps/unix/sysv/linux/powerpc/htm.h
> new file mode 100644
> index 0000000..b0a5ab0
> --- /dev/null
> +++ b/sysdeps/unix/sysv/linux/powerpc/htm.h
> @@ -0,0 +1,142 @@
> +/* Shared HTM header.  Emulate transactional execution facility intrinsics for
> +   compilers and assemblers that do not support the intrinsics and instructions
> +   yet.

<snip>

> +
> +/* Definitions used for TEXASR Failure code (bits 0:6), they need to be even
> +   because tabort. always sets the first bit.  */

I came back here after looking through [3/3].  Can you clarify 'they
need to be even', with respect to the values used below?

> +#define _ABORT_LOCK_BUSY       0x3f   /* Lock already used.  */
> +#define _ABORT_NESTED_TRYLOCK  0x3e   /* Write operation in trylock.  */
> +#define _ABORT_SYSCALL         0x3d   /* Syscall issued.  */



> +
> +#endif

Thanks,
-Will


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]