This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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 2/2] Add MicroBlaze Port


David Holsgrove <david.holsgrove@xilinx.com> writes:

> +inline long
> +get_frame_size (unsigned long instr)
> +{
> +    return abs ((short signed) (instr & 0xFFFF));
> +}
> +
> +static unsigned long *
> +find_frame_creation (unsigned long *pc)
> +{
> +    int i;

Two spaces indent.

> +
> +    /* NOTE: Distance to search is arbitrary
> +     *   250 works well for most things,
> +     *   750 picks up things like tcp_recvmsg(),
> +     *  1000 needed for fat_fill_super().  */

No initial * in comments.  No () when referring to functions, instead of
actual calls.

> +            if ((!(*pprev_pc) || ((*pprev_pc) & 3)))

The innermost parens are confusing and redundant, likewise for the outer
pair.

> +    array[0]=(void *)pc;

Space around operators and after the cast.

> +#define atomic_compare_and_exchange_val_acq(mem, newval, oldval)              \
> +  ({                                                                          \
> +    __typeof (*(mem)) __result;                                               \
> +    if (sizeof (*mem) == 4)                                                   \
> +      __result = __arch_compare_and_exchange_val_32_acq(mem, newval, oldval); \

Space before open paren.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


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