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 v2 21/21] nptl: riscv: Fix Race conditions in pthread cancellation (BZ#12683)


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> +static inline uintptr_t
> +ucontext_get_pc (const ucontext_t *uc)
> +{
> +  return uc->uc_mcontext.__gregs[REG_PC];
> +}

That file already has a GET_PC() macro; why not use it?
(I mean, in the definition of this function)


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