[U-Boot] [[Patch V2] mips: 04/16] add cpu/mips64/cpu.c

Mike Frysinger vapier at gentoo.org
Fri Aug 17 21:34:44 CEST 2012


On Friday 17 August 2012 11:30:47 Zhizhou Zhang wrote:
> --- /dev/null
> +++ b/arch/mips/cpu/mips64/cpu.c
>
> +void __attribute__((weak)) _machine_restart(void)
> +{
> +}

change to __weak (include linux/compiler.h if you need to).

> +int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
> +{
> +	_machine_restart();
> +
> +	fprintf(stderr, "*** reset failed ***\n");
> +	return 0;
> +}

this function should never return.  add a __noreturn to machine_restart().

> +void cache_probe()

(void)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120817/14c307a7/attachment.pgp>


More information about the U-Boot mailing list