coreboot/src/lib
Aaron Durbin 01562b6cb5 imd: don't recover on limit == 0
If the limit of the large starting region was set with
a NULL pointer then the limit field will be 0. If the
limit is zero then no attempt to recover is necessary
as there is no region to recover.

This prevented an early call cbmem_find() from hanging a
rambi device. The config was with vboot enabled and was
way before memory init in the sequence.

Change-Id: I7163d93c31ecef2c108a6dde0206dc0b6f158b5c
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10175
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2015-05-11 22:39:13 +02:00
..
loaders program loading: add optional is_loader_active() callback 2015-04-30 13:05:13 +02:00
b64_decode.c lib: add base64 decoder 2015-04-22 08:50:54 +02:00
bootblock.ld memlayout: Make sure preram_cbmem_console symbols exist 2015-04-23 16:34:00 +02:00
bootmem.c
bootmode.c
cbfs.c cbfs: make cbfs_load_prog_stage_by_offset() public 2015-05-05 17:49:27 +02:00
cbfs_core.c cbfs: look for CBFS header in a predefined place 2015-04-17 09:54:40 +02:00
cbfs_core.h vboot: add cbfs_core 2015-05-05 17:49:29 +02:00
cbfs_spi.c New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
cbmem_common.c cbmem: switch over to imd-based cbmem 2015-04-22 22:56:31 +02:00
cbmem_console.c cbmem: add and use a function to dump console buffer 2015-04-27 20:49:09 +02:00
cbmem_stage_cache.c coreboot: common stage cache 2015-04-22 17:55:08 +02:00
clog2.c
compute_ip_checksum.c
coreboot_table.c chromeos: remove VBOOT2_VERIFY_FIRMWARE option 2015-04-28 16:09:56 +02:00
debug.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
delay.c
edid.c Unify byte order macros and clrsetbits 2015-04-21 08:23:25 +02:00
ext_stage_cache.c coreboot: common stage cache 2015-04-22 17:55:08 +02:00
fallback_boot.c lib: Add Kconfig option to enable/disable auto fallback control 2015-03-17 04:22:23 +01:00
gcc.c
gcov-glue.c bootstate: use structure pointers for scheduling callbacks 2015-03-18 16:41:43 +01:00
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
generic_sdram.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
gpio.c Add delay before reading GPIOs in gpio_base2_value() 2015-04-17 09:21:03 +02:00
halt.c
hardwaremain.c ramstage: don't drop cbmem console 2015-04-23 16:35:51 +02:00
hexdump.c
imd.c imd: don't recover on limit == 0 2015-05-11 22:39:13 +02:00
imd_cbmem.c cbmem: switch over to imd-based cbmem 2015-04-22 22:56:31 +02:00
jpeg.c
jpeg.h
libgcov.c
lzma.c timestamps: You can never have enough of them! 2015-04-14 09:03:40 +02:00
lzmadecode.c
lzmadecode.h
Makefile.inc secmon: Add some missing files 2015-05-11 17:43:46 +02:00
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c coreboot memrange: Two changes for zero size or empty memrange 2015-03-04 19:55:19 +01:00
memset.c
mocked_tlcl.c lib/tlcl: Provide mock implementation 2015-04-27 20:48:52 +02:00
primitive_memtest.c Primitive memory test 2015-01-09 16:50:55 +01:00
prog_ops.c program loading: add prog_run() function 2015-04-03 14:52:47 +02:00
ramstage.ld New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
ramtest.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
reg_script.c baytrail: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:21 +02:00
rmodule.c rmodule: remove cbmem_entry usage 2015-04-07 23:03:45 +02:00
rmodule.ld New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
romstage.ld memlayout: Make sure preram_cbmem_console symbols exist 2015-04-23 16:34:00 +02:00
selfboot.c Unify byte order macros and clrsetbits 2015-04-21 08:23:25 +02:00
stack.c arm: Fix checkstack() to use correct stack size 2015-04-14 09:04:04 +02:00
thread.c
timer.c timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
timer_queue.c
timestamp.c timestamp: fix incremental linking error for !HAVE_MONOTONIC_TIMER 2015-05-07 19:52:50 +02:00
tlcl.c chromeos: vboot2: Add TPM PCR extension support 2015-04-20 17:06:28 +02:00
tlcl_internal.h vboot2: read secdata and nvdata 2015-03-23 19:51:47 +01:00
tlcl_structures.h vboot2: copy tlcl from vboot_reference as a preparation for vboot2 integration 2015-01-27 01:43:57 +01:00
tpm_error_messages.h TPM: Fix whitespace 2015-02-06 00:25:59 +01:00
trace.c
version.c build.h: remove variable for the builduser, -hostname and -domain 2015-03-09 17:53:16 +01:00