Revision tags: v00.04.15, v00.04.14, v00.04.13, v00.04.12, v00.04.11, v00.04.10, v00.04.09, v00.04.08, v00.04.07, v00.04.06, v00.04.05, v00.04.04, v00.04.03, v00.04.02, v00.04.01, v00.04.00, v2021.04, v00.03.03, v2021.01, v2020.10, v2020.07, v00.02.13, v2020.04, v2020.01, v2019.10, v00.02.05, v00.02.04, v00.02.03, v00.02.02, v00.02.01, v2019.07, v00.02.00, v2019.04 |
|
#
172e3c11 |
| 30-Nov-2018 |
Tom Rini <trini@konsulko.com> |
Merge tag 'pull-30nov18' of git://git.denx.de/u-boot-dm
Fix sound on sandbox Convert TPM fully to DM Tidy up sandbox I2C emulation Add a 'make qcheck' target for faster testing A few other misc thin
Merge tag 'pull-30nov18' of git://git.denx.de/u-boot-dm
Fix sound on sandbox Convert TPM fully to DM Tidy up sandbox I2C emulation Add a 'make qcheck' target for faster testing A few other misc things (dropped the final patch which breaks clang for some reason)
show more ...
|
#
7cbd2d2e |
| 18-Nov-2018 |
Simon Glass <sjg@chromium.org> |
malloc_simple: Add logging of allocations
It is sometimes useful to see what memory is being allocated early during boot. Add logging to support this, using a new LOGC_ALLOC category.
Signed-off-by
malloc_simple: Add logging of allocations
It is sometimes useful to see what memory is being allocated early during boot. Add logging to support this, using a new LOGC_ALLOC category.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
Revision tags: v2018.07, v2018.03, v2018.01, v2017.11, v2016.07, openbmc-20160624-1 |
|
#
2f0bcd4d |
| 05-Mar-2016 |
Stephen Warren <swarren@wwwdotorg.org> |
malloc: use hidden visibility
When running sandbox, the following phases occur, each with different malloc implementations or behaviors:
1) Dynamic linker execution, using the dynamic linker's own
malloc: use hidden visibility
When running sandbox, the following phases occur, each with different malloc implementations or behaviors:
1) Dynamic linker execution, using the dynamic linker's own malloc() implementation. This is fully functional.
2) After U-Boot's malloc symbol has been hooked into the GOT, but before any U-Boot code has run. This phase is entirely non-functional, since U-Boot's gd symbol is NULL and U-Boot's initf_malloc() and mem_malloc_init() have not been called.
At least on Ubuntu Xenial, the dynamic linker does make both malloc() and free() calls during this phase. Currently these free() calls crash since they dereference gd, which is NULL.
U-Boot itself makes no use of malloc() during this phase.
3) U-Boot execution after gd is set and initf_malloc() has been called. This is fully functional, albeit via a very simple malloc() implementation.
4) U-Boot execution after mem_malloc_init() has been called. This is fully functional with a complete malloc() implementation.
Furthermore, if code that called malloc() during phase 1 calls free() in phase 3 or later, it is likely that heap corruption will occur, since U-Boot's malloc implementation will assume the pointer is part of its own heap, although it isn't. I have not actively observed this happening.
To prevent phase 2 from happening, this patch makes all of U-Boot's malloc library public symbols have hidden visibility. This prevents them from being hooked into the GOT, so only code in the U-Boot binary itself actually calls them; any other code will call into the standard C library malloc(). This also avoids the "furthermore" issue mentioned above.
I have seen references to this GCC pragma in blog posts from 2008, and RHEL5's ancient gcc appears to accept it fine, so I believe it's quite safe to use it without checking gcc version.
Cc: Rabin Vincent <rabin@rab.in> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
Revision tags: v2016.01-rc1 |
|
#
a69fdc77 |
| 23-Oct-2015 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
|
Revision tags: v2015.10, v2015.10-rc5, v2015.10-rc4 |
|
#
1eb0c03c |
| 13-Sep-2015 |
Hans de Goede <hdegoede@redhat.com> |
malloc_simple: Add Kconfig option for using only malloc_simple in the SPL
common/dlmalloc.c is quite big, both in .text and .data usage, therefor on some boards the SPL is build to use only malloc_s
malloc_simple: Add Kconfig option for using only malloc_simple in the SPL
common/dlmalloc.c is quite big, both in .text and .data usage, therefor on some boards the SPL is build to use only malloc_simple.c and not the dlmalloc.c code. This is done in various include/configs/foo.h with the following construct:
#ifdef CONFIG_SPL_BUILD #define CONFIG_SYS_MALLOC_SIMPLE #endif
This commit introduces a SPL_MALLOC_SIMPLE Kconfig bool which allows selecting this functionality through Kconfig instead.
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
Revision tags: v2015.10-rc3, v2015.10-rc2, v2015.10-rc1, v2015.07, v2015.07-rc3, v2015.07-rc2, v2015.07-rc1 |
|
#
b939689c |
| 05-May-2015 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
|
#
5f757cdc |
| 23-Apr-2015 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-dm
|
Revision tags: v2015.04, v2015.04-rc5, v2015.04-rc4, v2015.04-rc3 |
|
#
fb5cf7f1 |
| 27-Feb-2015 |
Simon Glass <sjg@chromium.org> |
Move initf_malloc() to a common place
To allow this function to be used from SPL, move it to the malloc() code.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
Revision tags: v2015.04-rc2, v2015.04-rc1, v2015.01, v2015.01-rc4, v2015.01-rc3, v2015.01-rc2 |
|
#
1739564e |
| 24-Nov-2014 |
Tom Rini <trini@ti.com> |
Merge git://git.denx.de/u-boot-dm
Conflicts: drivers/serial/serial-uclass.c
Signed-off-by: Tom Rini <trini@ti.com>
|
#
c9356be3 |
| 10-Nov-2014 |
Simon Glass <sjg@chromium.org> |
dm: Split the simple malloc() implementation into its own file
The simple malloc() implementation is used when memory is tight. It provides a simple buffer with an incrementing pointer.
At present
dm: Split the simple malloc() implementation into its own file
The simple malloc() implementation is used when memory is tight. It provides a simple buffer with an incrementing pointer.
At present the implementation is inside dlmalloc. Move it into its own file so that it is easier to find.
Rather than using relocation as a signal that the full malloc() is available, add a special GD_FLG_FULL_MALLOC_INIT flag. This signals that the simple malloc() should no longer be used.
In some cases, such as SPL, even the code space used by the full malloc() is wasteful. Add a CONFIG_SYS_MALLOC_SIMPLE option to provide only the simple malloc. In this case the full malloc is not available at all. It saves about 1KB of code space and about 0.5KB of data on Thumb 2.
Acked-by: Tom Rini <trini@ti.com> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
Revision tags: v2015.01-rc1, v2014.10, v2014.10-rc3, v2014.10-rc2, v2014.10-rc1, v2014.07, v2014.07-rc4, v2014.07-rc3, v2014.07-rc2, v2014.07-rc1, v2014.04, v2014.04-rc3, v2014.04-rc2, v2014.04-rc1, v2014.01, v2014.01-rc3, v2014.01-rc2, v2014.01-rc1, v2013.10, v2013.10-rc4, v2013.10-rc3, v2013.10-rc2, v2013.10-rc1, v2013.07, v2013.07-rc3, v2013.07-rc2, v2013.07-rc1, v2013.04, v2013.04-rc3 |
|
#
18122019 |
| 12-Apr-2013 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts: drivers/video/exynos_fb.c
|
Revision tags: v2013.04-rc2 |
|
#
472d5460 |
| 01-Apr-2013 |
York Sun <yorksun@freescale.com> |
Consolidate bool type
'bool' is defined in random places. This patch consolidates them into a single header file include/linux/types.h, using stdbool.h introduced in C99.
All other #define, typedef
Consolidate bool type
'bool' is defined in random places. This patch consolidates them into a single header file include/linux/types.h, using stdbool.h introduced in C99.
All other #define, typedef and enum are removed. They are all consistent with true = 1, false = 0.
Replace FALSE, False with false. Replace TRUE, True with true. Skip *.py, *.php, lib/* files.
Signed-off-by: York Sun <yorksun@freescale.com>
show more ...
|
#
76b40ab4 |
| 11-Mar-2013 |
Tom Rini <trini@ti.com> |
Merge u-boot/master into u-boot-ti/master
In master we had already taken a patch to fix the davinci GPIO code for CONFIG_SOC_DM646X and in u-boot-ti we have additional patches to support DA830 (whic
Merge u-boot/master into u-boot-ti/master
In master we had already taken a patch to fix the davinci GPIO code for CONFIG_SOC_DM646X and in u-boot-ti we have additional patches to support DA830 (which is CONFIG_SOC_DA8XX && !CONFIG_SOC_DA850). Resolve these conflicts manually and comment the #else/#endif lines for clarity.
Conflicts: arch/arm/include/asm/arch-davinci/gpio.h drivers/gpio/da8xx_gpio.c
Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
Revision tags: v2013.04-rc1, v2013.01.01 |
|
#
7b395232 |
| 21-Jan-2013 |
Gabor Juhos <juhosg@openwrt.org> |
malloc: make malloc_bin_reloc static
On architectures where manual relocation is needed, the 'malloc_bin_reloc' function must be called after 'mem_malloc_init'.
Make the 'malloc_bin_reloc' function
malloc: make malloc_bin_reloc static
On architectures where manual relocation is needed, the 'malloc_bin_reloc' function must be called after 'mem_malloc_init'.
Make the 'malloc_bin_reloc' function static and call it directly from 'mem_malloc_init' instead of calling that from board_init_{r,f} functions of the affected architectures.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: Wolfgang Denk <wd@denx.de> Cc: Andreas Bießmann <andreas.devel@gmail.com> Cc: Jason Jin <Jason.jin@freescale.com> Cc: Macpaul Lin <macpaul@andestech.com> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
show more ...
|
Revision tags: v2013.01, v2013.01-rc3, v2013.01-rc2, v2013.01-rc1, v2012.10, v2012.10-rc3, v2012.10-rc2 |
|
#
1c27059a |
| 30-Sep-2012 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge remote-tracking branch 'u-boot/master'
|
Revision tags: v2012.10-rc1, v2012.07, v2012.07-rc3, v2012.07-rc2, v2012.07-rc1 |
|
#
00d0d2ad |
| 03-Jun-2012 |
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> |
malloc: remove extern declarations of malloc_bin_reloc() in board.c files
Declare malloc_bin_reloc() in malloc.h and remove all extern declarations in various board.c files to get rid of one checkpa
malloc: remove extern declarations of malloc_bin_reloc() in board.c files
Declare malloc_bin_reloc() in malloc.h and remove all extern declarations in various board.c files to get rid of one checkpatch.pl warning.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Andreas Bießmann <andreas.devel@gmail.com> Cc: Jason Jin <Jason.jin@freescale.com> Cc: Macpaul Lin <macpaul@andestech.com> Cc: Daniel Hellstrom <daniel@gaisler.com> Acked-by: Andreas Bießmann <andreas.devel@gmail.com>
show more ...
|
Revision tags: v2012.04.01, v2012.04, v2012.04-rc3, v2012.04-rc2, v2012.04-rc1 |
|
#
213adf6d |
| 29-Mar-2012 |
Marek Vasut <marek.vasut@gmail.com> |
Malloc: Fix -Wundef warnings
In file included from arch/arm/lib/board.c:43:0: include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef] include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE
Malloc: Fix -Wundef warnings
In file included from arch/arm/lib/board.c:43:0: include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef] include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE_MALLOC_H" is not defined [-Wundef] include/malloc.h:757:5: warning: "HAVE_MMAP" is not defined [-Wundef]
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de>
show more ...
|
Revision tags: v2011.12, v2011.12-rc3, v2011.12-rc2, v2011.12-rc1, v2011.09, v2011.09-rc2, v2011.09-rc1 |
|
#
21726a7a |
| 29-Jun-2011 |
Simon Glass <sjg@chromium.org> |
Add assert() for debug assertions
assert() is like BUG_ON() but compiles to nothing unless DEBUG is defined. This is useful when a condition is an error but a board reset is unlikely to fix it, so i
Add assert() for debug assertions
assert() is like BUG_ON() but compiles to nothing unless DEBUG is defined. This is useful when a condition is an error but a board reset is unlikely to fix it, so it is better to soldier on in hope. Assertion failures should be caught during development/test.
It turns out that assert() is defined separately in a few places in U-Boot with various meanings. This patch cleans up some of these.
Build errors exposed by this change (and defining DEBUG) are also fixed in this patch.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
Revision tags: v2011.06, v2011.06-rc3, v2011.06-rc2, v2011.06-rc1, v2011.03, v2011.03-rc2, v2011.03-rc1, v2010.12, v2010.12-rc3, v2010.12-rc2, v2010.12-rc1, v2010.09, v2010.09-rc2, v2010.09-rc1, v2010.06, v2010.06-rc3, v2010.06-rc2, v2010.06-rc1, v2010.03, v2010.03-rc3, v2010.03-rc2, v2010.03-rc1, v2009.11.1, v2009.11, v2009.11-rc2, v2009.11-rc1, v2009.08, v2009.08-rc3 |
|
#
bdb2802f |
| 21-Aug-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Consolidate arch-specific mem_malloc_init() implementations
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
|
#
d870552e |
| 21-Aug-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Consolidate arch-specific sbrk() implementations
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
|
#
d4e8ada0 |
| 21-Aug-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Consolidate arch-specific mem_malloc_init() implementations
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
|
#
5e93bd1c |
| 21-Aug-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Consolidate arch-specific sbrk() implementations
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
|
Revision tags: v2009.08-rc2, v2009.08-rc1, v2009.06 |
|
#
60a3f404 |
| 13-Jun-2009 |
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
malloc.h: protect it against multiple include
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
Revision tags: v2009.06-rc3, v2009.06-rc2, v2009.06-rc1, v2009.03, v2009.03-rc2, v2009.03-rc1, v2009.01, v2009.01-rc3, v2009.01-rc2, v2009.01-rc1, v2008.10, v2008.10-rc3, v2008.10-rc2, v2008.10-rc1, v1.3.4, v1.3.4-rc2, v1.3.4-rc1, v1.3.3, v1.3.3-rc3, v1.3.3-rc2, v1.3.3-rc1, v1.3.2, v1.3.2-rc3, v1.3.2-rc2, v1.3.2-rc1, v1.3.1, v1.3.1-rc1, v1.3.0, v1.3.0-rc4, v1.3.0-rc3, v1.3.0-rc2, v1.3.0-rc1, U-Boot-1_2_0, U-Boot-1_1_6, U-Boot-1_1_5, LABEL_2006_06_30_2020, LABEL_2006_05_19_1133, LABEL_2006_05_10_1800, LABEL_2006_04_18_1106, LABEL_2006_03_12_0025, U-Boot-1_1_4, DENX-2005-10-29-2350, LABEL_2005_09_15_2320, U-Boot-1_1_3, LABEL_2005_08_12_0050, LABEL_2005_07_04_0202, LABEL_2005_05_13_0050, LABEL_2005_05_09_1245, LABEL_2005_05_05_1920, LABEL_2005_04_14_0115, LABEL_2005_04_05_2345, LABEL_2005_04_05_1830, LABEL_2005_03_15_0125, LABEL_2005_03_06_0225, LABEL_2005_02_28_0050, LABEL_2005_02_08_1615, LABEL_2005_02_07_2045, LABEL_2005_01_31_2245, U-Boot-1_1_2, LABEL_2004_12_20_1220, LABEL_2004_12_19_2240, LABEL_2004_12_19_1100, LABEL_2004_12_18_2335, LABEL_2004_11_25_0035, LABEL_2004_11_17_2222, LABEL_2004_10_20_0020, LABEL_2004_10_12_0110, LABEL_2004_09_09_0000, LABEL_2004_08_29_0045, LABEL_2004_08_28_2355, LABEL_2004_07_01_1200, LABEL_2004_06_24_1800, LABEL_2004_05_29_1850, LABEL_2004_05_19_2335, U-Boot-1_1_1, LABEL_2004_04_23_2240, LABEL_2004_04_18_2135, U-Boot-1_1_0, LABEL_2004_03_25_1630, LABEL_2004_03_16_2330, LABEL_2004_03_14_2340, LABEL_2004_03_12_0130, LABEL_2004_02_24_0305, LABEL_2004_02_20_2310, U-Boot-1_0_2, LABEL_2004_02_11_2240, LABEL_2004_01_21_2110, LABEL_2004_01_29_1030, U-Boot-1_0_1, LABEL_2003_12_06_1550, LABEL_2003_11_26_MKR, U-Boot-1_0_0, LABEL_2003_10_20_0025, LABEL_2003_10_16_0200, LABEL_2003_10_14_2140, LABEL_2003_10_10_1200, LABEL_2003_10_09_2320, LABEL_2003_10_09_1515, LABEL_2003_10_06_2355, LABEL_2003_10_01_1830, LABEL_2003_09_18_2045, LABEL_2003_09_16_2310, LABEL_2003_09_13_2100, LABEL_2003_09_12_1745, LABEL_2003_09_12_0110, U-Boot-0_4_8, LABEL_2003_09_06_0055, U-Boot-0_4_7, U-Boot-0_4_6, U-Boot-0_4_5, U-Boot-0_4_4, U-Boot-0_4_3, U-Boot-0_4_2, U-Boot-0_4_1, LABEL_2003_06_29_0145, LABEL_2003_06_28_1800-stable, LABEL_2003_06_28_0130-stable, LABEL_2003_06_28_0050-stable, LABEL_2003_06_27_2340 |
|
#
8bde7f77 |
| 27-Jun-2003 |
wdenk <wdenk> |
* Code cleanup: - 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: -
* Code cleanup: - 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)
show more ...
|
Revision tags: U-Boot-0_4_0, LABEL_2003_06_26_2220, LABEL_2003_06_22_1530, LABEL_2003_06_16_0055, LABEL_2003_06_05_2140, LABEL_2003_06_04_0200, LABEL_2003_05_31_2115, LABEL_2003_05_30_1450, LABEL_2003_05_23_1450, LABEL_2003_05_23_0055, LABEL_2003_05_22_2230, LABEL_2003_05_20_2250, LABEL_2003_05_20_1630, LABEL_2003_05_12_2355, LABEL_2003_05_03_1700, U-Boot-0_3_1, LABEL_2003_04_15_1900, U-Boot-0_3_0, LABEL_2003_04_05_0300, LABEL_2003_03_27_1900, LABEL_2003_03_26_1300, LABEL_2003_03_25_1830, LABEL_2003_03_14_2150, LABEL_2003_03_06_2255, LABEL_2003_03_06_1440, LABEL_2003_03_06_0200, LABEL_2003_03_06_0050, LABEL_2003_02_28_0150, LABEL_2003_01_14_0055, LABEL_2003_01_11_1050, LABEL_2002_12_28_1700, LABEL_2002_12_21_0040, U-Boot-0_2_0, LABEL_2002_12_07_0120, LABEL_2002_12_03_2230, LABEL_2002_11_22_0015, LABEL_2002_11_18_0115, LABEL_2002_11_11_2211, LABEL_2002_11_10_2310, LABEL_2002_11_05_1735, LABEL_2002_11_05_0120, U_BOOT_0_1_0 |
|
#
5b1d7137 |
| 02-Nov-2002 |
wdenk <wdenk> |
Initial revision
|