- Jun 01, 2017
-
-
Simon Glass authored
Add an implementation of strcspn() which returns the number of initial characters that do not match any in a rejection list. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This functions works like strchr() but returns the end of the string if the character is not found. Add an implementation of this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 10, 2017
-
-
Simon Glass authored
A common use of memmove() can be handled by memcpy(). Also memcpy() includes an optimisation for large sizes: it copies a word at a time. So we can get a speed-up by calling memcpy() to handle our move in this case. Update memmove() to call memcpy() if the destination is before the source. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
- Apr 05, 2017
-
-
Simon Glass authored
Most of the time the optimised memset() is what we want. For extreme situations such as TPL it may be too large. For example on the 'rock' board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and the rodata bug, this patch is enough to reduce the TPL image below the limit. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Heiko Stuebner <heiko@sntech.de>
-
- Jun 06, 2016
-
-
Robert P. J. Day authored
Since bcopy() is no longer used, delete all remaining references to it. Signed-off-by:
Robert P. J. Day <rpjday@crashcourse.ca>
-
- Dec 11, 2014
-
-
Masahiro Yamada authored
Move strlcpy() definition from drivers/usb/gadget/ether.c to lib/string.c because it is a very useful function. Let's add the prototype to include/linux/string.h too. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Oct 14, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 31, 2013
-
-
Sergey Lapin authored
This patch is essentially an update of u-boot MTD subsystem to the state of Linux-3.7.1 with exclusion of some bits: - the update is concentrated on NAND, no onenand or CFI/NOR/SPI flashes interfaces are updated EXCEPT for API changes. - new large NAND chips support is there, though some updates have got in Linux-3.8.-rc1, (which will follow on top of this patch). To produce this update I used tag v3.7.1 of linux-stable repository. The update was made using application of relevant patches, with changes relevant to U-Boot-only stuff sticked together to keep bisectability. Then all changes were grouped together to this patch. Signed-off-by:
Sergey Lapin <slapin@ossfans.org> [scottwood@freescale.com: some eccstrength and build fixes] Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Dec 13, 2012
-
-
Joe Hershberger authored
isspace() and strim() are not in the typical user-mode string.h, so put them in a separate compilation unit so that they can be built into tools that need them independent of the other common string functions. This allows code shared by u-boot and the linux user-mode tools to link. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- Dec 11, 2012
-
-
Simon Glass authored
strncasecmp() is present as strnicmp() but disabled. Make it available and define strcasecmp() also. There is a only a small performance penalty to having strcasecmp() call strncasecmp(), so do this instead of a standalone function, to save code space. Update the prototype in arch-specific headers as needed to avoid warnings. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 26, 2012
-
-
Christian Hitz authored
[backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe] This is part of the synchronization with the nand driver to the Linux 3.0 state. Signed-off-by:
Christian Hitz <christian.hitz@aizo.com> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Jul 25, 2011
-
-
Matthias Weisser authored
In some cases (e.g. bootm with a elf payload which is already at the right position) there is a in place copy of data to the same address. Catching this saves some ms while booting. Signed-off-by:
Matthias Weisser <weisserm@arcor.de>
-
- Apr 13, 2010
-
-
Peter Tyser authored
Now that the other architecture-specific lib directories have been moved out of the top-level directory there's not much reason to have the '_generic' suffix on the common lib directory. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Oct 18, 2009
-
-
Alessandro Rubini authored
If the destination is aligned, fill ulong values until possible. Then fill remaining part by byte. Signed-off-by:
Alessandro Rubini <rubini@unipv.it> Acked-by:
Andrea Gallo <andrea.gallo@stericsson.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Alessandro Rubini authored
If source and destination are aligned, this copies ulong values until possible, trailing part is copied by byte. Thanks for the details to Wolfgang Denk, Mike Frysinger, Peter Tyser, Chris Moore. Signed-off-by:
Alessandro Rubini <rubini@unipv.it> Acked-by:
Andrea Gallo <andrea.gallo@stericsson.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- May 20, 2008
-
-
Wolfgang Denk authored
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 02, 2006
-
-
Wolfgang Denk authored
-
- Oct 04, 2005
-
-
Wolfgang Denk authored
Patch by Andrew Dyer, October 10, 2005 Signed-off-by:
Andrew Dyer <amdyer@gmail.com>
-
- Sep 25, 2005
-
-
Wolfgang Denk authored
Patch by Andrew Dyer, 08 Feb 2005
-
- Mar 14, 2004
-
-
Wolfgang Denk authored
Fix problems with GCC 3.3.x which changed handling of global variables explicitly initialized to zero (now in .bss instead of .data as before). * Patch by Leon Kukovec, 02 Mar 2004: add strswab() to fix IDE LBA capacity, firmware and model numbers on little endian machines * Patch by Masami Komiya, 02 Mar 2004: - Remove get_ticks() from NFS code - Add verification of RPC transaction ID * Patch by Pierre Aubert, 02 Mar 2004: cleanup for IDE and USB drivers for MPC5200
-
- Jun 27, 2003
-
-
Wolfgang Denk authored
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
-
- Nov 19, 2002
-
-
Wolfgang Denk authored
Fixes for x86 port (mostly strings issues) * Patch by Ken Chou, 18 Nov 2002: Fix for natsemi NIC cards (DP83815) * Patch by Pierre Aubert, 19 Nov 2002: fix a bug for the MII configuration, and some warnings
-
- Nov 03, 2002
-
-
Wolfgang Denk authored
-