[PATCH v2 2/2] Add MicroBlaze Port

David Holsgrove david.holsgrove@xilinx.com
Thu Apr 11 07:58:00 GMT 2013


Hi Andreas,

> -----Original Message-----
> From: Andreas Schwab [mailto:schwab@suse.de]
> Sent: Tuesday, 9 April 2013 6:32 pm
> To: David Holsgrove
> Cc: libc-ports@sourceware.org; Roland McGrath; Joseph Myers; John Williams;
> Edgar Iglesias; Vinod Kathail; Vidhumouli Hunsigida; Nagaraju Mekala; Tom Shui
> Subject: 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.
> 

Thanks for the comments - I've fixed and given another pass over the whole patch,
corrected some backslash alignments and believe it should have cleanly formatted
comments throughout.

Updated patch attached.

thanks again,
David

> 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."



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-MicroBlaze-Port.patch
Type: application/octet-stream
Size: 326220 bytes
Desc: 0002-MicroBlaze-Port.patch
URL: <http://sourceware.org/pipermail/libc-ports/attachments/20130411/76f31a44/attachment.obj>


More information about the Libc-ports mailing list